From af3b3e1f59d6243c039686a1c34a4f3057d564de Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 27 Dec 2018 07:47:47 +0000 Subject: [PATCH] Generated from 09c0865ceddec7712b5e542f2bec2d003e9e0b1a IpAddress should be mandatory for VirtualNetworks_CheckIPAddressAvailability --- .../lib/models/applicationGateway.js | 92 +- .../applicationGatewayAutoscaleBounds.js | 63 + ...pplicationGatewayAutoscaleConfiguration.js | 17 +- ...icationGatewayBackendHealthHttpSettings.js | 2 - .../applicationGatewayBackendHealthServer.js | 43 - .../applicationGatewayBackendHttpSettings.js | 17 - .../models/applicationGatewayHttpListener.js | 17 - .../lib/models/applicationGatewayPathRule.js | 11 - .../applicationGatewayRequestRoutingRule.js | 11 - .../applicationGatewaySslCertificate.js | 9 - .../models/applicationGatewayUrlPathMap.js | 11 - ...ewayWebApplicationFirewallConfiguration.js | 42 - .../lib/models/azureFirewall.js | 21 +- .../models/azureFirewallApplicationRule.js | 21 +- .../models/azureFirewallIPConfiguration.js | 15 +- .../lib/models/backendAddressPool.js | 8 +- .../lib/models/connectionStateSnapshot.js | 40 - .../lib/models/expressRouteCircuit.js | 43 +- .../lib/models/expressRouteCircuitPeering.js | 11 - .../lib/models/expressRouteCircuitSku.js | 3 +- .../lib/models/flowLogInformation.js | 17 - .../lib/models/frontendIPConfiguration.js | 56 +- .../models/getVpnSitesConfigurationRequest.js | 5 +- .../lib/models/hubVirtualNetworkConnection.js | 58 +- .../lib/models/iPConfiguration.js | 18 - .../lib/models/inboundNatPool.js | 10 - .../lib/models/inboundNatRule.js | 53 - .../networkManagement2/lib/models/index.d.ts | 13016 ++---- .../networkManagement2/lib/models/index.js | 111 +- .../networkManagement2/lib/models/ipTag.js | 2 +- .../lib/models/loadBalancer.js | 10 +- .../lib/models/loadBalancingRule.js | 10 - .../lib/models/networkInterface.js | 131 - .../models/networkInterfaceIPConfiguration.js | 54 - .../lib/models/outboundNatRule.js | 120 + .../networkManagement2/lib/models/policies.js | 62 + .../lib/models/publicIPAddress.js | 26 - .../networkManagement2/lib/models/subnet.js | 114 - ...trafficAnalyticsConfigurationProperties.js | 9 - .../lib/models/trafficAnalyticsProperties.js | 4 - .../lib/models/virtualHub.js | 52 +- .../models/virtualNetworkGatewayConnection.js | 18 - ...rtualNetworkGatewayConnectionListEntity.js | 18 - .../lib/models/virtualWAN.js | 53 - .../lib/models/vpnConnection.js | 82 +- .../lib/models/vpnGateway.js | 14 +- .../networkManagement2/lib/models/vpnSite.js | 16 +- .../lib/networkManagementClient.d.ts | 84 +- .../lib/networkManagementClient.js | 260 +- .../lib/operations/applicationGateways.js | 290 +- .../operations/applicationSecurityGroups.js | 10 +- .../operations/availableEndpointServices.js | 2 +- .../lib/operations/azureFirewalls.js | 52 +- .../lib/operations/bgpServiceCommunities.js | 2 +- .../lib/operations/connectionMonitors.js | 77 +- .../lib/operations/ddosProtectionPlans.js | 10 +- .../lib/operations/defaultSecurityRules.js | 4 +- .../expressRouteCircuitAuthorizations.js | 8 +- .../expressRouteCircuitConnections.js | 468 +- .../operations/expressRouteCircuitPeerings.js | 26 +- .../lib/operations/expressRouteCircuits.js | 112 +- .../expressRouteCrossConnectionPeerings.js | 8 +- .../expressRouteCrossConnections.js | 16 +- .../expressRouteServiceProviders.js | 2 +- .../hubVirtualNetworkConnections.js | 4 +- .../lib/operations/inboundNatRules.js | 32 +- .../lib/operations/index.d.ts | 36264 +++++----------- .../lib/operations/index.js | 22 +- .../loadBalancerBackendAddressPools.js | 4 +- .../loadBalancerFrontendIPConfigurations.js | 4 +- .../loadBalancerLoadBalancingRules.js | 4 +- .../loadBalancerNetworkInterfaces.js | 2 +- .../lib/operations/loadBalancerProbes.js | 4 +- .../lib/operations/loadBalancers.js | 24 +- .../lib/operations/localNetworkGateways.js | 10 +- .../networkInterfaceIPConfigurations.js | 4 +- .../networkInterfaceLoadBalancers.js | 2 +- .../lib/operations/networkInterfaces.js | 64 +- .../lib/operations/networkSecurityGroups.js | 12 +- .../lib/operations/networkWatchers.js | 783 +- .../lib/operations/operations.js | 2 +- .../lib/operations/packetCaptures.js | 66 +- .../lib/operations/publicIPAddresses.js | 42 +- .../lib/operations/routeFilterRules.js | 10 +- .../lib/operations/routeFilters.js | 12 +- .../lib/operations/routeTables.js | 12 +- .../lib/operations/routes.js | 8 +- .../lib/operations/securityRules.js | 8 +- .../lib/operations/subnets.js | 80 +- .../lib/operations/usages.js | 6 +- .../lib/operations/virtualHubs.js | 132 +- .../virtualNetworkGatewayConnections.js | 52 +- .../lib/operations/virtualNetworkGateways.js | 406 +- .../lib/operations/virtualNetworkPeerings.js | 8 +- .../lib/operations/virtualNetworks.js | 46 +- .../lib/operations/virtualWANs.js | 116 +- .../lib/operations/vpnConnections.js | 152 +- .../lib/operations/vpnGateways.js | 72 +- .../lib/operations/vpnSites.js | 48 +- .../lib/operations/vpnSitesConfiguration.js | 2 +- lib/services/networkManagement2/package.json | 2 +- 101 files changed, 16801 insertions(+), 37787 deletions(-) create mode 100644 lib/services/networkManagement2/lib/models/applicationGatewayAutoscaleBounds.js create mode 100644 lib/services/networkManagement2/lib/models/outboundNatRule.js create mode 100644 lib/services/networkManagement2/lib/models/policies.js diff --git a/lib/services/networkManagement2/lib/models/applicationGateway.js b/lib/services/networkManagement2/lib/models/applicationGateway.js index 13f5cef0cd..ec2307fe68 100644 --- a/lib/services/networkManagement2/lib/models/applicationGateway.js +++ b/lib/services/networkManagement2/lib/models/applicationGateway.js @@ -49,8 +49,6 @@ class ApplicationGateway extends models['Resource'] { * gateway resource. * @property {array} [authenticationCertificates] Authentication certificates * of the application gateway resource. - * @property {array} [trustedRootCertificates] Trusted Root certificates of - * the application gateway resource. * @property {array} [sslCertificates] SSL certificates of the application * gateway resource. * @property {array} [frontendIPConfigurations] Frontend IP addresses of the @@ -68,8 +66,6 @@ class ApplicationGateway extends models['Resource'] { * resource. * @property {array} [requestRoutingRules] Request routing rules of the * application gateway resource. - * @property {array} [rewriteRuleSets] Rewrite rules for the application - * gateway resource. * @property {array} [redirectConfigurations] Redirect configurations of the * application gateway resource. * @property {object} [webApplicationFirewallConfiguration] Web application @@ -91,50 +87,25 @@ class ApplicationGateway extends models['Resource'] { * @property {number} * [webApplicationFirewallConfiguration.maxRequestBodySize] Maxium request * body size for WAF. - * @property {number} - * [webApplicationFirewallConfiguration.maxRequestBodySizeInKb] Maxium - * request body size in Kb for WAF. - * @property {number} - * [webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium file - * upload size in Mb for WAF. - * @property {array} [webApplicationFirewallConfiguration.exclusions] The - * exclusion list. * @property {boolean} [enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @property {boolean} [enableFips] Whether FIPS is enabled on the * application gateway resource. * @property {object} [autoscaleConfiguration] Autoscale Configuration. - * @property {number} [autoscaleConfiguration.minCapacity] Lower bound on - * number of Application Gateway instances + * @property {object} [autoscaleConfiguration.bounds] Autoscale bounds + * @property {number} [autoscaleConfiguration.bounds.min] Lower bound on + * number of Application Gateway instances. + * @property {number} [autoscaleConfiguration.bounds.max] Upper bound on + * number of Application Gateway instances. * @property {string} [resourceGuid] Resource GUID property of the * application gateway resource. * @property {string} [provisioningState] Provisioning state of the * application gateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. - * @property {array} [customErrorConfigurations] Custom error configurations - * of the application gateway resource. * @property {string} [etag] A unique read-only string that changes whenever * the resource is updated. * @property {array} [zones] A list of availability zones denoting where the * resource needs to come from. - * @property {object} [identity] The identity of the application gateway, if - * configured. - * @property {string} [identity.principalId] The principal id of the system - * assigned identity. This property will only be provided for a system - * assigned identity. - * @property {string} [identity.tenantId] The tenant id of the system - * assigned identity. This property will only be provided for a system - * assigned identity. - * @property {string} [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' - * @property {object} [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}'. */ constructor() { super(); @@ -252,21 +223,6 @@ class ApplicationGateway extends models['Resource'] { } } }, - trustedRootCertificates: { - required: false, - serializedName: 'properties.trustedRootCertificates', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'ApplicationGatewayTrustedRootCertificateElementType', - type: { - name: 'Composite', - className: 'ApplicationGatewayTrustedRootCertificate' - } - } - } - }, sslCertificates: { required: false, serializedName: 'properties.sslCertificates', @@ -402,21 +358,6 @@ class ApplicationGateway extends models['Resource'] { } } }, - rewriteRuleSets: { - required: false, - serializedName: 'properties.rewriteRuleSets', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'ApplicationGatewayRewriteRuleSetElementType', - type: { - name: 'Composite', - className: 'ApplicationGatewayRewriteRuleSet' - } - } - } - }, redirectConfigurations: { required: false, serializedName: 'properties.redirectConfigurations', @@ -476,21 +417,6 @@ class ApplicationGateway extends models['Resource'] { name: 'String' } }, - customErrorConfigurations: { - required: false, - serializedName: 'properties.customErrorConfigurations', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'ApplicationGatewayCustomErrorElementType', - type: { - name: 'Composite', - className: 'ApplicationGatewayCustomError' - } - } - } - }, etag: { required: false, serializedName: 'etag', @@ -511,14 +437,6 @@ class ApplicationGateway extends models['Resource'] { } } } - }, - identity: { - required: false, - serializedName: 'identity', - type: { - name: 'Composite', - className: 'ManagedServiceIdentity' - } } } } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayAutoscaleBounds.js b/lib/services/networkManagement2/lib/models/applicationGatewayAutoscaleBounds.js new file mode 100644 index 0000000000..4317bc0822 --- /dev/null +++ b/lib/services/networkManagement2/lib/models/applicationGatewayAutoscaleBounds.js @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Application Gateway autoscale bounds on number of Application Gateway + * instance. + * + */ +class ApplicationGatewayAutoscaleBounds { + /** + * Create a ApplicationGatewayAutoscaleBounds. + * @property {number} min Lower bound on number of Application Gateway + * instances. + * @property {number} max Upper bound on number of Application Gateway + * instances. + */ + constructor() { + } + + /** + * Defines the metadata of ApplicationGatewayAutoscaleBounds + * + * @returns {object} metadata of ApplicationGatewayAutoscaleBounds + * + */ + mapper() { + return { + required: false, + serializedName: 'ApplicationGatewayAutoscaleBounds', + type: { + name: 'Composite', + className: 'ApplicationGatewayAutoscaleBounds', + modelProperties: { + min: { + required: true, + serializedName: 'min', + type: { + name: 'Number' + } + }, + max: { + required: true, + serializedName: 'max', + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = ApplicationGatewayAutoscaleBounds; diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayAutoscaleConfiguration.js b/lib/services/networkManagement2/lib/models/applicationGatewayAutoscaleConfiguration.js index 8edff41c3a..982e0b600c 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayAutoscaleConfiguration.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayAutoscaleConfiguration.js @@ -17,8 +17,11 @@ class ApplicationGatewayAutoscaleConfiguration { /** * Create a ApplicationGatewayAutoscaleConfiguration. - * @property {number} minCapacity Lower bound on number of Application - * Gateway instances + * @property {object} bounds Autoscale bounds + * @property {number} [bounds.min] Lower bound on number of Application + * Gateway instances. + * @property {number} [bounds.max] Upper bound on number of Application + * Gateway instances. */ constructor() { } @@ -37,14 +40,12 @@ class ApplicationGatewayAutoscaleConfiguration { name: 'Composite', className: 'ApplicationGatewayAutoscaleConfiguration', modelProperties: { - minCapacity: { + bounds: { required: true, - serializedName: 'minCapacity', - constraints: { - InclusiveMinimum: 2 - }, + serializedName: 'bounds', type: { - name: 'Number' + name: 'Composite', + className: 'ApplicationGatewayAutoscaleBounds' } } } diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthHttpSettings.js b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthHttpSettings.js index 8ba9f04cb9..2dee1d0d12 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthHttpSettings.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthHttpSettings.js @@ -35,8 +35,6 @@ class ApplicationGatewayBackendHealthHttpSettings { * @property {string} [backendHttpSettings.probe.id] Resource ID. * @property {array} [backendHttpSettings.authenticationCertificates] Array * of references to application gateway authentication certificates. - * @property {array} [backendHttpSettings.trustedRootCertificates] Array of - * references to application gateway trusted root certificates. * @property {object} [backendHttpSettings.connectionDraining] Connection * draining of the backend http settings resource. * @property {boolean} [backendHttpSettings.connectionDraining.enabled] diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthServer.js b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthServer.js index a2831585f2..58d4b51f3b 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthServer.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHealthServer.js @@ -20,8 +20,6 @@ class ApplicationGatewayBackendHealthServer { * @property {string} [address] IP address or FQDN of backend server. * @property {object} [ipConfiguration] Reference of IP configuration of * backend server. - * @property {array} [ipConfiguration.virtualNetworkTaps] The reference to - * Virtual Network Taps. * @property {array} [ipConfiguration.applicationGatewayBackendAddressPools] * The reference of ApplicationGatewayBackendAddressPool resource. * @property {array} [ipConfiguration.loadBalancerBackendAddressPools] The @@ -41,8 +39,6 @@ class ApplicationGatewayBackendHealthServer { * configuration. * @property {string} [ipConfiguration.subnet.addressPrefix] The address * prefix for the subnet. - * @property {array} [ipConfiguration.subnet.addressPrefixes] List of - * address prefixes for the subnet. * @property {object} [ipConfiguration.subnet.networkSecurityGroup] The * reference of the NetworkSecurityGroup resource. * @property {array} @@ -82,23 +78,10 @@ class ApplicationGatewayBackendHealthServer { * read-only string that changes whenever the resource is updated. * @property {array} [ipConfiguration.subnet.serviceEndpoints] An array of * service endpoints. - * @property {array} [ipConfiguration.subnet.serviceEndpointPolicies] An - * array of service endpoint policies. - * @property {array} [ipConfiguration.subnet.interfaceEndpoints] An array of - * references to interface endpoints * @property {array} [ipConfiguration.subnet.ipConfigurations] Gets an array * of references to the network interface IP configurations using subnet. - * @property {array} [ipConfiguration.subnet.ipConfigurationProfiles] Array - * of IP configuration profiles which reference this subnet. * @property {array} [ipConfiguration.subnet.resourceNavigationLinks] Gets an * array of references to the external resources using subnet. - * @property {array} [ipConfiguration.subnet.serviceAssociationLinks] Gets an - * array of references to services injecting into this subnet. - * @property {array} [ipConfiguration.subnet.delegations] Gets an array of - * references to the delegations on the subnet. - * @property {string} [ipConfiguration.subnet.purpose] A read-only string - * identifying the intention of use for this subnet based on delegations and - * other user-defined properties. * @property {string} [ipConfiguration.subnet.provisioningState] The * provisioning state of the resource. * @property {string} [ipConfiguration.subnet.name] The name of the resource @@ -137,9 +120,6 @@ class ApplicationGatewayBackendHealthServer { * @property {string} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefix] The * address prefix for the subnet. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. * @property {object} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] * The reference of the NetworkSecurityGroup resource. @@ -190,31 +170,12 @@ class ApplicationGatewayBackendHealthServer { * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpoints] * An array of service endpoints. * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpointPolicies] - * An array of service endpoint policies. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.interfaceEndpoints] - * An array of references to interface endpoints - * @property {array} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurations] * Gets an array of references to the network interface IP configurations * using subnet. * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurationProfiles] - * Array of IP configuration profiles which reference this subnet. - * @property {array} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] * Gets an array of references to the external resources using subnet. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.delegations] Gets - * an array of references to the delegations on the subnet. - * @property {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.purpose] A - * read-only string identifying the intention of use for this subnet based on - * delegations and other user-defined properties. * @property {string} * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.provisioningState] * The provisioning state of the resource. @@ -259,10 +220,6 @@ class ApplicationGatewayBackendHealthServer { * tags associated with the public IP address. * @property {string} [ipConfiguration.publicIPAddress.ipAddress] The IP * address associated with the public IP address resource. - * @property {object} [ipConfiguration.publicIPAddress.publicIPPrefix] The - * Public IP Prefix this Public IP Address should be allocated from. - * @property {string} [ipConfiguration.publicIPAddress.publicIPPrefix.id] - * Resource ID. * @property {number} [ipConfiguration.publicIPAddress.idleTimeoutInMinutes] * The idle timeout of the public IP address. * @property {string} [ipConfiguration.publicIPAddress.resourceGuid] The diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHttpSettings.js b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHttpSettings.js index c0d0a1f426..143c714f1c 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayBackendHttpSettings.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayBackendHttpSettings.js @@ -34,8 +34,6 @@ class ApplicationGatewayBackendHttpSettings extends models['SubResource'] { * @property {string} [probe.id] Resource ID. * @property {array} [authenticationCertificates] Array of references to * application gateway authentication certificates. - * @property {array} [trustedRootCertificates] Array of references to - * application gateway trusted root certificates. * @property {object} [connectionDraining] Connection draining of the backend * http settings resource. * @property {boolean} [connectionDraining.enabled] Whether connection @@ -139,21 +137,6 @@ class ApplicationGatewayBackendHttpSettings extends models['SubResource'] { } } }, - trustedRootCertificates: { - required: false, - serializedName: 'properties.trustedRootCertificates', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'SubResourceElementType', - type: { - name: 'Composite', - className: 'SubResource' - } - } - } - }, connectionDraining: { required: false, serializedName: 'properties.connectionDraining', diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayHttpListener.js b/lib/services/networkManagement2/lib/models/applicationGatewayHttpListener.js index fa17055b8c..b14f164086 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayHttpListener.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayHttpListener.js @@ -37,8 +37,6 @@ class ApplicationGatewayHttpListener extends models['SubResource'] { * @property {string} [provisioningState] Provisioning state of the HTTP * listener resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. - * @property {array} [customErrorConfigurations] Custom error configurations - * of the HTTP listener. * @property {string} [name] Name of the HTTP listener that is unique within * an Application Gateway. * @property {string} [etag] A unique read-only string that changes whenever @@ -122,21 +120,6 @@ class ApplicationGatewayHttpListener extends models['SubResource'] { name: 'String' } }, - customErrorConfigurations: { - required: false, - serializedName: 'properties.customErrorConfigurations', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'ApplicationGatewayCustomErrorElementType', - type: { - name: 'Composite', - className: 'ApplicationGatewayCustomError' - } - } - } - }, name: { required: false, serializedName: 'name', diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayPathRule.js b/lib/services/networkManagement2/lib/models/applicationGatewayPathRule.js index 4698b73991..b8a45b4d9b 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayPathRule.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayPathRule.js @@ -30,9 +30,6 @@ class ApplicationGatewayPathRule extends models['SubResource'] { * @property {object} [redirectConfiguration] Redirect configuration resource * of URL path map path rule. * @property {string} [redirectConfiguration.id] Resource ID. - * @property {object} [rewriteRuleSet] Rewrite rule set resource of URL path - * map path rule. - * @property {string} [rewriteRuleSet.id] Resource ID. * @property {string} [provisioningState] Path rule of URL path map resource. * Possible values are: 'Updating', 'Deleting', and 'Failed'. * @property {string} [name] Name of the path rule that is unique within an @@ -104,14 +101,6 @@ class ApplicationGatewayPathRule extends models['SubResource'] { className: 'SubResource' } }, - rewriteRuleSet: { - required: false, - serializedName: 'properties.rewriteRuleSet', - type: { - name: 'Composite', - className: 'SubResource' - } - }, provisioningState: { required: false, serializedName: 'properties.provisioningState', diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayRequestRoutingRule.js b/lib/services/networkManagement2/lib/models/applicationGatewayRequestRoutingRule.js index a256ecd44a..7784f428fe 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayRequestRoutingRule.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayRequestRoutingRule.js @@ -34,9 +34,6 @@ class ApplicationGatewayRequestRoutingRule extends models['SubResource'] { * @property {object} [urlPathMap] URL path map resource of the application * gateway. * @property {string} [urlPathMap.id] Resource ID. - * @property {object} [rewriteRuleSet] Rewrite Rule Set resource in Basic - * rule of the application gateway. - * @property {string} [rewriteRuleSet.id] Resource ID. * @property {object} [redirectConfiguration] Redirect configuration resource * of the application gateway. * @property {string} [redirectConfiguration.id] Resource ID. @@ -113,14 +110,6 @@ class ApplicationGatewayRequestRoutingRule extends models['SubResource'] { className: 'SubResource' } }, - rewriteRuleSet: { - required: false, - serializedName: 'properties.rewriteRuleSet', - type: { - name: 'Composite', - className: 'SubResource' - } - }, redirectConfiguration: { required: false, serializedName: 'properties.redirectConfiguration', diff --git a/lib/services/networkManagement2/lib/models/applicationGatewaySslCertificate.js b/lib/services/networkManagement2/lib/models/applicationGatewaySslCertificate.js index 423e9f513c..38dbb1cbd6 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewaySslCertificate.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewaySslCertificate.js @@ -26,8 +26,6 @@ class ApplicationGatewaySslCertificate extends models['SubResource'] { * Only applicable in PUT request. * @property {string} [publicCertData] Base-64 encoded Public cert data * corresponding to pfx specified in data. Only applicable in GET request. - * @property {string} [keyVaultSecretId] Secret Id of (base-64 encoded - * unencrypted pfx) 'Secret' or 'Certificate' object stored in KeyVault. * @property {string} [provisioningState] Provisioning state of the SSL * certificate resource Possible values are: 'Updating', 'Deleting', and * 'Failed'. @@ -83,13 +81,6 @@ class ApplicationGatewaySslCertificate extends models['SubResource'] { name: 'String' } }, - keyVaultSecretId: { - required: false, - serializedName: 'properties.keyVaultSecretId', - type: { - name: 'String' - } - }, provisioningState: { required: false, serializedName: 'properties.provisioningState', diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayUrlPathMap.js b/lib/services/networkManagement2/lib/models/applicationGatewayUrlPathMap.js index 391dc28de5..3a67cd6684 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayUrlPathMap.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayUrlPathMap.js @@ -27,9 +27,6 @@ class ApplicationGatewayUrlPathMap extends models['SubResource'] { * @property {object} [defaultBackendHttpSettings] Default backend http * settings resource of URL path map. * @property {string} [defaultBackendHttpSettings.id] Resource ID. - * @property {object} [defaultRewriteRuleSet] Default Rewrite rule set - * resource of URL path map. - * @property {string} [defaultRewriteRuleSet.id] Resource ID. * @property {object} [defaultRedirectConfiguration] Default redirect * configuration resource of URL path map. * @property {string} [defaultRedirectConfiguration.id] Resource ID. @@ -84,14 +81,6 @@ class ApplicationGatewayUrlPathMap extends models['SubResource'] { className: 'SubResource' } }, - defaultRewriteRuleSet: { - required: false, - serializedName: 'properties.defaultRewriteRuleSet', - type: { - name: 'Composite', - className: 'SubResource' - } - }, defaultRedirectConfiguration: { required: false, serializedName: 'properties.defaultRedirectConfiguration', diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayWebApplicationFirewallConfiguration.js b/lib/services/networkManagement2/lib/models/applicationGatewayWebApplicationFirewallConfiguration.js index a2af0c022d..113622b076 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayWebApplicationFirewallConfiguration.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayWebApplicationFirewallConfiguration.js @@ -28,11 +28,6 @@ class ApplicationGatewayWebApplicationFirewallConfiguration { * @property {boolean} [requestBodyCheck] Whether allow WAF to check request * Body. * @property {number} [maxRequestBodySize] Maxium request body size for WAF. - * @property {number} [maxRequestBodySizeInKb] Maxium request body size in Kb - * for WAF. - * @property {number} [fileUploadLimitInMb] Maxium file upload size in Mb for - * WAF. - * @property {array} [exclusions] The exclusion list. */ constructor() { } @@ -111,43 +106,6 @@ class ApplicationGatewayWebApplicationFirewallConfiguration { type: { name: 'Number' } - }, - maxRequestBodySizeInKb: { - required: false, - serializedName: 'maxRequestBodySizeInKb', - constraints: { - InclusiveMaximum: 128, - InclusiveMinimum: 8 - }, - type: { - name: 'Number' - } - }, - fileUploadLimitInMb: { - required: false, - serializedName: 'fileUploadLimitInMb', - constraints: { - InclusiveMaximum: 500, - InclusiveMinimum: 0 - }, - type: { - name: 'Number' - } - }, - exclusions: { - required: false, - serializedName: 'exclusions', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'ApplicationGatewayFirewallExclusionElementType', - type: { - name: 'Composite', - className: 'ApplicationGatewayFirewallExclusion' - } - } - } } } } diff --git a/lib/services/networkManagement2/lib/models/azureFirewall.js b/lib/services/networkManagement2/lib/models/azureFirewall.js index fd69283902..7d342f6d17 100644 --- a/lib/services/networkManagement2/lib/models/azureFirewall.js +++ b/lib/services/networkManagement2/lib/models/azureFirewall.js @@ -21,11 +21,9 @@ class AzureFirewall extends models['Resource'] { /** * Create a AzureFirewall. * @property {array} [applicationRuleCollections] Collection of application - * rule collections used by Azure Firewall. - * @property {array} [natRuleCollections] Collection of NAT rule collections - * used by Azure Firewall. + * rule collections used by a Azure Firewall. * @property {array} [networkRuleCollections] Collection of network rule - * collections used by Azure Firewall. + * collections used by a Azure Firewall. * @property {array} [ipConfigurations] IP configuration of the Azure * Firewall resource. * @property {string} [provisioningState] The provisioning state of the @@ -111,21 +109,6 @@ class AzureFirewall extends models['Resource'] { } } }, - natRuleCollections: { - required: false, - serializedName: 'properties.natRuleCollections', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'AzureFirewallNatRuleCollectionElementType', - type: { - name: 'Composite', - className: 'AzureFirewallNatRuleCollection' - } - } - } - }, networkRuleCollections: { required: false, serializedName: 'properties.networkRuleCollections', diff --git a/lib/services/networkManagement2/lib/models/azureFirewallApplicationRule.js b/lib/services/networkManagement2/lib/models/azureFirewallApplicationRule.js index 24e2747441..67c02b3fdb 100644 --- a/lib/services/networkManagement2/lib/models/azureFirewallApplicationRule.js +++ b/lib/services/networkManagement2/lib/models/azureFirewallApplicationRule.js @@ -22,8 +22,7 @@ class AzureFirewallApplicationRule { * @property {array} [sourceAddresses] List of source IP addresses for this * rule. * @property {array} [protocols] Array of ApplicationRuleProtocols. - * @property {array} [targetFqdns] List of FQDNs for this rule. - * @property {array} [fqdnTags] List of FQDN Tags for this rule. + * @property {array} [targetUrls] List of URLs for this rule. */ constructor() { } @@ -85,23 +84,9 @@ class AzureFirewallApplicationRule { } } }, - targetFqdns: { + targetUrls: { required: false, - serializedName: 'targetFqdns', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'StringElementType', - type: { - name: 'String' - } - } - } - }, - fqdnTags: { - required: false, - serializedName: 'fqdnTags', + serializedName: 'targetUrls', type: { name: 'Sequence', element: { diff --git a/lib/services/networkManagement2/lib/models/azureFirewallIPConfiguration.js b/lib/services/networkManagement2/lib/models/azureFirewallIPConfiguration.js index e7e15ef694..71e4128023 100644 --- a/lib/services/networkManagement2/lib/models/azureFirewallIPConfiguration.js +++ b/lib/services/networkManagement2/lib/models/azureFirewallIPConfiguration.js @@ -25,8 +25,11 @@ class AzureFirewallIPConfiguration extends models['SubResource'] { * @property {object} [subnet] Reference of the subnet resource. This * resource must be named 'AzureFirewallSubnet'. * @property {string} [subnet.id] Resource ID. + * @property {object} [internalPublicIpAddress] Reference of the PublicIP + * resource. This field is a mandatory input. + * @property {string} [internalPublicIpAddress.id] Resource ID. * @property {object} [publicIPAddress] Reference of the PublicIP resource. - * This field is a mandatory input if subnet is not null. + * This field is populated in the output. * @property {string} [publicIPAddress.id] Resource ID. * @property {string} [provisioningState] The provisioning state of the * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', @@ -63,7 +66,6 @@ class AzureFirewallIPConfiguration extends models['SubResource'] { }, privateIPAddress: { required: false, - readOnly: true, serializedName: 'properties.privateIPAddress', type: { name: 'String' @@ -77,6 +79,14 @@ class AzureFirewallIPConfiguration extends models['SubResource'] { className: 'SubResource' } }, + internalPublicIpAddress: { + required: false, + serializedName: 'properties.internalPublicIpAddress', + type: { + name: 'Composite', + className: 'SubResource' + } + }, publicIPAddress: { required: false, serializedName: 'properties.publicIPAddress', @@ -101,7 +111,6 @@ class AzureFirewallIPConfiguration extends models['SubResource'] { }, etag: { required: false, - readOnly: true, serializedName: 'etag', type: { name: 'String' diff --git a/lib/services/networkManagement2/lib/models/backendAddressPool.js b/lib/services/networkManagement2/lib/models/backendAddressPool.js index 40d749467b..8736c4d8c6 100644 --- a/lib/services/networkManagement2/lib/models/backendAddressPool.js +++ b/lib/services/networkManagement2/lib/models/backendAddressPool.js @@ -24,9 +24,9 @@ class BackendAddressPool extends models['SubResource'] { * to IP addresses defined in network interfaces. * @property {array} [loadBalancingRules] Gets load balancing rules that use * this backend address pool. - * @property {object} [outboundRule] Gets outbound rules that use this + * @property {object} [outboundNatRule] Gets outbound rules that use this * backend address pool. - * @property {string} [outboundRule.id] Resource ID. + * @property {string} [outboundNatRule.id] Resource ID. * @property {string} [provisioningState] Get provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. @@ -92,10 +92,10 @@ class BackendAddressPool extends models['SubResource'] { } } }, - outboundRule: { + outboundNatRule: { required: false, readOnly: true, - serializedName: 'properties.outboundRule', + serializedName: 'properties.outboundNatRule', type: { name: 'Composite', className: 'SubResource' diff --git a/lib/services/networkManagement2/lib/models/connectionStateSnapshot.js b/lib/services/networkManagement2/lib/models/connectionStateSnapshot.js index b085793cc7..02a091283f 100644 --- a/lib/services/networkManagement2/lib/models/connectionStateSnapshot.js +++ b/lib/services/networkManagement2/lib/models/connectionStateSnapshot.js @@ -23,11 +23,6 @@ class ConnectionStateSnapshot { * @property {date} [endTime] The end time of the connection snapshot. * @property {string} [evaluationState] Connectivity analysis evaluation * state. Possible values include: 'NotStarted', 'InProgress', 'Completed' - * @property {number} [avgLatencyInMs] Average latency in ms. - * @property {number} [minLatencyInMs] Minimum latency in ms. - * @property {number} [maxLatencyInMs] Maximum latency in ms. - * @property {number} [probesSent] The number of sent probes. - * @property {number} [probesFailed] The number of failed probes. * @property {array} [hops] List of hops between the source and the * destination. */ @@ -76,41 +71,6 @@ class ConnectionStateSnapshot { name: 'String' } }, - avgLatencyInMs: { - required: false, - serializedName: 'avgLatencyInMs', - type: { - name: 'Number' - } - }, - minLatencyInMs: { - required: false, - serializedName: 'minLatencyInMs', - type: { - name: 'Number' - } - }, - maxLatencyInMs: { - required: false, - serializedName: 'maxLatencyInMs', - type: { - name: 'Number' - } - }, - probesSent: { - required: false, - serializedName: 'probesSent', - type: { - name: 'Number' - } - }, - probesFailed: { - required: false, - serializedName: 'probesFailed', - type: { - name: 'Number' - } - }, hops: { required: false, readOnly: true, diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuit.js b/lib/services/networkManagement2/lib/models/expressRouteCircuit.js index fe3414539f..a1a1b3b93c 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuit.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuit.js @@ -23,8 +23,7 @@ class ExpressRouteCircuit extends models['Resource'] { * @property {object} [sku] The SKU. * @property {string} [sku.name] The name of the SKU. * @property {string} [sku.tier] The tier of the SKU. Possible values are - * 'Standard', 'Premium' or 'Basic'. Possible values include: 'Standard', - * 'Premium', 'Basic' + * 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' * @property {string} [sku.family] The family of the SKU. Possible values * are: 'UnlimitedData' and 'MeteredData'. Possible values include: * 'UnlimitedData', 'MeteredData' @@ -48,20 +47,10 @@ class ExpressRouteCircuit extends models['Resource'] { * location. * @property {number} [serviceProviderProperties.bandwidthInMbps] The * BandwidthInMbps. - * @property {object} [expressRoutePort] The reference to the - * ExpressRoutePort resource when the circuit is provisioned on an - * ExpressRoutePort resource. - * @property {string} [expressRoutePort.id] Resource ID. - * @property {number} [bandwidthInGbps] The bandwidth of the circuit when the - * circuit is provisioned on an ExpressRoutePort resource. - * @property {number} [stag] The identifier of the circuit traffic. Outer tag - * for QinQ encapsulation. * @property {string} [provisioningState] Gets the provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * @property {string} [gatewayManagerEtag] The GatewayManager Etag. - * @property {boolean} [allowGlobalReach] Flag to enable Global Reach on the - * circuit. * @property {string} [etag] Gets a unique read-only string that changes * whenever the resource is updated. */ @@ -208,29 +197,6 @@ class ExpressRouteCircuit extends models['Resource'] { className: 'ExpressRouteCircuitServiceProviderProperties' } }, - expressRoutePort: { - required: false, - serializedName: 'properties.expressRoutePort', - type: { - name: 'Composite', - className: 'SubResource' - } - }, - bandwidthInGbps: { - required: false, - serializedName: 'properties.bandwidthInGbps', - type: { - name: 'Number' - } - }, - stag: { - required: false, - readOnly: true, - serializedName: 'properties.stag', - type: { - name: 'Number' - } - }, provisioningState: { required: false, serializedName: 'properties.provisioningState', @@ -245,13 +211,6 @@ class ExpressRouteCircuit extends models['Resource'] { name: 'String' } }, - allowGlobalReach: { - required: false, - serializedName: 'properties.allowGlobalReach', - type: { - name: 'Boolean' - } - }, etag: { required: false, readOnly: true, diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitPeering.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitPeering.js index 081bc30051..fa8b77c5db 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitPeering.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitPeering.js @@ -112,9 +112,6 @@ class ExpressRouteCircuitPeering extends models['SubResource'] { * @property {string} [ipv6PeeringConfig.state] The state of peering. * Possible values are: 'Disabled' and 'Enabled'. Possible values include: * 'Disabled', 'Enabled' - * @property {object} [expressRouteConnection] The ExpressRoute connection. - * @property {string} [expressRouteConnection.id] The ID of the - * ExpressRouteConnection. * @property {array} [connections] The list of circuit connections associated * with Azure Private Peering for this circuit. * @property {string} [name] Gets name of the resource that is unique within @@ -274,14 +271,6 @@ class ExpressRouteCircuitPeering extends models['SubResource'] { className: 'Ipv6ExpressRouteCircuitPeeringConfig' } }, - expressRouteConnection: { - required: false, - serializedName: 'properties.expressRouteConnection', - type: { - name: 'Composite', - className: 'ExpressRouteConnectionId' - } - }, connections: { required: false, serializedName: 'properties.connections', diff --git a/lib/services/networkManagement2/lib/models/expressRouteCircuitSku.js b/lib/services/networkManagement2/lib/models/expressRouteCircuitSku.js index 3f1132db46..e51b88baa3 100644 --- a/lib/services/networkManagement2/lib/models/expressRouteCircuitSku.js +++ b/lib/services/networkManagement2/lib/models/expressRouteCircuitSku.js @@ -19,8 +19,7 @@ class ExpressRouteCircuitSku { * Create a ExpressRouteCircuitSku. * @property {string} [name] The name of the SKU. * @property {string} [tier] The tier of the SKU. Possible values are - * 'Standard', 'Premium' or 'Basic'. Possible values include: 'Standard', - * 'Premium', 'Basic' + * 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' * @property {string} [family] The family of the SKU. Possible values are: * 'UnlimitedData' and 'MeteredData'. Possible values include: * 'UnlimitedData', 'MeteredData' diff --git a/lib/services/networkManagement2/lib/models/flowLogInformation.js b/lib/services/networkManagement2/lib/models/flowLogInformation.js index 20bbb0b7f4..fb07fd58ed 100644 --- a/lib/services/networkManagement2/lib/models/flowLogInformation.js +++ b/lib/services/networkManagement2/lib/models/flowLogInformation.js @@ -28,11 +28,6 @@ class FlowLogInformation { * log records. * @property {boolean} [retentionPolicy.enabled] Flag to enable/disable * retention. - * @property {object} [format] - * @property {string} [format.type] The file type of flow log. Possible - * values include: 'JSON' - * @property {number} [format.version] The version (revision) of the flow - * log. * @property {object} [flowAnalyticsConfiguration] * @property {object} * [flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration] @@ -48,10 +43,6 @@ class FlowLogInformation { * @property {string} * [flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId] * Resource Id of the attached workspace - * @property {number} - * [flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval] - * The interval in minutes which would decide how frequently TA service - * should do flow analytics */ constructor() { } @@ -99,14 +90,6 @@ class FlowLogInformation { className: 'RetentionPolicyParameters' } }, - format: { - required: false, - serializedName: 'properties.format', - type: { - name: 'Composite', - className: 'FlowLogFormatParameters' - } - }, flowAnalyticsConfiguration: { required: false, serializedName: 'flowAnalyticsConfiguration', diff --git a/lib/services/networkManagement2/lib/models/frontendIPConfiguration.js b/lib/services/networkManagement2/lib/models/frontendIPConfiguration.js index 935a6e5dfe..886d3a4244 100644 --- a/lib/services/networkManagement2/lib/models/frontendIPConfiguration.js +++ b/lib/services/networkManagement2/lib/models/frontendIPConfiguration.js @@ -24,8 +24,8 @@ class FrontendIPConfiguration extends models['SubResource'] { * this frontend IP. * @property {array} [inboundNatPools] Read only. Inbound pools URIs that use * this frontend IP. - * @property {array} [outboundRules] Read only. Outbound rules URIs that use - * this frontend IP. + * @property {array} [outboundNatRules] Read only. Outbound rules URIs that + * use this frontend IP. * @property {array} [loadBalancingRules] Gets load balancing rules URIs that * use this frontend IP. * @property {string} [privateIPAddress] The private IP address of the IP @@ -36,8 +36,6 @@ class FrontendIPConfiguration extends models['SubResource'] { * @property {object} [subnet] The reference of the subnet resource. * @property {string} [subnet.addressPrefix] The address prefix for the * subnet. - * @property {array} [subnet.addressPrefixes] List of address prefixes for - * the subnet. * @property {object} [subnet.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * @property {array} [subnet.networkSecurityGroup.securityRules] A collection @@ -70,23 +68,10 @@ class FrontendIPConfiguration extends models['SubResource'] { * @property {string} [subnet.routeTable.etag] Gets a unique read-only string * that changes whenever the resource is updated. * @property {array} [subnet.serviceEndpoints] An array of service endpoints. - * @property {array} [subnet.serviceEndpointPolicies] An array of service - * endpoint policies. - * @property {array} [subnet.interfaceEndpoints] An array of references to - * interface endpoints * @property {array} [subnet.ipConfigurations] Gets an array of references to * the network interface IP configurations using subnet. - * @property {array} [subnet.ipConfigurationProfiles] Array of IP - * configuration profiles which reference this subnet. * @property {array} [subnet.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. - * @property {array} [subnet.serviceAssociationLinks] Gets an array of - * references to services injecting into this subnet. - * @property {array} [subnet.delegations] Gets an array of references to the - * delegations on the subnet. - * @property {string} [subnet.purpose] A read-only string identifying the - * intention of use for this subnet based on delegations and other - * user-defined properties. * @property {string} [subnet.provisioningState] The provisioning state of * the resource. * @property {string} [subnet.name] The name of the resource that is unique @@ -116,8 +101,6 @@ class FrontendIPConfiguration extends models['SubResource'] { * of the subnet resource. * @property {string} [publicIPAddress.ipConfiguration.subnet.addressPrefix] * The address prefix for the subnet. - * @property {array} [publicIPAddress.ipConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. * @property {object} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] The * reference of the NetworkSecurityGroup resource. @@ -166,28 +149,11 @@ class FrontendIPConfiguration extends models['SubResource'] { * [publicIPAddress.ipConfiguration.subnet.serviceEndpoints] An array of * service endpoints. * @property {array} - * [publicIPAddress.ipConfiguration.subnet.serviceEndpointPolicies] An array - * of service endpoint policies. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.interfaceEndpoints] An array of - * references to interface endpoints - * @property {array} * [publicIPAddress.ipConfiguration.subnet.ipConfigurations] Gets an array of * references to the network interface IP configurations using subnet. * @property {array} - * [publicIPAddress.ipConfiguration.subnet.ipConfigurationProfiles] Array of - * IP configuration profiles which reference this subnet. - * @property {array} * [publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] Gets an * array of references to the external resources using subnet. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.serviceAssociationLinks] Gets an - * array of references to services injecting into this subnet. - * @property {array} [publicIPAddress.ipConfiguration.subnet.delegations] - * Gets an array of references to the delegations on the subnet. - * @property {string} [publicIPAddress.ipConfiguration.subnet.purpose] A - * read-only string identifying the intention of use for this subnet based on - * delegations and other user-defined properties. * @property {string} * [publicIPAddress.ipConfiguration.subnet.provisioningState] The * provisioning state of the resource. @@ -227,9 +193,6 @@ class FrontendIPConfiguration extends models['SubResource'] { * with the public IP address. * @property {string} [publicIPAddress.ipAddress] The IP address associated * with the public IP address resource. - * @property {object} [publicIPAddress.publicIPPrefix] The Public IP Prefix - * this Public IP Address should be allocated from. - * @property {string} [publicIPAddress.publicIPPrefix.id] Resource ID. * @property {number} [publicIPAddress.idleTimeoutInMinutes] The idle timeout * of the public IP address. * @property {string} [publicIPAddress.resourceGuid] The resource GUID @@ -241,9 +204,6 @@ class FrontendIPConfiguration extends models['SubResource'] { * changes whenever the resource is updated. * @property {array} [publicIPAddress.zones] A list of availability zones * denoting the IP allocated for the resource needs to come from. - * @property {object} [publicIPPrefix] The reference of the Public IP Prefix - * resource. - * @property {string} [publicIPPrefix.id] Resource ID. * @property {string} [provisioningState] Gets the provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. @@ -311,10 +271,10 @@ class FrontendIPConfiguration extends models['SubResource'] { } } }, - outboundRules: { + outboundNatRules: { required: false, readOnly: true, - serializedName: 'properties.outboundRules', + serializedName: 'properties.outboundNatRules', type: { name: 'Sequence', element: { @@ -373,14 +333,6 @@ class FrontendIPConfiguration extends models['SubResource'] { className: 'PublicIPAddress' } }, - publicIPPrefix: { - required: false, - serializedName: 'properties.publicIPPrefix', - type: { - name: 'Composite', - className: 'SubResource' - } - }, provisioningState: { required: false, serializedName: 'properties.provisioningState', diff --git a/lib/services/networkManagement2/lib/models/getVpnSitesConfigurationRequest.js b/lib/services/networkManagement2/lib/models/getVpnSitesConfigurationRequest.js index 26d9b83235..332b166bf4 100644 --- a/lib/services/networkManagement2/lib/models/getVpnSitesConfigurationRequest.js +++ b/lib/services/networkManagement2/lib/models/getVpnSitesConfigurationRequest.js @@ -46,9 +46,10 @@ class GetVpnSitesConfigurationRequest { name: 'Sequence', element: { required: false, - serializedName: 'StringElementType', + serializedName: 'SubResourceElementType', type: { - name: 'String' + name: 'Composite', + className: 'SubResource' } } } diff --git a/lib/services/networkManagement2/lib/models/hubVirtualNetworkConnection.js b/lib/services/networkManagement2/lib/models/hubVirtualNetworkConnection.js index 15bca23ebf..f130296c62 100644 --- a/lib/services/networkManagement2/lib/models/hubVirtualNetworkConnection.js +++ b/lib/services/networkManagement2/lib/models/hubVirtualNetworkConnection.js @@ -15,9 +15,9 @@ const models = require('./index'); /** * HubVirtualNetworkConnection Resource. * - * @extends models['SubResource'] + * @extends models['Resource'] */ -class HubVirtualNetworkConnection extends models['SubResource'] { +class HubVirtualNetworkConnection extends models['Resource'] { /** * Create a HubVirtualNetworkConnection. * @property {object} [remoteVirtualNetwork] Reference to the remote virtual @@ -27,12 +27,9 @@ class HubVirtualNetworkConnection extends models['SubResource'] { * transit to enabled or not. * @property {boolean} [allowRemoteVnetToUseHubVnetGateways] Allow RemoteVnet * to use Virtual Hub's gateways. - * @property {boolean} [enableInternetSecurity] Enable internet security * @property {string} [provisioningState] The provisioning state of the * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. * @property {string} [etag] Gets a unique read-only string that changes * whenever the resource is updated. */ @@ -61,6 +58,43 @@ class HubVirtualNetworkConnection extends models['SubResource'] { name: 'String' } }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + location: { + required: false, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, remoteVirtualNetwork: { required: false, serializedName: 'properties.remoteVirtualNetwork', @@ -83,13 +117,6 @@ class HubVirtualNetworkConnection extends models['SubResource'] { name: 'Boolean' } }, - enableInternetSecurity: { - required: false, - serializedName: 'properties.enableInternetSecurity', - type: { - name: 'Boolean' - } - }, provisioningState: { required: false, serializedName: 'properties.provisioningState', @@ -97,13 +124,6 @@ class HubVirtualNetworkConnection extends models['SubResource'] { name: 'String' } }, - name: { - required: false, - serializedName: 'name', - type: { - name: 'String' - } - }, etag: { required: false, readOnly: true, diff --git a/lib/services/networkManagement2/lib/models/iPConfiguration.js b/lib/services/networkManagement2/lib/models/iPConfiguration.js index 8fb1f9cc92..313176cc5e 100644 --- a/lib/services/networkManagement2/lib/models/iPConfiguration.js +++ b/lib/services/networkManagement2/lib/models/iPConfiguration.js @@ -28,8 +28,6 @@ class IPConfiguration extends models['SubResource'] { * @property {object} [subnet] The reference of the subnet resource. * @property {string} [subnet.addressPrefix] The address prefix for the * subnet. - * @property {array} [subnet.addressPrefixes] List of address prefixes for - * the subnet. * @property {object} [subnet.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * @property {array} [subnet.networkSecurityGroup.securityRules] A collection @@ -62,23 +60,10 @@ class IPConfiguration extends models['SubResource'] { * @property {string} [subnet.routeTable.etag] Gets a unique read-only string * that changes whenever the resource is updated. * @property {array} [subnet.serviceEndpoints] An array of service endpoints. - * @property {array} [subnet.serviceEndpointPolicies] An array of service - * endpoint policies. - * @property {array} [subnet.interfaceEndpoints] An array of references to - * interface endpoints * @property {array} [subnet.ipConfigurations] Gets an array of references to * the network interface IP configurations using subnet. - * @property {array} [subnet.ipConfigurationProfiles] Array of IP - * configuration profiles which reference this subnet. * @property {array} [subnet.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. - * @property {array} [subnet.serviceAssociationLinks] Gets an array of - * references to services injecting into this subnet. - * @property {array} [subnet.delegations] Gets an array of references to the - * delegations on the subnet. - * @property {string} [subnet.purpose] A read-only string identifying the - * intention of use for this subnet based on delegations and other - * user-defined properties. * @property {string} [subnet.provisioningState] The provisioning state of * the resource. * @property {string} [subnet.name] The name of the resource that is unique @@ -119,9 +104,6 @@ class IPConfiguration extends models['SubResource'] { * with the public IP address. * @property {string} [publicIPAddress.ipAddress] The IP address associated * with the public IP address resource. - * @property {object} [publicIPAddress.publicIPPrefix] The Public IP Prefix - * this Public IP Address should be allocated from. - * @property {string} [publicIPAddress.publicIPPrefix.id] Resource ID. * @property {number} [publicIPAddress.idleTimeoutInMinutes] The idle timeout * of the public IP address. * @property {string} [publicIPAddress.resourceGuid] The resource GUID diff --git a/lib/services/networkManagement2/lib/models/inboundNatPool.js b/lib/services/networkManagement2/lib/models/inboundNatPool.js index 230aa8e08a..d9c017daca 100644 --- a/lib/services/networkManagement2/lib/models/inboundNatPool.js +++ b/lib/services/networkManagement2/lib/models/inboundNatPool.js @@ -43,9 +43,6 @@ class InboundNatPool extends models['SubResource'] { * 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. - * @property {boolean} [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. * @property {string} [provisioningState] Gets the provisioning state of the * PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. @@ -129,13 +126,6 @@ class InboundNatPool extends models['SubResource'] { name: 'Boolean' } }, - enableTcpReset: { - required: false, - serializedName: 'properties.enableTcpReset', - type: { - name: 'Boolean' - } - }, provisioningState: { required: false, serializedName: 'properties.provisioningState', diff --git a/lib/services/networkManagement2/lib/models/inboundNatRule.js b/lib/services/networkManagement2/lib/models/inboundNatRule.js index 691ac8beac..8e8a809b7a 100644 --- a/lib/services/networkManagement2/lib/models/inboundNatRule.js +++ b/lib/services/networkManagement2/lib/models/inboundNatRule.js @@ -27,8 +27,6 @@ class InboundNatRule extends models['SubResource'] { * address defined on a network interface of a VM. Traffic sent to the * frontend port of each of the frontend IP configurations is forwarded to * the backend IP. - * @property {array} [backendIPConfiguration.virtualNetworkTaps] The - * reference to Virtual Network Taps. * @property {array} * [backendIPConfiguration.applicationGatewayBackendAddressPools] The * reference of ApplicationGatewayBackendAddressPool resource. @@ -50,8 +48,6 @@ class InboundNatRule extends models['SubResource'] { * configuration. * @property {string} [backendIPConfiguration.subnet.addressPrefix] The * address prefix for the subnet. - * @property {array} [backendIPConfiguration.subnet.addressPrefixes] List of - * address prefixes for the subnet. * @property {object} [backendIPConfiguration.subnet.networkSecurityGroup] * The reference of the NetworkSecurityGroup resource. * @property {array} @@ -94,24 +90,11 @@ class InboundNatRule extends models['SubResource'] { * unique read-only string that changes whenever the resource is updated. * @property {array} [backendIPConfiguration.subnet.serviceEndpoints] An * array of service endpoints. - * @property {array} [backendIPConfiguration.subnet.serviceEndpointPolicies] - * An array of service endpoint policies. - * @property {array} [backendIPConfiguration.subnet.interfaceEndpoints] An - * array of references to interface endpoints * @property {array} [backendIPConfiguration.subnet.ipConfigurations] Gets an * array of references to the network interface IP configurations using * subnet. - * @property {array} [backendIPConfiguration.subnet.ipConfigurationProfiles] - * Array of IP configuration profiles which reference this subnet. * @property {array} [backendIPConfiguration.subnet.resourceNavigationLinks] * Gets an array of references to the external resources using subnet. - * @property {array} [backendIPConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. - * @property {array} [backendIPConfiguration.subnet.delegations] Gets an - * array of references to the delegations on the subnet. - * @property {string} [backendIPConfiguration.subnet.purpose] A read-only - * string identifying the intention of use for this subnet based on - * delegations and other user-defined properties. * @property {string} [backendIPConfiguration.subnet.provisioningState] The * provisioning state of the resource. * @property {string} [backendIPConfiguration.subnet.name] The name of the @@ -151,9 +134,6 @@ class InboundNatRule extends models['SubResource'] { * @property {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefix] * The address prefix for the subnet. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. * @property {object} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] * The reference of the NetworkSecurityGroup resource. @@ -204,31 +184,12 @@ class InboundNatRule extends models['SubResource'] { * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpoints] * An array of service endpoints. * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpointPolicies] - * An array of service endpoint policies. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.interfaceEndpoints] - * An array of references to interface endpoints - * @property {array} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurations] * Gets an array of references to the network interface IP configurations * using subnet. * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurationProfiles] - * Array of IP configuration profiles which reference this subnet. - * @property {array} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] * Gets an array of references to the external resources using subnet. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.delegations] - * Gets an array of references to the delegations on the subnet. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.purpose] A - * read-only string identifying the intention of use for this subnet based on - * delegations and other user-defined properties. * @property {string} * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.provisioningState] * The provisioning state of the resource. @@ -277,10 +238,6 @@ class InboundNatRule extends models['SubResource'] { * of tags associated with the public IP address. * @property {string} [backendIPConfiguration.publicIPAddress.ipAddress] The * IP address associated with the public IP address resource. - * @property {object} [backendIPConfiguration.publicIPAddress.publicIPPrefix] - * The Public IP Prefix this Public IP Address should be allocated from. - * @property {string} - * [backendIPConfiguration.publicIPAddress.publicIPPrefix.id] Resource ID. * @property {number} * [backendIPConfiguration.publicIPAddress.idleTimeoutInMinutes] The idle * timeout of the public IP address. @@ -320,9 +277,6 @@ class InboundNatRule extends models['SubResource'] { * 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. - * @property {boolean} [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. * @property {string} [provisioningState] Gets the provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. @@ -408,13 +362,6 @@ class InboundNatRule extends models['SubResource'] { name: 'Boolean' } }, - enableTcpReset: { - required: false, - serializedName: 'properties.enableTcpReset', - type: { - name: 'Boolean' - } - }, provisioningState: { required: false, serializedName: 'properties.provisioningState', diff --git a/lib/services/networkManagement2/lib/models/index.d.ts b/lib/services/networkManagement2/lib/models/index.d.ts index 2ab52865a5..0fb43b5f89 100644 --- a/lib/services/networkManagement2/lib/models/index.d.ts +++ b/lib/services/networkManagement2/lib/models/index.d.ts @@ -1,6596 +1,3056 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { BaseResource } from 'ms-rest-azure'; -import { CloudError } from 'ms-rest-azure'; -import * as moment from 'moment'; +import { BaseResource, CloudError } from "ms-rest-azure"; +import * as moment from "moment"; -export { BaseResource } from 'ms-rest-azure'; -export { CloudError } from 'ms-rest-azure'; +export { + BaseResource, + CloudError +}; /** - * @class - * Initializes a new instance of the SubResource class. - * @constructor * Reference to another subresource. - * - * @property {string} [id] Resource ID. */ export interface SubResource extends BaseResource { + /** + * Resource ID. + */ id?: string; } /** - * @class - * Initializes a new instance of the NetworkInterfaceTapConfiguration class. - * @constructor - * Tap configuration in a Network Interface - * - * @property {object} [virtualNetworkTap] The reference of the Virtual Network - * Tap resource. - * @property {array} [virtualNetworkTap.networkInterfaceTapConfigurations] - * Specifies the list of resource IDs for the network interface IP - * configuration that needs to be tapped. - * @property {string} [virtualNetworkTap.resourceGuid] The resourceGuid - * property of the virtual network tap. - * @property {string} [virtualNetworkTap.provisioningState] The provisioning - * state of the virtual network tap. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {object} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration] The reference - * to the private IP Address of the collector nic that will receive the tap - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.virtualNetworkTaps] - * The reference to Virtual Network Taps. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.applicationGatewayBackendAddressPools] - * The reference of ApplicationGatewayBackendAddressPool resource. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.loadBalancerBackendAddressPools] - * The reference of LoadBalancerBackendAddressPool resource. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.loadBalancerInboundNatRules] - * A list of references of LoadBalancerInboundNatRules. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAddress] - * Private IP address of the IP configuration. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAllocationMethod] - * Defines how a private IP address is assigned. Possible values are: 'Static' - * and 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * @property {string} - * [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 are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', - * 'IPv6' - * @property {object} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet] Subnet - * bound to the IP configuration. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.addressPrefix] - * The address prefix for the subnet. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. - * @property {object} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup] - * The reference of the NetworkSecurityGroup resource. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup.subnets] - * A collection of references to subnets. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.routeTable] - * The reference of the RouteTable resource. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.routeTable.subnets] - * A collection of references to subnets. - * @property {boolean} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.routeTable.disableBgpRoutePropagation] - * Gets or sets whether to disable the routes learned by BGP on that route - * table. True means disable. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.serviceEndpoints] - * An array of service endpoints. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.serviceEndpointPolicies] - * An array of service endpoint policies. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.interfaceEndpoints] - * An array of references to interface endpoints - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.ipConfigurations] - * Gets an array of references to the network interface IP configurations using - * subnet. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.ipConfigurationProfiles] - * Array of IP configuration profiles which reference this subnet. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.resourceNavigationLinks] - * Gets an array of references to the external resources using subnet. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.delegations] - * Gets an array of references to the delegations on the subnet. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.purpose] - * A read-only string identifying the intention of use for this subnet based on - * delegations and other user-defined properties. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.provisioningState] - * The provisioning state of the resource. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.name] - * The name of the resource that is unique within a resource group. This name - * can be used to access the resource. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet.etag] A - * unique read-only string that changes whenever the resource is updated. - * @property {boolean} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.primary] Gets - * whether this is a primary customer address on the network interface. - * @property {object} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress] - * Public IP address bound to the IP configuration. - * @property {object} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.sku] - * The public IP address SKU. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.sku.name] - * Name of a public IP address SKU. Possible values include: 'Basic', - * 'Standard' - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.publicIPAllocationMethod] - * The public IP allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.publicIPAddressVersion] - * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. - * Possible values include: 'IPv4', 'IPv6' - * @property {object} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration] - * The IP configuration associated with the public IP address. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.privateIPAddress] - * The private IP address of the IP configuration. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.privateIPAllocationMethod] - * The private IP allocation method. Possible values are 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * @property {object} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet] - * The reference of the subnet resource. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefix] - * The address prefix for the subnet. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. - * @property {object} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] - * The reference of the NetworkSecurityGroup resource. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] - * A collection of references to subnets. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable] - * The reference of the RouteTable resource. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.subnets] - * A collection of references to subnets. - * @property {boolean} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.disableBgpRoutePropagation] - * Gets or sets whether to disable the routes learned by BGP on that route - * table. True means disable. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpoints] - * An array of service endpoints. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpointPolicies] - * An array of service endpoint policies. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.interfaceEndpoints] - * An array of references to interface endpoints - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurations] - * Gets an array of references to the network interface IP configurations using - * subnet. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurationProfiles] - * Array of IP configuration profiles which reference this subnet. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] - * Gets an array of references to the external resources using subnet. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.delegations] - * Gets an array of references to the delegations on the subnet. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.purpose] - * A read-only string identifying the intention of use for this subnet based on - * delegations and other user-defined properties. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.provisioningState] - * The provisioning state of the resource. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.name] - * The name of the resource that is unique within a resource group. This name - * can be used to access the resource. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.publicIPAddress] - * The reference of the public IP resource. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.provisioningState] - * Gets the provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.name] - * The name of the resource that is unique within a resource group. This name - * can be used to access the resource. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.dnsSettings] - * The FQDN of the DNS record associated with the public IP address. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.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. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.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. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.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. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipTags] - * The list of tags associated with the public IP address. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipAddress] - * The IP address associated with the public IP address resource. - * @property {object} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.publicIPPrefix] - * The Public IP Prefix this Public IP Address should be allocated from. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.publicIPPrefix.id] - * Resource ID. - * @property {number} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.idleTimeoutInMinutes] - * The idle timeout of the public IP address. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.resourceGuid] - * The resource GUID property of the public IP resource. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.provisioningState] - * The provisioning state of the PublicIP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress.zones] - * A list of availability zones denoting the IP allocated for the resource - * needs to come from. - * @property {array} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.applicationSecurityGroups] - * Application security groups in which the IP configuration is included. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.provisioningState] - * The provisioning state of the network interface IP configuration. Possible - * values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.name] The name - * of the resource that is unique within a resource group. This name can be - * used to access the resource. - * @property {string} - * [virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.etag] A unique - * read-only string that changes whenever the resource is updated. - * @property {object} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration] The - * reference to the private IP address on the internal Load Balancer that will - * receive the tap - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.inboundNatRules] - * Read only. Inbound rules URIs that use this frontend IP. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.inboundNatPools] - * Read only. Inbound pools URIs that use this frontend IP. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.outboundRules] - * Read only. Outbound rules URIs that use this frontend IP. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.loadBalancingRules] - * Gets load balancing rules URIs that use this frontend IP. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAddress] - * The private IP address of the IP configuration. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAllocationMethod] - * The Private IP allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * @property {object} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet] - * The reference of the subnet resource. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefix] - * The address prefix for the subnet. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. - * @property {object} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup] - * The reference of the NetworkSecurityGroup resource. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.subnets] - * A collection of references to subnets. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable] - * The reference of the RouteTable resource. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.subnets] - * A collection of references to subnets. - * @property {boolean} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.disableBgpRoutePropagation] - * Gets or sets whether to disable the routes learned by BGP on that route - * table. True means disable. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpoints] - * An array of service endpoints. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpointPolicies] - * An array of service endpoint policies. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.interfaceEndpoints] - * An array of references to interface endpoints - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.ipConfigurations] - * Gets an array of references to the network interface IP configurations using - * subnet. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.ipConfigurationProfiles] - * Array of IP configuration profiles which reference this subnet. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.resourceNavigationLinks] - * Gets an array of references to the external resources using subnet. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.delegations] - * Gets an array of references to the delegations on the subnet. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.purpose] - * A read-only string identifying the intention of use for this subnet based on - * delegations and other user-defined properties. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.provisioningState] - * The provisioning state of the resource. - * @property {string} - * [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. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress] - * The reference of the Public IP resource. - * @property {object} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku] - * The public IP address SKU. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku.name] - * Name of a public IP address SKU. Possible values include: 'Basic', - * 'Standard' - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAllocationMethod] - * The public IP allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] - * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. - * Possible values include: 'IPv4', 'IPv6' - * @property {object} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration] - * The IP configuration associated with the public IP address. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.privateIPAddress] - * The private IP address of the IP configuration. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.privateIPAllocationMethod] - * The private IP allocation method. Possible values are 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * @property {object} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet] - * The reference of the subnet resource. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefix] - * The address prefix for the subnet. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. - * @property {object} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] - * The reference of the NetworkSecurityGroup resource. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] - * A collection of references to subnets. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable] - * The reference of the RouteTable resource. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.subnets] - * A collection of references to subnets. - * @property {boolean} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.disableBgpRoutePropagation] - * Gets or sets whether to disable the routes learned by BGP on that route - * table. True means disable. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpoints] - * An array of service endpoints. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpointPolicies] - * An array of service endpoint policies. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.interfaceEndpoints] - * An array of references to interface endpoints - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurations] - * Gets an array of references to the network interface IP configurations using - * subnet. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurationProfiles] - * Array of IP configuration profiles which reference this subnet. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] - * Gets an array of references to the external resources using subnet. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.delegations] - * Gets an array of references to the delegations on the subnet. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.purpose] - * A read-only string identifying the intention of use for this subnet based on - * delegations and other user-defined properties. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.provisioningState] - * The provisioning state of the resource. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.name] - * The name of the resource that is unique within a resource group. This name - * can be used to access the resource. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.publicIPAddress] - * The reference of the public IP resource. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.provisioningState] - * Gets the provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.name] - * The name of the resource that is unique within a resource group. This name - * can be used to access the resource. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings] - * The FQDN of the DNS record associated with the public IP address. - * @property {string} - * [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. - * @property {string} - * [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. - * @property {string} - * [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. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipTags] - * The list of tags associated with the public IP address. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipAddress] - * The IP address associated with the public IP address resource. - * @property {object} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPPrefix] - * The Public IP Prefix this Public IP Address should be allocated from. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPPrefix.id] - * Resource ID. - * @property {number} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.idleTimeoutInMinutes] - * The idle timeout of the public IP address. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.resourceGuid] - * The resource GUID property of the public IP resource. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.provisioningState] - * The provisioning state of the PublicIP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.zones] - * A list of availability zones denoting the IP allocated for the resource - * needs to come from. - * @property {object} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix] - * The reference of the Public IP Prefix resource. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix.id] - * Resource ID. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.provisioningState] - * Gets the provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.name] The - * name of the resource that is unique within a resource group. This name can - * be used to access the resource. - * @property {string} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.etag] A - * unique read-only string that changes whenever the resource is updated. - * @property {array} - * [virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.zones] A - * list of availability zones denoting the IP allocated for the resource needs - * to come from. - * @property {number} [virtualNetworkTap.destinationPort] The VXLAN destination - * port that will receive the tapped traffic. - * @property {string} [virtualNetworkTap.etag] Gets a unique read-only string - * that changes whenever the resource is updated. - * @property {string} [provisioningState] The provisioning state of the network - * interface tap configuration. Possible values are: 'Updating', 'Deleting', - * and 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Sub Resource type. + * IP configuration of an Azure Firewall. */ -export interface NetworkInterfaceTapConfiguration extends SubResource { - virtualNetworkTap?: VirtualNetworkTap; - readonly provisioningState?: string; +export interface AzureFirewallIPConfiguration extends SubResource { + /** + * The Firewall Internal Load Balancer IP to be used as the next hop in User Defined Routes. + */ + privateIPAddress?: string; + /** + * Reference of the subnet resource. This resource must be named 'AzureFirewallSubnet'. + */ + subnet?: SubResource; + /** + * Reference of the PublicIP resource. This field is a mandatory input. + */ + internalPublicIpAddress?: SubResource; + /** + * Reference of the PublicIP resource. This field is populated in the output. + */ + publicIPAddress?: SubResource; + /** + * The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' + */ + provisioningState?: string; + /** + * Name of the resource that is unique within a resource group. This name can be used to access + * the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; - readonly type?: string; } /** - * @class - * Initializes a new instance of the Resource class. - * @constructor + * Properties of the AzureFirewallRCAction. + */ +export interface AzureFirewallRCAction { + /** + * The type of action. Possible values include: 'Allow', 'Deny' + */ + type?: string; +} + +/** + * Properties of the application rule protocol. + */ +export interface AzureFirewallApplicationRuleProtocol { + /** + * Protocol type. Possible values include: 'Http', 'Https' + */ + protocolType?: string; + /** + * Port number for the protocol, cannot be greater than 64000. This field is optional. + */ + port?: number; +} + +/** + * Properties of an application rule. + */ +export interface AzureFirewallApplicationRule { + /** + * Name of the application rule. + */ + name?: string; + /** + * Description of the rule. + */ + description?: string; + /** + * List of source IP addresses for this rule. + */ + sourceAddresses?: string[]; + /** + * Array of ApplicationRuleProtocols. + */ + protocols?: AzureFirewallApplicationRuleProtocol[]; + /** + * List of URLs for this rule. + */ + targetUrls?: string[]; +} + +/** + * Application rule collection resource + */ +export interface AzureFirewallApplicationRuleCollection extends SubResource { + /** + * Priority of the application rule collection resource. + */ + priority?: number; + /** + * The action type of a rule collection + */ + action?: AzureFirewallRCAction; + /** + * Collection of rules used by a application rule collection. + */ + rules?: AzureFirewallApplicationRule[]; + /** + * The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' + */ + provisioningState?: string; + /** + * Gets name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ + name?: string; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ + readonly etag?: string; +} + +/** + * Properties of the network rule. + */ +export interface AzureFirewallNetworkRule { + /** + * Name of the network rule. + */ + name?: string; + /** + * Description of the rule. + */ + description?: string; + /** + * Array of AzureFirewallNetworkRuleProtocols. + */ + protocols?: string[]; + /** + * List of source IP addresses for this rule. + */ + sourceAddresses?: string[]; + /** + * List of destination IP addresses. + */ + destinationAddresses?: string[]; + /** + * List of destination ports. + */ + destinationPorts?: string[]; +} + +/** + * Network rule collection resource + */ +export interface AzureFirewallNetworkRuleCollection extends SubResource { + /** + * Priority of the network rule collection resource. + */ + priority?: number; + /** + * The action type of a rule collection + */ + action?: AzureFirewallRCAction; + /** + * Collection of rules used by a network rule collection. + */ + rules?: AzureFirewallNetworkRule[]; + /** + * The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' + */ + provisioningState?: string; + /** + * Gets name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ + name?: string; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ + readonly etag?: string; +} + +/** * Common resource representation. - * - * @property {string} [id] Resource ID. - * @property {string} [name] Resource name. - * @property {string} [type] Resource type. - * @property {string} [location] Resource location. - * @property {object} [tags] Resource tags. */ export interface Resource extends BaseResource { + /** + * Resource ID. + */ id?: string; + /** + * Resource name. + */ readonly name?: string; + /** + * Resource type. + */ readonly type?: string; + /** + * Resource location. + */ location?: string; + /** + * Resource tags. + */ tags?: { [propertyName: string]: string }; } /** - * @class - * Initializes a new instance of the ApplicationSecurityGroup class. - * @constructor + * Azure Firewall resource + */ +export interface AzureFirewall extends Resource { + /** + * Collection of application rule collections used by a Azure Firewall. + */ + applicationRuleCollections?: AzureFirewallApplicationRuleCollection[]; + /** + * Collection of network rule collections used by a Azure Firewall. + */ + networkRuleCollections?: AzureFirewallNetworkRuleCollection[]; + /** + * IP configuration of the Azure Firewall resource. + */ + ipConfigurations?: AzureFirewallIPConfiguration[]; + /** + * The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' + */ + provisioningState?: string; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ + readonly etag?: string; +} + +/** + * Pool of backend IP addresses. + */ +export interface BackendAddressPool extends SubResource { + /** + * Gets collection of references to IP addresses defined in network interfaces. + */ + readonly backendIPConfigurations?: NetworkInterfaceIPConfiguration[]; + /** + * Gets load balancing rules that use this backend address pool. + */ + readonly loadBalancingRules?: SubResource[]; + /** + * Gets outbound rules that use this backend address pool. + */ + readonly outboundNatRule?: SubResource; + /** + * Get provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', + * and 'Failed'. + */ + provisioningState?: string; + /** + * Gets name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ + name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ + etag?: string; +} + +/** + * Inbound NAT rule of the load balancer. + */ +export interface InboundNatRule extends SubResource { + /** + * A reference to frontend IP addresses. + */ + frontendIPConfiguration?: SubResource; + /** + * A reference to a private IP address defined on a network interface of a VM. Traffic sent to + * the frontend port of each of the frontend IP configurations is forwarded to the backend IP. + */ + readonly backendIPConfiguration?: NetworkInterfaceIPConfiguration; + /** + * Possible values include: 'Udp', 'Tcp', 'All' + */ + protocol?: string; + /** + * 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. + */ + frontendPort?: number; + /** + * The port used for the internal endpoint. Acceptable values range from 1 to 65535. + */ + backendPort?: number; + /** + * 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. + */ + idleTimeoutInMinutes?: number; + /** + * 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. + */ + enableFloatingIP?: boolean; + /** + * Gets the provisioning state of the public IP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ + provisioningState?: string; + /** + * Gets name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ + name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ + etag?: string; +} + +/** * An application security group in a resource group. - * - * @property {string} [resourceGuid] The resource GUID property of the - * application security group resource. It uniquely identifies a resource, even - * if the user changes its name or migrate the resource across subscriptions or - * resource groups. - * @property {string} [provisioningState] The provisioning state of the - * application security group resource. Possible values are: 'Succeeded', - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. */ export interface ApplicationSecurityGroup extends Resource { + /** + * The resource GUID property of the application security group resource. It uniquely identifies + * a resource, even if the user changes its name or migrate the resource across subscriptions or + * resource groups. + */ readonly resourceGuid?: string; + /** + * The provisioning state of the application security group resource. Possible values are: + * 'Succeeded', 'Updating', 'Deleting', and 'Failed'. + */ readonly provisioningState?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the SecurityRule class. - * @constructor * Network security rule. - * - * @property {string} [description] A description for this rule. Restricted to - * 140 chars. - * @property {string} protocol Network protocol this rule applies to. Possible - * values are 'Tcp', 'Udp', and '*'. Possible values include: 'Tcp', 'Udp', '*' - * @property {string} [sourcePortRange] The source port or range. Integer or - * range between 0 and 65535. Asterix '*' can also be used to match all ports. - * @property {string} [destinationPortRange] The destination port or range. - * Integer or range between 0 and 65535. Asterix '*' can also be used to match - * all ports. - * @property {string} [sourceAddressPrefix] The CIDR or source IP range. - * Asterix '*' 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. - * @property {array} [sourceAddressPrefixes] The CIDR or source IP ranges. - * @property {array} [sourceApplicationSecurityGroups] The application security - * group specified as source. - * @property {string} [destinationAddressPrefix] The destination address - * prefix. CIDR or destination IP range. Asterix '*' can also be used to match - * all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' - * and 'Internet' can also be used. - * @property {array} [destinationAddressPrefixes] The destination address - * prefixes. CIDR or destination IP ranges. - * @property {array} [destinationApplicationSecurityGroups] The application - * security group specified as destination. - * @property {array} [sourcePortRanges] The source port ranges. - * @property {array} [destinationPortRanges] The destination port ranges. - * @property {string} access The network traffic is allowed or denied. Possible - * values are: 'Allow' and 'Deny'. Possible values include: 'Allow', 'Deny' - * @property {number} [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. - * @property {string} direction The direction of the rule. The direction - * specifies if rule will be evaluated on incoming or outcoming traffic. - * Possible values are: 'Inbound' and 'Outbound'. Possible values include: - * 'Inbound', 'Outbound' - * @property {string} [provisioningState] The provisioning state of the public - * IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. */ export interface SecurityRule extends SubResource { + /** + * A description for this rule. Restricted to 140 chars. + */ description?: string; + /** + * Network protocol this rule applies to. Possible values are 'Tcp', 'Udp', and '*'. Possible + * values include: 'Tcp', 'Udp', '*' + */ protocol: string; + /** + * The source port or range. Integer or range between 0 and 65535. Asterix '*' can also be used + * to match all ports. + */ sourcePortRange?: string; + /** + * The destination port or range. Integer or range between 0 and 65535. Asterix '*' can also be + * used to match all ports. + */ destinationPortRange?: string; + /** + * The CIDR or source IP range. Asterix '*' 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. + */ sourceAddressPrefix?: string; + /** + * The CIDR or source IP ranges. + */ sourceAddressPrefixes?: string[]; + /** + * The application security group specified as source. + */ sourceApplicationSecurityGroups?: ApplicationSecurityGroup[]; + /** + * The destination address prefix. CIDR or destination IP range. Asterix '*' can also be used to + * match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and + * 'Internet' can also be used. + */ destinationAddressPrefix?: string; + /** + * The destination address prefixes. CIDR or destination IP ranges. + */ destinationAddressPrefixes?: string[]; + /** + * The application security group specified as destination. + */ destinationApplicationSecurityGroups?: ApplicationSecurityGroup[]; + /** + * The source port ranges. + */ sourcePortRanges?: string[]; + /** + * The destination port ranges. + */ destinationPortRanges?: string[]; + /** + * The network traffic is allowed or denied. Possible values are: 'Allow' and 'Deny'. Possible + * values include: 'Allow', 'Deny' + */ access: string; + /** + * 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. + */ priority?: number; + /** + * The direction of the rule. The direction specifies if rule will be evaluated on incoming or + * outcoming traffic. Possible values are: 'Inbound' and 'Outbound'. Possible values include: + * 'Inbound', 'Outbound' + */ direction: string; + /** + * The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', + * and 'Failed'. + */ provisioningState?: string; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the EndpointService class. - * @constructor - * Identifies the service being brought into the virtual network. - * - * @property {string} [id] A unique identifier of the service being referenced - * by the interface endpoint. - */ -export interface EndpointService { - id?: string; -} - -/** - * @class - * Initializes a new instance of the InterfaceEndpoint class. - * @constructor - * Interface endpoint resource. - * - * @property {string} [fqdn] A first-party service's FQDN that is mapped to the - * private IP allocated via this interface endpoint. - * @property {object} [endpointService] A reference to the service being - * brought into the virtual network. - * @property {string} [endpointService.id] A unique identifier of the service - * being referenced by the interface endpoint. - * @property {object} [subnet] The ID of the subnet from which the private IP - * will be allocated. - * @property {string} [subnet.addressPrefix] The address prefix for the subnet. - * @property {array} [subnet.addressPrefixes] List of address prefixes for the - * subnet. - * @property {object} [subnet.networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. - * @property {array} [subnet.networkSecurityGroup.securityRules] A collection - * of security rules of the network security group. - * @property {array} [subnet.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. - * @property {array} [subnet.networkSecurityGroup.networkInterfaces] A - * collection of references to network interfaces. - * @property {array} [subnet.networkSecurityGroup.subnets] A collection of - * references to subnets. - * @property {string} [subnet.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. - * @property {string} [subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [subnet.networkSecurityGroup.etag] A unique read-only - * string that changes whenever the resource is updated. - * @property {object} [subnet.routeTable] The reference of the RouteTable - * resource. - * @property {array} [subnet.routeTable.routes] Collection of routes contained - * within a route table. - * @property {array} [subnet.routeTable.subnets] A collection of references to - * subnets. - * @property {boolean} [subnet.routeTable.disableBgpRoutePropagation] Gets or - * sets whether to disable the routes learned by BGP on that route table. True - * means disable. - * @property {string} [subnet.routeTable.provisioningState] The provisioning - * state of the resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [subnet.routeTable.etag] Gets a unique read-only string - * that changes whenever the resource is updated. - * @property {array} [subnet.serviceEndpoints] An array of service endpoints. - * @property {array} [subnet.serviceEndpointPolicies] An array of service - * endpoint policies. - * @property {array} [subnet.interfaceEndpoints] An array of references to - * interface endpoints - * @property {array} [subnet.ipConfigurations] Gets an array of references to - * the network interface IP configurations using subnet. - * @property {array} [subnet.ipConfigurationProfiles] Array of IP configuration - * profiles which reference this subnet. - * @property {array} [subnet.resourceNavigationLinks] Gets an array of - * references to the external resources using subnet. - * @property {array} [subnet.serviceAssociationLinks] Gets an array of - * references to services injecting into this subnet. - * @property {array} [subnet.delegations] Gets an array of references to the - * delegations on the subnet. - * @property {string} [subnet.purpose] A read-only string identifying the - * intention of use for this subnet based on delegations and other user-defined - * properties. - * @property {string} [subnet.provisioningState] The provisioning state of the - * resource. - * @property {string} [subnet.name] The name of the resource that is unique - * within a resource group. This name can be used to access the resource. - * @property {string} [subnet.etag] A unique read-only string that changes - * whenever the resource is updated. - * @property {array} [networkInterfaces] Gets an array of references to the - * network interfaces created for this interface endpoint. - * @property {string} [owner] A read-only property that identifies who created - * this interface endpoint. - * @property {string} [provisioningState] The provisioning state of the - * interface endpoint. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ -export interface InterfaceEndpoint extends Resource { - fqdn?: string; - endpointService?: EndpointService; - subnet?: Subnet; - readonly networkInterfaces?: NetworkInterface[]; - readonly owner?: string; - readonly provisioningState?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the NetworkInterfaceDnsSettings class. - * @constructor * DNS settings of a network interface. - * - * @property {array} [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. - * @property {array} [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. - * @property {string} [internalDnsNameLabel] Relative DNS name for this NIC - * used for internal communications between VMs in the same virtual network. - * @property {string} [internalFqdn] Fully qualified DNS name supporting - * internal communications between VMs in the same virtual network. - * @property {string} [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. */ export interface NetworkInterfaceDnsSettings { + /** + * 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. + */ dnsServers?: string[]; + /** + * 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. + */ appliedDnsServers?: string[]; + /** + * Relative DNS name for this NIC used for internal communications between VMs in the same + * virtual network. + */ internalDnsNameLabel?: string; + /** + * Fully qualified DNS name supporting internal communications between VMs in the same virtual + * network. + */ internalFqdn?: string; + /** + * 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. + */ internalDomainNameSuffix?: string; } /** - * @class - * Initializes a new instance of the NetworkInterface class. - * @constructor * A network interface in a resource group. - * - * @property {object} [virtualMachine] The reference of a virtual machine. - * @property {string} [virtualMachine.id] Resource ID. - * @property {object} [networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. - * @property {array} [networkSecurityGroup.securityRules] A collection of - * security rules of the network security group. - * @property {array} [networkSecurityGroup.defaultSecurityRules] The default - * security rules of network security group. - * @property {array} [networkSecurityGroup.networkInterfaces] A collection of - * references to network interfaces. - * @property {array} [networkSecurityGroup.subnets] A collection of references - * to subnets. - * @property {string} [networkSecurityGroup.resourceGuid] The resource GUID - * property of the network security group resource. - * @property {string} [networkSecurityGroup.provisioningState] The provisioning - * state of the public IP resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [networkSecurityGroup.etag] A unique read-only string - * that changes whenever the resource is updated. - * @property {object} [interfaceEndpoint] A reference to the interface endpoint - * to which the network interface is linked. - * @property {string} [interfaceEndpoint.fqdn] A first-party service's FQDN - * that is mapped to the private IP allocated via this interface endpoint. - * @property {object} [interfaceEndpoint.endpointService] A reference to the - * service being brought into the virtual network. - * @property {string} [interfaceEndpoint.endpointService.id] A unique - * identifier of the service being referenced by the interface endpoint. - * @property {object} [interfaceEndpoint.subnet] The ID of the subnet from - * which the private IP will be allocated. - * @property {string} [interfaceEndpoint.subnet.addressPrefix] The address - * prefix for the subnet. - * @property {array} [interfaceEndpoint.subnet.addressPrefixes] List of - * address prefixes for the subnet. - * @property {object} [interfaceEndpoint.subnet.networkSecurityGroup] The - * reference of the NetworkSecurityGroup resource. - * @property {array} - * [interfaceEndpoint.subnet.networkSecurityGroup.securityRules] A collection - * of security rules of the network security group. - * @property {array} - * [interfaceEndpoint.subnet.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. - * @property {array} - * [interfaceEndpoint.subnet.networkSecurityGroup.networkInterfaces] A - * collection of references to network interfaces. - * @property {array} [interfaceEndpoint.subnet.networkSecurityGroup.subnets] A - * collection of references to subnets. - * @property {string} - * [interfaceEndpoint.subnet.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. - * @property {string} - * [interfaceEndpoint.subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [interfaceEndpoint.subnet.networkSecurityGroup.etag] A - * unique read-only string that changes whenever the resource is updated. - * @property {object} [interfaceEndpoint.subnet.routeTable] The reference of - * the RouteTable resource. - * @property {array} [interfaceEndpoint.subnet.routeTable.routes] Collection of - * routes contained within a route table. - * @property {array} [interfaceEndpoint.subnet.routeTable.subnets] A collection - * of references to subnets. - * @property {boolean} - * [interfaceEndpoint.subnet.routeTable.disableBgpRoutePropagation] Gets or - * sets whether to disable the routes learned by BGP on that route table. True - * means disable. - * @property {string} [interfaceEndpoint.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [interfaceEndpoint.subnet.routeTable.etag] Gets a unique - * read-only string that changes whenever the resource is updated. - * @property {array} [interfaceEndpoint.subnet.serviceEndpoints] An array of - * service endpoints. - * @property {array} [interfaceEndpoint.subnet.serviceEndpointPolicies] An - * array of service endpoint policies. - * @property {array} [interfaceEndpoint.subnet.interfaceEndpoints] An array of - * references to interface endpoints - * @property {array} [interfaceEndpoint.subnet.ipConfigurations] Gets an array - * of references to the network interface IP configurations using subnet. - * @property {array} [interfaceEndpoint.subnet.ipConfigurationProfiles] Array - * of IP configuration profiles which reference this subnet. - * @property {array} [interfaceEndpoint.subnet.resourceNavigationLinks] Gets an - * array of references to the external resources using subnet. - * @property {array} [interfaceEndpoint.subnet.serviceAssociationLinks] Gets an - * array of references to services injecting into this subnet. - * @property {array} [interfaceEndpoint.subnet.delegations] Gets an array of - * references to the delegations on the subnet. - * @property {string} [interfaceEndpoint.subnet.purpose] A read-only string - * identifying the intention of use for this subnet based on delegations and - * other user-defined properties. - * @property {string} [interfaceEndpoint.subnet.provisioningState] The - * provisioning state of the resource. - * @property {string} [interfaceEndpoint.subnet.name] The name of the resource - * that is unique within a resource group. This name can be used to access the - * resource. - * @property {string} [interfaceEndpoint.subnet.etag] A unique read-only string - * that changes whenever the resource is updated. - * @property {array} [interfaceEndpoint.networkInterfaces] Gets an array of - * references to the network interfaces created for this interface endpoint. - * @property {string} [interfaceEndpoint.owner] A read-only property that - * identifies who created this interface endpoint. - * @property {string} [interfaceEndpoint.provisioningState] The provisioning - * state of the interface endpoint. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [interfaceEndpoint.etag] Gets a unique read-only string - * that changes whenever the resource is updated. - * @property {array} [ipConfigurations] A list of IPConfigurations of the - * network interface. - * @property {array} [tapConfigurations] A list of TapConfigurations of the - * network interface. - * @property {object} [dnsSettings] The DNS settings in network interface. - * @property {array} [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. - * @property {array} [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. - * @property {string} [dnsSettings.internalDnsNameLabel] Relative DNS name for - * this NIC used for internal communications between VMs in the same virtual - * network. - * @property {string} [dnsSettings.internalFqdn] Fully qualified DNS name - * supporting internal communications between VMs in the same virtual network. - * @property {string} [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. - * @property {string} [macAddress] The MAC address of the network interface. - * @property {boolean} [primary] Gets whether this is a primary network - * interface on a virtual machine. - * @property {boolean} [enableAcceleratedNetworking] If the network interface - * is accelerated networking enabled. - * @property {boolean} [enableIPForwarding] Indicates whether IP forwarding is - * enabled on this network interface. - * @property {array} [hostedWorkloads] A list of references to linked BareMetal - * resources - * @property {string} [resourceGuid] The resource GUID property of the network - * interface resource. - * @property {string} [provisioningState] The provisioning state of the public - * IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. */ export interface NetworkInterface extends Resource { - readonly virtualMachine?: SubResource; + /** + * The reference of a virtual machine. + */ + virtualMachine?: SubResource; + /** + * The reference of the NetworkSecurityGroup resource. + */ networkSecurityGroup?: NetworkSecurityGroup; - readonly interfaceEndpoint?: InterfaceEndpoint; + /** + * A list of IPConfigurations of the network interface. + */ ipConfigurations?: NetworkInterfaceIPConfiguration[]; - tapConfigurations?: NetworkInterfaceTapConfiguration[]; + /** + * The DNS settings in network interface. + */ dnsSettings?: NetworkInterfaceDnsSettings; + /** + * The MAC address of the network interface. + */ macAddress?: string; + /** + * Gets whether this is a primary network interface on a virtual machine. + */ primary?: boolean; + /** + * If the network interface is accelerated networking enabled. + */ enableAcceleratedNetworking?: boolean; + /** + * Indicates whether IP forwarding is enabled on this network interface. + */ enableIPForwarding?: boolean; - readonly hostedWorkloads?: string[]; + /** + * The resource GUID property of the network interface resource. + */ resourceGuid?: string; + /** + * The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', + * and 'Failed'. + */ provisioningState?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the NetworkSecurityGroup class. - * @constructor * NetworkSecurityGroup resource. - * - * @property {array} [securityRules] A collection of security rules of the - * network security group. - * @property {array} [defaultSecurityRules] The default security rules of - * network security group. - * @property {array} [networkInterfaces] A collection of references to network - * interfaces. - * @property {array} [subnets] A collection of references to subnets. - * @property {string} [resourceGuid] The resource GUID property of the network - * security group resource. - * @property {string} [provisioningState] The provisioning state of the public - * IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. */ export interface NetworkSecurityGroup extends Resource { + /** + * A collection of security rules of the network security group. + */ securityRules?: SecurityRule[]; + /** + * The default security rules of network security group. + */ defaultSecurityRules?: SecurityRule[]; + /** + * A collection of references to network interfaces. + */ readonly networkInterfaces?: NetworkInterface[]; + /** + * A collection of references to subnets. + */ readonly subnets?: Subnet[]; + /** + * The resource GUID property of the network security group resource. + */ resourceGuid?: string; + /** + * The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', + * and 'Failed'. + */ provisioningState?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the Route class. - * @constructor * Route resource - * - * @property {string} [addressPrefix] The destination CIDR to which the route - * applies. - * @property {string} nextHopType The type of Azure hop the packet should be - * sent to. Possible values are: 'VirtualNetworkGateway', 'VnetLocal', - * 'Internet', 'VirtualAppliance', and 'None'. Possible values include: - * 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None' - * @property {string} [nextHopIpAddress] The IP address packets should be - * forwarded to. Next hop values are only allowed in routes where the next hop - * type is VirtualAppliance. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. */ export interface Route extends SubResource { + /** + * The destination CIDR to which the route applies. + */ addressPrefix?: string; + /** + * The type of Azure hop the packet should be sent to. Possible values are: + * 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', and 'None'. Possible + * values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None' + */ nextHopType: string; + /** + * The IP address packets should be forwarded to. Next hop values are only allowed in routes + * where the next hop type is VirtualAppliance. + */ nextHopIpAddress?: string; + /** + * The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + */ provisioningState?: string; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the RouteTable class. - * @constructor * Route table resource. - * - * @property {array} [routes] Collection of routes contained within a route - * table. - * @property {array} [subnets] A collection of references to subnets. - * @property {boolean} [disableBgpRoutePropagation] Gets or sets whether to - * disable the routes learned by BGP on that route table. True means disable. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. */ export interface RouteTable extends Resource { + /** + * Collection of routes contained within a route table. + */ routes?: Route[]; + /** + * A collection of references to subnets. + */ readonly subnets?: Subnet[]; + /** + * Gets or sets whether to disable the routes learned by BGP on that route table. True means + * disable. + */ disableBgpRoutePropagation?: boolean; + /** + * The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + */ provisioningState?: string; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the ServiceEndpointPropertiesFormat class. - * @constructor * The service endpoint properties. - * - * @property {string} [service] The type of the endpoint service. - * @property {array} [locations] A list of locations. - * @property {string} [provisioningState] The provisioning state of the - * resource. */ export interface ServiceEndpointPropertiesFormat { + /** + * The type of the endpoint service. + */ service?: string; + /** + * A list of locations. + */ locations?: string[]; + /** + * The provisioning state of the resource. + */ provisioningState?: string; } /** - * @class - * Initializes a new instance of the ServiceEndpointPolicyDefinition class. - * @constructor - * Service Endpoint policy definitions. - * - * @property {string} [description] A description for this rule. Restricted to - * 140 chars. - * @property {string} [service] service endpoint name. - * @property {array} [serviceResources] A list of service resources. - * @property {string} [provisioningState] The provisioning state of the service - * end point policy definition. Possible values are: 'Updating', 'Deleting', - * and 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface ServiceEndpointPolicyDefinition extends SubResource { - description?: string; - service?: string; - serviceResources?: string[]; - readonly provisioningState?: string; - name?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the ServiceEndpointPolicy class. - * @constructor - * Service End point policy resource. - * - * @property {array} [serviceEndpointPolicyDefinitions] A collection of service - * endpoint policy definitions of the service endpoint policy. - * @property {array} [subnets] A collection of references to subnets. - * @property {string} [resourceGuid] The resource GUID property of the service - * endpoint policy resource. - * @property {string} [provisioningState] The provisioning state of the service - * endpoint policy. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface ServiceEndpointPolicy extends Resource { - serviceEndpointPolicyDefinitions?: ServiceEndpointPolicyDefinition[]; - readonly subnets?: Subnet[]; - readonly resourceGuid?: string; - readonly provisioningState?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the PublicIPAddressSku class. - * @constructor * SKU of a public IP address - * - * @property {string} [name] Name of a public IP address SKU. Possible values - * include: 'Basic', 'Standard' */ export interface PublicIPAddressSku { + /** + * Name of a public IP address SKU. Possible values include: 'Basic', 'Standard' + */ name?: string; } /** - * @class - * Initializes a new instance of the PublicIPAddressDnsSettings class. - * @constructor * Contains FQDN of the DNS record associated with the public IP address - * - * @property {string} [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. - * @property {string} [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. - * @property {string} [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. */ export interface PublicIPAddressDnsSettings { + /** + * 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. + */ domainNameLabel?: string; + /** + * 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. + */ fqdn?: string; + /** + * 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. + */ reverseFqdn?: string; } /** - * @class - * Initializes a new instance of the IpTag class. - * @constructor - * Contains the IpTag associated with the object - * - * @property {string} [ipTagType] Gets or sets the ipTag type: Example - * FirstPartyUsage. - * @property {string} [tag] Gets or sets value of the IpTag associated with the - * public IP. Example SQL, Storage etc + * Contains the IpTag associated with the public IP address */ export interface IpTag { + /** + * Gets or sets the ipTag type: Example FirstPartyUsage. + */ ipTagType?: string; + /** + * Gets or sets value of the IpTag associated with the public IP. Example SQL, Storage etc + */ tag?: string; } /** - * @class - * Initializes a new instance of the PublicIPAddress class. - * @constructor * Public IP address resource. - * - * @property {object} [sku] The public IP address SKU. - * @property {string} [sku.name] Name of a public IP address SKU. Possible - * values include: 'Basic', 'Standard' - * @property {string} [publicIPAllocationMethod] The public IP allocation - * method. Possible values are: 'Static' and 'Dynamic'. Possible values - * include: 'Static', 'Dynamic' - * @property {string} [publicIPAddressVersion] The public IP address version. - * Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', - * 'IPv6' - * @property {object} [ipConfiguration] The IP configuration associated with - * the public IP address. - * @property {string} [ipConfiguration.privateIPAddress] The private IP address - * of the IP configuration. - * @property {string} [ipConfiguration.privateIPAllocationMethod] The private - * IP allocation method. Possible values are 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * @property {object} [ipConfiguration.subnet] The reference of the subnet - * resource. - * @property {string} [ipConfiguration.subnet.addressPrefix] The address prefix - * for the subnet. - * @property {array} [ipConfiguration.subnet.addressPrefixes] List of address - * prefixes for the subnet. - * @property {object} [ipConfiguration.subnet.networkSecurityGroup] The - * reference of the NetworkSecurityGroup resource. - * @property {array} - * [ipConfiguration.subnet.networkSecurityGroup.securityRules] A collection of - * security rules of the network security group. - * @property {array} - * [ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. - * @property {array} - * [ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] A collection - * of references to network interfaces. - * @property {array} [ipConfiguration.subnet.networkSecurityGroup.subnets] A - * collection of references to subnets. - * @property {string} - * [ipConfiguration.subnet.networkSecurityGroup.resourceGuid] The resource GUID - * property of the network security group resource. - * @property {string} - * [ipConfiguration.subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [ipConfiguration.subnet.networkSecurityGroup.etag] A - * unique read-only string that changes whenever the resource is updated. - * @property {object} [ipConfiguration.subnet.routeTable] The reference of the - * RouteTable resource. - * @property {array} [ipConfiguration.subnet.routeTable.routes] Collection of - * routes contained within a route table. - * @property {array} [ipConfiguration.subnet.routeTable.subnets] A collection - * of references to subnets. - * @property {boolean} - * [ipConfiguration.subnet.routeTable.disableBgpRoutePropagation] Gets or sets - * whether to disable the routes learned by BGP on that route table. True means - * disable. - * @property {string} [ipConfiguration.subnet.routeTable.provisioningState] The - * provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [ipConfiguration.subnet.routeTable.etag] Gets a unique - * read-only string that changes whenever the resource is updated. - * @property {array} [ipConfiguration.subnet.serviceEndpoints] An array of - * service endpoints. - * @property {array} [ipConfiguration.subnet.serviceEndpointPolicies] An array - * of service endpoint policies. - * @property {array} [ipConfiguration.subnet.interfaceEndpoints] An array of - * references to interface endpoints - * @property {array} [ipConfiguration.subnet.ipConfigurations] Gets an array of - * references to the network interface IP configurations using subnet. - * @property {array} [ipConfiguration.subnet.ipConfigurationProfiles] Array of - * IP configuration profiles which reference this subnet. - * @property {array} [ipConfiguration.subnet.resourceNavigationLinks] Gets an - * array of references to the external resources using subnet. - * @property {array} [ipConfiguration.subnet.serviceAssociationLinks] Gets an - * array of references to services injecting into this subnet. - * @property {array} [ipConfiguration.subnet.delegations] Gets an array of - * references to the delegations on the subnet. - * @property {string} [ipConfiguration.subnet.purpose] A read-only string - * identifying the intention of use for this subnet based on delegations and - * other user-defined properties. - * @property {string} [ipConfiguration.subnet.provisioningState] The - * provisioning state of the resource. - * @property {string} [ipConfiguration.subnet.name] The name of the resource - * that is unique within a resource group. This name can be used to access the - * resource. - * @property {string} [ipConfiguration.subnet.etag] A unique read-only string - * that changes whenever the resource is updated. - * @property {object} [ipConfiguration.publicIPAddress] The reference of the - * public IP resource. - * @property {string} [ipConfiguration.provisioningState] Gets the provisioning - * state of the public IP resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [ipConfiguration.name] The name of the resource that is - * unique within a resource group. This name can be used to access the - * resource. - * @property {string} [ipConfiguration.etag] A unique read-only string that - * changes whenever the resource is updated. - * @property {object} [dnsSettings] The FQDN of the DNS record associated with - * the public IP address. - * @property {string} [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. - * @property {string} [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. - * @property {string} [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. - * @property {array} [ipTags] The list of tags associated with the public IP - * address. - * @property {string} [ipAddress] The IP address associated with the public IP - * address resource. - * @property {object} [publicIPPrefix] The Public IP Prefix this Public IP - * Address should be allocated from. - * @property {string} [publicIPPrefix.id] Resource ID. - * @property {number} [idleTimeoutInMinutes] The idle timeout of the public IP - * address. - * @property {string} [resourceGuid] The resource GUID property of the public - * IP resource. - * @property {string} [provisioningState] The provisioning state of the - * PublicIP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {array} [zones] A list of availability zones denoting the IP - * allocated for the resource needs to come from. */ export interface PublicIPAddress extends Resource { + /** + * The public IP address SKU. + */ sku?: PublicIPAddressSku; + /** + * The public IP allocation method. Possible values are: 'Static' and 'Dynamic'. Possible values + * include: 'Static', 'Dynamic' + */ publicIPAllocationMethod?: string; + /** + * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. Possible values + * include: 'IPv4', 'IPv6' + */ publicIPAddressVersion?: string; + /** + * The IP configuration associated with the public IP address. + */ readonly ipConfiguration?: IPConfiguration; + /** + * The FQDN of the DNS record associated with the public IP address. + */ dnsSettings?: PublicIPAddressDnsSettings; + /** + * The list of tags associated with the public IP address. + */ ipTags?: IpTag[]; + /** + * The IP address associated with the public IP address resource. + */ ipAddress?: string; - publicIPPrefix?: SubResource; + /** + * The idle timeout of the public IP address. + */ idleTimeoutInMinutes?: number; + /** + * The resource GUID property of the public IP resource. + */ resourceGuid?: string; + /** + * The provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', + * and 'Failed'. + */ provisioningState?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * A list of availability zones denoting the IP allocated for the resource needs to come from. + */ zones?: string[]; } /** - * @class - * Initializes a new instance of the IPConfiguration class. - * @constructor * IP configuration - * - * @property {string} [privateIPAddress] The private IP address of the IP - * configuration. - * @property {string} [privateIPAllocationMethod] The private IP allocation - * method. Possible values are 'Static' and 'Dynamic'. Possible values include: - * 'Static', 'Dynamic' - * @property {object} [subnet] The reference of the subnet resource. - * @property {string} [subnet.addressPrefix] The address prefix for the subnet. - * @property {array} [subnet.addressPrefixes] List of address prefixes for the - * subnet. - * @property {object} [subnet.networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. - * @property {array} [subnet.networkSecurityGroup.securityRules] A collection - * of security rules of the network security group. - * @property {array} [subnet.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. - * @property {array} [subnet.networkSecurityGroup.networkInterfaces] A - * collection of references to network interfaces. - * @property {array} [subnet.networkSecurityGroup.subnets] A collection of - * references to subnets. - * @property {string} [subnet.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. - * @property {string} [subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [subnet.networkSecurityGroup.etag] A unique read-only - * string that changes whenever the resource is updated. - * @property {object} [subnet.routeTable] The reference of the RouteTable - * resource. - * @property {array} [subnet.routeTable.routes] Collection of routes contained - * within a route table. - * @property {array} [subnet.routeTable.subnets] A collection of references to - * subnets. - * @property {boolean} [subnet.routeTable.disableBgpRoutePropagation] Gets or - * sets whether to disable the routes learned by BGP on that route table. True - * means disable. - * @property {string} [subnet.routeTable.provisioningState] The provisioning - * state of the resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [subnet.routeTable.etag] Gets a unique read-only string - * that changes whenever the resource is updated. - * @property {array} [subnet.serviceEndpoints] An array of service endpoints. - * @property {array} [subnet.serviceEndpointPolicies] An array of service - * endpoint policies. - * @property {array} [subnet.interfaceEndpoints] An array of references to - * interface endpoints - * @property {array} [subnet.ipConfigurations] Gets an array of references to - * the network interface IP configurations using subnet. - * @property {array} [subnet.ipConfigurationProfiles] Array of IP configuration - * profiles which reference this subnet. - * @property {array} [subnet.resourceNavigationLinks] Gets an array of - * references to the external resources using subnet. - * @property {array} [subnet.serviceAssociationLinks] Gets an array of - * references to services injecting into this subnet. - * @property {array} [subnet.delegations] Gets an array of references to the - * delegations on the subnet. - * @property {string} [subnet.purpose] A read-only string identifying the - * intention of use for this subnet based on delegations and other user-defined - * properties. - * @property {string} [subnet.provisioningState] The provisioning state of the - * resource. - * @property {string} [subnet.name] The name of the resource that is unique - * within a resource group. This name can be used to access the resource. - * @property {string} [subnet.etag] A unique read-only string that changes - * whenever the resource is updated. - * @property {object} [publicIPAddress] The reference of the public IP - * resource. - * @property {object} [publicIPAddress.sku] The public IP address SKU. - * @property {string} [publicIPAddress.sku.name] Name of a public IP address - * SKU. Possible values include: 'Basic', 'Standard' - * @property {string} [publicIPAddress.publicIPAllocationMethod] The public IP - * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * @property {string} [publicIPAddress.publicIPAddressVersion] The public IP - * address version. Possible values are: 'IPv4' and 'IPv6'. Possible values - * include: 'IPv4', 'IPv6' - * @property {object} [publicIPAddress.ipConfiguration] The IP configuration - * associated with the public IP address. - * @property {object} [publicIPAddress.dnsSettings] The FQDN of the DNS record - * associated with the public IP address. - * @property {string} [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. - * @property {string} [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. - * @property {string} [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. - * @property {array} [publicIPAddress.ipTags] The list of tags associated with - * the public IP address. - * @property {string} [publicIPAddress.ipAddress] The IP address associated - * with the public IP address resource. - * @property {object} [publicIPAddress.publicIPPrefix] The Public IP Prefix - * this Public IP Address should be allocated from. - * @property {string} [publicIPAddress.publicIPPrefix.id] Resource ID. - * @property {number} [publicIPAddress.idleTimeoutInMinutes] The idle timeout - * of the public IP address. - * @property {string} [publicIPAddress.resourceGuid] The resource GUID property - * of the public IP resource. - * @property {string} [publicIPAddress.provisioningState] The provisioning - * state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', - * and 'Failed'. - * @property {string} [publicIPAddress.etag] A unique read-only string that - * changes whenever the resource is updated. - * @property {array} [publicIPAddress.zones] A list of availability zones - * denoting the IP allocated for the resource needs to come from. - * @property {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. */ export interface IPConfiguration extends SubResource { + /** + * The private IP address of the IP configuration. + */ privateIPAddress?: string; + /** + * The private IP allocation method. Possible values are 'Static' and 'Dynamic'. Possible values + * include: 'Static', 'Dynamic' + */ privateIPAllocationMethod?: string; + /** + * The reference of the subnet resource. + */ subnet?: Subnet; + /** + * The reference of the public IP resource. + */ publicIPAddress?: PublicIPAddress; + /** + * Gets the provisioning state of the public IP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the IPConfigurationProfile class. - * @constructor - * IP configuration profile child resource. - * - * @property {object} [subnet] The reference of the subnet resource to create a - * contatainer network interface ip configruation. - * @property {string} [subnet.addressPrefix] The address prefix for the subnet. - * @property {array} [subnet.addressPrefixes] List of address prefixes for the - * subnet. - * @property {object} [subnet.networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. - * @property {array} [subnet.networkSecurityGroup.securityRules] A collection - * of security rules of the network security group. - * @property {array} [subnet.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. - * @property {array} [subnet.networkSecurityGroup.networkInterfaces] A - * collection of references to network interfaces. - * @property {array} [subnet.networkSecurityGroup.subnets] A collection of - * references to subnets. - * @property {string} [subnet.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. - * @property {string} [subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [subnet.networkSecurityGroup.etag] A unique read-only - * string that changes whenever the resource is updated. - * @property {object} [subnet.routeTable] The reference of the RouteTable - * resource. - * @property {array} [subnet.routeTable.routes] Collection of routes contained - * within a route table. - * @property {array} [subnet.routeTable.subnets] A collection of references to - * subnets. - * @property {boolean} [subnet.routeTable.disableBgpRoutePropagation] Gets or - * sets whether to disable the routes learned by BGP on that route table. True - * means disable. - * @property {string} [subnet.routeTable.provisioningState] The provisioning - * state of the resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [subnet.routeTable.etag] Gets a unique read-only string - * that changes whenever the resource is updated. - * @property {array} [subnet.serviceEndpoints] An array of service endpoints. - * @property {array} [subnet.serviceEndpointPolicies] An array of service - * endpoint policies. - * @property {array} [subnet.interfaceEndpoints] An array of references to - * interface endpoints - * @property {array} [subnet.ipConfigurations] Gets an array of references to - * the network interface IP configurations using subnet. - * @property {array} [subnet.ipConfigurationProfiles] Array of IP configuration - * profiles which reference this subnet. - * @property {array} [subnet.resourceNavigationLinks] Gets an array of - * references to the external resources using subnet. - * @property {array} [subnet.serviceAssociationLinks] Gets an array of - * references to services injecting into this subnet. - * @property {array} [subnet.delegations] Gets an array of references to the - * delegations on the subnet. - * @property {string} [subnet.purpose] A read-only string identifying the - * intention of use for this subnet based on delegations and other user-defined - * properties. - * @property {string} [subnet.provisioningState] The provisioning state of the - * resource. - * @property {string} [subnet.name] The name of the resource that is unique - * within a resource group. This name can be used to access the resource. - * @property {string} [subnet.etag] A unique read-only string that changes - * whenever the resource is updated. - * @property {string} [provisioningState] The provisioning state of the - * resource. - * @property {string} [name] The name of the resource. This name can be used to - * access the resource. - * @property {string} [type] Sub Resource type. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface IPConfigurationProfile extends SubResource { - subnet?: Subnet; - readonly provisioningState?: string; - name?: string; - readonly type?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the ResourceNavigationLink class. - * @constructor - * ResourceNavigationLink resource. - * - * @property {string} [linkedResourceType] Resource type of the linked - * resource. - * @property {string} [link] Link to the external resource - * @property {string} [provisioningState] Provisioning state of the * ResourceNavigationLink resource. - * @property {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. */ export interface ResourceNavigationLink extends SubResource { + /** + * Resource type of the linked resource. + */ linkedResourceType?: string; + /** + * Link to the external resource + */ link?: string; + /** + * Provisioning state of the ResourceNavigationLink resource. + */ readonly provisioningState?: string; + /** + * Name of the resource that is unique within a resource group. This name can be used to access + * the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the ServiceAssociationLink class. - * @constructor - * ServiceAssociationLink resource. - * - * @property {string} [linkedResourceType] Resource type of the linked - * resource. - * @property {string} [link] Link to the external resource. - * @property {string} [provisioningState] Provisioning state of the - * ServiceAssociationLink resource. - * @property {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface ServiceAssociationLink extends SubResource { - linkedResourceType?: string; - link?: string; - readonly provisioningState?: string; - name?: string; - readonly etag?: string; -} - -/** - * @class - * Initializes a new instance of the Delegation class. - * @constructor - * Details the service to which the subnet is delegated. - * - * @property {string} [serviceName] The name of the service to whom the subnet - * should be delegated (e.g. Microsoft.Sql/servers) - * @property {array} [actions] Describes the actions permitted to the service - * upon delegation - * @property {string} [provisioningState] The provisioning state of the - * resource. - * @property {string} [name] The name of the resource that is unique within a - * subnet. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface Delegation extends SubResource { - serviceName?: string; - actions?: string[]; - readonly provisioningState?: string; - name?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the Subnet class. - * @constructor * Subnet in a virtual network resource. - * - * @property {string} [addressPrefix] The address prefix for the subnet. - * @property {array} [addressPrefixes] List of address prefixes for the - * subnet. - * @property {object} [networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. - * @property {array} [networkSecurityGroup.securityRules] A collection of - * security rules of the network security group. - * @property {array} [networkSecurityGroup.defaultSecurityRules] The default - * security rules of network security group. - * @property {array} [networkSecurityGroup.networkInterfaces] A collection of - * references to network interfaces. - * @property {array} [networkSecurityGroup.subnets] A collection of references - * to subnets. - * @property {string} [networkSecurityGroup.resourceGuid] The resource GUID - * property of the network security group resource. - * @property {string} [networkSecurityGroup.provisioningState] The provisioning - * state of the public IP resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [networkSecurityGroup.etag] A unique read-only string - * that changes whenever the resource is updated. - * @property {object} [routeTable] The reference of the RouteTable resource. - * @property {array} [routeTable.routes] Collection of routes contained within - * a route table. - * @property {array} [routeTable.subnets] A collection of references to - * subnets. - * @property {boolean} [routeTable.disableBgpRoutePropagation] Gets or sets - * whether to disable the routes learned by BGP on that route table. True means - * disable. - * @property {string} [routeTable.provisioningState] The provisioning state of - * the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [routeTable.etag] Gets a unique read-only string that - * changes whenever the resource is updated. - * @property {array} [serviceEndpoints] An array of service endpoints. - * @property {array} [serviceEndpointPolicies] An array of service endpoint - * policies. - * @property {array} [interfaceEndpoints] An array of references to interface - * endpoints - * @property {array} [ipConfigurations] Gets an array of references to the - * network interface IP configurations using subnet. - * @property {array} [ipConfigurationProfiles] Array of IP configuration - * profiles which reference this subnet. - * @property {array} [resourceNavigationLinks] Gets an array of references to - * the external resources using subnet. - * @property {array} [serviceAssociationLinks] Gets an array of references to - * services injecting into this subnet. - * @property {array} [delegations] Gets an array of references to the - * delegations on the subnet. - * @property {string} [purpose] A read-only string identifying the intention of - * use for this subnet based on delegations and other user-defined properties. - * @property {string} [provisioningState] The provisioning state of the - * resource. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. */ export interface Subnet extends SubResource { + /** + * The address prefix for the subnet. + */ addressPrefix?: string; - addressPrefixes?: string[]; + /** + * The reference of the NetworkSecurityGroup resource. + */ networkSecurityGroup?: NetworkSecurityGroup; + /** + * The reference of the RouteTable resource. + */ routeTable?: RouteTable; + /** + * An array of service endpoints. + */ serviceEndpoints?: ServiceEndpointPropertiesFormat[]; - serviceEndpointPolicies?: ServiceEndpointPolicy[]; - readonly interfaceEndpoints?: InterfaceEndpoint[]; + /** + * Gets an array of references to the network interface IP configurations using subnet. + */ readonly ipConfigurations?: IPConfiguration[]; - readonly ipConfigurationProfiles?: IPConfigurationProfile[]; + /** + * Gets an array of references to the external resources using subnet. + */ resourceNavigationLinks?: ResourceNavigationLink[]; - serviceAssociationLinks?: ServiceAssociationLink[]; - delegations?: Delegation[]; - readonly purpose?: string; + /** + * The provisioning state of the resource. + */ provisioningState?: string; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the FrontendIPConfiguration class. - * @constructor - * Frontend IP address of the load balancer. - * - * @property {array} [inboundNatRules] Read only. Inbound rules URIs that use - * this frontend IP. - * @property {array} [inboundNatPools] Read only. Inbound pools URIs that use - * this frontend IP. - * @property {array} [outboundRules] Read only. Outbound rules URIs that use - * this frontend IP. - * @property {array} [loadBalancingRules] Gets load balancing rules URIs that - * use this frontend IP. - * @property {string} [privateIPAddress] The private IP address of the IP - * configuration. - * @property {string} [privateIPAllocationMethod] The Private IP allocation - * method. Possible values are: 'Static' and 'Dynamic'. Possible values - * include: 'Static', 'Dynamic' - * @property {object} [subnet] The reference of the subnet resource. - * @property {string} [subnet.addressPrefix] The address prefix for the subnet. - * @property {array} [subnet.addressPrefixes] List of address prefixes for the - * subnet. - * @property {object} [subnet.networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. - * @property {array} [subnet.networkSecurityGroup.securityRules] A collection - * of security rules of the network security group. - * @property {array} [subnet.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. - * @property {array} [subnet.networkSecurityGroup.networkInterfaces] A - * collection of references to network interfaces. - * @property {array} [subnet.networkSecurityGroup.subnets] A collection of - * references to subnets. - * @property {string} [subnet.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. - * @property {string} [subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [subnet.networkSecurityGroup.etag] A unique read-only - * string that changes whenever the resource is updated. - * @property {object} [subnet.routeTable] The reference of the RouteTable - * resource. - * @property {array} [subnet.routeTable.routes] Collection of routes contained - * within a route table. - * @property {array} [subnet.routeTable.subnets] A collection of references to - * subnets. - * @property {boolean} [subnet.routeTable.disableBgpRoutePropagation] Gets or - * sets whether to disable the routes learned by BGP on that route table. True - * means disable. - * @property {string} [subnet.routeTable.provisioningState] The provisioning - * state of the resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [subnet.routeTable.etag] Gets a unique read-only string - * that changes whenever the resource is updated. - * @property {array} [subnet.serviceEndpoints] An array of service endpoints. - * @property {array} [subnet.serviceEndpointPolicies] An array of service - * endpoint policies. - * @property {array} [subnet.interfaceEndpoints] An array of references to - * interface endpoints - * @property {array} [subnet.ipConfigurations] Gets an array of references to - * the network interface IP configurations using subnet. - * @property {array} [subnet.ipConfigurationProfiles] Array of IP configuration - * profiles which reference this subnet. - * @property {array} [subnet.resourceNavigationLinks] Gets an array of - * references to the external resources using subnet. - * @property {array} [subnet.serviceAssociationLinks] Gets an array of - * references to services injecting into this subnet. - * @property {array} [subnet.delegations] Gets an array of references to the - * delegations on the subnet. - * @property {string} [subnet.purpose] A read-only string identifying the - * intention of use for this subnet based on delegations and other user-defined - * properties. - * @property {string} [subnet.provisioningState] The provisioning state of the - * resource. - * @property {string} [subnet.name] The name of the resource that is unique - * within a resource group. This name can be used to access the resource. - * @property {string} [subnet.etag] A unique read-only string that changes - * whenever the resource is updated. - * @property {object} [publicIPAddress] The reference of the Public IP - * resource. - * @property {object} [publicIPAddress.sku] The public IP address SKU. - * @property {string} [publicIPAddress.sku.name] Name of a public IP address - * SKU. Possible values include: 'Basic', 'Standard' - * @property {string} [publicIPAddress.publicIPAllocationMethod] The public IP - * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * @property {string} [publicIPAddress.publicIPAddressVersion] The public IP - * address version. Possible values are: 'IPv4' and 'IPv6'. Possible values - * include: 'IPv4', 'IPv6' - * @property {object} [publicIPAddress.ipConfiguration] The IP configuration - * associated with the public IP address. - * @property {string} [publicIPAddress.ipConfiguration.privateIPAddress] The - * private IP address of the IP configuration. - * @property {string} - * [publicIPAddress.ipConfiguration.privateIPAllocationMethod] The private IP - * allocation method. Possible values are 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * @property {object} [publicIPAddress.ipConfiguration.subnet] The reference of - * the subnet resource. - * @property {string} [publicIPAddress.ipConfiguration.subnet.addressPrefix] - * The address prefix for the subnet. - * @property {array} [publicIPAddress.ipConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. - * @property {object} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] The reference - * of the NetworkSecurityGroup resource. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] A - * collection of references to subnets. - * @property {string} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * @property {string} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] A unique - * read-only string that changes whenever the resource is updated. - * @property {object} [publicIPAddress.ipConfiguration.subnet.routeTable] The - * reference of the RouteTable resource. - * @property {array} [publicIPAddress.ipConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.routeTable.subnets] A collection of - * references to subnets. - * @property {boolean} - * [publicIPAddress.ipConfiguration.subnet.routeTable.disableBgpRoutePropagation] - * Gets or sets whether to disable the routes learned by BGP on that route - * table. True means disable. - * @property {string} - * [publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] The - * provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [publicIPAddress.ipConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. - * @property {array} [publicIPAddress.ipConfiguration.subnet.serviceEndpoints] - * An array of service endpoints. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.serviceEndpointPolicies] An array of - * service endpoint policies. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.interfaceEndpoints] An array of - * references to interface endpoints - * @property {array} [publicIPAddress.ipConfiguration.subnet.ipConfigurations] - * Gets an array of references to the network interface IP configurations using - * subnet. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.ipConfigurationProfiles] Array of IP - * configuration profiles which reference this subnet. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] Gets an - * array of references to the external resources using subnet. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.serviceAssociationLinks] Gets an - * array of references to services injecting into this subnet. - * @property {array} [publicIPAddress.ipConfiguration.subnet.delegations] Gets - * an array of references to the delegations on the subnet. - * @property {string} [publicIPAddress.ipConfiguration.subnet.purpose] A - * read-only string identifying the intention of use for this subnet based on - * delegations and other user-defined properties. - * @property {string} - * [publicIPAddress.ipConfiguration.subnet.provisioningState] The provisioning - * state of the resource. - * @property {string} [publicIPAddress.ipConfiguration.subnet.name] The name of - * the resource that is unique within a resource group. This name can be used - * to access the resource. - * @property {string} [publicIPAddress.ipConfiguration.subnet.etag] A unique - * read-only string that changes whenever the resource is updated. - * @property {object} [publicIPAddress.ipConfiguration.publicIPAddress] The - * reference of the public IP resource. - * @property {string} [publicIPAddress.ipConfiguration.provisioningState] Gets - * the provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [publicIPAddress.ipConfiguration.name] The name of the - * resource that is unique within a resource group. This name can be used to - * access the resource. - * @property {string} [publicIPAddress.ipConfiguration.etag] A unique read-only - * string that changes whenever the resource is updated. - * @property {object} [publicIPAddress.dnsSettings] The FQDN of the DNS record - * associated with the public IP address. - * @property {string} [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. - * @property {string} [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. - * @property {string} [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. - * @property {array} [publicIPAddress.ipTags] The list of tags associated with - * the public IP address. - * @property {string} [publicIPAddress.ipAddress] The IP address associated - * with the public IP address resource. - * @property {object} [publicIPAddress.publicIPPrefix] The Public IP Prefix - * this Public IP Address should be allocated from. - * @property {string} [publicIPAddress.publicIPPrefix.id] Resource ID. - * @property {number} [publicIPAddress.idleTimeoutInMinutes] The idle timeout - * of the public IP address. - * @property {string} [publicIPAddress.resourceGuid] The resource GUID property - * of the public IP resource. - * @property {string} [publicIPAddress.provisioningState] The provisioning - * state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', - * and 'Failed'. - * @property {string} [publicIPAddress.etag] A unique read-only string that - * changes whenever the resource is updated. - * @property {array} [publicIPAddress.zones] A list of availability zones - * denoting the IP allocated for the resource needs to come from. - * @property {object} [publicIPPrefix] The reference of the Public IP Prefix - * resource. - * @property {string} [publicIPPrefix.id] Resource ID. - * @property {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {array} [zones] A list of availability zones denoting the IP - * allocated for the resource needs to come from. + * IPConfiguration in a network interface. */ -export interface FrontendIPConfiguration extends SubResource { - readonly inboundNatRules?: SubResource[]; - readonly inboundNatPools?: SubResource[]; - readonly outboundRules?: SubResource[]; - readonly loadBalancingRules?: SubResource[]; +export interface NetworkInterfaceIPConfiguration extends SubResource { + /** + * The reference of ApplicationGatewayBackendAddressPool resource. + */ + applicationGatewayBackendAddressPools?: ApplicationGatewayBackendAddressPool[]; + /** + * The reference of LoadBalancerBackendAddressPool resource. + */ + loadBalancerBackendAddressPools?: BackendAddressPool[]; + /** + * A list of references of LoadBalancerInboundNatRules. + */ + loadBalancerInboundNatRules?: InboundNatRule[]; + /** + * Private IP address of the IP configuration. + */ privateIPAddress?: string; + /** + * Defines how a private IP address is assigned. Possible values are: 'Static' and 'Dynamic'. + * Possible values include: 'Static', 'Dynamic' + */ privateIPAllocationMethod?: string; + /** + * 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 are: 'IPv4' and + * 'IPv6'. Possible values include: 'IPv4', 'IPv6' + */ + privateIPAddressVersion?: string; + /** + * Subnet bound to the IP configuration. + */ subnet?: Subnet; + /** + * Gets whether this is a primary customer address on the network interface. + */ + primary?: boolean; + /** + * Public IP address bound to the IP configuration. + */ publicIPAddress?: PublicIPAddress; - publicIPPrefix?: SubResource; + /** + * Application security groups in which the IP configuration is included. + */ + applicationSecurityGroups?: ApplicationSecurityGroup[]; + /** + * The provisioning state of the network interface IP configuration. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; - zones?: string[]; } /** - * @class - * Initializes a new instance of the VirtualNetworkTap class. - * @constructor - * Virtual Network Tap resource - * - * @property {array} [networkInterfaceTapConfigurations] Specifies the list of - * resource IDs for the network interface IP configuration that needs to be - * tapped. - * @property {string} [resourceGuid] The resourceGuid property of the virtual - * network tap. - * @property {string} [provisioningState] The provisioning state of the virtual - * network tap. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * @property {object} [destinationNetworkInterfaceIPConfiguration] The - * reference to the private IP Address of the collector nic that will receive - * the tap - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.virtualNetworkTaps] The - * reference to Virtual Network Taps. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.applicationGatewayBackendAddressPools] - * The reference of ApplicationGatewayBackendAddressPool resource. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.loadBalancerBackendAddressPools] - * The reference of LoadBalancerBackendAddressPool resource. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.loadBalancerInboundNatRules] A - * list of references of LoadBalancerInboundNatRules. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.privateIPAddress] Private IP - * address of the IP configuration. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.privateIPAllocationMethod] - * Defines how a private IP address is assigned. Possible values are: 'Static' - * and 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * @property {string} - * [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 are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', - * 'IPv6' - * @property {object} [destinationNetworkInterfaceIPConfiguration.subnet] - * Subnet bound to the IP configuration. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.subnet.addressPrefix] The - * address prefix for the subnet. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.subnet.addressPrefixes] List of - * address prefixes for the subnet. - * @property {object} - * [destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup] The - * reference of the NetworkSecurityGroup resource. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup.subnets] - * A collection of references to subnets. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [destinationNetworkInterfaceIPConfiguration.subnet.routeTable] The reference - * of the RouteTable resource. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.subnet.routeTable.subnets] A - * collection of references to subnets. - * @property {boolean} - * [destinationNetworkInterfaceIPConfiguration.subnet.routeTable.disableBgpRoutePropagation] - * Gets or sets whether to disable the routes learned by BGP on that route - * table. True means disable. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.subnet.routeTable.etag] Gets a - * unique read-only string that changes whenever the resource is updated. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.subnet.serviceEndpoints] An - * array of service endpoints. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.subnet.serviceEndpointPolicies] - * An array of service endpoint policies. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.subnet.interfaceEndpoints] An - * array of references to interface endpoints - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.subnet.ipConfigurations] Gets an - * array of references to the network interface IP configurations using subnet. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.subnet.ipConfigurationProfiles] - * Array of IP configuration profiles which reference this subnet. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.subnet.resourceNavigationLinks] - * Gets an array of references to the external resources using subnet. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.subnet.delegations] Gets an - * array of references to the delegations on the subnet. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.subnet.purpose] A read-only - * string identifying the intention of use for this subnet based on delegations - * and other user-defined properties. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.subnet.provisioningState] The - * provisioning state of the resource. - * @property {string} [destinationNetworkInterfaceIPConfiguration.subnet.name] - * The name of the resource that is unique within a resource group. This name - * can be used to access the resource. - * @property {string} [destinationNetworkInterfaceIPConfiguration.subnet.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {boolean} [destinationNetworkInterfaceIPConfiguration.primary] - * Gets whether this is a primary customer address on the network interface. - * @property {object} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress] Public IP - * address bound to the IP configuration. - * @property {object} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.sku] The public - * IP address SKU. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.sku.name] Name - * of a public IP address SKU. Possible values include: 'Basic', 'Standard' - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.publicIPAllocationMethod] - * The public IP allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.publicIPAddressVersion] - * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. - * Possible values include: 'IPv4', 'IPv6' - * @property {object} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration] - * The IP configuration associated with the public IP address. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.privateIPAddress] - * The private IP address of the IP configuration. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.privateIPAllocationMethod] - * The private IP allocation method. Possible values are 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * @property {object} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet] - * The reference of the subnet resource. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefix] - * The address prefix for the subnet. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. - * @property {object} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] - * The reference of the NetworkSecurityGroup resource. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] - * A collection of references to subnets. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable] - * The reference of the RouteTable resource. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.subnets] - * A collection of references to subnets. - * @property {boolean} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.disableBgpRoutePropagation] - * Gets or sets whether to disable the routes learned by BGP on that route - * table. True means disable. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpoints] - * An array of service endpoints. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpointPolicies] - * An array of service endpoint policies. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.interfaceEndpoints] - * An array of references to interface endpoints - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurations] - * Gets an array of references to the network interface IP configurations using - * subnet. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurationProfiles] - * Array of IP configuration profiles which reference this subnet. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] - * Gets an array of references to the external resources using subnet. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.delegations] - * Gets an array of references to the delegations on the subnet. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.purpose] - * A read-only string identifying the intention of use for this subnet based on - * delegations and other user-defined properties. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.provisioningState] - * The provisioning state of the resource. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.name] - * The name of the resource that is unique within a resource group. This name - * can be used to access the resource. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.subnet.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.publicIPAddress] - * The reference of the public IP resource. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.provisioningState] - * Gets the provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.name] - * The name of the resource that is unique within a resource group. This name - * can be used to access the resource. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipConfiguration.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.dnsSettings] The - * FQDN of the DNS record associated with the public IP address. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.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. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.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. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.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. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipTags] The list - * of tags associated with the public IP address. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.ipAddress] The - * IP address associated with the public IP address resource. - * @property {object} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.publicIPPrefix] - * The Public IP Prefix this Public IP Address should be allocated from. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.publicIPPrefix.id] - * Resource ID. - * @property {number} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.idleTimeoutInMinutes] - * The idle timeout of the public IP address. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.resourceGuid] - * The resource GUID property of the public IP resource. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.provisioningState] - * The provisioning state of the PublicIP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.etag] A unique - * read-only string that changes whenever the resource is updated. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.publicIPAddress.zones] A list of - * availability zones denoting the IP allocated for the resource needs to come - * from. - * @property {array} - * [destinationNetworkInterfaceIPConfiguration.applicationSecurityGroups] - * Application security groups in which the IP configuration is included. - * @property {string} - * [destinationNetworkInterfaceIPConfiguration.provisioningState] The - * provisioning state of the network interface IP configuration. Possible - * values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [destinationNetworkInterfaceIPConfiguration.name] The - * name of the resource that is unique within a resource group. This name can - * be used to access the resource. - * @property {string} [destinationNetworkInterfaceIPConfiguration.etag] A - * unique read-only string that changes whenever the resource is updated. - * @property {object} [destinationLoadBalancerFrontEndIPConfiguration] The - * reference to the private IP address on the internal Load Balancer that will - * receive the tap - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.inboundNatRules] Read only. - * Inbound rules URIs that use this frontend IP. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.inboundNatPools] Read only. - * Inbound pools URIs that use this frontend IP. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.outboundRules] Read only. - * Outbound rules URIs that use this frontend IP. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.loadBalancingRules] Gets - * load balancing rules URIs that use this frontend IP. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.privateIPAddress] The - * private IP address of the IP configuration. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.privateIPAllocationMethod] - * The Private IP allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * @property {object} [destinationLoadBalancerFrontEndIPConfiguration.subnet] - * The reference of the subnet resource. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefix] The - * address prefix for the subnet. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefixes] List - * of address prefixes for the subnet. - * @property {object} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup] - * The reference of the NetworkSecurityGroup resource. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.subnets] - * A collection of references to subnets. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable] The - * reference of the RouteTable resource. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.subnets] A - * collection of references to subnets. - * @property {boolean} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.disableBgpRoutePropagation] - * Gets or sets whether to disable the routes learned by BGP on that route - * table. True means disable. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.etag] Gets - * a unique read-only string that changes whenever the resource is updated. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpoints] An - * array of service endpoints. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpointPolicies] - * An array of service endpoint policies. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.interfaceEndpoints] - * An array of references to interface endpoints - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.ipConfigurations] - * Gets an array of references to the network interface IP configurations using - * subnet. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.ipConfigurationProfiles] - * Array of IP configuration profiles which reference this subnet. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.resourceNavigationLinks] - * Gets an array of references to the external resources using subnet. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.delegations] Gets an - * array of references to the delegations on the subnet. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.purpose] A read-only - * string identifying the intention of use for this subnet based on delegations - * and other user-defined properties. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.provisioningState] - * The provisioning state of the resource. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.name] The name of the - * resource that is unique within a resource group. This name can be used to - * access the resource. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.subnet.etag] A unique - * read-only string that changes whenever the resource is updated. - * @property {object} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress] The - * reference of the Public IP resource. - * @property {object} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku] The - * public IP address SKU. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku.name] - * Name of a public IP address SKU. Possible values include: 'Basic', - * 'Standard' - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAllocationMethod] - * The public IP allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] - * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. - * Possible values include: 'IPv4', 'IPv6' - * @property {object} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration] - * The IP configuration associated with the public IP address. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.privateIPAddress] - * The private IP address of the IP configuration. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.privateIPAllocationMethod] - * The private IP allocation method. Possible values are 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * @property {object} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet] - * The reference of the subnet resource. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefix] - * The address prefix for the subnet. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. - * @property {object} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] - * The reference of the NetworkSecurityGroup resource. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] - * A collection of references to subnets. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable] - * The reference of the RouteTable resource. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.subnets] - * A collection of references to subnets. - * @property {boolean} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.disableBgpRoutePropagation] - * Gets or sets whether to disable the routes learned by BGP on that route - * table. True means disable. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpoints] - * An array of service endpoints. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpointPolicies] - * An array of service endpoint policies. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.interfaceEndpoints] - * An array of references to interface endpoints - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurations] - * Gets an array of references to the network interface IP configurations using - * subnet. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurationProfiles] - * Array of IP configuration profiles which reference this subnet. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] - * Gets an array of references to the external resources using subnet. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.delegations] - * Gets an array of references to the delegations on the subnet. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.purpose] - * A read-only string identifying the intention of use for this subnet based on - * delegations and other user-defined properties. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.provisioningState] - * The provisioning state of the resource. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.name] - * The name of the resource that is unique within a resource group. This name - * can be used to access the resource. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.subnet.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.publicIPAddress] - * The reference of the public IP resource. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.provisioningState] - * Gets the provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.name] - * The name of the resource that is unique within a resource group. This name - * can be used to access the resource. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipConfiguration.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings] - * The FQDN of the DNS record associated with the public IP address. - * @property {string} - * [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. - * @property {string} - * [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. - * @property {string} - * [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. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipTags] The - * list of tags associated with the public IP address. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipAddress] - * The IP address associated with the public IP address resource. - * @property {object} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPPrefix] - * The Public IP Prefix this Public IP Address should be allocated from. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPPrefix.id] - * Resource ID. - * @property {number} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.idleTimeoutInMinutes] - * The idle timeout of the public IP address. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.resourceGuid] - * The resource GUID property of the public IP resource. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.provisioningState] - * The provisioning state of the PublicIP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.etag] A - * unique read-only string that changes whenever the resource is updated. - * @property {array} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.zones] A - * list of availability zones denoting the IP allocated for the resource needs - * to come from. - * @property {object} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix] The - * reference of the Public IP Prefix resource. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix.id] Resource - * ID. - * @property {string} - * [destinationLoadBalancerFrontEndIPConfiguration.provisioningState] Gets the - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [destinationLoadBalancerFrontEndIPConfiguration.name] The - * name of the resource that is unique within a resource group. This name can - * be used to access the resource. - * @property {string} [destinationLoadBalancerFrontEndIPConfiguration.etag] A - * unique read-only string that changes whenever the resource is updated. - * @property {array} [destinationLoadBalancerFrontEndIPConfiguration.zones] A - * list of availability zones denoting the IP allocated for the resource needs - * to come from. - * @property {number} [destinationPort] The VXLAN destination port that will - * receive the tapped traffic. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. + * Backend address of an application gateway. */ -export interface VirtualNetworkTap extends Resource { - readonly networkInterfaceTapConfigurations?: NetworkInterfaceTapConfiguration[]; - readonly resourceGuid?: string; - readonly provisioningState?: string; - destinationNetworkInterfaceIPConfiguration?: NetworkInterfaceIPConfiguration; - destinationLoadBalancerFrontEndIPConfiguration?: FrontendIPConfiguration; - destinationPort?: number; - etag?: string; +export interface ApplicationGatewayBackendAddress { + /** + * Fully qualified domain name (FQDN). + */ + fqdn?: string; + /** + * IP address + */ + ipAddress?: string; } /** - * @class - * Initializes a new instance of the BackendAddressPool class. - * @constructor - * Pool of backend IP addresses. - * - * @property {array} [backendIPConfigurations] Gets collection of references to - * IP addresses defined in network interfaces. - * @property {array} [loadBalancingRules] Gets load balancing rules that use - * this backend address pool. - * @property {object} [outboundRule] Gets outbound rules that use this backend - * address pool. - * @property {string} [outboundRule.id] Resource ID. - * @property {string} [provisioningState] Get provisioning state of the public - * IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [name] Gets name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. + * Backend Address Pool of an application gateway. */ -export interface BackendAddressPool extends SubResource { - readonly backendIPConfigurations?: NetworkInterfaceIPConfiguration[]; - readonly loadBalancingRules?: SubResource[]; - readonly outboundRule?: SubResource; +export interface ApplicationGatewayBackendAddressPool extends SubResource { + /** + * Collection of references to IPs defined in network interfaces. + */ + backendIPConfigurations?: NetworkInterfaceIPConfiguration[]; + /** + * Backend addresses + */ + backendAddresses?: ApplicationGatewayBackendAddress[]; + /** + * Provisioning state of the backend address pool resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * Name of the backend address pool that is unique within an Application Gateway. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * Type of the resource. + */ + type?: string; } /** - * @class - * Initializes a new instance of the InboundNatRule class. - * @constructor - * Inbound NAT rule of the load balancer. - * - * @property {object} [frontendIPConfiguration] A reference to frontend IP - * addresses. - * @property {string} [frontendIPConfiguration.id] Resource ID. - * @property {object} [backendIPConfiguration] A reference to a private IP - * address defined on a network interface of a VM. Traffic sent to the frontend - * port of each of the frontend IP configurations is forwarded to the backend - * IP. - * @property {array} [backendIPConfiguration.virtualNetworkTaps] The reference - * to Virtual Network Taps. - * @property {array} - * [backendIPConfiguration.applicationGatewayBackendAddressPools] The reference - * of ApplicationGatewayBackendAddressPool resource. - * @property {array} [backendIPConfiguration.loadBalancerBackendAddressPools] - * The reference of LoadBalancerBackendAddressPool resource. - * @property {array} [backendIPConfiguration.loadBalancerInboundNatRules] A - * list of references of LoadBalancerInboundNatRules. - * @property {string} [backendIPConfiguration.privateIPAddress] Private IP - * address of the IP configuration. - * @property {string} [backendIPConfiguration.privateIPAllocationMethod] - * Defines how a private IP address is assigned. Possible values are: 'Static' - * and 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * @property {string} [backendIPConfiguration.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 are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', - * 'IPv6' - * @property {object} [backendIPConfiguration.subnet] Subnet bound to the IP - * configuration. - * @property {string} [backendIPConfiguration.subnet.addressPrefix] The address - * prefix for the subnet. - * @property {array} [backendIPConfiguration.subnet.addressPrefixes] List of - * address prefixes for the subnet. - * @property {object} [backendIPConfiguration.subnet.networkSecurityGroup] The - * reference of the NetworkSecurityGroup resource. - * @property {array} - * [backendIPConfiguration.subnet.networkSecurityGroup.securityRules] A - * collection of security rules of the network security group. - * @property {array} - * [backendIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * @property {array} - * [backendIPConfiguration.subnet.networkSecurityGroup.networkInterfaces] A - * collection of references to network interfaces. - * @property {array} - * [backendIPConfiguration.subnet.networkSecurityGroup.subnets] A collection of - * references to subnets. - * @property {string} - * [backendIPConfiguration.subnet.networkSecurityGroup.resourceGuid] The - * resource GUID property of the network security group resource. - * @property {string} - * [backendIPConfiguration.subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [backendIPConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} [backendIPConfiguration.subnet.routeTable] The reference - * of the RouteTable resource. - * @property {array} [backendIPConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * @property {array} [backendIPConfiguration.subnet.routeTable.subnets] A - * collection of references to subnets. - * @property {boolean} - * [backendIPConfiguration.subnet.routeTable.disableBgpRoutePropagation] Gets - * or sets whether to disable the routes learned by BGP on that route table. - * True means disable. - * @property {string} - * [backendIPConfiguration.subnet.routeTable.provisioningState] The - * provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [backendIPConfiguration.subnet.routeTable.etag] Gets a - * unique read-only string that changes whenever the resource is updated. - * @property {array} [backendIPConfiguration.subnet.serviceEndpoints] An array - * of service endpoints. - * @property {array} [backendIPConfiguration.subnet.serviceEndpointPolicies] An - * array of service endpoint policies. - * @property {array} [backendIPConfiguration.subnet.interfaceEndpoints] An - * array of references to interface endpoints - * @property {array} [backendIPConfiguration.subnet.ipConfigurations] Gets an - * array of references to the network interface IP configurations using subnet. - * @property {array} [backendIPConfiguration.subnet.ipConfigurationProfiles] - * Array of IP configuration profiles which reference this subnet. - * @property {array} [backendIPConfiguration.subnet.resourceNavigationLinks] - * Gets an array of references to the external resources using subnet. - * @property {array} [backendIPConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. - * @property {array} [backendIPConfiguration.subnet.delegations] Gets an array - * of references to the delegations on the subnet. - * @property {string} [backendIPConfiguration.subnet.purpose] A read-only - * string identifying the intention of use for this subnet based on delegations - * and other user-defined properties. - * @property {string} [backendIPConfiguration.subnet.provisioningState] The - * provisioning state of the resource. - * @property {string} [backendIPConfiguration.subnet.name] The name of the - * resource that is unique within a resource group. This name can be used to - * access the resource. - * @property {string} [backendIPConfiguration.subnet.etag] A unique read-only - * string that changes whenever the resource is updated. - * @property {boolean} [backendIPConfiguration.primary] Gets whether this is a - * primary customer address on the network interface. - * @property {object} [backendIPConfiguration.publicIPAddress] Public IP - * address bound to the IP configuration. - * @property {object} [backendIPConfiguration.publicIPAddress.sku] The public - * IP address SKU. - * @property {string} [backendIPConfiguration.publicIPAddress.sku.name] Name of - * a public IP address SKU. Possible values include: 'Basic', 'Standard' - * @property {string} - * [backendIPConfiguration.publicIPAddress.publicIPAllocationMethod] The public - * IP allocation method. Possible values are: 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * @property {string} - * [backendIPConfiguration.publicIPAddress.publicIPAddressVersion] The public - * IP address version. Possible values are: 'IPv4' and 'IPv6'. Possible values - * include: 'IPv4', 'IPv6' - * @property {object} [backendIPConfiguration.publicIPAddress.ipConfiguration] - * The IP configuration associated with the public IP address. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.privateIPAddress] - * The private IP address of the IP configuration. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.privateIPAllocationMethod] - * The private IP allocation method. Possible values are 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * @property {object} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet] The - * reference of the subnet resource. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefix] - * The address prefix for the subnet. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. - * @property {object} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] - * The reference of the NetworkSecurityGroup resource. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] - * A collection of references to subnets. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable] - * The reference of the RouteTable resource. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.subnets] - * A collection of references to subnets. - * @property {boolean} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.disableBgpRoutePropagation] - * Gets or sets whether to disable the routes learned by BGP on that route - * table. True means disable. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpoints] - * An array of service endpoints. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpointPolicies] - * An array of service endpoint policies. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.interfaceEndpoints] - * An array of references to interface endpoints - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurations] - * Gets an array of references to the network interface IP configurations using - * subnet. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurationProfiles] - * Array of IP configuration profiles which reference this subnet. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] - * Gets an array of references to the external resources using subnet. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. - * @property {array} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.delegations] - * Gets an array of references to the delegations on the subnet. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.purpose] A - * read-only string identifying the intention of use for this subnet based on - * delegations and other user-defined properties. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.provisioningState] - * The provisioning state of the resource. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.name] The - * name of the resource that is unique within a resource group. This name can - * be used to access the resource. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.subnet.etag] A - * unique read-only string that changes whenever the resource is updated. - * @property {object} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.publicIPAddress] The - * reference of the public IP resource. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.provisioningState] - * Gets the provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.name] The name of - * the resource that is unique within a resource group. This name can be used - * to access the resource. - * @property {string} - * [backendIPConfiguration.publicIPAddress.ipConfiguration.etag] A unique - * read-only string that changes whenever the resource is updated. - * @property {object} [backendIPConfiguration.publicIPAddress.dnsSettings] The - * FQDN of the DNS record associated with the public IP address. - * @property {string} - * [backendIPConfiguration.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. - * @property {string} [backendIPConfiguration.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. - * @property {string} - * [backendIPConfiguration.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. - * @property {array} [backendIPConfiguration.publicIPAddress.ipTags] The list - * of tags associated with the public IP address. - * @property {string} [backendIPConfiguration.publicIPAddress.ipAddress] The IP - * address associated with the public IP address resource. - * @property {object} [backendIPConfiguration.publicIPAddress.publicIPPrefix] - * The Public IP Prefix this Public IP Address should be allocated from. - * @property {string} - * [backendIPConfiguration.publicIPAddress.publicIPPrefix.id] Resource ID. - * @property {number} - * [backendIPConfiguration.publicIPAddress.idleTimeoutInMinutes] The idle - * timeout of the public IP address. - * @property {string} [backendIPConfiguration.publicIPAddress.resourceGuid] The - * resource GUID property of the public IP resource. - * @property {string} - * [backendIPConfiguration.publicIPAddress.provisioningState] The provisioning - * state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', - * and 'Failed'. - * @property {string} [backendIPConfiguration.publicIPAddress.etag] A unique - * read-only string that changes whenever the resource is updated. - * @property {array} [backendIPConfiguration.publicIPAddress.zones] A list of - * availability zones denoting the IP allocated for the resource needs to come - * from. - * @property {array} [backendIPConfiguration.applicationSecurityGroups] - * Application security groups in which the IP configuration is included. - * @property {string} [backendIPConfiguration.provisioningState] The - * provisioning state of the network interface IP configuration. Possible - * values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [backendIPConfiguration.name] The name of the resource - * that is unique within a resource group. This name can be used to access the - * resource. - * @property {string} [backendIPConfiguration.etag] A unique read-only string - * that changes whenever the resource is updated. - * @property {string} [protocol] Possible values include: 'Udp', 'Tcp', 'All' - * @property {number} [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. - * @property {number} [backendPort] The port used for the internal endpoint. - * Acceptable values range from 1 to 65535. - * @property {number} [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. - * @property {boolean} [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. - * @property {boolean} [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. - * @property {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] Gets name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. + * Connection draining allows open connections to a backend server to be active for a specified + * time after the backend server got removed from the configuration. */ -export interface InboundNatRule extends SubResource { - frontendIPConfiguration?: SubResource; - readonly backendIPConfiguration?: NetworkInterfaceIPConfiguration; - protocol?: string; - frontendPort?: number; - backendPort?: number; - idleTimeoutInMinutes?: number; - enableFloatingIP?: boolean; - enableTcpReset?: boolean; - provisioningState?: string; - name?: string; - etag?: string; +export interface ApplicationGatewayConnectionDraining { + /** + * Whether connection draining is enabled or not. + */ + enabled: boolean; + /** + * The number of seconds connection draining is active. Acceptable values are from 1 second to + * 3600 seconds. + */ + drainTimeoutInSec: number; } /** - * @class - * Initializes a new instance of the NetworkInterfaceIPConfiguration class. - * @constructor - * IPConfiguration in a network interface. - * - * @property {array} [virtualNetworkTaps] The reference to Virtual Network - * Taps. - * @property {array} [applicationGatewayBackendAddressPools] The reference of - * ApplicationGatewayBackendAddressPool resource. - * @property {array} [loadBalancerBackendAddressPools] The reference of - * LoadBalancerBackendAddressPool resource. - * @property {array} [loadBalancerInboundNatRules] A list of references of - * LoadBalancerInboundNatRules. - * @property {string} [privateIPAddress] Private IP address of the IP - * configuration. - * @property {string} [privateIPAllocationMethod] Defines how a private IP - * address is assigned. Possible values are: 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * @property {string} [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 are: 'IPv4' and - * 'IPv6'. Possible values include: 'IPv4', 'IPv6' - * @property {object} [subnet] Subnet bound to the IP configuration. - * @property {string} [subnet.addressPrefix] The address prefix for the subnet. - * @property {array} [subnet.addressPrefixes] List of address prefixes for the - * subnet. - * @property {object} [subnet.networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. - * @property {array} [subnet.networkSecurityGroup.securityRules] A collection - * of security rules of the network security group. - * @property {array} [subnet.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. - * @property {array} [subnet.networkSecurityGroup.networkInterfaces] A - * collection of references to network interfaces. - * @property {array} [subnet.networkSecurityGroup.subnets] A collection of - * references to subnets. - * @property {string} [subnet.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. - * @property {string} [subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [subnet.networkSecurityGroup.etag] A unique read-only - * string that changes whenever the resource is updated. - * @property {object} [subnet.routeTable] The reference of the RouteTable - * resource. - * @property {array} [subnet.routeTable.routes] Collection of routes contained - * within a route table. - * @property {array} [subnet.routeTable.subnets] A collection of references to - * subnets. - * @property {boolean} [subnet.routeTable.disableBgpRoutePropagation] Gets or - * sets whether to disable the routes learned by BGP on that route table. True - * means disable. - * @property {string} [subnet.routeTable.provisioningState] The provisioning - * state of the resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [subnet.routeTable.etag] Gets a unique read-only string - * that changes whenever the resource is updated. - * @property {array} [subnet.serviceEndpoints] An array of service endpoints. - * @property {array} [subnet.serviceEndpointPolicies] An array of service - * endpoint policies. - * @property {array} [subnet.interfaceEndpoints] An array of references to - * interface endpoints - * @property {array} [subnet.ipConfigurations] Gets an array of references to - * the network interface IP configurations using subnet. - * @property {array} [subnet.ipConfigurationProfiles] Array of IP configuration - * profiles which reference this subnet. - * @property {array} [subnet.resourceNavigationLinks] Gets an array of - * references to the external resources using subnet. - * @property {array} [subnet.serviceAssociationLinks] Gets an array of - * references to services injecting into this subnet. - * @property {array} [subnet.delegations] Gets an array of references to the - * delegations on the subnet. - * @property {string} [subnet.purpose] A read-only string identifying the - * intention of use for this subnet based on delegations and other user-defined - * properties. - * @property {string} [subnet.provisioningState] The provisioning state of the - * resource. - * @property {string} [subnet.name] The name of the resource that is unique - * within a resource group. This name can be used to access the resource. - * @property {string} [subnet.etag] A unique read-only string that changes - * whenever the resource is updated. - * @property {boolean} [primary] Gets whether this is a primary customer - * address on the network interface. - * @property {object} [publicIPAddress] Public IP address bound to the IP - * configuration. - * @property {object} [publicIPAddress.sku] The public IP address SKU. - * @property {string} [publicIPAddress.sku.name] Name of a public IP address - * SKU. Possible values include: 'Basic', 'Standard' - * @property {string} [publicIPAddress.publicIPAllocationMethod] The public IP - * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * @property {string} [publicIPAddress.publicIPAddressVersion] The public IP - * address version. Possible values are: 'IPv4' and 'IPv6'. Possible values - * include: 'IPv4', 'IPv6' - * @property {object} [publicIPAddress.ipConfiguration] The IP configuration - * associated with the public IP address. - * @property {string} [publicIPAddress.ipConfiguration.privateIPAddress] The - * private IP address of the IP configuration. - * @property {string} - * [publicIPAddress.ipConfiguration.privateIPAllocationMethod] The private IP - * allocation method. Possible values are 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * @property {object} [publicIPAddress.ipConfiguration.subnet] The reference of - * the subnet resource. - * @property {string} [publicIPAddress.ipConfiguration.subnet.addressPrefix] - * The address prefix for the subnet. - * @property {array} [publicIPAddress.ipConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. - * @property {object} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] The reference - * of the NetworkSecurityGroup resource. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] A - * collection of references to subnets. - * @property {string} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * @property {string} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] A unique - * read-only string that changes whenever the resource is updated. - * @property {object} [publicIPAddress.ipConfiguration.subnet.routeTable] The - * reference of the RouteTable resource. - * @property {array} [publicIPAddress.ipConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.routeTable.subnets] A collection of - * references to subnets. - * @property {boolean} - * [publicIPAddress.ipConfiguration.subnet.routeTable.disableBgpRoutePropagation] - * Gets or sets whether to disable the routes learned by BGP on that route - * table. True means disable. - * @property {string} - * [publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] The - * provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [publicIPAddress.ipConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. - * @property {array} [publicIPAddress.ipConfiguration.subnet.serviceEndpoints] - * An array of service endpoints. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.serviceEndpointPolicies] An array of - * service endpoint policies. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.interfaceEndpoints] An array of - * references to interface endpoints - * @property {array} [publicIPAddress.ipConfiguration.subnet.ipConfigurations] - * Gets an array of references to the network interface IP configurations using - * subnet. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.ipConfigurationProfiles] Array of IP - * configuration profiles which reference this subnet. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] Gets an - * array of references to the external resources using subnet. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.serviceAssociationLinks] Gets an - * array of references to services injecting into this subnet. - * @property {array} [publicIPAddress.ipConfiguration.subnet.delegations] Gets - * an array of references to the delegations on the subnet. - * @property {string} [publicIPAddress.ipConfiguration.subnet.purpose] A - * read-only string identifying the intention of use for this subnet based on - * delegations and other user-defined properties. - * @property {string} - * [publicIPAddress.ipConfiguration.subnet.provisioningState] The provisioning - * state of the resource. - * @property {string} [publicIPAddress.ipConfiguration.subnet.name] The name of - * the resource that is unique within a resource group. This name can be used - * to access the resource. - * @property {string} [publicIPAddress.ipConfiguration.subnet.etag] A unique - * read-only string that changes whenever the resource is updated. - * @property {object} [publicIPAddress.ipConfiguration.publicIPAddress] The - * reference of the public IP resource. - * @property {string} [publicIPAddress.ipConfiguration.provisioningState] Gets - * the provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [publicIPAddress.ipConfiguration.name] The name of the - * resource that is unique within a resource group. This name can be used to - * access the resource. - * @property {string} [publicIPAddress.ipConfiguration.etag] A unique read-only - * string that changes whenever the resource is updated. - * @property {object} [publicIPAddress.dnsSettings] The FQDN of the DNS record - * associated with the public IP address. - * @property {string} [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. - * @property {string} [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. - * @property {string} [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. - * @property {array} [publicIPAddress.ipTags] The list of tags associated with - * the public IP address. - * @property {string} [publicIPAddress.ipAddress] The IP address associated - * with the public IP address resource. - * @property {object} [publicIPAddress.publicIPPrefix] The Public IP Prefix - * this Public IP Address should be allocated from. - * @property {string} [publicIPAddress.publicIPPrefix.id] Resource ID. - * @property {number} [publicIPAddress.idleTimeoutInMinutes] The idle timeout - * of the public IP address. - * @property {string} [publicIPAddress.resourceGuid] The resource GUID property - * of the public IP resource. - * @property {string} [publicIPAddress.provisioningState] The provisioning - * state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', - * and 'Failed'. - * @property {string} [publicIPAddress.etag] A unique read-only string that - * changes whenever the resource is updated. - * @property {array} [publicIPAddress.zones] A list of availability zones - * denoting the IP allocated for the resource needs to come from. - * @property {array} [applicationSecurityGroups] Application security groups in - * which the IP configuration is included. - * @property {string} [provisioningState] The provisioning state of the network - * interface IP configuration. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface NetworkInterfaceIPConfiguration extends SubResource { - virtualNetworkTaps?: VirtualNetworkTap[]; - applicationGatewayBackendAddressPools?: ApplicationGatewayBackendAddressPool[]; - loadBalancerBackendAddressPools?: BackendAddressPool[]; - loadBalancerInboundNatRules?: InboundNatRule[]; - privateIPAddress?: string; - privateIPAllocationMethod?: string; - privateIPAddressVersion?: string; - subnet?: Subnet; - primary?: boolean; - publicIPAddress?: PublicIPAddress; - applicationSecurityGroups?: ApplicationSecurityGroup[]; - provisioningState?: string; - name?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the ApplicationGatewayBackendAddress class. - * @constructor - * Backend address of an application gateway. - * - * @property {string} [fqdn] Fully qualified domain name (FQDN). - * @property {string} [ipAddress] IP address - */ -export interface ApplicationGatewayBackendAddress { - fqdn?: string; - ipAddress?: string; -} - -/** - * @class - * Initializes a new instance of the ApplicationGatewayBackendAddressPool class. - * @constructor - * Backend Address Pool of an application gateway. - * - * @property {array} [backendIPConfigurations] Collection of references to IPs - * defined in network interfaces. - * @property {array} [backendAddresses] Backend addresses - * @property {string} [provisioningState] Provisioning state of the backend - * address pool resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] Name of the backend address pool that is unique - * within an Application Gateway. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Type of the resource. - */ -export interface ApplicationGatewayBackendAddressPool extends SubResource { - backendIPConfigurations?: NetworkInterfaceIPConfiguration[]; - backendAddresses?: ApplicationGatewayBackendAddress[]; - provisioningState?: string; - name?: string; - etag?: string; - type?: string; -} - -/** - * @class - * Initializes a new instance of the ApplicationGatewayConnectionDraining class. - * @constructor - * Connection draining allows open connections to a backend server to be active - * for a specified time after the backend server got removed from the - * configuration. - * - * @property {boolean} enabled Whether connection draining is enabled or not. - * @property {number} drainTimeoutInSec The number of seconds connection - * draining is active. Acceptable values are from 1 second to 3600 seconds. - */ -export interface ApplicationGatewayConnectionDraining { - enabled: boolean; - drainTimeoutInSec: number; -} - -/** - * @class - * Initializes a new instance of the ApplicationGatewayBackendHttpSettings class. - * @constructor - * Backend address pool settings of an application gateway. - * - * @property {number} [port] The destination port on the backend. - * @property {string} [protocol] The protocol used to communicate with the - * backend. Possible values are 'Http' and 'Https'. Possible values include: - * 'Http', 'Https' - * @property {string} [cookieBasedAffinity] Cookie based affinity. Possible - * values include: 'Enabled', 'Disabled' - * @property {number} [requestTimeout] Request timeout in seconds. Application - * Gateway will fail the request if response is not received within - * RequestTimeout. Acceptable values are from 1 second to 86400 seconds. - * @property {object} [probe] Probe resource of an application gateway. - * @property {string} [probe.id] Resource ID. - * @property {array} [authenticationCertificates] Array of references to - * application gateway authentication certificates. - * @property {array} [trustedRootCertificates] Array of references to - * application gateway trusted root certificates. - * @property {object} [connectionDraining] Connection draining of the backend - * http settings resource. - * @property {boolean} [connectionDraining.enabled] Whether connection draining - * is enabled or not. - * @property {number} [connectionDraining.drainTimeoutInSec] The number of - * seconds connection draining is active. Acceptable values are from 1 second - * to 3600 seconds. - * @property {string} [hostName] Host header to be sent to the backend servers. - * @property {boolean} [pickHostNameFromBackendAddress] Whether to pick host - * header should be picked from the host name of the backend server. Default - * value is false. - * @property {string} [affinityCookieName] Cookie name to use for the affinity - * cookie. - * @property {boolean} [probeEnabled] Whether the probe is enabled. Default - * value is false. - * @property {string} [path] Path which should be used as a prefix for all HTTP - * requests. Null means no path will be prefixed. Default value is null. - * @property {string} [provisioningState] Provisioning state of the backend - * http settings resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] Name of the backend http settings that is unique - * within an Application Gateway. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Type of the resource. + * Backend address pool settings of an application gateway. */ export interface ApplicationGatewayBackendHttpSettings extends SubResource { + /** + * The destination port on the backend. + */ port?: number; + /** + * The protocol used to communicate with the backend. Possible values are 'Http' and 'Https'. + * Possible values include: 'Http', 'Https' + */ protocol?: string; + /** + * Cookie based affinity. Possible values include: 'Enabled', 'Disabled' + */ cookieBasedAffinity?: string; + /** + * Request timeout in seconds. Application Gateway will fail the request if response is not + * received within RequestTimeout. Acceptable values are from 1 second to 86400 seconds. + */ requestTimeout?: number; + /** + * Probe resource of an application gateway. + */ probe?: SubResource; + /** + * Array of references to application gateway authentication certificates. + */ authenticationCertificates?: SubResource[]; - trustedRootCertificates?: SubResource[]; + /** + * Connection draining of the backend http settings resource. + */ connectionDraining?: ApplicationGatewayConnectionDraining; + /** + * Host header to be sent to the backend servers. + */ hostName?: string; + /** + * Whether to pick host header should be picked from the host name of the backend server. Default + * value is false. + */ pickHostNameFromBackendAddress?: boolean; + /** + * Cookie name to use for the affinity cookie. + */ affinityCookieName?: string; + /** + * Whether the probe is enabled. Default value is false. + */ probeEnabled?: boolean; + /** + * Path which should be used as a prefix for all HTTP requests. Null means no path will be + * prefixed. Default value is null. + */ path?: string; + /** + * Provisioning state of the backend http settings resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * Name of the backend http settings that is unique within an Application Gateway. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * Type of the resource. + */ type?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayBackendHealthServer class. - * @constructor * Application gateway backendhealth http settings. - * - * @property {string} [address] IP address or FQDN of backend server. - * @property {object} [ipConfiguration] Reference of IP configuration of - * backend server. - * @property {array} [ipConfiguration.virtualNetworkTaps] The reference to - * Virtual Network Taps. - * @property {array} [ipConfiguration.applicationGatewayBackendAddressPools] - * The reference of ApplicationGatewayBackendAddressPool resource. - * @property {array} [ipConfiguration.loadBalancerBackendAddressPools] The - * reference of LoadBalancerBackendAddressPool resource. - * @property {array} [ipConfiguration.loadBalancerInboundNatRules] A list of - * references of LoadBalancerInboundNatRules. - * @property {string} [ipConfiguration.privateIPAddress] Private IP address of - * the IP configuration. - * @property {string} [ipConfiguration.privateIPAllocationMethod] Defines how a - * private IP address is assigned. Possible values are: 'Static' and 'Dynamic'. - * Possible values include: 'Static', 'Dynamic' - * @property {string} [ipConfiguration.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 - * are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' - * @property {object} [ipConfiguration.subnet] Subnet bound to the IP - * configuration. - * @property {string} [ipConfiguration.subnet.addressPrefix] The address prefix - * for the subnet. - * @property {array} [ipConfiguration.subnet.addressPrefixes] List of address - * prefixes for the subnet. - * @property {object} [ipConfiguration.subnet.networkSecurityGroup] The - * reference of the NetworkSecurityGroup resource. - * @property {array} - * [ipConfiguration.subnet.networkSecurityGroup.securityRules] A collection of - * security rules of the network security group. - * @property {array} - * [ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. - * @property {array} - * [ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] A collection - * of references to network interfaces. - * @property {array} [ipConfiguration.subnet.networkSecurityGroup.subnets] A - * collection of references to subnets. - * @property {string} - * [ipConfiguration.subnet.networkSecurityGroup.resourceGuid] The resource GUID - * property of the network security group resource. - * @property {string} - * [ipConfiguration.subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [ipConfiguration.subnet.networkSecurityGroup.etag] A - * unique read-only string that changes whenever the resource is updated. - * @property {object} [ipConfiguration.subnet.routeTable] The reference of the - * RouteTable resource. - * @property {array} [ipConfiguration.subnet.routeTable.routes] Collection of - * routes contained within a route table. - * @property {array} [ipConfiguration.subnet.routeTable.subnets] A collection - * of references to subnets. - * @property {boolean} - * [ipConfiguration.subnet.routeTable.disableBgpRoutePropagation] Gets or sets - * whether to disable the routes learned by BGP on that route table. True means - * disable. - * @property {string} [ipConfiguration.subnet.routeTable.provisioningState] The - * provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [ipConfiguration.subnet.routeTable.etag] Gets a unique - * read-only string that changes whenever the resource is updated. - * @property {array} [ipConfiguration.subnet.serviceEndpoints] An array of - * service endpoints. - * @property {array} [ipConfiguration.subnet.serviceEndpointPolicies] An array - * of service endpoint policies. - * @property {array} [ipConfiguration.subnet.interfaceEndpoints] An array of - * references to interface endpoints - * @property {array} [ipConfiguration.subnet.ipConfigurations] Gets an array of - * references to the network interface IP configurations using subnet. - * @property {array} [ipConfiguration.subnet.ipConfigurationProfiles] Array of - * IP configuration profiles which reference this subnet. - * @property {array} [ipConfiguration.subnet.resourceNavigationLinks] Gets an - * array of references to the external resources using subnet. - * @property {array} [ipConfiguration.subnet.serviceAssociationLinks] Gets an - * array of references to services injecting into this subnet. - * @property {array} [ipConfiguration.subnet.delegations] Gets an array of - * references to the delegations on the subnet. - * @property {string} [ipConfiguration.subnet.purpose] A read-only string - * identifying the intention of use for this subnet based on delegations and - * other user-defined properties. - * @property {string} [ipConfiguration.subnet.provisioningState] The - * provisioning state of the resource. - * @property {string} [ipConfiguration.subnet.name] The name of the resource - * that is unique within a resource group. This name can be used to access the - * resource. - * @property {string} [ipConfiguration.subnet.etag] A unique read-only string - * that changes whenever the resource is updated. - * @property {boolean} [ipConfiguration.primary] Gets whether this is a primary - * customer address on the network interface. - * @property {object} [ipConfiguration.publicIPAddress] Public IP address bound - * to the IP configuration. - * @property {object} [ipConfiguration.publicIPAddress.sku] The public IP - * address SKU. - * @property {string} [ipConfiguration.publicIPAddress.sku.name] Name of a - * public IP address SKU. Possible values include: 'Basic', 'Standard' - * @property {string} - * [ipConfiguration.publicIPAddress.publicIPAllocationMethod] The public IP - * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * @property {string} [ipConfiguration.publicIPAddress.publicIPAddressVersion] - * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. - * Possible values include: 'IPv4', 'IPv6' - * @property {object} [ipConfiguration.publicIPAddress.ipConfiguration] The IP - * configuration associated with the public IP address. - * @property {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.privateIPAddress] The - * private IP address of the IP configuration. - * @property {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.privateIPAllocationMethod] - * The private IP allocation method. Possible values are 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * @property {object} [ipConfiguration.publicIPAddress.ipConfiguration.subnet] - * The reference of the subnet resource. - * @property {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefix] The - * address prefix for the subnet. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. - * @property {object} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] - * The reference of the NetworkSecurityGroup resource. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.networkInterfaces] - * A collection of references to network interfaces. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.subnets] - * A collection of references to subnets. - * @property {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. - * @property {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. - * @property {object} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable] The - * reference of the RouteTable resource. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.subnets] - * A collection of references to subnets. - * @property {boolean} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.disableBgpRoutePropagation] - * Gets or sets whether to disable the routes learned by BGP on that route - * table. True means disable. - * @property {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpoints] An - * array of service endpoints. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpointPolicies] - * An array of service endpoint policies. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.interfaceEndpoints] - * An array of references to interface endpoints - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurations] - * Gets an array of references to the network interface IP configurations using - * subnet. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurationProfiles] - * Array of IP configuration profiles which reference this subnet. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] - * Gets an array of references to the external resources using subnet. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. - * @property {array} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.delegations] Gets an - * array of references to the delegations on the subnet. - * @property {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.purpose] A read-only - * string identifying the intention of use for this subnet based on delegations - * and other user-defined properties. - * @property {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.provisioningState] - * The provisioning state of the resource. - * @property {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.name] The name of - * the resource that is unique within a resource group. This name can be used - * to access the resource. - * @property {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.subnet.etag] A unique - * read-only string that changes whenever the resource is updated. - * @property {object} - * [ipConfiguration.publicIPAddress.ipConfiguration.publicIPAddress] The - * reference of the public IP resource. - * @property {string} - * [ipConfiguration.publicIPAddress.ipConfiguration.provisioningState] Gets the - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [ipConfiguration.publicIPAddress.ipConfiguration.name] - * The name of the resource that is unique within a resource group. This name - * can be used to access the resource. - * @property {string} [ipConfiguration.publicIPAddress.ipConfiguration.etag] A - * unique read-only string that changes whenever the resource is updated. - * @property {object} [ipConfiguration.publicIPAddress.dnsSettings] The FQDN of - * the DNS record associated with the public IP address. - * @property {string} - * [ipConfiguration.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. - * @property {string} [ipConfiguration.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. - * @property {string} [ipConfiguration.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. - * @property {array} [ipConfiguration.publicIPAddress.ipTags] The list of tags - * associated with the public IP address. - * @property {string} [ipConfiguration.publicIPAddress.ipAddress] The IP - * address associated with the public IP address resource. - * @property {object} [ipConfiguration.publicIPAddress.publicIPPrefix] The - * Public IP Prefix this Public IP Address should be allocated from. - * @property {string} [ipConfiguration.publicIPAddress.publicIPPrefix.id] - * Resource ID. - * @property {number} [ipConfiguration.publicIPAddress.idleTimeoutInMinutes] - * The idle timeout of the public IP address. - * @property {string} [ipConfiguration.publicIPAddress.resourceGuid] The - * resource GUID property of the public IP resource. - * @property {string} [ipConfiguration.publicIPAddress.provisioningState] The - * provisioning state of the PublicIP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [ipConfiguration.publicIPAddress.etag] A unique read-only - * string that changes whenever the resource is updated. - * @property {array} [ipConfiguration.publicIPAddress.zones] A list of - * availability zones denoting the IP allocated for the resource needs to come - * from. - * @property {array} [ipConfiguration.applicationSecurityGroups] Application - * security groups in which the IP configuration is included. - * @property {string} [ipConfiguration.provisioningState] The provisioning - * state of the network interface IP configuration. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [ipConfiguration.name] The name of the resource that is - * unique within a resource group. This name can be used to access the - * resource. - * @property {string} [ipConfiguration.etag] A unique read-only string that - * changes whenever the resource is updated. - * @property {string} [health] Health of backend server. Possible values - * include: 'Unknown', 'Up', 'Down', 'Partial', 'Draining' */ export interface ApplicationGatewayBackendHealthServer { + /** + * IP address or FQDN of backend server. + */ address?: string; + /** + * Reference of IP configuration of backend server. + */ ipConfiguration?: NetworkInterfaceIPConfiguration; + /** + * Health of backend server. Possible values include: 'Unknown', 'Up', 'Down', 'Partial', + * 'Draining' + */ health?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayBackendHealthHttpSettings class. - * @constructor * Application gateway BackendHealthHttp settings. - * - * @property {object} [backendHttpSettings] Reference of an - * ApplicationGatewayBackendHttpSettings resource. - * @property {number} [backendHttpSettings.port] The destination port on the - * backend. - * @property {string} [backendHttpSettings.protocol] The protocol used to - * communicate with the backend. Possible values are 'Http' and 'Https'. - * Possible values include: 'Http', 'Https' - * @property {string} [backendHttpSettings.cookieBasedAffinity] Cookie based - * affinity. Possible values include: 'Enabled', 'Disabled' - * @property {number} [backendHttpSettings.requestTimeout] Request timeout in - * seconds. Application Gateway will fail the request if response is not - * received within RequestTimeout. Acceptable values are from 1 second to 86400 - * seconds. - * @property {object} [backendHttpSettings.probe] Probe resource of an - * application gateway. - * @property {string} [backendHttpSettings.probe.id] Resource ID. - * @property {array} [backendHttpSettings.authenticationCertificates] Array of - * references to application gateway authentication certificates. - * @property {array} [backendHttpSettings.trustedRootCertificates] Array of - * references to application gateway trusted root certificates. - * @property {object} [backendHttpSettings.connectionDraining] Connection - * draining of the backend http settings resource. - * @property {boolean} [backendHttpSettings.connectionDraining.enabled] Whether - * connection draining is enabled or not. - * @property {number} - * [backendHttpSettings.connectionDraining.drainTimeoutInSec] The number of - * seconds connection draining is active. Acceptable values are from 1 second - * to 3600 seconds. - * @property {string} [backendHttpSettings.hostName] Host header to be sent to - * the backend servers. - * @property {boolean} [backendHttpSettings.pickHostNameFromBackendAddress] - * Whether to pick host header should be picked from the host name of the - * backend server. Default value is false. - * @property {string} [backendHttpSettings.affinityCookieName] Cookie name to - * use for the affinity cookie. - * @property {boolean} [backendHttpSettings.probeEnabled] Whether the probe is - * enabled. Default value is false. - * @property {string} [backendHttpSettings.path] Path which should be used as a - * prefix for all HTTP requests. Null means no path will be prefixed. Default - * value is null. - * @property {string} [backendHttpSettings.provisioningState] Provisioning - * state of the backend http settings resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [backendHttpSettings.name] Name of the backend http - * settings that is unique within an Application Gateway. - * @property {string} [backendHttpSettings.etag] A unique read-only string that - * changes whenever the resource is updated. - * @property {string} [backendHttpSettings.type] Type of the resource. - * @property {array} [servers] List of ApplicationGatewayBackendHealthServer - * resources. */ export interface ApplicationGatewayBackendHealthHttpSettings { + /** + * Reference of an ApplicationGatewayBackendHttpSettings resource. + */ backendHttpSettings?: ApplicationGatewayBackendHttpSettings; + /** + * List of ApplicationGatewayBackendHealthServer resources. + */ servers?: ApplicationGatewayBackendHealthServer[]; } /** - * @class - * Initializes a new instance of the ApplicationGatewayBackendHealthPool class. - * @constructor * Application gateway BackendHealth pool. - * - * @property {object} [backendAddressPool] Reference of an - * ApplicationGatewayBackendAddressPool resource. - * @property {array} [backendAddressPool.backendIPConfigurations] Collection of - * references to IPs defined in network interfaces. - * @property {array} [backendAddressPool.backendAddresses] Backend addresses - * @property {string} [backendAddressPool.provisioningState] Provisioning state - * of the backend address pool resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [backendAddressPool.name] Name of the backend address - * pool that is unique within an Application Gateway. - * @property {string} [backendAddressPool.etag] A unique read-only string that - * changes whenever the resource is updated. - * @property {string} [backendAddressPool.type] Type of the resource. - * @property {array} [backendHttpSettingsCollection] List of - * ApplicationGatewayBackendHealthHttpSettings resources. */ export interface ApplicationGatewayBackendHealthPool { + /** + * Reference of an ApplicationGatewayBackendAddressPool resource. + */ backendAddressPool?: ApplicationGatewayBackendAddressPool; + /** + * List of ApplicationGatewayBackendHealthHttpSettings resources. + */ backendHttpSettingsCollection?: ApplicationGatewayBackendHealthHttpSettings[]; } /** - * @class - * Initializes a new instance of the ApplicationGatewayBackendHealth class. - * @constructor * List of ApplicationGatewayBackendHealthPool resources. - * - * @property {array} [backendAddressPools] */ export interface ApplicationGatewayBackendHealth { backendAddressPools?: ApplicationGatewayBackendHealthPool[]; } /** - * @class - * Initializes a new instance of the ApplicationGatewaySku class. - * @constructor * SKU of an application gateway - * - * @property {string} [name] Name of an application gateway SKU. Possible - * values include: 'Standard_Small', 'Standard_Medium', 'Standard_Large', - * 'WAF_Medium', 'WAF_Large', 'Standard_v2', 'WAF_v2' - * @property {string} [tier] Tier of an application gateway. Possible values - * include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2' - * @property {number} [capacity] Capacity (instance count) of an application - * gateway. - */ +*/ export interface ApplicationGatewaySku { + /** + * Name of an application gateway SKU. Possible values include: 'Standard_Small', + * 'Standard_Medium', 'Standard_Large', 'WAF_Medium', 'WAF_Large', 'Standard_v2', 'WAF_v2' + */ name?: string; + /** + * Tier of an application gateway. Possible values include: 'Standard', 'WAF', 'Standard_v2', + * 'WAF_v2' + */ tier?: string; + /** + * Capacity (instance count) of an application gateway. + */ capacity?: number; } /** - * @class - * Initializes a new instance of the ApplicationGatewaySslPolicy class. - * @constructor * Application Gateway Ssl policy. - * - * @property {array} [disabledSslProtocols] Ssl protocols to be disabled on - * application gateway. - * @property {string} [policyType] Type of Ssl Policy. Possible values include: - * 'Predefined', 'Custom' - * @property {string} [policyName] Name of Ssl predefined policy. Possible - * values include: 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', - * 'AppGwSslPolicy20170401S' - * @property {array} [cipherSuites] Ssl cipher suites to be enabled in the - * specified order to application gateway. - * @property {string} [minProtocolVersion] Minimum version of Ssl protocol to - * be supported on application gateway. Possible values include: 'TLSv1_0', - * 'TLSv1_1', 'TLSv1_2' - */ +*/ export interface ApplicationGatewaySslPolicy { + /** + * Ssl protocols to be disabled on application gateway. + */ disabledSslProtocols?: string[]; + /** + * Type of Ssl Policy. Possible values include: 'Predefined', 'Custom' + */ policyType?: string; + /** + * Name of Ssl predefined policy. Possible values include: 'AppGwSslPolicy20150501', + * 'AppGwSslPolicy20170401', 'AppGwSslPolicy20170401S' + */ policyName?: string; + /** + * Ssl cipher suites to be enabled in the specified order to application gateway. + */ cipherSuites?: string[]; + /** + * Minimum version of Ssl protocol to be supported on application gateway. Possible values + * include: 'TLSv1_0', 'TLSv1_1', 'TLSv1_2' + */ minProtocolVersion?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayIPConfiguration class. - * @constructor - * IP configuration of an application gateway. Currently 1 public and 1 private - * IP configuration is allowed. - * - * @property {object} [subnet] Reference of the subnet resource. A subnet from - * where application gateway gets its private address. - * @property {string} [subnet.id] Resource ID. - * @property {string} [provisioningState] Provisioning state of the application - * gateway subnet resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] Name of the IP configuration that is unique within - * an Application Gateway. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Type of the resource. - */ + * IP configuration of an application gateway. Currently 1 public and 1 private IP configuration is + * allowed. +*/ export interface ApplicationGatewayIPConfiguration extends SubResource { + /** + * Reference of the subnet resource. A subnet from where application gateway gets its private + * address. + */ subnet?: SubResource; + /** + * Provisioning state of the application gateway subnet resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * Name of the IP configuration that is unique within an Application Gateway. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * Type of the resource. + */ type?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayAuthenticationCertificate class. - * @constructor * Authentication certificates of an application gateway. - * - * @property {string} [data] Certificate public data. - * @property {string} [provisioningState] Provisioning state of the - * authentication certificate resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [name] Name of the authentication certificate that is - * unique within an Application Gateway. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Type of the resource. - */ +*/ export interface ApplicationGatewayAuthenticationCertificate extends SubResource { + /** + * Certificate public data. + */ data?: string; + /** + * Provisioning state of the authentication certificate resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * Name of the authentication certificate that is unique within an Application Gateway. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * Type of the resource. + */ type?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayTrustedRootCertificate class. - * @constructor - * Trusted Root certificates of an application gateway. - * - * @property {string} [data] Certificate public data. - * @property {string} [keyVaultSecretId] Secret Id of (base-64 encoded - * unencrypted pfx) 'Secret' or 'Certificate' object stored in KeyVault. - * @property {string} [provisioningState] Provisioning state of the trusted - * root certificate resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] Name of the trusted root certificate that is - * unique within an Application Gateway. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Type of the resource. - */ -export interface ApplicationGatewayTrustedRootCertificate extends SubResource { - data?: string; - keyVaultSecretId?: string; - provisioningState?: string; - name?: string; - etag?: string; - type?: string; -} - -/** - * @class - * Initializes a new instance of the ApplicationGatewaySslCertificate class. - * @constructor * SSL certificates of an application gateway. - * - * @property {string} [data] Base-64 encoded pfx certificate. Only applicable - * in PUT Request. - * @property {string} [password] Password for the pfx file specified in data. - * Only applicable in PUT request. - * @property {string} [publicCertData] Base-64 encoded Public cert data - * corresponding to pfx specified in data. Only applicable in GET request. - * @property {string} [keyVaultSecretId] Secret Id of (base-64 encoded - * unencrypted pfx) 'Secret' or 'Certificate' object stored in KeyVault. - * @property {string} [provisioningState] Provisioning state of the SSL - * certificate resource Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] Name of the SSL certificate that is unique within - * an Application Gateway. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Type of the resource. - */ +*/ export interface ApplicationGatewaySslCertificate extends SubResource { + /** + * Base-64 encoded pfx certificate. Only applicable in PUT Request. + */ data?: string; + /** + * Password for the pfx file specified in data. Only applicable in PUT request. + */ password?: string; + /** + * Base-64 encoded Public cert data corresponding to pfx specified in data. Only applicable in + * GET request. + */ publicCertData?: string; - keyVaultSecretId?: string; + /** + * Provisioning state of the SSL certificate resource Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * Name of the SSL certificate that is unique within an Application Gateway. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * Type of the resource. + */ type?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayFrontendIPConfiguration class. - * @constructor * Frontend IP configuration of an application gateway. - * - * @property {string} [privateIPAddress] PrivateIPAddress of the network - * interface IP Configuration. - * @property {string} [privateIPAllocationMethod] PrivateIP allocation method. - * Possible values include: 'Static', 'Dynamic' - * @property {object} [subnet] Reference of the subnet resource. - * @property {string} [subnet.id] Resource ID. - * @property {object} [publicIPAddress] Reference of the PublicIP resource. - * @property {string} [publicIPAddress.id] Resource ID. - * @property {string} [provisioningState] Provisioning state of the public IP - * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [name] Name of the frontend IP configuration that is - * unique within an Application Gateway. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Type of the resource. - */ +*/ export interface ApplicationGatewayFrontendIPConfiguration extends SubResource { + /** + * PrivateIPAddress of the network interface IP Configuration. + */ privateIPAddress?: string; + /** + * PrivateIP allocation method. Possible values include: 'Static', 'Dynamic' + */ privateIPAllocationMethod?: string; + /** + * Reference of the subnet resource. + */ subnet?: SubResource; + /** + * Reference of the PublicIP resource. + */ publicIPAddress?: SubResource; + /** + * Provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + */ provisioningState?: string; + /** + * Name of the frontend IP configuration that is unique within an Application Gateway. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * Type of the resource. + */ type?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayFrontendPort class. - * @constructor * Frontend port of an application gateway. - * - * @property {number} [port] Frontend port - * @property {string} [provisioningState] Provisioning state of the frontend - * port resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [name] Name of the frontend port that is unique within an - * Application Gateway - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Type of the resource. - */ +*/ export interface ApplicationGatewayFrontendPort extends SubResource { + /** + * Frontend port + */ port?: number; + /** + * Provisioning state of the frontend port resource. Possible values are: 'Updating', 'Deleting', + * and 'Failed'. + */ provisioningState?: string; + /** + * Name of the frontend port that is unique within an Application Gateway + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * Type of the resource. + */ type?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayCustomError class. - * @constructor - * Customer error of an application gateway. - * - * @property {string} [statusCode] Status code of the application gateway - * customer error. Possible values include: 'HttpStatus403', 'HttpStatus502' - * @property {string} [customErrorPageUrl] Error page URL of the application - * gateway customer error. - */ -export interface ApplicationGatewayCustomError { - statusCode?: string; - customErrorPageUrl?: string; -} - -/** - * @class - * Initializes a new instance of the ApplicationGatewayHttpListener class. - * @constructor * Http listener of an application gateway. - * - * @property {object} [frontendIPConfiguration] Frontend IP configuration - * resource of an application gateway. - * @property {string} [frontendIPConfiguration.id] Resource ID. - * @property {object} [frontendPort] Frontend port resource of an application - * gateway. - * @property {string} [frontendPort.id] Resource ID. - * @property {string} [protocol] Protocol of the HTTP listener. Possible values - * are 'Http' and 'Https'. Possible values include: 'Http', 'Https' - * @property {string} [hostName] Host name of HTTP listener. - * @property {object} [sslCertificate] SSL certificate resource of an - * application gateway. - * @property {string} [sslCertificate.id] Resource ID. - * @property {boolean} [requireServerNameIndication] Applicable only if - * protocol is https. Enables SNI for multi-hosting. - * @property {string} [provisioningState] Provisioning state of the HTTP - * listener resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {array} [customErrorConfigurations] Custom error configurations of - * the HTTP listener. - * @property {string} [name] Name of the HTTP listener that is unique within an - * Application Gateway. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Type of the resource. - */ +*/ export interface ApplicationGatewayHttpListener extends SubResource { + /** + * Frontend IP configuration resource of an application gateway. + */ frontendIPConfiguration?: SubResource; + /** + * Frontend port resource of an application gateway. + */ frontendPort?: SubResource; + /** + * Protocol of the HTTP listener. Possible values are 'Http' and 'Https'. Possible values + * include: 'Http', 'Https' + */ protocol?: string; + /** + * Host name of HTTP listener. + */ hostName?: string; + /** + * SSL certificate resource of an application gateway. + */ sslCertificate?: SubResource; + /** + * Applicable only if protocol is https. Enables SNI for multi-hosting. + */ requireServerNameIndication?: boolean; + /** + * Provisioning state of the HTTP listener resource. Possible values are: 'Updating', 'Deleting', + * and 'Failed'. + */ provisioningState?: string; - customErrorConfigurations?: ApplicationGatewayCustomError[]; + /** + * Name of the HTTP listener that is unique within an Application Gateway. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * Type of the resource. + */ type?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayPathRule class. - * @constructor * Path rule of URL path map of an application gateway. - * - * @property {array} [paths] Path rules of URL path map. - * @property {object} [backendAddressPool] Backend address pool resource of URL - * path map path rule. - * @property {string} [backendAddressPool.id] Resource ID. - * @property {object} [backendHttpSettings] Backend http settings resource of - * URL path map path rule. - * @property {string} [backendHttpSettings.id] Resource ID. - * @property {object} [redirectConfiguration] Redirect configuration resource - * of URL path map path rule. - * @property {string} [redirectConfiguration.id] Resource ID. - * @property {object} [rewriteRuleSet] Rewrite rule set resource of URL path - * map path rule. - * @property {string} [rewriteRuleSet.id] Resource ID. - * @property {string} [provisioningState] Path rule of URL path map resource. - * Possible values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [name] Name of the path rule that is unique within an - * Application Gateway. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Type of the resource. - */ +*/ export interface ApplicationGatewayPathRule extends SubResource { + /** + * Path rules of URL path map. + */ paths?: string[]; + /** + * Backend address pool resource of URL path map path rule. + */ backendAddressPool?: SubResource; + /** + * Backend http settings resource of URL path map path rule. + */ backendHttpSettings?: SubResource; + /** + * Redirect configuration resource of URL path map path rule. + */ redirectConfiguration?: SubResource; - rewriteRuleSet?: SubResource; + /** + * Path rule of URL path map resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * Name of the path rule that is unique within an Application Gateway. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * Type of the resource. + */ type?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayProbeHealthResponseMatch class. - * @constructor * Application gateway probe health response match - * - * @property {string} [body] Body that must be contained in the health - * response. Default value is empty. - * @property {array} [statusCodes] Allowed ranges of healthy status codes. - * Default range of healthy status codes is 200-399. - */ +*/ export interface ApplicationGatewayProbeHealthResponseMatch { + /** + * Body that must be contained in the health response. Default value is empty. + */ body?: string; + /** + * Allowed ranges of healthy status codes. Default range of healthy status codes is 200-399. + */ statusCodes?: string[]; } /** - * @class - * Initializes a new instance of the ApplicationGatewayProbe class. - * @constructor * Probe of the application gateway. - * - * @property {string} [protocol] The protocol used for the probe. Possible - * values are 'Http' and 'Https'. Possible values include: 'Http', 'Https' - * @property {string} [host] Host name to send the probe to. - * @property {string} [path] Relative path of probe. Valid path starts from - * '/'. Probe is sent to ://: - * @property {number} [interval] The probing interval in seconds. This is the - * time interval between two consecutive probes. Acceptable values are from 1 - * second to 86400 seconds. - * @property {number} [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. - * @property {number} [unhealthyThreshold] The probe retry count. Backend - * server is marked down after consecutive probe failure count reaches - * UnhealthyThreshold. Acceptable values are from 1 second to 20. - * @property {boolean} [pickHostNameFromBackendHttpSettings] Whether the host - * header should be picked from the backend http settings. Default value is - * false. - * @property {number} [minServers] Minimum number of servers that are always - * marked healthy. Default value is 0. - * @property {object} [match] Criterion for classifying a healthy probe - * response. - * @property {string} [match.body] Body that must be contained in the health - * response. Default value is empty. - * @property {array} [match.statusCodes] Allowed ranges of healthy status - * codes. Default range of healthy status codes is 200-399. - * @property {string} [provisioningState] Provisioning state of the backend - * http settings resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] Name of the probe that is unique within an - * Application Gateway. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Type of the resource. - */ +*/ export interface ApplicationGatewayProbe extends SubResource { + /** + * The protocol used for the probe. Possible values are 'Http' and 'Https'. Possible values + * include: 'Http', 'Https' + */ protocol?: string; + /** + * Host name to send the probe to. + */ host?: string; + /** + * Relative path of probe. Valid path starts from '/'. Probe is sent to + * ://: + */ path?: string; + /** + * The probing interval in seconds. This is the time interval between two consecutive probes. + * Acceptable values are from 1 second to 86400 seconds. + */ interval?: number; + /** + * 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. + */ timeout?: number; + /** + * The probe retry count. Backend server is marked down after consecutive probe failure count + * reaches UnhealthyThreshold. Acceptable values are from 1 second to 20. + */ unhealthyThreshold?: number; + /** + * Whether the host header should be picked from the backend http settings. Default value is + * false. + */ pickHostNameFromBackendHttpSettings?: boolean; + /** + * Minimum number of servers that are always marked healthy. Default value is 0. + */ minServers?: number; + /** + * Criterion for classifying a healthy probe response. + */ match?: ApplicationGatewayProbeHealthResponseMatch; + /** + * Provisioning state of the backend http settings resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * Name of the probe that is unique within an Application Gateway. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * Type of the resource. + */ type?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayRequestRoutingRule class. - * @constructor * Request routing rule of an application gateway. - * - * @property {string} [ruleType] Rule type. Possible values include: 'Basic', - * 'PathBasedRouting' - * @property {object} [backendAddressPool] Backend address pool resource of the - * application gateway. - * @property {string} [backendAddressPool.id] Resource ID. - * @property {object} [backendHttpSettings] Backend http settings resource of - * the application gateway. - * @property {string} [backendHttpSettings.id] Resource ID. - * @property {object} [httpListener] Http listener resource of the application - * gateway. - * @property {string} [httpListener.id] Resource ID. - * @property {object} [urlPathMap] URL path map resource of the application - * gateway. - * @property {string} [urlPathMap.id] Resource ID. - * @property {object} [rewriteRuleSet] Rewrite Rule Set resource in Basic rule - * of the application gateway. - * @property {string} [rewriteRuleSet.id] Resource ID. - * @property {object} [redirectConfiguration] Redirect configuration resource - * of the application gateway. - * @property {string} [redirectConfiguration.id] Resource ID. - * @property {string} [provisioningState] Provisioning state of the request - * routing rule resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] Name of the request routing rule that is unique - * within an Application Gateway. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Type of the resource. - */ +*/ export interface ApplicationGatewayRequestRoutingRule extends SubResource { + /** + * Rule type. Possible values include: 'Basic', 'PathBasedRouting' + */ ruleType?: string; + /** + * Backend address pool resource of the application gateway. + */ backendAddressPool?: SubResource; + /** + * Backend http settings resource of the application gateway. + */ backendHttpSettings?: SubResource; + /** + * Http listener resource of the application gateway. + */ httpListener?: SubResource; + /** + * URL path map resource of the application gateway. + */ urlPathMap?: SubResource; - rewriteRuleSet?: SubResource; + /** + * Redirect configuration resource of the application gateway. + */ redirectConfiguration?: SubResource; + /** + * Provisioning state of the request routing rule resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * Name of the request routing rule that is unique within an Application Gateway. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * Type of the resource. + */ type?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayHeaderConfiguration class. - * @constructor - * Header configuration of the Actions set in Application Gateway. - * - * @property {string} [headerName] Header name of the header configuration - * @property {string} [headerValue] Header value of the header configuration - */ -export interface ApplicationGatewayHeaderConfiguration { - headerName?: string; - headerValue?: string; -} - -/** - * @class - * Initializes a new instance of the ApplicationGatewayRewriteRuleActionSet class. - * @constructor - * Set of actions in the Rewrite Rule in Application Gateway. - * - * @property {array} [requestHeaderConfigurations] Request Header Actions in - * the Action Set - * @property {array} [responseHeaderConfigurations] Response Header Actions in - * the Action Set - */ -export interface ApplicationGatewayRewriteRuleActionSet { - requestHeaderConfigurations?: ApplicationGatewayHeaderConfiguration[]; - responseHeaderConfigurations?: ApplicationGatewayHeaderConfiguration[]; -} - -/** - * @class - * Initializes a new instance of the ApplicationGatewayRewriteRule class. - * @constructor - * Rewrite rule of an application gateway. - * - * @property {string} [name] Name of the rewrite rule that is unique within an - * Application Gateway. - * @property {object} [actionSet] Set of actions to be done as part of the - * rewrite Rule. - * @property {array} [actionSet.requestHeaderConfigurations] Request Header - * Actions in the Action Set - * @property {array} [actionSet.responseHeaderConfigurations] Response Header - * Actions in the Action Set - */ -export interface ApplicationGatewayRewriteRule { - name?: string; - actionSet?: ApplicationGatewayRewriteRuleActionSet; -} - -/** - * @class - * Initializes a new instance of the ApplicationGatewayRewriteRuleSet class. - * @constructor - * Rewrite rule set of an application gateway. - * - * @property {array} [rewriteRules] Rewrite rules in the rewrite rule set. - * @property {string} [provisioningState] Provisioning state of the rewrite - * rule set resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] Name of the rewrite rule set that is unique within - * an Application Gateway. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface ApplicationGatewayRewriteRuleSet extends SubResource { - rewriteRules?: ApplicationGatewayRewriteRule[]; - readonly provisioningState?: string; - name?: string; - readonly etag?: string; -} - -/** - * @class - * Initializes a new instance of the ApplicationGatewayRedirectConfiguration class. - * @constructor * Redirect configuration of an application gateway. - * - * @property {string} [redirectType] Supported http redirection types - - * Permanent, Temporary, Found, SeeOther. Possible values include: 'Permanent', - * 'Found', 'SeeOther', 'Temporary' - * @property {object} [targetListener] Reference to a listener to redirect the - * request to. - * @property {string} [targetListener.id] Resource ID. - * @property {string} [targetUrl] Url to redirect the request to. - * @property {boolean} [includePath] Include path in the redirected url. - * @property {boolean} [includeQueryString] Include query string in the - * redirected url. - * @property {array} [requestRoutingRules] Request routing specifying redirect - * configuration. - * @property {array} [urlPathMaps] Url path maps specifying default redirect - * configuration. - * @property {array} [pathRules] Path rules specifying redirect configuration. - * @property {string} [name] Name of the redirect configuration that is unique - * within an Application Gateway. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Type of the resource. - */ +*/ export interface ApplicationGatewayRedirectConfiguration extends SubResource { + /** + * Supported http redirection types - Permanent, Temporary, Found, SeeOther. Possible values + * include: 'Permanent', 'Found', 'SeeOther', 'Temporary' + */ redirectType?: string; + /** + * Reference to a listener to redirect the request to. + */ targetListener?: SubResource; + /** + * Url to redirect the request to. + */ targetUrl?: string; + /** + * Include path in the redirected url. + */ includePath?: boolean; + /** + * Include query string in the redirected url. + */ includeQueryString?: boolean; + /** + * Request routing specifying redirect configuration. + */ requestRoutingRules?: SubResource[]; + /** + * Url path maps specifying default redirect configuration. + */ urlPathMaps?: SubResource[]; + /** + * Path rules specifying redirect configuration. + */ pathRules?: SubResource[]; + /** + * Name of the redirect configuration that is unique within an Application Gateway. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * Type of the resource. + */ type?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayUrlPathMap class. - * @constructor - * UrlPathMaps give a url path to the backend mapping information for - * PathBasedRouting. - * - * @property {object} [defaultBackendAddressPool] Default backend address pool - * resource of URL path map. - * @property {string} [defaultBackendAddressPool.id] Resource ID. - * @property {object} [defaultBackendHttpSettings] Default backend http - * settings resource of URL path map. - * @property {string} [defaultBackendHttpSettings.id] Resource ID. - * @property {object} [defaultRewriteRuleSet] Default Rewrite rule set resource - * of URL path map. - * @property {string} [defaultRewriteRuleSet.id] Resource ID. - * @property {object} [defaultRedirectConfiguration] Default redirect - * configuration resource of URL path map. - * @property {string} [defaultRedirectConfiguration.id] Resource ID. - * @property {array} [pathRules] Path rule of URL path map resource. - * @property {string} [provisioningState] Provisioning state of the backend - * http settings resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] Name of the URL path map that is unique within an - * Application Gateway. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Type of the resource. - */ + * UrlPathMaps give a url path to the backend mapping information for PathBasedRouting. +*/ export interface ApplicationGatewayUrlPathMap extends SubResource { + /** + * Default backend address pool resource of URL path map. + */ defaultBackendAddressPool?: SubResource; + /** + * Default backend http settings resource of URL path map. + */ defaultBackendHttpSettings?: SubResource; - defaultRewriteRuleSet?: SubResource; + /** + * Default redirect configuration resource of URL path map. + */ defaultRedirectConfiguration?: SubResource; + /** + * Path rule of URL path map resource. + */ pathRules?: ApplicationGatewayPathRule[]; + /** + * Provisioning state of the backend http settings resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * Name of the URL path map that is unique within an Application Gateway. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * Type of the resource. + */ type?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayFirewallDisabledRuleGroup class. - * @constructor * Allows to disable rules within a rule group or an entire rule group. - * - * @property {string} ruleGroupName The name of the rule group that will be - * disabled. - * @property {array} [rules] The list of rules that will be disabled. If null, - * all rules of the rule group will be disabled. - */ +*/ export interface ApplicationGatewayFirewallDisabledRuleGroup { + /** + * The name of the rule group that will be disabled. + */ ruleGroupName: string; + /** + * The list of rules that will be disabled. If null, all rules of the rule group will be + * disabled. + */ rules?: number[]; } /** - * @class - * Initializes a new instance of the ApplicationGatewayFirewallExclusion class. - * @constructor - * Allow to exclude some variable satisfy the condition for the WAF check - * - * @property {string} matchVariable The variable to be excluded. - * @property {string} selectorMatchOperator When matchVariable is a collection, - * operate on the selector to specify which elements in the collection this - * exclusion applies to. - * @property {string} selector When matchVariable is a collection, operator - * used to specify which elements in the collection this exclusion applies to. - */ -export interface ApplicationGatewayFirewallExclusion { - matchVariable: string; - selectorMatchOperator: string; - selector: string; -} - -/** - * @class - * Initializes a new instance of the ApplicationGatewayWebApplicationFirewallConfiguration class. - * @constructor * Application gateway web application firewall configuration. - * - * @property {boolean} enabled Whether the web application firewall is enabled - * or not. - * @property {string} firewallMode Web application firewall mode. Possible - * values include: 'Detection', 'Prevention' - * @property {string} ruleSetType The type of the web application firewall rule - * set. Possible values are: 'OWASP'. - * @property {string} ruleSetVersion The version of the rule set type. - * @property {array} [disabledRuleGroups] The disabled rule groups. - * @property {boolean} [requestBodyCheck] Whether allow WAF to check request - * Body. - * @property {number} [maxRequestBodySize] Maxium request body size for WAF. - * @property {number} [maxRequestBodySizeInKb] Maxium request body size in Kb - * for WAF. - * @property {number} [fileUploadLimitInMb] Maxium file upload size in Mb for - * WAF. - * @property {array} [exclusions] The exclusion list. - */ +*/ export interface ApplicationGatewayWebApplicationFirewallConfiguration { + /** + * Whether the web application firewall is enabled or not. + */ enabled: boolean; + /** + * Web application firewall mode. Possible values include: 'Detection', 'Prevention' + */ firewallMode: string; + /** + * The type of the web application firewall rule set. Possible values are: 'OWASP'. + */ ruleSetType: string; + /** + * The version of the rule set type. + */ ruleSetVersion: string; + /** + * The disabled rule groups. + */ disabledRuleGroups?: ApplicationGatewayFirewallDisabledRuleGroup[]; + /** + * Whether allow WAF to check request Body. + */ requestBodyCheck?: boolean; + /** + * Maxium request body size for WAF. + */ maxRequestBodySize?: number; - maxRequestBodySizeInKb?: number; - fileUploadLimitInMb?: number; - exclusions?: ApplicationGatewayFirewallExclusion[]; } /** - * @class - * Initializes a new instance of the ApplicationGatewayAutoscaleConfiguration class. - * @constructor - * Application Gateway autoscale configuration. - * - * @property {number} minCapacity Lower bound on number of Application Gateway - * instances - */ -export interface ApplicationGatewayAutoscaleConfiguration { - minCapacity: number; -} - -/** - * @class - * Initializes a new instance of the ManagedServiceIdentityUserAssignedIdentitiesValue class. - * @constructor - * @property {string} [principalId] The principal id of user assigned identity. - * @property {string} [clientId] The client id of user assigned identity. - */ -export interface ManagedServiceIdentityUserAssignedIdentitiesValue { - readonly principalId?: string; - readonly clientId?: string; + * Application Gateway autoscale bounds on number of Application Gateway instance. +*/ +export interface ApplicationGatewayAutoscaleBounds { + /** + * Lower bound on number of Application Gateway instances. + */ + min: number; + /** + * Upper bound on number of Application Gateway instances. + */ + max: number; } /** - * @class - * Initializes a new instance of the ManagedServiceIdentity class. - * @constructor - * Identity for the resource. - * - * @property {string} [principalId] The principal id of the system assigned - * identity. This property will only be provided for a system assigned - * identity. - * @property {string} [tenantId] The tenant id of the system assigned identity. - * This property will only be provided for a system assigned identity. - * @property {string} [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' - * @property {object} [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}'. - */ -export interface ManagedServiceIdentity { - readonly principalId?: string; - readonly tenantId?: string; - type?: string; - userAssignedIdentities?: { [propertyName: string]: ManagedServiceIdentityUserAssignedIdentitiesValue }; + * Application Gateway autoscale configuration. +*/ +export interface ApplicationGatewayAutoscaleConfiguration { + /** + * Autoscale bounds + */ + bounds: ApplicationGatewayAutoscaleBounds; } /** - * @class - * Initializes a new instance of the ApplicationGateway class. - * @constructor * Application gateway resource - * - * @property {object} [sku] SKU of the application gateway resource. - * @property {string} [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' - * @property {string} [sku.tier] Tier of an application gateway. Possible - * values include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2' - * @property {number} [sku.capacity] Capacity (instance count) of an - * application gateway. - * @property {object} [sslPolicy] SSL policy of the application gateway - * resource. - * @property {array} [sslPolicy.disabledSslProtocols] Ssl protocols to be - * disabled on application gateway. - * @property {string} [sslPolicy.policyType] Type of Ssl Policy. Possible - * values include: 'Predefined', 'Custom' - * @property {string} [sslPolicy.policyName] Name of Ssl predefined policy. - * Possible values include: 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', - * 'AppGwSslPolicy20170401S' - * @property {array} [sslPolicy.cipherSuites] Ssl cipher suites to be enabled - * in the specified order to application gateway. - * @property {string} [sslPolicy.minProtocolVersion] Minimum version of Ssl - * protocol to be supported on application gateway. Possible values include: - * 'TLSv1_0', 'TLSv1_1', 'TLSv1_2' - * @property {string} [operationalState] Operational state of the application - * gateway resource. Possible values include: 'Stopped', 'Starting', 'Running', - * 'Stopping' - * @property {array} [gatewayIPConfigurations] Subnets of application the - * gateway resource. - * @property {array} [authenticationCertificates] Authentication certificates - * of the application gateway resource. - * @property {array} [trustedRootCertificates] Trusted Root certificates of the - * application gateway resource. - * @property {array} [sslCertificates] SSL certificates of the application - * gateway resource. - * @property {array} [frontendIPConfigurations] Frontend IP addresses of the - * application gateway resource. - * @property {array} [frontendPorts] Frontend ports of the application gateway - * resource. - * @property {array} [probes] Probes of the application gateway resource. - * @property {array} [backendAddressPools] Backend address pool of the - * application gateway resource. - * @property {array} [backendHttpSettingsCollection] Backend http settings of - * the application gateway resource. - * @property {array} [httpListeners] Http listeners of the application gateway - * resource. - * @property {array} [urlPathMaps] URL path map of the application gateway - * resource. - * @property {array} [requestRoutingRules] Request routing rules of the - * application gateway resource. - * @property {array} [rewriteRuleSets] Rewrite rules for the application - * gateway resource. - * @property {array} [redirectConfigurations] Redirect configurations of the - * application gateway resource. - * @property {object} [webApplicationFirewallConfiguration] Web application - * firewall configuration. - * @property {boolean} [webApplicationFirewallConfiguration.enabled] Whether - * the web application firewall is enabled or not. - * @property {string} [webApplicationFirewallConfiguration.firewallMode] Web - * application firewall mode. Possible values include: 'Detection', - * 'Prevention' - * @property {string} [webApplicationFirewallConfiguration.ruleSetType] The - * type of the web application firewall rule set. Possible values are: 'OWASP'. - * @property {string} [webApplicationFirewallConfiguration.ruleSetVersion] The - * version of the rule set type. - * @property {array} [webApplicationFirewallConfiguration.disabledRuleGroups] - * The disabled rule groups. - * @property {boolean} [webApplicationFirewallConfiguration.requestBodyCheck] - * Whether allow WAF to check request Body. - * @property {number} [webApplicationFirewallConfiguration.maxRequestBodySize] - * Maxium request body size for WAF. - * @property {number} - * [webApplicationFirewallConfiguration.maxRequestBodySizeInKb] Maxium request - * body size in Kb for WAF. - * @property {number} [webApplicationFirewallConfiguration.fileUploadLimitInMb] - * Maxium file upload size in Mb for WAF. - * @property {array} [webApplicationFirewallConfiguration.exclusions] The - * exclusion list. - * @property {boolean} [enableHttp2] Whether HTTP2 is enabled on the - * application gateway resource. - * @property {boolean} [enableFips] Whether FIPS is enabled on the application - * gateway resource. - * @property {object} [autoscaleConfiguration] Autoscale Configuration. - * @property {number} [autoscaleConfiguration.minCapacity] Lower bound on - * number of Application Gateway instances - * @property {string} [resourceGuid] Resource GUID property of the application - * gateway resource. - * @property {string} [provisioningState] Provisioning state of the application - * gateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * @property {array} [customErrorConfigurations] Custom error configurations of - * the application gateway resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {array} [zones] A list of availability zones denoting where the - * resource needs to come from. - * @property {object} [identity] The identity of the application gateway, if - * configured. - * @property {string} [identity.principalId] The principal id of the system - * assigned identity. This property will only be provided for a system assigned - * identity. - * @property {string} [identity.tenantId] The tenant id of the system assigned - * identity. This property will only be provided for a system assigned - * identity. - * @property {string} [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' - * @property {object} [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}'. - */ +*/ export interface ApplicationGateway extends Resource { + /** + * SKU of the application gateway resource. + */ sku?: ApplicationGatewaySku; + /** + * SSL policy of the application gateway resource. + */ sslPolicy?: ApplicationGatewaySslPolicy; + /** + * Operational state of the application gateway resource. Possible values include: 'Stopped', + * 'Starting', 'Running', 'Stopping' + */ readonly operationalState?: string; + /** + * Subnets of application the gateway resource. + */ gatewayIPConfigurations?: ApplicationGatewayIPConfiguration[]; + /** + * Authentication certificates of the application gateway resource. + */ authenticationCertificates?: ApplicationGatewayAuthenticationCertificate[]; - trustedRootCertificates?: ApplicationGatewayTrustedRootCertificate[]; + /** + * SSL certificates of the application gateway resource. + */ sslCertificates?: ApplicationGatewaySslCertificate[]; + /** + * Frontend IP addresses of the application gateway resource. + */ frontendIPConfigurations?: ApplicationGatewayFrontendIPConfiguration[]; + /** + * Frontend ports of the application gateway resource. + */ frontendPorts?: ApplicationGatewayFrontendPort[]; + /** + * Probes of the application gateway resource. + */ probes?: ApplicationGatewayProbe[]; + /** + * Backend address pool of the application gateway resource. + */ backendAddressPools?: ApplicationGatewayBackendAddressPool[]; + /** + * Backend http settings of the application gateway resource. + */ backendHttpSettingsCollection?: ApplicationGatewayBackendHttpSettings[]; + /** + * Http listeners of the application gateway resource. + */ httpListeners?: ApplicationGatewayHttpListener[]; + /** + * URL path map of the application gateway resource. + */ urlPathMaps?: ApplicationGatewayUrlPathMap[]; + /** + * Request routing rules of the application gateway resource. + */ requestRoutingRules?: ApplicationGatewayRequestRoutingRule[]; - rewriteRuleSets?: ApplicationGatewayRewriteRuleSet[]; + /** + * Redirect configurations of the application gateway resource. + */ redirectConfigurations?: ApplicationGatewayRedirectConfiguration[]; + /** + * Web application firewall configuration. + */ webApplicationFirewallConfiguration?: ApplicationGatewayWebApplicationFirewallConfiguration; + /** + * Whether HTTP2 is enabled on the application gateway resource. + */ enableHttp2?: boolean; + /** + * Whether FIPS is enabled on the application gateway resource. + */ enableFips?: boolean; + /** + * Autoscale Configuration. + */ autoscaleConfiguration?: ApplicationGatewayAutoscaleConfiguration; + /** + * Resource GUID property of the application gateway resource. + */ resourceGuid?: string; + /** + * Provisioning state of the application gateway resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; - customErrorConfigurations?: ApplicationGatewayCustomError[]; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * A list of availability zones denoting where the resource needs to come from. + */ zones?: string[]; - identity?: ManagedServiceIdentity; } /** - * @class - * Initializes a new instance of the ApplicationGatewayFirewallRule class. - * @constructor * A web application firewall rule. - * - * @property {number} ruleId The identifier of the web application firewall - * rule. - * @property {string} [description] The description of the web application - * firewall rule. - */ +*/ export interface ApplicationGatewayFirewallRule { + /** + * The identifier of the web application firewall rule. + */ ruleId: number; + /** + * The description of the web application firewall rule. + */ description?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayFirewallRuleGroup class. - * @constructor * A web application firewall rule group. - * - * @property {string} ruleGroupName The name of the web application firewall - * rule group. - * @property {string} [description] The description of the web application - * firewall rule group. - * @property {array} rules The rules of the web application firewall rule - * group. - */ +*/ export interface ApplicationGatewayFirewallRuleGroup { + /** + * The name of the web application firewall rule group. + */ ruleGroupName: string; + /** + * The description of the web application firewall rule group. + */ description?: string; + /** + * The rules of the web application firewall rule group. + */ rules: ApplicationGatewayFirewallRule[]; } /** - * @class - * Initializes a new instance of the ApplicationGatewayFirewallRuleSet class. - * @constructor * A web application firewall rule set. - * - * @property {string} [provisioningState] The provisioning state of the web - * application firewall rule set. - * @property {string} ruleSetType The type of the web application firewall rule - * set. - * @property {string} ruleSetVersion The version of the web application - * firewall rule set type. - * @property {array} ruleGroups The rule groups of the web application firewall - * rule set. - */ +*/ export interface ApplicationGatewayFirewallRuleSet extends Resource { + /** + * The provisioning state of the web application firewall rule set. + */ provisioningState?: string; + /** + * The type of the web application firewall rule set. + */ ruleSetType: string; + /** + * The version of the web application firewall rule set type. + */ ruleSetVersion: string; + /** + * The rule groups of the web application firewall rule set. + */ ruleGroups: ApplicationGatewayFirewallRuleGroup[]; } /** - * @class - * Initializes a new instance of the ApplicationGatewayAvailableWafRuleSetsResult class. - * @constructor * Response for ApplicationGatewayAvailableWafRuleSets API service call. - * - * @property {array} [value] The list of application gateway rule sets. - */ +*/ export interface ApplicationGatewayAvailableWafRuleSetsResult { + /** + * The list of application gateway rule sets. + */ value?: ApplicationGatewayFirewallRuleSet[]; } /** - * @class - * Initializes a new instance of the ApplicationGatewayAvailableSslOptions class. - * @constructor * Response for ApplicationGatewayAvailableSslOptions API service call. - * - * @property {array} [predefinedPolicies] List of available Ssl predefined - * policy. - * @property {string} [defaultPolicy] Name of the Ssl predefined policy applied - * by default to application gateway. Possible values include: - * 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', - * 'AppGwSslPolicy20170401S' - * @property {array} [availableCipherSuites] List of available Ssl cipher - * suites. - * @property {array} [availableProtocols] List of available Ssl protocols. - */ +*/ export interface ApplicationGatewayAvailableSslOptions extends Resource { + /** + * List of available Ssl predefined policy. + */ predefinedPolicies?: SubResource[]; + /** + * Name of the Ssl predefined policy applied by default to application gateway. Possible values + * include: 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', 'AppGwSslPolicy20170401S' + */ defaultPolicy?: string; + /** + * List of available Ssl cipher suites. + */ availableCipherSuites?: string[]; + /** + * List of available Ssl protocols. + */ availableProtocols?: string[]; } /** - * @class - * Initializes a new instance of the ApplicationGatewaySslPredefinedPolicy class. - * @constructor * An Ssl predefined policy - * - * @property {string} [name] Name of the Ssl predefined policy. - * @property {array} [cipherSuites] Ssl cipher suites to be enabled in the - * specified order for application gateway. - * @property {string} [minProtocolVersion] Minimum version of Ssl protocol to - * be supported on application gateway. Possible values include: 'TLSv1_0', - * 'TLSv1_1', 'TLSv1_2' - */ +*/ export interface ApplicationGatewaySslPredefinedPolicy extends SubResource { + /** + * Name of the Ssl predefined policy. + */ name?: string; + /** + * Ssl cipher suites to be enabled in the specified order for application gateway. + */ cipherSuites?: string[]; + /** + * Minimum version of Ssl protocol to be supported on application gateway. Possible values + * include: 'TLSv1_0', 'TLSv1_1', 'TLSv1_2' + */ minProtocolVersion?: string; } /** - * @class - * Initializes a new instance of the TagsObject class. - * @constructor * Tags object for patch operations. - * - * @property {object} [tags] Resource tags. - */ +*/ export interface TagsObject { + /** + * Resource tags. + */ tags?: { [propertyName: string]: string }; } /** - * @class - * Initializes a new instance of the AvailableDelegation class. - * @constructor - * The serviceName of an AvailableDelegation indicates a possible delegation - * for a subnet. - * - * @property {string} [name] The name of the AvailableDelegation resource. - * @property {string} [id] A unique identifier of the AvailableDelegation - * resource. - * @property {string} [type] Resource type. - * @property {string} [serviceName] The name of the service and resource - * @property {array} [actions] Describes the actions permitted to the service - * upon delegation - */ -export interface AvailableDelegation { - name?: string; - id?: string; - type?: string; - serviceName?: string; - actions?: string[]; -} - -/** - * @class - * Initializes a new instance of the AzureFirewallIPConfiguration class. - * @constructor - * IP configuration of an Azure Firewall. - * - * @property {string} [privateIPAddress] The Firewall Internal Load Balancer IP - * to be used as the next hop in User Defined Routes. - * @property {object} [subnet] Reference of the subnet resource. This resource - * must be named 'AzureFirewallSubnet'. - * @property {string} [subnet.id] Resource ID. - * @property {object} [publicIPAddress] Reference of the PublicIP resource. - * This field is a mandatory input if subnet is not null. - * @property {string} [publicIPAddress.id] Resource ID. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' - * @property {string} [name] Name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface AzureFirewallIPConfiguration extends SubResource { - readonly privateIPAddress?: string; - subnet?: SubResource; - publicIPAddress?: SubResource; - provisioningState?: string; - name?: string; - readonly etag?: string; -} - -/** - * @class - * Initializes a new instance of the AzureFirewallRCAction class. - * @constructor - * Properties of the AzureFirewallRCAction. - * - * @property {string} [type] The type of action. Possible values include: - * 'Allow', 'Deny' - */ -export interface AzureFirewallRCAction { - type?: string; -} - -/** - * @class - * Initializes a new instance of the AzureFirewallApplicationRuleProtocol class. - * @constructor - * Properties of the application rule protocol. - * - * @property {string} [protocolType] Protocol type. Possible values include: - * 'Http', 'Https' - * @property {number} [port] Port number for the protocol, cannot be greater - * than 64000. This field is optional. - */ -export interface AzureFirewallApplicationRuleProtocol { - protocolType?: string; - port?: number; -} - -/** - * @class - * Initializes a new instance of the AzureFirewallApplicationRule class. - * @constructor - * Properties of an application rule. - * - * @property {string} [name] Name of the application rule. - * @property {string} [description] Description of the rule. - * @property {array} [sourceAddresses] List of source IP addresses for this - * rule. - * @property {array} [protocols] Array of ApplicationRuleProtocols. - * @property {array} [targetFqdns] List of FQDNs for this rule. - * @property {array} [fqdnTags] List of FQDN Tags for this rule. - */ -export interface AzureFirewallApplicationRule { - name?: string; - description?: string; - sourceAddresses?: string[]; - protocols?: AzureFirewallApplicationRuleProtocol[]; - targetFqdns?: string[]; - fqdnTags?: string[]; -} - -/** - * @class - * Initializes a new instance of the AzureFirewallApplicationRuleCollection class. - * @constructor - * Application rule collection resource - * - * @property {number} [priority] Priority of the application rule collection - * resource. - * @property {object} [action] The action type of a rule collection - * @property {string} [action.type] The type of action. Possible values - * include: 'Allow', 'Deny' - * @property {array} [rules] Collection of rules used by a application rule - * collection. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' - * @property {string} [name] Gets name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ -export interface AzureFirewallApplicationRuleCollection extends SubResource { - priority?: number; - action?: AzureFirewallRCAction; - rules?: AzureFirewallApplicationRule[]; - provisioningState?: string; - name?: string; - readonly etag?: string; -} - -/** - * @class - * Initializes a new instance of the AzureFirewallNatRCAction class. - * @constructor - * AzureFirewall NAT Rule Collection Action. - * - * @property {string} [type] The type of action. Possible values include: - * 'Snat', 'Dnat' - */ -export interface AzureFirewallNatRCAction { - type?: string; -} - -/** - * @class - * Initializes a new instance of the AzureFirewallNatRule class. - * @constructor - * Properties of a NAT rule. - * - * @property {string} [name] Name of the NAT rule. - * @property {string} [description] Description of the rule. - * @property {array} [sourceAddresses] List of source IP addresses for this - * rule. - * @property {array} [destinationAddresses] List of destination IP addresses - * for this rule. - * @property {array} [destinationPorts] List of destination ports. - * @property {array} [protocols] Array of AzureFirewallNetworkRuleProtocols - * applicable to this NAT rule. - * @property {string} [translatedAddress] The translated address for this NAT - * rule. - * @property {string} [translatedPort] The translated port for this NAT rule. - */ -export interface AzureFirewallNatRule { - name?: string; - description?: string; - sourceAddresses?: string[]; - destinationAddresses?: string[]; - destinationPorts?: string[]; - protocols?: string[]; - translatedAddress?: string; - translatedPort?: string; -} - -/** - * @class - * Initializes a new instance of the AzureFirewallNatRuleCollection class. - * @constructor - * NAT rule collection resource - * - * @property {number} [priority] Priority of the NAT rule collection resource. - * @property {object} [action] The action type of a NAT rule collection - * @property {string} [action.type] The type of action. Possible values - * include: 'Snat', 'Dnat' - * @property {array} [rules] Collection of rules used by a NAT rule collection. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' - * @property {string} [name] Gets name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ -export interface AzureFirewallNatRuleCollection extends SubResource { - priority?: number; - action?: AzureFirewallNatRCAction; - rules?: AzureFirewallNatRule[]; - provisioningState?: string; - name?: string; - readonly etag?: string; -} - -/** - * @class - * Initializes a new instance of the AzureFirewallNetworkRule class. - * @constructor - * Properties of the network rule. - * - * @property {string} [name] Name of the network rule. - * @property {string} [description] Description of the rule. - * @property {array} [protocols] Array of AzureFirewallNetworkRuleProtocols. - * @property {array} [sourceAddresses] List of source IP addresses for this - * rule. - * @property {array} [destinationAddresses] List of destination IP addresses. - * @property {array} [destinationPorts] List of destination ports. - */ -export interface AzureFirewallNetworkRule { - name?: string; - description?: string; - protocols?: string[]; - sourceAddresses?: string[]; - destinationAddresses?: string[]; - destinationPorts?: string[]; -} - -/** - * @class - * Initializes a new instance of the AzureFirewallNetworkRuleCollection class. - * @constructor - * Network rule collection resource - * - * @property {number} [priority] Priority of the network rule collection - * resource. - * @property {object} [action] The action type of a rule collection - * @property {string} [action.type] The type of action. Possible values - * include: 'Allow', 'Deny' - * @property {array} [rules] Collection of rules used by a network rule - * collection. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' - * @property {string} [name] Gets name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ -export interface AzureFirewallNetworkRuleCollection extends SubResource { - priority?: number; - action?: AzureFirewallRCAction; - rules?: AzureFirewallNetworkRule[]; - provisioningState?: string; - name?: string; - readonly etag?: string; -} - -/** - * @class - * Initializes a new instance of the AzureFirewall class. - * @constructor - * Azure Firewall resource - * - * @property {array} [applicationRuleCollections] Collection of application - * rule collections used by Azure Firewall. - * @property {array} [natRuleCollections] Collection of NAT rule collections - * used by Azure Firewall. - * @property {array} [networkRuleCollections] Collection of network rule - * collections used by Azure Firewall. - * @property {array} [ipConfigurations] IP configuration of the Azure Firewall - * resource. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ -export interface AzureFirewall extends Resource { - applicationRuleCollections?: AzureFirewallApplicationRuleCollection[]; - natRuleCollections?: AzureFirewallNatRuleCollection[]; - networkRuleCollections?: AzureFirewallNetworkRuleCollection[]; - ipConfigurations?: AzureFirewallIPConfiguration[]; - provisioningState?: string; - readonly etag?: string; -} - -/** - * @class - * Initializes a new instance of the AzureFirewallFqdnTag class. - * @constructor - * Azure Firewall FQDN Tag Resource - * - * @property {string} [provisioningState] The provisioning state of the - * resource. - * @property {string} [fqdnTagName] The name of this FQDN Tag. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ -export interface AzureFirewallFqdnTag extends Resource { - readonly provisioningState?: string; - readonly fqdnTagName?: string; - readonly etag?: string; -} - -/** - * @class - * Initializes a new instance of the DnsNameAvailabilityResult class. - * @constructor * Response for the CheckDnsNameAvailability API service call. - * - * @property {boolean} [available] Domain availability (True/False). - */ +*/ export interface DnsNameAvailabilityResult { + /** + * Domain availability (True/False). + */ available?: boolean; } /** - * @class - * Initializes a new instance of the DdosProtectionPlan class. - * @constructor * A DDoS protection plan in a resource group. - * - * @property {string} [id] Resource ID. - * @property {string} [name] Resource name. - * @property {string} [type] Resource type. - * @property {string} [location] Resource location. - * @property {object} [tags] Resource tags. - * @property {string} [resourceGuid] The resource GUID property of the DDoS - * protection plan resource. It uniquely identifies the resource, even if the - * user changes its name or migrate the resource across subscriptions or - * resource groups. - * @property {string} [provisioningState] The provisioning state of the DDoS - * protection plan resource. Possible values are: 'Succeeded', 'Updating', - * 'Deleting', and 'Failed'. - * @property {array} [virtualNetworks] The list of virtual networks associated - * with the DDoS protection plan resource. This list is read-only. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ +*/ export interface DdosProtectionPlan extends BaseResource { + /** + * Resource ID. + */ readonly id?: string; + /** + * Resource name. + */ readonly name?: string; + /** + * Resource type. + */ readonly type?: string; + /** + * Resource location. + */ location?: string; + /** + * Resource tags. + */ tags?: { [propertyName: string]: string }; + /** + * The resource GUID property of the DDoS protection plan resource. It uniquely identifies the + * resource, even if the user changes its name or migrate the resource across subscriptions or + * resource groups. + */ readonly resourceGuid?: string; + /** + * The provisioning state of the DDoS protection plan resource. Possible values are: 'Succeeded', + * 'Updating', 'Deleting', and 'Failed'. + */ readonly provisioningState?: string; + /** + * The list of virtual networks associated with the DDoS protection plan resource. This list is + * read-only. + */ readonly virtualNetworks?: SubResource[]; + /** + * A unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the EndpointServiceResult class. - * @constructor * Endpoint service. - * - * @property {string} [name] Name of the endpoint service. - * @property {string} [type] Type of the endpoint service. - */ +*/ export interface EndpointServiceResult extends SubResource { + /** + * Name of the endpoint service. + */ readonly name?: string; + /** + * Type of the endpoint service. + */ readonly type?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCircuitAuthorization class. - * @constructor * Authorization in an ExpressRouteCircuit resource. - * - * @property {string} [authorizationKey] The authorization key. - * @property {string} [authorizationUseStatus] AuthorizationUseStatus. Possible - * values are: 'Available' and 'InUse'. Possible values include: 'Available', - * 'InUse' - * @property {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] Gets name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ +*/ export interface ExpressRouteCircuitAuthorization extends SubResource { + /** + * The authorization key. + */ authorizationKey?: string; + /** + * AuthorizationUseStatus. Possible values are: 'Available' and 'InUse'. Possible values include: + * 'Available', 'InUse' + */ authorizationUseStatus?: string; + /** + * Gets the provisioning state of the public IP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * Gets name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCircuitPeeringConfig class. - * @constructor * Specifies the peering configuration. - * - * @property {array} [advertisedPublicPrefixes] The reference of - * AdvertisedPublicPrefixes. - * @property {array} [advertisedCommunities] The communities of bgp peering. - * Spepcified for microsoft peering - * @property {string} [advertisedPublicPrefixesState] - * AdvertisedPublicPrefixState of the Peering resource. Possible values are - * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. - * Possible values include: 'NotConfigured', 'Configuring', 'Configured', - * 'ValidationNeeded' - * @property {number} [legacyMode] The legacy mode of the peering. - * @property {number} [customerASN] The CustomerASN of the peering. - * @property {string} [routingRegistryName] The RoutingRegistryName of the - * configuration. - */ +*/ export interface ExpressRouteCircuitPeeringConfig { + /** + * The reference of AdvertisedPublicPrefixes. + */ advertisedPublicPrefixes?: string[]; + /** + * The communities of bgp peering. Spepcified for microsoft peering + */ advertisedCommunities?: string[]; + /** + * AdvertisedPublicPrefixState of the Peering resource. Possible values are 'NotConfigured', + * 'Configuring', 'Configured', and 'ValidationNeeded'. Possible values include: 'NotConfigured', + * 'Configuring', 'Configured', 'ValidationNeeded' + */ advertisedPublicPrefixesState?: string; + /** + * The legacy mode of the peering. + */ legacyMode?: number; + /** + * The CustomerASN of the peering. + */ customerASN?: number; + /** + * The RoutingRegistryName of the configuration. + */ routingRegistryName?: string; } /** - * @class - * Initializes a new instance of the RouteFilterRule class. - * @constructor * Route Filter Rule Resource - * - * @property {string} access The access type of the rule. Valid values are: - * 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny' - * @property {array} communities The collection for bgp community values to - * filter on. e.g. ['12076:5010','12076:5020'] - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and - * 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [location] Resource location. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ +*/ export interface RouteFilterRule extends SubResource { + /** + * The access type of the rule. Valid values are: 'Allow', 'Deny'. Possible values include: + * 'Allow', 'Deny' + */ access: string; + /** + * The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'] + */ communities: string[]; + /** + * The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', + * 'Succeeded' and 'Failed'. + */ readonly provisioningState?: string; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * Resource location. + */ location?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCircuitStats class. - * @constructor * Contains stats associated with the peering. - * - * @property {number} [primarybytesIn] Gets BytesIn of the peering. - * @property {number} [primarybytesOut] Gets BytesOut of the peering. - * @property {number} [secondarybytesIn] Gets BytesIn of the peering. - * @property {number} [secondarybytesOut] Gets BytesOut of the peering. - */ +*/ export interface ExpressRouteCircuitStats { + /** + * Gets BytesIn of the peering. + */ primarybytesIn?: number; + /** + * Gets BytesOut of the peering. + */ primarybytesOut?: number; + /** + * Gets BytesIn of the peering. + */ secondarybytesIn?: number; + /** + * Gets BytesOut of the peering. + */ secondarybytesOut?: number; } /** - * @class - * Initializes a new instance of the ExpressRouteConnectionId class. - * @constructor - * The ID of the ExpressRouteConnection. - * - * @property {string} [id] The ID of the ExpressRouteConnection. - */ -export interface ExpressRouteConnectionId { - readonly id?: string; -} - -/** - * @class - * Initializes a new instance of the ExpressRouteCircuitConnection class. - * @constructor * Express Route Circuit Connection in an ExpressRouteCircuitPeering resource. - * - * @property {object} [expressRouteCircuitPeering] Reference to Express Route - * Circuit Private Peering Resource of the circuit initiating connection. - * @property {string} [expressRouteCircuitPeering.id] Resource ID. - * @property {object} [peerExpressRouteCircuitPeering] Reference to Express - * Route Circuit Private Peering Resource of the peered circuit. - * @property {string} [peerExpressRouteCircuitPeering.id] Resource ID. - * @property {string} [addressPrefix] /29 IP address space to carve out - * Customer addresses for tunnels. - * @property {string} [authorizationKey] The authorization key. - * @property {string} [circuitConnectionStatus] Express Route Circuit - * Connection State. Possible values are: 'Connected' and 'Disconnected'. - * Possible values include: 'Connected', 'Connecting', 'Disconnected' - * @property {string} [provisioningState] Provisioning state of the circuit - * connection resource. Possible values are: 'Succeded', 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [name] Gets name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ +*/ export interface ExpressRouteCircuitConnection extends SubResource { + /** + * Reference to Express Route Circuit Private Peering Resource of the circuit initiating + * connection. + */ expressRouteCircuitPeering?: SubResource; + /** + * Reference to Express Route Circuit Private Peering Resource of the peered circuit. + */ peerExpressRouteCircuitPeering?: SubResource; + /** + * /29 IP address space to carve out Customer addresses for tunnels. + */ addressPrefix?: string; + /** + * The authorization key. + */ authorizationKey?: string; + /** + * Express Route Circuit Connection State. Possible values are: 'Connected' and 'Disconnected'. + * Possible values include: 'Connected', 'Connecting', 'Disconnected' + */ readonly circuitConnectionStatus?: string; + /** + * Provisioning state of the circuit connection resource. Possible values are: 'Succeded', + * 'Updating', 'Deleting', and 'Failed'. + */ readonly provisioningState?: string; + /** + * Gets name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCircuitPeering class. - * @constructor * Peering in an ExpressRouteCircuit resource. - * - * @property {string} [peeringType] The peering type. Possible values include: - * 'AzurePublicPeering', 'AzurePrivatePeering', 'MicrosoftPeering' - * @property {string} [state] The peering state. Possible values include: - * 'Disabled', 'Enabled' - * @property {number} [azureASN] The Azure ASN. - * @property {number} [peerASN] The peer ASN. - * @property {string} [primaryPeerAddressPrefix] The primary address prefix. - * @property {string} [secondaryPeerAddressPrefix] The secondary address - * prefix. - * @property {string} [primaryAzurePort] The primary port. - * @property {string} [secondaryAzurePort] The secondary port. - * @property {string} [sharedKey] The shared key. - * @property {number} [vlanId] The VLAN ID. - * @property {object} [microsoftPeeringConfig] The Microsoft peering - * configuration. - * @property {array} [microsoftPeeringConfig.advertisedPublicPrefixes] The - * reference of AdvertisedPublicPrefixes. - * @property {array} [microsoftPeeringConfig.advertisedCommunities] The - * communities of bgp peering. Spepcified for microsoft peering - * @property {string} [microsoftPeeringConfig.advertisedPublicPrefixesState] - * AdvertisedPublicPrefixState of the Peering resource. Possible values are - * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. - * Possible values include: 'NotConfigured', 'Configuring', 'Configured', - * 'ValidationNeeded' - * @property {number} [microsoftPeeringConfig.legacyMode] The legacy mode of - * the peering. - * @property {number} [microsoftPeeringConfig.customerASN] The CustomerASN of - * the peering. - * @property {string} [microsoftPeeringConfig.routingRegistryName] The - * RoutingRegistryName of the configuration. - * @property {object} [stats] Gets peering stats. - * @property {number} [stats.primarybytesIn] Gets BytesIn of the peering. - * @property {number} [stats.primarybytesOut] Gets BytesOut of the peering. - * @property {number} [stats.secondarybytesIn] Gets BytesIn of the peering. - * @property {number} [stats.secondarybytesOut] Gets BytesOut of the peering. - * @property {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [gatewayManagerEtag] The GatewayManager Etag. - * @property {string} [lastModifiedBy] Gets whether the provider or the - * customer last modified the peering. - * @property {object} [routeFilter] The reference of the RouteFilter resource. - * @property {array} [routeFilter.rules] Collection of RouteFilterRules - * contained within a route filter. - * @property {array} [routeFilter.peerings] A collection of references to - * express route circuit peerings. - * @property {string} [routeFilter.provisioningState] The provisioning state of - * the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and - * 'Failed'. - * @property {string} [routeFilter.etag] Gets a unique read-only string that - * changes whenever the resource is updated. - * @property {object} [ipv6PeeringConfig] The IPv6 peering configuration. - * @property {string} [ipv6PeeringConfig.primaryPeerAddressPrefix] The primary - * address prefix. - * @property {string} [ipv6PeeringConfig.secondaryPeerAddressPrefix] The - * secondary address prefix. - * @property {object} [ipv6PeeringConfig.microsoftPeeringConfig] The Microsoft - * peering configuration. - * @property {array} - * [ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixes] The - * reference of AdvertisedPublicPrefixes. - * @property {array} - * [ipv6PeeringConfig.microsoftPeeringConfig.advertisedCommunities] The - * communities of bgp peering. Spepcified for microsoft peering - * @property {string} - * [ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixesState] - * AdvertisedPublicPrefixState of the Peering resource. Possible values are - * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. - * Possible values include: 'NotConfigured', 'Configuring', 'Configured', - * 'ValidationNeeded' - * @property {number} [ipv6PeeringConfig.microsoftPeeringConfig.legacyMode] The - * legacy mode of the peering. - * @property {number} [ipv6PeeringConfig.microsoftPeeringConfig.customerASN] - * The CustomerASN of the peering. - * @property {string} - * [ipv6PeeringConfig.microsoftPeeringConfig.routingRegistryName] The - * RoutingRegistryName of the configuration. - * @property {object} [ipv6PeeringConfig.routeFilter] The reference of the - * RouteFilter resource. - * @property {array} [ipv6PeeringConfig.routeFilter.rules] Collection of - * RouteFilterRules contained within a route filter. - * @property {array} [ipv6PeeringConfig.routeFilter.peerings] A collection of - * references to express route circuit peerings. - * @property {string} [ipv6PeeringConfig.routeFilter.provisioningState] The - * provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', 'Succeeded' and 'Failed'. - * @property {string} [ipv6PeeringConfig.routeFilter.etag] Gets a unique - * read-only string that changes whenever the resource is updated. - * @property {string} [ipv6PeeringConfig.state] The state of peering. Possible - * values are: 'Disabled' and 'Enabled'. Possible values include: 'Disabled', - * 'Enabled' - * @property {object} [expressRouteConnection] The ExpressRoute connection. - * @property {string} [expressRouteConnection.id] The ID of the - * ExpressRouteConnection. - * @property {array} [connections] The list of circuit connections associated - * with Azure Private Peering for this circuit. - * @property {string} [name] Gets name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ +*/ export interface ExpressRouteCircuitPeering extends SubResource { + /** + * The peering type. Possible values include: 'AzurePublicPeering', 'AzurePrivatePeering', + * 'MicrosoftPeering' + */ peeringType?: string; + /** + * The peering state. Possible values include: 'Disabled', 'Enabled' + */ state?: string; + /** + * The Azure ASN. + */ azureASN?: number; + /** + * The peer ASN. + */ peerASN?: number; + /** + * The primary address prefix. + */ primaryPeerAddressPrefix?: string; + /** + * The secondary address prefix. + */ secondaryPeerAddressPrefix?: string; + /** + * The primary port. + */ primaryAzurePort?: string; + /** + * The secondary port. + */ secondaryAzurePort?: string; + /** + * The shared key. + */ sharedKey?: string; + /** + * The VLAN ID. + */ vlanId?: number; + /** + * The Microsoft peering configuration. + */ microsoftPeeringConfig?: ExpressRouteCircuitPeeringConfig; + /** + * Gets peering stats. + */ stats?: ExpressRouteCircuitStats; + /** + * Gets the provisioning state of the public IP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * The GatewayManager Etag. + */ gatewayManagerEtag?: string; + /** + * Gets whether the provider or the customer last modified the peering. + */ lastModifiedBy?: string; + /** + * The reference of the RouteFilter resource. + */ routeFilter?: RouteFilter; + /** + * The IPv6 peering configuration. + */ ipv6PeeringConfig?: Ipv6ExpressRouteCircuitPeeringConfig; - expressRouteConnection?: ExpressRouteConnectionId; + /** + * The list of circuit connections associated with Azure Private Peering for this circuit. + */ connections?: ExpressRouteCircuitConnection[]; + /** + * Gets name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the RouteFilter class. - * @constructor * Route Filter Resource. - * - * @property {array} [rules] Collection of RouteFilterRules contained within a - * route filter. - * @property {array} [peerings] A collection of references to express route - * circuit peerings. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and - * 'Failed'. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ +*/ export interface RouteFilter extends Resource { + /** + * Collection of RouteFilterRules contained within a route filter. + */ rules?: RouteFilterRule[]; + /** + * A collection of references to express route circuit peerings. + */ peerings?: ExpressRouteCircuitPeering[]; + /** + * The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', + * 'Succeeded' and 'Failed'. + */ readonly provisioningState?: string; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the Ipv6ExpressRouteCircuitPeeringConfig class. - * @constructor * Contains IPv6 peering config. - * - * @property {string} [primaryPeerAddressPrefix] The primary address prefix. - * @property {string} [secondaryPeerAddressPrefix] The secondary address - * prefix. - * @property {object} [microsoftPeeringConfig] The Microsoft peering - * configuration. - * @property {array} [microsoftPeeringConfig.advertisedPublicPrefixes] The - * reference of AdvertisedPublicPrefixes. - * @property {array} [microsoftPeeringConfig.advertisedCommunities] The - * communities of bgp peering. Spepcified for microsoft peering - * @property {string} [microsoftPeeringConfig.advertisedPublicPrefixesState] - * AdvertisedPublicPrefixState of the Peering resource. Possible values are - * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. - * Possible values include: 'NotConfigured', 'Configuring', 'Configured', - * 'ValidationNeeded' - * @property {number} [microsoftPeeringConfig.legacyMode] The legacy mode of - * the peering. - * @property {number} [microsoftPeeringConfig.customerASN] The CustomerASN of - * the peering. - * @property {string} [microsoftPeeringConfig.routingRegistryName] The - * RoutingRegistryName of the configuration. - * @property {object} [routeFilter] The reference of the RouteFilter resource. - * @property {array} [routeFilter.rules] Collection of RouteFilterRules - * contained within a route filter. - * @property {array} [routeFilter.peerings] A collection of references to - * express route circuit peerings. - * @property {string} [routeFilter.provisioningState] The provisioning state of - * the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and - * 'Failed'. - * @property {string} [routeFilter.etag] Gets a unique read-only string that - * changes whenever the resource is updated. - * @property {string} [state] The state of peering. Possible values are: - * 'Disabled' and 'Enabled'. Possible values include: 'Disabled', 'Enabled' - */ +*/ export interface Ipv6ExpressRouteCircuitPeeringConfig { + /** + * The primary address prefix. + */ primaryPeerAddressPrefix?: string; + /** + * The secondary address prefix. + */ secondaryPeerAddressPrefix?: string; + /** + * The Microsoft peering configuration. + */ microsoftPeeringConfig?: ExpressRouteCircuitPeeringConfig; + /** + * The reference of the RouteFilter resource. + */ routeFilter?: RouteFilter; + /** + * The state of peering. Possible values are: 'Disabled' and 'Enabled'. Possible values include: + * 'Disabled', 'Enabled' + */ state?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCircuitSku class. - * @constructor * Contains SKU in an ExpressRouteCircuit. - * - * @property {string} [name] The name of the SKU. - * @property {string} [tier] The tier of the SKU. Possible values are - * 'Standard', 'Premium' or 'Basic'. Possible values include: 'Standard', - * 'Premium', 'Basic' - * @property {string} [family] The family of the SKU. Possible values are: - * 'UnlimitedData' and 'MeteredData'. Possible values include: 'UnlimitedData', - * 'MeteredData' - */ +*/ export interface ExpressRouteCircuitSku { + /** + * The name of the SKU. + */ name?: string; + /** + * The tier of the SKU. Possible values are 'Standard' and 'Premium'. Possible values include: + * 'Standard', 'Premium' + */ tier?: string; + /** + * The family of the SKU. Possible values are: 'UnlimitedData' and 'MeteredData'. Possible values + * include: 'UnlimitedData', 'MeteredData' + */ family?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCircuitServiceProviderProperties class. - * @constructor * Contains ServiceProviderProperties in an ExpressRouteCircuit. - * - * @property {string} [serviceProviderName] The serviceProviderName. - * @property {string} [peeringLocation] The peering location. - * @property {number} [bandwidthInMbps] The BandwidthInMbps. - */ +*/ export interface ExpressRouteCircuitServiceProviderProperties { + /** + * The serviceProviderName. + */ serviceProviderName?: string; + /** + * The peering location. + */ peeringLocation?: string; + /** + * The BandwidthInMbps. + */ bandwidthInMbps?: number; } /** - * @class - * Initializes a new instance of the ExpressRouteCircuit class. - * @constructor * ExpressRouteCircuit resource - * - * @property {object} [sku] The SKU. - * @property {string} [sku.name] The name of the SKU. - * @property {string} [sku.tier] The tier of the SKU. Possible values are - * 'Standard', 'Premium' or 'Basic'. Possible values include: 'Standard', - * 'Premium', 'Basic' - * @property {string} [sku.family] The family of the SKU. Possible values are: - * 'UnlimitedData' and 'MeteredData'. Possible values include: 'UnlimitedData', - * 'MeteredData' - * @property {boolean} [allowClassicOperations] Allow classic operations - * @property {string} [circuitProvisioningState] The CircuitProvisioningState - * state of the resource. - * @property {string} [serviceProviderProvisioningState] The - * ServiceProviderProvisioningState state of the resource. Possible values are - * 'NotProvisioned', 'Provisioning', 'Provisioned', and 'Deprovisioning'. - * Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', - * 'Deprovisioning' - * @property {array} [authorizations] The list of authorizations. - * @property {array} [peerings] The list of peerings. - * @property {string} [serviceKey] The ServiceKey. - * @property {string} [serviceProviderNotes] The ServiceProviderNotes. - * @property {object} [serviceProviderProperties] The - * ServiceProviderProperties. - * @property {string} [serviceProviderProperties.serviceProviderName] The - * serviceProviderName. - * @property {string} [serviceProviderProperties.peeringLocation] The peering - * location. - * @property {number} [serviceProviderProperties.bandwidthInMbps] The - * BandwidthInMbps. - * @property {object} [expressRoutePort] The reference to the ExpressRoutePort - * resource when the circuit is provisioned on an ExpressRoutePort resource. - * @property {string} [expressRoutePort.id] Resource ID. - * @property {number} [bandwidthInGbps] The bandwidth of the circuit when the - * circuit is provisioned on an ExpressRoutePort resource. - * @property {number} [stag] The identifier of the circuit traffic. Outer tag - * for QinQ encapsulation. - * @property {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [gatewayManagerEtag] The GatewayManager Etag. - * @property {boolean} [allowGlobalReach] Flag to enable Global Reach on the - * circuit. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ +*/ export interface ExpressRouteCircuit extends Resource { + /** + * The SKU. + */ sku?: ExpressRouteCircuitSku; + /** + * Allow classic operations + */ allowClassicOperations?: boolean; + /** + * The CircuitProvisioningState state of the resource. + */ circuitProvisioningState?: string; + /** + * The ServiceProviderProvisioningState state of the resource. Possible values are + * 'NotProvisioned', 'Provisioning', 'Provisioned', and 'Deprovisioning'. Possible values + * include: 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning' + */ serviceProviderProvisioningState?: string; + /** + * The list of authorizations. + */ authorizations?: ExpressRouteCircuitAuthorization[]; + /** + * The list of peerings. + */ peerings?: ExpressRouteCircuitPeering[]; + /** + * The ServiceKey. + */ serviceKey?: string; + /** + * The ServiceProviderNotes. + */ serviceProviderNotes?: string; + /** + * The ServiceProviderProperties. + */ serviceProviderProperties?: ExpressRouteCircuitServiceProviderProperties; - expressRoutePort?: SubResource; - bandwidthInGbps?: number; - readonly stag?: number; + /** + * Gets the provisioning state of the public IP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * The GatewayManager Etag. + */ gatewayManagerEtag?: string; - allowGlobalReach?: boolean; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCircuitArpTable class. - * @constructor * The ARP table associated with the ExpressRouteCircuit. - * - * @property {number} [age] Entry age in minutes - * @property {string} [interfaceProperty] Interface address - * @property {string} [ipAddress] The IP address. - * @property {string} [macAddress] The MAC address. - */ +*/ export interface ExpressRouteCircuitArpTable { + /** + * Entry age in minutes + */ age?: number; + /** + * Interface address + */ interfaceProperty?: string; + /** + * The IP address. + */ ipAddress?: string; + /** + * The MAC address. + */ macAddress?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCircuitsArpTableListResult class. - * @constructor * Response for ListArpTable associated with the Express Route Circuits API. - * - * @property {array} [value] Gets list of the ARP table. - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface ExpressRouteCircuitsArpTableListResult { + /** + * Gets list of the ARP table. + */ value?: ExpressRouteCircuitArpTable[]; + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCircuitRoutesTable class. - * @constructor * The routes table associated with the ExpressRouteCircuit - * - * @property {string} [network] IP address of a network entity - * @property {string} [nextHop] NextHop address - * @property {string} [locPrf] Local preference value as set with the set - * local-preference route-map configuration command - * @property {number} [weight] Route Weight. - * @property {string} [path] Autonomous system paths to the destination - * network. - */ +*/ export interface ExpressRouteCircuitRoutesTable { + /** + * IP address of a network entity + */ network?: string; + /** + * NextHop address + */ nextHop?: string; + /** + * Local preference value as set with the set local-preference route-map configuration command + */ locPrf?: string; + /** + * Route Weight. + */ weight?: number; + /** + * Autonomous system paths to the destination network. + */ path?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCircuitsRoutesTableListResult class. - * @constructor * Response for ListRoutesTable associated with the Express Route Circuits API. - * - * @property {array} [value] The list of routes table. - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface ExpressRouteCircuitsRoutesTableListResult { + /** + * The list of routes table. + */ value?: ExpressRouteCircuitRoutesTable[]; + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCircuitRoutesTableSummary class. - * @constructor * The routes table associated with the ExpressRouteCircuit. - * - * @property {string} [neighbor] IP address of the neighbor. - * @property {number} [v] BGP version number spoken to the neighbor. - * @property {number} [as] Autonomous system number. - * @property {string} [upDown] The length of time that the BGP session has been - * in the Established state, or the current status if not in the Established - * state. - * @property {string} [statePfxRcd] Current state of the BGP session, and the - * number of prefixes that have been received from a neighbor or peer group. - */ +*/ export interface ExpressRouteCircuitRoutesTableSummary { + /** + * IP address of the neighbor. + */ neighbor?: string; + /** + * BGP version number spoken to the neighbor. + */ v?: number; + /** + * Autonomous system number. + */ as?: number; + /** + * The length of time that the BGP session has been in the Established state, or the current + * status if not in the Established state. + */ upDown?: string; + /** + * Current state of the BGP session, and the number of prefixes that have been received from a + * neighbor or peer group. + */ statePfxRcd?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCircuitsRoutesTableSummaryListResult class. - * @constructor * Response for ListRoutesTable associated with the Express Route Circuits API. - * - * @property {array} [value] A list of the routes table. - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface ExpressRouteCircuitsRoutesTableSummaryListResult { + /** + * A list of the routes table. + */ value?: ExpressRouteCircuitRoutesTableSummary[]; + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteServiceProviderBandwidthsOffered class. - * @constructor - * Contains bandwidths offered in ExpressRouteServiceProvider resources. - * - * @property {string} [offerName] The OfferName. - * @property {number} [valueInMbps] The ValueInMbps. - */ -export interface ExpressRouteServiceProviderBandwidthsOffered { - offerName?: string; - valueInMbps?: number; -} - -/** - * @class - * Initializes a new instance of the ExpressRouteServiceProvider class. - * @constructor - * A ExpressRouteResourceProvider object. - * - * @property {array} [peeringLocations] Get a list of peering locations. - * @property {array} [bandwidthsOffered] Gets bandwidths offered. - * @property {string} [provisioningState] Gets the provisioning state of the - * resource. - */ -export interface ExpressRouteServiceProvider extends Resource { - peeringLocations?: string[]; - bandwidthsOffered?: ExpressRouteServiceProviderBandwidthsOffered[]; - provisioningState?: string; -} - -/** - * @class - * Initializes a new instance of the ExpressRouteCrossConnectionRoutesTableSummary class. - * @constructor - * The routes table associated with the ExpressRouteCircuit. - * - * @property {string} [neighbor] IP address of Neighbor router - * @property {number} [asn] Autonomous system number. - * @property {string} [upDown] The length of time that the BGP session has been - * in the Established state, or the current status if not in the Established - * state. - * @property {string} [stateOrPrefixesReceived] Current state of the BGP - * session, and the number of prefixes that have been received from a neighbor - * or peer group. - */ -export interface ExpressRouteCrossConnectionRoutesTableSummary { - neighbor?: string; - asn?: number; - upDown?: string; - stateOrPrefixesReceived?: string; -} - -/** - * @class - * Initializes a new instance of the ExpressRouteCrossConnectionsRoutesTableSummaryListResult class. - * @constructor - * Response for ListRoutesTable associated with the Express Route Cross - * Connections. - * - * @property {array} [value] A list of the routes table. - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface ExpressRouteCrossConnectionsRoutesTableSummaryListResult { - value?: ExpressRouteCrossConnectionRoutesTableSummary[]; - readonly nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the ExpressRouteCircuitReference class. - * @constructor - * @property {string} [id] Corresponding Express Route Circuit Id. - */ -export interface ExpressRouteCircuitReference { - id?: string; -} - -/** - * @class - * Initializes a new instance of the ExpressRouteCrossConnectionPeering class. - * @constructor - * Peering in an ExpressRoute Cross Connection resource. - * - * @property {string} [peeringType] The peering type. Possible values include: - * 'AzurePublicPeering', 'AzurePrivatePeering', 'MicrosoftPeering' - * @property {string} [state] The peering state. Possible values include: - * 'Disabled', 'Enabled' - * @property {number} [azureASN] The Azure ASN. - * @property {number} [peerASN] The peer ASN. - * @property {string} [primaryPeerAddressPrefix] The primary address prefix. - * @property {string} [secondaryPeerAddressPrefix] The secondary address - * prefix. - * @property {string} [primaryAzurePort] The primary port. - * @property {string} [secondaryAzurePort] The secondary port. - * @property {string} [sharedKey] The shared key. - * @property {number} [vlanId] The VLAN ID. - * @property {object} [microsoftPeeringConfig] The Microsoft peering - * configuration. - * @property {array} [microsoftPeeringConfig.advertisedPublicPrefixes] The - * reference of AdvertisedPublicPrefixes. - * @property {array} [microsoftPeeringConfig.advertisedCommunities] The - * communities of bgp peering. Spepcified for microsoft peering - * @property {string} [microsoftPeeringConfig.advertisedPublicPrefixesState] - * AdvertisedPublicPrefixState of the Peering resource. Possible values are - * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. - * Possible values include: 'NotConfigured', 'Configuring', 'Configured', - * 'ValidationNeeded' - * @property {number} [microsoftPeeringConfig.legacyMode] The legacy mode of - * the peering. - * @property {number} [microsoftPeeringConfig.customerASN] The CustomerASN of - * the peering. - * @property {string} [microsoftPeeringConfig.routingRegistryName] The - * RoutingRegistryName of the configuration. - * @property {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [gatewayManagerEtag] The GatewayManager Etag. - * @property {string} [lastModifiedBy] Gets whether the provider or the - * customer last modified the peering. - * @property {object} [ipv6PeeringConfig] The IPv6 peering configuration. - * @property {string} [ipv6PeeringConfig.primaryPeerAddressPrefix] The primary - * address prefix. - * @property {string} [ipv6PeeringConfig.secondaryPeerAddressPrefix] The - * secondary address prefix. - * @property {object} [ipv6PeeringConfig.microsoftPeeringConfig] The Microsoft - * peering configuration. - * @property {array} - * [ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixes] The - * reference of AdvertisedPublicPrefixes. - * @property {array} - * [ipv6PeeringConfig.microsoftPeeringConfig.advertisedCommunities] The - * communities of bgp peering. Spepcified for microsoft peering - * @property {string} - * [ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixesState] - * AdvertisedPublicPrefixState of the Peering resource. Possible values are - * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. - * Possible values include: 'NotConfigured', 'Configuring', 'Configured', - * 'ValidationNeeded' - * @property {number} [ipv6PeeringConfig.microsoftPeeringConfig.legacyMode] The - * legacy mode of the peering. - * @property {number} [ipv6PeeringConfig.microsoftPeeringConfig.customerASN] - * The CustomerASN of the peering. - * @property {string} - * [ipv6PeeringConfig.microsoftPeeringConfig.routingRegistryName] The - * RoutingRegistryName of the configuration. - * @property {object} [ipv6PeeringConfig.routeFilter] The reference of the - * RouteFilter resource. - * @property {array} [ipv6PeeringConfig.routeFilter.rules] Collection of - * RouteFilterRules contained within a route filter. - * @property {array} [ipv6PeeringConfig.routeFilter.peerings] A collection of - * references to express route circuit peerings. - * @property {string} [ipv6PeeringConfig.routeFilter.provisioningState] The - * provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', 'Succeeded' and 'Failed'. - * @property {string} [ipv6PeeringConfig.routeFilter.etag] Gets a unique - * read-only string that changes whenever the resource is updated. - * @property {string} [ipv6PeeringConfig.state] The state of peering. Possible - * values are: 'Disabled' and 'Enabled'. Possible values include: 'Disabled', - * 'Enabled' - * @property {string} [name] Gets name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface ExpressRouteCrossConnectionPeering extends SubResource { - peeringType?: string; - state?: string; - readonly azureASN?: number; - peerASN?: number; - primaryPeerAddressPrefix?: string; - secondaryPeerAddressPrefix?: string; - readonly primaryAzurePort?: string; - readonly secondaryAzurePort?: string; - sharedKey?: string; - vlanId?: number; - microsoftPeeringConfig?: ExpressRouteCircuitPeeringConfig; - readonly provisioningState?: string; - gatewayManagerEtag?: string; - lastModifiedBy?: string; - ipv6PeeringConfig?: Ipv6ExpressRouteCircuitPeeringConfig; - name?: string; - readonly etag?: string; -} - -/** - * @class - * Initializes a new instance of the ExpressRouteCrossConnection class. - * @constructor - * ExpressRouteCrossConnection resource - * - * @property {string} [primaryAzurePort] The name of the primary port. - * @property {string} [secondaryAzurePort] The name of the secondary port. - * @property {number} [sTag] The identifier of the circuit traffic. - * @property {string} [peeringLocation] The peering location of the - * ExpressRoute circuit. - * @property {number} [bandwidthInMbps] The circuit bandwidth In Mbps. - * @property {object} [expressRouteCircuit] The ExpressRouteCircuit - * @property {string} [expressRouteCircuit.id] Corresponding Express Route - * Circuit Id. - * @property {string} [serviceProviderProvisioningState] The provisioning state - * of the circuit in the connectivity provider system. Possible values are - * 'NotProvisioned', 'Provisioning', 'Provisioned'. Possible values include: - * 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning' - * @property {string} [serviceProviderNotes] Additional read only notes set by - * the connectivity provider. - * @property {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {array} [peerings] The list of peerings. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ -export interface ExpressRouteCrossConnection extends Resource { - readonly primaryAzurePort?: string; - readonly secondaryAzurePort?: string; - readonly sTag?: number; - peeringLocation?: string; - bandwidthInMbps?: number; - expressRouteCircuit?: ExpressRouteCircuitReference; - serviceProviderProvisioningState?: string; - serviceProviderNotes?: string; - readonly provisioningState?: string; - peerings?: ExpressRouteCrossConnectionPeering[]; - readonly etag?: string; -} - -/** - * @class - * Initializes a new instance of the VirtualHubId class. - * @constructor - * Virtual Hub identifier. - * - * @property {string} [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. - */ -export interface VirtualHubId { - id?: string; -} - -/** - * @class - * Initializes a new instance of the ExpressRouteCircuitPeeringId class. - * @constructor - * ExpressRoute circuit peering identifier. - * - * @property {string} [id] The ID of the ExpressRoute circuit peering. - */ -export interface ExpressRouteCircuitPeeringId { - id?: string; -} - -/** - * @class - * Initializes a new instance of the ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds class. - * @constructor - * Minimum and maximum number of scale units to deploy. - * - * @property {number} [min] Minimum number of scale units deployed for - * ExpressRoute gateway. - * @property {number} [max] Maximum number of scale units deployed for - * ExpressRoute gateway. - */ -export interface ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds { - min?: number; - max?: number; -} - -/** - * @class - * Initializes a new instance of the ExpressRouteGatewayPropertiesAutoScaleConfiguration class. - * @constructor - * Configuration for auto scaling. - * - * @property {object} [bounds] Minimum and maximum number of scale units to - * deploy. - * @property {number} [bounds.min] Minimum number of scale units deployed for - * ExpressRoute gateway. - * @property {number} [bounds.max] Maximum number of scale units deployed for - * ExpressRoute gateway. - */ -export interface ExpressRouteGatewayPropertiesAutoScaleConfiguration { - bounds?: ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds; -} - -/** - * @class - * Initializes a new instance of the ExpressRouteConnection class. - * @constructor - * ExpressRouteConnection resource. - * - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' - * @property {object} expressRouteCircuitPeering The ExpressRoute circuit - * peering. - * @property {string} [expressRouteCircuitPeering.id] The ID of the - * ExpressRoute circuit peering. - * @property {string} [authorizationKey] Authorization key to establish the - * connection. - * @property {number} [routingWeight] The routing weight associated to the - * connection. - * @property {string} name The name of the resource. - */ -export interface ExpressRouteConnection extends SubResource { - readonly provisioningState?: string; - expressRouteCircuitPeering: ExpressRouteCircuitPeeringId; - authorizationKey?: string; - routingWeight?: number; - name: string; -} - -/** - * @class - * Initializes a new instance of the ExpressRouteGateway class. - * @constructor - * ExpressRoute gateway resource. - * - * @property {object} [autoScaleConfiguration] Configuration for auto scaling. - * @property {object} [autoScaleConfiguration.bounds] Minimum and maximum - * number of scale units to deploy. - * @property {number} [autoScaleConfiguration.bounds.min] Minimum number of - * scale units deployed for ExpressRoute gateway. - * @property {number} [autoScaleConfiguration.bounds.max] Maximum number of - * scale units deployed for ExpressRoute gateway. - * @property {array} [expressRouteConnections] List of ExpressRoute connections - * to the ExpressRoute gateway. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' - * @property {object} virtualHub The Virtual Hub where the ExpressRoute gateway - * is or will be deployed. - * @property {string} [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. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface ExpressRouteGateway extends Resource { - autoScaleConfiguration?: ExpressRouteGatewayPropertiesAutoScaleConfiguration; - readonly expressRouteConnections?: ExpressRouteConnection[]; - readonly provisioningState?: string; - virtualHub: VirtualHubId; - readonly etag?: string; + * Contains bandwidths offered in ExpressRouteServiceProvider resources. +*/ +export interface ExpressRouteServiceProviderBandwidthsOffered { + /** + * The OfferName. + */ + offerName?: string; + /** + * The ValueInMbps. + */ + valueInMbps?: number; } /** - * @class - * Initializes a new instance of the ExpressRouteGatewayList class. - * @constructor - * List of ExpressRoute gateways. - * - * @property {array} [value] List of ExpressRoute gateways. - */ -export interface ExpressRouteGatewayList { - value?: ExpressRouteGateway[]; + * A ExpressRouteResourceProvider object. +*/ +export interface ExpressRouteServiceProvider extends Resource { + /** + * Get a list of peering locations. + */ + peeringLocations?: string[]; + /** + * Gets bandwidths offered. + */ + bandwidthsOffered?: ExpressRouteServiceProviderBandwidthsOffered[]; + /** + * Gets the provisioning state of the resource. + */ + provisioningState?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteConnectionList class. - * @constructor - * ExpressRouteConnection list - * - * @property {array} [value] The list of ExpressRoute connections - */ -export interface ExpressRouteConnectionList { - value?: ExpressRouteConnection[]; + * The routes table associated with the ExpressRouteCircuit. +*/ +export interface ExpressRouteCrossConnectionRoutesTableSummary { + /** + * IP address of Neighbor router + */ + neighbor?: string; + /** + * Autonomous system number. + */ + asn?: number; + /** + * The length of time that the BGP session has been in the Established state, or the current + * status if not in the Established state. + */ + upDown?: string; + /** + * Current state of the BGP session, and the number of prefixes that have been received from a + * neighbor or peer group. + */ + stateOrPrefixesReceived?: string; } /** - * @class - * Initializes a new instance of the ExpressRoutePortsLocationBandwidths class. - * @constructor - * @summary ExpressRoutePorts Location Bandwidths - * - * Real-time inventory of available ExpressRoute port bandwidths. - * - * @property {string} [offerName] Bandwidth descriptive name - * @property {number} [valueInGbps] Bandwidth value in Gbps - */ -export interface ExpressRoutePortsLocationBandwidths { - readonly offerName?: string; - readonly valueInGbps?: number; + * Response for ListRoutesTable associated with the Express Route Cross Connections. +*/ +export interface ExpressRouteCrossConnectionsRoutesTableSummaryListResult { + /** + * A list of the routes table. + */ + value?: ExpressRouteCrossConnectionRoutesTableSummary[]; + /** + * The URL to get the next set of results. + */ + readonly nextLink?: string; } -/** - * @class - * Initializes a new instance of the ExpressRoutePortsLocation class. - * @constructor - * @summary ExpressRoutePorts Peering Location - * - * Definition of the ExpressRoutePorts peering location resource. - * - * @property {string} [address] Address of peering location. - * @property {string} [contact] Contact details of peering locations. - * @property {array} [availableBandwidths] The inventory of available - * ExpressRoutePort bandwidths. - * @property {string} [provisioningState] The provisioning state of the - * ExpressRoutePortLocation resource. Possible values are: 'Succeeded', - * 'Updating', 'Deleting', and 'Failed'. - */ -export interface ExpressRoutePortsLocation extends Resource { - readonly address?: string; - readonly contact?: string; - availableBandwidths?: ExpressRoutePortsLocationBandwidths[]; - readonly provisioningState?: string; +export interface ExpressRouteCircuitReference { + /** + * Corresponding Express Route Circuit Id. + */ + id?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteLink class. - * @constructor - * @summary ExpressRouteLink - * - * ExpressRouteLink child resource definition. - * - * @property {string} [routerName] Name of Azure router associated with - * physical port. - * @property {string} [interfaceName] Name of Azure router interface. - * @property {string} [patchPanelId] Mapping between physical port to patch - * panel port. - * @property {string} [rackId] Mapping of physical patch panel to rack. - * @property {string} [connectorType] Physical fiber port type. Possible values - * include: 'LC', 'SC' - * @property {string} [adminState] Administrative state of the physical port. - * Possible values include: 'Enabled', 'Disabled' - * @property {string} [provisioningState] The provisioning state of the - * ExpressRouteLink resource. Possible values are: 'Succeeded', 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [name] Name of child port resource that is unique among - * child port resources of the parent. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface ExpressRouteLink extends SubResource { - readonly routerName?: string; - readonly interfaceName?: string; - readonly patchPanelId?: string; - readonly rackId?: string; - readonly connectorType?: string; - adminState?: string; + * Peering in an ExpressRoute Cross Connection resource. +*/ +export interface ExpressRouteCrossConnectionPeering extends SubResource { + /** + * The peering type. Possible values include: 'AzurePublicPeering', 'AzurePrivatePeering', + * 'MicrosoftPeering' + */ + peeringType?: string; + /** + * The peering state. Possible values include: 'Disabled', 'Enabled' + */ + state?: string; + /** + * The Azure ASN. + */ + readonly azureASN?: number; + /** + * The peer ASN. + */ + peerASN?: number; + /** + * The primary address prefix. + */ + primaryPeerAddressPrefix?: string; + /** + * The secondary address prefix. + */ + secondaryPeerAddressPrefix?: string; + /** + * The primary port. + */ + readonly primaryAzurePort?: string; + /** + * The secondary port. + */ + readonly secondaryAzurePort?: string; + /** + * The shared key. + */ + sharedKey?: string; + /** + * The VLAN ID. + */ + vlanId?: number; + /** + * The Microsoft peering configuration. + */ + microsoftPeeringConfig?: ExpressRouteCircuitPeeringConfig; + /** + * Gets the provisioning state of the public IP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ readonly provisioningState?: string; + /** + * The GatewayManager Etag. + */ + gatewayManagerEtag?: string; + /** + * Gets whether the provider or the customer last modified the peering. + */ + lastModifiedBy?: string; + /** + * The IPv6 peering configuration. + */ + ipv6PeeringConfig?: Ipv6ExpressRouteCircuitPeeringConfig; + /** + * Gets name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the ExpressRoutePort class. - * @constructor - * @summary ExpressRoute Port - * - * ExpressRoutePort resource definition. - * - * @property {string} [peeringLocation] The name of the peering location that - * the ExpressRoutePort is mapped to physically. - * @property {number} [bandwidthInGbps] Bandwidth of procured ports in Gbps - * @property {number} [provisionedBandwidthInGbps] Aggregate Gbps of associated - * circuit bandwidths. - * @property {string} [mtu] Maximum transmission unit of the physical port - * pair(s) - * @property {string} [encapsulation] Encapsulation method on physical ports. - * Possible values include: 'Dot1Q', 'QinQ' - * @property {string} [etherType] Ethertype of the physical port. - * @property {string} [allocationDate] Date of the physical port allocation to - * be used in Letter of Authorization. - * @property {array} [links] ExpressRouteLink Sub-Resources. The set of - * physical links of the ExpressRoutePort resource - * @property {array} [circuits] Reference the ExpressRoute circuit(s) that are - * provisioned on this ExpressRoutePort resource. - * @property {string} [provisioningState] The provisioning state of the - * ExpressRoutePort resource. Possible values are: 'Succeeded', 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [resourceGuid] The resource GUID property of the - * ExpressRoutePort resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface ExpressRoutePort extends Resource { + * ExpressRouteCrossConnection resource +*/ +export interface ExpressRouteCrossConnection extends Resource { + /** + * The name of the primary port. + */ + readonly primaryAzurePort?: string; + /** + * The name of the secondary port. + */ + readonly secondaryAzurePort?: string; + /** + * The identifier of the circuit traffic. + */ + readonly sTag?: number; + /** + * The peering location of the ExpressRoute circuit. + */ peeringLocation?: string; - bandwidthInGbps?: number; - readonly provisionedBandwidthInGbps?: number; - readonly mtu?: string; - encapsulation?: string; - readonly etherType?: string; - readonly allocationDate?: string; - links?: ExpressRouteLink[]; - readonly circuits?: SubResource[]; + /** + * The circuit bandwidth In Mbps. + */ + bandwidthInMbps?: number; + /** + * The ExpressRouteCircuit + */ + expressRouteCircuit?: ExpressRouteCircuitReference; + /** + * The provisioning state of the circuit in the connectivity provider system. Possible values are + * 'NotProvisioned', 'Provisioning', 'Provisioned'. Possible values include: 'NotProvisioned', + * 'Provisioning', 'Provisioned', 'Deprovisioning' + */ + serviceProviderProvisioningState?: string; + /** + * Additional read only notes set by the connectivity provider. + */ + serviceProviderNotes?: string; + /** + * Gets the provisioning state of the public IP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ readonly provisioningState?: string; - resourceGuid?: string; + /** + * The list of peerings. + */ + peerings?: ExpressRouteCrossConnectionPeering[]; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the LoadBalancerSku class. - * @constructor * SKU of a load balancer - * - * @property {string} [name] Name of a load balancer SKU. Possible values - * include: 'Basic', 'Standard' - */ +*/ export interface LoadBalancerSku { + /** + * Name of a load balancer SKU. Possible values include: 'Basic', 'Standard' + */ + name?: string; +} + +/** + * Frontend IP address of the load balancer. +*/ +export interface FrontendIPConfiguration extends SubResource { + /** + * Read only. Inbound rules URIs that use this frontend IP. + */ + readonly inboundNatRules?: SubResource[]; + /** + * Read only. Inbound pools URIs that use this frontend IP. + */ + readonly inboundNatPools?: SubResource[]; + /** + * Read only. Outbound rules URIs that use this frontend IP. + */ + readonly outboundNatRules?: SubResource[]; + /** + * Gets load balancing rules URIs that use this frontend IP. + */ + readonly loadBalancingRules?: SubResource[]; + /** + * The private IP address of the IP configuration. + */ + privateIPAddress?: string; + /** + * The Private IP allocation method. Possible values are: 'Static' and 'Dynamic'. Possible values + * include: 'Static', 'Dynamic' + */ + privateIPAllocationMethod?: string; + /** + * The reference of the subnet resource. + */ + subnet?: Subnet; + /** + * The reference of the Public IP resource. + */ + publicIPAddress?: PublicIPAddress; + /** + * Gets the provisioning state of the public IP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ + provisioningState?: string; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ + etag?: string; + /** + * A list of availability zones denoting the IP allocated for the resource needs to come from. + */ + zones?: string[]; } /** - * @class - * Initializes a new instance of the LoadBalancingRule class. - * @constructor * A load balancing rule for a load balancer. - * - * @property {object} [frontendIPConfiguration] A reference to frontend IP - * addresses. - * @property {string} [frontendIPConfiguration.id] Resource ID. - * @property {object} [backendAddressPool] A reference to a pool of DIPs. - * Inbound traffic is randomly load balanced across IPs in the backend IPs. - * @property {string} [backendAddressPool.id] Resource ID. - * @property {object} [probe] The reference of the load balancer probe used by - * the load balancing rule. - * @property {string} [probe.id] Resource ID. - * @property {string} protocol Possible values include: 'Udp', 'Tcp', 'All' - * @property {string} [loadDistribution] The load distribution policy for this - * rule. Possible values are 'Default', 'SourceIP', and 'SourceIPProtocol'. - * Possible values include: 'Default', 'SourceIP', 'SourceIPProtocol' - * @property {number} frontendPort The port for the external endpoint. Port - * numbers for each rule must be unique within the Load Balancer. Acceptable - * values are between 0 and 65534. Note that value 0 enables "Any Port" - * @property {number} [backendPort] The port used for internal connections on - * the endpoint. Acceptable values are between 0 and 65535. Note that value 0 - * enables "Any Port" - * @property {number} [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. - * @property {boolean} [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. - * @property {boolean} [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. - * @property {boolean} [disableOutboundSnat] Configures SNAT for the VMs in the - * backend pool to use the publicIP address specified in the frontend of the - * load balancing rule. - * @property {string} [provisioningState] Gets the provisioning state of the - * PublicIP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ +*/ export interface LoadBalancingRule extends SubResource { + /** + * A reference to frontend IP addresses. + */ frontendIPConfiguration?: SubResource; + /** + * A reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the + * backend IPs. + */ backendAddressPool?: SubResource; + /** + * The reference of the load balancer probe used by the load balancing rule. + */ probe?: SubResource; + /** + * Possible values include: 'Udp', 'Tcp', 'All' + */ protocol: string; + /** + * The load distribution policy for this rule. Possible values are 'Default', 'SourceIP', and + * 'SourceIPProtocol'. Possible values include: 'Default', 'SourceIP', 'SourceIPProtocol' + */ loadDistribution?: string; + /** + * The port for the external endpoint. Port numbers for each rule must be unique within the Load + * Balancer. Acceptable values are between 0 and 65534. Note that value 0 enables "Any Port" + */ frontendPort: number; + /** + * The port used for internal connections on the endpoint. Acceptable values are between 0 and + * 65535. Note that value 0 enables "Any Port" + */ backendPort?: number; + /** + * 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. + */ idleTimeoutInMinutes?: number; + /** + * 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. + */ enableFloatingIP?: boolean; - enableTcpReset?: boolean; + /** + * Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the + * frontend of the load balancing rule. + */ disableOutboundSnat?: boolean; + /** + * Gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the Probe class. - * @constructor * A load balancer probe. - * - * @property {array} [loadBalancingRules] The load balancer rules that use this - * probe. - * @property {string} protocol The protocol of the end point. Possible values - * are: 'Http', 'Tcp', or 'Https'. If 'Tcp' is specified, a received ACK is - * required for the probe to be successful. If 'Http' or 'Https' is specified, - * a 200 OK response from the specifies URI is required for the probe to be - * successful. Possible values include: 'Http', 'Tcp', 'Https' - * @property {number} port The port for communicating the probe. Possible - * values range from 1 to 65535, inclusive. - * @property {number} [intervalInSeconds] The interval, in seconds, for how - * frequently to probe the endpoint for health status. Typically, the interval - * is slightly less than half the allocated timeout period (in seconds) which - * allows two full probes before taking the instance out of rotation. The - * default value is 15, the minimum value is 5. - * @property {number} [numberOfProbes] The number of probes where if no - * response, will result in stopping further traffic from being delivered to - * the endpoint. This values allows endpoints to be taken out of rotation - * faster or slower than the typical times used in Azure. - * @property {string} [requestPath] The URI used for requesting health status - * from the VM. Path is required if a protocol is set to http. Otherwise, it is - * not allowed. There is no default value. - * @property {string} [provisioningState] Gets the provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] Gets name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ +*/ export interface Probe extends SubResource { + /** + * The load balancer rules that use this probe. + */ readonly loadBalancingRules?: SubResource[]; + /** + * The protocol of the end point. Possible values are: 'Http', 'Tcp', or 'Https'. If 'Tcp' is + * specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is + * specified, a 200 OK response from the specifies URI is required for the probe to be + * successful. Possible values include: 'Http', 'Tcp', 'Https' + */ protocol: string; + /** + * The port for communicating the probe. Possible values range from 1 to 65535, inclusive. + */ port: number; + /** + * The interval, in seconds, for how frequently to probe the endpoint for health status. + * Typically, the interval is slightly less than half the allocated timeout period (in seconds) + * which allows two full probes before taking the instance out of rotation. The default value is + * 15, the minimum value is 5. + */ intervalInSeconds?: number; + /** + * The number of probes where if no response, will result in stopping further traffic from being + * delivered to the endpoint. This values allows endpoints to be taken out of rotation faster or + * slower than the typical times used in Azure. + */ numberOfProbes?: number; + /** + * The URI used for requesting health status from the VM. Path is required if a protocol is set + * to http. Otherwise, it is not allowed. There is no default value. + */ requestPath?: string; + /** + * Gets the provisioning state of the public IP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * Gets name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the InboundNatPool class. - * @constructor * Inbound NAT pool of the load balancer. - * - * @property {object} [frontendIPConfiguration] A reference to frontend IP - * addresses. - * @property {string} [frontendIPConfiguration.id] Resource ID. - * @property {string} protocol Possible values include: 'Udp', 'Tcp', 'All' - * @property {number} frontendPortRangeStart The first port number in the range - * of external ports that will be used to provide Inbound Nat to NICs - * associated with a load balancer. Acceptable values range between 1 and - * 65534. - * @property {number} frontendPortRangeEnd The last port number in the range of - * external ports that will be used to provide Inbound Nat to NICs associated - * with a load balancer. Acceptable values range between 1 and 65535. - * @property {number} backendPort The port used for internal connections on the - * endpoint. Acceptable values are between 1 and 65535. - * @property {number} [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. - * @property {boolean} [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. - * @property {boolean} [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. - * @property {string} [provisioningState] Gets the provisioning state of the - * PublicIP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ +*/ export interface InboundNatPool extends SubResource { + /** + * A reference to frontend IP addresses. + */ frontendIPConfiguration?: SubResource; + /** + * Possible values include: 'Udp', 'Tcp', 'All' + */ protocol: string; + /** + * The first port number in the range of external ports that will be used to provide Inbound Nat + * to NICs associated with a load balancer. Acceptable values range between 1 and 65534. + */ frontendPortRangeStart: number; + /** + * The last port number in the range of external ports that will be used to provide Inbound Nat + * to NICs associated with a load balancer. Acceptable values range between 1 and 65535. + */ frontendPortRangeEnd: number; + /** + * The port used for internal connections on the endpoint. Acceptable values are between 1 and + * 65535. + */ backendPort: number; + /** + * 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. + */ idleTimeoutInMinutes?: number; + /** + * 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. + */ enableFloatingIP?: boolean; - enableTcpReset?: boolean; + /** + * Gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the OutboundRule class. - * @constructor - * Outbound pool of the load balancer. - * - * @property {number} [allocatedOutboundPorts] The number of outbound ports to - * be used for NAT. - * @property {array} frontendIPConfigurations The Frontend IP addresses of the - * load balancer. - * @property {object} backendAddressPool A reference to a pool of DIPs. - * Outbound traffic is randomly load balanced across IPs in the backend IPs. - * @property {string} [backendAddressPool.id] Resource ID. - * @property {string} [provisioningState] Gets the provisioning state of the - * PublicIP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} protocol Protocol - TCP, UDP or All. Possible values - * include: 'Tcp', 'Udp', 'All' - * @property {boolean} [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. - * @property {number} [idleTimeoutInMinutes] The timeout for the TCP idle - * connection - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface OutboundRule extends SubResource { + * Outbound NAT pool of the load balancer. +*/ +export interface OutboundNatRule extends SubResource { + /** + * The number of outbound ports to be used for NAT. + */ allocatedOutboundPorts?: number; - frontendIPConfigurations: SubResource[]; + /** + * The Frontend IP addresses of the load balancer. + */ + frontendIPConfigurations?: SubResource[]; + /** + * A reference to a pool of DIPs. Outbound traffic is randomly load balanced across IPs in the + * backend IPs. + */ backendAddressPool: SubResource; + /** + * Gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; - protocol: string; - enableTcpReset?: boolean; - idleTimeoutInMinutes?: number; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the LoadBalancer class. - * @constructor * LoadBalancer resource - * - * @property {object} [sku] The load balancer SKU. - * @property {string} [sku.name] Name of a load balancer SKU. Possible values - * include: 'Basic', 'Standard' - * @property {array} [frontendIPConfigurations] Object representing the - * frontend IPs to be used for the load balancer - * @property {array} [backendAddressPools] Collection of backend address pools - * used by a load balancer - * @property {array} [loadBalancingRules] Object collection representing the - * load balancing rules Gets the provisioning - * @property {array} [probes] Collection of probe objects used in the load - * balancer - * @property {array} [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. - * @property {array} [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. - * @property {array} [outboundRules] The outbound rules. - * @property {string} [resourceGuid] The resource GUID property of the load - * balancer resource. - * @property {string} [provisioningState] Gets the provisioning state of the - * PublicIP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ +*/ export interface LoadBalancer extends Resource { + /** + * The load balancer SKU. + */ sku?: LoadBalancerSku; + /** + * Object representing the frontend IPs to be used for the load balancer + */ frontendIPConfigurations?: FrontendIPConfiguration[]; + /** + * Collection of backend address pools used by a load balancer + */ backendAddressPools?: BackendAddressPool[]; + /** + * Object collection representing the load balancing rules Gets the provisioning + */ loadBalancingRules?: LoadBalancingRule[]; + /** + * Collection of probe objects used in the load balancer + */ probes?: Probe[]; + /** + * 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. + */ inboundNatRules?: InboundNatRule[]; + /** + * 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. + */ inboundNatPools?: InboundNatPool[]; - outboundRules?: OutboundRule[]; + /** + * The outbound NAT rules. + */ + outboundNatRules?: OutboundNatRule[]; + /** + * The resource GUID property of the load balancer resource. + */ resourceGuid?: string; + /** + * Gets the provisioning state of the PublicIP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ provisioningState?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } -/** - * @class - * Initializes a new instance of the ErrorDetails class. - * @constructor - * @property {string} [code] - * @property {string} [target] - * @property {string} [message] - */ export interface ErrorDetails { code?: string; target?: string; message?: string; } -/** - * @class - * Initializes a new instance of the ErrorModel class. - * @constructor - * @property {string} [code] - * @property {string} [message] - * @property {string} [target] - * @property {array} [details] - * @property {string} [innerError] - */ export interface ErrorModel { code?: string; message?: string; @@ -6600,4551 +3060,3249 @@ export interface ErrorModel { } /** - * @class - * Initializes a new instance of the AzureAsyncOperationResult class. - * @constructor - * The response body contains the status of the specified asynchronous - * operation, indicating whether it has succeeded, is in progress, or has - * failed. Note that this status is distinct from the HTTP status code returned - * for the Get Operation Status operation itself. If the asynchronous operation - * succeeded, the response body includes the HTTP status code for the - * successful request. If the asynchronous operation failed, the response body - * includes the HTTP status code for the failed request and error information - * regarding the failure. - * - * @property {string} [status] Status of the Azure async operation. Possible - * values are: 'InProgress', 'Succeeded', and 'Failed'. Possible values - * include: 'InProgress', 'Succeeded', 'Failed' - * @property {object} [error] - * @property {string} [error.code] - * @property {string} [error.message] - * @property {string} [error.target] - * @property {array} [error.details] - * @property {string} [error.innerError] - */ + * The response body contains the status of the specified asynchronous operation, indicating + * whether it has succeeded, is in progress, or has failed. Note that this status is distinct from + * the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous + * operation succeeded, the response body includes the HTTP status code for the successful request. + * If the asynchronous operation failed, the response body includes the HTTP status code for the + * failed request and error information regarding the failure. +*/ export interface AzureAsyncOperationResult { + /** + * Status of the Azure async operation. Possible values are: 'InProgress', 'Succeeded', and + * 'Failed'. Possible values include: 'InProgress', 'Succeeded', 'Failed' + */ status?: string; error?: ErrorModel; } /** - * @class - * Initializes a new instance of the EffectiveNetworkSecurityGroupAssociation class. - * @constructor * The effective network security group association. - * - * @property {object} [subnet] The ID of the subnet if assigned. - * @property {string} [subnet.id] Resource ID. - * @property {object} [networkInterface] The ID of the network interface if - * assigned. - * @property {string} [networkInterface.id] Resource ID. - */ +*/ export interface EffectiveNetworkSecurityGroupAssociation { + /** + * The ID of the subnet if assigned. + */ subnet?: SubResource; + /** + * The ID of the network interface if assigned. + */ networkInterface?: SubResource; } /** - * @class - * Initializes a new instance of the EffectiveNetworkSecurityRule class. - * @constructor * Effective network security rules. - * - * @property {string} [name] The name of the security rule specified by the - * user (if created by the user). - * @property {string} [protocol] The network protocol this rule applies to. - * Possible values are: 'Tcp', 'Udp', and 'All'. Possible values include: - * 'Tcp', 'Udp', 'All' - * @property {string} [sourcePortRange] The source port or range. - * @property {string} [destinationPortRange] The destination port or range. - * @property {array} [sourcePortRanges] The source port ranges. Expected values - * include a single integer between 0 and 65535, a range using '-' as seperator - * (e.g. 100-400), or an asterix (*) - * @property {array} [destinationPortRanges] The destination port ranges. - * Expected values include a single integer between 0 and 65535, a range using - * '-' as seperator (e.g. 100-400), or an asterix (*) - * @property {string} [sourceAddressPrefix] The source address prefix. - * @property {string} [destinationAddressPrefix] The destination address - * prefix. - * @property {array} [sourceAddressPrefixes] The source address prefixes. - * Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, - * AureLoadBalancer, Internet), System Tags, and the asterix (*). - * @property {array} [destinationAddressPrefixes] The destination address - * prefixes. Expected values include CIDR IP ranges, Default Tags - * (VirtualNetwork, AureLoadBalancer, Internet), System Tags, and the asterix - * (*). - * @property {array} [expandedSourceAddressPrefix] The expanded source address - * prefix. - * @property {array} [expandedDestinationAddressPrefix] Expanded destination - * address prefix. - * @property {string} [access] Whether network traffic is allowed or denied. - * Possible values are: 'Allow' and 'Deny'. Possible values include: 'Allow', - * 'Deny' - * @property {number} [priority] The priority of the rule. - * @property {string} [direction] The direction of the rule. Possible values - * are: 'Inbound and Outbound'. Possible values include: 'Inbound', 'Outbound' - */ +*/ export interface EffectiveNetworkSecurityRule { + /** + * The name of the security rule specified by the user (if created by the user). + */ name?: string; + /** + * The network protocol this rule applies to. Possible values are: 'Tcp', 'Udp', and 'All'. + * Possible values include: 'Tcp', 'Udp', 'All' + */ protocol?: string; + /** + * The source port or range. + */ sourcePortRange?: string; + /** + * The destination port or range. + */ destinationPortRange?: string; + /** + * The source port ranges. Expected values include a single integer between 0 and 65535, a range + * using '-' as seperator (e.g. 100-400), or an asterix (*) + */ sourcePortRanges?: string[]; + /** + * The destination port ranges. Expected values include a single integer between 0 and 65535, a + * range using '-' as seperator (e.g. 100-400), or an asterix (*) + */ destinationPortRanges?: string[]; + /** + * The source address prefix. + */ sourceAddressPrefix?: string; + /** + * The destination address prefix. + */ destinationAddressPrefix?: string; + /** + * The source address prefixes. Expected values include CIDR IP ranges, Default Tags + * (VirtualNetwork, AureLoadBalancer, Internet), System Tags, and the asterix (*). + */ sourceAddressPrefixes?: string[]; + /** + * The destination address prefixes. Expected values include CIDR IP ranges, Default Tags + * (VirtualNetwork, AureLoadBalancer, Internet), System Tags, and the asterix (*). + */ destinationAddressPrefixes?: string[]; + /** + * The expanded source address prefix. + */ expandedSourceAddressPrefix?: string[]; + /** + * Expanded destination address prefix. + */ expandedDestinationAddressPrefix?: string[]; + /** + * Whether network traffic is allowed or denied. Possible values are: 'Allow' and 'Deny'. + * Possible values include: 'Allow', 'Deny' + */ access?: string; + /** + * The priority of the rule. + */ priority?: number; + /** + * The direction of the rule. Possible values are: 'Inbound and Outbound'. Possible values + * include: 'Inbound', 'Outbound' + */ direction?: string; } /** - * @class - * Initializes a new instance of the EffectiveNetworkSecurityGroup class. - * @constructor * Effective network security group. - * - * @property {object} [networkSecurityGroup] The ID of network security group - * that is applied. - * @property {string} [networkSecurityGroup.id] Resource ID. - * @property {object} [association] Associated resources. - * @property {object} [association.subnet] The ID of the subnet if assigned. - * @property {string} [association.subnet.id] Resource ID. - * @property {object} [association.networkInterface] The ID of the network - * interface if assigned. - * @property {string} [association.networkInterface.id] Resource ID. - * @property {array} [effectiveSecurityRules] A collection of effective - * security rules. - * @property {object} [tagMap] Mapping of tags to list of IP Addresses included - * within the tag. - */ +*/ export interface EffectiveNetworkSecurityGroup { + /** + * The ID of network security group that is applied. + */ networkSecurityGroup?: SubResource; + /** + * Associated resources. + */ association?: EffectiveNetworkSecurityGroupAssociation; + /** + * A collection of effective security rules. + */ effectiveSecurityRules?: EffectiveNetworkSecurityRule[]; + /** + * Mapping of tags to list of IP Addresses included within the tag. + */ tagMap?: { [propertyName: string]: string[] }; } /** - * @class - * Initializes a new instance of the EffectiveNetworkSecurityGroupListResult class. - * @constructor * Response for list effective network security groups API service call. - * - * @property {array} [value] A list of effective network security groups. - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface EffectiveNetworkSecurityGroupListResult { + /** + * A list of effective network security groups. + */ value?: EffectiveNetworkSecurityGroup[]; + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the EffectiveRoute class. - * @constructor * Effective Route - * - * @property {string} [name] The name of the user defined route. This is - * optional. - * @property {string} [source] Who created the route. Possible values are: - * 'Unknown', 'User', 'VirtualNetworkGateway', and 'Default'. Possible values - * include: 'Unknown', 'User', 'VirtualNetworkGateway', 'Default' - * @property {string} [state] The value of effective route. Possible values - * are: 'Active' and 'Invalid'. Possible values include: 'Active', 'Invalid' - * @property {array} [addressPrefix] The address prefixes of the effective - * routes in CIDR notation. - * @property {array} [nextHopIpAddress] The IP address of the next hop of the - * effective route. - * @property {string} [nextHopType] The type of Azure hop the packet should be - * sent to. Possible values are: 'VirtualNetworkGateway', 'VnetLocal', - * 'Internet', 'VirtualAppliance', and 'None'. Possible values include: - * 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None' - */ +*/ export interface EffectiveRoute { + /** + * The name of the user defined route. This is optional. + */ name?: string; + /** + * Who created the route. Possible values are: 'Unknown', 'User', 'VirtualNetworkGateway', and + * 'Default'. Possible values include: 'Unknown', 'User', 'VirtualNetworkGateway', 'Default' + */ source?: string; + /** + * The value of effective route. Possible values are: 'Active' and 'Invalid'. Possible values + * include: 'Active', 'Invalid' + */ state?: string; + /** + * The address prefixes of the effective routes in CIDR notation. + */ addressPrefix?: string[]; + /** + * The IP address of the next hop of the effective route. + */ nextHopIpAddress?: string[]; + /** + * The type of Azure hop the packet should be sent to. Possible values are: + * 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', and 'None'. Possible + * values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', 'None' + */ nextHopType?: string; } /** - * @class - * Initializes a new instance of the EffectiveRouteListResult class. - * @constructor * Response for list effective route API service call. - * - * @property {array} [value] A list of effective routes. - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface EffectiveRouteListResult { + /** + * A list of effective routes. + */ value?: EffectiveRoute[]; + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the ContainerNetworkInterfaceConfiguration class. - * @constructor - * Container network interface configruation child resource. - * - * @property {array} [ipConfigurations] A list of ip configurations of the - * container network interface configuration. - * @property {array} [containerNetworkInterfaces] A list of container network - * interfaces created from this container network interface configuration. - * @property {string} [provisioningState] The provisioning state of the - * resource. - * @property {string} [name] The name of the resource. This name can be used to - * access the resource. - * @property {string} [type] Sub Resource type. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface ContainerNetworkInterfaceConfiguration extends SubResource { - ipConfigurations?: IPConfigurationProfile[]; - containerNetworkInterfaces?: SubResource[]; - readonly provisioningState?: string; - name?: string; - readonly type?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the Container class. - * @constructor - * Reference to container resource in remote resource provider. - * - */ -export interface Container extends SubResource { -} - -/** - * @class - * Initializes a new instance of the ContainerNetworkInterfaceIpConfiguration class. - * @constructor - * The ip configuration for a container network interface. - * - * @property {string} [provisioningState] The provisioning state of the - * resource. - * @property {string} [name] The name of the resource. This name can be used to - * access the resource. - * @property {string} [type] Sub Resource type. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface ContainerNetworkInterfaceIpConfiguration { - readonly provisioningState?: string; - name?: string; - readonly type?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the ContainerNetworkInterface class. - * @constructor - * Container network interface child resource. - * - * @property {object} [containerNetworkInterfaceConfiguration] Container - * network interface configuration from which this container network interface - * is created. - * @property {array} [containerNetworkInterfaceConfiguration.ipConfigurations] - * A list of ip configurations of the container network interface - * configuration. - * @property {array} - * [containerNetworkInterfaceConfiguration.containerNetworkInterfaces] A list - * of container network interfaces created from this container network - * interface configuration. - * @property {string} - * [containerNetworkInterfaceConfiguration.provisioningState] The provisioning - * state of the resource. - * @property {string} [containerNetworkInterfaceConfiguration.name] The name of - * the resource. This name can be used to access the resource. - * @property {string} [containerNetworkInterfaceConfiguration.type] Sub - * Resource type. - * @property {string} [containerNetworkInterfaceConfiguration.etag] A unique - * read-only string that changes whenever the resource is updated. - * @property {object} [container] Reference to the conatinaer to which this - * container network interface is attached. - * @property {array} [ipConfigurations] Reference to the ip configuration on - * this container nic. - * @property {string} [provisioningState] The provisioning state of the - * resource. - * @property {string} [name] The name of the resource. This name can be used to - * access the resource. - * @property {string} [type] Sub Resource type. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface ContainerNetworkInterface extends SubResource { - containerNetworkInterfaceConfiguration?: ContainerNetworkInterfaceConfiguration; - container?: Container; - ipConfigurations?: ContainerNetworkInterfaceIpConfiguration[]; - readonly provisioningState?: string; - name?: string; - readonly type?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the NetworkProfile class. - * @constructor - * Network profile resource. - * - * @property {array} [containerNetworkInterfaces] List of child container - * network interfaces. - * @property {array} [containerNetworkInterfaceConfigurations] List of chid - * container network interface configurations. - * @property {string} [resourceGuid] The resource GUID property of the network - * interface resource. - * @property {string} [provisioningState] The provisioning state of the - * resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface NetworkProfile extends Resource { - containerNetworkInterfaces?: ContainerNetworkInterface[]; - containerNetworkInterfaceConfigurations?: ContainerNetworkInterfaceConfiguration[]; - readonly resourceGuid?: string; - readonly provisioningState?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the ErrorResponse class. - * @constructor - * The error object. - * - * @property {object} [error] Error. - * @property {string} [error.code] - * @property {string} [error.target] - * @property {string} [error.message] - */ -export interface ErrorResponse { - error?: ErrorDetails; -} - -/** - * @class - * Initializes a new instance of the NetworkWatcher class. - * @constructor * Network watcher in a resource group. - * - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' - */ +*/ export interface NetworkWatcher extends Resource { + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; + /** + * The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' + */ readonly provisioningState?: string; } /** - * @class - * Initializes a new instance of the TopologyParameters class. - * @constructor * Parameters that define the representation of topology. - * - * @property {string} [targetResourceGroupName] The name of the target resource - * group to perform topology on. - * @property {object} [targetVirtualNetwork] The reference of the Virtual - * Network resource. - * @property {string} [targetVirtualNetwork.id] Resource ID. - * @property {object} [targetSubnet] The reference of the Subnet resource. - * @property {string} [targetSubnet.id] Resource ID. - */ +*/ export interface TopologyParameters { + /** + * The name of the target resource group to perform topology on. + */ targetResourceGroupName?: string; + /** + * The reference of the Virtual Network resource. + */ targetVirtualNetwork?: SubResource; + /** + * The reference of the Subnet resource. + */ targetSubnet?: SubResource; } /** - * @class - * Initializes a new instance of the TopologyAssociation class. - * @constructor * Resources that have an association with the parent resource. - * - * @property {string} [name] The name of the resource that is associated with - * the parent resource. - * @property {string} [resourceId] The ID of the resource that is associated - * with the parent resource. - * @property {string} [associationType] The association type of the child - * resource to the parent resource. Possible values include: 'Associated', - * 'Contains' - */ +*/ export interface TopologyAssociation { + /** + * The name of the resource that is associated with the parent resource. + */ name?: string; + /** + * The ID of the resource that is associated with the parent resource. + */ resourceId?: string; + /** + * The association type of the child resource to the parent resource. Possible values include: + * 'Associated', 'Contains' + */ associationType?: string; } /** - * @class - * Initializes a new instance of the TopologyResource class. - * @constructor * The network resource topology information for the given resource group. - * - * @property {string} [name] Name of the resource. - * @property {string} [id] ID of the resource. - * @property {string} [location] Resource location. - * @property {array} [associations] Holds the associations the resource has - * with other resources in the resource group. - */ +*/ export interface TopologyResource { + /** + * Name of the resource. + */ name?: string; + /** + * ID of the resource. + */ id?: string; + /** + * Resource location. + */ location?: string; + /** + * Holds the associations the resource has with other resources in the resource group. + */ associations?: TopologyAssociation[]; } /** - * @class - * Initializes a new instance of the Topology class. - * @constructor * Topology of the specified resource group. - * - * @property {string} [id] GUID representing the operation id. - * @property {date} [createdDateTime] The datetime when the topology was - * initially created for the resource group. - * @property {date} [lastModified] The datetime when the topology was last - * modified. - * @property {array} [resources] - */ +*/ export interface Topology { + /** + * GUID representing the operation id. + */ readonly id?: string; + /** + * The datetime when the topology was initially created for the resource group. + */ readonly createdDateTime?: Date; + /** + * The datetime when the topology was last modified. + */ readonly lastModified?: Date; resources?: TopologyResource[]; } /** - * @class - * Initializes a new instance of the VerificationIPFlowParameters class. - * @constructor * Parameters that define the IP flow to be verified. - * - * @property {string} targetResourceId The ID of the target resource to perform - * next-hop on. - * @property {string} direction The direction of the packet represented as a - * 5-tuple. Possible values include: 'Inbound', 'Outbound' - * @property {string} protocol Protocol to be verified on. Possible values - * include: 'TCP', 'UDP' - * @property {string} 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. - * @property {string} 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. - * @property {string} localIPAddress The local IP address. Acceptable values - * are valid IPv4 addresses. - * @property {string} remoteIPAddress The remote IP address. Acceptable values - * are valid IPv4 addresses. - * @property {string} [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). - */ +*/ export interface VerificationIPFlowParameters { + /** + * The ID of the target resource to perform next-hop on. + */ targetResourceId: string; + /** + * The direction of the packet represented as a 5-tuple. Possible values include: 'Inbound', + * 'Outbound' + */ direction: string; + /** + * Protocol to be verified on. Possible values include: 'TCP', 'UDP' + */ protocol: string; + /** + * 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. + */ localPort: string; + /** + * 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. + */ remotePort: string; + /** + * The local IP address. Acceptable values are valid IPv4 addresses. + */ localIPAddress: string; + /** + * The remote IP address. Acceptable values are valid IPv4 addresses. + */ remoteIPAddress: string; + /** + * 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). + */ targetNicResourceId?: string; } /** - * @class - * Initializes a new instance of the VerificationIPFlowResult class. - * @constructor * Results of IP flow verification on the target resource. - * - * @property {string} [access] Indicates whether the traffic is allowed or - * denied. Possible values include: 'Allow', 'Deny' - * @property {string} [ruleName] Name of the rule. If input is not matched - * against any security rule, it is not displayed. - */ +*/ export interface VerificationIPFlowResult { + /** + * Indicates whether the traffic is allowed or denied. Possible values include: 'Allow', 'Deny' + */ access?: string; + /** + * Name of the rule. If input is not matched against any security rule, it is not displayed. + */ ruleName?: string; } /** - * @class - * Initializes a new instance of the NextHopParameters class. - * @constructor * Parameters that define the source and destination endpoint. - * - * @property {string} targetResourceId The resource identifier of the target - * resource against which the action is to be performed. - * @property {string} sourceIPAddress The source IP address. - * @property {string} destinationIPAddress The destination IP address. - * @property {string} [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). - */ +*/ export interface NextHopParameters { + /** + * The resource identifier of the target resource against which the action is to be performed. + */ targetResourceId: string; + /** + * The source IP address. + */ sourceIPAddress: string; + /** + * The destination IP address. + */ destinationIPAddress: string; + /** + * 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). + */ targetNicResourceId?: string; } /** - * @class - * Initializes a new instance of the NextHopResult class. - * @constructor * The information about next hop from the specified VM. - * - * @property {string} [nextHopType] Next hop type. Possible values include: - * 'Internet', 'VirtualAppliance', 'VirtualNetworkGateway', 'VnetLocal', - * 'HyperNetGateway', 'None' - * @property {string} [nextHopIpAddress] Next hop IP Address - * @property {string} [routeTableId] The resource identifier for the route - * table associated with the route being returned. If the route being returned - * does not correspond to any user created routes then this field will be the - * string 'System Route'. - */ +*/ export interface NextHopResult { + /** + * Next hop type. Possible values include: 'Internet', 'VirtualAppliance', + * 'VirtualNetworkGateway', 'VnetLocal', 'HyperNetGateway', 'None' + */ nextHopType?: string; + /** + * Next hop IP Address + */ nextHopIpAddress?: string; + /** + * The resource identifier for the route table associated with the route being returned. If the + * route being returned does not correspond to any user created routes then this field will be + * the string 'System Route'. + */ routeTableId?: string; } /** - * @class - * Initializes a new instance of the SecurityGroupViewParameters class. - * @constructor * Parameters that define the VM to check security groups for. - * - * @property {string} targetResourceId ID of the target VM. - */ +*/ export interface SecurityGroupViewParameters { + /** + * ID of the target VM. + */ targetResourceId: string; } /** - * @class - * Initializes a new instance of the NetworkInterfaceAssociation class. - * @constructor * Network interface and its custom security rules. - * - * @property {string} [id] Network interface ID. - * @property {array} [securityRules] Collection of custom security rules. - */ +*/ export interface NetworkInterfaceAssociation { + /** + * Network interface ID. + */ readonly id?: string; + /** + * Collection of custom security rules. + */ securityRules?: SecurityRule[]; } /** - * @class - * Initializes a new instance of the SubnetAssociation class. - * @constructor * Network interface and its custom security rules. - * - * @property {string} [id] Subnet ID. - * @property {array} [securityRules] Collection of custom security rules. - */ +*/ export interface SubnetAssociation { + /** + * Subnet ID. + */ readonly id?: string; + /** + * Collection of custom security rules. + */ securityRules?: SecurityRule[]; } /** - * @class - * Initializes a new instance of the SecurityRuleAssociations class. - * @constructor * All security rules associated with the network interface. - * - * @property {object} [networkInterfaceAssociation] - * @property {string} [networkInterfaceAssociation.id] Network interface ID. - * @property {array} [networkInterfaceAssociation.securityRules] Collection of - * custom security rules. - * @property {object} [subnetAssociation] - * @property {string} [subnetAssociation.id] Subnet ID. - * @property {array} [subnetAssociation.securityRules] Collection of custom - * security rules. - * @property {array} [defaultSecurityRules] Collection of default security - * rules of the network security group. - * @property {array} [effectiveSecurityRules] Collection of effective security - * rules. - */ +*/ export interface SecurityRuleAssociations { networkInterfaceAssociation?: NetworkInterfaceAssociation; subnetAssociation?: SubnetAssociation; + /** + * Collection of default security rules of the network security group. + */ defaultSecurityRules?: SecurityRule[]; + /** + * Collection of effective security rules. + */ effectiveSecurityRules?: EffectiveNetworkSecurityRule[]; } /** - * @class - * Initializes a new instance of the SecurityGroupNetworkInterface class. - * @constructor * Network interface and all its associated security rules. - * - * @property {string} [id] ID of the network interface. - * @property {object} [securityRuleAssociations] - * @property {object} [securityRuleAssociations.networkInterfaceAssociation] - * @property {string} [securityRuleAssociations.networkInterfaceAssociation.id] - * Network interface ID. - * @property {array} - * [securityRuleAssociations.networkInterfaceAssociation.securityRules] - * Collection of custom security rules. - * @property {object} [securityRuleAssociations.subnetAssociation] - * @property {string} [securityRuleAssociations.subnetAssociation.id] Subnet - * ID. - * @property {array} [securityRuleAssociations.subnetAssociation.securityRules] - * Collection of custom security rules. - * @property {array} [securityRuleAssociations.defaultSecurityRules] Collection - * of default security rules of the network security group. - * @property {array} [securityRuleAssociations.effectiveSecurityRules] - * Collection of effective security rules. - */ +*/ export interface SecurityGroupNetworkInterface { + /** + * ID of the network interface. + */ id?: string; securityRuleAssociations?: SecurityRuleAssociations; } /** - * @class - * Initializes a new instance of the SecurityGroupViewResult class. - * @constructor * The information about security rules applied to the specified VM. - * - * @property {array} [networkInterfaces] List of network interfaces on the - * specified VM. - */ +*/ export interface SecurityGroupViewResult { + /** + * List of network interfaces on the specified VM. + */ networkInterfaces?: SecurityGroupNetworkInterface[]; } /** - * @class - * Initializes a new instance of the PacketCaptureStorageLocation class. - * @constructor * Describes the storage location for a packet capture session. - * - * @property {string} [storageId] The ID of the storage account to save the - * packet capture session. Required if no local file path is provided. - * @property {string} [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. - * @property {string} [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. - */ +*/ export interface PacketCaptureStorageLocation { + /** + * The ID of the storage account to save the packet capture session. Required if no local file + * path is provided. + */ storageId?: string; + /** + * 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. + */ storagePath?: string; + /** + * 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. + */ filePath?: string; } /** - * @class - * Initializes a new instance of the PacketCaptureFilter class. - * @constructor - * Filter that is applied to packet capture request. Multiple filters can be - * applied. - * - * @property {string} [protocol] Protocol to be filtered on. Possible values - * include: 'TCP', 'UDP', 'Any'. Default value: 'Any' . - * @property {string} [localIPAddress] Local IP Address to be filtered on. - * Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for - * range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not - * currently supported. Mixing ranges with multiple entries not currently - * supported. Default = null. - * @property {string} [remoteIPAddress] Local IP Address to be filtered on. - * Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for - * range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not - * currently supported. Mixing ranges with multiple entries not currently - * supported. Default = null. - * @property {string} [localPort] Local port to be filtered on. Notation: "80" - * for single port entry."80-85" for range. "80;443;" for multiple entries. - * Multiple ranges not currently supported. Mixing ranges with multiple entries - * not currently supported. Default = null. - * @property {string} [remotePort] Remote port to be filtered on. Notation: - * "80" for single port entry."80-85" for range. "80;443;" for multiple - * entries. Multiple ranges not currently supported. Mixing ranges with - * multiple entries not currently supported. Default = null. - */ + * Filter that is applied to packet capture request. Multiple filters can be applied. +*/ export interface PacketCaptureFilter { + /** + * Protocol to be filtered on. Possible values include: 'TCP', 'UDP', 'Any' + */ protocol?: string; + /** + * Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. + * "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple + * ranges not currently supported. Mixing ranges with multiple entries not currently supported. + * Default = null. + */ localIPAddress?: string; + /** + * Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. + * "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple + * ranges not currently supported. Mixing ranges with multiple entries not currently supported. + * Default = null. + */ remoteIPAddress?: string; + /** + * Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. + * "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with + * multiple entries not currently supported. Default = null. + */ localPort?: string; + /** + * Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. + * "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with + * multiple entries not currently supported. Default = null. + */ remotePort?: string; } /** - * @class - * Initializes a new instance of the PacketCaptureParameters class. - * @constructor * Parameters that define the create packet capture operation. - * - * @property {string} target The ID of the targeted resource, only VM is - * currently supported. - * @property {number} [bytesToCapturePerPacket] Number of bytes captured per - * packet, the remaining bytes are truncated. Default value: 0 . - * @property {number} [totalBytesPerSession] Maximum size of the capture - * output. Default value: 1073741824 . - * @property {number} [timeLimitInSeconds] Maximum duration of the capture - * session in seconds. Default value: 18000 . - * @property {object} storageLocation - * @property {string} [storageLocation.storageId] The ID of the storage account - * to save the packet capture session. Required if no local file path is - * provided. - * @property {string} [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. - * @property {string} [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. - * @property {array} [filters] - */ +*/ export interface PacketCaptureParameters { + /** + * The ID of the targeted resource, only VM is currently supported. + */ target: string; + /** + * Number of bytes captured per packet, the remaining bytes are truncated. + */ bytesToCapturePerPacket?: number; + /** + * Maximum size of the capture output. + */ totalBytesPerSession?: number; + /** + * Maximum duration of the capture session in seconds. + */ timeLimitInSeconds?: number; storageLocation: PacketCaptureStorageLocation; filters?: PacketCaptureFilter[]; } /** - * @class - * Initializes a new instance of the PacketCapture class. - * @constructor * Parameters that define the create packet capture operation. - * - * @property {string} target The ID of the targeted resource, only VM is - * currently supported. - * @property {number} [bytesToCapturePerPacket] Number of bytes captured per - * packet, the remaining bytes are truncated. Default value: 0 . - * @property {number} [totalBytesPerSession] Maximum size of the capture - * output. Default value: 1073741824 . - * @property {number} [timeLimitInSeconds] Maximum duration of the capture - * session in seconds. Default value: 18000 . - * @property {object} storageLocation - * @property {string} [storageLocation.storageId] The ID of the storage account - * to save the packet capture session. Required if no local file path is - * provided. - * @property {string} [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. - * @property {string} [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. - * @property {array} [filters] - */ +*/ export interface PacketCapture { + /** + * The ID of the targeted resource, only VM is currently supported. + */ target: string; + /** + * Number of bytes captured per packet, the remaining bytes are truncated. + */ bytesToCapturePerPacket?: number; + /** + * Maximum size of the capture output. + */ totalBytesPerSession?: number; + /** + * Maximum duration of the capture session in seconds. + */ timeLimitInSeconds?: number; storageLocation: PacketCaptureStorageLocation; filters?: PacketCaptureFilter[]; } /** - * @class - * Initializes a new instance of the PacketCaptureResult class. - * @constructor * Information about packet capture session. - * - * @property {string} [name] Name of the packet capture session. - * @property {string} [id] ID of the packet capture operation. - * @property {string} [etag] Default value: 'A unique read-only string that - * changes whenever the resource is updated.' . - * @property {string} target The ID of the targeted resource, only VM is - * currently supported. - * @property {number} [bytesToCapturePerPacket] Number of bytes captured per - * packet, the remaining bytes are truncated. Default value: 0 . - * @property {number} [totalBytesPerSession] Maximum size of the capture - * output. Default value: 1073741824 . - * @property {number} [timeLimitInSeconds] Maximum duration of the capture - * session in seconds. Default value: 18000 . - * @property {object} storageLocation - * @property {string} [storageLocation.storageId] The ID of the storage account - * to save the packet capture session. Required if no local file path is - * provided. - * @property {string} [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. - * @property {string} [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. - * @property {array} [filters] - * @property {string} [provisioningState] The provisioning state of the packet - * capture session. Possible values include: 'Succeeded', 'Updating', - * 'Deleting', 'Failed' - */ +*/ export interface PacketCaptureResult { + /** + * Name of the packet capture session. + */ readonly name?: string; + /** + * ID of the packet capture operation. + */ readonly id?: string; etag?: string; + /** + * The ID of the targeted resource, only VM is currently supported. + */ target: string; + /** + * Number of bytes captured per packet, the remaining bytes are truncated. + */ bytesToCapturePerPacket?: number; + /** + * Maximum size of the capture output. + */ totalBytesPerSession?: number; + /** + * Maximum duration of the capture session in seconds. + */ timeLimitInSeconds?: number; storageLocation: PacketCaptureStorageLocation; filters?: PacketCaptureFilter[]; + /** + * The provisioning state of the packet capture session. Possible values include: 'Succeeded', + * 'Updating', 'Deleting', 'Failed' + */ provisioningState?: string; } /** - * @class - * Initializes a new instance of the PacketCaptureQueryStatusResult class. - * @constructor * Status of packet capture session. - * - * @property {string} [name] The name of the packet capture resource. - * @property {string} [id] The ID of the packet capture resource. - * @property {date} [captureStartTime] The start time of the packet capture - * session. - * @property {string} [packetCaptureStatus] The status of the packet capture - * session. Possible values include: 'NotStarted', 'Running', 'Stopped', - * 'Error', 'Unknown' - * @property {string} [stopReason] The reason the current packet capture - * session was stopped. - * @property {array} [packetCaptureError] List of errors of packet capture - * session. - */ +*/ export interface PacketCaptureQueryStatusResult { + /** + * The name of the packet capture resource. + */ name?: string; + /** + * The ID of the packet capture resource. + */ id?: string; + /** + * The start time of the packet capture session. + */ captureStartTime?: Date; + /** + * The status of the packet capture session. Possible values include: 'NotStarted', 'Running', + * 'Stopped', 'Error', 'Unknown' + */ packetCaptureStatus?: string; + /** + * The reason the current packet capture session was stopped. + */ stopReason?: string; + /** + * List of errors of packet capture session. + */ packetCaptureError?: string[]; } /** - * @class - * Initializes a new instance of the TroubleshootingParameters class. - * @constructor * Parameters that define the resource to troubleshoot. - * - * @property {string} targetResourceId The target resource to troubleshoot. - * @property {string} storageId The ID for the storage account to save the - * troubleshoot result. - * @property {string} storagePath The path to the blob to save the troubleshoot - * result in. - */ +*/ export interface TroubleshootingParameters { + /** + * The target resource to troubleshoot. + */ targetResourceId: string; + /** + * The ID for the storage account to save the troubleshoot result. + */ storageId: string; + /** + * The path to the blob to save the troubleshoot result in. + */ storagePath: string; } /** - * @class - * Initializes a new instance of the QueryTroubleshootingParameters class. - * @constructor * Parameters that define the resource to query the troubleshooting result. - * - * @property {string} targetResourceId The target resource ID to query the - * troubleshooting result. - */ +*/ export interface QueryTroubleshootingParameters { + /** + * The target resource ID to query the troubleshooting result. + */ targetResourceId: string; } /** - * @class - * Initializes a new instance of the TroubleshootingRecommendedActions class. - * @constructor * Recommended actions based on discovered issues. - * - * @property {string} [actionId] ID of the recommended action. - * @property {string} [actionText] Description of recommended actions. - * @property {string} [actionUri] The uri linking to a documentation for the - * recommended troubleshooting actions. - * @property {string} [actionUriText] The information from the URI for the - * recommended troubleshooting actions. - */ +*/ export interface TroubleshootingRecommendedActions { + /** + * ID of the recommended action. + */ actionId?: string; + /** + * Description of recommended actions. + */ actionText?: string; + /** + * The uri linking to a documentation for the recommended troubleshooting actions. + */ actionUri?: string; + /** + * The information from the URI for the recommended troubleshooting actions. + */ actionUriText?: string; } /** - * @class - * Initializes a new instance of the TroubleshootingDetails class. - * @constructor * Information gained from troubleshooting of specified resource. - * - * @property {string} [id] The id of the get troubleshoot operation. - * @property {string} [reasonType] Reason type of failure. - * @property {string} [summary] A summary of troubleshooting. - * @property {string} [detail] Details on troubleshooting results. - * @property {array} [recommendedActions] List of recommended actions. - */ +*/ export interface TroubleshootingDetails { + /** + * The id of the get troubleshoot operation. + */ id?: string; + /** + * Reason type of failure. + */ reasonType?: string; + /** + * A summary of troubleshooting. + */ summary?: string; + /** + * Details on troubleshooting results. + */ detail?: string; + /** + * List of recommended actions. + */ recommendedActions?: TroubleshootingRecommendedActions[]; } /** - * @class - * Initializes a new instance of the TroubleshootingResult class. - * @constructor * Troubleshooting information gained from specified resource. - * - * @property {date} [startTime] The start time of the troubleshooting. - * @property {date} [endTime] The end time of the troubleshooting. - * @property {string} [code] The result code of the troubleshooting. - * @property {array} [results] Information from troubleshooting. - */ +*/ export interface TroubleshootingResult { + /** + * The start time of the troubleshooting. + */ startTime?: Date; + /** + * The end time of the troubleshooting. + */ endTime?: Date; + /** + * The result code of the troubleshooting. + */ code?: string; + /** + * Information from troubleshooting. + */ results?: TroubleshootingDetails[]; } /** - * @class - * Initializes a new instance of the RetentionPolicyParameters class. - * @constructor * Parameters that define the retention policy for flow log. - * - * @property {number} [days] Number of days to retain flow log records. Default - * value: 0 . - * @property {boolean} [enabled] Flag to enable/disable retention. Default - * value: false . - */ +*/ export interface RetentionPolicyParameters { + /** + * Number of days to retain flow log records. + */ days?: number; + /** + * Flag to enable/disable retention. + */ enabled?: boolean; } /** - * @class - * Initializes a new instance of the FlowLogFormatParameters class. - * @constructor - * Parameters that define the flow log format. - * - * @property {string} [type] The file type of flow log. Possible values - * include: 'JSON' - * @property {number} [version] The version (revision) of the flow log. Default - * value: 0 . - */ -export interface FlowLogFormatParameters { - type?: string; - version?: number; -} - -/** - * @class - * Initializes a new instance of the FlowLogStatusParameters class. - * @constructor - * Parameters that define a resource to query flow log and traffic analytics - * (optional) status. - * - * @property {string} targetResourceId The target resource where getting the - * flow log and traffic analytics (optional) status. - */ + * Parameters that define a resource to query flow log and traffic analytics (optional) status. +*/ export interface FlowLogStatusParameters { + /** + * The target resource where getting the flow log and traffic analytics (optional) status. + */ targetResourceId: string; } /** - * @class - * Initializes a new instance of the TrafficAnalyticsConfigurationProperties class. - * @constructor * Parameters that define the configuration of traffic analytics. - * - * @property {boolean} enabled Flag to enable/disable traffic analytics. - * @property {string} workspaceId The resource guid of the attached workspace - * @property {string} workspaceRegion The location of the attached workspace - * @property {string} workspaceResourceId Resource Id of the attached workspace - * @property {number} [trafficAnalyticsInterval] The interval in minutes which - * would decide how frequently TA service should do flow analytics - */ +*/ export interface TrafficAnalyticsConfigurationProperties { + /** + * Flag to enable/disable traffic analytics. + */ enabled: boolean; + /** + * The resource guid of the attached workspace + */ workspaceId: string; + /** + * The location of the attached workspace + */ workspaceRegion: string; + /** + * Resource Id of the attached workspace + */ workspaceResourceId: string; - trafficAnalyticsInterval?: number; } /** - * @class - * Initializes a new instance of the TrafficAnalyticsProperties class. - * @constructor * Parameters that define the configuration of traffic analytics. - * - * @property {object} networkWatcherFlowAnalyticsConfiguration - * @property {boolean} [networkWatcherFlowAnalyticsConfiguration.enabled] Flag - * to enable/disable traffic analytics. - * @property {string} [networkWatcherFlowAnalyticsConfiguration.workspaceId] - * The resource guid of the attached workspace - * @property {string} - * [networkWatcherFlowAnalyticsConfiguration.workspaceRegion] The location of - * the attached workspace - * @property {string} - * [networkWatcherFlowAnalyticsConfiguration.workspaceResourceId] Resource Id - * of the attached workspace - * @property {number} - * [networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval] The - * interval in minutes which would decide how frequently TA service should do - * flow analytics - */ +*/ export interface TrafficAnalyticsProperties { networkWatcherFlowAnalyticsConfiguration: TrafficAnalyticsConfigurationProperties; } /** - * @class - * Initializes a new instance of the FlowLogInformation class. - * @constructor - * Information on the configuration of flow log and traffic analytics - * (optional) . - * - * @property {string} targetResourceId The ID of the resource to configure for - * flow log and traffic analytics (optional) . - * @property {string} storageId ID of the storage account which is used to - * store the flow log. - * @property {boolean} enabled Flag to enable/disable flow logging. - * @property {object} [retentionPolicy] - * @property {number} [retentionPolicy.days] Number of days to retain flow log - * records. - * @property {boolean} [retentionPolicy.enabled] Flag to enable/disable - * retention. - * @property {object} [format] - * @property {string} [format.type] The file type of flow log. Possible values - * include: 'JSON' - * @property {number} [format.version] The version (revision) of the flow log. - * @property {object} [flowAnalyticsConfiguration] - * @property {object} - * [flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration] - * @property {boolean} - * [flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled] - * Flag to enable/disable traffic analytics. - * @property {string} - * [flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceId] - * The resource guid of the attached workspace - * @property {string} - * [flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceRegion] - * The location of the attached workspace - * @property {string} - * [flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId] - * Resource Id of the attached workspace - * @property {number} - * [flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval] - * The interval in minutes which would decide how frequently TA service should - * do flow analytics - */ + * Information on the configuration of flow log and traffic analytics (optional) . +*/ export interface FlowLogInformation { + /** + * The ID of the resource to configure for flow log and traffic analytics (optional) . + */ targetResourceId: string; + /** + * ID of the storage account which is used to store the flow log. + */ storageId: string; + /** + * Flag to enable/disable flow logging. + */ enabled: boolean; retentionPolicy?: RetentionPolicyParameters; - format?: FlowLogFormatParameters; flowAnalyticsConfiguration?: TrafficAnalyticsProperties; } /** - * @class - * Initializes a new instance of the ConnectivitySource class. - * @constructor * Parameters that define the source of the connection. - * - * @property {string} resourceId The ID of the resource from which a - * connectivity check will be initiated. - * @property {number} [port] The source port from which a connectivity check - * will be performed. - */ +*/ export interface ConnectivitySource { + /** + * The ID of the resource from which a connectivity check will be initiated. + */ resourceId: string; + /** + * The source port from which a connectivity check will be performed. + */ port?: number; } /** - * @class - * Initializes a new instance of the ConnectivityDestination class. - * @constructor * Parameters that define destination of connection. - * - * @property {string} [resourceId] The ID of the resource to which a connection - * attempt will be made. - * @property {string} [address] The IP address or URI the resource to which a - * connection attempt will be made. - * @property {number} [port] Port on which check connectivity will be - * performed. - */ +*/ export interface ConnectivityDestination { + /** + * The ID of the resource to which a connection attempt will be made. + */ resourceId?: string; + /** + * The IP address or URI the resource to which a connection attempt will be made. + */ address?: string; + /** + * Port on which check connectivity will be performed. + */ port?: number; } /** - * @class - * Initializes a new instance of the HTTPHeader class. - * @constructor * Describes the HTTP header. - * - * @property {string} [name] The name in HTTP header. - * @property {string} [value] The value in HTTP header. - */ +*/ export interface HTTPHeader { + /** + * The name in HTTP header. + */ name?: string; + /** + * The value in HTTP header. + */ value?: string; } /** - * @class - * Initializes a new instance of the HTTPConfiguration class. - * @constructor * HTTP configuration of the connectivity check. - * - * @property {string} [method] HTTP method. Possible values include: 'Get' - * @property {array} [headers] List of HTTP headers. - * @property {array} [validStatusCodes] Valid status codes. - */ +*/ export interface HTTPConfiguration { + /** + * HTTP method. Possible values include: 'Get' + */ method?: string; + /** + * List of HTTP headers. + */ headers?: HTTPHeader[]; + /** + * Valid status codes. + */ validStatusCodes?: number[]; } /** - * @class - * Initializes a new instance of the ProtocolConfiguration class. - * @constructor * Configuration of the protocol. - * - * @property {object} [hTTPConfiguration] - * @property {string} [hTTPConfiguration.method] HTTP method. Possible values - * include: 'Get' - * @property {array} [hTTPConfiguration.headers] List of HTTP headers. - * @property {array} [hTTPConfiguration.validStatusCodes] Valid status codes. - */ +*/ export interface ProtocolConfiguration { hTTPConfiguration?: HTTPConfiguration; } /** - * @class - * Initializes a new instance of the ConnectivityParameters class. - * @constructor * Parameters that determine how the connectivity check will be performed. - * - * @property {object} source - * @property {string} [source.resourceId] The ID of the resource from which a - * connectivity check will be initiated. - * @property {number} [source.port] The source port from which a connectivity - * check will be performed. - * @property {object} destination - * @property {string} [destination.resourceId] The ID of the resource to which - * a connection attempt will be made. - * @property {string} [destination.address] The IP address or URI the resource - * to which a connection attempt will be made. - * @property {number} [destination.port] Port on which check connectivity will - * be performed. - * @property {string} [protocol] Network protocol. Possible values include: - * 'Tcp', 'Http', 'Https', 'Icmp' - * @property {object} [protocolConfiguration] - * @property {object} [protocolConfiguration.hTTPConfiguration] - * @property {string} [protocolConfiguration.hTTPConfiguration.method] HTTP - * method. Possible values include: 'Get' - * @property {array} [protocolConfiguration.hTTPConfiguration.headers] List of - * HTTP headers. - * @property {array} [protocolConfiguration.hTTPConfiguration.validStatusCodes] - * Valid status codes. - */ +*/ export interface ConnectivityParameters { source: ConnectivitySource; destination: ConnectivityDestination; + /** + * Network protocol. Possible values include: 'Tcp', 'Http', 'Https', 'Icmp' + */ protocol?: string; protocolConfiguration?: ProtocolConfiguration; } /** - * @class - * Initializes a new instance of the ConnectivityIssue class. - * @constructor - * Information about an issue encountered in the process of checking for - * connectivity. - * - * @property {string} [origin] The origin of the issue. Possible values - * include: 'Local', 'Inbound', 'Outbound' - * @property {string} [severity] The severity of the issue. Possible values - * include: 'Error', 'Warning' - * @property {string} [type] The type of issue. Possible values include: - * 'Unknown', 'AgentStopped', 'GuestFirewall', 'DnsResolution', 'SocketBind', - * 'NetworkSecurityRule', 'UserDefinedRoute', 'PortThrottled', 'Platform' - * @property {array} [context] Provides additional context on the issue. - */ + * Information about an issue encountered in the process of checking for connectivity. +*/ export interface ConnectivityIssue { + /** + * The origin of the issue. Possible values include: 'Local', 'Inbound', 'Outbound' + */ readonly origin?: string; + /** + * The severity of the issue. Possible values include: 'Error', 'Warning' + */ readonly severity?: string; + /** + * The type of issue. Possible values include: 'Unknown', 'AgentStopped', 'GuestFirewall', + * 'DnsResolution', 'SocketBind', 'NetworkSecurityRule', 'UserDefinedRoute', 'PortThrottled', + * 'Platform' + */ readonly type?: string; + /** + * Provides additional context on the issue. + */ readonly context?: { [propertyName: string]: string }[]; } /** - * @class - * Initializes a new instance of the ConnectivityHop class. - * @constructor * Information about a hop between the source and the destination. - * - * @property {string} [type] The type of the hop. - * @property {string} [id] The ID of the hop. - * @property {string} [address] The IP address of the hop. - * @property {string} [resourceId] The ID of the resource corresponding to this - * hop. - * @property {array} [nextHopIds] List of next hop identifiers. - * @property {array} [issues] List of issues. - */ +*/ export interface ConnectivityHop { + /** + * The type of the hop. + */ readonly type?: string; + /** + * The ID of the hop. + */ readonly id?: string; + /** + * The IP address of the hop. + */ readonly address?: string; + /** + * The ID of the resource corresponding to this hop. + */ readonly resourceId?: string; + /** + * List of next hop identifiers. + */ readonly nextHopIds?: string[]; + /** + * List of issues. + */ readonly issues?: ConnectivityIssue[]; } /** - * @class - * Initializes a new instance of the ConnectivityInformation class. - * @constructor * Information on the connectivity status. - * - * @property {array} [hops] List of hops between the source and the - * destination. - * @property {string} [connectionStatus] The connection status. Possible values - * include: 'Unknown', 'Connected', 'Disconnected', 'Degraded' - * @property {number} [avgLatencyInMs] Average latency in milliseconds. - * @property {number} [minLatencyInMs] Minimum latency in milliseconds. - * @property {number} [maxLatencyInMs] Maximum latency in milliseconds. - * @property {number} [probesSent] Total number of probes sent. - * @property {number} [probesFailed] Number of failed probes. - */ +*/ export interface ConnectivityInformation { + /** + * List of hops between the source and the destination. + */ readonly hops?: ConnectivityHop[]; + /** + * The connection status. Possible values include: 'Unknown', 'Connected', 'Disconnected', + * 'Degraded' + */ readonly connectionStatus?: string; + /** + * Average latency in milliseconds. + */ readonly avgLatencyInMs?: number; + /** + * Minimum latency in milliseconds. + */ readonly minLatencyInMs?: number; + /** + * Maximum latency in milliseconds. + */ readonly maxLatencyInMs?: number; + /** + * Total number of probes sent. + */ readonly probesSent?: number; + /** + * Number of failed probes. + */ readonly probesFailed?: number; } /** - * @class - * Initializes a new instance of the AzureReachabilityReportLocation class. - * @constructor * Parameters that define a geographic location. - * - * @property {string} country The name of the country. - * @property {string} [state] The name of the state. - * @property {string} [city] The name of the city or town. - */ +*/ export interface AzureReachabilityReportLocation { + /** + * The name of the country. + */ country: string; + /** + * The name of the state. + */ state?: string; + /** + * The name of the city or town. + */ city?: string; } /** - * @class - * Initializes a new instance of the AzureReachabilityReportParameters class. - * @constructor * Geographic and time constraints for Azure reachability report. - * - * @property {object} providerLocation - * @property {string} [providerLocation.country] The name of the country. - * @property {string} [providerLocation.state] The name of the state. - * @property {string} [providerLocation.city] The name of the city or town. - * @property {array} [providers] List of Internet service providers. - * @property {array} [azureLocations] Optional Azure regions to scope the query - * to. - * @property {date} startTime The start time for the Azure reachability report. - * @property {date} endTime The end time for the Azure reachability report. - */ +*/ export interface AzureReachabilityReportParameters { providerLocation: AzureReachabilityReportLocation; + /** + * List of Internet service providers. + */ providers?: string[]; + /** + * Optional Azure regions to scope the query to. + */ azureLocations?: string[]; + /** + * The start time for the Azure reachability report. + */ startTime: Date; + /** + * The end time for the Azure reachability report. + */ endTime: Date; } /** - * @class - * Initializes a new instance of the AzureReachabilityReportLatencyInfo class. - * @constructor - * Details on latency for a time series. - * - * @property {date} [timeStamp] The time stamp. - * @property {number} [score] The relative latency score between 1 and 100, - * higher values indicating a faster connection. - */ + * Details on latency for a time series. +*/ export interface AzureReachabilityReportLatencyInfo { + /** + * The time stamp. + */ timeStamp?: Date; + /** + * The relative latency score between 1 and 100, higher values indicating a faster connection. + */ score?: number; } /** - * @class - * Initializes a new instance of the AzureReachabilityReportItem class. - * @constructor * Azure reachability report details for a given provider location. - * - * @property {string} [provider] The Internet service provider. - * @property {string} [azureLocation] The Azure region. - * @property {array} [latencies] List of latency details for each of the time - * series. - */ +*/ export interface AzureReachabilityReportItem { + /** + * The Internet service provider. + */ provider?: string; + /** + * The Azure region. + */ azureLocation?: string; + /** + * List of latency details for each of the time series. + */ latencies?: AzureReachabilityReportLatencyInfo[]; } /** - * @class - * Initializes a new instance of the AzureReachabilityReport class. - * @constructor * Azure reachability report details. - * - * @property {string} aggregationLevel The aggregation level of Azure - * reachability report. Can be Country, State or City. - * @property {object} providerLocation - * @property {string} [providerLocation.country] The name of the country. - * @property {string} [providerLocation.state] The name of the state. - * @property {string} [providerLocation.city] The name of the city or town. - * @property {array} reachabilityReport List of Azure reachability report - * items. - */ +*/ export interface AzureReachabilityReport { + /** + * The aggregation level of Azure reachability report. Can be Country, State or City. + */ aggregationLevel: string; providerLocation: AzureReachabilityReportLocation; + /** + * List of Azure reachability report items. + */ reachabilityReport: AzureReachabilityReportItem[]; } /** - * @class - * Initializes a new instance of the AvailableProvidersListParameters class. - * @constructor * Constraints that determine the list of available Internet service providers. - * - * @property {array} [azureLocations] A list of Azure regions. - * @property {string} [country] The country for available providers list. - * @property {string} [state] The state for available providers list. - * @property {string} [city] The city or town for available providers list. - */ +*/ export interface AvailableProvidersListParameters { + /** + * A list of Azure regions. + */ azureLocations?: string[]; + /** + * The country for available providers list. + */ country?: string; + /** + * The state for available providers list. + */ state?: string; + /** + * The city or town for available providers list. + */ city?: string; } /** - * @class - * Initializes a new instance of the AvailableProvidersListCity class. - * @constructor * City or town details. - * - * @property {string} [cityName] The city or town name. - * @property {array} [providers] A list of Internet service providers. - */ +*/ export interface AvailableProvidersListCity { + /** + * The city or town name. + */ cityName?: string; + /** + * A list of Internet service providers. + */ providers?: string[]; } /** - * @class - * Initializes a new instance of the AvailableProvidersListState class. - * @constructor * State details. - * - * @property {string} [stateName] The state name. - * @property {array} [providers] A list of Internet service providers. - * @property {array} [cities] List of available cities or towns in the state. - */ +*/ export interface AvailableProvidersListState { + /** + * The state name. + */ stateName?: string; + /** + * A list of Internet service providers. + */ providers?: string[]; + /** + * List of available cities or towns in the state. + */ cities?: AvailableProvidersListCity[]; } /** - * @class - * Initializes a new instance of the AvailableProvidersListCountry class. - * @constructor * Country details. - * - * @property {string} [countryName] The country name. - * @property {array} [providers] A list of Internet service providers. - * @property {array} [states] List of available states in the country. - */ +*/ export interface AvailableProvidersListCountry { + /** + * The country name. + */ countryName?: string; + /** + * A list of Internet service providers. + */ providers?: string[]; + /** + * List of available states in the country. + */ states?: AvailableProvidersListState[]; } /** - * @class - * Initializes a new instance of the AvailableProvidersList class. - * @constructor * List of available countries with details. - * - * @property {array} countries List of available countries. - */ +*/ export interface AvailableProvidersList { + /** + * List of available countries. + */ countries: AvailableProvidersListCountry[]; } /** - * @class - * Initializes a new instance of the ConnectionMonitorSource class. - * @constructor * Describes the source of connection monitor. - * - * @property {string} resourceId The ID of the resource used as the source by - * connection monitor. - * @property {number} [port] The source port used by connection monitor. - */ +*/ export interface ConnectionMonitorSource { + /** + * The ID of the resource used as the source by connection monitor. + */ resourceId: string; + /** + * The source port used by connection monitor. + */ port?: number; } /** - * @class - * Initializes a new instance of the ConnectionMonitorDestination class. - * @constructor * Describes the destination of connection monitor. - * - * @property {string} [resourceId] The ID of the resource used as the - * destination by connection monitor. - * @property {string} [address] Address of the connection monitor destination - * (IP or domain name). - * @property {number} [port] The destination port used by connection monitor. - */ +*/ export interface ConnectionMonitorDestination { + /** + * The ID of the resource used as the destination by connection monitor. + */ resourceId?: string; + /** + * Address of the connection monitor destination (IP or domain name). + */ address?: string; + /** + * The destination port used by connection monitor. + */ port?: number; } /** - * @class - * Initializes a new instance of the ConnectionMonitorParameters class. - * @constructor * Parameters that define the operation to create a connection monitor. - * - * @property {object} source - * @property {string} [source.resourceId] The ID of the resource used as the - * source by connection monitor. - * @property {number} [source.port] The source port used by connection monitor. - * @property {object} destination - * @property {string} [destination.resourceId] The ID of the resource used as - * the destination by connection monitor. - * @property {string} [destination.address] Address of the connection monitor - * destination (IP or domain name). - * @property {number} [destination.port] The destination port used by - * connection monitor. - * @property {boolean} [autoStart] Determines if the connection monitor will - * start automatically once created. Default value: true . - * @property {number} [monitoringIntervalInSeconds] Monitoring interval in - * seconds. Default value: 60 . - */ +*/ export interface ConnectionMonitorParameters { source: ConnectionMonitorSource; destination: ConnectionMonitorDestination; + /** + * Determines if the connection monitor will start automatically once created. + */ autoStart?: boolean; + /** + * Monitoring interval in seconds. + */ monitoringIntervalInSeconds?: number; } /** - * @class - * Initializes a new instance of the ConnectionMonitor class. - * @constructor * Parameters that define the operation to create a connection monitor. - * - * @property {string} [location] Connection monitor location. - * @property {object} [tags] Connection monitor tags. - * @property {object} source - * @property {string} [source.resourceId] The ID of the resource used as the - * source by connection monitor. - * @property {number} [source.port] The source port used by connection monitor. - * @property {object} destination - * @property {string} [destination.resourceId] The ID of the resource used as - * the destination by connection monitor. - * @property {string} [destination.address] Address of the connection monitor - * destination (IP or domain name). - * @property {number} [destination.port] The destination port used by - * connection monitor. - * @property {boolean} [autoStart] Determines if the connection monitor will - * start automatically once created. Default value: true . - * @property {number} [monitoringIntervalInSeconds] Monitoring interval in - * seconds. Default value: 60 . - */ +*/ export interface ConnectionMonitor { + /** + * Connection monitor location. + */ location?: string; + /** + * Connection monitor tags. + */ tags?: { [propertyName: string]: string }; source: ConnectionMonitorSource; destination: ConnectionMonitorDestination; + /** + * Determines if the connection monitor will start automatically once created. + */ autoStart?: boolean; + /** + * Monitoring interval in seconds. + */ monitoringIntervalInSeconds?: number; } /** - * @class - * Initializes a new instance of the ConnectionMonitorResult class. - * @constructor * Information about the connection monitor. - * - * @property {string} [name] Name of the connection monitor. - * @property {string} [id] ID of the connection monitor. - * @property {string} [etag] Default value: 'A unique read-only string that - * changes whenever the resource is updated.' . - * @property {string} [type] Connection monitor type. - * @property {string} [location] Connection monitor location. - * @property {object} [tags] Connection monitor tags. - * @property {object} source - * @property {string} [source.resourceId] The ID of the resource used as the - * source by connection monitor. - * @property {number} [source.port] The source port used by connection monitor. - * @property {object} destination - * @property {string} [destination.resourceId] The ID of the resource used as - * the destination by connection monitor. - * @property {string} [destination.address] Address of the connection monitor - * destination (IP or domain name). - * @property {number} [destination.port] The destination port used by - * connection monitor. - * @property {boolean} [autoStart] Determines if the connection monitor will - * start automatically once created. Default value: true . - * @property {number} [monitoringIntervalInSeconds] Monitoring interval in - * seconds. Default value: 60 . - * @property {string} [provisioningState] The provisioning state of the - * connection monitor. Possible values include: 'Succeeded', 'Updating', - * 'Deleting', 'Failed' - * @property {date} [startTime] The date and time when the connection monitor - * was started. - * @property {string} [monitoringStatus] The monitoring status of the - * connection monitor. - */ +*/ export interface ConnectionMonitorResult extends BaseResource { + /** + * Name of the connection monitor. + */ readonly name?: string; + /** + * ID of the connection monitor. + */ readonly id?: string; etag?: string; + /** + * Connection monitor type. + */ readonly type?: string; + /** + * Connection monitor location. + */ location?: string; + /** + * Connection monitor tags. + */ tags?: { [propertyName: string]: string }; source: ConnectionMonitorSource; destination: ConnectionMonitorDestination; + /** + * Determines if the connection monitor will start automatically once created. + */ autoStart?: boolean; + /** + * Monitoring interval in seconds. + */ monitoringIntervalInSeconds?: number; + /** + * The provisioning state of the connection monitor. Possible values include: 'Succeeded', + * 'Updating', 'Deleting', 'Failed' + */ provisioningState?: string; + /** + * The date and time when the connection monitor was started. + */ startTime?: Date; + /** + * The monitoring status of the connection monitor. + */ monitoringStatus?: string; } /** - * @class - * Initializes a new instance of the ConnectionStateSnapshot class. - * @constructor * Connection state snapshot. - * - * @property {string} [connectionState] The connection state. Possible values - * include: 'Reachable', 'Unreachable', 'Unknown' - * @property {date} [startTime] The start time of the connection snapshot. - * @property {date} [endTime] The end time of the connection snapshot. - * @property {string} [evaluationState] Connectivity analysis evaluation state. - * Possible values include: 'NotStarted', 'InProgress', 'Completed' - * @property {number} [avgLatencyInMs] Average latency in ms. - * @property {number} [minLatencyInMs] Minimum latency in ms. - * @property {number} [maxLatencyInMs] Maximum latency in ms. - * @property {number} [probesSent] The number of sent probes. - * @property {number} [probesFailed] The number of failed probes. - * @property {array} [hops] List of hops between the source and the - * destination. - */ +*/ export interface ConnectionStateSnapshot { + /** + * The connection state. Possible values include: 'Reachable', 'Unreachable', 'Unknown' + */ connectionState?: string; + /** + * The start time of the connection snapshot. + */ startTime?: Date; + /** + * The end time of the connection snapshot. + */ endTime?: Date; + /** + * Connectivity analysis evaluation state. Possible values include: 'NotStarted', 'InProgress', + * 'Completed' + */ evaluationState?: string; - avgLatencyInMs?: number; - minLatencyInMs?: number; - maxLatencyInMs?: number; - probesSent?: number; - probesFailed?: number; + /** + * List of hops between the source and the destination. + */ readonly hops?: ConnectivityHop[]; } /** - * @class - * Initializes a new instance of the ConnectionMonitorQueryResult class. - * @constructor * List of connection states snaphots. - * - * @property {string} [sourceStatus] Status of connection monitor source. - * Possible values include: 'Uknown', 'Active', 'Inactive' - * @property {array} [states] Information about connection states. - */ +*/ export interface ConnectionMonitorQueryResult { + /** + * Status of connection monitor source. Possible values include: 'Uknown', 'Active', 'Inactive' + */ sourceStatus?: string; + /** + * Information about connection states. + */ states?: ConnectionStateSnapshot[]; } /** - * @class - * Initializes a new instance of the NetworkConfigurationDiagnosticProfile class. - * @constructor - * Parameters to compare with network configuration. - * - * @property {string} direction The direction of the traffic. Accepted values - * are 'Inbound' and 'Outbound'. Possible values include: 'Inbound', 'Outbound' - * @property {string} protocol Protocol to be verified on. Accepted values are - * '*', TCP, UDP. - * @property {string} source Traffic source. Accepted values are '*', IP - * Address/CIDR, Service Tag. - * @property {string} destination Traffic destination. Accepted values are: - * '*', IP Address/CIDR, Service Tag. - * @property {string} destinationPort Traffice destination port. Accepted - * values are '*', port (for example, 3389) and port range (for example, - * 80-100). - */ -export interface NetworkConfigurationDiagnosticProfile { - direction: string; - protocol: string; - source: string; - destination: string; - destinationPort: string; -} - -/** - * @class - * Initializes a new instance of the NetworkConfigurationDiagnosticParameters class. - * @constructor - * Parameters to get network configuration diagnostic. - * - * @property {string} targetResourceId The ID of the target resource to perform - * network configuration diagnostic. Valid options are VM, NetworkInterface, - * VMSS/NetworkInterface and Application Gateway. - * @property {string} [verbosityLevel] Verbosity level. Accepted values are - * 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', 'Minimum', - * 'Full' - * @property {array} profiles List of network configuration diagnostic - * profiles. - */ -export interface NetworkConfigurationDiagnosticParameters { - targetResourceId: string; - verbosityLevel?: string; - profiles: NetworkConfigurationDiagnosticProfile[]; -} - -/** - * @class - * Initializes a new instance of the MatchedRule class. - * @constructor - * Matched rule. - * - * @property {string} [ruleName] Name of the matched network security rule. - * @property {string} [action] The network traffic is allowed or denied. - * Possible values are 'Allow' and 'Deny'. - */ -export interface MatchedRule { - ruleName?: string; - action?: string; -} - -/** - * @class - * Initializes a new instance of the NetworkSecurityRulesEvaluationResult class. - * @constructor - * Network security rules evaluation result. - * - * @property {string} [name] Name of the network security rule. - * @property {boolean} [protocolMatched] Value indicating whether protocol is - * matched. - * @property {boolean} [sourceMatched] Value indicating whether source is - * matched. - * @property {boolean} [sourcePortMatched] Value indicating whether source port - * is matched. - * @property {boolean} [destinationMatched] Value indicating whether - * destination is matched. - * @property {boolean} [destinationPortMatched] Value indicating whether - * destination port is matched. - */ -export interface NetworkSecurityRulesEvaluationResult { - name?: string; - protocolMatched?: boolean; - sourceMatched?: boolean; - sourcePortMatched?: boolean; - destinationMatched?: boolean; - destinationPortMatched?: boolean; -} - -/** - * @class - * Initializes a new instance of the EvaluatedNetworkSecurityGroup class. - * @constructor - * Results of network security group evaluation. - * - * @property {string} [networkSecurityGroupId] Network security group ID. - * @property {string} [appliedTo] Resource ID of nic or subnet to which network - * security group is applied. - * @property {object} [matchedRule] - * @property {string} [matchedRule.ruleName] Name of the matched network - * security rule. - * @property {string} [matchedRule.action] The network traffic is allowed or - * denied. Possible values are 'Allow' and 'Deny'. - * @property {array} [rulesEvaluationResult] List of network security rules - * evaluation results. - */ -export interface EvaluatedNetworkSecurityGroup { - networkSecurityGroupId?: string; - appliedTo?: string; - matchedRule?: MatchedRule; - readonly rulesEvaluationResult?: NetworkSecurityRulesEvaluationResult[]; -} - -/** - * @class - * Initializes a new instance of the NetworkSecurityGroupResult class. - * @constructor - * Network configuration diagnostic result corresponded provided traffic query. - * - * @property {string} [securityRuleAccessResult] The network traffic is allowed - * or denied. Possible values are 'Allow' and 'Deny'. Possible values include: - * 'Allow', 'Deny' - * @property {array} [evaluatedNetworkSecurityGroups] List of results network - * security groups diagnostic. - */ -export interface NetworkSecurityGroupResult { - securityRuleAccessResult?: string; - readonly evaluatedNetworkSecurityGroups?: EvaluatedNetworkSecurityGroup[]; -} - -/** - * @class - * Initializes a new instance of the NetworkConfigurationDiagnosticResult class. - * @constructor - * Network configuration diagnostic result corresponded to provided traffic - * query. - * - * @property {object} [profile] - * @property {string} [profile.direction] The direction of the traffic. - * Accepted values are 'Inbound' and 'Outbound'. Possible values include: - * 'Inbound', 'Outbound' - * @property {string} [profile.protocol] Protocol to be verified on. Accepted - * values are '*', TCP, UDP. - * @property {string} [profile.source] Traffic source. Accepted values are '*', - * IP Address/CIDR, Service Tag. - * @property {string} [profile.destination] Traffic destination. Accepted - * values are: '*', IP Address/CIDR, Service Tag. - * @property {string} [profile.destinationPort] Traffice destination port. - * Accepted values are '*', port (for example, 3389) and port range (for - * example, 80-100). - * @property {object} [networkSecurityGroupResult] - * @property {string} [networkSecurityGroupResult.securityRuleAccessResult] The - * network traffic is allowed or denied. Possible values are 'Allow' and - * 'Deny'. Possible values include: 'Allow', 'Deny' - * @property {array} - * [networkSecurityGroupResult.evaluatedNetworkSecurityGroups] List of results - * network security groups diagnostic. - */ -export interface NetworkConfigurationDiagnosticResult { - profile?: NetworkConfigurationDiagnosticProfile; - networkSecurityGroupResult?: NetworkSecurityGroupResult; -} - -/** - * @class - * Initializes a new instance of the NetworkConfigurationDiagnosticResponse class. - * @constructor - * Results of network configuration diagnostic on the target resource. - * - * @property {array} [results] List of network configuration diagnostic - * results. - */ -export interface NetworkConfigurationDiagnosticResponse { - readonly results?: NetworkConfigurationDiagnosticResult[]; -} - -/** - * @class - * Initializes a new instance of the OperationDisplay class. - * @constructor * Display metadata associated with the operation. - * - * @property {string} [provider] Service provider: Microsoft Network. - * @property {string} [resource] Resource on which the operation is performed. - * @property {string} [operation] Type of the operation: get, read, delete, - * etc. - * @property {string} [description] Description of the operation. - */ +*/ export interface OperationDisplay { + /** + * Service provider: Microsoft Network. + */ provider?: string; + /** + * Resource on which the operation is performed. + */ resource?: string; + /** + * Type of the operation: get, read, delete, etc. + */ operation?: string; + /** + * Description of the operation. + */ description?: string; } /** - * @class - * Initializes a new instance of the Availability class. - * @constructor * Availability of the metric. - * - * @property {string} [timeGrain] The time grain of the availability. - * @property {string} [retention] The retention of the availability. - * @property {string} [blobDuration] Duration of the availability blob. - */ +*/ export interface Availability { + /** + * The time grain of the availability. + */ timeGrain?: string; + /** + * The retention of the availability. + */ retention?: string; + /** + * Duration of the availability blob. + */ blobDuration?: string; } /** - * @class - * Initializes a new instance of the Dimension class. - * @constructor * Dimension of the metric. - * - * @property {string} [name] The name of the dimension. - * @property {string} [displayName] The display name of the dimension. - * @property {string} [internalName] The internal name of the dimension. - */ +*/ export interface Dimension { + /** + * The name of the dimension. + */ name?: string; + /** + * The display name of the dimension. + */ displayName?: string; + /** + * The internal name of the dimension. + */ internalName?: string; } /** - * @class - * Initializes a new instance of the MetricSpecification class. - * @constructor * Description of metrics specification. - * - * @property {string} [name] The name of the metric. - * @property {string} [displayName] The display name of the metric. - * @property {string} [displayDescription] The description of the metric. - * @property {string} [unit] Units the metric to be displayed in. - * @property {string} [aggregationType] The aggregation type. - * @property {array} [availabilities] List of availability. - * @property {boolean} [enableRegionalMdmAccount] Whether regional MDM account - * enabled. - * @property {boolean} [fillGapWithZero] Whether gaps would be filled with - * zeros. - * @property {string} [metricFilterPattern] Pattern for the filter of the - * metric. - * @property {array} [dimensions] List of dimensions. - * @property {boolean} [isInternal] Whether the metric is internal. - * @property {string} [sourceMdmAccount] The source MDM account. - * @property {string} [sourceMdmNamespace] The source MDM namespace. - * @property {string} [resourceIdDimensionNameOverride] The resource Id - * dimension name override. - */ +*/ export interface MetricSpecification { + /** + * The name of the metric. + */ name?: string; + /** + * The display name of the metric. + */ displayName?: string; + /** + * The description of the metric. + */ displayDescription?: string; + /** + * Units the metric to be displayed in. + */ unit?: string; + /** + * The aggregation type. + */ aggregationType?: string; + /** + * List of availability. + */ availabilities?: Availability[]; + /** + * Whether regional MDM account enabled. + */ enableRegionalMdmAccount?: boolean; + /** + * Whether gaps would be filled with zeros. + */ fillGapWithZero?: boolean; + /** + * Pattern for the filter of the metric. + */ metricFilterPattern?: string; + /** + * List of dimensions. + */ dimensions?: Dimension[]; + /** + * Whether the metric is internal. + */ isInternal?: boolean; + /** + * The source MDM account. + */ sourceMdmAccount?: string; + /** + * The source MDM namespace. + */ sourceMdmNamespace?: string; + /** + * The resource Id dimension name override. + */ resourceIdDimensionNameOverride?: string; } /** - * @class - * Initializes a new instance of the LogSpecification class. - * @constructor * Description of logging specification. - * - * @property {string} [name] The name of the specification. - * @property {string} [displayName] The display name of the specification. - * @property {string} [blobDuration] Duration of the blob. - */ +*/ export interface LogSpecification { + /** + * The name of the specification. + */ name?: string; + /** + * The display name of the specification. + */ displayName?: string; + /** + * Duration of the blob. + */ blobDuration?: string; } /** - * @class - * Initializes a new instance of the OperationPropertiesFormatServiceSpecification class. - * @constructor * Specification of the service. - * - * @property {array} [metricSpecifications] Operation service specification. - * @property {array} [logSpecifications] Operation log specification. - */ +*/ export interface OperationPropertiesFormatServiceSpecification { + /** + * Operation service specification. + */ metricSpecifications?: MetricSpecification[]; + /** + * Operation log specification. + */ logSpecifications?: LogSpecification[]; } /** - * @class - * Initializes a new instance of the Operation class. - * @constructor * Network REST API operation definition. - * - * @property {string} [name] Operation name: {provider}/{resource}/{operation} - * @property {object} [display] Display metadata associated with the operation. - * @property {string} [display.provider] Service provider: Microsoft Network. - * @property {string} [display.resource] Resource on which the operation is - * performed. - * @property {string} [display.operation] Type of the operation: get, read, - * delete, etc. - * @property {string} [display.description] Description of the operation. - * @property {string} [origin] Origin of the operation. - * @property {object} [serviceSpecification] Specification of the service. - * @property {array} [serviceSpecification.metricSpecifications] Operation - * service specification. - * @property {array} [serviceSpecification.logSpecifications] Operation log - * specification. - */ +*/ export interface Operation { + /** + * Operation name: {provider}/{resource}/{operation} + */ name?: string; + /** + * Display metadata associated with the operation. + */ display?: OperationDisplay; + /** + * Origin of the operation. + */ origin?: string; + /** + * Specification of the service. + */ serviceSpecification?: OperationPropertiesFormatServiceSpecification; } /** - * @class - * Initializes a new instance of the PublicIPPrefixSku class. - * @constructor - * SKU of a public IP prefix - * - * @property {string} [name] Name of a public IP prefix SKU. Possible values - * include: 'Standard' - */ -export interface PublicIPPrefixSku { - name?: string; -} - -/** - * @class - * Initializes a new instance of the ReferencedPublicIpAddress class. - * @constructor - * @property {string} [id] The PublicIPAddress Reference - */ -export interface ReferencedPublicIpAddress { - id?: string; -} - -/** - * @class - * Initializes a new instance of the PublicIPPrefix class. - * @constructor - * Public IP prefix resource. - * - * @property {object} [sku] The public IP prefix SKU. - * @property {string} [sku.name] Name of a public IP prefix SKU. Possible - * values include: 'Standard' - * @property {string} [publicIPAddressVersion] The public IP address version. - * Possible values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', - * 'IPv6' - * @property {array} [ipTags] The list of tags associated with the public IP - * prefix. - * @property {number} [prefixLength] The Length of the Public IP Prefix. - * @property {string} [ipPrefix] The allocated Prefix - * @property {array} [publicIPAddresses] The list of all referenced - * PublicIPAddresses - * @property {string} [resourceGuid] The resource GUID property of the public - * IP prefix resource. - * @property {string} [provisioningState] The provisioning state of the Public - * IP prefix resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {array} [zones] A list of availability zones denoting the IP - * allocated for the resource needs to come from. - */ -export interface PublicIPPrefix extends Resource { - sku?: PublicIPPrefixSku; - publicIPAddressVersion?: string; - ipTags?: IpTag[]; - prefixLength?: number; - ipPrefix?: string; - publicIPAddresses?: ReferencedPublicIpAddress[]; - resourceGuid?: string; - provisioningState?: string; - etag?: string; - zones?: string[]; -} - -/** - * @class - * Initializes a new instance of the PatchRouteFilterRule class. - * @constructor * Route Filter Rule Resource - * - * @property {string} access The access type of the rule. Valid values are: - * 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny' - * @property {array} communities The collection for bgp community values to - * filter on. e.g. ['12076:5010','12076:5020'] - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and - * 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ +*/ export interface PatchRouteFilterRule extends SubResource { + /** + * The access type of the rule. Valid values are: 'Allow', 'Deny'. Possible values include: + * 'Allow', 'Deny' + */ access: string; + /** + * The collection for bgp community values to filter on. e.g. ['12076:5010','12076:5020'] + */ communities: string[]; + /** + * The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', + * 'Succeeded' and 'Failed'. + */ readonly provisioningState?: string; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ readonly name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the PatchRouteFilter class. - * @constructor * Route Filter Resource. - * - * @property {array} [rules] Collection of RouteFilterRules contained within a - * route filter. - * @property {array} [peerings] A collection of references to express route - * circuit peerings. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and - * 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - * @property {string} [type] Resource type. - * @property {object} [tags] Resource tags. - */ +*/ export interface PatchRouteFilter extends SubResource { + /** + * Collection of RouteFilterRules contained within a route filter. + */ rules?: RouteFilterRule[]; + /** + * A collection of references to express route circuit peerings. + */ peerings?: ExpressRouteCircuitPeering[]; + /** + * The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', + * 'Succeeded' and 'Failed'. + */ readonly provisioningState?: string; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ readonly name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; + /** + * Resource type. + */ readonly type?: string; + /** + * Resource tags. + */ tags?: { [propertyName: string]: string }; } /** - * @class - * Initializes a new instance of the BGPCommunity class. - * @constructor * Contains bgp community information offered in Service Community resources. - * - * @property {string} [serviceSupportedRegion] The region which the service - * support. e.g. For O365, region is Global. - * @property {string} [communityName] The name of the bgp community. e.g. - * Skype. - * @property {string} [communityValue] The value of the bgp community. For more - * information: - * https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. - * @property {array} [communityPrefixes] The prefixes that the bgp community - * contains. - * @property {boolean} [isAuthorizedToUse] Customer is authorized to use bgp - * community or not. - * @property {string} [serviceGroup] The service group of the bgp community - * contains. - */ +*/ export interface BGPCommunity { + /** + * The region which the service support. e.g. For O365, region is Global. + */ serviceSupportedRegion?: string; + /** + * The name of the bgp community. e.g. Skype. + */ communityName?: string; + /** + * The value of the bgp community. For more information: + * https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. + */ communityValue?: string; + /** + * The prefixes that the bgp community contains. + */ communityPrefixes?: string[]; + /** + * Customer is authorized to use bgp community or not. + */ isAuthorizedToUse?: boolean; + /** + * The service group of the bgp community contains. + */ serviceGroup?: string; } /** - * @class - * Initializes a new instance of the BgpServiceCommunity class. - * @constructor * Service Community Properties. - * - * @property {string} [serviceName] The name of the bgp community. e.g. Skype. - * @property {array} [bgpCommunities] Get a list of bgp communities. - */ +*/ export interface BgpServiceCommunity extends Resource { + /** + * The name of the bgp community. e.g. Skype. + */ serviceName?: string; + /** + * Get a list of bgp communities. + */ bgpCommunities?: BGPCommunity[]; } /** - * @class - * Initializes a new instance of the UsageName class. - * @constructor * The usage names. - * - * @property {string} [value] A string describing the resource name. - * @property {string} [localizedValue] A localized string describing the - * resource name. - */ +*/ export interface UsageName { + /** + * A string describing the resource name. + */ value?: string; + /** + * A localized string describing the resource name. + */ localizedValue?: string; } /** - * @class - * Initializes a new instance of the Usage class. - * @constructor * Describes network resource usage. - * - * @property {string} [id] Resource identifier. - * @property {number} currentValue The current value of the usage. - * @property {number} limit The limit of usage. - * @property {object} name The name of the type of usage. - * @property {string} [name.value] A string describing the resource name. - * @property {string} [name.localizedValue] A localized string describing the - * resource name. - */ +*/ export interface Usage { + /** + * Resource identifier. + */ readonly id?: string; + /** + * The current value of the usage. + */ currentValue: number; + /** + * The limit of usage. + */ limit: number; + /** + * The name of the type of usage. + */ name: UsageName; } /** - * @class - * Initializes a new instance of the AddressSpace class. - * @constructor - * AddressSpace contains an array of IP address ranges that can be used by - * subnets of the virtual network. - * - * @property {array} [addressPrefixes] A list of address blocks reserved for - * this virtual network in CIDR notation. - */ + * AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual + * network. +*/ export interface AddressSpace { + /** + * A list of address blocks reserved for this virtual network in CIDR notation. + */ addressPrefixes?: string[]; } /** - * @class - * Initializes a new instance of the VirtualNetworkPeering class. - * @constructor * Peerings in a virtual network resource. - * - * @property {boolean} [allowVirtualNetworkAccess] Whether the VMs in the - * linked virtual network space would be able to access all the VMs in local - * Virtual network space. - * @property {boolean} [allowForwardedTraffic] Whether the forwarded traffic - * from the VMs in the remote virtual network will be allowed/disallowed. - * @property {boolean} [allowGatewayTransit] If gateway links can be used in - * remote virtual networking to link to this virtual network. - * @property {boolean} [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. - * @property {object} [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). - * @property {string} [remoteVirtualNetwork.id] Resource ID. - * @property {object} [remoteAddressSpace] The reference of the remote virtual - * network address space. - * @property {array} [remoteAddressSpace.addressPrefixes] A list of address - * blocks reserved for this virtual network in CIDR notation. - * @property {string} [peeringState] The status of the virtual network peering. - * Possible values are 'Initiated', 'Connected', and 'Disconnected'. Possible - * values include: 'Initiated', 'Connected', 'Disconnected' - * @property {string} [provisioningState] The provisioning state of the - * resource. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ +*/ export interface VirtualNetworkPeering extends SubResource { + /** + * Whether the VMs in the linked virtual network space would be able to access all the VMs in + * local Virtual network space. + */ allowVirtualNetworkAccess?: boolean; + /** + * Whether the forwarded traffic from the VMs in the remote virtual network will be + * allowed/disallowed. + */ allowForwardedTraffic?: boolean; + /** + * If gateway links can be used in remote virtual networking to link to this virtual network. + */ allowGatewayTransit?: boolean; + /** + * 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. + */ useRemoteGateways?: boolean; + /** + * 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). + */ remoteVirtualNetwork?: SubResource; + /** + * The reference of the remote virtual network address space. + */ remoteAddressSpace?: AddressSpace; + /** + * The status of the virtual network peering. Possible values are 'Initiated', 'Connected', and + * 'Disconnected'. Possible values include: 'Initiated', 'Connected', 'Disconnected' + */ peeringState?: string; + /** + * The provisioning state of the resource. + */ provisioningState?: string; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the DhcpOptions class. - * @constructor - * DhcpOptions contains an array of DNS servers available to VMs deployed in - * the virtual network. Standard DHCP option for a subnet overrides VNET DHCP - * options. - * - * @property {array} [dnsServers] The list of DNS servers IP addresses. - */ + * DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. + * Standard DHCP option for a subnet overrides VNET DHCP options. +*/ export interface DhcpOptions { + /** + * The list of DNS servers IP addresses. + */ dnsServers?: string[]; } /** - * @class - * Initializes a new instance of the VirtualNetwork class. - * @constructor * Virtual Network resource. - * - * @property {object} [addressSpace] The AddressSpace that contains an array of - * IP address ranges that can be used by subnets. - * @property {array} [addressSpace.addressPrefixes] A list of address blocks - * reserved for this virtual network in CIDR notation. - * @property {object} [dhcpOptions] The dhcpOptions that contains an array of - * DNS servers available to VMs deployed in the virtual network. - * @property {array} [dhcpOptions.dnsServers] The list of DNS servers IP - * addresses. - * @property {array} [subnets] A list of subnets in a Virtual Network. - * @property {array} [virtualNetworkPeerings] A list of peerings in a Virtual - * Network. - * @property {string} [resourceGuid] The resourceGuid property of the Virtual - * Network resource. - * @property {string} [provisioningState] The provisioning state of the - * PublicIP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. - * @property {boolean} [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. Default value: false . - * @property {boolean} [enableVmProtection] Indicates if VM protection is - * enabled for all the subnets in the virtual network. Default value: false . - * @property {object} [ddosProtectionPlan] The DDoS protection plan associated - * with the virtual network. - * @property {string} [ddosProtectionPlan.id] Resource ID. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ +*/ export interface VirtualNetwork extends Resource { + /** + * The AddressSpace that contains an array of IP address ranges that can be used by subnets. + */ addressSpace?: AddressSpace; + /** + * The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual + * network. + */ dhcpOptions?: DhcpOptions; + /** + * A list of subnets in a Virtual Network. + */ subnets?: Subnet[]; + /** + * A list of peerings in a Virtual Network. + */ virtualNetworkPeerings?: VirtualNetworkPeering[]; + /** + * The resourceGuid property of the Virtual Network resource. + */ resourceGuid?: string; + /** + * The provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', + * and 'Failed'. + */ provisioningState?: string; + /** + * 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. + */ enableDdosProtection?: boolean; + /** + * Indicates if VM protection is enabled for all the subnets in the virtual network. + */ enableVmProtection?: boolean; + /** + * The DDoS protection plan associated with the virtual network. + */ ddosProtectionPlan?: SubResource; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the IPAddressAvailabilityResult class. - * @constructor * Response for CheckIPAddressAvailability API service call - * - * @property {boolean} [available] Private IP address availability. - * @property {array} [availableIPAddresses] Contains other available private IP - * addresses if the asked for address is taken. - */ +*/ export interface IPAddressAvailabilityResult { + /** + * Private IP address availability. + */ available?: boolean; + /** + * Contains other available private IP addresses if the asked for address is taken. + */ availableIPAddresses?: string[]; } /** - * @class - * Initializes a new instance of the VirtualNetworkUsageName class. - * @constructor * Usage strings container. - * - * @property {string} [localizedValue] Localized subnet size and usage string. - * @property {string} [value] Subnet size and usage string. - */ +*/ export interface VirtualNetworkUsageName { + /** + * Localized subnet size and usage string. + */ readonly localizedValue?: string; + /** + * Subnet size and usage string. + */ readonly value?: string; } /** - * @class - * Initializes a new instance of the VirtualNetworkUsage class. - * @constructor * Usage details for subnet. - * - * @property {number} [currentValue] Indicates number of IPs used from the - * Subnet. - * @property {string} [id] Subnet identifier. - * @property {number} [limit] Indicates the size of the subnet. - * @property {object} [name] The name containing common and localized value for - * usage. - * @property {string} [name.localizedValue] Localized subnet size and usage - * string. - * @property {string} [name.value] Subnet size and usage string. - * @property {string} [unit] Usage units. Returns 'Count' - */ +*/ export interface VirtualNetworkUsage { + /** + * Indicates number of IPs used from the Subnet. + */ readonly currentValue?: number; + /** + * Subnet identifier. + */ readonly id?: string; + /** + * Indicates the size of the subnet. + */ readonly limit?: number; + /** + * The name containing common and localized value for usage. + */ readonly name?: VirtualNetworkUsageName; + /** + * Usage units. Returns 'Count' + */ readonly unit?: string; } /** - * @class - * Initializes a new instance of the VirtualNetworkGatewayIPConfiguration class. - * @constructor * IP configuration for virtual network gateway - * - * @property {string} [privateIPAllocationMethod] The private IP allocation - * method. Possible values are: 'Static' and 'Dynamic'. Possible values - * include: 'Static', 'Dynamic' - * @property {object} [subnet] The reference of the subnet resource. - * @property {string} [subnet.id] Resource ID. - * @property {object} [publicIPAddress] The reference of the public IP - * resource. - * @property {string} [publicIPAddress.id] Resource ID. - * @property {string} [provisioningState] The provisioning state of the public - * IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ +*/ export interface VirtualNetworkGatewayIPConfiguration extends SubResource { + /** + * The private IP allocation method. Possible values are: 'Static' and 'Dynamic'. Possible values + * include: 'Static', 'Dynamic' + */ privateIPAllocationMethod?: string; + /** + * The reference of the subnet resource. + */ subnet?: SubResource; + /** + * The reference of the public IP resource. + */ publicIPAddress?: SubResource; + /** + * The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', + * and 'Failed'. + */ readonly provisioningState?: string; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the VirtualNetworkGatewaySku class. - * @constructor * VirtualNetworkGatewaySku details - * - * @property {string} [name] Gateway SKU name. Possible values include: - * 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', - * 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', - * 'ErGw2AZ', 'ErGw3AZ' - * @property {string} [tier] Gateway SKU tier. Possible values include: - * 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', - * 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', - * 'ErGw2AZ', 'ErGw3AZ' - * @property {number} [capacity] The capacity. - */ +*/ export interface VirtualNetworkGatewaySku { + /** + * Gateway SKU name. Possible values include: 'Basic', 'HighPerformance', 'Standard', + * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', + * 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' + */ name?: string; + /** + * Gateway SKU tier. Possible values include: 'Basic', 'HighPerformance', 'Standard', + * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', + * 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' + */ tier?: string; + /** + * The capacity. + */ capacity?: number; } /** - * @class - * Initializes a new instance of the VpnClientRootCertificate class. - * @constructor * VPN client root certificate of virtual network gateway - * - * @property {string} publicCertData The certificate public data. - * @property {string} [provisioningState] The provisioning state of the VPN - * client root certificate resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ +*/ export interface VpnClientRootCertificate extends SubResource { + /** + * The certificate public data. + */ publicCertData: string; + /** + * The provisioning state of the VPN client root certificate resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + */ readonly provisioningState?: string; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the VpnClientRevokedCertificate class. - * @constructor * VPN client revoked certificate of virtual network gateway. - * - * @property {string} [thumbprint] The revoked VPN client certificate - * thumbprint. - * @property {string} [provisioningState] The provisioning state of the VPN - * client revoked certificate resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ +*/ export interface VpnClientRevokedCertificate extends SubResource { + /** + * The revoked VPN client certificate thumbprint. + */ thumbprint?: string; + /** + * The provisioning state of the VPN client revoked certificate resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + */ readonly provisioningState?: string; + /** + * The name of the resource that is unique within a resource group. This name can be used to + * access the resource. + */ name?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the IpsecPolicy class. - * @constructor * An IPSec Policy configuration for a virtual network gateway connection - * - * @property {number} saLifeTimeSeconds The IPSec Security Association (also - * called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN - * tunnel. - * @property {number} saDataSizeKilobytes The IPSec Security Association (also - * called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN - * tunnel. - * @property {string} ipsecEncryption The IPSec encryption algorithm (IKE phase - * 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', - * 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' - * @property {string} ipsecIntegrity The IPSec integrity algorithm (IKE phase - * 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', - * 'GCMAES192', 'GCMAES256' - * @property {string} ikeEncryption The IKE encryption algorithm (IKE phase 2). - * Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', - * 'GCMAES256', 'GCMAES128' - * @property {string} ikeIntegrity The IKE integrity algorithm (IKE phase 2). - * Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', - * 'GCMAES128' - * @property {string} dhGroup The DH Groups used in IKE Phase 1 for initial SA. - * Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', - * 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' - * @property {string} pfsGroup The Pfs Groups used in IKE Phase 2 for new child - * SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', - * 'ECP384', 'PFS24', 'PFS14', 'PFSMM' - */ +*/ export interface IpsecPolicy { + /** + * The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for + * a site to site VPN tunnel. + */ saLifeTimeSeconds: number; + /** + * The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a + * site to site VPN tunnel. + */ saDataSizeKilobytes: number; + /** + * The IPSec encryption algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', + * 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' + */ ipsecEncryption: string; + /** + * The IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', + * 'GCMAES128', 'GCMAES192', 'GCMAES256' + */ ipsecIntegrity: string; + /** + * The IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', + * 'AES192', 'AES256', 'GCMAES256', 'GCMAES128' + */ ikeEncryption: string; + /** + * The IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', + * 'SHA384', 'GCMAES256', 'GCMAES128' + */ ikeIntegrity: string; + /** + * The DH Groups used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', + * 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' + */ dhGroup: string; + /** + * The Pfs Groups used in IKE Phase 2 for new child SA. Possible values include: 'None', 'PFS1', + * 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM' + */ pfsGroup: string; } /** - * @class - * Initializes a new instance of the VpnClientConfiguration class. - * @constructor * VpnClientConfiguration for P2S client. - * - * @property {object} [vpnClientAddressPool] The reference of the address space - * resource which represents Address space for P2S VpnClient. - * @property {array} [vpnClientAddressPool.addressPrefixes] A list of address - * blocks reserved for this virtual network in CIDR notation. - * @property {array} [vpnClientRootCertificates] VpnClientRootCertificate for - * virtual network gateway. - * @property {array} [vpnClientRevokedCertificates] VpnClientRevokedCertificate - * for Virtual network gateway. - * @property {array} [vpnClientProtocols] VpnClientProtocols for Virtual - * network gateway. - * @property {array} [vpnClientIpsecPolicies] VpnClientIpsecPolicies for - * virtual network gateway P2S client. - * @property {string} [radiusServerAddress] The radius server address property - * of the VirtualNetworkGateway resource for vpn client connection. - * @property {string} [radiusServerSecret] The radius secret property of the - * VirtualNetworkGateway resource for vpn client connection. - */ +*/ export interface VpnClientConfiguration { + /** + * The reference of the address space resource which represents Address space for P2S VpnClient. + */ vpnClientAddressPool?: AddressSpace; + /** + * VpnClientRootCertificate for virtual network gateway. + */ vpnClientRootCertificates?: VpnClientRootCertificate[]; + /** + * VpnClientRevokedCertificate for Virtual network gateway. + */ vpnClientRevokedCertificates?: VpnClientRevokedCertificate[]; + /** + * VpnClientProtocols for Virtual network gateway. + */ vpnClientProtocols?: string[]; + /** + * VpnClientIpsecPolicies for virtual network gateway P2S client. + */ vpnClientIpsecPolicies?: IpsecPolicy[]; + /** + * The radius server address property of the VirtualNetworkGateway resource for vpn client + * connection. + */ radiusServerAddress?: string; + /** + * The radius secret property of the VirtualNetworkGateway resource for vpn client connection. + */ radiusServerSecret?: string; } /** - * @class - * Initializes a new instance of the BgpSettings class. - * @constructor * BGP settings details - * - * @property {number} [asn] The BGP speaker's ASN. - * @property {string} [bgpPeeringAddress] The BGP peering address and BGP - * identifier of this BGP speaker. - * @property {number} [peerWeight] The weight added to routes learned from this - * BGP speaker. - */ +*/ export interface BgpSettings { + /** + * The BGP speaker's ASN. + */ asn?: number; + /** + * The BGP peering address and BGP identifier of this BGP speaker. + */ bgpPeeringAddress?: string; + /** + * The weight added to routes learned from this BGP speaker. + */ peerWeight?: number; } /** - * @class - * Initializes a new instance of the BgpPeerStatus class. - * @constructor * BGP peer status details - * - * @property {string} [localAddress] The virtual network gateway's local - * address - * @property {string} [neighbor] The remote BGP peer - * @property {number} [asn] The autonomous system number of the remote BGP peer - * @property {string} [state] The BGP peer state. Possible values include: - * 'Unknown', 'Stopped', 'Idle', 'Connecting', 'Connected' - * @property {string} [connectedDuration] For how long the peering has been up - * @property {number} [routesReceived] The number of routes learned from this - * peer - * @property {number} [messagesSent] The number of BGP messages sent - * @property {number} [messagesReceived] The number of BGP messages received - */ +*/ export interface BgpPeerStatus { + /** + * The virtual network gateway's local address + */ readonly localAddress?: string; + /** + * The remote BGP peer + */ readonly neighbor?: string; + /** + * The autonomous system number of the remote BGP peer + */ readonly asn?: number; + /** + * The BGP peer state. Possible values include: 'Unknown', 'Stopped', 'Idle', 'Connecting', + * 'Connected' + */ readonly state?: string; + /** + * For how long the peering has been up + */ readonly connectedDuration?: string; + /** + * The number of routes learned from this peer + */ readonly routesReceived?: number; + /** + * The number of BGP messages sent + */ readonly messagesSent?: number; + /** + * The number of BGP messages received + */ readonly messagesReceived?: number; } /** - * @class - * Initializes a new instance of the GatewayRoute class. - * @constructor * Gateway routing details - * - * @property {string} [localAddress] The gateway's local address - * @property {string} [network] The route's network prefix - * @property {string} [nextHop] The route's next hop - * @property {string} [sourcePeer] The peer this route was learned from - * @property {string} [origin] The source this route was learned from - * @property {string} [asPath] The route's AS path sequence - * @property {number} [weight] The route's weight - */ +*/ export interface GatewayRoute { + /** + * The gateway's local address + */ readonly localAddress?: string; + /** + * The route's network prefix + */ readonly network?: string; + /** + * The route's next hop + */ readonly nextHop?: string; + /** + * The peer this route was learned from + */ readonly sourcePeer?: string; + /** + * The source this route was learned from + */ readonly origin?: string; + /** + * The route's AS path sequence + */ readonly asPath?: string; + /** + * The route's weight + */ readonly weight?: number; } /** - * @class - * Initializes a new instance of the VirtualNetworkGateway class. - * @constructor * A common class for general resource information - * - * @property {array} [ipConfigurations] IP configurations for virtual network - * gateway. - * @property {string} [gatewayType] The type of this virtual network gateway. - * Possible values are: 'Vpn' and 'ExpressRoute'. Possible values include: - * 'Vpn', 'ExpressRoute' - * @property {string} [vpnType] The type of this virtual network gateway. - * Possible values are: 'PolicyBased' and 'RouteBased'. Possible values - * include: 'PolicyBased', 'RouteBased' - * @property {boolean} [enableBgp] Whether BGP is enabled for this virtual - * network gateway or not. - * @property {boolean} [activeActive] ActiveActive flag - * @property {object} [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. - * @property {string} [gatewayDefaultSite.id] Resource ID. - * @property {object} [sku] The reference of the VirtualNetworkGatewaySku - * resource which represents the SKU selected for Virtual network gateway. - * @property {string} [sku.name] Gateway SKU name. Possible values include: - * 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', - * 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', - * 'ErGw2AZ', 'ErGw3AZ' - * @property {string} [sku.tier] Gateway SKU tier. Possible values include: - * 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', - * 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', - * 'ErGw2AZ', 'ErGw3AZ' - * @property {number} [sku.capacity] The capacity. - * @property {object} [vpnClientConfiguration] The reference of the - * VpnClientConfiguration resource which represents the P2S VpnClient - * configurations. - * @property {object} [vpnClientConfiguration.vpnClientAddressPool] The - * reference of the address space resource which represents Address space for - * P2S VpnClient. - * @property {array} - * [vpnClientConfiguration.vpnClientAddressPool.addressPrefixes] A list of - * address blocks reserved for this virtual network in CIDR notation. - * @property {array} [vpnClientConfiguration.vpnClientRootCertificates] - * VpnClientRootCertificate for virtual network gateway. - * @property {array} [vpnClientConfiguration.vpnClientRevokedCertificates] - * VpnClientRevokedCertificate for Virtual network gateway. - * @property {array} [vpnClientConfiguration.vpnClientProtocols] - * VpnClientProtocols for Virtual network gateway. - * @property {array} [vpnClientConfiguration.vpnClientIpsecPolicies] - * VpnClientIpsecPolicies for virtual network gateway P2S client. - * @property {string} [vpnClientConfiguration.radiusServerAddress] The radius - * server address property of the VirtualNetworkGateway resource for vpn client - * connection. - * @property {string} [vpnClientConfiguration.radiusServerSecret] The radius - * secret property of the VirtualNetworkGateway resource for vpn client - * connection. - * @property {object} [bgpSettings] Virtual network gateway's BGP speaker - * settings. - * @property {number} [bgpSettings.asn] The BGP speaker's ASN. - * @property {string} [bgpSettings.bgpPeeringAddress] The BGP peering address - * and BGP identifier of this BGP speaker. - * @property {number} [bgpSettings.peerWeight] The weight added to routes - * learned from this BGP speaker. - * @property {string} [resourceGuid] The resource GUID property of the - * VirtualNetworkGateway resource. - * @property {string} [provisioningState] The provisioning state of the - * VirtualNetworkGateway resource. Possible values are: 'Updating', 'Deleting', - * and 'Failed'. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ +*/ export interface VirtualNetworkGateway extends Resource { + /** + * IP configurations for virtual network gateway. + */ ipConfigurations?: VirtualNetworkGatewayIPConfiguration[]; + /** + * The type of this virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. + * Possible values include: 'Vpn', 'ExpressRoute' + */ gatewayType?: string; + /** + * The type of this virtual network gateway. Possible values are: 'PolicyBased' and 'RouteBased'. + * Possible values include: 'PolicyBased', 'RouteBased' + */ vpnType?: string; + /** + * Whether BGP is enabled for this virtual network gateway or not. + */ enableBgp?: boolean; + /** + * ActiveActive flag + */ activeActive?: boolean; + /** + * 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. + */ gatewayDefaultSite?: SubResource; + /** + * The reference of the VirtualNetworkGatewaySku resource which represents the SKU selected for + * Virtual network gateway. + */ sku?: VirtualNetworkGatewaySku; + /** + * The reference of the VpnClientConfiguration resource which represents the P2S VpnClient + * configurations. + */ vpnClientConfiguration?: VpnClientConfiguration; + /** + * Virtual network gateway's BGP speaker settings. + */ bgpSettings?: BgpSettings; + /** + * The resource GUID property of the VirtualNetworkGateway resource. + */ resourceGuid?: string; + /** + * The provisioning state of the VirtualNetworkGateway resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ readonly provisioningState?: string; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the VpnClientParameters class. - * @constructor * Vpn Client Parameters for package generation - * - * @property {string} [processorArchitecture] VPN client Processor - * Architecture. Possible values are: 'AMD64' and 'X86'. Possible values - * include: 'Amd64', 'X86' - * @property {string} [authenticationMethod] VPN client Authentication Method. - * Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values include: - * 'EAPTLS', 'EAPMSCHAPv2' - * @property {string} [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. - * @property {array} [clientRootCertificates] A list of client root - * certificates public certificate data encoded as Base-64 strings. Optional - * parameter for external radius based authentication with EAPTLS. - */ +*/ export interface VpnClientParameters { + /** + * VPN client Processor Architecture. Possible values are: 'AMD64' and 'X86'. Possible values + * include: 'Amd64', 'X86' + */ processorArchitecture?: string; + /** + * VPN client Authentication Method. Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible + * values include: 'EAPTLS', 'EAPMSCHAPv2' + */ authenticationMethod?: string; + /** + * 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. + */ radiusServerAuthCertificate?: string; + /** + * A list of client root certificates public certificate data encoded as Base-64 strings. + * Optional parameter for external radius based authentication with EAPTLS. + */ clientRootCertificates?: string[]; } /** - * @class - * Initializes a new instance of the BgpPeerStatusListResult class. - * @constructor * Response for list BGP peer status API service call - * - * @property {array} [value] List of BGP peers - */ +*/ export interface BgpPeerStatusListResult { + /** + * List of BGP peers + */ value?: BgpPeerStatus[]; } /** - * @class - * Initializes a new instance of the GatewayRouteListResult class. - * @constructor * List of virtual network gateway routes - * - * @property {array} [value] List of gateway routes - */ +*/ export interface GatewayRouteListResult { + /** + * List of gateway routes + */ value?: GatewayRoute[]; } /** - * @class - * Initializes a new instance of the TunnelConnectionHealth class. - * @constructor * VirtualNetworkGatewayConnection properties - * - * @property {string} [tunnel] Tunnel name. - * @property {string} [connectionStatus] Virtual network Gateway connection - * status. Possible values include: 'Unknown', 'Connecting', 'Connected', - * 'NotConnected' - * @property {number} [ingressBytesTransferred] The Ingress Bytes Transferred - * in this connection - * @property {number} [egressBytesTransferred] The Egress Bytes Transferred in - * this connection - * @property {string} [lastConnectionEstablishedUtcTime] The time at which - * connection was established in Utc format. - */ +*/ export interface TunnelConnectionHealth { + /** + * Tunnel name. + */ readonly tunnel?: string; + /** + * Virtual network Gateway connection status. Possible values include: 'Unknown', 'Connecting', + * 'Connected', 'NotConnected' + */ readonly connectionStatus?: string; + /** + * The Ingress Bytes Transferred in this connection + */ readonly ingressBytesTransferred?: number; + /** + * The Egress Bytes Transferred in this connection + */ readonly egressBytesTransferred?: number; + /** + * The time at which connection was established in Utc format. + */ readonly lastConnectionEstablishedUtcTime?: string; } /** - * @class - * Initializes a new instance of the LocalNetworkGateway class. - * @constructor * A common class for general resource information - * - * @property {object} [localNetworkAddressSpace] Local network site address - * space. - * @property {array} [localNetworkAddressSpace.addressPrefixes] A list of - * address blocks reserved for this virtual network in CIDR notation. - * @property {string} [gatewayIpAddress] IP address of local network gateway. - * @property {object} [bgpSettings] Local network gateway's BGP speaker - * settings. - * @property {number} [bgpSettings.asn] The BGP speaker's ASN. - * @property {string} [bgpSettings.bgpPeeringAddress] The BGP peering address - * and BGP identifier of this BGP speaker. - * @property {number} [bgpSettings.peerWeight] The weight added to routes - * learned from this BGP speaker. - * @property {string} [resourceGuid] The resource GUID property of the - * LocalNetworkGateway resource. - * @property {string} [provisioningState] The provisioning state of the - * LocalNetworkGateway resource. Possible values are: 'Updating', 'Deleting', - * and 'Failed'. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ +*/ export interface LocalNetworkGateway extends Resource { + /** + * Local network site address space. + */ localNetworkAddressSpace?: AddressSpace; + /** + * IP address of local network gateway. + */ gatewayIpAddress?: string; + /** + * Local network gateway's BGP speaker settings. + */ bgpSettings?: BgpSettings; + /** + * The resource GUID property of the LocalNetworkGateway resource. + */ resourceGuid?: string; + /** + * The provisioning state of the LocalNetworkGateway resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + */ readonly provisioningState?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the VirtualNetworkGatewayConnection class. - * @constructor * A common class for general resource information - * - * @property {string} [authorizationKey] The authorizationKey. - * @property {object} virtualNetworkGateway1 The reference to virtual network - * gateway resource. - * @property {array} [virtualNetworkGateway1.ipConfigurations] IP - * configurations for virtual network gateway. - * @property {string} [virtualNetworkGateway1.gatewayType] The type of this - * virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. - * Possible values include: 'Vpn', 'ExpressRoute' - * @property {string} [virtualNetworkGateway1.vpnType] The type of this virtual - * network gateway. Possible values are: 'PolicyBased' and 'RouteBased'. - * Possible values include: 'PolicyBased', 'RouteBased' - * @property {boolean} [virtualNetworkGateway1.enableBgp] Whether BGP is - * enabled for this virtual network gateway or not. - * @property {boolean} [virtualNetworkGateway1.activeActive] ActiveActive flag - * @property {object} [virtualNetworkGateway1.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. - * @property {string} [virtualNetworkGateway1.gatewayDefaultSite.id] Resource - * ID. - * @property {object} [virtualNetworkGateway1.sku] The reference of the - * VirtualNetworkGatewaySku resource which represents the SKU selected for - * Virtual network gateway. - * @property {string} [virtualNetworkGateway1.sku.name] Gateway SKU name. - * Possible values include: 'Basic', 'HighPerformance', 'Standard', - * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', - * 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' - * @property {string} [virtualNetworkGateway1.sku.tier] Gateway SKU tier. - * Possible values include: 'Basic', 'HighPerformance', 'Standard', - * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', - * 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' - * @property {number} [virtualNetworkGateway1.sku.capacity] The capacity. - * @property {object} [virtualNetworkGateway1.vpnClientConfiguration] The - * reference of the VpnClientConfiguration resource which represents the P2S - * VpnClient configurations. - * @property {object} - * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientAddressPool] The - * reference of the address space resource which represents Address space for - * P2S VpnClient. - * @property {array} - * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientAddressPool.addressPrefixes] - * A list of address blocks reserved for this virtual network in CIDR notation. - * @property {array} - * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientRootCertificates] - * VpnClientRootCertificate for virtual network gateway. - * @property {array} - * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientRevokedCertificates] - * VpnClientRevokedCertificate for Virtual network gateway. - * @property {array} - * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientProtocols] - * VpnClientProtocols for Virtual network gateway. - * @property {array} - * [virtualNetworkGateway1.vpnClientConfiguration.vpnClientIpsecPolicies] - * VpnClientIpsecPolicies for virtual network gateway P2S client. - * @property {string} - * [virtualNetworkGateway1.vpnClientConfiguration.radiusServerAddress] The - * radius server address property of the VirtualNetworkGateway resource for vpn - * client connection. - * @property {string} - * [virtualNetworkGateway1.vpnClientConfiguration.radiusServerSecret] The - * radius secret property of the VirtualNetworkGateway resource for vpn client - * connection. - * @property {object} [virtualNetworkGateway1.bgpSettings] Virtual network - * gateway's BGP speaker settings. - * @property {number} [virtualNetworkGateway1.bgpSettings.asn] The BGP - * speaker's ASN. - * @property {string} [virtualNetworkGateway1.bgpSettings.bgpPeeringAddress] - * The BGP peering address and BGP identifier of this BGP speaker. - * @property {number} [virtualNetworkGateway1.bgpSettings.peerWeight] The - * weight added to routes learned from this BGP speaker. - * @property {string} [virtualNetworkGateway1.resourceGuid] The resource GUID - * property of the VirtualNetworkGateway resource. - * @property {string} [virtualNetworkGateway1.provisioningState] The - * provisioning state of the VirtualNetworkGateway resource. Possible values - * are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [virtualNetworkGateway1.etag] Gets a unique read-only - * string that changes whenever the resource is updated. - * @property {object} [virtualNetworkGateway2] The reference to virtual network - * gateway resource. - * @property {array} [virtualNetworkGateway2.ipConfigurations] IP - * configurations for virtual network gateway. - * @property {string} [virtualNetworkGateway2.gatewayType] The type of this - * virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. - * Possible values include: 'Vpn', 'ExpressRoute' - * @property {string} [virtualNetworkGateway2.vpnType] The type of this virtual - * network gateway. Possible values are: 'PolicyBased' and 'RouteBased'. - * Possible values include: 'PolicyBased', 'RouteBased' - * @property {boolean} [virtualNetworkGateway2.enableBgp] Whether BGP is - * enabled for this virtual network gateway or not. - * @property {boolean} [virtualNetworkGateway2.activeActive] ActiveActive flag - * @property {object} [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. - * @property {string} [virtualNetworkGateway2.gatewayDefaultSite.id] Resource - * ID. - * @property {object} [virtualNetworkGateway2.sku] The reference of the - * VirtualNetworkGatewaySku resource which represents the SKU selected for - * Virtual network gateway. - * @property {string} [virtualNetworkGateway2.sku.name] Gateway SKU name. - * Possible values include: 'Basic', 'HighPerformance', 'Standard', - * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', - * 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' - * @property {string} [virtualNetworkGateway2.sku.tier] Gateway SKU tier. - * Possible values include: 'Basic', 'HighPerformance', 'Standard', - * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', - * 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' - * @property {number} [virtualNetworkGateway2.sku.capacity] The capacity. - * @property {object} [virtualNetworkGateway2.vpnClientConfiguration] The - * reference of the VpnClientConfiguration resource which represents the P2S - * VpnClient configurations. - * @property {object} - * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool] The - * reference of the address space resource which represents Address space for - * P2S VpnClient. - * @property {array} - * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool.addressPrefixes] - * A list of address blocks reserved for this virtual network in CIDR notation. - * @property {array} - * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientRootCertificates] - * VpnClientRootCertificate for virtual network gateway. - * @property {array} - * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientRevokedCertificates] - * VpnClientRevokedCertificate for Virtual network gateway. - * @property {array} - * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] - * VpnClientProtocols for Virtual network gateway. - * @property {array} - * [virtualNetworkGateway2.vpnClientConfiguration.vpnClientIpsecPolicies] - * VpnClientIpsecPolicies for virtual network gateway P2S client. - * @property {string} - * [virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] The - * radius server address property of the VirtualNetworkGateway resource for vpn - * client connection. - * @property {string} - * [virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] The - * radius secret property of the VirtualNetworkGateway resource for vpn client - * connection. - * @property {object} [virtualNetworkGateway2.bgpSettings] Virtual network - * gateway's BGP speaker settings. - * @property {number} [virtualNetworkGateway2.bgpSettings.asn] The BGP - * speaker's ASN. - * @property {string} [virtualNetworkGateway2.bgpSettings.bgpPeeringAddress] - * The BGP peering address and BGP identifier of this BGP speaker. - * @property {number} [virtualNetworkGateway2.bgpSettings.peerWeight] The - * weight added to routes learned from this BGP speaker. - * @property {string} [virtualNetworkGateway2.resourceGuid] The resource GUID - * property of the VirtualNetworkGateway resource. - * @property {string} [virtualNetworkGateway2.provisioningState] The - * provisioning state of the VirtualNetworkGateway resource. Possible values - * are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [virtualNetworkGateway2.etag] Gets a unique read-only - * string that changes whenever the resource is updated. - * @property {object} [localNetworkGateway2] The reference to local network - * gateway resource. - * @property {object} [localNetworkGateway2.localNetworkAddressSpace] Local - * network site address space. - * @property {array} - * [localNetworkGateway2.localNetworkAddressSpace.addressPrefixes] A list of - * address blocks reserved for this virtual network in CIDR notation. - * @property {string} [localNetworkGateway2.gatewayIpAddress] IP address of - * local network gateway. - * @property {object} [localNetworkGateway2.bgpSettings] Local network - * gateway's BGP speaker settings. - * @property {number} [localNetworkGateway2.bgpSettings.asn] The BGP speaker's - * ASN. - * @property {string} [localNetworkGateway2.bgpSettings.bgpPeeringAddress] The - * BGP peering address and BGP identifier of this BGP speaker. - * @property {number} [localNetworkGateway2.bgpSettings.peerWeight] The weight - * added to routes learned from this BGP speaker. - * @property {string} [localNetworkGateway2.resourceGuid] The resource GUID - * property of the LocalNetworkGateway resource. - * @property {string} [localNetworkGateway2.provisioningState] The provisioning - * state of the LocalNetworkGateway resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [localNetworkGateway2.etag] A unique read-only string - * that changes whenever the resource is updated. - * @property {string} connectionType Gateway connection type. Possible values - * are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values - * include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' - * @property {string} [connectionProtocol] Connection protocol used for this - * connection. Possible values include: 'IKEv2', 'IKEv1' - * @property {number} [routingWeight] The routing weight. - * @property {string} [sharedKey] The IPSec shared key. - * @property {string} [connectionStatus] Virtual network Gateway connection - * status. Possible values are 'Unknown', 'Connecting', 'Connected' and - * 'NotConnected'. Possible values include: 'Unknown', 'Connecting', - * 'Connected', 'NotConnected' - * @property {array} [tunnelConnectionStatus] Collection of all tunnels' - * connection health status. - * @property {number} [egressBytesTransferred] The egress bytes transferred in - * this connection. - * @property {number} [ingressBytesTransferred] The ingress bytes transferred - * in this connection. - * @property {object} [peer] The reference to peerings resource. - * @property {string} [peer.id] Resource ID. - * @property {boolean} [enableBgp] EnableBgp flag - * @property {boolean} [usePolicyBasedTrafficSelectors] Enable policy-based - * traffic selectors. - * @property {array} [ipsecPolicies] The IPSec Policies to be considered by - * this connection. - * @property {string} [resourceGuid] The resource GUID property of the - * VirtualNetworkGatewayConnection resource. - * @property {string} [provisioningState] The provisioning state of the - * VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {boolean} [expressRouteGatewayBypass] Bypass ExpressRoute Gateway - * for data forwarding - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ +*/ export interface VirtualNetworkGatewayConnection extends Resource { + /** + * The authorizationKey. + */ authorizationKey?: string; + /** + * The reference to virtual network gateway resource. + */ virtualNetworkGateway1: VirtualNetworkGateway; + /** + * The reference to virtual network gateway resource. + */ virtualNetworkGateway2?: VirtualNetworkGateway; + /** + * The reference to local network gateway resource. + */ localNetworkGateway2?: LocalNetworkGateway; + /** + * Gateway connection type. Possible values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and + * 'VPNClient. Possible values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' + */ connectionType: string; - connectionProtocol?: string; + /** + * The routing weight. + */ routingWeight?: number; + /** + * The IPSec shared key. + */ sharedKey?: string; + /** + * Virtual network Gateway connection status. Possible values are 'Unknown', 'Connecting', + * 'Connected' and 'NotConnected'. Possible values include: 'Unknown', 'Connecting', 'Connected', + * 'NotConnected' + */ readonly connectionStatus?: string; + /** + * Collection of all tunnels' connection health status. + */ readonly tunnelConnectionStatus?: TunnelConnectionHealth[]; + /** + * The egress bytes transferred in this connection. + */ readonly egressBytesTransferred?: number; + /** + * The ingress bytes transferred in this connection. + */ readonly ingressBytesTransferred?: number; + /** + * The reference to peerings resource. + */ peer?: SubResource; + /** + * EnableBgp flag + */ enableBgp?: boolean; + /** + * Enable policy-based traffic selectors. + */ usePolicyBasedTrafficSelectors?: boolean; + /** + * The IPSec Policies to be considered by this connection. + */ ipsecPolicies?: IpsecPolicy[]; + /** + * The resource GUID property of the VirtualNetworkGatewayConnection resource. + */ resourceGuid?: string; + /** + * The provisioning state of the VirtualNetworkGatewayConnection resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + */ readonly provisioningState?: string; - expressRouteGatewayBypass?: boolean; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the ConnectionResetSharedKey class. - * @constructor * The virtual network connection reset shared key - * - * @property {number} keyLength The virtual network connection reset shared key - * length, should between 1 and 128. - */ +*/ export interface ConnectionResetSharedKey { + /** + * The virtual network connection reset shared key length, should between 1 and 128. + */ keyLength: number; } /** - * @class - * Initializes a new instance of the ConnectionSharedKey class. - * @constructor * Response for GetConnectionSharedKey API service call - * - * @property {string} value The virtual network connection shared key value. - */ +*/ export interface ConnectionSharedKey extends SubResource { + /** + * The virtual network connection shared key value. + */ value: string; } /** - * @class - * Initializes a new instance of the VpnClientIPsecParameters class. - * @constructor * An IPSec parameters for a virtual network gateway P2S connection. - * - * @property {number} saLifeTimeSeconds The IPSec Security Association (also - * called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client. - * @property {number} saDataSizeKilobytes The IPSec Security Association (also - * called Quick Mode or Phase 2 SA) payload size in KB for P2S client.. - * @property {string} ipsecEncryption The IPSec encryption algorithm (IKE phase - * 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', - * 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' - * @property {string} ipsecIntegrity The IPSec integrity algorithm (IKE phase - * 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', - * 'GCMAES192', 'GCMAES256' - * @property {string} ikeEncryption The IKE encryption algorithm (IKE phase 2). - * Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', - * 'GCMAES256', 'GCMAES128' - * @property {string} ikeIntegrity The IKE integrity algorithm (IKE phase 2). - * Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', - * 'GCMAES128' - * @property {string} dhGroup The DH Groups used in IKE Phase 1 for initial SA. - * Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', - * 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' - * @property {string} pfsGroup The Pfs Groups used in IKE Phase 2 for new child - * SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', - * 'ECP384', 'PFS24', 'PFS14', 'PFSMM' - */ +*/ export interface VpnClientIPsecParameters { + /** + * The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for + * P2S client. + */ saLifeTimeSeconds: number; + /** + * The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for + * P2S client.. + */ saDataSizeKilobytes: number; + /** + * The IPSec encryption algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', + * 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' + */ ipsecEncryption: string; + /** + * The IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', + * 'GCMAES128', 'GCMAES192', 'GCMAES256' + */ ipsecIntegrity: string; + /** + * The IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', + * 'AES192', 'AES256', 'GCMAES256', 'GCMAES128' + */ ikeEncryption: string; + /** + * The IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', + * 'SHA384', 'GCMAES256', 'GCMAES128' + */ ikeIntegrity: string; + /** + * The DH Groups used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', + * 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' + */ dhGroup: string; + /** + * The Pfs Groups used in IKE Phase 2 for new child SA. Possible values include: 'None', 'PFS1', + * 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM' + */ pfsGroup: string; } /** - * @class - * Initializes a new instance of the VirtualNetworkConnectionGatewayReference class. - * @constructor * A reference to VirtualNetworkGateway or LocalNetworkGateway resource. - * - * @property {string} id The ID of VirtualNetworkGateway or LocalNetworkGateway - * resource. - */ +*/ export interface VirtualNetworkConnectionGatewayReference { + /** + * The ID of VirtualNetworkGateway or LocalNetworkGateway resource. + */ id: string; } /** - * @class - * Initializes a new instance of the VirtualNetworkGatewayConnectionListEntity class. - * @constructor * A common class for general resource information - * - * @property {string} [authorizationKey] The authorizationKey. - * @property {object} virtualNetworkGateway1 The reference to virtual network - * gateway resource. - * @property {string} [virtualNetworkGateway1.id] The ID of - * VirtualNetworkGateway or LocalNetworkGateway resource. - * @property {object} [virtualNetworkGateway2] The reference to virtual network - * gateway resource. - * @property {string} [virtualNetworkGateway2.id] The ID of - * VirtualNetworkGateway or LocalNetworkGateway resource. - * @property {object} [localNetworkGateway2] The reference to local network - * gateway resource. - * @property {string} [localNetworkGateway2.id] The ID of VirtualNetworkGateway - * or LocalNetworkGateway resource. - * @property {string} connectionType Gateway connection type. Possible values - * are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values - * include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' - * @property {string} [connectionProtocol] Connection protocol used for this - * connection. Possible values include: 'IKEv2', 'IKEv1' - * @property {number} [routingWeight] The routing weight. - * @property {string} [sharedKey] The IPSec shared key. - * @property {string} [connectionStatus] Virtual network Gateway connection - * status. Possible values are 'Unknown', 'Connecting', 'Connected' and - * 'NotConnected'. Possible values include: 'Unknown', 'Connecting', - * 'Connected', 'NotConnected' - * @property {array} [tunnelConnectionStatus] Collection of all tunnels' - * connection health status. - * @property {number} [egressBytesTransferred] The egress bytes transferred in - * this connection. - * @property {number} [ingressBytesTransferred] The ingress bytes transferred - * in this connection. - * @property {object} [peer] The reference to peerings resource. - * @property {string} [peer.id] Resource ID. - * @property {boolean} [enableBgp] EnableBgp flag - * @property {boolean} [usePolicyBasedTrafficSelectors] Enable policy-based - * traffic selectors. - * @property {array} [ipsecPolicies] The IPSec Policies to be considered by - * this connection. - * @property {string} [resourceGuid] The resource GUID property of the - * VirtualNetworkGatewayConnection resource. - * @property {string} [provisioningState] The provisioning state of the - * VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {boolean} [expressRouteGatewayBypass] Bypass ExpressRoute Gateway - * for data forwarding - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ +*/ export interface VirtualNetworkGatewayConnectionListEntity extends Resource { + /** + * The authorizationKey. + */ authorizationKey?: string; + /** + * The reference to virtual network gateway resource. + */ virtualNetworkGateway1: VirtualNetworkConnectionGatewayReference; + /** + * The reference to virtual network gateway resource. + */ virtualNetworkGateway2?: VirtualNetworkConnectionGatewayReference; + /** + * The reference to local network gateway resource. + */ localNetworkGateway2?: VirtualNetworkConnectionGatewayReference; + /** + * Gateway connection type. Possible values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and + * 'VPNClient. Possible values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' + */ connectionType: string; - connectionProtocol?: string; + /** + * The routing weight. + */ routingWeight?: number; + /** + * The IPSec shared key. + */ sharedKey?: string; + /** + * Virtual network Gateway connection status. Possible values are 'Unknown', 'Connecting', + * 'Connected' and 'NotConnected'. Possible values include: 'Unknown', 'Connecting', 'Connected', + * 'NotConnected' + */ readonly connectionStatus?: string; + /** + * Collection of all tunnels' connection health status. + */ readonly tunnelConnectionStatus?: TunnelConnectionHealth[]; + /** + * The egress bytes transferred in this connection. + */ readonly egressBytesTransferred?: number; + /** + * The ingress bytes transferred in this connection. + */ readonly ingressBytesTransferred?: number; + /** + * The reference to peerings resource. + */ peer?: SubResource; + /** + * EnableBgp flag + */ enableBgp?: boolean; + /** + * Enable policy-based traffic selectors. + */ usePolicyBasedTrafficSelectors?: boolean; + /** + * The IPSec Policies to be considered by this connection. + */ ipsecPolicies?: IpsecPolicy[]; + /** + * The resource GUID property of the VirtualNetworkGatewayConnection resource. + */ resourceGuid?: string; + /** + * The provisioning state of the VirtualNetworkGatewayConnection resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + */ readonly provisioningState?: string; - expressRouteGatewayBypass?: boolean; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ etag?: string; } /** - * @class - * Initializes a new instance of the VpnDeviceScriptParameters class. - * @constructor * Vpn device configuration script generation parameters - * - * @property {string} [vendor] The vendor for the vpn device. - * @property {string} [deviceFamily] The device family for the vpn device. - * @property {string} [firmwareVersion] The firmware version for the vpn - * device. - */ +*/ export interface VpnDeviceScriptParameters { + /** + * The vendor for the vpn device. + */ vendor?: string; + /** + * The device family for the vpn device. + */ deviceFamily?: string; + /** + * The firmware version for the vpn device. + */ firmwareVersion?: string; } /** - * @class - * Initializes a new instance of the P2SVpnServerConfigVpnClientRootCertificate class. - * @constructor - * VPN client root certificate of P2SVpnServerConfiguration. - * - * @property {string} publicCertData The certificate public data. - * @property {string} [provisioningState] The provisioning state of the - * P2SVpnServerConfiguration VPN client root certificate resource. Possible - * values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface P2SVpnServerConfigVpnClientRootCertificate extends SubResource { - publicCertData: string; - readonly provisioningState?: string; - name?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the P2SVpnServerConfigVpnClientRevokedCertificate class. - * @constructor - * VPN client revoked certificate of P2SVpnServerConfiguration. - * - * @property {string} [thumbprint] The revoked VPN client certificate - * thumbprint. - * @property {string} [provisioningState] The provisioning state of the VPN - * client revoked certificate resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface P2SVpnServerConfigVpnClientRevokedCertificate extends SubResource { - thumbprint?: string; - readonly provisioningState?: string; - name?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the P2SVpnServerConfigRadiusServerRootCertificate class. - * @constructor - * Radius Server root certificate of P2SVpnServerConfiguration. - * - * @property {string} publicCertData The certificate public data. - * @property {string} [provisioningState] The provisioning state of the - * P2SVpnServerConfiguration Radius Server root certificate resource. Possible - * values are: 'Updating', 'Deleting', and 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface P2SVpnServerConfigRadiusServerRootCertificate extends SubResource { - publicCertData: string; - readonly provisioningState?: string; - name?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the P2SVpnServerConfigRadiusClientRootCertificate class. - * @constructor - * Radius client root certificate of P2SVpnServerConfiguration. - * - * @property {string} [thumbprint] The Radius client root certificate - * thumbprint. - * @property {string} [provisioningState] The provisioning state of the Radius - * client root certificate resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] A unique read-only string that changes whenever - * the resource is updated. - */ -export interface P2SVpnServerConfigRadiusClientRootCertificate extends SubResource { - thumbprint?: string; - readonly provisioningState?: string; - name?: string; - etag?: string; -} - -/** - * @class - * Initializes a new instance of the P2SVpnServerConfiguration class. - * @constructor - * P2SVpnServerConfiguration Resource. - * - * @property {string} [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. - * @property {array} [vpnProtocols] vpnProtocols for the - * P2SVpnServerConfiguration. - * @property {array} [p2SVpnServerConfigVpnClientRootCertificates] VPN client - * root certificate of P2SVpnServerConfiguration. - * @property {array} [p2SVpnServerConfigVpnClientRevokedCertificates] VPN - * client revoked certificate of P2SVpnServerConfiguration. - * @property {array} [p2SVpnServerConfigRadiusServerRootCertificates] Radius - * Server root certificate of P2SVpnServerConfiguration. - * @property {array} [p2SVpnServerConfigRadiusClientRootCertificates] Radius - * client root certificate of P2SVpnServerConfiguration. - * @property {array} [vpnClientIpsecPolicies] VpnClientIpsecPolicies for - * P2SVpnServerConfiguration. - * @property {string} [radiusServerAddress] The radius server address property - * of the P2SVpnServerConfiguration resource for point to site client - * connection. - * @property {string} [radiusServerSecret] The radius secret property of the - * P2SVpnServerConfiguration resource for for point to site client connection. - * @property {string} [provisioningState] The provisioning state of the - * P2SVpnServerConfiguration resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {array} [p2SVpnGateways] - * @property {string} [p2SVpnServerConfigurationPropertiesEtag] A unique - * read-only string that changes whenever the resource is updated. - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ -export interface P2SVpnServerConfiguration extends SubResource { - p2SVpnServerConfigurationPropertiesName?: string; - vpnProtocols?: string[]; - p2SVpnServerConfigVpnClientRootCertificates?: P2SVpnServerConfigVpnClientRootCertificate[]; - p2SVpnServerConfigVpnClientRevokedCertificates?: P2SVpnServerConfigVpnClientRevokedCertificate[]; - p2SVpnServerConfigRadiusServerRootCertificates?: P2SVpnServerConfigRadiusServerRootCertificate[]; - p2SVpnServerConfigRadiusClientRootCertificates?: P2SVpnServerConfigRadiusClientRootCertificate[]; - vpnClientIpsecPolicies?: IpsecPolicy[]; - radiusServerAddress?: string; - radiusServerSecret?: string; - readonly provisioningState?: string; - readonly p2SVpnGateways?: SubResource[]; - p2SVpnServerConfigurationPropertiesEtag?: string; - name?: string; - readonly etag?: string; -} - -/** - * @class - * Initializes a new instance of the VirtualWAN class. - * @constructor * VirtualWAN Resource. - * - * @property {boolean} [disableVpnEncryption] Vpn encryption to be disabled or - * not. - * @property {array} [virtualHubs] List of VirtualHubs in the VirtualWAN. - * @property {array} [vpnSites] - * @property {string} [securityProviderName] The Security Provider name. - * @property {boolean} [allowBranchToBranchTraffic] True if branch to branch - * traffic is allowed. - * @property {boolean} [allowVnetToVnetTraffic] True if Vnet to Vnet traffic is - * allowed. - * @property {string} [office365LocalBreakoutCategory] The office local - * breakout category. Possible values include: 'Optimize', 'OptimizeAndAllow', - * 'All', 'None' - * @property {array} [p2SVpnServerConfigurations] list of all - * P2SVpnServerConfigurations associated with the virtual wan. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ +*/ export interface VirtualWAN extends Resource { + /** + * Vpn encryption to be disabled or not. + */ disableVpnEncryption?: boolean; + /** + * List of VirtualHubs in the VirtualWAN. + */ readonly virtualHubs?: SubResource[]; readonly vpnSites?: SubResource[]; - securityProviderName?: string; - allowBranchToBranchTraffic?: boolean; - allowVnetToVnetTraffic?: boolean; - office365LocalBreakoutCategory?: string; - p2SVpnServerConfigurations?: P2SVpnServerConfiguration[]; + /** + * The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' + */ provisioningState?: string; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the DeviceProperties class. - * @constructor * List of properties of the device. - * - * @property {string} [deviceVendor] Name of the device Vendor. - * @property {string} [deviceModel] Model of the device. - * @property {number} [linkSpeedInMbps] Link speed. - */ +*/ export interface DeviceProperties { + /** + * Name of the device Vendor. + */ deviceVendor?: string; + /** + * Model of the device. + */ deviceModel?: string; + /** + * Link speed. + */ linkSpeedInMbps?: number; } /** - * @class - * Initializes a new instance of the VpnSite class. - * @constructor * VpnSite Resource. - * - * @property {object} [virtualWan] The VirtualWAN to which the vpnSite belongs - * @property {string} [virtualWan.id] Resource ID. - * @property {object} [deviceProperties] The device properties - * @property {string} [deviceProperties.deviceVendor] Name of the device - * Vendor. - * @property {string} [deviceProperties.deviceModel] Model of the device. - * @property {number} [deviceProperties.linkSpeedInMbps] Link speed. - * @property {string} [ipAddress] The ip-address for the vpn-site. - * @property {string} [siteKey] The key for vpn-site that can be used for - * connections. - * @property {object} [addressSpace] The AddressSpace that contains an array of - * IP address ranges. - * @property {array} [addressSpace.addressPrefixes] A list of address blocks - * reserved for this virtual network in CIDR notation. - * @property {object} [bgpProperties] The set of bgp properties. - * @property {number} [bgpProperties.asn] The BGP speaker's ASN. - * @property {string} [bgpProperties.bgpPeeringAddress] The BGP peering address - * and BGP identifier of this BGP speaker. - * @property {number} [bgpProperties.peerWeight] The weight added to routes - * learned from this BGP speaker. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' - * @property {boolean} [isSecuritySite] IsSecuritySite flag - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ +*/ export interface VpnSite extends Resource { - virtualWan?: SubResource; + /** + * The VirtualWAN to which the vpnSite belongs + */ + virtualWAN?: SubResource; + /** + * The device properties + */ deviceProperties?: DeviceProperties; + /** + * The ip-address for the vpn-site. + */ ipAddress?: string; + /** + * The key for vpn-site that can be used for connections. + */ siteKey?: string; + /** + * The AddressSpace that contains an array of IP address ranges. + */ addressSpace?: AddressSpace; + /** + * The set of bgp properties. + */ bgpProperties?: BgpSettings; + /** + * The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' + */ provisioningState?: string; - isSecuritySite?: boolean; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the GetVpnSitesConfigurationRequest class. - * @constructor * List of Vpn-Sites - * - * @property {array} [vpnSites] List of resource-ids of the vpn-sites for which - * config is to be downloaded. - * @property {string} [outputBlobSasUrl] The sas-url to download the - * configurations for vpn-sites - */ +*/ export interface GetVpnSitesConfigurationRequest { - vpnSites?: string[]; + /** + * List of resource-ids of the vpn-sites for which config is to be downloaded. + */ + vpnSites?: SubResource[]; + /** + * The sas-url to download the configurations for vpn-sites + */ outputBlobSasUrl?: string; } /** - * @class - * Initializes a new instance of the HubVirtualNetworkConnection class. - * @constructor * HubVirtualNetworkConnection Resource. - * - * @property {object} [remoteVirtualNetwork] Reference to the remote virtual - * network. - * @property {string} [remoteVirtualNetwork.id] Resource ID. - * @property {boolean} [allowHubToRemoteVnetTransit] VirtualHub to RemoteVnet - * transit to enabled or not. - * @property {boolean} [allowRemoteVnetToUseHubVnetGateways] Allow RemoteVnet - * to use Virtual Hub's gateways. - * @property {boolean} [enableInternetSecurity] Enable internet security - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ -export interface HubVirtualNetworkConnection extends SubResource { +*/ +export interface HubVirtualNetworkConnection extends Resource { + /** + * Reference to the remote virtual network. + */ remoteVirtualNetwork?: SubResource; + /** + * VirtualHub to RemoteVnet transit to enabled or not. + */ allowHubToRemoteVnetTransit?: boolean; + /** + * Allow RemoteVnet to use Virtual Hub's gateways. + */ allowRemoteVnetToUseHubVnetGateways?: boolean; - enableInternetSecurity?: boolean; + /** + * The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' + */ provisioningState?: string; - name?: string; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the VirtualHubRoute class. - * @constructor - * VirtualHub route - * - * @property {array} [addressPrefixes] list of all addressPrefixes. - * @property {string} [nextHopIpAddress] NextHop ip address. - */ -export interface VirtualHubRoute { - addressPrefixes?: string[]; - nextHopIpAddress?: string; -} - -/** - * @class - * Initializes a new instance of the VirtualHubRouteTable class. - * @constructor - * VirtualHub route table - * - * @property {array} [routes] list of all routes. - */ -export interface VirtualHubRouteTable { - routes?: VirtualHubRoute[]; -} - -/** - * @class - * Initializes a new instance of the VirtualHub class. - * @constructor * VirtualHub Resource. - * - * @property {object} [virtualWan] The VirtualWAN to which the VirtualHub - * belongs - * @property {string} [virtualWan.id] Resource ID. - * @property {object} [vpnGateway] The VpnGateway associated with this - * VirtualHub - * @property {string} [vpnGateway.id] Resource ID. - * @property {object} [p2SVpnGateway] The P2SVpnGateway associated with this - * VirtualHub - * @property {string} [p2SVpnGateway.id] Resource ID. - * @property {object} [expressRouteGateway] The expressRouteGateway associated - * with this VirtualHub - * @property {string} [expressRouteGateway.id] Resource ID. - * @property {array} [virtualNetworkConnections] list of all vnet connections - * with this VirtualHub. - * @property {string} [addressPrefix] Address-prefix for this VirtualHub. - * @property {object} [routeTable] The routeTable associated with this virtual - * hub. - * @property {array} [routeTable.routes] list of all routes. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ +*/ export interface VirtualHub extends Resource { + /** + * The VirtualWAN to which the VirtualHub belongs + */ virtualWan?: SubResource; - vpnGateway?: SubResource; - p2SVpnGateway?: SubResource; - expressRouteGateway?: SubResource; - virtualNetworkConnections?: HubVirtualNetworkConnection[]; + /** + * list of all vnet connections with this VirtualHub. + */ + hubVirtualNetworkConnections?: HubVirtualNetworkConnection[]; + /** + * Address-prefix for this VirtualHub. + */ addressPrefix?: string; - routeTable?: VirtualHubRouteTable; + /** + * The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' + */ provisioningState?: string; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the VpnConnection class. - * @constructor * VpnConnection Resource. - * - * @property {object} [remoteVpnSite] Id of the connected vpn site. - * @property {string} [remoteVpnSite.id] Resource ID. - * @property {number} [routingWeight] routing weight for vpn connection. - * @property {string} [connectionStatus] The connection status. Possible values - * include: 'Unknown', 'Connecting', 'Connected', 'NotConnected' - * @property {string} [vpnConnectionProtocolType] Connection protocol used for - * this connection. Possible values include: 'IKEv2', 'IKEv1' - * @property {number} [ingressBytesTransferred] Ingress bytes transferred. - * @property {number} [egressBytesTransferred] Egress bytes transferred. - * @property {number} [connectionBandwidth] Expected bandwidth in MBPS. - * @property {string} [sharedKey] SharedKey for the vpn connection. - * @property {boolean} [enableBgp] EnableBgp flag - * @property {array} [ipsecPolicies] The IPSec Policies to be considered by - * this connection. - * @property {boolean} [enableRateLimiting] EnableBgp flag - * @property {boolean} [enableInternetSecurity] Enable internet security - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ -export interface VpnConnection extends SubResource { +*/ +export interface VpnConnection extends Resource { + /** + * Id of the connected vpn site. + */ remoteVpnSite?: SubResource; + /** + * routing weight for vpn connection. + */ routingWeight?: number; + /** + * The connection status. Possible values include: 'Unknown', 'Connecting', 'Connected', + * 'NotConnected' + */ connectionStatus?: string; - vpnConnectionProtocolType?: string; + /** + * Ingress bytes transferred. + */ readonly ingressBytesTransferred?: number; + /** + * Egress bytes transferred. + */ readonly egressBytesTransferred?: number; - connectionBandwidth?: number; + /** + * Expected bandwidth in MBPS. + */ + readonly connectionBandwidthInMbps?: number; + /** + * SharedKey for the vpn connection. + */ sharedKey?: string; + /** + * EnableBgp flag + */ enableBgp?: boolean; + /** + * The IPSec Policies to be considered by this connection. + */ ipsecPolicies?: IpsecPolicy[]; - enableRateLimiting?: boolean; - enableInternetSecurity?: boolean; + /** + * The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' + */ provisioningState?: string; - name?: string; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the VpnGateway class. - * @constructor + * Policies for vpn gateway. +*/ +export interface Policies { + /** + * True if branch to branch traffic is allowed. + */ + allowBranchToBranchTraffic?: boolean; + /** + * True if Vnet to Vnet traffic is allowed. + */ + allowVnetToVnetTraffic?: boolean; +} + +/** * VpnGateway Resource. - * - * @property {object} [virtualHub] The VirtualHub to which the gateway belongs - * @property {string} [virtualHub.id] Resource ID. - * @property {array} [connections] list of all vpn connections to the gateway. - * @property {object} [bgpSettings] Local network gateway's BGP speaker - * settings. - * @property {number} [bgpSettings.asn] The BGP speaker's ASN. - * @property {string} [bgpSettings.bgpPeeringAddress] The BGP peering address - * and BGP identifier of this BGP speaker. - * @property {number} [bgpSettings.peerWeight] The weight added to routes - * learned from this BGP speaker. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' - * @property {number} [vpnGatewayScaleUnit] The scale unit for this vpn - * gateway. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ +*/ export interface VpnGateway extends Resource { + /** + * The VirtualHub to which the gateway belongs + */ virtualHub?: SubResource; + /** + * list of all vpn connections to the gateway. + */ connections?: VpnConnection[]; + /** + * Local network gateway's BGP speaker settings. + */ bgpSettings?: BgpSettings; + /** + * The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' + */ provisioningState?: string; - vpnGatewayScaleUnit?: number; + /** + * The policies applied to this vpn gateway. + */ + policies?: Policies; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ readonly etag?: string; } /** - * @class - * Initializes a new instance of the VpnSiteId class. - * @constructor * VpnSite Resource. - * - * @property {string} [vpnSite] The resource-uri of the vpn-site for which - * config is to be fetched. - */ +*/ export interface VpnSiteId { + /** + * The resource-uri of the vpn-site for which config is to be fetched. + */ readonly vpnSite?: string; } /** - * @class - * Initializes a new instance of the VirtualWanSecurityProvider class. - * @constructor - * Collection of SecurityProviders. - * - * @property {string} [name] Name of the security provider. - * @property {string} [url] Url of the security provider. - * @property {string} [type] Name of the security provider. Possible values - * include: 'External', 'Native' - */ -export interface VirtualWanSecurityProvider { - name?: string; - url?: string; - type?: string; -} - -/** - * @class - * Initializes a new instance of the VirtualWanSecurityProviders class. - * @constructor - * Collection of SecurityProviders. - * - * @property {array} [supportedProviders] - */ -export interface VirtualWanSecurityProviders { - supportedProviders?: VirtualWanSecurityProvider[]; -} - -/** - * @class - * Initializes a new instance of the VpnClientConnectionHealth class. - * @constructor - * VpnClientConnectionHealth properties - * - * @property {number} [totalIngressBytesTransferred] Total of the Ingress Bytes - * Transferred in this P2S Vpn connection - * @property {number} [totalEgressBytesTransferred] Total of the Egress Bytes - * Transferred in this connection - * @property {number} [vpnClientConnectionsCount] The total of p2s vpn clients - * connected at this time to this P2SVpnGateway. - * @property {array} [allocatedIpAddresses] List of allocated ip addresses to - * the connected p2s vpn clients. - */ -export interface VpnClientConnectionHealth { - readonly totalIngressBytesTransferred?: number; - readonly totalEgressBytesTransferred?: number; - vpnClientConnectionsCount?: number; - allocatedIpAddresses?: string[]; -} - -/** - * @class - * Initializes a new instance of the P2SVpnGateway class. - * @constructor - * P2SVpnGateway Resource. - * - * @property {object} [virtualHub] The VirtualHub to which the gateway belongs - * @property {string} [virtualHub.id] Resource ID. - * @property {string} [provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' - * @property {number} [vpnGatewayScaleUnit] The scale unit for this p2s vpn - * gateway. - * @property {object} [p2SVpnServerConfiguration] The P2SVpnServerConfiguration - * to which the p2sVpnGateway is attached to. - * @property {string} [p2SVpnServerConfiguration.id] Resource ID. - * @property {object} [vpnClientAddressPool] The reference of the address space - * resource which represents Address space for P2S VpnClient. - * @property {array} [vpnClientAddressPool.addressPrefixes] A list of address - * blocks reserved for this virtual network in CIDR notation. - * @property {object} [vpnClientConnectionHealth] All P2S vpnclients' - * connection health status. - * @property {number} [vpnClientConnectionHealth.totalIngressBytesTransferred] - * Total of the Ingress Bytes Transferred in this P2S Vpn connection - * @property {number} [vpnClientConnectionHealth.totalEgressBytesTransferred] - * Total of the Egress Bytes Transferred in this connection - * @property {number} [vpnClientConnectionHealth.vpnClientConnectionsCount] The - * total of p2s vpn clients connected at this time to this P2SVpnGateway. - * @property {array} [vpnClientConnectionHealth.allocatedIpAddresses] List of - * allocated ip addresses to the connected p2s vpn clients. - * @property {string} [etag] Gets a unique read-only string that changes - * whenever the resource is updated. - */ -export interface P2SVpnGateway extends Resource { - virtualHub?: SubResource; - provisioningState?: string; - vpnGatewayScaleUnit?: number; - p2SVpnServerConfiguration?: SubResource; - vpnClientAddressPool?: AddressSpace; - readonly vpnClientConnectionHealth?: VpnClientConnectionHealth; - readonly etag?: string; -} - -/** - * @class - * Initializes a new instance of the P2SVpnProfileParameters class. - * @constructor - * Vpn Client Parameters for package generation - * - * @property {string} [authenticationMethod] VPN client Authentication Method. - * Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values include: - * 'EAPTLS', 'EAPMSCHAPv2' - */ -export interface P2SVpnProfileParameters { - authenticationMethod?: string; -} - -/** - * @class - * Initializes a new instance of the VpnProfileResponse class. - * @constructor - * Vpn Profile Response for package generation - * - * @property {string} [profileUrl] URL to the VPN profile - */ -export interface VpnProfileResponse { - profileUrl?: string; + * Response for ListAzureFirewalls API service call. +*/ +export interface AzureFirewallListResult extends Array { + /** + * URL to get the next set of results. + */ + nextLink?: string; } - /** - * @class - * Initializes a new instance of the ApplicationGatewayListResult class. - * @constructor * Response for ListApplicationGateways API service call. - * - * @property {string} [nextLink] URL to get the next set of results. - */ +*/ export interface ApplicationGatewayListResult extends Array { + /** + * URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ApplicationGatewayAvailableSslPredefinedPolicies class. - * @constructor * Response for ApplicationGatewayAvailableSslOptions API service call. - * - * @property {string} [nextLink] URL to get the next set of results. - */ -export interface ApplicationGatewayAvailableSslPredefinedPolicies extends Array { +*/ +export interface ApplicationGatewayAvailableSslPredefinedPolicies extends +Array { + /** + * URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ApplicationSecurityGroupListResult class. - * @constructor * A list of application security groups. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface ApplicationSecurityGroupListResult extends Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the AvailableDelegationsResult class. - * @constructor - * An array of available delegations. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface AvailableDelegationsResult extends Array { - readonly nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the AzureFirewallListResult class. - * @constructor - * Response for ListAzureFirewalls API service call. - * - * @property {string} [nextLink] URL to get the next set of results. - */ -export interface AzureFirewallListResult extends Array { - nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the AzureFirewallFqdnTagListResult class. - * @constructor - * Response for ListAzureFirewallFqdnTags API service call. - * - * @property {string} [nextLink] URL to get the next set of results. - */ -export interface AzureFirewallFqdnTagListResult extends Array { - nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the DdosProtectionPlanListResult class. - * @constructor * A list of DDoS protection plans. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface DdosProtectionPlanListResult extends Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the EndpointServicesListResult class. - * @constructor * Response for the ListAvailableEndpointServices API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface EndpointServicesListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the AuthorizationListResult class. - * @constructor - * Response for ListAuthorizations API service call retrieves all - * authorizations that belongs to an ExpressRouteCircuit. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ + * Response for ListAuthorizations API service call retrieves all authorizations that belongs to an + * ExpressRouteCircuit. +*/ export interface AuthorizationListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCircuitPeeringListResult class. - * @constructor - * Response for ListPeering API service call retrieves all peerings that belong - * to an ExpressRouteCircuit. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ + * Response for ListPeering API service call retrieves all peerings that belong to an + * ExpressRouteCircuit. +*/ export interface ExpressRouteCircuitPeeringListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCircuitConnectionListResult class. - * @constructor - * Response for ListConnections API service call retrieves all global reach - * connections that belongs to a Private Peering for an ExpressRouteCircuit. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface ExpressRouteCircuitConnectionListResult extends Array { - nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the ExpressRouteCircuitListResult class. - * @constructor * Response for ListExpressRouteCircuit API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface ExpressRouteCircuitListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteServiceProviderListResult class. - * @constructor * Response for the ListExpressRouteServiceProvider API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface ExpressRouteServiceProviderListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCrossConnectionListResult class. - * @constructor * Response for ListExpressRouteCrossConnection API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface ExpressRouteCrossConnectionListResult extends Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the ExpressRouteCrossConnectionPeeringList class. - * @constructor - * Response for ListPeering API service call retrieves all peerings that belong - * to an ExpressRouteCrossConnection. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface ExpressRouteCrossConnectionPeeringList extends Array { - readonly nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the ExpressRoutePortsLocationListResult class. - * @constructor - * @summary ExpressRoutePorts Location List Result - * - * Response for ListExpressRoutePortsLocations API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface ExpressRoutePortsLocationListResult extends Array { - nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the ExpressRoutePortListResult class. - * @constructor - * @summary ExpressRoute Port List Result - * - * Response for ListExpressRoutePorts API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface ExpressRoutePortListResult extends Array { - nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the ExpressRouteLinkListResult class. - * @constructor - * @summary ExpressRouteLink List Result - * - * Response for ListExpressRouteLinks API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface ExpressRouteLinkListResult extends Array { - nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the InterfaceEndpointListResult class. - * @constructor - * Response for the ListInterfaceEndpoints API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface InterfaceEndpointListResult extends Array { + * Response for ListPeering API service call retrieves all peerings that belong to an + * ExpressRouteCrossConnection. +*/ +export interface ExpressRouteCrossConnectionPeeringList extends +Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the LoadBalancerListResult class. - * @constructor * Response for ListLoadBalancers API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface LoadBalancerListResult extends Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the LoadBalancerBackendAddressPoolListResult class. - * @constructor * Response for ListBackendAddressPool API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface LoadBalancerBackendAddressPoolListResult extends Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the LoadBalancerFrontendIPConfigurationListResult class. - * @constructor * Response for ListFrontendIPConfiguration API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface LoadBalancerFrontendIPConfigurationListResult extends Array { +*/ +export interface LoadBalancerFrontendIPConfigurationListResult extends +Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the InboundNatRuleListResult class. - * @constructor * Response for ListInboundNatRule API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface InboundNatRuleListResult extends Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the LoadBalancerLoadBalancingRuleListResult class. - * @constructor * Response for ListLoadBalancingRule API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface LoadBalancerLoadBalancingRuleListResult extends Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the LoadBalancerOutboundRuleListResult class. - * @constructor - * Response for ListOutboundRule API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface LoadBalancerOutboundRuleListResult extends Array { - readonly nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the NetworkInterfaceListResult class. - * @constructor * Response for the ListNetworkInterface API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface NetworkInterfaceListResult extends Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the LoadBalancerProbeListResult class. - * @constructor * Response for ListProbe API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface LoadBalancerProbeListResult extends Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the NetworkInterfaceIPConfigurationListResult class. - * @constructor * Response for list ip configurations API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface NetworkInterfaceIPConfigurationListResult extends Array { +*/ +export interface NetworkInterfaceIPConfigurationListResult extends +Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the NetworkInterfaceLoadBalancerListResult class. - * @constructor * Response for list ip configurations API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface NetworkInterfaceLoadBalancerListResult extends Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the NetworkInterfaceTapConfigurationListResult class. - * @constructor - * Response for list tap configurations API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface NetworkInterfaceTapConfigurationListResult extends Array { - readonly nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the NetworkProfileListResult class. - * @constructor - * Response for ListNetworkProfiles API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface NetworkProfileListResult extends Array { - nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the NetworkSecurityGroupListResult class. - * @constructor * Response for ListNetworkSecurityGroups API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface NetworkSecurityGroupListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the SecurityRuleListResult class. - * @constructor - * Response for ListSecurityRule API service call. Retrieves all security rules - * that belongs to a network security group. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ + * Response for ListSecurityRule API service call. Retrieves all security rules that belongs to a + * network security group. +*/ export interface SecurityRuleListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the NetworkWatcherListResult class. - * @constructor * List of network watcher resources. - * - */ +*/ export interface NetworkWatcherListResult extends Array { } /** - * @class - * Initializes a new instance of the PacketCaptureListResult class. - * @constructor * List of packet capture sessions. - * - */ +*/ export interface PacketCaptureListResult extends Array { } /** - * @class - * Initializes a new instance of the ConnectionMonitorListResult class. - * @constructor * List of connection monitors. - * - */ +*/ export interface ConnectionMonitorListResult extends Array { } /** - * @class - * Initializes a new instance of the OperationListResult class. - * @constructor - * Result of the request to list Network operations. It contains a list of - * operations and a URL link to get the next set of results. - * - * @property {string} [nextLink] URL to get the next set of operation list - * results if there are any. - */ + * Result of the request to list Network operations. It contains a list of operations and a URL + * link to get the next set of results. +*/ export interface OperationListResult extends Array { + /** + * URL to get the next set of operation list results if there are any. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the PublicIPAddressListResult class. - * @constructor * Response for ListPublicIpAddresses API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface PublicIPAddressListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the PublicIPPrefixListResult class. - * @constructor - * Response for ListPublicIpPrefixes API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface PublicIPPrefixListResult extends Array { - nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the RouteFilterListResult class. - * @constructor * Response for the ListRouteFilters API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface RouteFilterListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the RouteFilterRuleListResult class. - * @constructor * Response for the ListRouteFilterRules API service call - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface RouteFilterRuleListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the RouteTableListResult class. - * @constructor * Response for the ListRouteTable API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface RouteTableListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the RouteListResult class. - * @constructor * Response for the ListRoute API service call - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface RouteListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the BgpServiceCommunityListResult class. - * @constructor * Response for the ListServiceCommunity API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface BgpServiceCommunityListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ServiceEndpointPolicyListResult class. - * @constructor - * Response for ListServiceEndpointPolicies API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface ServiceEndpointPolicyListResult extends Array { - readonly nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the ServiceEndpointPolicyDefinitionListResult class. - * @constructor - * Response for ListServiceEndpointPolicyDefinition API service call. Retrieves - * all service endpoint policy definition that belongs to a service endpoint - * policy. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface ServiceEndpointPolicyDefinitionListResult extends Array { - nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the UsagesListResult class. - * @constructor * The list usages operation response. - * - * @property {string} [nextLink] URL to get the next set of results. - */ +*/ export interface UsagesListResult extends Array { + /** + * URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the VirtualNetworkListResult class. - * @constructor * Response for the ListVirtualNetworks API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface VirtualNetworkListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the VirtualNetworkListUsageResult class. - * @constructor * Response for the virtual networks GetUsage API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface VirtualNetworkListUsageResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the SubnetListResult class. - * @constructor - * Response for ListSubnets API service callRetrieves all subnet that belongs - * to a virtual network - * - * @property {string} [nextLink] The URL to get the next set of results. - */ + * Response for ListSubnets API service callRetrieves all subnet that belongs to a virtual network +*/ export interface SubnetListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the VirtualNetworkPeeringListResult class. - * @constructor - * Response for ListSubnets API service call. Retrieves all subnets that belong - * to a virtual network. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ + * Response for ListSubnets API service call. Retrieves all subnets that belong to a virtual + * network. +*/ export interface VirtualNetworkPeeringListResult extends Array { + /** + * The URL to get the next set of results. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the VirtualNetworkGatewayListResult class. - * @constructor * Response for the ListVirtualNetworkGateways API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface VirtualNetworkGatewayListResult extends Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the VirtualNetworkGatewayListConnectionsResult class. - * @constructor * Response for the VirtualNetworkGatewayListConnections API service call - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface VirtualNetworkGatewayListConnectionsResult extends Array { +*/ +export interface VirtualNetworkGatewayListConnectionsResult extends +Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the VirtualNetworkGatewayConnectionListResult class. - * @constructor * Response for the ListVirtualNetworkGatewayConnections API service call - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface VirtualNetworkGatewayConnectionListResult extends Array { +*/ +export interface VirtualNetworkGatewayConnectionListResult extends +Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the LocalNetworkGatewayListResult class. - * @constructor * Response for ListLocalNetworkGateways API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ +*/ export interface LocalNetworkGatewayListResult extends Array { + /** + * The URL to get the next set of results. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the VirtualNetworkTapListResult class. - * @constructor - * Response for ListVirtualNetworkTap API service call. - * - * @property {string} [nextLink] The URL to get the next set of results. - */ -export interface VirtualNetworkTapListResult extends Array { - nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the ListVirtualWANsResult class. - * @constructor - * Result of the request to list VirtualWANs. It contains a list of VirtualWANs - * and a URL nextLink to get the next set of results. - * - * @property {string} [nextLink] URL to get the next set of operation list - * results if there are any. - */ + * Result of the request to list VirtualWANs. It contains a list of VirtualWANs and a URL nextLink + * to get the next set of results. +*/ export interface ListVirtualWANsResult extends Array { + /** + * URL to get the next set of operation list results if there are any. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ListVpnSitesResult class. - * @constructor - * Result of the request to list VpnSites. It contains a list of VpnSites and a - * URL nextLink to get the next set of results. - * - * @property {string} [nextLink] URL to get the next set of operation list - * results if there are any. - */ + * Result of the request to list VpnSites. It contains a list of VpnSites and a URL nextLink to get + * the next set of results. +*/ export interface ListVpnSitesResult extends Array { + /** + * URL to get the next set of operation list results if there are any. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ListVirtualHubsResult class. - * @constructor - * Result of the request to list VirtualHubs. It contains a list of VirtualHubs - * and a URL nextLink to get the next set of results. - * - * @property {string} [nextLink] URL to get the next set of operation list - * results if there are any. - */ + * Result of the request to list VirtualHubs. It contains a list of VirtualHubs and a URL nextLink + * to get the next set of results. +*/ export interface ListVirtualHubsResult extends Array { + /** + * URL to get the next set of operation list results if there are any. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ListHubVirtualNetworkConnectionsResult class. - * @constructor - * List of HubVirtualNetworkConnections and a URL nextLink to get the next set - * of results. - * - * @property {string} [nextLink] URL to get the next set of operation list - * results if there are any. - */ -export interface ListHubVirtualNetworkConnectionsResult extends Array { + * List of HubVirtualNetworkConnections and a URL nextLink to get the next set of results. +*/ +export interface ListHubVirtualNetworkConnectionsResult extends Array +{ + /** + * URL to get the next set of operation list results if there are any. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ListVpnGatewaysResult class. - * @constructor - * Result of the request to list VpnGateways. It contains a list of VpnGateways - * and a URL nextLink to get the next set of results. - * - * @property {string} [nextLink] URL to get the next set of operation list - * results if there are any. - */ + * Result of the request to list VpnGateways. It contains a list of VpnGateways and a URL nextLink + * to get the next set of results. +*/ export interface ListVpnGatewaysResult extends Array { + /** + * URL to get the next set of operation list results if there are any. + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the ListVpnConnectionsResult class. - * @constructor - * Result of the request to list all vpn connections to a virtual wan vpn - * gateway. It contains a list of Vpn Connections and a URL nextLink to get the - * next set of results. - * - * @property {string} [nextLink] URL to get the next set of operation list - * results if there are any. - */ + * Result of the request to list all vpn connections to a virtual wan vpn gateway. It contains a + * list of Vpn Connections and a URL nextLink to get the next set of results. +*/ export interface ListVpnConnectionsResult extends Array { - nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the ListP2SVpnServerConfigurationsResult class. - * @constructor - * Result of the request to list all P2SVpnServerConfigurations associated to a - * VirtualWan. It contains a list of P2SVpnServerConfigurations and a URL - * nextLink to get the next set of results. - * - * @property {string} [nextLink] URL to get the next set of operation list - * results if there are any. - */ -export interface ListP2SVpnServerConfigurationsResult extends Array { - nextLink?: string; -} - -/** - * @class - * Initializes a new instance of the ListP2SVpnGatewaysResult class. - * @constructor - * Result of the request to list P2SVpnGateways. It contains a list of - * P2SVpnGateways and a URL nextLink to get the next set of results. - * - * @property {string} [nextLink] URL to get the next set of operation list - * results if there are any. - */ -export interface ListP2SVpnGatewaysResult extends Array { + /** + * URL to get the next set of operation list results if there are any. + */ nextLink?: string; } diff --git a/lib/services/networkManagement2/lib/models/index.js b/lib/services/networkManagement2/lib/models/index.js index c3ef882830..bd50b1261c 100644 --- a/lib/services/networkManagement2/lib/models/index.js +++ b/lib/services/networkManagement2/lib/models/index.js @@ -19,34 +19,32 @@ var msRestAzure = require('ms-rest-azure'); exports.BaseResource = msRestAzure.BaseResource; exports.CloudError = msRestAzure.CloudError; exports.SubResource = require('./subResource'); -exports.NetworkInterfaceTapConfiguration = require('./networkInterfaceTapConfiguration'); +exports.AzureFirewallIPConfiguration = require('./azureFirewallIPConfiguration'); +exports.AzureFirewallRCAction = require('./azureFirewallRCAction'); +exports.AzureFirewallApplicationRuleProtocol = require('./azureFirewallApplicationRuleProtocol'); +exports.AzureFirewallApplicationRule = require('./azureFirewallApplicationRule'); +exports.AzureFirewallApplicationRuleCollection = require('./azureFirewallApplicationRuleCollection'); +exports.AzureFirewallNetworkRule = require('./azureFirewallNetworkRule'); +exports.AzureFirewallNetworkRuleCollection = require('./azureFirewallNetworkRuleCollection'); exports.Resource = require('./resource'); +exports.AzureFirewall = require('./azureFirewall'); +exports.BackendAddressPool = require('./backendAddressPool'); +exports.InboundNatRule = require('./inboundNatRule'); exports.ApplicationSecurityGroup = require('./applicationSecurityGroup'); exports.SecurityRule = require('./securityRule'); -exports.EndpointService = require('./endpointService'); -exports.InterfaceEndpoint = require('./interfaceEndpoint'); exports.NetworkInterfaceDnsSettings = require('./networkInterfaceDnsSettings'); exports.NetworkInterface = require('./networkInterface'); exports.NetworkSecurityGroup = require('./networkSecurityGroup'); exports.Route = require('./route'); exports.RouteTable = require('./routeTable'); exports.ServiceEndpointPropertiesFormat = require('./serviceEndpointPropertiesFormat'); -exports.ServiceEndpointPolicyDefinition = require('./serviceEndpointPolicyDefinition'); -exports.ServiceEndpointPolicy = require('./serviceEndpointPolicy'); exports.PublicIPAddressSku = require('./publicIPAddressSku'); exports.PublicIPAddressDnsSettings = require('./publicIPAddressDnsSettings'); exports.IpTag = require('./ipTag'); exports.PublicIPAddress = require('./publicIPAddress'); exports.IPConfiguration = require('./iPConfiguration'); -exports.IPConfigurationProfile = require('./iPConfigurationProfile'); exports.ResourceNavigationLink = require('./resourceNavigationLink'); -exports.ServiceAssociationLink = require('./serviceAssociationLink'); -exports.Delegation = require('./delegation'); exports.Subnet = require('./subnet'); -exports.FrontendIPConfiguration = require('./frontendIPConfiguration'); -exports.VirtualNetworkTap = require('./virtualNetworkTap'); -exports.BackendAddressPool = require('./backendAddressPool'); -exports.InboundNatRule = require('./inboundNatRule'); exports.NetworkInterfaceIPConfiguration = require('./networkInterfaceIPConfiguration'); exports.ApplicationGatewayBackendAddress = require('./applicationGatewayBackendAddress'); exports.ApplicationGatewayBackendAddressPool = require('./applicationGatewayBackendAddressPool'); @@ -60,28 +58,20 @@ exports.ApplicationGatewaySku = require('./applicationGatewaySku'); exports.ApplicationGatewaySslPolicy = require('./applicationGatewaySslPolicy'); exports.ApplicationGatewayIPConfiguration = require('./applicationGatewayIPConfiguration'); exports.ApplicationGatewayAuthenticationCertificate = require('./applicationGatewayAuthenticationCertificate'); -exports.ApplicationGatewayTrustedRootCertificate = require('./applicationGatewayTrustedRootCertificate'); exports.ApplicationGatewaySslCertificate = require('./applicationGatewaySslCertificate'); exports.ApplicationGatewayFrontendIPConfiguration = require('./applicationGatewayFrontendIPConfiguration'); exports.ApplicationGatewayFrontendPort = require('./applicationGatewayFrontendPort'); -exports.ApplicationGatewayCustomError = require('./applicationGatewayCustomError'); exports.ApplicationGatewayHttpListener = require('./applicationGatewayHttpListener'); exports.ApplicationGatewayPathRule = require('./applicationGatewayPathRule'); exports.ApplicationGatewayProbeHealthResponseMatch = require('./applicationGatewayProbeHealthResponseMatch'); exports.ApplicationGatewayProbe = require('./applicationGatewayProbe'); exports.ApplicationGatewayRequestRoutingRule = require('./applicationGatewayRequestRoutingRule'); -exports.ApplicationGatewayHeaderConfiguration = require('./applicationGatewayHeaderConfiguration'); -exports.ApplicationGatewayRewriteRuleActionSet = require('./applicationGatewayRewriteRuleActionSet'); -exports.ApplicationGatewayRewriteRule = require('./applicationGatewayRewriteRule'); -exports.ApplicationGatewayRewriteRuleSet = require('./applicationGatewayRewriteRuleSet'); exports.ApplicationGatewayRedirectConfiguration = require('./applicationGatewayRedirectConfiguration'); exports.ApplicationGatewayUrlPathMap = require('./applicationGatewayUrlPathMap'); exports.ApplicationGatewayFirewallDisabledRuleGroup = require('./applicationGatewayFirewallDisabledRuleGroup'); -exports.ApplicationGatewayFirewallExclusion = require('./applicationGatewayFirewallExclusion'); exports.ApplicationGatewayWebApplicationFirewallConfiguration = require('./applicationGatewayWebApplicationFirewallConfiguration'); +exports.ApplicationGatewayAutoscaleBounds = require('./applicationGatewayAutoscaleBounds'); exports.ApplicationGatewayAutoscaleConfiguration = require('./applicationGatewayAutoscaleConfiguration'); -exports.ManagedServiceIdentityUserAssignedIdentitiesValue = require('./managedServiceIdentityUserAssignedIdentitiesValue'); -exports.ManagedServiceIdentity = require('./managedServiceIdentity'); exports.ApplicationGateway = require('./applicationGateway'); exports.ApplicationGatewayFirewallRule = require('./applicationGatewayFirewallRule'); exports.ApplicationGatewayFirewallRuleGroup = require('./applicationGatewayFirewallRuleGroup'); @@ -90,19 +80,6 @@ exports.ApplicationGatewayAvailableWafRuleSetsResult = require('./applicationGat exports.ApplicationGatewayAvailableSslOptions = require('./applicationGatewayAvailableSslOptions'); exports.ApplicationGatewaySslPredefinedPolicy = require('./applicationGatewaySslPredefinedPolicy'); exports.TagsObject = require('./tagsObject'); -exports.AvailableDelegation = require('./availableDelegation'); -exports.AzureFirewallIPConfiguration = require('./azureFirewallIPConfiguration'); -exports.AzureFirewallRCAction = require('./azureFirewallRCAction'); -exports.AzureFirewallApplicationRuleProtocol = require('./azureFirewallApplicationRuleProtocol'); -exports.AzureFirewallApplicationRule = require('./azureFirewallApplicationRule'); -exports.AzureFirewallApplicationRuleCollection = require('./azureFirewallApplicationRuleCollection'); -exports.AzureFirewallNatRCAction = require('./azureFirewallNatRCAction'); -exports.AzureFirewallNatRule = require('./azureFirewallNatRule'); -exports.AzureFirewallNatRuleCollection = require('./azureFirewallNatRuleCollection'); -exports.AzureFirewallNetworkRule = require('./azureFirewallNetworkRule'); -exports.AzureFirewallNetworkRuleCollection = require('./azureFirewallNetworkRuleCollection'); -exports.AzureFirewall = require('./azureFirewall'); -exports.AzureFirewallFqdnTag = require('./azureFirewallFqdnTag'); exports.DnsNameAvailabilityResult = require('./dnsNameAvailabilityResult'); exports.DdosProtectionPlan = require('./ddosProtectionPlan'); exports.EndpointServiceResult = require('./endpointServiceResult'); @@ -110,7 +87,6 @@ exports.ExpressRouteCircuitAuthorization = require('./expressRouteCircuitAuthori exports.ExpressRouteCircuitPeeringConfig = require('./expressRouteCircuitPeeringConfig'); exports.RouteFilterRule = require('./routeFilterRule'); exports.ExpressRouteCircuitStats = require('./expressRouteCircuitStats'); -exports.ExpressRouteConnectionId = require('./expressRouteConnectionId'); exports.ExpressRouteCircuitConnection = require('./expressRouteCircuitConnection'); exports.ExpressRouteCircuitPeering = require('./expressRouteCircuitPeering'); exports.RouteFilter = require('./routeFilter'); @@ -131,23 +107,12 @@ exports.ExpressRouteCrossConnectionsRoutesTableSummaryListResult = require('./ex exports.ExpressRouteCircuitReference = require('./expressRouteCircuitReference'); exports.ExpressRouteCrossConnectionPeering = require('./expressRouteCrossConnectionPeering'); exports.ExpressRouteCrossConnection = require('./expressRouteCrossConnection'); -exports.VirtualHubId = require('./virtualHubId'); -exports.ExpressRouteCircuitPeeringId = require('./expressRouteCircuitPeeringId'); -exports.ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds = require('./expressRouteGatewayPropertiesAutoScaleConfigurationBounds'); -exports.ExpressRouteGatewayPropertiesAutoScaleConfiguration = require('./expressRouteGatewayPropertiesAutoScaleConfiguration'); -exports.ExpressRouteConnection = require('./expressRouteConnection'); -exports.ExpressRouteGateway = require('./expressRouteGateway'); -exports.ExpressRouteGatewayList = require('./expressRouteGatewayList'); -exports.ExpressRouteConnectionList = require('./expressRouteConnectionList'); -exports.ExpressRoutePortsLocationBandwidths = require('./expressRoutePortsLocationBandwidths'); -exports.ExpressRoutePortsLocation = require('./expressRoutePortsLocation'); -exports.ExpressRouteLink = require('./expressRouteLink'); -exports.ExpressRoutePort = require('./expressRoutePort'); exports.LoadBalancerSku = require('./loadBalancerSku'); +exports.FrontendIPConfiguration = require('./frontendIPConfiguration'); exports.LoadBalancingRule = require('./loadBalancingRule'); exports.Probe = require('./probe'); exports.InboundNatPool = require('./inboundNatPool'); -exports.OutboundRule = require('./outboundRule'); +exports.OutboundNatRule = require('./outboundNatRule'); exports.LoadBalancer = require('./loadBalancer'); exports.ErrorDetails = require('./errorDetails'); exports.ErrorModel = require('./errorModel'); @@ -158,12 +123,6 @@ exports.EffectiveNetworkSecurityGroup = require('./effectiveNetworkSecurityGroup exports.EffectiveNetworkSecurityGroupListResult = require('./effectiveNetworkSecurityGroupListResult'); exports.EffectiveRoute = require('./effectiveRoute'); exports.EffectiveRouteListResult = require('./effectiveRouteListResult'); -exports.ContainerNetworkInterfaceConfiguration = require('./containerNetworkInterfaceConfiguration'); -exports.Container = require('./container'); -exports.ContainerNetworkInterfaceIpConfiguration = require('./containerNetworkInterfaceIpConfiguration'); -exports.ContainerNetworkInterface = require('./containerNetworkInterface'); -exports.NetworkProfile = require('./networkProfile'); -exports.ErrorResponse = require('./errorResponse'); exports.NetworkWatcher = require('./networkWatcher'); exports.TopologyParameters = require('./topologyParameters'); exports.TopologyAssociation = require('./topologyAssociation'); @@ -191,7 +150,6 @@ exports.TroubleshootingRecommendedActions = require('./troubleshootingRecommende exports.TroubleshootingDetails = require('./troubleshootingDetails'); exports.TroubleshootingResult = require('./troubleshootingResult'); exports.RetentionPolicyParameters = require('./retentionPolicyParameters'); -exports.FlowLogFormatParameters = require('./flowLogFormatParameters'); exports.FlowLogStatusParameters = require('./flowLogStatusParameters'); exports.TrafficAnalyticsConfigurationProperties = require('./trafficAnalyticsConfigurationProperties'); exports.TrafficAnalyticsProperties = require('./trafficAnalyticsProperties'); @@ -222,14 +180,6 @@ exports.ConnectionMonitor = require('./connectionMonitor'); exports.ConnectionMonitorResult = require('./connectionMonitorResult'); exports.ConnectionStateSnapshot = require('./connectionStateSnapshot'); exports.ConnectionMonitorQueryResult = require('./connectionMonitorQueryResult'); -exports.NetworkConfigurationDiagnosticProfile = require('./networkConfigurationDiagnosticProfile'); -exports.NetworkConfigurationDiagnosticParameters = require('./networkConfigurationDiagnosticParameters'); -exports.MatchedRule = require('./matchedRule'); -exports.NetworkSecurityRulesEvaluationResult = require('./networkSecurityRulesEvaluationResult'); -exports.EvaluatedNetworkSecurityGroup = require('./evaluatedNetworkSecurityGroup'); -exports.NetworkSecurityGroupResult = require('./networkSecurityGroupResult'); -exports.NetworkConfigurationDiagnosticResult = require('./networkConfigurationDiagnosticResult'); -exports.NetworkConfigurationDiagnosticResponse = require('./networkConfigurationDiagnosticResponse'); exports.OperationDisplay = require('./operationDisplay'); exports.Availability = require('./availability'); exports.Dimension = require('./dimension'); @@ -237,9 +187,6 @@ exports.MetricSpecification = require('./metricSpecification'); exports.LogSpecification = require('./logSpecification'); exports.OperationPropertiesFormatServiceSpecification = require('./operationPropertiesFormatServiceSpecification'); exports.Operation = require('./operation'); -exports.PublicIPPrefixSku = require('./publicIPPrefixSku'); -exports.ReferencedPublicIpAddress = require('./referencedPublicIpAddress'); -exports.PublicIPPrefix = require('./publicIPPrefix'); exports.PatchRouteFilterRule = require('./patchRouteFilterRule'); exports.PatchRouteFilter = require('./patchRouteFilter'); exports.BGPCommunity = require('./bGPCommunity'); @@ -275,59 +222,37 @@ exports.VpnClientIPsecParameters = require('./vpnClientIPsecParameters'); exports.VirtualNetworkConnectionGatewayReference = require('./virtualNetworkConnectionGatewayReference'); exports.VirtualNetworkGatewayConnectionListEntity = require('./virtualNetworkGatewayConnectionListEntity'); exports.VpnDeviceScriptParameters = require('./vpnDeviceScriptParameters'); -exports.P2SVpnServerConfigVpnClientRootCertificate = require('./p2SVpnServerConfigVpnClientRootCertificate'); -exports.P2SVpnServerConfigVpnClientRevokedCertificate = require('./p2SVpnServerConfigVpnClientRevokedCertificate'); -exports.P2SVpnServerConfigRadiusServerRootCertificate = require('./p2SVpnServerConfigRadiusServerRootCertificate'); -exports.P2SVpnServerConfigRadiusClientRootCertificate = require('./p2SVpnServerConfigRadiusClientRootCertificate'); -exports.P2SVpnServerConfiguration = require('./p2SVpnServerConfiguration'); exports.VirtualWAN = require('./virtualWAN'); exports.DeviceProperties = require('./deviceProperties'); exports.VpnSite = require('./vpnSite'); exports.GetVpnSitesConfigurationRequest = require('./getVpnSitesConfigurationRequest'); exports.HubVirtualNetworkConnection = require('./hubVirtualNetworkConnection'); -exports.VirtualHubRoute = require('./virtualHubRoute'); -exports.VirtualHubRouteTable = require('./virtualHubRouteTable'); exports.VirtualHub = require('./virtualHub'); exports.VpnConnection = require('./vpnConnection'); +exports.Policies = require('./policies'); exports.VpnGateway = require('./vpnGateway'); exports.VpnSiteId = require('./vpnSiteId'); -exports.VirtualWanSecurityProvider = require('./virtualWanSecurityProvider'); -exports.VirtualWanSecurityProviders = require('./virtualWanSecurityProviders'); -exports.VpnClientConnectionHealth = require('./vpnClientConnectionHealth'); -exports.P2SVpnGateway = require('./p2SVpnGateway'); -exports.P2SVpnProfileParameters = require('./p2SVpnProfileParameters'); -exports.VpnProfileResponse = require('./vpnProfileResponse'); +exports.AzureFirewallListResult = require('./azureFirewallListResult'); exports.ApplicationGatewayListResult = require('./applicationGatewayListResult'); exports.ApplicationGatewayAvailableSslPredefinedPolicies = require('./applicationGatewayAvailableSslPredefinedPolicies'); exports.ApplicationSecurityGroupListResult = require('./applicationSecurityGroupListResult'); -exports.AvailableDelegationsResult = require('./availableDelegationsResult'); -exports.AzureFirewallListResult = require('./azureFirewallListResult'); -exports.AzureFirewallFqdnTagListResult = require('./azureFirewallFqdnTagListResult'); exports.DdosProtectionPlanListResult = require('./ddosProtectionPlanListResult'); exports.EndpointServicesListResult = require('./endpointServicesListResult'); exports.AuthorizationListResult = require('./authorizationListResult'); exports.ExpressRouteCircuitPeeringListResult = require('./expressRouteCircuitPeeringListResult'); -exports.ExpressRouteCircuitConnectionListResult = require('./expressRouteCircuitConnectionListResult'); exports.ExpressRouteCircuitListResult = require('./expressRouteCircuitListResult'); exports.ExpressRouteServiceProviderListResult = require('./expressRouteServiceProviderListResult'); exports.ExpressRouteCrossConnectionListResult = require('./expressRouteCrossConnectionListResult'); exports.ExpressRouteCrossConnectionPeeringList = require('./expressRouteCrossConnectionPeeringList'); -exports.ExpressRoutePortsLocationListResult = require('./expressRoutePortsLocationListResult'); -exports.ExpressRoutePortListResult = require('./expressRoutePortListResult'); -exports.ExpressRouteLinkListResult = require('./expressRouteLinkListResult'); -exports.InterfaceEndpointListResult = require('./interfaceEndpointListResult'); exports.LoadBalancerListResult = require('./loadBalancerListResult'); exports.LoadBalancerBackendAddressPoolListResult = require('./loadBalancerBackendAddressPoolListResult'); exports.LoadBalancerFrontendIPConfigurationListResult = require('./loadBalancerFrontendIPConfigurationListResult'); exports.InboundNatRuleListResult = require('./inboundNatRuleListResult'); exports.LoadBalancerLoadBalancingRuleListResult = require('./loadBalancerLoadBalancingRuleListResult'); -exports.LoadBalancerOutboundRuleListResult = require('./loadBalancerOutboundRuleListResult'); exports.NetworkInterfaceListResult = require('./networkInterfaceListResult'); exports.LoadBalancerProbeListResult = require('./loadBalancerProbeListResult'); exports.NetworkInterfaceIPConfigurationListResult = require('./networkInterfaceIPConfigurationListResult'); exports.NetworkInterfaceLoadBalancerListResult = require('./networkInterfaceLoadBalancerListResult'); -exports.NetworkInterfaceTapConfigurationListResult = require('./networkInterfaceTapConfigurationListResult'); -exports.NetworkProfileListResult = require('./networkProfileListResult'); exports.NetworkSecurityGroupListResult = require('./networkSecurityGroupListResult'); exports.SecurityRuleListResult = require('./securityRuleListResult'); exports.NetworkWatcherListResult = require('./networkWatcherListResult'); @@ -335,14 +260,11 @@ exports.PacketCaptureListResult = require('./packetCaptureListResult'); exports.ConnectionMonitorListResult = require('./connectionMonitorListResult'); exports.OperationListResult = require('./operationListResult'); exports.PublicIPAddressListResult = require('./publicIPAddressListResult'); -exports.PublicIPPrefixListResult = require('./publicIPPrefixListResult'); exports.RouteFilterListResult = require('./routeFilterListResult'); exports.RouteFilterRuleListResult = require('./routeFilterRuleListResult'); exports.RouteTableListResult = require('./routeTableListResult'); exports.RouteListResult = require('./routeListResult'); exports.BgpServiceCommunityListResult = require('./bgpServiceCommunityListResult'); -exports.ServiceEndpointPolicyListResult = require('./serviceEndpointPolicyListResult'); -exports.ServiceEndpointPolicyDefinitionListResult = require('./serviceEndpointPolicyDefinitionListResult'); exports.UsagesListResult = require('./usagesListResult'); exports.VirtualNetworkListResult = require('./virtualNetworkListResult'); exports.VirtualNetworkListUsageResult = require('./virtualNetworkListUsageResult'); @@ -352,12 +274,9 @@ exports.VirtualNetworkGatewayListResult = require('./virtualNetworkGatewayListRe exports.VirtualNetworkGatewayListConnectionsResult = require('./virtualNetworkGatewayListConnectionsResult'); exports.VirtualNetworkGatewayConnectionListResult = require('./virtualNetworkGatewayConnectionListResult'); exports.LocalNetworkGatewayListResult = require('./localNetworkGatewayListResult'); -exports.VirtualNetworkTapListResult = require('./virtualNetworkTapListResult'); exports.ListVirtualWANsResult = require('./listVirtualWANsResult'); exports.ListVpnSitesResult = require('./listVpnSitesResult'); exports.ListVirtualHubsResult = require('./listVirtualHubsResult'); exports.ListHubVirtualNetworkConnectionsResult = require('./listHubVirtualNetworkConnectionsResult'); exports.ListVpnGatewaysResult = require('./listVpnGatewaysResult'); exports.ListVpnConnectionsResult = require('./listVpnConnectionsResult'); -exports.ListP2SVpnServerConfigurationsResult = require('./listP2SVpnServerConfigurationsResult'); -exports.ListP2SVpnGatewaysResult = require('./listP2SVpnGatewaysResult'); diff --git a/lib/services/networkManagement2/lib/models/ipTag.js b/lib/services/networkManagement2/lib/models/ipTag.js index 47fab3d90f..56bc5430f7 100644 --- a/lib/services/networkManagement2/lib/models/ipTag.js +++ b/lib/services/networkManagement2/lib/models/ipTag.js @@ -11,7 +11,7 @@ 'use strict'; /** - * Contains the IpTag associated with the object + * Contains the IpTag associated with the public IP address * */ class IpTag { diff --git a/lib/services/networkManagement2/lib/models/loadBalancer.js b/lib/services/networkManagement2/lib/models/loadBalancer.js index ae646db2c0..535c983997 100644 --- a/lib/services/networkManagement2/lib/models/loadBalancer.js +++ b/lib/services/networkManagement2/lib/models/loadBalancer.js @@ -46,7 +46,7 @@ class LoadBalancer extends models['Resource'] { * 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. - * @property {array} [outboundRules] The outbound rules. + * @property {array} [outboundNatRules] The outbound NAT rules. * @property {string} [resourceGuid] The resource GUID property of the load * balancer resource. * @property {string} [provisioningState] Gets the provisioning state of the @@ -215,17 +215,17 @@ class LoadBalancer extends models['Resource'] { } } }, - outboundRules: { + outboundNatRules: { required: false, - serializedName: 'properties.outboundRules', + serializedName: 'properties.outboundNatRules', type: { name: 'Sequence', element: { required: false, - serializedName: 'OutboundRuleElementType', + serializedName: 'OutboundNatRuleElementType', type: { name: 'Composite', - className: 'OutboundRule' + className: 'OutboundNatRule' } } } diff --git a/lib/services/networkManagement2/lib/models/loadBalancingRule.js b/lib/services/networkManagement2/lib/models/loadBalancingRule.js index 5b6f1b769b..87e33760f9 100644 --- a/lib/services/networkManagement2/lib/models/loadBalancingRule.js +++ b/lib/services/networkManagement2/lib/models/loadBalancingRule.js @@ -49,9 +49,6 @@ class LoadBalancingRule extends models['SubResource'] { * 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. - * @property {boolean} [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. * @property {boolean} [disableOutboundSnat] Configures SNAT for the VMs in * the backend pool to use the publicIP address specified in the frontend of * the load balancing rule. @@ -154,13 +151,6 @@ class LoadBalancingRule extends models['SubResource'] { name: 'Boolean' } }, - enableTcpReset: { - required: false, - serializedName: 'properties.enableTcpReset', - type: { - name: 'Boolean' - } - }, disableOutboundSnat: { required: false, serializedName: 'properties.disableOutboundSnat', diff --git a/lib/services/networkManagement2/lib/models/networkInterface.js b/lib/services/networkManagement2/lib/models/networkInterface.js index 69b084a3f8..9de390f651 100644 --- a/lib/services/networkManagement2/lib/models/networkInterface.js +++ b/lib/services/networkManagement2/lib/models/networkInterface.js @@ -39,97 +39,8 @@ class NetworkInterface extends models['Resource'] { * 'Updating', 'Deleting', and 'Failed'. * @property {string} [networkSecurityGroup.etag] A unique read-only string * that changes whenever the resource is updated. - * @property {object} [interfaceEndpoint] A reference to the interface - * endpoint to which the network interface is linked. - * @property {string} [interfaceEndpoint.fqdn] A first-party service's FQDN - * that is mapped to the private IP allocated via this interface endpoint. - * @property {object} [interfaceEndpoint.endpointService] A reference to the - * service being brought into the virtual network. - * @property {string} [interfaceEndpoint.endpointService.id] A unique - * identifier of the service being referenced by the interface endpoint. - * @property {object} [interfaceEndpoint.subnet] The ID of the subnet from - * which the private IP will be allocated. - * @property {string} [interfaceEndpoint.subnet.addressPrefix] The address - * prefix for the subnet. - * @property {array} [interfaceEndpoint.subnet.addressPrefixes] List of - * address prefixes for the subnet. - * @property {object} [interfaceEndpoint.subnet.networkSecurityGroup] The - * reference of the NetworkSecurityGroup resource. - * @property {array} - * [interfaceEndpoint.subnet.networkSecurityGroup.securityRules] A collection - * of security rules of the network security group. - * @property {array} - * [interfaceEndpoint.subnet.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. - * @property {array} - * [interfaceEndpoint.subnet.networkSecurityGroup.networkInterfaces] A - * collection of references to network interfaces. - * @property {array} [interfaceEndpoint.subnet.networkSecurityGroup.subnets] - * A collection of references to subnets. - * @property {string} - * [interfaceEndpoint.subnet.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. - * @property {string} - * [interfaceEndpoint.subnet.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. - * @property {string} [interfaceEndpoint.subnet.networkSecurityGroup.etag] A - * unique read-only string that changes whenever the resource is updated. - * @property {object} [interfaceEndpoint.subnet.routeTable] The reference of - * the RouteTable resource. - * @property {array} [interfaceEndpoint.subnet.routeTable.routes] Collection - * of routes contained within a route table. - * @property {array} [interfaceEndpoint.subnet.routeTable.subnets] A - * collection of references to subnets. - * @property {boolean} - * [interfaceEndpoint.subnet.routeTable.disableBgpRoutePropagation] Gets or - * sets whether to disable the routes learned by BGP on that route table. - * True means disable. - * @property {string} [interfaceEndpoint.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [interfaceEndpoint.subnet.routeTable.etag] Gets a - * unique read-only string that changes whenever the resource is updated. - * @property {array} [interfaceEndpoint.subnet.serviceEndpoints] An array of - * service endpoints. - * @property {array} [interfaceEndpoint.subnet.serviceEndpointPolicies] An - * array of service endpoint policies. - * @property {array} [interfaceEndpoint.subnet.interfaceEndpoints] An array - * of references to interface endpoints - * @property {array} [interfaceEndpoint.subnet.ipConfigurations] Gets an - * array of references to the network interface IP configurations using - * subnet. - * @property {array} [interfaceEndpoint.subnet.ipConfigurationProfiles] Array - * of IP configuration profiles which reference this subnet. - * @property {array} [interfaceEndpoint.subnet.resourceNavigationLinks] Gets - * an array of references to the external resources using subnet. - * @property {array} [interfaceEndpoint.subnet.serviceAssociationLinks] Gets - * an array of references to services injecting into this subnet. - * @property {array} [interfaceEndpoint.subnet.delegations] Gets an array of - * references to the delegations on the subnet. - * @property {string} [interfaceEndpoint.subnet.purpose] A read-only string - * identifying the intention of use for this subnet based on delegations and - * other user-defined properties. - * @property {string} [interfaceEndpoint.subnet.provisioningState] The - * provisioning state of the resource. - * @property {string} [interfaceEndpoint.subnet.name] The name of the - * resource that is unique within a resource group. This name can be used to - * access the resource. - * @property {string} [interfaceEndpoint.subnet.etag] A unique read-only - * string that changes whenever the resource is updated. - * @property {array} [interfaceEndpoint.networkInterfaces] Gets an array of - * references to the network interfaces created for this interface endpoint. - * @property {string} [interfaceEndpoint.owner] A read-only property that - * identifies who created this interface endpoint. - * @property {string} [interfaceEndpoint.provisioningState] The provisioning - * state of the interface endpoint. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. - * @property {string} [interfaceEndpoint.etag] Gets a unique read-only string - * that changes whenever the resource is updated. * @property {array} [ipConfigurations] A list of IPConfigurations of the * network interface. - * @property {array} [tapConfigurations] A list of TapConfigurations of the - * network interface. * @property {object} [dnsSettings] The DNS settings in network interface. * @property {array} [dnsSettings.dnsServers] List of DNS servers IP * addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS @@ -156,8 +67,6 @@ class NetworkInterface extends models['Resource'] { * is accelerated networking enabled. * @property {boolean} [enableIPForwarding] Indicates whether IP forwarding * is enabled on this network interface. - * @property {array} [hostedWorkloads] A list of references to linked - * BareMetal resources * @property {string} [resourceGuid] The resource GUID property of the * network interface resource. * @property {string} [provisioningState] The provisioning state of the @@ -230,7 +139,6 @@ class NetworkInterface extends models['Resource'] { }, virtualMachine: { required: false, - readOnly: true, serializedName: 'properties.virtualMachine', type: { name: 'Composite', @@ -245,15 +153,6 @@ class NetworkInterface extends models['Resource'] { className: 'NetworkSecurityGroup' } }, - interfaceEndpoint: { - required: false, - readOnly: true, - serializedName: 'properties.interfaceEndpoint', - type: { - name: 'Composite', - className: 'InterfaceEndpoint' - } - }, ipConfigurations: { required: false, serializedName: 'properties.ipConfigurations', @@ -269,21 +168,6 @@ class NetworkInterface extends models['Resource'] { } } }, - tapConfigurations: { - required: false, - serializedName: 'properties.tapConfigurations', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'NetworkInterfaceTapConfigurationElementType', - type: { - name: 'Composite', - className: 'NetworkInterfaceTapConfiguration' - } - } - } - }, dnsSettings: { required: false, serializedName: 'properties.dnsSettings', @@ -320,21 +204,6 @@ class NetworkInterface extends models['Resource'] { name: 'Boolean' } }, - hostedWorkloads: { - required: false, - readOnly: true, - serializedName: 'properties.hostedWorkloads', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'StringElementType', - type: { - name: 'String' - } - } - } - }, resourceGuid: { required: false, serializedName: 'properties.resourceGuid', diff --git a/lib/services/networkManagement2/lib/models/networkInterfaceIPConfiguration.js b/lib/services/networkManagement2/lib/models/networkInterfaceIPConfiguration.js index bc754a7e9f..3281a2a0e4 100644 --- a/lib/services/networkManagement2/lib/models/networkInterfaceIPConfiguration.js +++ b/lib/services/networkManagement2/lib/models/networkInterfaceIPConfiguration.js @@ -20,8 +20,6 @@ const models = require('./index'); class NetworkInterfaceIPConfiguration extends models['SubResource'] { /** * Create a NetworkInterfaceIPConfiguration. - * @property {array} [virtualNetworkTaps] The reference to Virtual Network - * Taps. * @property {array} [applicationGatewayBackendAddressPools] The reference of * ApplicationGatewayBackendAddressPool resource. * @property {array} [loadBalancerBackendAddressPools] The reference of @@ -40,8 +38,6 @@ class NetworkInterfaceIPConfiguration extends models['SubResource'] { * @property {object} [subnet] Subnet bound to the IP configuration. * @property {string} [subnet.addressPrefix] The address prefix for the * subnet. - * @property {array} [subnet.addressPrefixes] List of address prefixes for - * the subnet. * @property {object} [subnet.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * @property {array} [subnet.networkSecurityGroup.securityRules] A collection @@ -74,23 +70,10 @@ class NetworkInterfaceIPConfiguration extends models['SubResource'] { * @property {string} [subnet.routeTable.etag] Gets a unique read-only string * that changes whenever the resource is updated. * @property {array} [subnet.serviceEndpoints] An array of service endpoints. - * @property {array} [subnet.serviceEndpointPolicies] An array of service - * endpoint policies. - * @property {array} [subnet.interfaceEndpoints] An array of references to - * interface endpoints * @property {array} [subnet.ipConfigurations] Gets an array of references to * the network interface IP configurations using subnet. - * @property {array} [subnet.ipConfigurationProfiles] Array of IP - * configuration profiles which reference this subnet. * @property {array} [subnet.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. - * @property {array} [subnet.serviceAssociationLinks] Gets an array of - * references to services injecting into this subnet. - * @property {array} [subnet.delegations] Gets an array of references to the - * delegations on the subnet. - * @property {string} [subnet.purpose] A read-only string identifying the - * intention of use for this subnet based on delegations and other - * user-defined properties. * @property {string} [subnet.provisioningState] The provisioning state of * the resource. * @property {string} [subnet.name] The name of the resource that is unique @@ -122,8 +105,6 @@ class NetworkInterfaceIPConfiguration extends models['SubResource'] { * of the subnet resource. * @property {string} [publicIPAddress.ipConfiguration.subnet.addressPrefix] * The address prefix for the subnet. - * @property {array} [publicIPAddress.ipConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. * @property {object} * [publicIPAddress.ipConfiguration.subnet.networkSecurityGroup] The * reference of the NetworkSecurityGroup resource. @@ -172,28 +153,11 @@ class NetworkInterfaceIPConfiguration extends models['SubResource'] { * [publicIPAddress.ipConfiguration.subnet.serviceEndpoints] An array of * service endpoints. * @property {array} - * [publicIPAddress.ipConfiguration.subnet.serviceEndpointPolicies] An array - * of service endpoint policies. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.interfaceEndpoints] An array of - * references to interface endpoints - * @property {array} * [publicIPAddress.ipConfiguration.subnet.ipConfigurations] Gets an array of * references to the network interface IP configurations using subnet. * @property {array} - * [publicIPAddress.ipConfiguration.subnet.ipConfigurationProfiles] Array of - * IP configuration profiles which reference this subnet. - * @property {array} * [publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks] Gets an * array of references to the external resources using subnet. - * @property {array} - * [publicIPAddress.ipConfiguration.subnet.serviceAssociationLinks] Gets an - * array of references to services injecting into this subnet. - * @property {array} [publicIPAddress.ipConfiguration.subnet.delegations] - * Gets an array of references to the delegations on the subnet. - * @property {string} [publicIPAddress.ipConfiguration.subnet.purpose] A - * read-only string identifying the intention of use for this subnet based on - * delegations and other user-defined properties. * @property {string} * [publicIPAddress.ipConfiguration.subnet.provisioningState] The * provisioning state of the resource. @@ -233,9 +197,6 @@ class NetworkInterfaceIPConfiguration extends models['SubResource'] { * with the public IP address. * @property {string} [publicIPAddress.ipAddress] The IP address associated * with the public IP address resource. - * @property {object} [publicIPAddress.publicIPPrefix] The Public IP Prefix - * this Public IP Address should be allocated from. - * @property {string} [publicIPAddress.publicIPPrefix.id] Resource ID. * @property {number} [publicIPAddress.idleTimeoutInMinutes] The idle timeout * of the public IP address. * @property {string} [publicIPAddress.resourceGuid] The resource GUID @@ -282,21 +243,6 @@ class NetworkInterfaceIPConfiguration extends models['SubResource'] { name: 'String' } }, - virtualNetworkTaps: { - required: false, - serializedName: 'properties.virtualNetworkTaps', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'VirtualNetworkTapElementType', - type: { - name: 'Composite', - className: 'VirtualNetworkTap' - } - } - } - }, applicationGatewayBackendAddressPools: { required: false, serializedName: 'properties.applicationGatewayBackendAddressPools', diff --git a/lib/services/networkManagement2/lib/models/outboundNatRule.js b/lib/services/networkManagement2/lib/models/outboundNatRule.js new file mode 100644 index 0000000000..2e4fc8da6f --- /dev/null +++ b/lib/services/networkManagement2/lib/models/outboundNatRule.js @@ -0,0 +1,120 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const models = require('./index'); + +/** + * Outbound NAT pool of the load balancer. + * + * @extends models['SubResource'] + */ +class OutboundNatRule extends models['SubResource'] { + /** + * Create a OutboundNatRule. + * @property {number} [allocatedOutboundPorts] The number of outbound ports + * to be used for NAT. + * @property {array} [frontendIPConfigurations] The Frontend IP addresses of + * the load balancer. + * @property {object} backendAddressPool A reference to a pool of DIPs. + * Outbound traffic is randomly load balanced across IPs in the backend IPs. + * @property {string} [backendAddressPool.id] Resource ID. + * @property {string} [provisioningState] Gets the provisioning state of the + * PublicIP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. + * @property {string} [name] The name of the resource that is unique within a + * resource group. This name can be used to access the resource. + * @property {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of OutboundNatRule + * + * @returns {object} metadata of OutboundNatRule + * + */ + mapper() { + return { + required: false, + serializedName: 'OutboundNatRule', + type: { + name: 'Composite', + className: 'OutboundNatRule', + modelProperties: { + id: { + required: false, + serializedName: 'id', + type: { + name: 'String' + } + }, + allocatedOutboundPorts: { + required: false, + serializedName: 'properties.allocatedOutboundPorts', + type: { + name: 'Number' + } + }, + frontendIPConfigurations: { + required: false, + serializedName: 'properties.frontendIPConfigurations', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'SubResourceElementType', + type: { + name: 'Composite', + className: 'SubResource' + } + } + } + }, + backendAddressPool: { + required: true, + serializedName: 'properties.backendAddressPool', + type: { + name: 'Composite', + className: 'SubResource' + } + }, + provisioningState: { + required: false, + serializedName: 'properties.provisioningState', + type: { + name: 'String' + } + }, + name: { + required: false, + serializedName: 'name', + type: { + name: 'String' + } + }, + etag: { + required: false, + serializedName: 'etag', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = OutboundNatRule; diff --git a/lib/services/networkManagement2/lib/models/policies.js b/lib/services/networkManagement2/lib/models/policies.js new file mode 100644 index 0000000000..84fd62a86f --- /dev/null +++ b/lib/services/networkManagement2/lib/models/policies.js @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Policies for vpn gateway. + * + */ +class Policies { + /** + * Create a Policies. + * @property {boolean} [allowBranchToBranchTraffic] True if branch to branch + * traffic is allowed. + * @property {boolean} [allowVnetToVnetTraffic] True if Vnet to Vnet traffic + * is allowed. + */ + constructor() { + } + + /** + * Defines the metadata of Policies + * + * @returns {object} metadata of Policies + * + */ + mapper() { + return { + required: false, + serializedName: 'Policies', + type: { + name: 'Composite', + className: 'Policies', + modelProperties: { + allowBranchToBranchTraffic: { + required: false, + serializedName: 'allowBranchToBranchTraffic', + type: { + name: 'Boolean' + } + }, + allowVnetToVnetTraffic: { + required: false, + serializedName: 'allowVnetToVnetTraffic', + type: { + name: 'Boolean' + } + } + } + } + }; + } +} + +module.exports = Policies; diff --git a/lib/services/networkManagement2/lib/models/publicIPAddress.js b/lib/services/networkManagement2/lib/models/publicIPAddress.js index 761e9f4765..b94e2be486 100644 --- a/lib/services/networkManagement2/lib/models/publicIPAddress.js +++ b/lib/services/networkManagement2/lib/models/publicIPAddress.js @@ -40,8 +40,6 @@ class PublicIPAddress extends models['Resource'] { * resource. * @property {string} [ipConfiguration.subnet.addressPrefix] The address * prefix for the subnet. - * @property {array} [ipConfiguration.subnet.addressPrefixes] List of - * address prefixes for the subnet. * @property {object} [ipConfiguration.subnet.networkSecurityGroup] The * reference of the NetworkSecurityGroup resource. * @property {array} @@ -81,23 +79,10 @@ class PublicIPAddress extends models['Resource'] { * read-only string that changes whenever the resource is updated. * @property {array} [ipConfiguration.subnet.serviceEndpoints] An array of * service endpoints. - * @property {array} [ipConfiguration.subnet.serviceEndpointPolicies] An - * array of service endpoint policies. - * @property {array} [ipConfiguration.subnet.interfaceEndpoints] An array of - * references to interface endpoints * @property {array} [ipConfiguration.subnet.ipConfigurations] Gets an array * of references to the network interface IP configurations using subnet. - * @property {array} [ipConfiguration.subnet.ipConfigurationProfiles] Array - * of IP configuration profiles which reference this subnet. * @property {array} [ipConfiguration.subnet.resourceNavigationLinks] Gets an * array of references to the external resources using subnet. - * @property {array} [ipConfiguration.subnet.serviceAssociationLinks] Gets an - * array of references to services injecting into this subnet. - * @property {array} [ipConfiguration.subnet.delegations] Gets an array of - * references to the delegations on the subnet. - * @property {string} [ipConfiguration.subnet.purpose] A read-only string - * identifying the intention of use for this subnet based on delegations and - * other user-defined properties. * @property {string} [ipConfiguration.subnet.provisioningState] The * provisioning state of the resource. * @property {string} [ipConfiguration.subnet.name] The name of the resource @@ -134,9 +119,6 @@ class PublicIPAddress extends models['Resource'] { * address. * @property {string} [ipAddress] The IP address associated with the public * IP address resource. - * @property {object} [publicIPPrefix] The Public IP Prefix this Public IP - * Address should be allocated from. - * @property {string} [publicIPPrefix.id] Resource ID. * @property {number} [idleTimeoutInMinutes] The idle timeout of the public * IP address. * @property {string} [resourceGuid] The resource GUID property of the public @@ -272,14 +254,6 @@ class PublicIPAddress extends models['Resource'] { name: 'String' } }, - publicIPPrefix: { - required: false, - serializedName: 'properties.publicIPPrefix', - type: { - name: 'Composite', - className: 'SubResource' - } - }, idleTimeoutInMinutes: { required: false, serializedName: 'properties.idleTimeoutInMinutes', diff --git a/lib/services/networkManagement2/lib/models/subnet.js b/lib/services/networkManagement2/lib/models/subnet.js index e0d3e37db7..c2e05b7499 100644 --- a/lib/services/networkManagement2/lib/models/subnet.js +++ b/lib/services/networkManagement2/lib/models/subnet.js @@ -21,8 +21,6 @@ class Subnet extends models['SubResource'] { /** * Create a Subnet. * @property {string} [addressPrefix] The address prefix for the subnet. - * @property {array} [addressPrefixes] List of address prefixes for the - * subnet. * @property {object} [networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * @property {array} [networkSecurityGroup.securityRules] A collection of @@ -54,23 +52,10 @@ class Subnet extends models['SubResource'] { * @property {string} [routeTable.etag] Gets a unique read-only string that * changes whenever the resource is updated. * @property {array} [serviceEndpoints] An array of service endpoints. - * @property {array} [serviceEndpointPolicies] An array of service endpoint - * policies. - * @property {array} [interfaceEndpoints] An array of references to interface - * endpoints * @property {array} [ipConfigurations] Gets an array of references to the * network interface IP configurations using subnet. - * @property {array} [ipConfigurationProfiles] Array of IP configuration - * profiles which reference this subnet. * @property {array} [resourceNavigationLinks] Gets an array of references to * the external resources using subnet. - * @property {array} [serviceAssociationLinks] Gets an array of references to - * services injecting into this subnet. - * @property {array} [delegations] Gets an array of references to the - * delegations on the subnet. - * @property {string} [purpose] A read-only string identifying the intention - * of use for this subnet based on delegations and other user-defined - * properties. * @property {string} [provisioningState] The provisioning state of the * resource. * @property {string} [name] The name of the resource that is unique within a @@ -110,20 +95,6 @@ class Subnet extends models['SubResource'] { name: 'String' } }, - addressPrefixes: { - required: false, - serializedName: 'properties.addressPrefixes', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'StringElementType', - type: { - name: 'String' - } - } - } - }, networkSecurityGroup: { required: false, serializedName: 'properties.networkSecurityGroup', @@ -155,37 +126,6 @@ class Subnet extends models['SubResource'] { } } }, - serviceEndpointPolicies: { - required: false, - serializedName: 'properties.serviceEndpointPolicies', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'ServiceEndpointPolicyElementType', - type: { - name: 'Composite', - className: 'ServiceEndpointPolicy' - } - } - } - }, - interfaceEndpoints: { - required: false, - readOnly: true, - serializedName: 'properties.interfaceEndpoints', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'InterfaceEndpointElementType', - type: { - name: 'Composite', - className: 'InterfaceEndpoint' - } - } - } - }, ipConfigurations: { required: false, readOnly: true, @@ -202,22 +142,6 @@ class Subnet extends models['SubResource'] { } } }, - ipConfigurationProfiles: { - required: false, - readOnly: true, - serializedName: 'properties.ipConfigurationProfiles', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'IPConfigurationProfileElementType', - type: { - name: 'Composite', - className: 'IPConfigurationProfile' - } - } - } - }, resourceNavigationLinks: { required: false, serializedName: 'properties.resourceNavigationLinks', @@ -233,44 +157,6 @@ class Subnet extends models['SubResource'] { } } }, - serviceAssociationLinks: { - required: false, - serializedName: 'properties.serviceAssociationLinks', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'ServiceAssociationLinkElementType', - type: { - name: 'Composite', - className: 'ServiceAssociationLink' - } - } - } - }, - delegations: { - required: false, - serializedName: 'properties.delegations', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'DelegationElementType', - type: { - name: 'Composite', - className: 'Delegation' - } - } - } - }, - purpose: { - required: false, - readOnly: true, - serializedName: 'properties.purpose', - type: { - name: 'String' - } - }, provisioningState: { required: false, serializedName: 'properties.provisioningState', diff --git a/lib/services/networkManagement2/lib/models/trafficAnalyticsConfigurationProperties.js b/lib/services/networkManagement2/lib/models/trafficAnalyticsConfigurationProperties.js index 6277575e4f..79c6f09cc6 100644 --- a/lib/services/networkManagement2/lib/models/trafficAnalyticsConfigurationProperties.js +++ b/lib/services/networkManagement2/lib/models/trafficAnalyticsConfigurationProperties.js @@ -22,8 +22,6 @@ class TrafficAnalyticsConfigurationProperties { * @property {string} workspaceRegion The location of the attached workspace * @property {string} workspaceResourceId Resource Id of the attached * workspace - * @property {number} [trafficAnalyticsInterval] The interval in minutes - * which would decide how frequently TA service should do flow analytics */ constructor() { } @@ -69,13 +67,6 @@ class TrafficAnalyticsConfigurationProperties { type: { name: 'String' } - }, - trafficAnalyticsInterval: { - required: false, - serializedName: 'trafficAnalyticsInterval', - type: { - name: 'Number' - } } } } diff --git a/lib/services/networkManagement2/lib/models/trafficAnalyticsProperties.js b/lib/services/networkManagement2/lib/models/trafficAnalyticsProperties.js index 40b3c2c59b..433364f370 100644 --- a/lib/services/networkManagement2/lib/models/trafficAnalyticsProperties.js +++ b/lib/services/networkManagement2/lib/models/trafficAnalyticsProperties.js @@ -28,10 +28,6 @@ class TrafficAnalyticsProperties { * @property {string} * [networkWatcherFlowAnalyticsConfiguration.workspaceResourceId] Resource Id * of the attached workspace - * @property {number} - * [networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval] The - * interval in minutes which would decide how frequently TA service should do - * flow analytics */ constructor() { } diff --git a/lib/services/networkManagement2/lib/models/virtualHub.js b/lib/services/networkManagement2/lib/models/virtualHub.js index 3ad3307784..e763467d24 100644 --- a/lib/services/networkManagement2/lib/models/virtualHub.js +++ b/lib/services/networkManagement2/lib/models/virtualHub.js @@ -23,21 +23,9 @@ class VirtualHub extends models['Resource'] { * @property {object} [virtualWan] The VirtualWAN to which the VirtualHub * belongs * @property {string} [virtualWan.id] Resource ID. - * @property {object} [vpnGateway] The VpnGateway associated with this - * VirtualHub - * @property {string} [vpnGateway.id] Resource ID. - * @property {object} [p2SVpnGateway] The P2SVpnGateway associated with this - * VirtualHub - * @property {string} [p2SVpnGateway.id] Resource ID. - * @property {object} [expressRouteGateway] The expressRouteGateway - * associated with this VirtualHub - * @property {string} [expressRouteGateway.id] Resource ID. - * @property {array} [virtualNetworkConnections] list of all vnet connections - * with this VirtualHub. + * @property {array} [hubVirtualNetworkConnections] list of all vnet + * connections with this VirtualHub. * @property {string} [addressPrefix] Address-prefix for this VirtualHub. - * @property {object} [routeTable] The routeTable associated with this - * virtual hub. - * @property {array} [routeTable.routes] list of all routes. * @property {string} [provisioningState] The provisioning state of the * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' @@ -114,33 +102,9 @@ class VirtualHub extends models['Resource'] { className: 'SubResource' } }, - vpnGateway: { + hubVirtualNetworkConnections: { required: false, - serializedName: 'properties.vpnGateway', - type: { - name: 'Composite', - className: 'SubResource' - } - }, - p2SVpnGateway: { - required: false, - serializedName: 'properties.p2SVpnGateway', - type: { - name: 'Composite', - className: 'SubResource' - } - }, - expressRouteGateway: { - required: false, - serializedName: 'properties.expressRouteGateway', - type: { - name: 'Composite', - className: 'SubResource' - } - }, - virtualNetworkConnections: { - required: false, - serializedName: 'properties.virtualNetworkConnections', + serializedName: 'properties.hubVirtualNetworkConnections', type: { name: 'Sequence', element: { @@ -160,14 +124,6 @@ class VirtualHub extends models['Resource'] { name: 'String' } }, - routeTable: { - required: false, - serializedName: 'properties.routeTable', - type: { - name: 'Composite', - className: 'VirtualHubRouteTable' - } - }, provisioningState: { required: false, serializedName: 'properties.provisioningState', diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnection.js b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnection.js index 4f8a433ad1..65bdf87e96 100644 --- a/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnection.js +++ b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnection.js @@ -204,8 +204,6 @@ class VirtualNetworkGatewayConnection extends models['Resource'] { * @property {string} connectionType Gateway connection type. Possible values * are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values * include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' - * @property {string} [connectionProtocol] Connection protocol used for this - * connection. Possible values include: 'IKEv2', 'IKEv1' * @property {number} [routingWeight] The routing weight. * @property {string} [sharedKey] The IPSec shared key. * @property {string} [connectionStatus] Virtual network Gateway connection @@ -230,8 +228,6 @@ class VirtualNetworkGatewayConnection extends models['Resource'] { * @property {string} [provisioningState] The provisioning state of the * VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * @property {boolean} [expressRouteGatewayBypass] Bypass ExpressRoute - * Gateway for data forwarding * @property {string} [etag] Gets a unique read-only string that changes * whenever the resource is updated. */ @@ -335,13 +331,6 @@ class VirtualNetworkGatewayConnection extends models['Resource'] { name: 'String' } }, - connectionProtocol: { - required: false, - serializedName: 'properties.connectionProtocol', - type: { - name: 'String' - } - }, routingWeight: { required: false, serializedName: 'properties.routingWeight', @@ -448,13 +437,6 @@ class VirtualNetworkGatewayConnection extends models['Resource'] { name: 'String' } }, - expressRouteGatewayBypass: { - required: false, - serializedName: 'properties.expressRouteGatewayBypass', - type: { - name: 'Boolean' - } - }, etag: { required: false, serializedName: 'etag', diff --git a/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnectionListEntity.js b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnectionListEntity.js index 21ffba1246..f0c71b8c55 100644 --- a/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnectionListEntity.js +++ b/lib/services/networkManagement2/lib/models/virtualNetworkGatewayConnectionListEntity.js @@ -36,8 +36,6 @@ class VirtualNetworkGatewayConnectionListEntity extends models['Resource'] { * @property {string} connectionType Gateway connection type. Possible values * are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values * include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' - * @property {string} [connectionProtocol] Connection protocol used for this - * connection. Possible values include: 'IKEv2', 'IKEv1' * @property {number} [routingWeight] The routing weight. * @property {string} [sharedKey] The IPSec shared key. * @property {string} [connectionStatus] Virtual network Gateway connection @@ -62,8 +60,6 @@ class VirtualNetworkGatewayConnectionListEntity extends models['Resource'] { * @property {string} [provisioningState] The provisioning state of the * VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. - * @property {boolean} [expressRouteGatewayBypass] Bypass ExpressRoute - * Gateway for data forwarding * @property {string} [etag] Gets a unique read-only string that changes * whenever the resource is updated. */ @@ -167,13 +163,6 @@ class VirtualNetworkGatewayConnectionListEntity extends models['Resource'] { name: 'String' } }, - connectionProtocol: { - required: false, - serializedName: 'properties.connectionProtocol', - type: { - name: 'String' - } - }, routingWeight: { required: false, serializedName: 'properties.routingWeight', @@ -280,13 +269,6 @@ class VirtualNetworkGatewayConnectionListEntity extends models['Resource'] { name: 'String' } }, - expressRouteGatewayBypass: { - required: false, - serializedName: 'properties.expressRouteGatewayBypass', - type: { - name: 'Boolean' - } - }, etag: { required: false, serializedName: 'etag', diff --git a/lib/services/networkManagement2/lib/models/virtualWAN.js b/lib/services/networkManagement2/lib/models/virtualWAN.js index 96ce283250..739d8c842a 100644 --- a/lib/services/networkManagement2/lib/models/virtualWAN.js +++ b/lib/services/networkManagement2/lib/models/virtualWAN.js @@ -24,16 +24,6 @@ class VirtualWAN extends models['Resource'] { * or not. * @property {array} [virtualHubs] List of VirtualHubs in the VirtualWAN. * @property {array} [vpnSites] - * @property {string} [securityProviderName] The Security Provider name. - * @property {boolean} [allowBranchToBranchTraffic] True if branch to branch - * traffic is allowed. - * @property {boolean} [allowVnetToVnetTraffic] True if Vnet to Vnet traffic - * is allowed. - * @property {string} [office365LocalBreakoutCategory] The office local - * breakout category. Possible values include: 'Optimize', - * 'OptimizeAndAllow', 'All', 'None' - * @property {array} [p2SVpnServerConfigurations] list of all - * P2SVpnServerConfigurations associated with the virtual wan. * @property {string} [provisioningState] The provisioning state of the * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' @@ -141,49 +131,6 @@ class VirtualWAN extends models['Resource'] { } } }, - securityProviderName: { - required: false, - serializedName: 'properties.securityProviderName', - type: { - name: 'String' - } - }, - allowBranchToBranchTraffic: { - required: false, - serializedName: 'properties.allowBranchToBranchTraffic', - type: { - name: 'Boolean' - } - }, - allowVnetToVnetTraffic: { - required: false, - serializedName: 'properties.allowVnetToVnetTraffic', - type: { - name: 'Boolean' - } - }, - office365LocalBreakoutCategory: { - required: false, - serializedName: 'properties.office365LocalBreakoutCategory', - type: { - name: 'String' - } - }, - p2SVpnServerConfigurations: { - required: false, - serializedName: 'properties.p2SVpnServerConfigurations', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'P2SVpnServerConfigurationElementType', - type: { - name: 'Composite', - className: 'P2SVpnServerConfiguration' - } - } - } - }, provisioningState: { required: false, serializedName: 'properties.provisioningState', diff --git a/lib/services/networkManagement2/lib/models/vpnConnection.js b/lib/services/networkManagement2/lib/models/vpnConnection.js index 28a80804d5..1fb74ae7c5 100644 --- a/lib/services/networkManagement2/lib/models/vpnConnection.js +++ b/lib/services/networkManagement2/lib/models/vpnConnection.js @@ -15,9 +15,9 @@ const models = require('./index'); /** * VpnConnection Resource. * - * @extends models['SubResource'] + * @extends models['Resource'] */ -class VpnConnection extends models['SubResource'] { +class VpnConnection extends models['Resource'] { /** * Create a VpnConnection. * @property {object} [remoteVpnSite] Id of the connected vpn site. @@ -25,22 +25,16 @@ class VpnConnection extends models['SubResource'] { * @property {number} [routingWeight] routing weight for vpn connection. * @property {string} [connectionStatus] The connection status. Possible * values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected' - * @property {string} [vpnConnectionProtocolType] Connection protocol used - * for this connection. Possible values include: 'IKEv2', 'IKEv1' * @property {number} [ingressBytesTransferred] Ingress bytes transferred. * @property {number} [egressBytesTransferred] Egress bytes transferred. - * @property {number} [connectionBandwidth] Expected bandwidth in MBPS. + * @property {number} [connectionBandwidthInMbps] Expected bandwidth in MBPS. * @property {string} [sharedKey] SharedKey for the vpn connection. * @property {boolean} [enableBgp] EnableBgp flag * @property {array} [ipsecPolicies] The IPSec Policies to be considered by * this connection. - * @property {boolean} [enableRateLimiting] EnableBgp flag - * @property {boolean} [enableInternetSecurity] Enable internet security * @property {string} [provisioningState] The provisioning state of the * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' - * @property {string} [name] The name of the resource that is unique within a - * resource group. This name can be used to access the resource. * @property {string} [etag] Gets a unique read-only string that changes * whenever the resource is updated. */ @@ -69,6 +63,43 @@ class VpnConnection extends models['SubResource'] { name: 'String' } }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + location: { + required: false, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, remoteVpnSite: { required: false, serializedName: 'properties.remoteVpnSite', @@ -91,13 +122,6 @@ class VpnConnection extends models['SubResource'] { name: 'String' } }, - vpnConnectionProtocolType: { - required: false, - serializedName: 'properties.vpnConnectionProtocolType', - type: { - name: 'String' - } - }, ingressBytesTransferred: { required: false, readOnly: true, @@ -114,9 +138,10 @@ class VpnConnection extends models['SubResource'] { name: 'Number' } }, - connectionBandwidth: { + connectionBandwidthInMbps: { required: false, - serializedName: 'properties.connectionBandwidth', + readOnly: true, + serializedName: 'properties.connectionBandwidthInMbps', type: { name: 'Number' } @@ -150,20 +175,6 @@ class VpnConnection extends models['SubResource'] { } } }, - enableRateLimiting: { - required: false, - serializedName: 'properties.enableRateLimiting', - type: { - name: 'Boolean' - } - }, - enableInternetSecurity: { - required: false, - serializedName: 'properties.enableInternetSecurity', - type: { - name: 'Boolean' - } - }, provisioningState: { required: false, serializedName: 'properties.provisioningState', @@ -171,13 +182,6 @@ class VpnConnection extends models['SubResource'] { name: 'String' } }, - name: { - required: false, - serializedName: 'name', - type: { - name: 'String' - } - }, etag: { required: false, readOnly: true, diff --git a/lib/services/networkManagement2/lib/models/vpnGateway.js b/lib/services/networkManagement2/lib/models/vpnGateway.js index c19b48ab52..db34623b6d 100644 --- a/lib/services/networkManagement2/lib/models/vpnGateway.js +++ b/lib/services/networkManagement2/lib/models/vpnGateway.js @@ -35,8 +35,11 @@ class VpnGateway extends models['Resource'] { * @property {string} [provisioningState] The provisioning state of the * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' - * @property {number} [vpnGatewayScaleUnit] The scale unit for this vpn - * gateway. + * @property {object} [policies] The policies applied to this vpn gateway. + * @property {boolean} [policies.allowBranchToBranchTraffic] True if branch + * to branch traffic is allowed. + * @property {boolean} [policies.allowVnetToVnetTraffic] True if Vnet to Vnet + * traffic is allowed. * @property {string} [etag] Gets a unique read-only string that changes * whenever the resource is updated. */ @@ -140,11 +143,12 @@ class VpnGateway extends models['Resource'] { name: 'String' } }, - vpnGatewayScaleUnit: { + policies: { required: false, - serializedName: 'properties.vpnGatewayScaleUnit', + serializedName: 'properties.policies', type: { - name: 'Number' + name: 'Composite', + className: 'Policies' } }, etag: { diff --git a/lib/services/networkManagement2/lib/models/vpnSite.js b/lib/services/networkManagement2/lib/models/vpnSite.js index 69ab0f59a8..c5aedb93e8 100644 --- a/lib/services/networkManagement2/lib/models/vpnSite.js +++ b/lib/services/networkManagement2/lib/models/vpnSite.js @@ -20,9 +20,9 @@ const models = require('./index'); class VpnSite extends models['Resource'] { /** * Create a VpnSite. - * @property {object} [virtualWan] The VirtualWAN to which the vpnSite + * @property {object} [virtualWAN] The VirtualWAN to which the vpnSite * belongs - * @property {string} [virtualWan.id] Resource ID. + * @property {string} [virtualWAN.id] Resource ID. * @property {object} [deviceProperties] The device properties * @property {string} [deviceProperties.deviceVendor] Name of the device * Vendor. @@ -44,7 +44,6 @@ class VpnSite extends models['Resource'] { * @property {string} [provisioningState] The provisioning state of the * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' - * @property {boolean} [isSecuritySite] IsSecuritySite flag * @property {string} [etag] Gets a unique read-only string that changes * whenever the resource is updated. */ @@ -110,9 +109,9 @@ class VpnSite extends models['Resource'] { } } }, - virtualWan: { + virtualWAN: { required: false, - serializedName: 'properties.virtualWan', + serializedName: 'properties.virtualWAN', type: { name: 'Composite', className: 'SubResource' @@ -163,13 +162,6 @@ class VpnSite extends models['Resource'] { name: 'String' } }, - isSecuritySite: { - required: false, - serializedName: 'properties.isSecuritySite', - type: { - name: 'Boolean' - } - }, etag: { required: false, readOnly: true, diff --git a/lib/services/networkManagement2/lib/networkManagementClient.d.ts b/lib/services/networkManagement2/lib/networkManagementClient.d.ts index 9753f42d8a..f94f9c454a 100644 --- a/lib/services/networkManagement2/lib/networkManagementClient.d.ts +++ b/lib/services/networkManagement2/lib/networkManagementClient.d.ts @@ -54,12 +54,9 @@ export default class NetworkManagementClient extends AzureServiceClient { generateClientRequestId: boolean; // Operation groups + azureFirewalls: operations.AzureFirewalls; applicationGateways: operations.ApplicationGateways; applicationSecurityGroups: operations.ApplicationSecurityGroups; - availableDelegations: operations.AvailableDelegations; - availableResourceGroupDelegations: operations.AvailableResourceGroupDelegations; - azureFirewalls: operations.AzureFirewalls; - azureFirewallFqdnTags: operations.AzureFirewallFqdnTags; ddosProtectionPlans: operations.DdosProtectionPlans; availableEndpointServices: operations.AvailableEndpointServices; expressRouteCircuitAuthorizations: operations.ExpressRouteCircuitAuthorizations; @@ -69,25 +66,16 @@ export default class NetworkManagementClient extends AzureServiceClient { expressRouteServiceProviders: operations.ExpressRouteServiceProviders; expressRouteCrossConnections: operations.ExpressRouteCrossConnections; expressRouteCrossConnectionPeerings: operations.ExpressRouteCrossConnectionPeerings; - expressRouteGateways: operations.ExpressRouteGateways; - expressRouteConnections: operations.ExpressRouteConnections; - expressRoutePortsLocations: operations.ExpressRoutePortsLocations; - expressRoutePorts: operations.ExpressRoutePorts; - expressRouteLinks: operations.ExpressRouteLinks; - interfaceEndpoints: operations.InterfaceEndpoints; loadBalancers: operations.LoadBalancers; loadBalancerBackendAddressPools: operations.LoadBalancerBackendAddressPools; loadBalancerFrontendIPConfigurations: operations.LoadBalancerFrontendIPConfigurations; inboundNatRules: operations.InboundNatRules; loadBalancerLoadBalancingRules: operations.LoadBalancerLoadBalancingRules; - loadBalancerOutboundRules: operations.LoadBalancerOutboundRules; loadBalancerNetworkInterfaces: operations.LoadBalancerNetworkInterfaces; loadBalancerProbes: operations.LoadBalancerProbes; networkInterfaces: operations.NetworkInterfaces; networkInterfaceIPConfigurations: operations.NetworkInterfaceIPConfigurations; networkInterfaceLoadBalancers: operations.NetworkInterfaceLoadBalancers; - networkInterfaceTapConfigurations: operations.NetworkInterfaceTapConfigurations; - networkProfiles: operations.NetworkProfiles; networkSecurityGroups: operations.NetworkSecurityGroups; securityRules: operations.SecurityRules; defaultSecurityRules: operations.DefaultSecurityRules; @@ -96,14 +84,11 @@ export default class NetworkManagementClient extends AzureServiceClient { connectionMonitors: operations.ConnectionMonitors; operations: operations.Operations; publicIPAddresses: operations.PublicIPAddresses; - publicIPPrefixes: operations.PublicIPPrefixes; routeFilters: operations.RouteFilters; routeFilterRules: operations.RouteFilterRules; routeTables: operations.RouteTables; routes: operations.Routes; bgpServiceCommunities: operations.BgpServiceCommunities; - serviceEndpointPolicies: operations.ServiceEndpointPolicies; - serviceEndpointPolicyDefinitions: operations.ServiceEndpointPolicyDefinitions; usages: operations.Usages; virtualNetworks: operations.VirtualNetworks; subnets: operations.Subnets; @@ -111,16 +96,13 @@ export default class NetworkManagementClient extends AzureServiceClient { virtualNetworkGateways: operations.VirtualNetworkGateways; virtualNetworkGatewayConnections: operations.VirtualNetworkGatewayConnections; localNetworkGateways: operations.LocalNetworkGateways; - virtualNetworkTaps: operations.VirtualNetworkTaps; - virtualWans: operations.VirtualWans; + virtualWANs: operations.VirtualWANs; vpnSites: operations.VpnSites; vpnSitesConfiguration: operations.VpnSitesConfiguration; virtualHubs: operations.VirtualHubs; hubVirtualNetworkConnections: operations.HubVirtualNetworkConnections; vpnGateways: operations.VpnGateways; vpnConnections: operations.VpnConnections; - p2sVpnServerConfigurations: operations.P2sVpnServerConfigurations; - p2sVpnGateways: operations.P2sVpnGateways; /** @@ -185,68 +167,6 @@ export default class NetworkManagementClient extends AzureServiceClient { checkDnsNameAvailability(location: string, domainNameLabel: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; checkDnsNameAvailability(location: string, domainNameLabel: string, callback: ServiceCallback): void; checkDnsNameAvailability(location: string, domainNameLabel: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * Gives the supported security providers for the virtual wan. - * - * @param {string} resourceGroupName The resource group name. - * - * @param {string} virtualWANName The name of the VirtualWAN for which - * supported security providers are needed. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - supportedSecurityProvidersWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Gives the supported security providers for the virtual wan. - * - * @param {string} resourceGroupName The resource group name. - * - * @param {string} virtualWANName The name of the VirtualWAN for which - * supported security providers are needed. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {VirtualWanSecurityProviders} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {VirtualWanSecurityProviders} [result] - The deserialized result object if an error did not occur. - * See {@link VirtualWanSecurityProviders} for more - * information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - supportedSecurityProviders(resourceGroupName: string, virtualWANName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - supportedSecurityProviders(resourceGroupName: string, virtualWANName: string, callback: ServiceCallback): void; - supportedSecurityProviders(resourceGroupName: string, virtualWANName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } export { NetworkManagementClient, models as NetworkManagementModels }; diff --git a/lib/services/networkManagement2/lib/networkManagementClient.js b/lib/services/networkManagement2/lib/networkManagementClient.js index baa2b3cbc4..c856380a98 100644 --- a/lib/services/networkManagement2/lib/networkManagementClient.js +++ b/lib/services/networkManagement2/lib/networkManagementClient.js @@ -61,7 +61,7 @@ function _checkDnsNameAvailability(location, domainNameLabel, options, callback) if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { @@ -169,152 +169,6 @@ function _checkDnsNameAvailability(location, domainNameLabel, options, callback) }); } -/** - * Gives the supported security providers for the virtual wan. - * - * @param {string} resourceGroupName The resource group name. - * - * @param {string} virtualWANName The name of the VirtualWAN for which - * supported security providers are needed. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {function} callback - The callback. - * - * @returns {function} callback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link VirtualWanSecurityProviders} for more - * information. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ -function _supportedSecurityProviders(resourceGroupName, virtualWANName, options, callback) { - /* jshint validthis: true */ - let client = this; - if(!callback && typeof options === 'function') { - callback = options; - options = null; - } - if (!callback) { - throw new Error('callback cannot be null.'); - } - let apiVersion = '2018-10-01'; - // Validate - try { - if (this.subscriptionId === null || this.subscriptionId === undefined || typeof this.subscriptionId.valueOf() !== 'string') { - throw new Error('this.subscriptionId cannot be null or undefined and it must be of type string.'); - } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); - } - if (virtualWANName === null || virtualWANName === undefined || typeof virtualWANName.valueOf() !== 'string') { - throw new Error('virtualWANName cannot be null or undefined and it must be of type string.'); - } - if (this.acceptLanguage !== null && this.acceptLanguage !== undefined && typeof this.acceptLanguage.valueOf() !== 'string') { - throw new Error('this.acceptLanguage must be of type string.'); - } - } catch (error) { - return callback(error); - } - - // Construct URL - let baseUrl = this.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/supportedSecurityProviders'; - requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{virtualWANName}', encodeURIComponent(virtualWANName)); - let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); - if (queryParameters.length > 0) { - requestUrl += '?' + queryParameters.join('&'); - } - - // Create HTTP transport objects - let httpRequest = new WebResource(); - httpRequest.method = 'GET'; - httpRequest.url = requestUrl; - httpRequest.headers = {}; - // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - if (this.generateClientRequestId) { - httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); - } - if (this.acceptLanguage !== undefined && this.acceptLanguage !== null) { - httpRequest.headers['accept-language'] = this.acceptLanguage; - } - if(options) { - for(let headerName in options['customHeaders']) { - if (options['customHeaders'].hasOwnProperty(headerName)) { - httpRequest.headers[headerName] = options['customHeaders'][headerName]; - } - } - } - httpRequest.body = null; - // Send Request - return client.pipeline(httpRequest, (err, response, responseBody) => { - if (err) { - return callback(err); - } - let statusCode = response.statusCode; - if (statusCode !== 200) { - let error = new Error(responseBody); - error.statusCode = response.statusCode; - error.request = msRest.stripRequest(httpRequest); - error.response = msRest.stripResponse(response); - if (responseBody === '') responseBody = null; - let parsedErrorResponse; - try { - parsedErrorResponse = JSON.parse(responseBody); - if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; - } - if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorModel']().mapper(); - error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); - } - } catch (defaultError) { - error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + - `- "${responseBody}" for the default response.`; - return callback(error); - } - return callback(error); - } - // Create Result - let result = null; - if (responseBody === '') responseBody = null; - // Deserialize Response - if (statusCode === 200) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['VirtualWanSecurityProviders']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - } - - return callback(null, result, httpRequest, response); - }); -} - /** Class representing a NetworkManagementClient. */ class NetworkManagementClient extends ServiceClient { /** @@ -364,12 +218,9 @@ class NetworkManagementClient extends ServiceClient { if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } + this.azureFirewalls = new operations.AzureFirewalls(this); this.applicationGateways = new operations.ApplicationGateways(this); this.applicationSecurityGroups = new operations.ApplicationSecurityGroups(this); - this.availableDelegations = new operations.AvailableDelegations(this); - this.availableResourceGroupDelegations = new operations.AvailableResourceGroupDelegations(this); - this.azureFirewalls = new operations.AzureFirewalls(this); - this.azureFirewallFqdnTags = new operations.AzureFirewallFqdnTags(this); this.ddosProtectionPlans = new operations.DdosProtectionPlans(this); this.availableEndpointServices = new operations.AvailableEndpointServices(this); this.expressRouteCircuitAuthorizations = new operations.ExpressRouteCircuitAuthorizations(this); @@ -379,25 +230,16 @@ class NetworkManagementClient extends ServiceClient { this.expressRouteServiceProviders = new operations.ExpressRouteServiceProviders(this); this.expressRouteCrossConnections = new operations.ExpressRouteCrossConnections(this); this.expressRouteCrossConnectionPeerings = new operations.ExpressRouteCrossConnectionPeerings(this); - this.expressRouteGateways = new operations.ExpressRouteGateways(this); - this.expressRouteConnections = new operations.ExpressRouteConnections(this); - this.expressRoutePortsLocations = new operations.ExpressRoutePortsLocations(this); - this.expressRoutePorts = new operations.ExpressRoutePorts(this); - this.expressRouteLinks = new operations.ExpressRouteLinks(this); - this.interfaceEndpoints = new operations.InterfaceEndpoints(this); this.loadBalancers = new operations.LoadBalancers(this); this.loadBalancerBackendAddressPools = new operations.LoadBalancerBackendAddressPools(this); this.loadBalancerFrontendIPConfigurations = new operations.LoadBalancerFrontendIPConfigurations(this); this.inboundNatRules = new operations.InboundNatRules(this); this.loadBalancerLoadBalancingRules = new operations.LoadBalancerLoadBalancingRules(this); - this.loadBalancerOutboundRules = new operations.LoadBalancerOutboundRules(this); this.loadBalancerNetworkInterfaces = new operations.LoadBalancerNetworkInterfaces(this); this.loadBalancerProbes = new operations.LoadBalancerProbes(this); this.networkInterfaces = new operations.NetworkInterfaces(this); this.networkInterfaceIPConfigurations = new operations.NetworkInterfaceIPConfigurations(this); this.networkInterfaceLoadBalancers = new operations.NetworkInterfaceLoadBalancers(this); - this.networkInterfaceTapConfigurations = new operations.NetworkInterfaceTapConfigurations(this); - this.networkProfiles = new operations.NetworkProfiles(this); this.networkSecurityGroups = new operations.NetworkSecurityGroups(this); this.securityRules = new operations.SecurityRules(this); this.defaultSecurityRules = new operations.DefaultSecurityRules(this); @@ -406,14 +248,11 @@ class NetworkManagementClient extends ServiceClient { this.connectionMonitors = new operations.ConnectionMonitors(this); this.operations = new operations.Operations(this); this.publicIPAddresses = new operations.PublicIPAddresses(this); - this.publicIPPrefixes = new operations.PublicIPPrefixes(this); this.routeFilters = new operations.RouteFilters(this); this.routeFilterRules = new operations.RouteFilterRules(this); this.routeTables = new operations.RouteTables(this); this.routes = new operations.Routes(this); this.bgpServiceCommunities = new operations.BgpServiceCommunities(this); - this.serviceEndpointPolicies = new operations.ServiceEndpointPolicies(this); - this.serviceEndpointPolicyDefinitions = new operations.ServiceEndpointPolicyDefinitions(this); this.usages = new operations.Usages(this); this.virtualNetworks = new operations.VirtualNetworks(this); this.subnets = new operations.Subnets(this); @@ -421,19 +260,15 @@ class NetworkManagementClient extends ServiceClient { this.virtualNetworkGateways = new operations.VirtualNetworkGateways(this); this.virtualNetworkGatewayConnections = new operations.VirtualNetworkGatewayConnections(this); this.localNetworkGateways = new operations.LocalNetworkGateways(this); - this.virtualNetworkTaps = new operations.VirtualNetworkTaps(this); - this.virtualWans = new operations.VirtualWans(this); + this.virtualWANs = new operations.VirtualWANs(this); this.vpnSites = new operations.VpnSites(this); this.vpnSitesConfiguration = new operations.VpnSitesConfiguration(this); this.virtualHubs = new operations.VirtualHubs(this); this.hubVirtualNetworkConnections = new operations.HubVirtualNetworkConnections(this); this.vpnGateways = new operations.VpnGateways(this); this.vpnConnections = new operations.VpnConnections(this); - this.p2sVpnServerConfigurations = new operations.P2sVpnServerConfigurations(this); - this.p2sVpnGateways = new operations.P2sVpnGateways(this); this.models = models; this._checkDnsNameAvailability = _checkDnsNameAvailability; - this._supportedSecurityProviders = _supportedSecurityProviders; msRest.addSerializationMixin(this); } @@ -528,95 +363,6 @@ class NetworkManagementClient extends ServiceClient { } } - /** - * Gives the supported security providers for the virtual wan. - * - * @param {string} resourceGroupName The resource group name. - * - * @param {string} virtualWANName The name of the VirtualWAN for which - * supported security providers are needed. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error} - The error object. - */ - supportedSecurityProvidersWithHttpOperationResponse(resourceGroupName, virtualWANName, options) { - let client = this; - let self = this; - return new Promise((resolve, reject) => { - self._supportedSecurityProviders(resourceGroupName, virtualWANName, options, (err, result, request, response) => { - let httpOperationResponse = new msRest.HttpOperationResponse(request, response); - httpOperationResponse.body = result; - if (err) { reject(err); } - else { resolve(httpOperationResponse); } - return; - }); - }); - } - - /** - * Gives the supported security providers for the virtual wan. - * - * @param {string} resourceGroupName The resource group name. - * - * @param {string} virtualWANName The name of the VirtualWAN for which - * supported security providers are needed. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {function} [optionalCallback] - The optional callback. - * - * @returns {function|Promise} If a callback was passed as the last parameter - * then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned - * - * @resolve {VirtualWanSecurityProviders} - The deserialized result object. - * - * @reject {Error} - The error object. - * - * {function} optionalCallback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link VirtualWanSecurityProviders} for more - * information. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ - supportedSecurityProviders(resourceGroupName, virtualWANName, options, optionalCallback) { - let client = this; - let self = this; - if (!optionalCallback && typeof options === 'function') { - optionalCallback = options; - options = null; - } - if (!optionalCallback) { - return new Promise((resolve, reject) => { - self._supportedSecurityProviders(resourceGroupName, virtualWANName, options, (err, result, request, response) => { - if (err) { reject(err); } - else { resolve(result); } - return; - }); - }); - } else { - return self._supportedSecurityProviders(resourceGroupName, virtualWANName, options, optionalCallback); - } - } - } module.exports = NetworkManagementClient; diff --git a/lib/services/networkManagement2/lib/operations/applicationGateways.js b/lib/services/networkManagement2/lib/operations/applicationGateways.js index fbfc67b905..fd8bece444 100644 --- a/lib/services/networkManagement2/lib/operations/applicationGateways.js +++ b/lib/services/networkManagement2/lib/operations/applicationGateways.js @@ -112,7 +112,7 @@ function _get(resourceGroupName, applicationGatewayName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -269,9 +269,6 @@ function _get(resourceGroupName, applicationGatewayName, options, callback) { * @param {array} [parameters.authenticationCertificates] Authentication * certificates of the application gateway resource. * - * @param {array} [parameters.trustedRootCertificates] Trusted Root - * certificates of the application gateway resource. - * * @param {array} [parameters.sslCertificates] SSL certificates of the * application gateway resource. * @@ -299,9 +296,6 @@ function _get(resourceGroupName, applicationGatewayName, options, callback) { * @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. * @@ -335,17 +329,6 @@ function _get(resourceGroupName, applicationGatewayName, options, callback) { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] - * Maxium request body size in Kb for WAF. - * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium - * file upload size in Mb for WAF. - * - * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] - * The exclusion list. - * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -354,8 +337,13 @@ function _get(resourceGroupName, applicationGatewayName, options, callback) { * * @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration. * - * @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on - * number of Application Gateway instances + * @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds + * + * @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on + * number of Application Gateway instances. + * + * @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on + * number of Application Gateway instances. * * @param {string} [parameters.resourceGuid] Resource GUID property of the * application gateway resource. @@ -364,30 +352,12 @@ function _get(resourceGroupName, applicationGatewayName, options, callback) { * 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. @@ -581,7 +551,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -717,7 +687,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1059,7 +1029,7 @@ function _listAvailableWafRuleSets(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1191,7 +1161,7 @@ function _listAvailableSslOptions(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1324,7 +1294,7 @@ function _listAvailableSslPredefinedPolicies(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1458,7 +1428,7 @@ function _getSslPredefinedPolicy(predefinedPolicyName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1596,7 +1566,7 @@ function _beginDeleteMethod(resourceGroupName, applicationGatewayName, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1735,9 +1705,6 @@ function _beginDeleteMethod(resourceGroupName, applicationGatewayName, options, * @param {array} [parameters.authenticationCertificates] Authentication * certificates of the application gateway resource. * - * @param {array} [parameters.trustedRootCertificates] Trusted Root - * certificates of the application gateway resource. - * * @param {array} [parameters.sslCertificates] SSL certificates of the * application gateway resource. * @@ -1765,9 +1732,6 @@ function _beginDeleteMethod(resourceGroupName, applicationGatewayName, options, * @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. * @@ -1801,17 +1765,6 @@ function _beginDeleteMethod(resourceGroupName, applicationGatewayName, options, * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] - * Maxium request body size in Kb for WAF. - * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium - * file upload size in Mb for WAF. - * - * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] - * The exclusion list. - * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -1820,8 +1773,13 @@ function _beginDeleteMethod(resourceGroupName, applicationGatewayName, options, * * @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration. * - * @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on - * number of Application Gateway instances + * @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds + * + * @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on + * number of Application Gateway instances. + * + * @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on + * number of Application Gateway instances. * * @param {string} [parameters.resourceGuid] Resource GUID property of the * application gateway resource. @@ -1830,30 +1788,12 @@ function _beginDeleteMethod(resourceGroupName, applicationGatewayName, options, * 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. @@ -1888,7 +1828,7 @@ function _beginCreateOrUpdate(resourceGroupName, applicationGatewayName, paramet if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2070,7 +2010,7 @@ function _beginUpdateTags(resourceGroupName, applicationGatewayName, parameters, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2229,7 +2169,7 @@ function _beginStart(resourceGroupName, applicationGatewayName, options, callbac if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2354,7 +2294,7 @@ function _beginStop(resourceGroupName, applicationGatewayName, options, callback if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2486,7 +2426,7 @@ function _beginBackendHealth(resourceGroupName, applicationGatewayName, options, throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3236,9 +3176,6 @@ class ApplicationGateways { * @param {array} [parameters.authenticationCertificates] Authentication * certificates of the application gateway resource. * - * @param {array} [parameters.trustedRootCertificates] Trusted Root - * certificates of the application gateway resource. - * * @param {array} [parameters.sslCertificates] SSL certificates of the * application gateway resource. * @@ -3266,9 +3203,6 @@ class ApplicationGateways { * @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. * @@ -3302,17 +3236,6 @@ class ApplicationGateways { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] - * Maxium request body size in Kb for WAF. - * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium - * file upload size in Mb for WAF. - * - * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] - * The exclusion list. - * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -3321,8 +3244,13 @@ class ApplicationGateways { * * @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration. * - * @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on - * number of Application Gateway instances + * @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds + * + * @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on + * number of Application Gateway instances. + * + * @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on + * number of Application Gateway instances. * * @param {string} [parameters.resourceGuid] Resource GUID property of the * application gateway resource. @@ -3331,30 +3259,12 @@ class ApplicationGateways { * 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. @@ -3434,9 +3344,6 @@ class ApplicationGateways { * @param {array} [parameters.authenticationCertificates] Authentication * certificates of the application gateway resource. * - * @param {array} [parameters.trustedRootCertificates] Trusted Root - * certificates of the application gateway resource. - * * @param {array} [parameters.sslCertificates] SSL certificates of the * application gateway resource. * @@ -3464,9 +3371,6 @@ class ApplicationGateways { * @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. * @@ -3500,17 +3404,6 @@ class ApplicationGateways { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] - * Maxium request body size in Kb for WAF. - * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium - * file upload size in Mb for WAF. - * - * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] - * The exclusion list. - * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -3519,8 +3412,13 @@ class ApplicationGateways { * * @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration. * - * @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on - * number of Application Gateway instances + * @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds + * + * @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on + * number of Application Gateway instances. + * + * @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on + * number of Application Gateway instances. * * @param {string} [parameters.resourceGuid] Resource GUID property of the * application gateway resource. @@ -3529,30 +3427,12 @@ class ApplicationGateways { * 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. @@ -4584,9 +4464,6 @@ class ApplicationGateways { * @param {array} [parameters.authenticationCertificates] Authentication * certificates of the application gateway resource. * - * @param {array} [parameters.trustedRootCertificates] Trusted Root - * certificates of the application gateway resource. - * * @param {array} [parameters.sslCertificates] SSL certificates of the * application gateway resource. * @@ -4614,9 +4491,6 @@ class ApplicationGateways { * @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. * @@ -4650,17 +4524,6 @@ class ApplicationGateways { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] - * Maxium request body size in Kb for WAF. - * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium - * file upload size in Mb for WAF. - * - * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] - * The exclusion list. - * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -4669,8 +4532,13 @@ class ApplicationGateways { * * @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration. * - * @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on - * number of Application Gateway instances + * @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds + * + * @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on + * number of Application Gateway instances. + * + * @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on + * number of Application Gateway instances. * * @param {string} [parameters.resourceGuid] Resource GUID property of the * application gateway resource. @@ -4679,30 +4547,12 @@ class ApplicationGateways { * 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. @@ -4782,9 +4632,6 @@ class ApplicationGateways { * @param {array} [parameters.authenticationCertificates] Authentication * certificates of the application gateway resource. * - * @param {array} [parameters.trustedRootCertificates] Trusted Root - * certificates of the application gateway resource. - * * @param {array} [parameters.sslCertificates] SSL certificates of the * application gateway resource. * @@ -4812,9 +4659,6 @@ class ApplicationGateways { * @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. * @@ -4848,17 +4692,6 @@ class ApplicationGateways { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] - * Maxium request body size in Kb for WAF. - * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium - * file upload size in Mb for WAF. - * - * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] - * The exclusion list. - * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -4867,8 +4700,13 @@ class ApplicationGateways { * * @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration. * - * @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on - * number of Application Gateway instances + * @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds + * + * @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on + * number of Application Gateway instances. + * + * @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on + * number of Application Gateway instances. * * @param {string} [parameters.resourceGuid] Resource GUID property of the * application gateway resource. @@ -4877,30 +4715,12 @@ class ApplicationGateways { * 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. diff --git a/lib/services/networkManagement2/lib/operations/applicationSecurityGroups.js b/lib/services/networkManagement2/lib/operations/applicationSecurityGroups.js index cbd49b44de..74d9da00ca 100644 --- a/lib/services/networkManagement2/lib/operations/applicationSecurityGroups.js +++ b/lib/services/networkManagement2/lib/operations/applicationSecurityGroups.js @@ -115,7 +115,7 @@ function _get(resourceGroupName, applicationSecurityGroupName, options, callback if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -344,7 +344,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -478,7 +478,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -617,7 +617,7 @@ function _beginDeleteMethod(resourceGroupName, applicationSecurityGroupName, opt if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -754,7 +754,7 @@ function _beginCreateOrUpdate(resourceGroupName, applicationSecurityGroupName, p if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/availableEndpointServices.js b/lib/services/networkManagement2/lib/operations/availableEndpointServices.js index ceb1cd2fa8..30b788f769 100644 --- a/lib/services/networkManagement2/lib/operations/availableEndpointServices.js +++ b/lib/services/networkManagement2/lib/operations/availableEndpointServices.js @@ -48,7 +48,7 @@ function _list(location, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/azureFirewalls.js b/lib/services/networkManagement2/lib/operations/azureFirewalls.js index ef1dc648b0..b23b6542f2 100644 --- a/lib/services/networkManagement2/lib/operations/azureFirewalls.js +++ b/lib/services/networkManagement2/lib/operations/azureFirewalls.js @@ -112,7 +112,7 @@ function _get(resourceGroupName, azureFirewallName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -232,13 +232,10 @@ function _get(resourceGroupName, azureFirewallName, options, callback) { * 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. + * application rule collections used by a Azure Firewall. * * @param {array} [parameters.networkRuleCollections] Collection of network - * rule collections used by Azure Firewall. + * rule collections used by a Azure Firewall. * * @param {array} [parameters.ipConfigurations] IP configuration of the Azure * Firewall resource. @@ -357,7 +354,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -493,7 +490,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -627,7 +624,7 @@ function _beginDeleteMethod(resourceGroupName, azureFirewallName, options, callb if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -729,13 +726,10 @@ function _beginDeleteMethod(resourceGroupName, azureFirewallName, options, callb * 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. + * application rule collections used by a Azure Firewall. * * @param {array} [parameters.networkRuleCollections] Collection of network - * rule collections used by Azure Firewall. + * rule collections used by a Azure Firewall. * * @param {array} [parameters.ipConfigurations] IP configuration of the Azure * Firewall resource. @@ -778,7 +772,7 @@ function _beginCreateOrUpdate(resourceGroupName, azureFirewallName, parameters, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1377,13 +1371,10 @@ class AzureFirewalls { * 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. + * application rule collections used by a Azure Firewall. * * @param {array} [parameters.networkRuleCollections] Collection of network - * rule collections used by Azure Firewall. + * rule collections used by a Azure Firewall. * * @param {array} [parameters.ipConfigurations] IP configuration of the Azure * Firewall resource. @@ -1434,13 +1425,10 @@ class AzureFirewalls { * 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. + * application rule collections used by a Azure Firewall. * * @param {array} [parameters.networkRuleCollections] Collection of network - * rule collections used by Azure Firewall. + * rule collections used by a Azure Firewall. * * @param {array} [parameters.ipConfigurations] IP configuration of the Azure * Firewall resource. @@ -1760,13 +1748,10 @@ class AzureFirewalls { * 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. + * application rule collections used by a Azure Firewall. * * @param {array} [parameters.networkRuleCollections] Collection of network - * rule collections used by Azure Firewall. + * rule collections used by a Azure Firewall. * * @param {array} [parameters.ipConfigurations] IP configuration of the Azure * Firewall resource. @@ -1817,13 +1802,10 @@ class AzureFirewalls { * 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. + * application rule collections used by a Azure Firewall. * * @param {array} [parameters.networkRuleCollections] Collection of network - * rule collections used by Azure Firewall. + * rule collections used by a Azure Firewall. * * @param {array} [parameters.ipConfigurations] IP configuration of the Azure * Firewall resource. diff --git a/lib/services/networkManagement2/lib/operations/bgpServiceCommunities.js b/lib/services/networkManagement2/lib/operations/bgpServiceCommunities.js index 9e942bbc59..327e55e51e 100644 --- a/lib/services/networkManagement2/lib/operations/bgpServiceCommunities.js +++ b/lib/services/networkManagement2/lib/operations/bgpServiceCommunities.js @@ -46,7 +46,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/connectionMonitors.js b/lib/services/networkManagement2/lib/operations/connectionMonitors.js index ed2c2ebe34..8b73ae907b 100644 --- a/lib/services/networkManagement2/lib/operations/connectionMonitors.js +++ b/lib/services/networkManagement2/lib/operations/connectionMonitors.js @@ -167,7 +167,7 @@ function _get(resourceGroupName, networkWatcherName, connectionMonitorName, opti if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -239,13 +239,12 @@ function _get(resourceGroupName, networkWatcherName, connectionMonitorName, opti try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -598,7 +597,7 @@ function _list(resourceGroupName, networkWatcherName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -666,13 +665,12 @@ function _list(resourceGroupName, networkWatcherName, options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -778,7 +776,7 @@ function _beginCreateOrUpdate(resourceGroupName, networkWatcherName, connectionM if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -867,13 +865,12 @@ function _beginCreateOrUpdate(resourceGroupName, networkWatcherName, connectionM try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -962,7 +959,7 @@ function _beginDeleteMethod(resourceGroupName, networkWatcherName, connectionMon if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1034,13 +1031,12 @@ function _beginDeleteMethod(resourceGroupName, networkWatcherName, connectionMon try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -1095,7 +1091,7 @@ function _beginStop(resourceGroupName, networkWatcherName, connectionMonitorName if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1167,13 +1163,12 @@ function _beginStop(resourceGroupName, networkWatcherName, connectionMonitorName try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -1228,7 +1223,7 @@ function _beginStart(resourceGroupName, networkWatcherName, connectionMonitorNam if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1300,13 +1295,12 @@ function _beginStart(resourceGroupName, networkWatcherName, connectionMonitorNam try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -1364,7 +1358,7 @@ function _beginQuery(resourceGroupName, networkWatcherName, connectionMonitorNam if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1436,13 +1430,12 @@ function _beginQuery(resourceGroupName, networkWatcherName, connectionMonitorNam try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { diff --git a/lib/services/networkManagement2/lib/operations/ddosProtectionPlans.js b/lib/services/networkManagement2/lib/operations/ddosProtectionPlans.js index b042b7dd1c..9240cf8d13 100644 --- a/lib/services/networkManagement2/lib/operations/ddosProtectionPlans.js +++ b/lib/services/networkManagement2/lib/operations/ddosProtectionPlans.js @@ -112,7 +112,7 @@ function _get(resourceGroupName, ddosProtectionPlanName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -337,7 +337,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -471,7 +471,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -609,7 +609,7 @@ function _beginDeleteMethod(resourceGroupName, ddosProtectionPlanName, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -742,7 +742,7 @@ function _beginCreateOrUpdate(resourceGroupName, ddosProtectionPlanName, paramet if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/defaultSecurityRules.js b/lib/services/networkManagement2/lib/operations/defaultSecurityRules.js index bdde507af6..c01fcee530 100644 --- a/lib/services/networkManagement2/lib/operations/defaultSecurityRules.js +++ b/lib/services/networkManagement2/lib/operations/defaultSecurityRules.js @@ -51,7 +51,7 @@ function _list(resourceGroupName, networkSecurityGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -198,7 +198,7 @@ function _get(resourceGroupName, networkSecurityGroupName, defaultSecurityRuleNa if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/expressRouteCircuitAuthorizations.js b/lib/services/networkManagement2/lib/operations/expressRouteCircuitAuthorizations.js index 183d5b8462..a0ab216328 100644 --- a/lib/services/networkManagement2/lib/operations/expressRouteCircuitAuthorizations.js +++ b/lib/services/networkManagement2/lib/operations/expressRouteCircuitAuthorizations.js @@ -118,7 +118,7 @@ function _get(resourceGroupName, circuitName, authorizationName, options, callba if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -367,7 +367,7 @@ function _list(resourceGroupName, circuitName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -512,7 +512,7 @@ function _beginDeleteMethod(resourceGroupName, circuitName, authorizationName, o if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -665,7 +665,7 @@ function _beginCreateOrUpdate(resourceGroupName, circuitName, authorizationName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/expressRouteCircuitConnections.js b/lib/services/networkManagement2/lib/operations/expressRouteCircuitConnections.js index b11d32d6de..df47f5d1f9 100644 --- a/lib/services/networkManagement2/lib/operations/expressRouteCircuitConnections.js +++ b/lib/services/networkManagement2/lib/operations/expressRouteCircuitConnections.js @@ -125,7 +125,7 @@ function _get(resourceGroupName, circuitName, peeringName, connectionName, optio if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -355,157 +355,6 @@ function _createOrUpdate(resourceGroupName, circuitName, peeringName, connection }); } -/** - * 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 {function} callback - The callback. - * - * @returns {function} callback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link ExpressRouteCircuitConnectionListResult} for - * more information. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ -function _list(resourceGroupName, circuitName, peeringName, options, callback) { - /* jshint validthis: true */ - let client = this.client; - if(!callback && typeof options === 'function') { - callback = options; - options = null; - } - if (!callback) { - throw new Error('callback cannot be null.'); - } - let apiVersion = '2018-10-01'; - // Validate - try { - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); - } - if (circuitName === null || circuitName === undefined || typeof circuitName.valueOf() !== 'string') { - throw new Error('circuitName cannot be null or undefined and it must be of type string.'); - } - if (peeringName === null || peeringName === undefined || typeof peeringName.valueOf() !== 'string') { - throw new Error('peeringName cannot be null or undefined and it must be of type string.'); - } - if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { - throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); - } - if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { - throw new Error('this.client.acceptLanguage must be of type string.'); - } - } catch (error) { - return callback(error); - } - - // Construct URL - let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections'; - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{circuitName}', encodeURIComponent(circuitName)); - requestUrl = requestUrl.replace('{peeringName}', encodeURIComponent(peeringName)); - requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); - if (queryParameters.length > 0) { - requestUrl += '?' + queryParameters.join('&'); - } - - // Create HTTP transport objects - let httpRequest = new WebResource(); - httpRequest.method = 'GET'; - httpRequest.url = requestUrl; - httpRequest.headers = {}; - // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - if (this.client.generateClientRequestId) { - httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); - } - if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { - httpRequest.headers['accept-language'] = this.client.acceptLanguage; - } - if(options) { - for(let headerName in options['customHeaders']) { - if (options['customHeaders'].hasOwnProperty(headerName)) { - httpRequest.headers[headerName] = options['customHeaders'][headerName]; - } - } - } - httpRequest.body = null; - // Send Request - return client.pipeline(httpRequest, (err, response, responseBody) => { - if (err) { - return callback(err); - } - let statusCode = response.statusCode; - if (statusCode !== 200) { - let error = new Error(responseBody); - error.statusCode = response.statusCode; - error.request = msRest.stripRequest(httpRequest); - error.response = msRest.stripResponse(response); - if (responseBody === '') responseBody = null; - let parsedErrorResponse; - try { - parsedErrorResponse = JSON.parse(responseBody); - if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; - } - if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['CloudError']().mapper(); - error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); - } - } catch (defaultError) { - error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + - `- "${responseBody}" for the default response.`; - return callback(error); - } - return callback(error); - } - // Create Result - let result = null; - if (responseBody === '') responseBody = null; - // Deserialize Response - if (statusCode === 200) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['ExpressRouteCircuitConnectionListResult']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - } - - return callback(null, result, httpRequest, response); - }); -} - /** * Deletes the specified Express Route Circuit Connection from the specified * express route circuit. @@ -546,7 +395,7 @@ function _beginDeleteMethod(resourceGroupName, circuitName, peeringName, connect if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -716,7 +565,7 @@ function _beginCreateOrUpdate(resourceGroupName, circuitName, peeringName, conne if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -866,135 +715,6 @@ function _beginCreateOrUpdate(resourceGroupName, circuitName, peeringName, conne }); } -/** - * 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 {function} callback - The callback. - * - * @returns {function} callback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link ExpressRouteCircuitConnectionListResult} for - * more information. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ -function _listNext(nextPageLink, options, callback) { - /* jshint validthis: true */ - let client = this.client; - if(!callback && typeof options === 'function') { - callback = options; - options = null; - } - if (!callback) { - throw new Error('callback cannot be null.'); - } - // Validate - try { - if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { - throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); - } - if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { - throw new Error('this.client.acceptLanguage must be of type string.'); - } - } catch (error) { - return callback(error); - } - - // Construct URL - let requestUrl = '{nextLink}'; - requestUrl = requestUrl.replace('{nextLink}', nextPageLink); - - // Create HTTP transport objects - let httpRequest = new WebResource(); - httpRequest.method = 'GET'; - httpRequest.url = requestUrl; - httpRequest.headers = {}; - // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - if (this.client.generateClientRequestId) { - httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); - } - if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { - httpRequest.headers['accept-language'] = this.client.acceptLanguage; - } - if(options) { - for(let headerName in options['customHeaders']) { - if (options['customHeaders'].hasOwnProperty(headerName)) { - httpRequest.headers[headerName] = options['customHeaders'][headerName]; - } - } - } - httpRequest.body = null; - // Send Request - return client.pipeline(httpRequest, (err, response, responseBody) => { - if (err) { - return callback(err); - } - let statusCode = response.statusCode; - if (statusCode !== 200) { - let error = new Error(responseBody); - error.statusCode = response.statusCode; - error.request = msRest.stripRequest(httpRequest); - error.response = msRest.stripResponse(response); - if (responseBody === '') responseBody = null; - let parsedErrorResponse; - try { - parsedErrorResponse = JSON.parse(responseBody); - if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; - } - if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['CloudError']().mapper(); - error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); - } - } catch (defaultError) { - error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + - `- "${responseBody}" for the default response.`; - return callback(error); - } - return callback(error); - } - // Create Result - let result = null; - if (responseBody === '') responseBody = null; - // Deserialize Response - if (statusCode === 200) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['ExpressRouteCircuitConnectionListResult']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - } - - return callback(null, result, httpRequest, response); - }); -} - /** Class representing a ExpressRouteCircuitConnections. */ class ExpressRouteCircuitConnections { /** @@ -1006,10 +726,8 @@ class ExpressRouteCircuitConnections { this._deleteMethod = _deleteMethod; this._get = _get; this._createOrUpdate = _createOrUpdate; - this._list = _list; this._beginDeleteMethod = _beginDeleteMethod; this._beginCreateOrUpdate = _beginCreateOrUpdate; - this._listNext = _listNext; } /** @@ -1365,99 +1083,6 @@ class ExpressRouteCircuitConnections { } } - /** - * 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} - The error object. - */ - listWithHttpOperationResponse(resourceGroupName, circuitName, peeringName, options) { - let client = this.client; - let self = this; - return new Promise((resolve, reject) => { - self._list(resourceGroupName, circuitName, peeringName, options, (err, result, request, response) => { - let httpOperationResponse = new msRest.HttpOperationResponse(request, response); - httpOperationResponse.body = result; - if (err) { reject(err); } - else { resolve(httpOperationResponse); } - return; - }); - }); - } - - /** - * 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 {function} [optionalCallback] - The optional callback. - * - * @returns {function|Promise} 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} - The error object. - * - * {function} optionalCallback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link ExpressRouteCircuitConnectionListResult} for - * more information. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ - list(resourceGroupName, circuitName, peeringName, options, optionalCallback) { - let client = this.client; - let self = this; - if (!optionalCallback && typeof options === 'function') { - optionalCallback = options; - options = null; - } - if (!optionalCallback) { - return new Promise((resolve, reject) => { - self._list(resourceGroupName, circuitName, peeringName, options, (err, result, request, response) => { - if (err) { reject(err); } - else { resolve(result); } - return; - }); - }); - } else { - return self._list(resourceGroupName, circuitName, peeringName, options, optionalCallback); - } - } - /** * Deletes the specified Express Route Circuit Connection from the specified * express route circuit. @@ -1712,93 +1337,6 @@ class ExpressRouteCircuitConnections { } } - /** - * 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} - The error object. - */ - listNextWithHttpOperationResponse(nextPageLink, options) { - let client = this.client; - let self = this; - return new Promise((resolve, reject) => { - self._listNext(nextPageLink, options, (err, result, request, response) => { - let httpOperationResponse = new msRest.HttpOperationResponse(request, response); - httpOperationResponse.body = result; - if (err) { reject(err); } - else { resolve(httpOperationResponse); } - return; - }); - }); - } - - /** - * 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 {function} [optionalCallback] - The optional callback. - * - * @returns {function|Promise} 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} - The error object. - * - * {function} optionalCallback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link ExpressRouteCircuitConnectionListResult} for - * more information. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ - listNext(nextPageLink, options, optionalCallback) { - let client = this.client; - let self = this; - if (!optionalCallback && typeof options === 'function') { - optionalCallback = options; - options = null; - } - if (!optionalCallback) { - return new Promise((resolve, reject) => { - self._listNext(nextPageLink, options, (err, result, request, response) => { - if (err) { reject(err); } - else { resolve(result); } - return; - }); - }); - } else { - return self._listNext(nextPageLink, options, optionalCallback); - } - } - } module.exports = ExpressRouteCircuitConnections; diff --git a/lib/services/networkManagement2/lib/operations/expressRouteCircuitPeerings.js b/lib/services/networkManagement2/lib/operations/expressRouteCircuitPeerings.js index 1dd8a495d4..4adf907ca0 100644 --- a/lib/services/networkManagement2/lib/operations/expressRouteCircuitPeerings.js +++ b/lib/services/networkManagement2/lib/operations/expressRouteCircuitPeerings.js @@ -117,7 +117,7 @@ function _get(resourceGroupName, circuitName, peeringName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -360,9 +360,6 @@ function _get(resourceGroupName, circuitName, peeringName, options, callback) { * 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. * @@ -479,7 +476,7 @@ function _list(resourceGroupName, circuitName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -623,7 +620,7 @@ function _beginDeleteMethod(resourceGroupName, circuitName, peeringName, options if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -848,9 +845,6 @@ function _beginDeleteMethod(resourceGroupName, circuitName, peeringName, options * 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. * @@ -889,7 +883,7 @@ function _beginCreateOrUpdate(resourceGroupName, circuitName, peeringName, peeri if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1490,9 +1484,6 @@ class ExpressRouteCircuitPeerings { * 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. * @@ -1657,9 +1648,6 @@ class ExpressRouteCircuitPeerings { * 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. * @@ -2023,9 +2011,6 @@ class ExpressRouteCircuitPeerings { * 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. * @@ -2190,9 +2175,6 @@ class ExpressRouteCircuitPeerings { * 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. * diff --git a/lib/services/networkManagement2/lib/operations/expressRouteCircuits.js b/lib/services/networkManagement2/lib/operations/expressRouteCircuits.js index c33b5478e4..cf441bebfb 100644 --- a/lib/services/networkManagement2/lib/operations/expressRouteCircuits.js +++ b/lib/services/networkManagement2/lib/operations/expressRouteCircuits.js @@ -112,7 +112,7 @@ function _get(resourceGroupName, circuitName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -236,8 +236,7 @@ function _get(resourceGroupName, circuitName, options, callback) { * @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 'Basic'. Possible values include: 'Standard', - * 'Premium', 'Basic' + * are 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' * * @param {string} [parameters.sku.family] The family of the SKU. Possible * values are: 'UnlimitedData' and 'MeteredData'. Possible values include: @@ -275,24 +274,12 @@ function _get(resourceGroupName, circuitName, options, callback) { * @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.allowGlobalReach] Flag to enable Global Reach - * on the circuit. - * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. @@ -741,7 +728,7 @@ function _getStats(resourceGroupName, circuitName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -887,7 +874,7 @@ function _getPeeringStats(resourceGroupName, circuitName, peeringName, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1033,7 +1020,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1169,7 +1156,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1303,7 +1290,7 @@ function _beginDeleteMethod(resourceGroupName, circuitName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1409,8 +1396,7 @@ function _beginDeleteMethod(resourceGroupName, circuitName, options, callback) { * @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 'Basic'. Possible values include: 'Standard', - * 'Premium', 'Basic' + * are 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' * * @param {string} [parameters.sku.family] The family of the SKU. Possible * values are: 'UnlimitedData' and 'MeteredData'. Possible values include: @@ -1448,24 +1434,12 @@ function _beginDeleteMethod(resourceGroupName, circuitName, options, callback) { * @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.allowGlobalReach] Flag to enable Global Reach - * on the circuit. - * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. @@ -1500,7 +1474,7 @@ function _beginCreateOrUpdate(resourceGroupName, circuitName, parameters, option if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1682,7 +1656,7 @@ function _beginUpdateTags(resourceGroupName, circuitName, parameters, options, c if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1848,7 +1822,7 @@ function _beginListArpTable(resourceGroupName, circuitName, peeringName, deviceP if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2005,7 +1979,7 @@ function _beginListRoutesTable(resourceGroupName, circuitName, peeringName, devi if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2163,7 +2137,7 @@ function _beginListRoutesTableSummary(resourceGroupName, circuitName, peeringNam if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2750,8 +2724,7 @@ class ExpressRouteCircuits { * @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 'Basic'. Possible values include: 'Standard', - * 'Premium', 'Basic' + * are 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' * * @param {string} [parameters.sku.family] The family of the SKU. Possible * values are: 'UnlimitedData' and 'MeteredData'. Possible values include: @@ -2789,24 +2762,12 @@ class ExpressRouteCircuits { * @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.allowGlobalReach] Flag to enable Global Reach - * on the circuit. - * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. @@ -2853,8 +2814,7 @@ class ExpressRouteCircuits { * @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 'Basic'. Possible values include: 'Standard', - * 'Premium', 'Basic' + * are 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' * * @param {string} [parameters.sku.family] The family of the SKU. Possible * values are: 'UnlimitedData' and 'MeteredData'. Possible values include: @@ -2892,24 +2852,12 @@ class ExpressRouteCircuits { * @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.allowGlobalReach] Flag to enable Global Reach - * on the circuit. - * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. @@ -3791,8 +3739,7 @@ class ExpressRouteCircuits { * @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 'Basic'. Possible values include: 'Standard', - * 'Premium', 'Basic' + * are 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' * * @param {string} [parameters.sku.family] The family of the SKU. Possible * values are: 'UnlimitedData' and 'MeteredData'. Possible values include: @@ -3830,24 +3777,12 @@ class ExpressRouteCircuits { * @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.allowGlobalReach] Flag to enable Global Reach - * on the circuit. - * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. @@ -3894,8 +3829,7 @@ class ExpressRouteCircuits { * @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 'Basic'. Possible values include: 'Standard', - * 'Premium', 'Basic' + * are 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' * * @param {string} [parameters.sku.family] The family of the SKU. Possible * values are: 'UnlimitedData' and 'MeteredData'. Possible values include: @@ -3933,24 +3867,12 @@ class ExpressRouteCircuits { * @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.allowGlobalReach] Flag to enable Global Reach - * on the circuit. - * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. diff --git a/lib/services/networkManagement2/lib/operations/expressRouteCrossConnectionPeerings.js b/lib/services/networkManagement2/lib/operations/expressRouteCrossConnectionPeerings.js index 6b95dfb5c9..ce0cca7eb5 100644 --- a/lib/services/networkManagement2/lib/operations/expressRouteCrossConnectionPeerings.js +++ b/lib/services/networkManagement2/lib/operations/expressRouteCrossConnectionPeerings.js @@ -51,7 +51,7 @@ function _list(resourceGroupName, crossConnectionName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -264,7 +264,7 @@ function _get(resourceGroupName, crossConnectionName, peeringName, options, call if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -595,7 +595,7 @@ function _beginDeleteMethod(resourceGroupName, crossConnectionName, peeringName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -829,7 +829,7 @@ function _beginCreateOrUpdate(resourceGroupName, crossConnectionName, peeringNam if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/expressRouteCrossConnections.js b/lib/services/networkManagement2/lib/operations/expressRouteCrossConnections.js index 6091982c69..de518e65a7 100644 --- a/lib/services/networkManagement2/lib/operations/expressRouteCrossConnections.js +++ b/lib/services/networkManagement2/lib/operations/expressRouteCrossConnections.js @@ -46,7 +46,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -180,7 +180,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -322,7 +322,7 @@ function _get(resourceGroupName, crossConnectionName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -947,7 +947,7 @@ function _beginCreateOrUpdate(resourceGroupName, crossConnectionName, parameters if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1113,7 +1113,7 @@ function _beginUpdateTags(resourceGroupName, crossConnectionName, crossConnectio if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1280,7 +1280,7 @@ function _beginListArpTable(resourceGroupName, crossConnectionName, peeringName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1439,7 +1439,7 @@ function _beginListRoutesTableSummary(resourceGroupName, crossConnectionName, pe if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1597,7 +1597,7 @@ function _beginListRoutesTable(resourceGroupName, crossConnectionName, peeringNa if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/expressRouteServiceProviders.js b/lib/services/networkManagement2/lib/operations/expressRouteServiceProviders.js index 8a848a5f78..b7c03e9544 100644 --- a/lib/services/networkManagement2/lib/operations/expressRouteServiceProviders.js +++ b/lib/services/networkManagement2/lib/operations/expressRouteServiceProviders.js @@ -46,7 +46,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/hubVirtualNetworkConnections.js b/lib/services/networkManagement2/lib/operations/hubVirtualNetworkConnections.js index 5940773bc1..43c41ec915 100644 --- a/lib/services/networkManagement2/lib/operations/hubVirtualNetworkConnections.js +++ b/lib/services/networkManagement2/lib/operations/hubVirtualNetworkConnections.js @@ -52,7 +52,7 @@ function _get(resourceGroupName, virtualHubName, connectionName, options, callba if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -201,7 +201,7 @@ function _list(resourceGroupName, virtualHubName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/inboundNatRules.js b/lib/services/networkManagement2/lib/operations/inboundNatRules.js index e06bd3730f..9c477eb7f5 100644 --- a/lib/services/networkManagement2/lib/operations/inboundNatRules.js +++ b/lib/services/networkManagement2/lib/operations/inboundNatRules.js @@ -50,7 +50,7 @@ function _list(resourceGroupName, loadBalancerName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -263,7 +263,7 @@ function _get(resourceGroupName, loadBalancerName, inboundNatRuleName, options, throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -421,10 +421,6 @@ function _get(resourceGroupName, loadBalancerName, inboundNatRuleName, options, * 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'. @@ -544,7 +540,7 @@ function _beginDeleteMethod(resourceGroupName, loadBalancerName, inboundNatRuleN if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -678,10 +674,6 @@ function _beginDeleteMethod(resourceGroupName, loadBalancerName, inboundNatRuleN * 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'. @@ -723,7 +715,7 @@ function _beginCreateOrUpdate(resourceGroupName, loadBalancerName, inboundNatRul if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1323,10 +1315,6 @@ class InboundNatRules { * 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'. @@ -1404,10 +1392,6 @@ class InboundNatRules { * 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'. @@ -1596,10 +1580,6 @@ class InboundNatRules { * 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'. @@ -1677,10 +1657,6 @@ class InboundNatRules { * 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'. diff --git a/lib/services/networkManagement2/lib/operations/index.d.ts b/lib/services/networkManagement2/lib/operations/index.d.ts index d9ff0d7af2..541f2be920 100644 --- a/lib/services/networkManagement2/lib/operations/index.d.ts +++ b/lib/services/networkManagement2/lib/operations/index.d.ts @@ -14,19 +14,19 @@ import * as models from '../models'; /** * @class - * ApplicationGateways + * AzureFirewalls * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ -export interface ApplicationGateways { +export interface AzureFirewalls { /** - * Deletes the specified application gateway. + * Deletes the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} applicationGatewayName The name of the application gateway. + * @param {string} azureFirewallName The name of the Azure Firewall. * * @param {object} [options] Optional Parameters. * @@ -39,14 +39,14 @@ export interface ApplicationGateways { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, azureFirewallName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified application gateway. + * Deletes the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} applicationGatewayName The name of the application gateway. + * @param {string} azureFirewallName The name of the Azure Firewall. * * @param {object} [options] Optional Parameters. * @@ -74,17 +74,17 @@ export interface ApplicationGateways { * * {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; + 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 application gateway. + * Gets the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} applicationGatewayName The name of the application gateway. + * @param {string} azureFirewallName The name of the Azure Firewall. * * @param {object} [options] Optional Parameters. * @@ -93,18 +93,18 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, azureFirewallName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified application gateway. + * Gets the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} applicationGatewayName The name of the application gateway. + * @param {string} azureFirewallName The name of the Azure Firewall. * * @param {object} [options] Optional Parameters. * @@ -118,7 +118,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {ApplicationGateway} - The deserialized result object. + * @resolve {AzureFirewall} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -126,184 +126,40 @@ export interface ApplicationGateways { * * {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. + * {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, 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; + 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 application gateway. + * Creates or updates the specified Azure Firewall. * * @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 application - * the gateway resource. - * - * @param {array} [parameters.authenticationCertificates] Authentication - * certificates of the application gateway resource. - * - * @param {array} [parameters.trustedRootCertificates] Trusted Root - * certificates of the application gateway resource. - * - * @param {array} [parameters.sslCertificates] SSL certificates of the - * application gateway resource. - * - * @param {array} [parameters.frontendIPConfigurations] Frontend IP addresses - * of the application gateway resource. - * - * @param {array} [parameters.frontendPorts] Frontend ports of the application - * gateway resource. - * - * @param {array} [parameters.probes] Probes of the application gateway - * resource. - * - * @param {array} [parameters.backendAddressPools] Backend address pool of the - * application gateway resource. - * - * @param {array} [parameters.backendHttpSettingsCollection] Backend http - * settings of the application gateway resource. - * - * @param {array} [parameters.httpListeners] Http listeners of the application - * gateway resource. - * - * @param {array} [parameters.urlPathMaps] URL path map of the application - * gateway resource. - * - * @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. - * - * @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] Maxium - * request body size for WAF. - * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] - * Maxium request body size in Kb for WAF. - * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium - * file upload size in Mb for WAF. - * - * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] - * The exclusion list. - * - * @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 instances - * - * @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} azureFirewallName The name of the Azure Firewall. * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @param {object} parameters Parameters supplied to the create or update Azure + * Firewall operation. * - * @param {array} [parameters.zones] A list of availability zones denoting - * where the resource needs to come from. + * @param {array} [parameters.applicationRuleCollections] Collection of + * application rule collections used by a Azure Firewall. * - * @param {object} [parameters.identity] The identity of the application - * gateway, if configured. + * @param {array} [parameters.networkRuleCollections] Collection of network + * rule collections used by a Azure Firewall. * - * @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 {array} [parameters.ipConfigurations] IP configuration of the Azure + * Firewall resource. * - * @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.provisioningState] The provisioning state of the + * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', + * 'Failed' * * @param {string} [parameters.id] Resource ID. * @@ -318,178 +174,34 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, azureFirewallName: string, parameters: models.AzureFirewall, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates the specified application gateway. + * Creates or updates the specified Azure Firewall. * * @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 application - * the gateway resource. - * - * @param {array} [parameters.authenticationCertificates] Authentication - * certificates of the application gateway resource. - * - * @param {array} [parameters.trustedRootCertificates] Trusted Root - * certificates of the application gateway resource. - * - * @param {array} [parameters.sslCertificates] SSL certificates of the - * application gateway resource. - * - * @param {array} [parameters.frontendIPConfigurations] Frontend IP addresses - * of the application gateway resource. - * - * @param {array} [parameters.frontendPorts] Frontend ports of the application - * gateway resource. - * - * @param {array} [parameters.probes] Probes of the application gateway - * resource. - * - * @param {array} [parameters.backendAddressPools] Backend address pool of the - * application gateway resource. - * - * @param {array} [parameters.backendHttpSettingsCollection] Backend http - * settings of the application gateway resource. - * - * @param {array} [parameters.httpListeners] Http listeners of the application - * gateway resource. - * - * @param {array} [parameters.urlPathMaps] URL path map of the application - * gateway resource. - * - * @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. - * - * @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] Maxium - * request body size for WAF. - * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] - * Maxium request body size in Kb for WAF. - * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium - * file upload size in Mb for WAF. - * - * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] - * The exclusion list. - * - * @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 instances - * - * @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} azureFirewallName The name of the Azure Firewall. * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @param {object} parameters Parameters supplied to the create or update Azure + * Firewall operation. * - * @param {array} [parameters.zones] A list of availability zones denoting - * where the resource needs to come from. + * @param {array} [parameters.applicationRuleCollections] Collection of + * application rule collections used by a Azure Firewall. * - * @param {object} [parameters.identity] The identity of the application - * gateway, if configured. + * @param {array} [parameters.networkRuleCollections] Collection of network + * rule collections used by a Azure Firewall. * - * @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 {array} [parameters.ipConfigurations] IP configuration of the Azure + * Firewall resource. * - * @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.provisioningState] The provisioning state of the + * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', + * 'Failed' * * @param {string} [parameters.id] Resource ID. * @@ -509,7 +221,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {ApplicationGateway} - The deserialized result object. + * @resolve {AzureFirewall} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -517,30 +229,23 @@ export interface ApplicationGateways { * * {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. + * {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, 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; + 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; /** - * Updates the specified application gateway tags. + * Lists all Azure Firewalls in a resource group. * * @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 @@ -548,24 +253,17 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates the specified application gateway tags. + * Lists all Azure Firewalls in a resource group. * * @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 @@ -578,7 +276,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {ApplicationGateway} - The deserialized result object. + * @resolve {AzureFirewallListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -586,22 +284,21 @@ export interface ApplicationGateways { * * {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. + * {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. */ - 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; + 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; /** - * Lists all application gateways in a resource group. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all the Azure Firewalls in a subscription. * * @param {object} [options] Optional Parameters. * @@ -610,16 +307,14 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all application gateways in a resource group. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all the Azure Firewalls in a subscription. * * @param {object} [options] Optional Parameters. * @@ -633,7 +328,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {ApplicationGatewayListResult} - The deserialized result object. + * @resolve {AzureFirewallListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -641,21 +336,25 @@ export interface ApplicationGateways { * * {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 + * {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; + listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAll(callback: ServiceCallback): void; + listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets all the application gateways in a subscription. + * 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. * @@ -664,14 +363,18 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, azureFirewallName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the application gateways in a subscription. + * 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. * @@ -685,7 +388,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {ApplicationGatewayListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -693,25 +396,45 @@ export interface ApplicationGateways { * * {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. + * {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. */ - listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listAll(callback: ServiceCallback): void; - listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * Starts the specified application gateway. + * Creates or updates the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} applicationGatewayName The name of the application gateway. + * @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 a Azure Firewall. + * + * @param {array} [parameters.networkRuleCollections] Collection of network + * rule collections used by a 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.id] Resource ID. + * + * @param {string} [parameters.location] Resource location. + * + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -720,18 +443,40 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - startWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, azureFirewallName: string, parameters: models.AzureFirewall, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Starts the specified application gateway. + * Creates or updates the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} applicationGatewayName The name of the application gateway. + * @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 a Azure Firewall. + * + * @param {array} [parameters.networkRuleCollections] Collection of network + * rule collections used by a 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.id] Resource ID. + * + * @param {string} [parameters.location] Resource location. + * + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -745,7 +490,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {AzureFirewall} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -753,23 +498,23 @@ export interface ApplicationGateways { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Stops the specified application gateway in a resource group. - * - * @param {string} resourceGroupName The name of the resource group. + * Lists all Azure Firewalls in a resource group. * - * @param {string} applicationGatewayName The name of the application gateway. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -778,18 +523,17 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - stopWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Stops the specified application gateway in a resource group. + * Lists all Azure Firewalls in a resource group. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} applicationGatewayName The name of the application gateway. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -803,7 +547,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {AzureFirewallListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -811,103 +555,43 @@ export interface ApplicationGateways { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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 the backend health of the specified application gateway in a resource - * group. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all the Azure Firewalls in a subscription. * - * @param {string} applicationGatewayName The name of the application gateway. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @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. + * @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; - + listAllNextWithHttpOperationResponse(nextPageLink: string, 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 - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. + * Gets all the Azure Firewalls in a subscription. * - * @reject {Error|ServiceError} - The error object. - */ - listAvailableWafRuleSetsWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Lists all available web application firewall rule sets. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -921,7 +605,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {ApplicationGatewayAvailableWafRuleSetsResult} - The deserialized result object. + * @resolve {AzureFirewallListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -929,74 +613,34 @@ export interface ApplicationGateways { * * {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 + * {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. */ - listAvailableWafRuleSets(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listAvailableWafRuleSets(callback: ServiceCallback): void; - listAvailableWafRuleSets(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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 + * ApplicationGateways + * __NOTE__: An instance of this class is automatically created for an + * instance of the NetworkManagementClient. + */ +export interface ApplicationGateways { - /** - * 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. + * Deletes the specified application gateway. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {string} resourceGroupName The name of the resource group. * - * {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 {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * @@ -1005,71 +649,18 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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; - + deleteMethodWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: 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 - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. + * Deletes the specified application gateway. * - * @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} resourceGroupName The name of the resource group. * - * @param {string} predefinedPolicyName Name of Ssl predefined policy. + * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * @@ -1083,7 +674,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {ApplicationGatewaySslPredefinedPolicy} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -1091,21 +682,19 @@ export interface ApplicationGateways { * * {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. + * {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. */ - 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; + 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; /** - * Deletes the specified application gateway. + * Gets the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * @@ -1118,14 +707,14 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified application gateway. + * Gets the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * @@ -1143,7 +732,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {ApplicationGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -1151,15 +740,16 @@ export interface ApplicationGateways { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** @@ -1210,9 +800,6 @@ export interface ApplicationGateways { * @param {array} [parameters.authenticationCertificates] Authentication * certificates of the application gateway resource. * - * @param {array} [parameters.trustedRootCertificates] Trusted Root - * certificates of the application gateway resource. - * * @param {array} [parameters.sslCertificates] SSL certificates of the * application gateway resource. * @@ -1240,9 +827,6 @@ export interface ApplicationGateways { * @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. * @@ -1276,17 +860,6 @@ export interface ApplicationGateways { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] - * Maxium request body size in Kb for WAF. - * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium - * file upload size in Mb for WAF. - * - * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] - * The exclusion list. - * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -1295,8 +868,13 @@ export interface ApplicationGateways { * * @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration. * - * @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on - * number of Application Gateway instances + * @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds + * + * @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on + * number of Application Gateway instances. + * + * @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on + * number of Application Gateway instances. * * @param {string} [parameters.resourceGuid] Resource GUID property of the * application gateway resource. @@ -1305,30 +883,12 @@ export interface ApplicationGateways { * 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. @@ -1346,7 +906,7 @@ export interface ApplicationGateways { * * @reject {Error|ServiceError} - The error object. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, parameters: models.ApplicationGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, parameters: models.ApplicationGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates the specified application gateway. @@ -1396,9 +956,6 @@ export interface ApplicationGateways { * @param {array} [parameters.authenticationCertificates] Authentication * certificates of the application gateway resource. * - * @param {array} [parameters.trustedRootCertificates] Trusted Root - * certificates of the application gateway resource. - * * @param {array} [parameters.sslCertificates] SSL certificates of the * application gateway resource. * @@ -1426,9 +983,6 @@ export interface ApplicationGateways { * @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. * @@ -1462,17 +1016,6 @@ export interface ApplicationGateways { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] - * Maxium request body size in Kb for WAF. - * - * @param {number} - * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium - * file upload size in Mb for WAF. - * - * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] - * The exclusion list. - * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -1481,8 +1024,13 @@ export interface ApplicationGateways { * * @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration. * - * @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on - * number of Application Gateway instances + * @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds + * + * @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on + * number of Application Gateway instances. + * + * @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on + * number of Application Gateway instances. * * @param {string} [parameters.resourceGuid] Resource GUID property of the * application gateway resource. @@ -1491,30 +1039,12 @@ export interface ApplicationGateways { * 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. @@ -1548,9 +1078,9 @@ export interface ApplicationGateways { * * {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; + 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; /** @@ -1576,7 +1106,7 @@ export interface ApplicationGateways { * * @reject {Error|ServiceError} - The error object. */ - beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateTagsWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates the specified application gateway tags. @@ -1617,18 +1147,16 @@ export interface ApplicationGateways { * * {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; + 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; /** - * Starts the specified application gateway. + * Lists all application gateways 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 @@ -1636,19 +1164,17 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginStartWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Starts the specified application gateway. + * Lists all application gateways 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 @@ -1661,7 +1187,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {ApplicationGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -1669,23 +1195,21 @@ export interface ApplicationGateways { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * 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. + * Gets all the application gateways in a subscription. * * @param {object} [options] Optional Parameters. * @@ -1694,18 +1218,14 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginStopWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAllWithHttpOperationResponse(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. + * Gets all the application gateways in a subscription. * * @param {object} [options] Optional Parameters. * @@ -1719,7 +1239,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {ApplicationGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -1727,20 +1247,21 @@ export interface ApplicationGateways { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAll(callback: ServiceCallback): void; + listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets the backend health of the specified application gateway in a resource - * group. + * Starts the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * @@ -1748,23 +1269,19 @@ export interface ApplicationGateways { * * @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. + * @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>; + startWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the backend health of the specified application gateway in a resource - * group. + * Starts the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * @@ -1772,9 +1289,6 @@ export interface ApplicationGateways { * * @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 * @@ -1785,7 +1299,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {ApplicationGatewayBackendHealth} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -1793,24 +1307,23 @@ export interface ApplicationGateways { * * {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. + * {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. */ - 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; + 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; /** - * Lists all application gateways in a resource group. + * Stops the specified application gateway in a resource group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * @@ -1819,17 +1332,18 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + stopWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all application gateways in a resource group. + * Stops the specified application gateway in a resource group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * @@ -1843,7 +1357,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {ApplicationGatewayListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -1851,46 +1365,54 @@ export interface ApplicationGateways { * * {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. + * {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. */ - 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; + 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 all the application gateways in a subscription. + * Gets the backend health of the specified application gateway in a resource + * group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + backendHealthWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the application gateways in a subscription. + * Gets the backend health of the specified application gateway in a resource + * group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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 * @@ -1901,7 +1423,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {ApplicationGatewayListResult} - The deserialized result object. + * @resolve {ApplicationGatewayBackendHealth} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -1909,24 +1431,21 @@ export interface ApplicationGateways { * * {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 + * {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. */ - 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; + 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; /** - * Lists all SSL predefined policies for configuring Ssl policy. - * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * Lists all available web application firewall rule sets. * * @param {object} [options] Optional Parameters. * @@ -1935,17 +1454,14 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAvailableSslPredefinedPoliciesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAvailableWafRuleSetsWithHttpOperationResponse(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. + * Lists all available web application firewall rule sets. * * @param {object} [options] Optional Parameters. * @@ -1959,7 +1475,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {ApplicationGatewayAvailableSslPredefinedPolicies} - The deserialized result object. + * @resolve {ApplicationGatewayAvailableWafRuleSetsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -1967,36 +1483,22 @@ export interface ApplicationGateways { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ApplicationGatewayAvailableSslPredefinedPolicies} [result] - The deserialized result object if an error did not occur. + * {ApplicationGatewayAvailableWafRuleSetsResult} [result] - The deserialized result object if an error did not occur. * See {@link - * ApplicationGatewayAvailableSslPredefinedPolicies} for - * more information. + * 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. */ - 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 { + listAvailableWafRuleSets(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAvailableWafRuleSets(callback: ServiceCallback): void; + listAvailableWafRuleSets(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. + * Lists available Ssl options for configuring Ssl policy. * * @param {object} [options] Optional Parameters. * @@ -2005,19 +1507,14 @@ export interface ApplicationSecurityGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, applicationSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAvailableSslOptionsWithHttpOperationResponse(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. + * Lists available Ssl options for configuring Ssl policy. * * @param {object} [options] Optional Parameters. * @@ -2031,7 +1528,7 @@ export interface ApplicationSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {ApplicationGatewayAvailableSslOptions} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -2039,24 +1536,21 @@ export interface ApplicationSecurityGroups { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + listAvailableSslOptions(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAvailableSslOptions(callback: ServiceCallback): void; + listAvailableSslOptions(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. + * Lists all SSL predefined policies for configuring Ssl policy. * * @param {object} [options] Optional Parameters. * @@ -2065,19 +1559,14 @@ export interface ApplicationSecurityGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, applicationSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAvailableSslPredefinedPoliciesWithHttpOperationResponse(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. + * Lists all SSL predefined policies for configuring Ssl policy. * * @param {object} [options] Optional Parameters. * @@ -2091,7 +1580,7 @@ export interface ApplicationSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {ApplicationSecurityGroup} - The deserialized result object. + * @resolve {ApplicationGatewayAvailableSslPredefinedPolicies} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -2099,35 +1588,24 @@ export interface ApplicationSecurityGroups { * * {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. + * {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. */ - 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; + listAvailableSslPredefinedPolicies(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAvailableSslPredefinedPolicies(callback: ServiceCallback): void; + listAvailableSslPredefinedPolicies(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. + * Gets Ssl predefined policy with the specified policy name. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} predefinedPolicyName Name of Ssl predefined policy. * * @param {object} [options] Optional Parameters. * @@ -2136,28 +1614,16 @@ export interface ApplicationSecurityGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getSslPredefinedPolicyWithHttpOperationResponse(predefinedPolicyName: string, 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. + * Gets Ssl predefined policy with the specified policy name. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} predefinedPolicyName Name of Ssl predefined policy. * * @param {object} [options] Optional Parameters. * @@ -2171,7 +1637,7 @@ export interface ApplicationSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {ApplicationSecurityGroup} - The deserialized result object. + * @resolve {ApplicationGatewaySslPredefinedPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -2179,21 +1645,25 @@ export interface ApplicationSecurityGroups { * * {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. + * {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. */ - 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; + 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; /** - * Gets all application security groups in a subscription. + * 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. * @@ -2202,14 +1672,18 @@ export interface ApplicationSecurityGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all application security groups in a subscription. + * 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. * @@ -2223,7 +1697,7 @@ export interface ApplicationSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {ApplicationSecurityGroupListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -2231,145 +1705,153 @@ export interface ApplicationSecurityGroups { * * {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. + * {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. */ - listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listAll(callback: ServiceCallback): void; - listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * Gets all the application security groups in a resource group. + * Creates or updates the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * - * @param {object} [options] Optional Parameters. + * @param {string} applicationGatewayName The name of the application gateway. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {object} parameters Parameters supplied to the create or update + * application gateway operation. * - * @returns {Promise} A promise is returned + * @param {object} [parameters.sku] SKU of the application gateway resource. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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' * - * @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} [parameters.sku.tier] Tier of an application gateway. + * Possible values include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2' * - * @param {string} resourceGroupName The name of the resource group. + * @param {number} [parameters.sku.capacity] Capacity (instance count) of an + * application gateway. * - * @param {object} [options] Optional Parameters. + * @param {object} [parameters.sslPolicy] SSL policy of the application gateway + * resource. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {array} [parameters.sslPolicy.disabledSslProtocols] Ssl protocols to + * be disabled on application gateway. * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {string} [parameters.sslPolicy.policyType] Type of Ssl Policy. + * Possible values include: 'Predefined', 'Custom' * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {string} [parameters.sslPolicy.policyName] Name of Ssl predefined + * policy. Possible values include: 'AppGwSslPolicy20150501', + * 'AppGwSslPolicy20170401', 'AppGwSslPolicy20170401S' * - * {Promise} A promise is returned. + * @param {array} [parameters.sslPolicy.cipherSuites] Ssl cipher suites to be + * enabled in the specified order to application gateway. * - * @resolve {ApplicationSecurityGroupListResult} - The deserialized result object. + * @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' * - * @reject {Error|ServiceError} - The error object. + * @param {array} [parameters.gatewayIPConfigurations] Subnets of application + * the gateway resource. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {array} [parameters.authenticationCertificates] Authentication + * certificates of the application gateway resource. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {array} [parameters.sslCertificates] SSL certificates of the + * application gateway resource. * - * {ApplicationSecurityGroupListResult} [result] - The deserialized result object if an error did not occur. - * See {@link ApplicationSecurityGroupListResult} for more - * information. + * @param {array} [parameters.frontendIPConfigurations] Frontend IP addresses + * of the application gateway resource. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {array} [parameters.frontendPorts] Frontend ports of the application + * gateway resource. * - * {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 {array} [parameters.probes] Probes of the application gateway + * resource. * - * @param {string} resourceGroupName The name of the resource group. + * @param {array} [parameters.backendAddressPools] Backend address pool of the + * application gateway resource. * - * @param {string} applicationSecurityGroupName The name of the application - * security group. + * @param {array} [parameters.backendHttpSettingsCollection] Backend http + * settings of the application gateway resource. * - * @param {object} [options] Optional Parameters. + * @param {array} [parameters.httpListeners] Http listeners of the application + * gateway resource. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {array} [parameters.urlPathMaps] URL path map of the application + * gateway resource. * - * @returns {Promise} A promise is returned + * @param {array} [parameters.requestRoutingRules] Request routing rules of the + * application gateway resource. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {array} [parameters.redirectConfigurations] Redirect configurations + * of the application gateway resource. * - * @reject {Error|ServiceError} - The error object. - */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, applicationSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Deletes the specified application security group. + * @param {object} [parameters.webApplicationFirewallConfiguration] Web + * application firewall configuration. * - * @param {string} resourceGroupName The name of the resource group. + * @param {boolean} parameters.webApplicationFirewallConfiguration.enabled + * Whether the web application firewall is enabled or not. * - * @param {string} applicationSecurityGroupName The name of the application - * security group. + * @param {string} parameters.webApplicationFirewallConfiguration.firewallMode + * Web application firewall mode. Possible values include: 'Detection', + * 'Prevention' * - * @param {object} [options] Optional Parameters. + * @param {string} parameters.webApplicationFirewallConfiguration.ruleSetType + * The type of the web application firewall rule set. Possible values are: + * 'OWASP'. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {string} + * parameters.webApplicationFirewallConfiguration.ruleSetVersion The version of + * the rule set type. * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {array} + * [parameters.webApplicationFirewallConfiguration.disabledRuleGroups] The + * disabled rule groups. * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {boolean} + * [parameters.webApplicationFirewallConfiguration.requestBodyCheck] Whether + * allow WAF to check request Body. * - * {Promise} A promise is returned. + * @param {number} + * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium + * request body size for WAF. * - * @resolve {null} - The deserialized result object. + * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the + * application gateway resource. * - * @reject {Error|ServiceError} - The error object. + * @param {boolean} [parameters.enableFips] Whether FIPS is enabled on the + * application gateway resource. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds * - * {null} [result] - The deserialized result object if an error did not occur. + * @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on + * number of Application Gateway instances. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on + * number of Application Gateway instances. * - * {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} [parameters.resourceGuid] Resource GUID property of the + * application gateway resource. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} [parameters.provisioningState] Provisioning state of the + * application gateway resource. Possible values are: 'Updating', 'Deleting', + * and 'Failed'. * - * @param {string} applicationSecurityGroupName The name of the application - * security group. + * @param {string} [parameters.etag] A unique read-only string that changes + * whenever the resource is updated. * - * @param {object} parameters Parameters supplied to the create or update - * ApplicationSecurityGroup operation. + * @param {array} [parameters.zones] A list of availability zones denoting + * where the resource needs to come from. * * @param {string} [parameters.id] Resource ID. * @@ -2384,24 +1866,150 @@ export interface ApplicationSecurityGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, parameters: models.ApplicationGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates an application security group. + * Creates or updates the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} applicationSecurityGroupName The name of the application - * security group. + * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} parameters Parameters supplied to the create or update - * ApplicationSecurityGroup operation. + * application gateway operation. * - * @param {string} [parameters.id] Resource ID. + * @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 application + * the gateway resource. + * + * @param {array} [parameters.authenticationCertificates] Authentication + * certificates of the application gateway resource. + * + * @param {array} [parameters.sslCertificates] SSL certificates of the + * application gateway resource. + * + * @param {array} [parameters.frontendIPConfigurations] Frontend IP addresses + * of the application gateway resource. + * + * @param {array} [parameters.frontendPorts] Frontend ports of the application + * gateway resource. + * + * @param {array} [parameters.probes] Probes of the application gateway + * resource. + * + * @param {array} [parameters.backendAddressPools] Backend address pool of the + * application gateway resource. + * + * @param {array} [parameters.backendHttpSettingsCollection] Backend http + * settings of the application gateway resource. + * + * @param {array} [parameters.httpListeners] Http listeners of the application + * gateway resource. + * + * @param {array} [parameters.urlPathMaps] URL path map of the application + * gateway resource. + * + * @param {array} [parameters.requestRoutingRules] Request routing rules of the + * application gateway resource. + * + * @param {array} [parameters.redirectConfigurations] Redirect configurations + * of the application gateway resource. + * + * @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] Maxium + * request body size for WAF. + * + * @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 {object} parameters.autoscaleConfiguration.bounds Autoscale bounds + * + * @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on + * number of Application Gateway instances. + * + * @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on + * number of Application Gateway instances. + * + * @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 {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 {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * @@ -2419,7 +2027,7 @@ export interface ApplicationSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {ApplicationSecurityGroup} - The deserialized result object. + * @resolve {ApplicationGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -2427,24 +2035,29 @@ export interface ApplicationSecurityGroups { * * {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. + * {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, 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; + 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; /** - * Gets all application security groups in a subscription. + * Updates the specified application gateway tags. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -2453,17 +2066,23 @@ export interface ApplicationSecurityGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all application security groups in a subscription. + * Updates the specified application gateway tags. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -2477,7 +2096,7 @@ export interface ApplicationSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {ApplicationSecurityGroupListResult} - The deserialized result object. + * @resolve {ApplicationGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -2485,24 +2104,24 @@ export interface ApplicationSecurityGroups { * * {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. + * {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. */ - 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; + 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; /** - * Gets all the application security groups in a resource group. + * Starts the specified application gateway. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * @@ -2511,17 +2130,18 @@ export interface ApplicationSecurityGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginStartWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the application security groups in a resource group. + * Starts the specified application gateway. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * @@ -2535,7 +2155,7 @@ export interface ApplicationSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {ApplicationSecurityGroupListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -2543,55 +2163,112 @@ export interface ApplicationSecurityGroups { * * {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. + * {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. */ - 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; -} + 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; -/** - * @class - * AvailableDelegations - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - */ -export interface AvailableDelegations { + + /** + * 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 all of the available subnet delegations for this subscription in this - * region. + * Gets the backend health of the specified application gateway in a resource + * group. + * + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} location The location of the subnet. + * @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. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginBackendHealthWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all of the available subnet delegations for this subscription in this - * region. + * Gets the backend health of the specified application gateway in a resource + * group. + * + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} location The location of the subnet. + * @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 * @@ -2602,7 +2279,7 @@ export interface AvailableDelegations { * * {Promise} A promise is returned. * - * @resolve {AvailableDelegationsResult} - The deserialized result object. + * @resolve {ApplicationGatewayBackendHealth} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -2610,22 +2287,21 @@ export interface AvailableDelegations { * * {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 + * {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. */ - 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; + 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 all of the available subnet delegations for this subscription in this - * region. + * Lists all application gateways in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -2637,15 +2313,14 @@ export interface AvailableDelegations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all of the available subnet delegations for this subscription in this - * region. + * Lists all application gateways in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -2662,7 +2337,7 @@ export interface AvailableDelegations { * * {Promise} A promise is returned. * - * @resolve {AvailableDelegationsResult} - The deserialized result object. + * @resolve {ApplicationGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -2670,35 +2345,24 @@ export interface AvailableDelegations { * * {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 + * {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; -} - -/** - * @class - * AvailableResourceGroupDelegations - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - */ -export interface AvailableResourceGroupDelegations { + 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 of the available subnet delegations for this resource group in this - * region. - * - * @param {string} location The location of the domain name. + * Gets all the application gateways in a subscription. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -2707,19 +2371,17 @@ export interface AvailableResourceGroupDelegations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(location: string, resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAllNextWithHttpOperationResponse(nextPageLink: 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. + * Gets all the application gateways in a subscription. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -2733,7 +2395,7 @@ export interface AvailableResourceGroupDelegations { * * {Promise} A promise is returned. * - * @resolve {AvailableDelegationsResult} - The deserialized result object. + * @resolve {ApplicationGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -2741,22 +2403,21 @@ export interface AvailableResourceGroupDelegations { * * {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 + * {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(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; + 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 of the available subnet delegations for this resource group in this - * region. + * Lists all SSL predefined policies for configuring Ssl policy. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -2768,15 +2429,14 @@ export interface AvailableResourceGroupDelegations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAvailableSslPredefinedPoliciesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all of the available subnet delegations for this resource group in this - * region. + * Lists all SSL predefined policies for configuring Ssl policy. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -2793,7 +2453,7 @@ export interface AvailableResourceGroupDelegations { * * {Promise} A promise is returned. * - * @resolve {AvailableDelegationsResult} - The deserialized result object. + * @resolve {ApplicationGatewayAvailableSslPredefinedPolicies} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -2801,34 +2461,36 @@ export interface AvailableResourceGroupDelegations { * * {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. + * {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. */ - 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; + 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 - * AzureFirewalls + * ApplicationSecurityGroups * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ -export interface AzureFirewalls { +export interface ApplicationSecurityGroups { /** - * Deletes the specified Azure Firewall. + * Deletes the specified application security group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} azureFirewallName The name of the Azure Firewall. + * @param {string} applicationSecurityGroupName The name of the application + * security group. * * @param {object} [options] Optional Parameters. * @@ -2841,14 +2503,15 @@ export interface AzureFirewalls { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, azureFirewallName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, applicationSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified Azure Firewall. + * Deletes the specified application security group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} azureFirewallName The name of the Azure Firewall. + * @param {string} applicationSecurityGroupName The name of the application + * security group. * * @param {object} [options] Optional Parameters. * @@ -2876,17 +2539,18 @@ export interface AzureFirewalls { * * {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; + 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 the specified Azure Firewall. + * Gets information about the specified application security group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} azureFirewallName The name of the Azure Firewall. + * @param {string} applicationSecurityGroupName The name of the application + * security group. * * @param {object} [options] Optional Parameters. * @@ -2895,18 +2559,19 @@ export interface AzureFirewalls { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, azureFirewallName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, applicationSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified Azure Firewall. + * Gets information about the specified application security group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} azureFirewallName The name of the Azure Firewall. + * @param {string} applicationSecurityGroupName The name of the application + * security group. * * @param {object} [options] Optional Parameters. * @@ -2920,7 +2585,7 @@ export interface AzureFirewalls { * * {Promise} A promise is returned. * - * @resolve {AzureFirewall} - The deserialized result object. + * @resolve {ApplicationSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -2928,43 +2593,29 @@ export interface AzureFirewalls { * * {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. + * {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, 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; + 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 the specified Azure Firewall. + * Creates or updates an application security group. * * @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} applicationSecurityGroupName The name of the application + * security group. * - * @param {string} [parameters.provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' + * @param {object} parameters Parameters supplied to the create or update + * ApplicationSecurityGroup operation. * * @param {string} [parameters.id] Resource ID. * @@ -2979,37 +2630,22 @@ export interface AzureFirewalls { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.ApplicationSecurityGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates the specified Azure Firewall. + * Creates or updates an application security group. * * @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} applicationSecurityGroupName The name of the application + * security group. * - * @param {string} [parameters.provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' + * @param {object} parameters Parameters supplied to the create or update + * ApplicationSecurityGroup operation. * * @param {string} [parameters.id] Resource ID. * @@ -3029,7 +2665,7 @@ export interface AzureFirewalls { * * {Promise} A promise is returned. * - * @resolve {AzureFirewall} - The deserialized result object. + * @resolve {ApplicationSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -3037,22 +2673,21 @@ export interface AzureFirewalls { * * {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. + * {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, 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; + 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; /** - * Lists all Azure Firewalls in a resource group. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all application security groups in a subscription. * * @param {object} [options] Optional Parameters. * @@ -3061,16 +2696,14 @@ export interface AzureFirewalls { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all Azure Firewalls in a resource group. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all application security groups in a subscription. * * @param {object} [options] Optional Parameters. * @@ -3084,7 +2717,7 @@ export interface AzureFirewalls { * * {Promise} A promise is returned. * - * @resolve {AzureFirewallListResult} - The deserialized result object. + * @resolve {ApplicationSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -3092,21 +2725,23 @@ export interface AzureFirewalls { * * {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 + * {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; + listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAll(callback: ServiceCallback): void; + listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets all the Azure Firewalls in a subscription. + * Gets all the application security groups in a resource group. + * + * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * @@ -3115,14 +2750,16 @@ export interface AzureFirewalls { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the Azure Firewalls in a subscription. + * Gets all the application security groups in a resource group. + * + * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * @@ -3136,7 +2773,7 @@ export interface AzureFirewalls { * * {Promise} A promise is returned. * - * @resolve {AzureFirewallListResult} - The deserialized result object. + * @resolve {ApplicationSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -3144,25 +2781,26 @@ export interface AzureFirewalls { * * {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 + * {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; + 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 Azure Firewall. + * Deletes the specified application security group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} azureFirewallName The name of the Azure Firewall. + * @param {string} applicationSecurityGroupName The name of the application + * security group. * * @param {object} [options] Optional Parameters. * @@ -3175,14 +2813,15 @@ export interface AzureFirewalls { * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, azureFirewallName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, applicationSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified Azure Firewall. + * Deletes the specified application security group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} azureFirewallName The name of the Azure Firewall. + * @param {string} applicationSecurityGroupName The name of the application + * security group. * * @param {object} [options] Optional Parameters. * @@ -3210,36 +2849,21 @@ export interface AzureFirewalls { * * {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; + 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 the specified Azure Firewall. + * Creates or updates an application security group. * * @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} applicationSecurityGroupName The name of the application + * security group. * - * @param {string} [parameters.provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' + * @param {object} parameters Parameters supplied to the create or update + * ApplicationSecurityGroup operation. * * @param {string} [parameters.id] Resource ID. * @@ -3254,37 +2878,22 @@ export interface AzureFirewalls { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.ApplicationSecurityGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates the specified Azure Firewall. + * Creates or updates an application security group. * * @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} applicationSecurityGroupName The name of the application + * security group. * - * @param {string} [parameters.provisioningState] The provisioning state of the - * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' + * @param {object} parameters Parameters supplied to the create or update + * ApplicationSecurityGroup operation. * * @param {string} [parameters.id] Resource ID. * @@ -3304,64 +2913,7 @@ export interface AzureFirewalls { * * {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. + * @resolve {ApplicationSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -3369,21 +2921,21 @@ export interface AzureFirewalls { * * {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 + * {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. */ - 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; + 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; /** - * Gets all the Azure Firewalls in a subscription. + * Gets all application security groups in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -3395,14 +2947,14 @@ export interface AzureFirewalls { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the Azure Firewalls in a subscription. + * Gets all application security groups in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -3419,68 +2971,7 @@ export interface AzureFirewalls { * * {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. + * @resolve {ApplicationSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -3488,21 +2979,21 @@ export interface AzureFirewallFqdnTags { * * {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 + * {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; + 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 Azure Firewall FQDN Tags in a subscription. + * Gets all the application security groups in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -3514,14 +3005,14 @@ export interface AzureFirewallFqdnTags { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the Azure Firewall FQDN Tags in a subscription. + * Gets all the application security groups in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -3538,7 +3029,7 @@ export interface AzureFirewallFqdnTags { * * {Promise} A promise is returned. * - * @resolve {AzureFirewallFqdnTagListResult} - The deserialized result object. + * @resolve {ApplicationSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -3546,17 +3037,17 @@ export interface AzureFirewallFqdnTags { * * {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 + * {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; + 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; } /** @@ -5028,9 +4519,6 @@ export interface ExpressRouteCircuitPeerings { * 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. * @@ -5183,9 +4671,6 @@ export interface ExpressRouteCircuitPeerings { * 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. * @@ -5480,9 +4965,6 @@ export interface ExpressRouteCircuitPeerings { * 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. * @@ -5635,9 +5117,6 @@ export interface ExpressRouteCircuitPeerings { * 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. * @@ -6019,72 +5498,6 @@ export interface ExpressRouteCircuitConnections { 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. @@ -6283,66 +5696,6 @@ export interface ExpressRouteCircuitConnections { 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; } /** @@ -6486,8 +5839,7 @@ export interface ExpressRouteCircuits { * @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 'Basic'. Possible values include: 'Standard', - * 'Premium', 'Basic' + * are 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' * * @param {string} [parameters.sku.family] The family of the SKU. Possible * values are: 'UnlimitedData' and 'MeteredData'. Possible values include: @@ -6525,24 +5877,12 @@ export interface ExpressRouteCircuits { * @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.allowGlobalReach] Flag to enable Global Reach - * on the circuit. - * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. @@ -6577,8 +5917,7 @@ export interface ExpressRouteCircuits { * @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 'Basic'. Possible values include: 'Standard', - * 'Premium', 'Basic' + * are 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' * * @param {string} [parameters.sku.family] The family of the SKU. Possible * values are: 'UnlimitedData' and 'MeteredData'. Possible values include: @@ -6616,24 +5955,12 @@ export interface ExpressRouteCircuits { * @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.allowGlobalReach] Flag to enable Global Reach - * on the circuit. - * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. @@ -7257,8 +6584,7 @@ export interface ExpressRouteCircuits { * @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 'Basic'. Possible values include: 'Standard', - * 'Premium', 'Basic' + * are 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' * * @param {string} [parameters.sku.family] The family of the SKU. Possible * values are: 'UnlimitedData' and 'MeteredData'. Possible values include: @@ -7296,24 +6622,12 @@ export interface ExpressRouteCircuits { * @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.allowGlobalReach] Flag to enable Global Reach - * on the circuit. - * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. @@ -7348,8 +6662,7 @@ export interface ExpressRouteCircuits { * @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 'Basic'. Possible values include: 'Standard', - * 'Premium', 'Basic' + * are 'Standard' and 'Premium'. Possible values include: 'Standard', 'Premium' * * @param {string} [parameters.sku.family] The family of the SKU. Possible * values are: 'UnlimitedData' and 'MeteredData'. Possible values include: @@ -7387,24 +6700,12 @@ export interface ExpressRouteCircuits { * @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.allowGlobalReach] Flag to enable Global Reach - * on the circuit. - * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. @@ -9930,318 +9231,19 @@ export interface ExpressRouteCrossConnectionPeerings { /** * @class - * ExpressRouteGateways + * LoadBalancers * __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 {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 {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; +export interface LoadBalancers { /** - * Deletes the specified ExpressRoute gateway in a resource group. An - * ExpressRoute gateway resource can only be deleted when there are no - * connection subresources. + * Deletes the specified load balancer. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRouteGatewayName The name of the ExpressRoute - * gateway. + * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -10254,17 +9256,14 @@ export interface ExpressRouteGateways { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, expressRouteGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: 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. + * Deletes the specified load balancer. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRouteGatewayName The name of the ExpressRoute - * gateway. + * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -10292,108 +9291,44 @@ export interface ExpressRouteGateways { * * {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; + 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; /** - * Creates or updates a ExpressRoute gateway in a specified resource group. + * Gets the specified load balancer. * * @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 {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 {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. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a ExpressRoute gateway in a specified resource group. + * Gets the specified load balancer. * * @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 {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 {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 * @@ -10404,7 +9339,7 @@ export interface ExpressRouteGateways { * * {Promise} A promise is returned. * - * @resolve {ExpressRouteGateway} - The deserialized result object. + * @resolve {LoadBalancer} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10412,27 +9347,79 @@ export interface ExpressRouteGateways { * * {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. + * {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, 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; + 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; /** - * Deletes the specified ExpressRoute gateway in a resource group. An - * ExpressRoute gateway resource can only be deleted when there are no - * connection subresources. + * Creates or updates a load balancer. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRouteGatewayName The name of the ExpressRoute - * gateway. + * @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.outboundNatRules] The outbound NAT 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. * @@ -10441,21 +9428,73 @@ export interface ExpressRouteGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, expressRouteGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, parameters: models.LoadBalancer, 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. + * Creates or updates a load balancer. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRouteGatewayName The name of the ExpressRoute - * gateway. + * @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.outboundNatRules] The outbound NAT 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. * @@ -10469,7 +9508,7 @@ export interface ExpressRouteGateways { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {LoadBalancer} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10477,58 +9516,28 @@ export interface ExpressRouteGateways { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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 { + 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; /** - * Creates a connection between an ExpressRoute gateway and an ExpressRoute - * circuit. + * Updates a load balancer tags. * * @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 {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} loadBalancerName The name of the load balancer. * - * @param {string} putExpressRouteConnectionParameters.name The name of the - * resource. + * @param {object} parameters Parameters supplied to update load balancer tags. * - * @param {string} [putExpressRouteConnectionParameters.id] Resource ID. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -10537,44 +9546,22 @@ export interface ExpressRouteConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + updateTagsWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a connection between an ExpressRoute gateway and an ExpressRoute - * circuit. + * Updates a load balancer tags. * * @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 {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} loadBalancerName The name of the load balancer. * - * @param {string} putExpressRouteConnectionParameters.name The name of the - * resource. + * @param {object} parameters Parameters supplied to update load balancer tags. * - * @param {string} [putExpressRouteConnectionParameters.id] Resource ID. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -10588,7 +9575,7 @@ export interface ExpressRouteConnections { * * {Promise} A promise is returned. * - * @resolve {ExpressRouteConnection} - The deserialized result object. + * @resolve {LoadBalancer} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10596,28 +9583,20 @@ export interface ExpressRouteConnections { * * {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. + * {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, 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; + 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 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. + * Gets all the load balancers in a subscription. * * @param {object} [options] Optional Parameters. * @@ -10626,21 +9605,14 @@ export interface ExpressRouteConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listAllWithHttpOperationResponse(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. + * Gets all the load balancers in a subscription. * * @param {object} [options] Optional Parameters. * @@ -10654,7 +9626,7 @@ export interface ExpressRouteConnections { * * {Promise} A promise is returned. * - * @resolve {ExpressRouteConnection} - The deserialized result object. + * @resolve {LoadBalancerListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10662,29 +9634,24 @@ export interface ExpressRouteConnections { * * {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 + * {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. */ - 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; + listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAll(callback: ServiceCallback): void; + listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes a connection to a ExpressRoute circuit. + * Gets all the load balancers in a resource group. * * @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 @@ -10692,22 +9659,17 @@ export interface ExpressRouteConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes a connection to a ExpressRoute circuit. + * Gets all the load balancers in a resource group. * * @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 @@ -10720,7 +9682,7 @@ export interface ExpressRouteConnections { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {LoadBalancerListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10728,24 +9690,25 @@ export interface ExpressRouteConnections { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Lists ExpressRouteConnections. + * Deletes the specified load balancer. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRouteGatewayName The name of the ExpressRoute - * gateway. + * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -10754,19 +9717,18 @@ export interface ExpressRouteConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, expressRouteGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists ExpressRouteConnections. + * Deletes the specified load balancer. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRouteGatewayName The name of the ExpressRoute - * gateway. + * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -10780,7 +9742,7 @@ export interface ExpressRouteConnections { * * {Promise} A promise is returned. * - * @resolve {ExpressRouteConnectionList} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10788,51 +9750,78 @@ export interface ExpressRouteConnections { * * {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. + * {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. */ - 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; + 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 a connection between an ExpressRoute gateway and an ExpressRoute - * circuit. + * Creates or updates a load balancer. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRouteGatewayName The name of the ExpressRoute - * gateway. + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {object} parameters Parameters supplied to the create or update load + * balancer operation. * - * @param {string} connectionName The name of the connection subresource. + * @param {object} [parameters.sku] The load balancer SKU. * - * @param {object} putExpressRouteConnectionParameters Parameters required in - * an ExpressRouteConnection PUT operation. + * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible + * values include: 'Basic', 'Standard' * - * @param {object} - * putExpressRouteConnectionParameters.expressRouteCircuitPeering The - * ExpressRoute circuit peering. + * @param {array} [parameters.frontendIPConfigurations] Object representing the + * frontend IPs to be used for the load balancer * - * @param {string} - * [putExpressRouteConnectionParameters.expressRouteCircuitPeering.id] The ID - * of the ExpressRoute circuit peering. + * @param {array} [parameters.backendAddressPools] Collection of backend + * address pools used by a load balancer * - * @param {string} [putExpressRouteConnectionParameters.authorizationKey] - * Authorization key to establish the connection. + * @param {array} [parameters.loadBalancingRules] Object collection + * representing the load balancing rules Gets the provisioning * - * @param {number} [putExpressRouteConnectionParameters.routingWeight] The - * routing weight associated to the connection. + * @param {array} [parameters.probes] Collection of probe objects used in the + * load balancer * - * @param {string} putExpressRouteConnectionParameters.name The name of the - * resource. + * @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.outboundNatRules] The outbound NAT 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} [putExpressRouteConnectionParameters.id] Resource ID. + * @param {string} [parameters.location] Resource location. + * + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -10841,44 +9830,73 @@ export interface ExpressRouteConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, parameters: models.LoadBalancer, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a connection between an ExpressRoute gateway and an ExpressRoute - * circuit. + * Creates or updates a load balancer. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRouteGatewayName The name of the ExpressRoute - * gateway. + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {object} parameters Parameters supplied to the create or update load + * balancer operation. * - * @param {string} connectionName The name of the connection subresource. + * @param {object} [parameters.sku] The load balancer SKU. * - * @param {object} putExpressRouteConnectionParameters Parameters required in - * an ExpressRouteConnection PUT operation. + * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible + * values include: 'Basic', 'Standard' * - * @param {object} - * putExpressRouteConnectionParameters.expressRouteCircuitPeering The - * ExpressRoute circuit peering. + * @param {array} [parameters.frontendIPConfigurations] Object representing the + * frontend IPs to be used for the load balancer * - * @param {string} - * [putExpressRouteConnectionParameters.expressRouteCircuitPeering.id] The ID - * of the ExpressRoute circuit peering. + * @param {array} [parameters.backendAddressPools] Collection of backend + * address pools used by a load balancer * - * @param {string} [putExpressRouteConnectionParameters.authorizationKey] - * Authorization key to establish the connection. + * @param {array} [parameters.loadBalancingRules] Object collection + * representing the load balancing rules Gets the provisioning * - * @param {number} [putExpressRouteConnectionParameters.routingWeight] The - * routing weight associated to the connection. + * @param {array} [parameters.probes] Collection of probe objects used in the + * load balancer * - * @param {string} putExpressRouteConnectionParameters.name The name of the - * resource. + * @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.outboundNatRules] The outbound NAT 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 {string} [putExpressRouteConnectionParameters.id] Resource ID. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -10892,7 +9910,7 @@ export interface ExpressRouteConnections { * * {Promise} A promise is returned. * - * @resolve {ExpressRouteConnection} - The deserialized result object. + * @resolve {LoadBalancer} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10900,28 +9918,28 @@ export interface ExpressRouteConnections { * * {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. + * {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, 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; + 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; /** - * Deletes a connection to a ExpressRoute circuit. + * Updates a load balancer tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRouteGatewayName The name of the ExpressRoute - * gateway. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {string} connectionName The name of the connection subresource. + * @param {object} parameters Parameters supplied to update load balancer tags. + * + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -10930,21 +9948,22 @@ export interface ExpressRouteConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes a connection to a ExpressRoute circuit. + * Updates a load balancer tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRouteGatewayName The name of the ExpressRoute - * gateway. + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {object} parameters Parameters supplied to update load balancer tags. * - * @param {string} connectionName The name of the connection subresource. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -10958,7 +9977,7 @@ export interface ExpressRouteConnections { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {LoadBalancer} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10966,30 +9985,23 @@ export interface ExpressRouteConnections { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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 { + 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; /** - * Retrieves all ExpressRoutePort peering locations. Does not return available - * bandwidths for each location. Available bandwidths can only be obtained when - * retriving a specific peering location. + * 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. * @@ -10998,16 +10010,17 @@ export interface ExpressRoutePortsLocations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAllNextWithHttpOperationResponse(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 - * retriving a specific peering location. + * 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. * @@ -11021,7 +10034,7 @@ export interface ExpressRoutePortsLocations { * * {Promise} A promise is returned. * - * @resolve {ExpressRoutePortsLocationListResult} - The deserialized result object. + * @resolve {LoadBalancerListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11029,25 +10042,24 @@ export interface ExpressRoutePortsLocations { * * {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. + * {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(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - list(callback: ServiceCallback): void; - list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * Retrieves a single ExpressRoutePort peering location, including the list of - * available bandwidths available at said peering location. + * Gets all the load balancers in a resource group. * - * @param {string} locationName Name of the requested ExpressRoutePort peering - * location. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -11056,18 +10068,17 @@ export interface ExpressRoutePortsLocations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(locationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves a single ExpressRoutePort peering location, including the list of - * available bandwidths available at said peering location. + * Gets all the load balancers in a resource group. * - * @param {string} locationName Name of the requested ExpressRoutePort peering - * location. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -11081,7 +10092,7 @@ export interface ExpressRoutePortsLocations { * * {Promise} A promise is returned. * - * @resolve {ExpressRoutePortsLocation} - The deserialized result object. + * @resolve {LoadBalancerListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11089,26 +10100,34 @@ export interface ExpressRoutePortsLocations { * * {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 + * {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. */ - 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; + 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 { /** - * Retrieves all ExpressRoutePort peering locations. Does not return available - * bandwidths for each location. Available bandwidths can only be obtained when - * retriving a specific peering location. + * Gets all the load balancer backed address pools. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -11117,19 +10136,18 @@ export interface ExpressRoutePortsLocations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: 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 - * retriving a specific peering location. + * Gets all the load balancer backed address pools. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -11143,7 +10161,7 @@ export interface ExpressRoutePortsLocations { * * {Promise} A promise is returned. * - * @resolve {ExpressRoutePortsLocationListResult} - The deserialized result object. + * @resolve {LoadBalancerBackendAddressPoolListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11151,35 +10169,27 @@ export interface ExpressRoutePortsLocations { * * {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. + * {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 - * ExpressRoutePorts - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - */ -export interface ExpressRoutePorts { + 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 ExpressRoutePort resource. + * Gets load balancer backend address pool. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRoutePortName The name of the ExpressRoutePort - * resource. + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} backendAddressPoolName The name of the backend address pool. * * @param {object} [options] Optional Parameters. * @@ -11188,19 +10198,20 @@ export interface ExpressRoutePorts { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, expressRoutePortName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, backendAddressPoolName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified ExpressRoutePort resource. + * Gets load balancer backend address pool. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRoutePortName The name of the ExpressRoutePort - * resource. + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} backendAddressPoolName The name of the backend address pool. * * @param {object} [options] Optional Parameters. * @@ -11214,7 +10225,7 @@ export interface ExpressRoutePorts { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {BackendAddressPool} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11222,23 +10233,23 @@ export interface ExpressRoutePorts { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Retrieves the requested ExpressRoutePort resource. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all the load balancer backed address pools. * - * @param {string} expressRoutePortName The name of ExpressRoutePort. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -11247,18 +10258,17 @@ export interface ExpressRoutePorts { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, expressRoutePortName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves the requested ExpressRoutePort resource. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all the load balancer backed address pools. * - * @param {string} expressRoutePortName The name of ExpressRoutePort. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -11272,7 +10282,7 @@ export interface ExpressRoutePorts { * * {Promise} A promise is returned. * - * @resolve {ExpressRoutePort} - The deserialized result object. + * @resolve {LoadBalancerBackendAddressPoolListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11280,94 +10290,121 @@ export interface ExpressRoutePorts { * * {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. + * {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. */ - 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; + 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 { /** - * Creates or updates the specified ExpressRoutePort resource. + * Gets all the load balancer frontend IP configurations. * * @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 {string} loadBalancerName The name of the load balancer. * - * @param {number} [parameters.bandwidthInGbps] Bandwidth of procured ports in - * Gbps + * @param {object} [options] Optional Parameters. * - * @param {string} [parameters.encapsulation] Encapsulation method on physical - * ports. Possible values include: 'Dot1Q', 'QinQ' + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {array} [parameters.links] ExpressRouteLink Sub-Resources The set of - * physical links of the ExpressRoutePort resource + * @returns {Promise} A promise is returned * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * ExpressRoutePort resource. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} [parameters.id] Resource ID. + * @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} [parameters.location] Resource location. + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} [parameters.tags] Resource tags. + * @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 + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @reject {Error|ServiceError} - The error object. + * {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. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, expressRoutePortName: string, parameters: models.ExpressRoutePort, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + 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; + /** - * Creates or updates the specified ExpressRoutePort resource. + * Gets load balancer frontend IP configuration. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRoutePortName The name of the ExpressRoutePort - * resource. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {object} parameters Parameters supplied to the create - * ExpressRoutePort operation. + * @param {string} frontendIPConfigurationName The name of the frontend IP + * configuration. * - * @param {string} [parameters.peeringLocation] The name of the peering - * location that the ExpressRoutePort is mapped to physically. + * @param {object} [options] Optional Parameters. * - * @param {number} [parameters.bandwidthInGbps] Bandwidth of procured ports in - * Gbps + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.encapsulation] Encapsulation method on physical - * ports. Possible values include: 'Dot1Q', 'QinQ' + * @returns {Promise} A promise is returned * - * @param {array} [parameters.links] ExpressRouteLink Sub-Resources The set of - * physical links of the ExpressRoutePort resource + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * ExpressRoutePort resource. + * @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} [parameters.id] Resource ID. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [parameters.location] Resource location. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} frontendIPConfigurationName The name of the frontend IP + * configuration. * * @param {object} [options] Optional Parameters. * @@ -11381,7 +10418,7 @@ export interface ExpressRoutePorts { * * {Promise} A promise is returned. * - * @resolve {ExpressRoutePort} - The deserialized result object. + * @resolve {FrontendIPConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11389,30 +10426,24 @@ export interface ExpressRoutePorts { * * {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. + * {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. */ - 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; + 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; /** - * 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. + * Gets all the load balancer frontend IP configurations. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -11421,24 +10452,17 @@ export interface ExpressRoutePorts { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listNextWithHttpOperationResponse(nextPageLink: string, 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. + * Gets all the load balancer frontend IP configurations. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -11452,7 +10476,7 @@ export interface ExpressRoutePorts { * * {Promise} A promise is returned. * - * @resolve {ExpressRoutePort} - The deserialized result object. + * @resolve {LoadBalancerFrontendIPConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11460,23 +10484,36 @@ export interface ExpressRoutePorts { * * {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. + * {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. */ - 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; + 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 { /** - * List all the ExpressRoutePort resources in the specified resource group. + * 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 @@ -11484,17 +10521,19 @@ export interface ExpressRoutePorts { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * List all the ExpressRoutePort resources in the specified resource group. + * 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 @@ -11507,7 +10546,7 @@ export interface ExpressRoutePorts { * * {Promise} A promise is returned. * - * @resolve {ExpressRoutePortListResult} - The deserialized result object. + * @resolve {InboundNatRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11515,21 +10554,27 @@ export interface ExpressRoutePorts { * * {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 + * {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. */ - 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(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; /** - * List all the ExpressRoutePort resources in the specified subscription + * 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. * @@ -11538,14 +10583,20 @@ export interface ExpressRoutePorts { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * List all the ExpressRoutePort resources in the specified subscription + * 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. * @@ -11559,7 +10610,7 @@ export interface ExpressRoutePorts { * * {Promise} A promise is returned. * - * @resolve {ExpressRoutePortListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11567,50 +10618,54 @@ export interface ExpressRoutePorts { * * {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. + * {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. */ - list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - list(callback: ServiceCallback): void; - list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * Deletes the specified ExpressRoutePort resource. + * Gets the specified load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRoutePortName The name of the ExpressRoutePort - * resource. + * @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. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, expressRoutePortName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified ExpressRoutePort resource. + * Gets the specified load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRoutePortName The name of the ExpressRoutePort - * resource. + * @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 * @@ -11621,7 +10676,7 @@ export interface ExpressRoutePorts { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {InboundNatRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11629,48 +10684,69 @@ export interface ExpressRoutePorts { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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 the specified ExpressRoutePort resource. + * Creates or updates a load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRoutePortName The name of the ExpressRoutePort - * resource. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {object} parameters Parameters supplied to the create - * ExpressRoutePort operation. + * @param {string} inboundNatRuleName The name of the inbound nat rule. * - * @param {string} [parameters.peeringLocation] The name of the peering - * location that the ExpressRoutePort is mapped to physically. + * @param {object} inboundNatRuleParameters Parameters supplied to the create + * or update inbound nat rule operation. * - * @param {number} [parameters.bandwidthInGbps] Bandwidth of procured ports in - * Gbps + * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A + * reference to frontend IP addresses. * - * @param {string} [parameters.encapsulation] Encapsulation method on physical - * ports. Possible values include: 'Dot1Q', 'QinQ' + * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] + * Resource ID. * - * @param {array} [parameters.links] ExpressRouteLink Sub-Resources The set of - * physical links of the ExpressRoutePort resource + * @param {string} [inboundNatRuleParameters.protocol] Possible values include: + * 'Udp', 'Tcp', 'All' * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * ExpressRoutePort resource. + * @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 {string} [parameters.id] Resource ID. + * @param {number} [inboundNatRuleParameters.backendPort] The port used for the + * internal endpoint. Acceptable values range from 1 to 65535. * - * @param {string} [parameters.location] Resource location. + * @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 {object} [parameters.tags] Resource tags. + * @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 {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. * @@ -11679,43 +10755,63 @@ export interface ExpressRoutePorts { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates the specified ExpressRoutePort resource. + * Creates or updates a load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRoutePortName The name of the ExpressRoutePort - * resource. + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} inboundNatRuleName The name of the inbound nat rule. * - * @param {object} parameters Parameters supplied to the create - * ExpressRoutePort operation. + * @param {object} inboundNatRuleParameters Parameters supplied to the create + * or update inbound nat rule operation. * - * @param {string} [parameters.peeringLocation] The name of the peering - * location that the ExpressRoutePort is mapped to physically. + * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A + * reference to frontend IP addresses. * - * @param {number} [parameters.bandwidthInGbps] Bandwidth of procured ports in - * Gbps + * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] + * Resource ID. * - * @param {string} [parameters.encapsulation] Encapsulation method on physical - * ports. Possible values include: 'Dot1Q', 'QinQ' + * @param {string} [inboundNatRuleParameters.protocol] Possible values include: + * 'Udp', 'Tcp', 'All' * - * @param {array} [parameters.links] ExpressRouteLink Sub-Resources The set of - * physical links of the ExpressRoutePort resource + * @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 {string} [parameters.resourceGuid] The resource GUID property of the - * ExpressRoutePort resource. + * @param {number} [inboundNatRuleParameters.backendPort] The port used for the + * internal endpoint. Acceptable values range from 1 to 65535. * - * @param {string} [parameters.id] Resource ID. + * @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 {string} [parameters.location] Resource location. + * @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 {object} [parameters.tags] Resource tags. + * @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. * @@ -11729,7 +10825,7 @@ export interface ExpressRoutePorts { * * {Promise} A promise is returned. * - * @resolve {ExpressRoutePort} - The deserialized result object. + * @resolve {InboundNatRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11737,30 +10833,26 @@ export interface ExpressRoutePorts { * * {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. + * {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, 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; + 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; /** - * Update ExpressRoutePort tags + * Deletes the specified load balancer inbound nat rule. * * @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 {string} loadBalancerName The name of the load balancer. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} [options] Optional Parameters. * @@ -11769,24 +10861,20 @@ export interface ExpressRoutePorts { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Update ExpressRoutePort tags + * Deletes the specified load balancer inbound nat rule. * * @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 {string} loadBalancerName The name of the load balancer. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} [options] Optional Parameters. * @@ -11800,7 +10888,7 @@ export interface ExpressRoutePorts { * * {Promise} A promise is returned. * - * @resolve {ExpressRoutePort} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11808,23 +10896,68 @@ export interface ExpressRoutePorts { * * {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. + * {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. */ - 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; + 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; /** - * List all the ExpressRoutePort resources in the specified resource group. + * Creates or updates a load balancer inbound nat rule. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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] 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 {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. * @@ -11833,17 +10966,63 @@ export interface ExpressRoutePorts { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * List all the ExpressRoutePort resources in the specified resource group. + * Creates or updates a load balancer inbound nat rule. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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] 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 {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. * @@ -11857,7 +11036,7 @@ export interface ExpressRoutePorts { * * {Promise} A promise is returned. * - * @resolve {ExpressRoutePortListResult} - The deserialized result object. + * @resolve {InboundNatRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11865,21 +11044,20 @@ export interface ExpressRoutePorts { * * {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. + * {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. */ - 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; + 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; /** - * List all the ExpressRoutePort resources in the specified subscription + * Gets all the inbound nat rules in a load balancer. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -11891,14 +11069,14 @@ export interface ExpressRoutePorts { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * List all the ExpressRoutePort resources in the specified subscription + * Gets all the inbound nat rules in a load balancer. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -11915,7 +11093,7 @@ export interface ExpressRoutePorts { * * {Promise} A promise is returned. * - * @resolve {ExpressRoutePortListResult} - The deserialized result object. + * @resolve {InboundNatRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11923,37 +11101,34 @@ export interface ExpressRoutePorts { * * {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 + * {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; + 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 + * LoadBalancerLoadBalancingRules * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ -export interface ExpressRouteLinks { +export interface LoadBalancerLoadBalancingRules { /** - * Retrieves the specified ExpressRouteLink resource. + * Gets all the load balancing rules in a load balancer. * * @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 {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -11962,21 +11137,18 @@ export interface ExpressRouteLinks { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves the specified ExpressRouteLink resource. + * Gets all the load balancing rules in a load balancer. * * @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 {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -11990,7 +11162,7 @@ export interface ExpressRouteLinks { * * {Promise} A promise is returned. * - * @resolve {ExpressRouteLink} - The deserialized result object. + * @resolve {LoadBalancerLoadBalancingRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11998,26 +11170,27 @@ export interface ExpressRouteLinks { * * {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. + * {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. */ - 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; + 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; /** - * Retrieve the ExpressRouteLink sub-resources of the specified - * ExpressRoutePort resource. + * Gets the specified load balancer load balancing rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRoutePortName The name of the ExpressRoutePort - * resource. + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} loadBalancingRuleName The name of the load balancing rule. * * @param {object} [options] Optional Parameters. * @@ -12026,20 +11199,20 @@ export interface ExpressRouteLinks { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, expressRoutePortName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, loadBalancingRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the ExpressRouteLink sub-resources of the specified - * ExpressRoutePort resource. + * Gets the specified load balancer load balancing rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} expressRoutePortName The name of the ExpressRoutePort - * resource. + * @param {string} loadBalancerName The name of the load balancer. + * + * @param {string} loadBalancingRuleName The name of the load balancing rule. * * @param {object} [options] Optional Parameters. * @@ -12053,7 +11226,7 @@ export interface ExpressRouteLinks { * * {Promise} A promise is returned. * - * @resolve {ExpressRouteLinkListResult} - The deserialized result object. + * @resolve {LoadBalancingRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12061,22 +11234,20 @@ export interface ExpressRouteLinks { * * {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. + * {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. */ - 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; + 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; /** - * Retrieve the ExpressRouteLink sub-resources of the specified - * ExpressRoutePort resource. + * Gets all the load balancing rules in a load balancer. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -12088,15 +11259,14 @@ export interface ExpressRouteLinks { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieve the ExpressRouteLink sub-resources of the specified - * ExpressRoutePort resource. + * Gets all the load balancing rules in a load balancer. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -12113,7 +11283,7 @@ export interface ExpressRouteLinks { * * {Promise} A promise is returned. * - * @resolve {ExpressRouteLinkListResult} - The deserialized result object. + * @resolve {LoadBalancerLoadBalancingRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12121,34 +11291,34 @@ export interface ExpressRouteLinks { * * {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. + * {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; + 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 + * LoadBalancerNetworkInterfaces * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ -export interface InterfaceEndpoints { +export interface LoadBalancerNetworkInterfaces { /** - * Deletes the specified interface endpoint. + * Gets associated load balancer network interfaces. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} interfaceEndpointName The name of the interface endpoint. + * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -12157,18 +11327,18 @@ export interface InterfaceEndpoints { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, interfaceEndpointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified interface endpoint. + * Gets associated load balancer network interfaces. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} interfaceEndpointName The name of the interface endpoint. + * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -12182,7 +11352,7 @@ export interface InterfaceEndpoints { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12190,50 +11360,46 @@ export interface InterfaceEndpoints { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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 interface endpoint by resource group. + * Gets associated load balancer network interfaces. * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} interfaceEndpointName The name of the interface endpoint. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @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. + * @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>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified interface endpoint by resource group. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets associated load balancer network interfaces. * - * @param {string} interfaceEndpointName The name of the interface endpoint. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.expand] Expands referenced resources. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -12244,7 +11410,7 @@ export interface InterfaceEndpoints { * * {Promise} A promise is returned. * - * @resolve {InterfaceEndpoint} - The deserialized result object. + * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12252,130 +11418,34 @@ export interface InterfaceEndpoints { * * {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. + * {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. */ - 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; + 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 { /** - * Creates or updates an interface endpoint in the specified resource group. + * Gets all the load balancer probes. * * @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 {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 {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * @@ -12384,124 +11454,82 @@ export interface InterfaceEndpoints { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates an interface endpoint in the specified resource group. + * Gets all the load balancer probes. * * @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} loadBalancerName The name of the load balancer. * - * @param {string} [parameters.subnet.networkSecurityGroup.location] Resource - * location. + * @param {object} [options] Optional Parameters. * - * @param {object} [parameters.subnet.networkSecurityGroup.tags] Resource tags. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {object} [parameters.subnet.routeTable] The reference of the - * RouteTable resource. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {array} [parameters.subnet.routeTable.routes] Collection of routes - * contained within a route table. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {boolean} [parameters.subnet.routeTable.disableBgpRoutePropagation] - * Gets or sets whether to disable the routes learned by BGP on that route - * table. True means disable. + * {Promise} A promise is returned. * - * @param {string} [parameters.subnet.routeTable.provisioningState] The - * provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. + * @resolve {LoadBalancerProbeListResult} - The deserialized result object. * - * @param {string} [parameters.subnet.routeTable.etag] Gets a unique read-only - * string that changes whenever the resource is updated. + * @reject {Error|ServiceError} - The error object. * - * @param {string} [parameters.subnet.routeTable.id] Resource ID. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {string} [parameters.subnet.routeTable.location] Resource location. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {object} [parameters.subnet.routeTable.tags] Resource tags. + * {LoadBalancerProbeListResult} [result] - The deserialized result object if an error did not occur. + * See {@link LoadBalancerProbeListResult} for more + * information. * - * @param {array} [parameters.subnet.serviceEndpoints] An array of service - * endpoints. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {array} [parameters.subnet.serviceEndpointPolicies] An array of - * service endpoint policies. + * {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 {array} [parameters.subnet.resourceNavigationLinks] Gets an array of - * references to the external resources using subnet. + * @param {string} resourceGroupName The name of the resource group. * - * @param {array} [parameters.subnet.serviceAssociationLinks] Gets an array of - * references to services injecting into this subnet. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {array} [parameters.subnet.delegations] Gets an array of references - * to the delegations on the subnet. + * @param {string} probeName The name of the probe. * - * @param {string} [parameters.subnet.provisioningState] The provisioning state - * of the resource. + * @param {object} [options] Optional Parameters. * - * @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 {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.subnet.etag] A unique read-only string that - * changes whenever the resource is updated. + * @returns {Promise} A promise is returned * - * @param {string} [parameters.subnet.id] Resource ID. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} [parameters.etag] Gets a unique read-only string that - * changes whenever the resource is updated. + * @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} [parameters.id] Resource ID. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [parameters.location] Resource location. + * @param {string} loadBalancerName The name of the load balancer. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} probeName The name of the probe. * * @param {object} [options] Optional Parameters. * @@ -12515,7 +11543,7 @@ export interface InterfaceEndpoints { * * {Promise} A promise is returned. * - * @resolve {InterfaceEndpoint} - The deserialized result object. + * @resolve {Probe} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12523,22 +11551,23 @@ export interface InterfaceEndpoints { * * {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. + * {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. */ - 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; + 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 interface endpoints in a resource group. + * Gets all the load balancer probes. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -12547,16 +11576,17 @@ export interface InterfaceEndpoints { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all interface endpoints in a resource group. + * Gets all the load balancer probes. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -12570,7 +11600,7 @@ export interface InterfaceEndpoints { * * {Promise} A promise is returned. * - * @resolve {InterfaceEndpointListResult} - The deserialized result object. + * @resolve {LoadBalancerProbeListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12578,21 +11608,34 @@ export interface InterfaceEndpoints { * * {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 + * {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, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - list(resourceGroupName: string, callback: ServiceCallback): void; - list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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 { /** - * Gets all interface endpoints in a subscription. + * 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. * @@ -12601,14 +11644,18 @@ export interface InterfaceEndpoints { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listBySubscriptionWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all interface endpoints in a subscription. + * 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. * @@ -12622,7 +11669,7 @@ export interface InterfaceEndpoints { * * {Promise} A promise is returned. * - * @resolve {InterfaceEndpointListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12630,48 +11677,50 @@ export interface InterfaceEndpoints { * * {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. + * {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. */ - listBySubscription(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listBySubscription(callback: ServiceCallback): void; - listBySubscription(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * Deletes the specified interface endpoint. + * Gets information about the specified network interface. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} interfaceEndpointName The name of the interface endpoint. + * @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. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, interfaceEndpointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified interface endpoint. + * Gets information about the specified network interface. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} interfaceEndpointName The name of the interface endpoint. + * @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 * @@ -12682,7 +11731,7 @@ export interface InterfaceEndpoints { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {NetworkInterface} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12690,123 +11739,109 @@ export interface InterfaceEndpoints { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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 an interface endpoint in the specified resource group. + * Creates or updates a network interface. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} interfaceEndpointName The name of the interface endpoint. + * @param {string} networkInterfaceName The name of the network interface. * * @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. + * network interface operation. * - * @param {string} [parameters.subnet.addressPrefix] The address prefix for the - * subnet. + * @param {object} [parameters.virtualMachine] The reference of a virtual + * machine. * - * @param {array} [parameters.subnet.addressPrefixes] List of address prefixes - * for the subnet. + * @param {string} [parameters.virtualMachine.id] Resource ID. * - * @param {object} [parameters.subnet.networkSecurityGroup] The reference of - * the NetworkSecurityGroup resource. + * @param {object} [parameters.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.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 {array} [parameters.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.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: + * @param {string} [parameters.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.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.networkSecurityGroup.id] Resource ID. * - * @param {string} [parameters.subnet.networkSecurityGroup.location] Resource + * @param {string} [parameters.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 {object} [parameters.networkSecurityGroup.tags] Resource tags. * - * @param {string} [parameters.subnet.routeTable.etag] Gets a unique read-only - * string that changes whenever the resource is updated. + * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of + * the network interface. * - * @param {string} [parameters.subnet.routeTable.id] Resource ID. + * @param {object} [parameters.dnsSettings] The DNS settings in network + * interface. * - * @param {string} [parameters.subnet.routeTable.location] Resource location. + * @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 {object} [parameters.subnet.routeTable.tags] Resource tags. + * @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 {array} [parameters.subnet.serviceEndpoints] An array of service - * endpoints. + * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS + * name for this NIC used for internal communications between VMs in the same + * virtual network. * - * @param {array} [parameters.subnet.serviceEndpointPolicies] An array of - * service endpoint policies. + * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS + * name supporting internal communications between VMs in the same virtual + * network. * - * @param {array} [parameters.subnet.resourceNavigationLinks] Gets an array of - * references to the external resources using subnet. + * @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 {array} [parameters.subnet.serviceAssociationLinks] Gets an array of - * references to services injecting into this subnet. + * @param {string} [parameters.macAddress] The MAC address of the network + * interface. * - * @param {array} [parameters.subnet.delegations] Gets an array of references - * to the delegations on the subnet. + * @param {boolean} [parameters.primary] Gets whether this is a primary network + * interface on a virtual machine. * - * @param {string} [parameters.subnet.provisioningState] The provisioning state - * of the resource. + * @param {boolean} [parameters.enableAcceleratedNetworking] If the network + * interface is accelerated networking enabled. * - * @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 {boolean} [parameters.enableIPForwarding] Indicates whether IP + * forwarding is enabled on this network interface. * - * @param {string} [parameters.subnet.etag] A unique read-only string that - * changes whenever the resource is updated. + * @param {string} [parameters.resourceGuid] The resource GUID property of the + * network interface resource. * - * @param {string} [parameters.subnet.id] Resource ID. + * @param {string} [parameters.provisioningState] The provisioning state of the + * public IP 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.etag] A unique read-only string that changes + * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * @@ -12821,118 +11856,103 @@ export interface InterfaceEndpoints { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates an interface endpoint in the specified resource group. + * Creates or updates a network interface. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} interfaceEndpointName The name of the interface endpoint. + * @param {string} networkInterfaceName The name of the network interface. * * @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. + * network interface operation. * - * @param {string} [parameters.subnet.addressPrefix] The address prefix for the - * subnet. + * @param {object} [parameters.virtualMachine] The reference of a virtual + * machine. * - * @param {array} [parameters.subnet.addressPrefixes] List of address prefixes - * for the subnet. + * @param {string} [parameters.virtualMachine.id] Resource ID. * - * @param {object} [parameters.subnet.networkSecurityGroup] The reference of - * the NetworkSecurityGroup resource. + * @param {object} [parameters.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.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 {array} [parameters.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.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: + * @param {string} [parameters.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.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.networkSecurityGroup.id] Resource ID. * - * @param {string} [parameters.subnet.networkSecurityGroup.location] Resource + * @param {string} [parameters.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 {object} [parameters.networkSecurityGroup.tags] Resource tags. * - * @param {string} [parameters.subnet.routeTable.etag] Gets a unique read-only - * string that changes whenever the resource is updated. + * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of + * the network interface. * - * @param {string} [parameters.subnet.routeTable.id] Resource ID. + * @param {object} [parameters.dnsSettings] The DNS settings in network + * interface. * - * @param {string} [parameters.subnet.routeTable.location] Resource location. + * @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 {object} [parameters.subnet.routeTable.tags] Resource tags. + * @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 {array} [parameters.subnet.serviceEndpoints] An array of service - * endpoints. + * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS + * name for this NIC used for internal communications between VMs in the same + * virtual network. * - * @param {array} [parameters.subnet.serviceEndpointPolicies] An array of - * service endpoint policies. + * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS + * name supporting internal communications between VMs in the same virtual + * network. * - * @param {array} [parameters.subnet.resourceNavigationLinks] Gets an array of - * references to the external resources using subnet. + * @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 {array} [parameters.subnet.serviceAssociationLinks] Gets an array of - * references to services injecting into this subnet. + * @param {string} [parameters.macAddress] The MAC address of the network + * interface. * - * @param {array} [parameters.subnet.delegations] Gets an array of references - * to the delegations on the subnet. + * @param {boolean} [parameters.primary] Gets whether this is a primary network + * interface on a virtual machine. * - * @param {string} [parameters.subnet.provisioningState] The provisioning state - * of the resource. + * @param {boolean} [parameters.enableAcceleratedNetworking] If the network + * interface is accelerated networking enabled. * - * @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 {boolean} [parameters.enableIPForwarding] Indicates whether IP + * forwarding is enabled on this network interface. * - * @param {string} [parameters.subnet.etag] A unique read-only string that - * changes whenever the resource is updated. + * @param {string} [parameters.resourceGuid] The resource GUID property of the + * network interface resource. * - * @param {string} [parameters.subnet.id] Resource ID. + * @param {string} [parameters.provisioningState] The provisioning state of the + * public IP 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.etag] A unique read-only string that changes + * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * @@ -12952,7 +11972,7 @@ export interface InterfaceEndpoints { * * {Promise} A promise is returned. * - * @resolve {InterfaceEndpoint} - The deserialized result object. + * @resolve {NetworkInterface} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -12960,23 +11980,29 @@ export interface InterfaceEndpoints { * * {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. + * {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, 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; + 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; /** - * Gets all interface endpoints in a resource group. + * Updates a network interface tags. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -12985,17 +12011,23 @@ export interface InterfaceEndpoints { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateTagsWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all interface endpoints in a resource group. + * Updates a network interface tags. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -13009,7 +12041,7 @@ export interface InterfaceEndpoints { * * {Promise} A promise is returned. * - * @resolve {InterfaceEndpointListResult} - The deserialized result object. + * @resolve {NetworkInterface} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -13017,24 +12049,20 @@ export interface InterfaceEndpoints { * * {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. + * {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. */ - 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; + 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 interface endpoints in a subscription. - * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * Gets all network interfaces in a subscription. * * @param {object} [options] Optional Parameters. * @@ -13043,17 +12071,14 @@ export interface InterfaceEndpoints { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listBySubscriptionNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAllWithHttpOperationResponse(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. + * Gets all network interfaces in a subscription. * * @param {object} [options] Optional Parameters. * @@ -13067,7 +12092,7 @@ export interface InterfaceEndpoints { * * {Promise} A promise is returned. * - * @resolve {InterfaceEndpointListResult} - The deserialized result object. + * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -13075,35 +12100,24 @@ export interface InterfaceEndpoints { * * {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 + * {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. */ - 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 { + listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAll(callback: ServiceCallback): void; + listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes the specified load balancer. + * Gets all network interfaces in a resource group. * * @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 @@ -13111,19 +12125,17 @@ export interface LoadBalancers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified load balancer. + * Gets all network interfaces in a resource group. * * @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 @@ -13136,7 +12148,7 @@ export interface LoadBalancers { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -13144,50 +12156,48 @@ export interface LoadBalancers { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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 the specified load balancer. + * Gets all route tables applied to a network interface. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} loadBalancerName The name of the load balancer. + * @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. + * @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>; + getEffectiveRouteTableWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified load balancer. + * Gets all route tables applied to a network interface. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} loadBalancerName The name of the load balancer. + * @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 * @@ -13198,7 +12208,7 @@ export interface LoadBalancers { * * {Promise} A promise is returned. * - * @resolve {LoadBalancer} - The deserialized result object. + * @resolve {EffectiveRouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -13206,79 +12216,25 @@ export interface LoadBalancers { * * {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. + * {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. */ - 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; + 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; /** - * Creates or updates a load balancer. + * Gets all network security groups applied to a network interface. * * @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 {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * @@ -13287,73 +12243,18 @@ export interface LoadBalancers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listEffectiveNetworkSecurityGroupsWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a load balancer. + * Gets all network security groups applied to a network interface. * * @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 {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * @@ -13367,7 +12268,7 @@ export interface LoadBalancers { * * {Promise} A promise is returned. * - * @resolve {LoadBalancer} - The deserialized result object. + * @resolve {EffectiveNetworkSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -13375,28 +12276,29 @@ export interface LoadBalancers { * * {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. + * {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. */ - 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; + 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; /** - * Updates a load balancer tags. + * 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} loadBalancerName The name of the load balancer. - * - * @param {object} parameters Parameters supplied to update load balancer tags. + * @param {string} virtualMachineScaleSetName The name of the virtual machine + * scale set. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} virtualmachineIndex The virtual machine index. * * @param {object} [options] Optional Parameters. * @@ -13405,22 +12307,22 @@ export interface LoadBalancers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listVirtualMachineScaleSetVMNetworkInterfacesWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates a load balancer tags. + * 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} loadBalancerName The name of the load balancer. - * - * @param {object} parameters Parameters supplied to update load balancer tags. + * @param {string} virtualMachineScaleSetName The name of the virtual machine + * scale set. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} virtualmachineIndex The virtual machine index. * * @param {object} [options] Optional Parameters. * @@ -13434,7 +12336,7 @@ export interface LoadBalancers { * * {Promise} A promise is returned. * - * @resolve {LoadBalancer} - The deserialized result object. + * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -13442,20 +12344,26 @@ export interface LoadBalancers { * * {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. + * {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. */ - 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; + 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 the load balancers in a subscription. + * 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. * @@ -13464,14 +12372,19 @@ export interface LoadBalancers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listVirtualMachineScaleSetNetworkInterfacesWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the load balancers in a subscription. + * 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. * @@ -13485,7 +12398,7 @@ export interface LoadBalancers { * * {Promise} A promise is returned. * - * @resolve {LoadBalancerListResult} - The deserialized result object. + * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -13493,44 +12406,62 @@ export interface LoadBalancers { * * {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 + * {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; + 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; /** - * Gets all the load balancers in a resource group. + * 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. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getVirtualMachineScaleSetNetworkInterfaceWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the load balancers in a resource group. + * 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 * @@ -13541,7 +12472,7 @@ export interface LoadBalancers { * * {Promise} A promise is returned. * - * @resolve {LoadBalancerListResult} - The deserialized result object. + * @resolve {NetworkInterface} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -13549,48 +12480,63 @@ export interface LoadBalancers { * * {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. + * {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. */ - 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; + 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; /** - * Deletes the specified load balancer. + * Get the specified network interface ip configuration in a virtual machine + * scale set. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} loadBalancerName The name of the load balancer. + * @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. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listVirtualMachineScaleSetIpConfigurationsWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified load balancer. + * Get the specified network interface ip configuration in a virtual machine + * scale set. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} loadBalancerName The name of the load balancer. + * @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 * @@ -13601,7 +12547,7 @@ export interface LoadBalancers { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -13609,156 +12555,68 @@ export interface LoadBalancers { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Creates or updates a load balancer. + * Get the specified network interface ip configuration in a virtual machine + * scale set. * * @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} virtualMachineScaleSetName The name of the virtual machine + * scale set. * - * @param {string} [parameters.id] Resource ID. + * @param {string} virtualmachineIndex The virtual machine index. * - * @param {string} [parameters.location] Resource location. + * @param {string} networkInterfaceName The name of the network interface. * - * @param {object} [parameters.tags] Resource tags. + * @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. + * @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>; + getVirtualMachineScaleSetIpConfigurationWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a load balancer. + * Get the specified network interface ip configuration in a virtual machine + * scale set. * * @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} virtualMachineScaleSetName The name of the virtual machine + * scale set. * - * @param {string} [parameters.id] Resource ID. + * @param {string} virtualmachineIndex The virtual machine index. * - * @param {string} [parameters.location] Resource location. + * @param {string} networkInterfaceName The name of the network interface. * - * @param {object} [parameters.tags] Resource tags. + * @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 * @@ -13769,7 +12627,7 @@ export interface LoadBalancers { * * {Promise} A promise is returned. * - * @resolve {LoadBalancer} - The deserialized result object. + * @resolve {NetworkInterfaceIPConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -13777,28 +12635,25 @@ export interface LoadBalancers { * * {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. + * {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. */ - 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; + 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; /** - * Updates a load balancer tags. + * Deletes the specified network interface. * * @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 {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * @@ -13807,22 +12662,18 @@ export interface LoadBalancers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates a load balancer tags. + * Deletes the specified network interface. * * @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 {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * @@ -13836,7 +12687,7 @@ export interface LoadBalancers { * * {Promise} A promise is returned. * - * @resolve {LoadBalancer} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -13844,81 +12695,114 @@ export interface LoadBalancers { * * {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. + * {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. */ - 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; + 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; /** - * Gets all the load balancers in a subscription. + * Creates or updates a network interface. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} [options] Optional Parameters. + * @param {string} networkInterfaceName The name of the network interface. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {object} parameters Parameters supplied to the create or update + * network interface operation. * - * @returns {Promise} A promise is returned + * @param {object} [parameters.virtualMachine] The reference of a virtual + * machine. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {string} [parameters.virtualMachine.id] Resource ID. * - * @reject {Error|ServiceError} - The error object. - */ - listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Gets all the load balancers in a subscription. + * @param {object} [parameters.networkSecurityGroup] The reference of the + * NetworkSecurityGroup resource. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {array} [parameters.networkSecurityGroup.securityRules] A collection + * of security rules of the network security group. * - * @param {object} [options] Optional Parameters. + * @param {array} [parameters.networkSecurityGroup.defaultSecurityRules] The + * default security rules of network security group. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {string} [parameters.networkSecurityGroup.resourceGuid] The resource + * GUID property of the network security group resource. * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {string} [parameters.networkSecurityGroup.provisioningState] The + * provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {string} [parameters.networkSecurityGroup.etag] A unique read-only + * string that changes whenever the resource is updated. * - * {Promise} A promise is returned. + * @param {string} [parameters.networkSecurityGroup.id] Resource ID. * - * @resolve {LoadBalancerListResult} - The deserialized result object. + * @param {string} [parameters.networkSecurityGroup.location] Resource + * location. * - * @reject {Error|ServiceError} - The error object. + * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of + * the network interface. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {object} [parameters.dnsSettings] The DNS settings in network + * interface. * - * {LoadBalancerListResult} [result] - The deserialized result object if an error did not occur. - * See {@link LoadBalancerListResult} for more - * information. + * @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. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @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. * - * {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} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS + * name for this NIC used for internal communications between VMs in the same + * virtual network. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -13927,17 +12811,109 @@ export interface LoadBalancers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the load balancers in a resource group. + * Creates or updates a network interface. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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.virtualMachine] The reference of a virtual + * machine. + * + * @param {string} [parameters.virtualMachine.id] Resource ID. + * + * @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 {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. * @@ -13951,7 +12927,7 @@ export interface LoadBalancers { * * {Promise} A promise is returned. * - * @resolve {LoadBalancerListResult} - The deserialized result object. + * @resolve {NetworkInterface} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -13959,34 +12935,29 @@ export interface LoadBalancers { * * {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. + * {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. */ - 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 { + 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; /** - * Gets all the load balancer backed address pools. + * Updates a network interface tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} loadBalancerName The name of the load balancer. + * @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. * @@ -13995,18 +12966,23 @@ export interface LoadBalancerBackendAddressPools { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the load balancer backed address pools. + * Updates a network interface tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} loadBalancerName The name of the load balancer. + * @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. * @@ -14020,7 +12996,7 @@ export interface LoadBalancerBackendAddressPools { * * {Promise} A promise is returned. * - * @resolve {LoadBalancerBackendAddressPoolListResult} - The deserialized result object. + * @resolve {NetworkInterface} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -14028,27 +13004,24 @@ export interface LoadBalancerBackendAddressPools { * * {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. + * {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. */ - 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; + 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 load balancer backend address pool. + * Gets all route tables applied to a network interface. * * @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 {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * @@ -14057,20 +13030,18 @@ export interface LoadBalancerBackendAddressPools { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginGetEffectiveRouteTableWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets load balancer backend address pool. + * Gets all route tables applied to a network interface. * * @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 {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * @@ -14084,7 +13055,7 @@ export interface LoadBalancerBackendAddressPools { * * {Promise} A promise is returned. * - * @resolve {BackendAddressPool} - The deserialized result object. + * @resolve {EffectiveRouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -14092,23 +13063,25 @@ export interface LoadBalancerBackendAddressPools { * * {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. + * {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. */ - 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; + 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 the load balancer backed address pools. + * Gets all network security groups applied to a network interface. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * @@ -14117,17 +13090,18 @@ export interface LoadBalancerBackendAddressPools { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginListEffectiveNetworkSecurityGroupsWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the load balancer backed address pools. + * Gets all network security groups applied to a network interface. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * @@ -14141,7 +13115,7 @@ export interface LoadBalancerBackendAddressPools { * * {Promise} A promise is returned. * - * @resolve {LoadBalancerBackendAddressPoolListResult} - The deserialized result object. + * @resolve {EffectiveNetworkSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -14149,34 +13123,24 @@ export interface LoadBalancerBackendAddressPools { * * {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. + * {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. */ - 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 { + 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 the load balancer frontend IP configurations. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all network interfaces in a subscription. * - * @param {string} loadBalancerName The name of the load balancer. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -14185,18 +13149,17 @@ export interface LoadBalancerFrontendIPConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the load balancer frontend IP configurations. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all network interfaces in a subscription. * - * @param {string} loadBalancerName The name of the load balancer. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -14210,7 +13173,7 @@ export interface LoadBalancerFrontendIPConfigurations { * * {Promise} A promise is returned. * - * @resolve {LoadBalancerFrontendIPConfigurationListResult} - The deserialized result object. + * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -14218,29 +13181,24 @@ export interface LoadBalancerFrontendIPConfigurations { * * {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 + * {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; + 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 load balancer frontend IP configuration. - * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} loadBalancerName The name of the load balancer. + * Gets all network interfaces in a resource group. * - * @param {string} frontendIPConfigurationName The name of the frontend IP - * configuration. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -14249,21 +13207,17 @@ export interface LoadBalancerFrontendIPConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listNextWithHttpOperationResponse(nextPageLink: 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. + * Gets all network interfaces in a resource group. * - * @param {string} frontendIPConfigurationName The name of the frontend IP - * configuration. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -14277,7 +13231,7 @@ export interface LoadBalancerFrontendIPConfigurations { * * {Promise} A promise is returned. * - * @resolve {FrontendIPConfiguration} - The deserialized result object. + * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -14285,21 +13239,22 @@ export interface LoadBalancerFrontendIPConfigurations { * * {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 + * {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. */ - 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; + 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 load balancer frontend IP configurations. + * 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. @@ -14311,14 +13266,15 @@ export interface LoadBalancerFrontendIPConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listVirtualMachineScaleSetVMNetworkInterfacesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the load balancer frontend IP configurations. + * 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. @@ -14335,7 +13291,7 @@ export interface LoadBalancerFrontendIPConfigurations { * * {Promise} A promise is returned. * - * @resolve {LoadBalancerFrontendIPConfigurationListResult} - The deserialized result object. + * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -14343,35 +13299,24 @@ export interface LoadBalancerFrontendIPConfigurations { * * {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 + * {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 - * InboundNatRules - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - */ -export interface InboundNatRules { + 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 the inbound nat rules in a load balancer. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all network interfaces in a virtual machine scale set. * - * @param {string} loadBalancerName The name of the load balancer. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -14380,18 +13325,17 @@ export interface InboundNatRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listVirtualMachineScaleSetNetworkInterfacesNextWithHttpOperationResponse(nextPageLink: 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. + * Gets all network interfaces in a virtual machine scale set. * - * @param {string} loadBalancerName The name of the load balancer. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -14405,7 +13349,7 @@ export interface InboundNatRules { * * {Promise} A promise is returned. * - * @resolve {InboundNatRuleListResult} - The deserialized result object. + * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -14413,27 +13357,25 @@ export interface InboundNatRules { * * {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 + * {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; + 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; /** - * 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. + * Get the specified network interface ip configuration in a virtual machine + * scale set. * - * @param {string} inboundNatRuleName The name of the inbound nat rule. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -14442,20 +13384,18 @@ export interface InboundNatRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listVirtualMachineScaleSetIpConfigurationsNextWithHttpOperationResponse(nextPageLink: 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. + * Get the specified network interface ip configuration in a virtual machine + * scale set. * - * @param {string} inboundNatRuleName The name of the inbound nat rule. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -14469,7 +13409,7 @@ export interface InboundNatRules { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -14477,54 +13417,57 @@ export interface InboundNatRules { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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 { /** - * Gets the specified load balancer inbound nat rule. + * Get all ip configurations in a network interface * * @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 {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. + * @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>; + listWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified load balancer inbound nat rule. + * Get all ip configurations in a network interface * * @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 {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 * @@ -14535,7 +13478,7 @@ export interface InboundNatRules { * * {Promise} A promise is returned. * - * @resolve {InboundNatRule} - The deserialized result object. + * @resolve {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -14543,73 +13486,27 @@ export interface InboundNatRules { * * {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. + * {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. */ - 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; + 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; /** - * Creates or updates a load balancer inbound nat rule. + * Gets the specified network interface ip configuration. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} loadBalancerName The name of the load balancer. + * @param {string} networkInterfaceName The name of the network interface. * - * @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] 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 {string} ipConfigurationName The name of the ip configuration name. * * @param {object} [options] Optional Parameters. * @@ -14618,67 +13515,20 @@ export interface InboundNatRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, ipConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a load balancer inbound nat rule. + * Gets the specified network interface ip configuration. * * @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] 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} networkInterfaceName The name of the network interface. * - * @param {string} [inboundNatRuleParameters.id] Resource ID. + * @param {string} ipConfigurationName The name of the ip configuration name. * * @param {object} [options] Optional Parameters. * @@ -14692,7 +13542,7 @@ export interface InboundNatRules { * * {Promise} A promise is returned. * - * @resolve {InboundNatRule} - The deserialized result object. + * @resolve {NetworkInterfaceIPConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -14700,26 +13550,24 @@ export interface InboundNatRules { * * {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. + * {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. */ - 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; + 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; /** - * 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. + * Get all ip configurations in a network interface * - * @param {string} inboundNatRuleName The name of the inbound nat rule. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -14728,20 +13576,17 @@ export interface InboundNatRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listNextWithHttpOperationResponse(nextPageLink: 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. + * Get all ip configurations in a network interface * - * @param {string} inboundNatRuleName The name of the inbound nat rule. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -14755,7 +13600,7 @@ export interface InboundNatRules { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -14763,72 +13608,34 @@ export interface InboundNatRules { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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 { /** - * Creates or updates a load balancer inbound nat rule. + * List all load balancers in a network interface. * * @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] 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 {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * @@ -14837,67 +13644,18 @@ export interface InboundNatRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a load balancer inbound nat rule. + * List all load balancers in a network interface. * * @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] 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 {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * @@ -14911,7 +13669,7 @@ export interface InboundNatRules { * * {Promise} A promise is returned. * - * @resolve {InboundNatRule} - The deserialized result object. + * @resolve {NetworkInterfaceLoadBalancerListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -14919,20 +13677,21 @@ export interface InboundNatRules { * * {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. + * {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. */ - 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; + 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 all the inbound nat rules in a load balancer. + * List all load balancers in a network interface. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -14944,14 +13703,14 @@ export interface InboundNatRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the inbound nat rules in a load balancer. + * List all load balancers in a network interface. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -14968,7 +13727,7 @@ export interface InboundNatRules { * * {Promise} A promise is returned. * - * @resolve {InboundNatRuleListResult} - The deserialized result object. + * @resolve {NetworkInterfaceLoadBalancerListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -14976,34 +13735,35 @@ export interface InboundNatRules { * * {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. + * {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; + 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 + * NetworkSecurityGroups * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ -export interface LoadBalancerLoadBalancingRules { +export interface NetworkSecurityGroups { /** - * Gets all the load balancing rules in a load balancer. + * Deletes the specified network security group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} loadBalancerName The name of the load balancer. + * @param {string} networkSecurityGroupName The name of the network security + * group. * * @param {object} [options] Optional Parameters. * @@ -15012,18 +13772,19 @@ export interface LoadBalancerLoadBalancingRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the load balancing rules in a load balancer. + * Deletes the specified network security group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} loadBalancerName The name of the load balancer. + * @param {string} networkSecurityGroupName The name of the network security + * group. * * @param {object} [options] Optional Parameters. * @@ -15037,7 +13798,7 @@ export interface LoadBalancerLoadBalancingRules { * * {Promise} A promise is returned. * - * @resolve {LoadBalancerLoadBalancingRuleListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -15045,52 +13806,52 @@ export interface LoadBalancerLoadBalancingRules { * * {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. + * {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. */ - 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; + 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 load balancer load balancing rule. + * Gets the specified network security group. * * @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 {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. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified load balancer load balancing rule. + * Gets the specified network security group. * * @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 {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 * @@ -15101,7 +13862,7 @@ export interface LoadBalancerLoadBalancingRules { * * {Promise} A promise is returned. * - * @resolve {LoadBalancingRule} - The deserialized result object. + * @resolve {NetworkSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -15109,23 +13870,50 @@ export interface LoadBalancerLoadBalancingRules { * * {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. + * {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, 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; + 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; /** - * Gets all the load balancing rules in a load balancer. + * Creates or updates a network security group in the specified resource group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -15134,17 +13922,44 @@ export interface LoadBalancerLoadBalancingRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.NetworkSecurityGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the load balancing rules in a load balancer. + * Creates or updates a network security group in the specified resource group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -15158,7 +13973,7 @@ export interface LoadBalancerLoadBalancingRules { * * {Promise} A promise is returned. * - * @resolve {LoadBalancerLoadBalancingRuleListResult} - The deserialized result object. + * @resolve {NetworkSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -15166,34 +13981,30 @@ export interface LoadBalancerLoadBalancingRules { * * {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. + * {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. */ - 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 { + 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; /** - * Gets all the outbound rules in a load balancer. + * Updates a network security group tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} loadBalancerName The name of the load balancer. + * @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. * @@ -15202,18 +14013,24 @@ export interface LoadBalancerOutboundRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateTagsWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the outbound rules in a load balancer. + * Updates a network security group tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} loadBalancerName The name of the load balancer. + * @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. * @@ -15227,7 +14044,7 @@ export interface LoadBalancerOutboundRules { * * {Promise} A promise is returned. * - * @resolve {LoadBalancerOutboundRuleListResult} - The deserialized result object. + * @resolve {NetworkSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -15235,27 +14052,20 @@ export interface LoadBalancerOutboundRules { * * {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. + * {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. */ - 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; + 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 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. + * Gets all network security groups in a subscription. * * @param {object} [options] Optional Parameters. * @@ -15264,20 +14074,14 @@ export interface LoadBalancerOutboundRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listAllWithHttpOperationResponse(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. + * Gets all network security groups in a subscription. * * @param {object} [options] Optional Parameters. * @@ -15291,7 +14095,7 @@ export interface LoadBalancerOutboundRules { * * {Promise} A promise is returned. * - * @resolve {OutboundRule} - The deserialized result object. + * @resolve {NetworkSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -15299,23 +14103,23 @@ export interface LoadBalancerOutboundRules { * * {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. + * {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. */ - 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; + listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAll(callback: ServiceCallback): void; + listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets all the outbound rules in a load balancer. + * Gets all network security groups in a resource group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * @@ -15324,17 +14128,16 @@ export interface LoadBalancerOutboundRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the outbound rules in a load balancer. + * Gets all network security groups in a resource group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * @@ -15348,7 +14151,7 @@ export interface LoadBalancerOutboundRules { * * {Promise} A promise is returned. * - * @resolve {LoadBalancerOutboundRuleListResult} - The deserialized result object. + * @resolve {NetworkSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -15356,34 +14159,26 @@ export interface LoadBalancerOutboundRules { * * {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 + * {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 - * LoadBalancerNetworkInterfaces - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - */ -export interface LoadBalancerNetworkInterfaces { + 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 associated load balancer network interfaces. + * Deletes the specified network security group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} loadBalancerName The name of the load balancer. + * @param {string} networkSecurityGroupName The name of the network security + * group. * * @param {object} [options] Optional Parameters. * @@ -15392,18 +14187,19 @@ export interface LoadBalancerNetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets associated load balancer network interfaces. + * Deletes the specified network security group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} loadBalancerName The name of the load balancer. + * @param {string} networkSecurityGroupName The name of the network security + * group. * * @param {object} [options] Optional Parameters. * @@ -15417,7 +14213,7 @@ export interface LoadBalancerNetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -15425,24 +14221,49 @@ export interface LoadBalancerNetworkInterfaces { * * {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. + * {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. */ - 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; + 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; /** - * Gets associated load balancer network interfaces. + * Creates or updates a network security group in the specified resource group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -15451,17 +14272,44 @@ export interface LoadBalancerNetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.NetworkSecurityGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets associated load balancer network interfaces. + * Creates or updates a network security group in the specified resource group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -15475,7 +14323,7 @@ export interface LoadBalancerNetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {NetworkSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -15483,34 +14331,30 @@ export interface LoadBalancerNetworkInterfaces { * * {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. + * {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. */ - 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 { + 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; /** - * Gets all the load balancer probes. + * Updates a network security group tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} loadBalancerName The name of the load balancer. + * @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. * @@ -15519,18 +14363,24 @@ export interface LoadBalancerProbes { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the load balancer probes. + * Updates a network security group tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} loadBalancerName The name of the load balancer. + * @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. * @@ -15544,7 +14394,7 @@ export interface LoadBalancerProbes { * * {Promise} A promise is returned. * - * @resolve {LoadBalancerProbeListResult} - The deserialized result object. + * @resolve {NetworkSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -15552,27 +14402,23 @@ export interface LoadBalancerProbes { * * {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. + * {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. */ - 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; + 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 load balancer probe. - * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} loadBalancerName The name of the load balancer. + * Gets all network security groups in a subscription. * - * @param {string} probeName The name of the probe. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -15581,20 +14427,17 @@ export interface LoadBalancerProbes { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listAllNextWithHttpOperationResponse(nextPageLink: 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. + * Gets all network security groups in a subscription. * - * @param {string} probeName The name of the probe. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -15608,7 +14451,7 @@ export interface LoadBalancerProbes { * * {Promise} A promise is returned. * - * @resolve {Probe} - The deserialized result object. + * @resolve {NetworkSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -15616,20 +14459,21 @@ export interface LoadBalancerProbes { * * {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. + * {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. */ - 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; + 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 balancer probes. + * Gets all network security groups in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -15641,14 +14485,14 @@ export interface LoadBalancerProbes { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the load balancer probes. + * Gets all network security groups in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -15665,7 +14509,7 @@ export interface LoadBalancerProbes { * * {Promise} A promise is returned. * - * @resolve {LoadBalancerProbeListResult} - The deserialized result object. + * @resolve {NetworkSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -15673,34 +14517,37 @@ export interface LoadBalancerProbes { * * {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 + * {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; + 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 + * SecurityRules * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ -export interface NetworkInterfaces { +export interface SecurityRules { /** - * Deletes the specified network interface. + * Deletes the specified network security rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkSecurityGroupName The name of the network security + * group. + * + * @param {string} securityRuleName The name of the security rule. * * @param {object} [options] Optional Parameters. * @@ -15713,14 +14560,17 @@ export interface NetworkInterfaces { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified network interface. + * Deletes the specified network security rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkSecurityGroupName The name of the network security + * group. + * + * @param {string} securityRuleName The name of the security rule. * * @param {object} [options] Optional Parameters. * @@ -15748,43 +14598,45 @@ export interface NetworkInterfaces { * * {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; + 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; /** - * Gets information about the specified network interface. + * Get the specified network security rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkSecurityGroupName The name of the network security + * group. * - * @param {object} [options] Optional Parameters. + * @param {string} securityRuleName The name of the security rule. * - * @param {string} [options.expand] Expands referenced resources. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets information about the specified network interface. + * Get the specified network security rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkSecurityGroupName The name of the network security + * group. * - * @param {object} [options] Optional Parameters. + * @param {string} securityRuleName The name of the security rule. * - * @param {string} [options.expand] Expands referenced resources. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -15796,7 +14648,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterface} - The deserialized result object. + * @resolve {SecurityRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -15804,113 +14656,101 @@ export interface NetworkInterfaces { * * {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. + * {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, 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; + 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 network interface. + * Creates or updates a security rule in the specified network security group. * * @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} networkSecurityGroupName The name of the network security + * group. * - * @param {string} [parameters.networkSecurityGroup.id] Resource ID. + * @param {string} securityRuleName The name of the security rule. * - * @param {string} [parameters.networkSecurityGroup.location] Resource - * location. + * @param {object} securityRuleParameters Parameters supplied to the create or + * update network security rule operation. * - * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. + * @param {string} [securityRuleParameters.description] A description for this + * rule. Restricted to 140 chars. * - * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of - * the network interface. + * @param {string} securityRuleParameters.protocol Network protocol this rule + * applies to. Possible values are 'Tcp', 'Udp', and '*'. Possible values + * include: 'Tcp', 'Udp', '*' * - * @param {array} [parameters.tapConfigurations] A list of TapConfigurations of - * the network interface. + * @param {string} [securityRuleParameters.sourcePortRange] The source port or + * range. Integer or range between 0 and 65535. Asterix '*' can also be used to + * match all ports. * - * @param {object} [parameters.dnsSettings] The DNS settings in network - * interface. + * @param {string} [securityRuleParameters.destinationPortRange] The + * destination port or range. Integer or range between 0 and 65535. Asterix '*' + * can also be used to match all ports. * - * @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 {string} [securityRuleParameters.sourceAddressPrefix] The CIDR or + * source IP range. Asterix '*' 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} [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 {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or + * source IP ranges. * - * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS - * name for this NIC used for internal communications between VMs in the same - * virtual network. + * @param {array} [securityRuleParameters.sourceApplicationSecurityGroups] The + * application security group specified as source. * - * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS - * name supporting internal communications between VMs in the same virtual - * network. + * @param {string} [securityRuleParameters.destinationAddressPrefix] The + * destination address prefix. CIDR or destination IP range. Asterix '*' can + * also be used to match all source IPs. Default tags such as 'VirtualNetwork', + * 'AzureLoadBalancer' and 'Internet' can also be used. * - * @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 {array} [securityRuleParameters.destinationAddressPrefixes] The + * destination address prefixes. CIDR or destination IP ranges. * - * @param {string} [parameters.macAddress] The MAC address of the network - * interface. + * @param {array} [securityRuleParameters.destinationApplicationSecurityGroups] + * The application security group specified as destination. * - * @param {boolean} [parameters.primary] Gets whether this is a primary network - * interface on a virtual machine. + * @param {array} [securityRuleParameters.sourcePortRanges] The source port + * ranges. * - * @param {boolean} [parameters.enableAcceleratedNetworking] If the network - * interface is accelerated networking enabled. + * @param {array} [securityRuleParameters.destinationPortRanges] The + * destination port ranges. * - * @param {boolean} [parameters.enableIPForwarding] Indicates whether IP - * forwarding is enabled on this network interface. + * @param {string} securityRuleParameters.access The network traffic is allowed + * or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: + * 'Allow', 'Deny' * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * network interface resource. + * @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} [parameters.provisioningState] The provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. + * @param {string} securityRuleParameters.direction The direction of the rule. + * The direction specifies if rule will be evaluated on incoming or outcoming + * traffic. Possible values are: 'Inbound' and 'Outbound'. Possible values + * include: 'Inbound', 'Outbound' * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @param {string} [securityRuleParameters.provisioningState] The provisioning + * state of the public IP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. * - * @param {string} [parameters.id] Resource ID. + * @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} [parameters.location] Resource location. + * @param {string} [securityRuleParameters.etag] A unique read-only string that + * changes whenever the resource is updated. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} [securityRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -15919,107 +14759,95 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a network interface. + * Creates or updates a security rule in the specified network security group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkSecurityGroupName The name of the network security + * group. * - * @param {object} parameters Parameters supplied to the create or update - * network interface operation. + * @param {string} securityRuleName The name of the security rule. * - * @param {object} [parameters.networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. + * @param {object} securityRuleParameters Parameters supplied to the create or + * update network security rule operation. * - * @param {array} [parameters.networkSecurityGroup.securityRules] A collection - * of security rules of the network security group. + * @param {string} [securityRuleParameters.description] A description for this + * rule. Restricted to 140 chars. * - * @param {array} [parameters.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. + * @param {string} securityRuleParameters.protocol Network protocol this rule + * applies to. Possible values are 'Tcp', 'Udp', and '*'. Possible values + * include: 'Tcp', 'Udp', '*' * - * @param {string} [parameters.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. + * @param {string} [securityRuleParameters.sourcePortRange] The source port or + * range. Integer or range between 0 and 65535. Asterix '*' can also be used to + * match all ports. * - * @param {string} [parameters.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. + * @param {string} [securityRuleParameters.destinationPortRange] The + * destination port or range. Integer or range between 0 and 65535. Asterix '*' + * can also be used to match all ports. * - * @param {string} [parameters.networkSecurityGroup.etag] A unique read-only - * string that changes whenever the resource is updated. + * @param {string} [securityRuleParameters.sourceAddressPrefix] The CIDR or + * source IP range. Asterix '*' 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 {string} [parameters.networkSecurityGroup.id] Resource ID. + * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or + * source IP ranges. * - * @param {string} [parameters.networkSecurityGroup.location] Resource - * location. + * @param {array} [securityRuleParameters.sourceApplicationSecurityGroups] The + * application security group specified as source. * - * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. + * @param {string} [securityRuleParameters.destinationAddressPrefix] The + * destination address prefix. CIDR or destination IP range. Asterix '*' can + * also be used to match all source IPs. Default tags such as 'VirtualNetwork', + * 'AzureLoadBalancer' and 'Internet' can also be used. * - * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of - * the network interface. + * @param {array} [securityRuleParameters.destinationAddressPrefixes] The + * destination address prefixes. CIDR or destination IP ranges. * - * @param {array} [parameters.tapConfigurations] A list of TapConfigurations of - * the network interface. + * @param {array} [securityRuleParameters.destinationApplicationSecurityGroups] + * The application security group specified as destination. * - * @param {object} [parameters.dnsSettings] The DNS settings in network - * interface. + * @param {array} [securityRuleParameters.sourcePortRanges] The source port + * ranges. * - * @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} [securityRuleParameters.destinationPortRanges] The + * destination port ranges. * - * @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} securityRuleParameters.access The network traffic is allowed + * or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: + * 'Allow', 'Deny' * - * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS - * name for this NIC used for internal communications between VMs in the same - * virtual network. + * @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} [parameters.dnsSettings.internalFqdn] Fully qualified DNS - * name supporting internal communications between VMs in the same virtual - * network. + * @param {string} securityRuleParameters.direction The direction of the rule. + * The direction specifies if rule will be evaluated on incoming or outcoming + * traffic. Possible values are: 'Inbound' and 'Outbound'. Possible values + * include: 'Inbound', 'Outbound' * - * @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} [securityRuleParameters.provisioningState] The provisioning + * state of the public IP resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. * - * @param {string} [parameters.macAddress] The MAC address of the network - * interface. + * @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 {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 {string} [securityRuleParameters.etag] A unique read-only string that + * changes whenever the resource is updated. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} [securityRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -16033,7 +14861,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterface} - The deserialized result object. + * @resolve {SecurityRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -16041,29 +14869,25 @@ export interface NetworkInterfaces { * * {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. + * {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, 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; + 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; /** - * Updates a network interface tags. + * Gets all security rules in a network security group. * * @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 {string} networkSecurityGroupName The name of the network security + * group. * * @param {object} [options] Optional Parameters. * @@ -16072,23 +14896,19 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates a network interface tags. + * Gets all security rules in a network security group. * * @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 {string} networkSecurityGroupName The name of the network security + * group. * * @param {object} [options] Optional Parameters. * @@ -16102,7 +14922,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterface} - The deserialized result object. + * @resolve {SecurityRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -16110,20 +14930,28 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - 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; + 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; /** - * Gets all network interfaces in a subscription. + * 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. * @@ -16132,14 +14960,21 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network interfaces in a subscription. + * 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. * @@ -16153,7 +14988,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -16161,24 +14996,101 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listAll(callback: ServiceCallback): void; - listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * Gets all network interfaces in a resource group. + * 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', and '*'. Possible values + * include: 'Tcp', 'Udp', '*' + * + * @param {string} [securityRuleParameters.sourcePortRange] The source port or + * range. Integer or range between 0 and 65535. Asterix '*' can also be used to + * match all ports. + * + * @param {string} [securityRuleParameters.destinationPortRange] The + * destination port or range. Integer or range between 0 and 65535. Asterix '*' + * can also be used to match all ports. + * + * @param {string} [securityRuleParameters.sourceAddressPrefix] The CIDR or + * source IP range. Asterix '*' 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. Asterix '*' 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 are: 'Allow' and 'Deny'. 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 outcoming + * traffic. Possible values are: 'Inbound' and 'Outbound'. 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 @@ -16186,17 +15098,96 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network interfaces in a resource group. + * 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', and '*'. Possible values + * include: 'Tcp', 'Udp', '*' + * + * @param {string} [securityRuleParameters.sourcePortRange] The source port or + * range. Integer or range between 0 and 65535. Asterix '*' can also be used to + * match all ports. + * + * @param {string} [securityRuleParameters.destinationPortRange] The + * destination port or range. Integer or range between 0 and 65535. Asterix '*' + * can also be used to match all ports. + * + * @param {string} [securityRuleParameters.sourceAddressPrefix] The CIDR or + * source IP range. Asterix '*' 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. Asterix '*' 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 are: 'Allow' and 'Deny'. 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 outcoming + * traffic. Possible values are: 'Inbound' and 'Outbound'. 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 @@ -16209,7 +15200,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {SecurityRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -16217,25 +15208,23 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - 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; + 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 route tables applied to a network interface. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all security rules in a network security group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -16244,18 +15233,17 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getEffectiveRouteTableWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: 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. + * Gets all security rules in a network security group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -16269,7 +15257,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {EffectiveRouteListResult} - The deserialized result object. + * @resolve {SecurityRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -16277,25 +15265,35 @@ export interface NetworkInterfaces { * * {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 + * {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. */ - 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; + 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 network security groups applied to a network interface. + * Gets all default security rules in a network security group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkSecurityGroupName The name of the network security + * group. * * @param {object} [options] Optional Parameters. * @@ -16304,18 +15302,19 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listEffectiveNetworkSecurityGroupsWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network security groups applied to a network interface. + * Gets all default security rules in a network security group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkSecurityGroupName The name of the network security + * group. * * @param {object} [options] Optional Parameters. * @@ -16329,7 +15328,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {EffectiveNetworkSecurityGroupListResult} - The deserialized result object. + * @resolve {SecurityRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -16337,29 +15336,29 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - 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; + 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; /** - * Gets information about all network interfaces in a virtual machine in a - * virtual machine scale set. + * Get the specified default network security rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} virtualMachineScaleSetName The name of the virtual machine - * scale set. + * @param {string} networkSecurityGroupName The name of the network security + * group. * - * @param {string} virtualmachineIndex The virtual machine index. + * @param {string} defaultSecurityRuleName The name of the default security + * rule. * * @param {object} [options] Optional Parameters. * @@ -16368,22 +15367,22 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, defaultSecurityRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets information about all network interfaces in a virtual machine in a - * virtual machine scale set. + * Get the specified default network security rule. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} virtualMachineScaleSetName The name of the virtual machine - * scale set. + * @param {string} networkSecurityGroupName The name of the network security + * group. * - * @param {string} virtualmachineIndex The virtual machine index. + * @param {string} defaultSecurityRuleName The name of the default security + * rule. * * @param {object} [options] Optional Parameters. * @@ -16397,7 +15396,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {SecurityRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -16405,26 +15404,23 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - 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; + 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 network interfaces in a virtual machine scale set. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all default security rules in a network security group. * - * @param {string} virtualMachineScaleSetName The name of the virtual machine - * scale set. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -16433,19 +15429,17 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listVirtualMachineScaleSetNetworkInterfacesWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: 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. + * Gets all default security rules in a network security group. * - * @param {string} virtualMachineScaleSetName The name of the virtual machine - * scale set. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -16459,7 +15453,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {SecurityRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -16467,61 +15461,80 @@ export interface NetworkInterfaces { * * {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 + * {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. */ - 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; + 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 { /** - * Get the specified network interface in a virtual machine scale set. + * Creates or updates a network watcher in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} virtualMachineScaleSetName The name of the virtual machine - * scale set. + * @param {string} networkWatcherName The name of the network watcher. * - * @param {string} virtualmachineIndex The virtual machine index. + * @param {object} parameters Parameters that define the network watcher + * resource. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} [parameters.etag] A unique read-only string that changes + * whenever the resource is updated. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.id] Resource ID. * - * @param {string} [options.expand] Expands referenced resources. + * @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. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.NetworkWatcher, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get the specified network interface in a virtual machine scale set. + * Creates or updates a network watcher in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} virtualMachineScaleSetName The name of the virtual machine - * scale set. + * @param {string} networkWatcherName The name of the network watcher. * - * @param {string} virtualmachineIndex The virtual machine index. + * @param {object} parameters Parameters that define the network watcher + * resource. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} [parameters.etag] A unique read-only string that changes + * whenever the resource is updated. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.id] Resource ID. * - * @param {string} [options.expand] Expands referenced resources. + * @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 @@ -16533,7 +15546,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterface} - The deserialized result object. + * @resolve {NetworkWatcher} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -16541,62 +15554,46 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - 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; + 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; /** - * Get the specified network interface ip configuration in a virtual machine - * scale set. + * Gets the specified network watcher by resource group. * * @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} networkWatcherName The name of the network watcher. * * @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. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get the specified network interface ip configuration in a virtual machine - * scale set. + * Gets the specified network watcher by resource group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} virtualMachineScaleSetName The name of the virtual machine - * scale set. + * @param {string} networkWatcherName The name of the network watcher. * - * @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] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -16608,7 +15605,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. + * @resolve {NetworkWatcher} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -16616,68 +15613,47 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - 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(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; /** - * Get the specified network interface ip configuration in a virtual machine - * scale set. + * Deletes the specified network watcher resource. * * @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} networkWatcherName The name of the network watcher. * * @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. + * @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>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get the specified network interface ip configuration in a virtual machine - * scale set. + * Deletes the specified network watcher resource. * * @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} networkWatcherName The name of the network watcher. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.expand] Expands referenced resources. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -16688,7 +15664,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceIPConfiguration} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -16696,25 +15672,28 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - 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; + 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; /** - * Deletes the specified network interface. + * Updates a network watcher tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @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. * @@ -16723,18 +15702,23 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateTagsWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified network interface. + * Updates a network watcher tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @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. * @@ -16748,7 +15732,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {NetworkWatcher} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -16756,112 +15740,76 @@ export interface NetworkInterfaces { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Creates or updates a network interface. + * Gets all network watchers by resource group. * * @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 {object} [options] Optional Parameters. * - * @param {array} [parameters.tapConfigurations] A list of TapConfigurations of - * the network interface. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {object} [parameters.dnsSettings] The DNS settings in network - * interface. + * @returns {Promise} A promise is returned * - * @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. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @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. + * @reject {Error|ServiceError} - The error object. + */ + listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets all network watchers by resource group. * - * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS - * name for this NIC used for internal communications between VMs in the same - * virtual network. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS - * name supporting internal communications between VMs in the same virtual - * network. + * @param {object} [options] Optional Parameters. * - * @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 {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.macAddress] The MAC address of the network - * interface. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {boolean} [parameters.primary] Gets whether this is a primary network - * interface on a virtual machine. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {boolean} [parameters.enableAcceleratedNetworking] If the network - * interface is accelerated networking enabled. + * {Promise} A promise is returned. * - * @param {boolean} [parameters.enableIPForwarding] Indicates whether IP - * forwarding is enabled on this network interface. + * @resolve {NetworkWatcherListResult} - The deserialized result object. * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * network interface resource. + * @reject {Error|ServiceError} - The error object. * - * @param {string} [parameters.provisioningState] The provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {string} [parameters.id] Resource ID. + * {NetworkWatcherListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkWatcherListResult} for more + * information. * - * @param {string} [parameters.location] Resource location. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {object} [parameters.tags] Resource tags. + * {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. * @@ -16870,107 +15818,102 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a network interface. + * Gets all network watchers by subscription. * - * @param {string} resourceGroupName The name of the resource group. + * @param {object} [options] Optional Parameters. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {object} parameters Parameters supplied to the create or update - * network interface operation. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {object} [parameters.networkSecurityGroup] The reference of the - * NetworkSecurityGroup resource. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {array} [parameters.networkSecurityGroup.securityRules] A collection - * of security rules of the network security group. + * {Promise} A promise is returned. * - * @param {array} [parameters.networkSecurityGroup.defaultSecurityRules] The - * default security rules of network security group. + * @resolve {NetworkWatcherListResult} - The deserialized result object. * - * @param {string} [parameters.networkSecurityGroup.resourceGuid] The resource - * GUID property of the network security group resource. + * @reject {Error|ServiceError} - The error object. * - * @param {string} [parameters.networkSecurityGroup.provisioningState] The - * provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {string} [parameters.networkSecurityGroup.etag] A unique read-only - * string that changes whenever the resource is updated. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {string} [parameters.networkSecurityGroup.id] Resource ID. + * {NetworkWatcherListResult} [result] - The deserialized result object if an error did not occur. + * See {@link NetworkWatcherListResult} for more + * information. * - * @param {string} [parameters.networkSecurityGroup.location] Resource - * location. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. + * {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 {array} [parameters.ipConfigurations] A list of IPConfigurations of - * the network interface. + * @param {string} resourceGroupName The name of the resource group. * - * @param {array} [parameters.tapConfigurations] A list of TapConfigurations of - * the network interface. + * @param {string} networkWatcherName The name of the network watcher. * - * @param {object} [parameters.dnsSettings] The DNS settings in network - * interface. + * @param {object} parameters Parameters that define the representation of + * topology. * - * @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 {string} [parameters.targetResourceGroupName] The name of the target + * resource group to perform topology on. * - * @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 {object} [parameters.targetVirtualNetwork] The reference of the + * Virtual Network resource. * - * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS - * name for this NIC used for internal communications between VMs in the same - * virtual network. + * @param {object} [parameters.targetSubnet] The reference of the Subnet + * resource. * - * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS - * name supporting internal communications between VMs in the same virtual - * network. + * @param {string} [parameters.targetSubnet.id] Resource ID. * - * @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 {object} [options] Optional Parameters. * - * @param {string} [parameters.macAddress] The MAC address of the network - * interface. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {boolean} [parameters.primary] Gets whether this is a primary network - * interface on a virtual machine. + * @returns {Promise} A promise is returned * - * @param {boolean} [parameters.enableAcceleratedNetworking] If the network - * interface is accelerated networking enabled. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {boolean} [parameters.enableIPForwarding] Indicates whether IP - * forwarding is enabled on this network interface. + * @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} [parameters.resourceGuid] The resource GUID property of the - * network interface resource. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [parameters.provisioningState] The provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. + * @param {string} networkWatcherName The name of the network watcher. * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @param {object} parameters Parameters that define the representation of + * topology. * - * @param {string} [parameters.id] Resource ID. + * @param {string} [parameters.targetResourceGroupName] The name of the target + * resource group to perform topology on. * - * @param {string} [parameters.location] Resource location. + * @param {object} [parameters.targetVirtualNetwork] The reference of the + * Virtual Network resource. * - * @param {object} [parameters.tags] Resource tags. + * @param {object} [parameters.targetSubnet] The reference of the Subnet + * resource. + * + * @param {string} [parameters.targetSubnet.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -16984,7 +15927,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterface} - The deserialized result object. + * @resolve {Topology} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -16992,29 +15935,55 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - 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; + 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; /** - * Updates a network interface tags. + * 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} networkInterfaceName The name of the network interface. + * @param {string} networkWatcherName The name of the network watcher. * - * @param {object} parameters Parameters supplied to update network interface - * tags. + * @param {object} parameters Parameters that define the IP flow to be + * verified. * - * @param {object} [parameters.tags] Resource tags. + * @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. * @@ -17023,23 +15992,49 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + verifyIPFlowWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.VerificationIPFlowParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates a network interface tags. + * 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} networkInterfaceName The name of the network interface. + * @param {string} networkWatcherName The name of the network watcher. * - * @param {object} parameters Parameters supplied to update network interface - * tags. + * @param {object} parameters Parameters that define the IP flow to be + * verified. * - * @param {object} [parameters.tags] Resource tags. + * @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. * @@ -17053,7 +16048,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterface} - The deserialized result object. + * @resolve {VerificationIPFlowResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -17061,24 +16056,39 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - 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; + 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 all route tables applied to a network interface. + * Gets the next hop from the specified VM. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @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. * @@ -17087,18 +16097,32 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginGetEffectiveRouteTableWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getNextHopWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.NextHopParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all route tables applied to a network interface. + * Gets the next hop from the specified VM. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @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. * @@ -17112,7 +16136,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {EffectiveRouteListResult} - The deserialized result object. + * @resolve {NextHopResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -17120,25 +16144,29 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - 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; + 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 all network security groups applied to a network interface. + * Gets the configured and effective security group rules on the specified VM. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @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. * @@ -17147,18 +16175,23 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginListEffectiveNetworkSecurityGroupsWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getVMSecurityRulesWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.SecurityGroupViewParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network security groups applied to a network interface. + * Gets the configured and effective security group rules on the specified VM. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @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. * @@ -17172,7 +16205,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {EffectiveNetworkSecurityGroupListResult} - The deserialized result object. + * @resolve {SecurityGroupViewResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -17180,24 +16213,37 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - 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; + 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; /** - * Gets all network interfaces in a subscription. + * Initiate troubleshooting on a specified resource * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -17206,17 +16252,30 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getTroubleshootingWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.TroubleshootingParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network interfaces in a subscription. + * Initiate troubleshooting on a specified resource * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -17230,7 +16289,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {TroubleshootingResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -17238,24 +16297,30 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - 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; + 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; /** - * Gets all network interfaces in a resource group. + * Get the last completed troubleshooting result on a specified resource * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -17264,17 +16329,24 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getTroubleshootingResultWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.QueryTroubleshootingParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network interfaces in a resource group. + * Get the last completed troubleshooting result on a specified resource * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -17288,7 +16360,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {TroubleshootingResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -17296,84 +16368,66 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - 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; + 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; /** - * 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. + * Configures flow log and traffic analytics (optional) on a specified + * resource. * - * @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} resourceGroupName The name of the network watcher resource + * group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} networkWatcherName The name of the network watcher resource. * - * @param {object} [options] Optional Parameters. + * @param {object} parameters Parameters that define the configuration of flow + * log. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {string} parameters.targetResourceId The ID of the resource to + * configure for flow log and traffic analytics (optional) . * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {string} parameters.storageId ID of the storage account which is used + * to store the flow log. * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {boolean} parameters.enabled Flag to enable/disable flow logging. * - * {Promise} A promise is returned. + * @param {object} [parameters.retentionPolicy] * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @param {number} [parameters.retentionPolicy.days] Number of days to retain + * flow log records. * - * @reject {Error|ServiceError} - The error object. + * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable + * retention. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {object} [parameters.flowAnalyticsConfiguration] * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {object} + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration * - * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkInterfaceListResult} for more - * information. + * @param {boolean} + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled + * Flag to enable/disable traffic analytics. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {string} + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceId + * The resource guid of the attached workspace * - * {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} + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceRegion + * The location of the attached workspace * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId + * Resource Id of the attached workspace * * @param {object} [options] Optional Parameters. * @@ -17382,17 +16436,60 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listVirtualMachineScaleSetNetworkInterfacesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + setFlowLogConfigurationWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogInformation, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network interfaces in a virtual machine scale set. + * Configures flow log and traffic analytics (optional) on a specified + * resource. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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] + * + * @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.flowAnalyticsConfiguration] + * + * @param {object} + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration + * + * @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 {object} [options] Optional Parameters. * @@ -17406,7 +16503,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceListResult} - The deserialized result object. + * @resolve {FlowLogInformation} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -17414,25 +16511,32 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - 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; + 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; /** - * Get the specified network interface ip configuration in a virtual machine - * scale set. + * Queries status of flow log and traffic analytics (optional) on a specified + * resource. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -17441,18 +16545,26 @@ export interface NetworkInterfaces { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listVirtualMachineScaleSetIpConfigurationsNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getFlowLogStatusWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogStatusParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get the specified network interface ip configuration in a virtual machine - * scale set. + * Queries status of flow log and traffic analytics (optional) on a specified + * resource. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -17466,7 +16578,7 @@ export interface NetworkInterfaces { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. + * @resolve {FlowLogInformation} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -17474,34 +16586,66 @@ export interface NetworkInterfaces { * * {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. + * {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. */ - 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 { + 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; /** - * Get all ip configurations in a network interface + * 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 resource group. + * @param {string} resourceGroupName The name of the network watcher resource + * group. * - * @param {string} networkInterfaceName The name of the network interface. + * @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 + * + * @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 + * + * @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] + * + * @param {object} [parameters.protocolConfiguration.hTTPConfiguration] + * + * @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. * @@ -17510,18 +16654,60 @@ export interface NetworkInterfaceIPConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + checkConnectivityWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.ConnectivityParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get all ip configurations in a network interface + * 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 resource group. + * @param {string} resourceGroupName The name of the network watcher resource + * group. * - * @param {string} networkInterfaceName The name of the network interface. + * @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 + * + * @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 + * + * @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] + * + * @param {object} [parameters.protocolConfiguration.hTTPConfiguration] + * + * @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. * @@ -17535,7 +16721,7 @@ export interface NetworkInterfaceIPConfigurations { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. + * @resolve {ConnectivityInformation} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -17543,27 +16729,50 @@ export interface NetworkInterfaceIPConfigurations { * * {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. + * {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. */ - 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; + 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 specified network interface ip configuration. + * Gets the relative latency score for internet service providers from a + * specified location to Azure regions. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the network watcher resource + * group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkWatcherName The name of the network watcher resource. * - * @param {string} ipConfigurationName The name of the ip configuration name. + * @param {object} parameters Parameters that determine Azure reachability + * report configuration. + * + * @param {object} parameters.providerLocation + * + * @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. * @@ -17572,20 +16781,43 @@ export interface NetworkInterfaceIPConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getAzureReachabilityReportWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.AzureReachabilityReportParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified network interface ip configuration. + * Gets the relative latency score for internet service providers from a + * specified location to Azure regions. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the network watcher resource + * group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkWatcherName The name of the network watcher resource. * - * @param {string} ipConfigurationName The name of the ip configuration name. + * @param {object} parameters Parameters that determine Azure reachability + * report configuration. + * + * @param {object} parameters.providerLocation + * + * @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. * @@ -17599,7 +16831,7 @@ export interface NetworkInterfaceIPConfigurations { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceIPConfiguration} - The deserialized result object. + * @resolve {AzureReachabilityReport} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -17607,43 +16839,73 @@ export interface NetworkInterfaceIPConfigurations { * * {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 + * {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. */ - 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; + 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; /** - * Get all ip configurations in a network interface + * Lists all available internet service providers for a specified Azure region. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the network watcher resource + * group. * - * @param {object} [options] Optional Parameters. + * @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. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAvailableProvidersWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.AvailableProvidersListParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get all ip configurations in a network interface + * Lists all available internet service providers for a specified Azure region. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -17657,7 +16919,7 @@ export interface NetworkInterfaceIPConfigurations { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. + * @resolve {AvailableProvidersList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -17665,34 +16927,25 @@ export interface NetworkInterfaceIPConfigurations { * * {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. + * {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. */ - 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 { + 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; /** - * List all load balancers in a network interface. + * Deletes the specified network watcher resource. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkWatcherName The name of the network watcher. * * @param {object} [options] Optional Parameters. * @@ -17701,18 +16954,18 @@ export interface NetworkInterfaceLoadBalancers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * List all load balancers in a network interface. + * Deletes the specified network watcher resource. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkWatcherName The name of the network watcher. * * @param {object} [options] Optional Parameters. * @@ -17726,7 +16979,7 @@ export interface NetworkInterfaceLoadBalancers { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceLoadBalancerListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -17734,24 +16987,54 @@ export interface NetworkInterfaceLoadBalancers { * * {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. + * {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. */ - 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; + 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; /** - * List all load balancers in a network interface. + * Verify IP flow from the specified VM to a location given the currently + * configured NSG rules. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -17760,17 +17043,49 @@ export interface NetworkInterfaceLoadBalancers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginVerifyIPFlowWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.VerificationIPFlowParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * List all load balancers in a network interface. + * Verify IP flow from the specified VM to a location given the currently + * configured NSG rules. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -17784,7 +17099,7 @@ export interface NetworkInterfaceLoadBalancers { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceLoadBalancerListResult} - The deserialized result object. + * @resolve {VerificationIPFlowResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -17792,36 +17107,39 @@ export interface NetworkInterfaceLoadBalancers { * * {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. + * {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. */ - 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 { + 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; /** - * Deletes the specified tap configuration from the NetworkInterface. + * Gets the next hop from the specified VM. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @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} tapConfigurationName The name of the tap configuration. + * @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. * @@ -17830,20 +17148,32 @@ export interface NetworkInterfaceTapConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginGetNextHopWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.NextHopParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified tap configuration from the NetworkInterface. + * Gets the next hop from the specified VM. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @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} tapConfigurationName The name of the tap configuration. + * @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. * @@ -17857,7 +17187,7 @@ export interface NetworkInterfaceTapConfigurations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {NextHopResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -17865,25 +17195,29 @@ export interface NetworkInterfaceTapConfigurations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Get the specified tap configuration on a network interface. + * Gets the configured and effective security group rules on the specified VM. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkWatcherName The name of the network watcher. + * + * @param {object} parameters Parameters that define the VM to check security + * groups for. * - * @param {string} tapConfigurationName The name of the tap configuration. + * @param {string} parameters.targetResourceId ID of the target VM. * * @param {object} [options] Optional Parameters. * @@ -17892,20 +17226,23 @@ export interface NetworkInterfaceTapConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginGetVMSecurityRulesWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.SecurityGroupViewParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get the specified tap configuration on a network interface. + * Gets the configured and effective security group rules on the specified VM. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkWatcherName The name of the network watcher. + * + * @param {object} parameters Parameters that define the VM to check security + * groups for. * - * @param {string} tapConfigurationName The name of the tap configuration. + * @param {string} parameters.targetResourceId ID of the target VM. * * @param {object} [options] Optional Parameters. * @@ -17919,7 +17256,7 @@ export interface NetworkInterfaceTapConfigurations { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceTapConfiguration} - The deserialized result object. + * @resolve {SecurityGroupViewResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -17927,389 +17264,221 @@ export interface NetworkInterfaceTapConfigurations { * * {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 + * {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. */ - 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; + 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; /** - * Creates or updates a Tap configuration in the specified NetworkInterface. + * Initiate troubleshooting on a specified resource * * @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} networkWatcherName The name of the network watcher resource. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAllocationMethod] - * Defines how a private IP address is assigned. Possible values are: 'Static' - * and 'Dynamic'. Possible values include: 'Static', 'Dynamic' + * @param {object} parameters Parameters that define the resource to + * troubleshoot. * - * @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 are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', - * 'IPv6' + * @param {string} parameters.targetResourceId The target resource to + * troubleshoot. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet] - * Subnet bound to the IP configuration. + * @param {string} parameters.storageId The ID for the storage account to save + * the troubleshoot result. * - * @param {boolean} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.primary] - * Gets whether this is a primary customer address on the network interface. + * @param {string} parameters.storagePath The path to the blob to save the + * troubleshoot result in. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress] - * Public IP address bound to the IP configuration. + * @param {object} [options] Optional Parameters. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.applicationSecurityGroups] - * Application security groups in which the IP configuration is included. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.provisioningState] - * The provisioning state of the network interface IP configuration. Possible - * values are: 'Updating', 'Deleting', and 'Failed'. + * @returns {Promise} A promise is returned * - * @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. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.etag] - * A unique read-only string that changes whenever the resource is updated. + * @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} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.id] - * Resource ID. + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration] - * The reference to the private IP address on the internal Load Balancer that - * will receive the tap + * @param {string} networkWatcherName The name of the network watcher resource. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAddress] - * The private IP address of the IP configuration. + * @param {object} parameters Parameters that define the resource to + * troubleshoot. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAllocationMethod] - * The Private IP allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' + * @param {string} parameters.targetResourceId The target resource to + * troubleshoot. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet] - * The reference of the subnet resource. + * @param {string} parameters.storageId The ID for the storage account to save + * the troubleshoot result. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefix] - * The address prefix for the subnet. + * @param {string} parameters.storagePath The path to the blob to save the + * troubleshoot result in. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. + * @param {object} [options] Optional Parameters. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup] - * The reference of the NetworkSecurityGroup resource. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. + * {Promise} A promise is returned. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. + * @resolve {TroubleshootingResult} - The deserialized result object. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. + * @reject {Error|ServiceError} - The error object. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.id] - * Resource ID. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.location] - * Resource location. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.tags] - * Resource tags. + * {TroubleshootingResult} [result] - The deserialized result object if an error did not occur. + * See {@link TroubleshootingResult} for more information. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable] - * The reference of the RouteTable resource. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. + * {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 {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} resourceGroupName The name of the resource group. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. + * @param {string} networkWatcherName The name of the network watcher resource. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. + * @param {object} parameters Parameters that define the resource to query the + * troubleshooting result. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.id] - * Resource ID. + * @param {string} parameters.targetResourceId The target resource ID to query + * the troubleshooting result. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.location] - * Resource location. + * @param {object} [options] Optional Parameters. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.tags] - * Resource tags. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpoints] - * An array of service endpoints. + * @returns {Promise} A promise is returned * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpointPolicies] - * An array of service endpoint policies. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.resourceNavigationLinks] - * Gets an array of references to the external resources using subnet. + * @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 {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. + * @param {string} resourceGroupName The name of the resource group. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.delegations] - * Gets an array of references to the delegations on the subnet. + * @param {string} networkWatcherName The name of the network watcher resource. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.provisioningState] - * The provisioning state of the resource. + * @param {object} parameters Parameters that define the resource to query the + * troubleshooting result. * - * @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} parameters.targetResourceId The target resource ID to query + * the troubleshooting result. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.etag] - * A unique read-only string that changes whenever the resource is updated. + * @param {object} [options] Optional Parameters. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.id] - * Resource ID. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress] - * The reference of the Public IP resource. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku] - * The public IP address SKU. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku.name] - * Name of a public IP address SKU. Possible values include: 'Basic', - * 'Standard' + * {Promise} A promise is returned. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAllocationMethod] - * The public IP allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' + * @resolve {TroubleshootingResult} - The deserialized result object. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] - * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. - * Possible values include: 'IPv4', 'IPv6' + * @reject {Error|ServiceError} - The error object. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings] - * The FQDN of the DNS record associated with the public IP address. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @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. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @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. + * {TroubleshootingResult} [result] - The deserialized result object if an error did not occur. + * See {@link TroubleshootingResult} for more information. * - * @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. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipTags] - * The list of tags associated with the public IP address. + * {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} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipAddress] - * The IP address associated with the public IP address resource. + * @param {string} resourceGroupName The name of the network watcher resource + * group. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPPrefix] - * The Public IP Prefix this Public IP Address should be allocated from. + * @param {string} networkWatcherName The name of the network watcher resource. * - * @param {number} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.idleTimeoutInMinutes] - * The idle timeout of the public IP address. + * @param {object} parameters Parameters that define the configuration of flow + * log. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.resourceGuid] - * The resource GUID property of the public IP resource. + * @param {string} parameters.targetResourceId The ID of the resource to + * configure for flow log and traffic analytics (optional) . * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.provisioningState] - * The provisioning state of the PublicIP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. + * @param {string} parameters.storageId ID of the storage account which is used + * to store the flow log. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.etag] - * A unique read-only string that changes whenever the resource is updated. + * @param {boolean} parameters.enabled Flag to enable/disable flow logging. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.zones] - * A list of availability zones denoting the IP allocated for the resource - * needs to come from. + * @param {object} [parameters.retentionPolicy] * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.id] - * Resource ID. + * @param {number} [parameters.retentionPolicy.days] Number of days to retain + * flow log records. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.location] - * Resource location. + * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable + * retention. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.tags] - * Resource tags. + * @param {object} [parameters.flowAnalyticsConfiguration] * * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix] - * The reference of the Public IP Prefix resource. - * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix.id] - * Resource ID. + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.provisioningState] - * Gets the provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. + * @param {boolean} + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled + * Flag to enable/disable traffic analytics. * * @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. + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceId + * The resource guid of the attached workspace * * @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. + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceRegion + * The location of the attached workspace * * @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. + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId + * Resource Id of the attached workspace * * @param {object} [options] Optional Parameters. * @@ -18318,382 +17487,278 @@ export interface NetworkInterfaceTapConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginSetFlowLogConfigurationWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogInformation, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a Tap configuration in the specified NetworkInterface. + * Configures flow log and traffic analytics (optional) on a specified + * resource. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the network watcher resource + * group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkWatcherName The name of the network watcher resource. * - * @param {string} tapConfigurationName The name of the tap configuration. + * @param {object} parameters Parameters that define the configuration of flow + * log. * - * @param {object} tapConfigurationParameters Parameters supplied to the create - * or update tap configuration operation. + * @param {string} parameters.targetResourceId The ID of the resource to + * configure for flow log and traffic analytics (optional) . * - * @param {object} [tapConfigurationParameters.virtualNetworkTap] The reference - * of the Virtual Network Tap resource. + * @param {string} parameters.storageId ID of the storage account which is used + * to store the flow log. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration] - * The reference to the private IP Address of the collector nic that will - * receive the tap + * @param {boolean} parameters.enabled Flag to enable/disable flow logging. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.virtualNetworkTaps] - * The reference to Virtual Network Taps. + * @param {object} [parameters.retentionPolicy] * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.applicationGatewayBackendAddressPools] - * The reference of ApplicationGatewayBackendAddressPool resource. + * @param {number} [parameters.retentionPolicy.days] Number of days to retain + * flow log records. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.loadBalancerBackendAddressPools] - * The reference of LoadBalancerBackendAddressPool resource. + * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable + * retention. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.loadBalancerInboundNatRules] - * A list of references of LoadBalancerInboundNatRules. + * @param {object} [parameters.flowAnalyticsConfiguration] * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAddress] - * Private IP address of the IP configuration. + * @param {object} + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration + * + * @param {boolean} + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled + * Flag to enable/disable traffic analytics. * * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAllocationMethod] - * Defines how a private IP address is assigned. Possible values are: 'Static' - * and 'Dynamic'. Possible values include: 'Static', 'Dynamic' + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceId + * The resource guid of the attached workspace * * @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 are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', - * 'IPv6' + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceRegion + * The location of the attached workspace * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet] - * Subnet bound to the IP configuration. + * @param {string} + * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId + * Resource Id of the attached workspace * - * @param {boolean} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.primary] - * Gets whether this is a primary customer address on the network interface. + * @param {object} [options] Optional Parameters. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress] - * Public IP address bound to the IP configuration. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.applicationSecurityGroups] - * Application security groups in which the IP configuration is included. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.provisioningState] - * The provisioning state of the network interface IP configuration. Possible - * values are: 'Updating', 'Deleting', and 'Failed'. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @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. + * {Promise} A promise is returned. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.etag] - * A unique read-only string that changes whenever the resource is updated. + * @resolve {FlowLogInformation} - The deserialized result object. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.id] - * Resource ID. + * @reject {Error|ServiceError} - The error object. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration] - * The reference to the private IP address on the internal Load Balancer that - * will receive the tap + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAddress] - * The private IP address of the IP configuration. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAllocationMethod] - * The Private IP allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' + * {FlowLogInformation} [result] - The deserialized result object if an error did not occur. + * See {@link FlowLogInformation} for more information. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet] - * The reference of the subnet resource. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefix] - * The address prefix for the subnet. + * {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 {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. + * @param {string} resourceGroupName The name of the network watcher resource + * group. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup] - * The reference of the NetworkSecurityGroup resource. + * @param {string} networkWatcherName The name of the network watcher resource. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. + * @param {object} parameters Parameters that define a resource to query flow + * log and traffic analytics (optional) status. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. + * @param {string} parameters.targetResourceId The target resource where + * getting the flow log and traffic analytics (optional) status. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. + * @param {object} [options] Optional Parameters. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. + * @returns {Promise} A promise is returned * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.id] - * Resource ID. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.location] - * Resource location. + * @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 {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.tags] - * Resource tags. + * @param {string} resourceGroupName The name of the network watcher resource + * group. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable] - * The reference of the RouteTable resource. + * @param {string} networkWatcherName The name of the network watcher resource. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. + * @param {object} parameters Parameters that define a resource to query flow + * log and traffic analytics (optional) status. * - * @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} parameters.targetResourceId The target resource where + * getting the flow log and traffic analytics (optional) status. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.provisioningState] - * The provisioning state of the resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. + * @param {object} [options] Optional Parameters. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.etag] - * Gets a unique read-only string that changes whenever the resource is - * updated. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.id] - * Resource ID. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.location] - * Resource location. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.tags] - * Resource tags. + * {Promise} A promise is returned. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpoints] - * An array of service endpoints. + * @resolve {FlowLogInformation} - The deserialized result object. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpointPolicies] - * An array of service endpoint policies. + * @reject {Error|ServiceError} - The error object. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.resourceNavigationLinks] - * Gets an array of references to the external resources using subnet. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceAssociationLinks] - * Gets an array of references to services injecting into this subnet. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.delegations] - * Gets an array of references to the delegations on the subnet. + * {FlowLogInformation} [result] - The deserialized result object if an error did not occur. + * See {@link FlowLogInformation} for more information. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.provisioningState] - * The provisioning state of the resource. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @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. + * {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} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.etag] - * A unique read-only string that changes whenever the resource is updated. + * @param {string} resourceGroupName The name of the network watcher resource + * group. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.id] - * Resource ID. + * @param {string} networkWatcherName The name of the network watcher resource. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress] - * The reference of the Public IP resource. + * @param {object} parameters Parameters that determine how the connectivity + * check will be performed. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku] - * The public IP address SKU. + * @param {object} parameters.source * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku.name] - * Name of a public IP address SKU. Possible values include: 'Basic', - * 'Standard' + * @param {string} parameters.source.resourceId The ID of the resource from + * which a connectivity check will be initiated. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAllocationMethod] - * The public IP allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' + * @param {number} [parameters.source.port] The source port from which a + * connectivity check will be performed. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] - * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. - * Possible values include: 'IPv4', 'IPv6' + * @param {object} parameters.destination * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings] - * The FQDN of the DNS record associated with the public IP address. + * @param {string} [parameters.destination.resourceId] The ID of the resource + * to which a connection attempt will be made. * - * @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} [parameters.destination.address] The IP address or URI the + * resource to which a connection attempt will be made. * - * @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 {number} [parameters.destination.port] Port on which check + * connectivity will be performed. * - * @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 {string} [parameters.protocol] Network protocol. Possible values + * include: 'Tcp', 'Http', 'Https', 'Icmp' * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipTags] - * The list of tags associated with the public IP address. + * @param {object} [parameters.protocolConfiguration] * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipAddress] - * The IP address associated with the public IP address resource. + * @param {object} [parameters.protocolConfiguration.hTTPConfiguration] * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPPrefix] - * The Public IP Prefix this Public IP Address should be allocated from. + * @param {string} [parameters.protocolConfiguration.hTTPConfiguration.method] + * HTTP method. Possible values include: 'Get' * - * @param {number} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.idleTimeoutInMinutes] - * The idle timeout of the public IP address. + * @param {array} [parameters.protocolConfiguration.hTTPConfiguration.headers] + * List of HTTP headers. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.resourceGuid] - * The resource GUID property of the public IP resource. + * @param {array} + * [parameters.protocolConfiguration.hTTPConfiguration.validStatusCodes] Valid + * status codes. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.provisioningState] - * The provisioning state of the PublicIP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. + * @param {object} [options] Optional Parameters. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.etag] - * A unique read-only string that changes whenever the resource is updated. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.zones] - * A list of availability zones denoting the IP allocated for the resource - * needs to come from. + * @returns {Promise} A promise is returned * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.id] - * Resource ID. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.location] - * Resource location. + * @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 {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.tags] - * Resource tags. + * @param {string} resourceGroupName The name of the network watcher resource + * group. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix] - * The reference of the Public IP Prefix resource. + * @param {string} networkWatcherName The name of the network watcher resource. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix.id] - * Resource ID. + * @param {object} parameters Parameters that determine how the connectivity + * check will be performed. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.provisioningState] - * Gets the provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. + * @param {object} parameters.source * - * @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} parameters.source.resourceId The ID of the resource from + * which a connectivity check will be initiated. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.etag] - * A unique read-only string that changes whenever the resource is updated. + * @param {number} [parameters.source.port] The source port from which a + * connectivity check will be performed. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.zones] - * A list of availability zones denoting the IP allocated for the resource - * needs to come from. + * @param {object} parameters.destination * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.id] - * Resource ID. + * @param {string} [parameters.destination.resourceId] The ID of the resource + * to which a connection attempt will be made. * - * @param {number} - * [tapConfigurationParameters.virtualNetworkTap.destinationPort] The VXLAN - * destination port that will receive the tapped traffic. + * @param {string} [parameters.destination.address] The IP address or URI the + * resource to which a connection attempt will be made. * - * @param {string} [tapConfigurationParameters.virtualNetworkTap.etag] Gets a - * unique read-only string that changes whenever the resource is updated. + * @param {number} [parameters.destination.port] Port on which check + * connectivity will be performed. * - * @param {string} [tapConfigurationParameters.virtualNetworkTap.id] Resource - * ID. + * @param {string} [parameters.protocol] Network protocol. Possible values + * include: 'Tcp', 'Http', 'Https', 'Icmp' * - * @param {string} [tapConfigurationParameters.virtualNetworkTap.location] - * Resource location. + * @param {object} [parameters.protocolConfiguration] * - * @param {object} [tapConfigurationParameters.virtualNetworkTap.tags] Resource - * tags. + * @param {object} [parameters.protocolConfiguration.hTTPConfiguration] * - * @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} [parameters.protocolConfiguration.hTTPConfiguration.method] + * HTTP method. Possible values include: 'Get' * - * @param {string} [tapConfigurationParameters.etag] A unique read-only string - * that changes whenever the resource is updated. + * @param {array} [parameters.protocolConfiguration.hTTPConfiguration.headers] + * List of HTTP headers. * - * @param {string} [tapConfigurationParameters.id] Resource ID. + * @param {array} + * [parameters.protocolConfiguration.hTTPConfiguration.validStatusCodes] Valid + * status codes. * * @param {object} [options] Optional Parameters. * @@ -18707,7 +17772,7 @@ export interface NetworkInterfaceTapConfigurations { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceTapConfiguration} - The deserialized result object. + * @resolve {ConnectivityInformation} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -18715,25 +17780,50 @@ export interface NetworkInterfaceTapConfigurations { * * {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 + * {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. */ - 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; + 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; /** - * Get all Tap configurations in a network interface + * Gets the relative latency score for internet service providers from a + * specified location to Azure regions. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the network watcher resource + * group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkWatcherName The name of the network watcher resource. + * + * @param {object} parameters Parameters that determine Azure reachability + * report configuration. + * + * @param {object} parameters.providerLocation + * + * @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. * @@ -18742,18 +17832,43 @@ export interface NetworkInterfaceTapConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginGetAzureReachabilityReportWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.AzureReachabilityReportParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get all Tap configurations in a network interface + * Gets the relative latency score for internet service providers from a + * specified location to Azure regions. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the network watcher resource + * group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkWatcherName The name of the network watcher resource. + * + * @param {object} parameters Parameters that determine Azure reachability + * report configuration. + * + * @param {object} parameters.providerLocation + * + * @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. * @@ -18767,7 +17882,7 @@ export interface NetworkInterfaceTapConfigurations { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceTapConfigurationListResult} - The deserialized result object. + * @resolve {AzureReachabilityReport} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -18775,27 +17890,39 @@ export interface NetworkInterfaceTapConfigurations { * * {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. + * {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. */ - 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; + 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; /** - * Deletes the specified tap configuration from the NetworkInterface. + * Lists all available internet service providers for a specified Azure region. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the network watcher resource + * group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkWatcherName The name of the network watcher resource. + * + * @param {object} parameters Parameters that scope the list of available + * providers. * - * @param {string} tapConfigurationName The name of the tap configuration. + * @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. * @@ -18804,20 +17931,32 @@ export interface NetworkInterfaceTapConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginListAvailableProvidersWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.AvailableProvidersListParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified tap configuration from the NetworkInterface. + * Lists all available internet service providers for a specified Azure region. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the network watcher resource + * group. * - * @param {string} networkInterfaceName The name of the network interface. + * @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} tapConfigurationName The name of the tap configuration. + * @param {string} [parameters.city] The city or town for available providers + * list. * * @param {object} [options] Optional Parameters. * @@ -18831,7 +17970,7 @@ export interface NetworkInterfaceTapConfigurations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {AvailableProvidersList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -18839,387 +17978,163 @@ export interface NetworkInterfaceTapConfigurations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; +} + +/** + * @class + * PacketCaptures + * __NOTE__: An instance of this class is automatically created for an + * instance of the NetworkManagementClient. + */ +export interface PacketCaptures { /** - * Creates or updates a Tap configuration in the specified NetworkInterface. + * Create and start a packet capture on the specified VM. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkInterfaceName The name of the network interface. + * @param {string} networkWatcherName The name of the network watcher. * - * @param {string} tapConfigurationName The name of the tap configuration. + * @param {string} packetCaptureName The name of the packet capture session. * - * @param {object} tapConfigurationParameters Parameters supplied to the create - * or update tap configuration operation. + * @param {object} parameters Parameters that define the create packet capture + * operation. * - * @param {object} [tapConfigurationParameters.virtualNetworkTap] The reference - * of the Virtual Network Tap resource. + * @param {string} parameters.target The ID of the targeted resource, only VM + * is currently supported. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration] - * The reference to the private IP Address of the collector nic that will - * receive the tap + * @param {number} [parameters.bytesToCapturePerPacket] Number of bytes + * captured per packet, the remaining bytes are truncated. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.virtualNetworkTaps] - * The reference to Virtual Network Taps. + * @param {number} [parameters.totalBytesPerSession] Maximum size of the + * capture output. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.applicationGatewayBackendAddressPools] - * The reference of ApplicationGatewayBackendAddressPool resource. + * @param {number} [parameters.timeLimitInSeconds] Maximum duration of the + * capture session in seconds. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.loadBalancerBackendAddressPools] - * The reference of LoadBalancerBackendAddressPool resource. + * @param {object} parameters.storageLocation * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.loadBalancerInboundNatRules] - * A list of references of LoadBalancerInboundNatRules. + * @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} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAddress] - * Private IP address of the IP configuration. + * @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} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAllocationMethod] - * Defines how a private IP address is assigned. Possible values are: 'Static' - * and 'Dynamic'. Possible values include: 'Static', 'Dynamic' + * @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 {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 are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', - * 'IPv6' + * @param {array} [parameters.filters] * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet] - * Subnet bound to the IP configuration. + * @param {object} [options] Optional Parameters. * - * @param {boolean} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.primary] - * Gets whether this is a primary customer address on the network interface. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress] - * Public IP address bound to the IP configuration. + * @returns {Promise} A promise is returned * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.applicationSecurityGroups] - * Application security groups in which the IP configuration is included. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.provisioningState] - * The provisioning state of the network interface IP configuration. Possible - * values are: 'Updating', 'Deleting', and 'Failed'. + * @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} - * [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} resourceGroupName The name of the resource group. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.etag] - * A unique read-only string that changes whenever the resource is updated. + * @param {string} networkWatcherName The name of the network watcher. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.id] - * Resource ID. + * @param {string} packetCaptureName The name of the packet capture session. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration] - * The reference to the private IP address on the internal Load Balancer that - * will receive the tap + * @param {object} parameters Parameters that define the create packet capture + * operation. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAddress] - * The private IP address of the IP configuration. + * @param {string} parameters.target The ID of the targeted resource, only VM + * is currently supported. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAllocationMethod] - * The Private IP allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' + * @param {number} [parameters.bytesToCapturePerPacket] Number of bytes + * captured per packet, the remaining bytes are truncated. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet] - * The reference of the subnet resource. + * @param {number} [parameters.totalBytesPerSession] Maximum size of the + * capture output. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefix] - * The address prefix for the subnet. + * @param {number} [parameters.timeLimitInSeconds] Maximum duration of the + * capture session in seconds. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefixes] - * List of address prefixes for the subnet. + * @param {object} parameters.storageLocation * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup] - * The reference of the NetworkSecurityGroup resource. + * @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 {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.securityRules] - * A collection of security rules of the network security group. + * @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 {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] - * The default security rules of network security group. + * @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 {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.resourceGuid] - * The resource GUID property of the network security group resource. + * @param {array} [parameters.filters] * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.provisioningState] - * The provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. + * @param {object} [options] Optional Parameters. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.etag] - * A unique read-only string that changes whenever the resource is updated. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.id] - * Resource ID. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.location] - * Resource location. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.tags] - * Resource tags. + * {Promise} A promise is returned. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable] - * The reference of the RouteTable resource. + * @resolve {PacketCaptureResult} - The deserialized result object. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.routes] - * Collection of routes contained within a route table. + * @reject {Error|ServiceError} - The error object. * - * @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 {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 allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] - * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. - * 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 {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. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {string} [tapConfigurationParameters.virtualNetworkTap.etag] Gets a - * unique read-only string that changes whenever the resource is updated. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {string} [tapConfigurationParameters.virtualNetworkTap.id] Resource - * ID. + * {PacketCaptureResult} [result] - The deserialized result object if an error did not occur. + * See {@link PacketCaptureResult} for more information. * - * @param {string} [tapConfigurationParameters.virtualNetworkTap.location] - * Resource location. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {object} [tapConfigurationParameters.virtualNetworkTap.tags] Resource - * tags. + * {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} [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} resourceGroupName The name of the resource group. * - * @param {string} [tapConfigurationParameters.etag] A unique read-only string - * that changes whenever the resource is updated. + * @param {string} networkWatcherName The name of the network watcher. * - * @param {string} [tapConfigurationParameters.id] Resource ID. + * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} [options] Optional Parameters. * @@ -19228,382 +18143,83 @@ export interface NetworkInterfaceTapConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a Tap configuration in the specified NetworkInterface. + * Gets a packet capture session by name. * * @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] - * Defines how a private IP address is assigned. Possible values are: 'Static' - * and 'Dynamic'. 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 are: 'IPv4' and 'IPv6'. 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 are: 'Static' and - * 'Dynamic'. 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 {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 allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] - * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. - * 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 {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 {string} networkWatcherName The name of the network watcher. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPPrefix] - * The Public IP Prefix this Public IP Address should be allocated from. + * @param {string} packetCaptureName The name of the packet capture session. * - * @param {number} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.idleTimeoutInMinutes] - * The idle timeout of the public IP address. + * @param {object} [options] Optional Parameters. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.resourceGuid] - * The resource GUID property of the public IP resource. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.provisioningState] - * The provisioning state of the PublicIP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.etag] - * A unique read-only string that changes whenever the resource is updated. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.zones] - * A list of availability zones denoting the IP allocated for the resource - * needs to come from. + * {Promise} A promise is returned. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.id] - * Resource ID. + * @resolve {PacketCaptureResult} - The deserialized result object. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.location] - * Resource location. + * @reject {Error|ServiceError} - The error object. * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.tags] - * Resource tags. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {object} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix] - * The reference of the Public IP Prefix resource. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix.id] - * Resource ID. + * {PacketCaptureResult} [result] - The deserialized result object if an error did not occur. + * See {@link PacketCaptureResult} for more information. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.provisioningState] - * Gets the provisioning state of the public IP resource. Possible values are: - * 'Updating', 'Deleting', and 'Failed'. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @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. + * {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} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.etag] - * A unique read-only string that changes whenever the resource is updated. + * @param {string} resourceGroupName The name of the resource group. * - * @param {array} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.zones] - * A list of availability zones denoting the IP allocated for the resource - * needs to come from. + * @param {string} networkWatcherName The name of the network watcher. * - * @param {string} - * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.id] - * Resource ID. + * @param {string} packetCaptureName The name of the packet capture session. * - * @param {number} - * [tapConfigurationParameters.virtualNetworkTap.destinationPort] The VXLAN - * destination port that will receive the tapped traffic. + * @param {object} [options] Optional Parameters. * - * @param {string} [tapConfigurationParameters.virtualNetworkTap.etag] Gets a - * unique read-only string that changes whenever the resource is updated. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [tapConfigurationParameters.virtualNetworkTap.id] Resource - * ID. + * @returns {Promise} A promise is returned * - * @param {string} [tapConfigurationParameters.virtualNetworkTap.location] - * Resource location. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {object} [tapConfigurationParameters.virtualNetworkTap.tags] Resource - * tags. + * @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} [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} resourceGroupName The name of the resource group. * - * @param {string} [tapConfigurationParameters.etag] A unique read-only string - * that changes whenever the resource is updated. + * @param {string} networkWatcherName The name of the network watcher. * - * @param {string} [tapConfigurationParameters.id] Resource ID. + * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} [options] Optional Parameters. * @@ -19617,7 +18233,7 @@ export interface NetworkInterfaceTapConfigurations { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceTapConfiguration} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -19625,24 +18241,25 @@ export interface NetworkInterfaceTapConfigurations { * * {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. + * {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. */ - 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; + 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; /** - * Get all Tap configurations in a network interface + * Stops a specified packet capture session. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -19651,17 +18268,20 @@ export interface NetworkInterfaceTapConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + stopWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get all Tap configurations in a network interface + * Stops a specified packet capture session. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -19675,7 +18295,7 @@ export interface NetworkInterfaceTapConfigurations { * * {Promise} A promise is returned. * - * @resolve {NetworkInterfaceTapConfigurationListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -19683,34 +18303,26 @@ export interface NetworkInterfaceTapConfigurations { * * {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. + * {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. */ - 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 { + 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; /** - * Deletes the specified network profile. + * Query the status of a running packet capture session. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkProfileName The name of the NetworkProfile. + * @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. * @@ -19719,18 +18331,21 @@ export interface NetworkProfiles { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkProfileName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getStatusWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified network profile. + * Query the status of a running packet capture session. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkProfileName The name of the NetworkProfile. + * @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. * @@ -19744,7 +18359,7 @@ export interface NetworkProfiles { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {PacketCaptureQueryStatusResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -19752,50 +18367,48 @@ export interface NetworkProfiles { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Gets the specified network profile in a specified resource group. + * Lists all packet capture sessions within the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkProfileName The name of the PublicIPPrefx. + * @param {string} networkWatcherName The name of the Network Watcher resource. * * @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. + * @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>; + listWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified network profile in a specified resource group. + * Lists all packet capture sessions within the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkProfileName The name of the PublicIPPrefx. + * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.expand] Expands referenced resources. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -19806,7 +18419,7 @@ export interface NetworkProfiles { * * {Promise} A promise is returned. * - * @resolve {NetworkProfile} - The deserialized result object. + * @resolve {PacketCaptureListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -19814,42 +18427,59 @@ export interface NetworkProfiles { * * {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. + * {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. */ - 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; + 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; /** - * Creates or updates a network profile. + * Create and start a packet capture on the specified VM. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkProfileName The name of the network profile. + * @param {string} networkWatcherName The name of the network watcher. * - * @param {object} parameters Parameters supplied to the create or update - * network profile operation. + * @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 {array} [parameters.containerNetworkInterfaces] List of child - * container network interfaces. + * @param {number} [parameters.bytesToCapturePerPacket] Number of bytes + * captured per packet, the remaining bytes are truncated. * - * @param {array} [parameters.containerNetworkInterfaceConfigurations] List of - * chid container network interface configurations. + * @param {number} [parameters.totalBytesPerSession] Maximum size of the + * capture output. * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @param {number} [parameters.timeLimitInSeconds] Maximum duration of the + * capture session in seconds. * - * @param {string} [parameters.id] Resource ID. + * @param {object} parameters.storageLocation * - * @param {string} [parameters.location] Resource location. + * @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 {object} [parameters.tags] Resource tags. + * @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] * * @param {object} [options] Optional Parameters. * @@ -19858,36 +18488,52 @@ export interface NetworkProfiles { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginCreateWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, parameters: models.PacketCapture, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a network profile. + * Create and start a packet capture on the specified VM. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkProfileName The name of the network profile. + * @param {string} networkWatcherName The name of the network watcher. * - * @param {object} parameters Parameters supplied to the create or update - * network profile operation. + * @param {string} packetCaptureName The name of the packet capture session. * - * @param {array} [parameters.containerNetworkInterfaces] List of child - * container network interfaces. + * @param {object} parameters Parameters that define the create packet capture + * operation. * - * @param {array} [parameters.containerNetworkInterfaceConfigurations] List of - * chid container network interface configurations. + * @param {string} parameters.target The ID of the targeted resource, only VM + * is currently supported. * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @param {number} [parameters.bytesToCapturePerPacket] Number of bytes + * captured per packet, the remaining bytes are truncated. * - * @param {string} [parameters.id] Resource ID. + * @param {number} [parameters.totalBytesPerSession] Maximum size of the + * capture output. * - * @param {string} [parameters.location] Resource location. + * @param {number} [parameters.timeLimitInSeconds] Maximum duration of the + * capture session in seconds. * - * @param {object} [parameters.tags] Resource tags. + * @param {object} parameters.storageLocation + * + * @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] * * @param {object} [options] Optional Parameters. * @@ -19901,7 +18547,7 @@ export interface NetworkProfiles { * * {Promise} A promise is returned. * - * @resolve {NetworkProfile} - The deserialized result object. + * @resolve {PacketCaptureResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -19909,29 +18555,26 @@ export interface NetworkProfiles { * * {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. + * {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. */ - 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; + 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; /** - * Updates network profile tags. + * Deletes the specified packet capture session. * * @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 {string} networkWatcherName The name of the network watcher. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} [options] Optional Parameters. * @@ -19940,23 +18583,20 @@ export interface NetworkProfiles { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates network profile tags. + * Deletes the specified packet capture session. * * @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 {string} networkWatcherName The name of the network watcher. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} [options] Optional Parameters. * @@ -19970,7 +18610,7 @@ export interface NetworkProfiles { * * {Promise} A promise is returned. * - * @resolve {NetworkProfile} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -19978,20 +18618,25 @@ export interface NetworkProfiles { * * {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. + * {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. */ - 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; + 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; /** - * Gets all the network profiles in a subscription. + * 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. * @@ -20000,14 +18645,20 @@ export interface NetworkProfiles { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginStopWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the network profiles in a subscription. + * 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. * @@ -20021,7 +18672,7 @@ export interface NetworkProfiles { * * {Promise} A promise is returned. * - * @resolve {NetworkProfileListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -20029,24 +18680,27 @@ export interface NetworkProfiles { * * {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. + * {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. */ - listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listAll(callback: ServiceCallback): void; - listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * Gets all network profiles in a resource group. + * 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 @@ -20054,17 +18708,22 @@ export interface NetworkProfiles { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginGetStatusWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network profiles in a resource group. + * 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 @@ -20077,7 +18736,7 @@ export interface NetworkProfiles { * * {Promise} A promise is returned. * - * @resolve {NetworkProfileListResult} - The deserialized result object. + * @resolve {PacketCaptureQueryStatusResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -20085,24 +18744,69 @@ export interface NetworkProfiles { * * {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 + * {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. */ - 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; + 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 { /** - * Gets all the network profiles in a subscription. + * Create or update a connection monitor. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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 + * + * @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 + * + * @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. * @@ -20111,17 +18815,53 @@ export interface NetworkProfiles { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, parameters: models.ConnectionMonitor, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the network profiles in a subscription. + * Create or update a connection monitor. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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 + * + * @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 + * + * @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. * @@ -20135,7 +18875,7 @@ export interface NetworkProfiles { * * {Promise} A promise is returned. * - * @resolve {NetworkProfileListResult} - The deserialized result object. + * @resolve {ConnectionMonitorResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -20143,24 +18883,28 @@ export interface NetworkProfiles { * * {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 + * {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. */ - 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; + 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 all network profiles in a resource group. + * Gets a connection monitor by name. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -20169,17 +18913,21 @@ export interface NetworkProfiles { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network profiles in a resource group. + * Gets a connection monitor by name. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -20193,7 +18941,7 @@ export interface NetworkProfiles { * * {Promise} A promise is returned. * - * @resolve {NetworkProfileListResult} - The deserialized result object. + * @resolve {ConnectionMonitorResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -20201,35 +18949,28 @@ export interface NetworkProfiles { * * {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 + * {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. */ - 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 { + 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 network security group. + * Deletes the specified connection monitor. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {string} networkSecurityGroupName The name of the network security - * group. + * @param {string} networkWatcherName The name of the Network Watcher resource. + * + * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * @@ -20242,15 +18983,17 @@ export interface NetworkSecurityGroups { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified network security group. + * Deletes the specified connection monitor. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {string} networkSecurityGroupName The name of the network security - * group. + * @param {string} networkWatcherName The name of the Network Watcher resource. + * + * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * @@ -20278,45 +19021,45 @@ export interface NetworkSecurityGroups { * * {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; + 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; /** - * Gets the specified network security group. + * Stops the specified connection monitor. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {string} networkSecurityGroupName The name of the network security - * group. + * @param {string} networkWatcherName The name of the Network Watcher resource. * - * @param {object} [options] Optional Parameters. + * @param {string} connectionMonitorName The name of the connection monitor. * - * @param {string} [options.expand] Expands referenced resources. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + stopWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified network security group. + * Stops the specified connection monitor. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {string} networkSecurityGroupName The name of the network security - * group. + * @param {string} networkWatcherName The name of the Network Watcher resource. * - * @param {object} [options] Optional Parameters. + * @param {string} connectionMonitorName The name of the connection monitor. * - * @param {string} [options.expand] Expands referenced resources. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -20328,7 +19071,7 @@ export interface NetworkSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {NetworkSecurityGroup} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -20336,50 +19079,26 @@ export interface NetworkSecurityGroups { * * {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. + * {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. */ - 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; + 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; /** - * 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. + * Starts the specified connection monitor. * - * @param {string} [parameters.id] Resource ID. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {string} [parameters.location] Resource location. + * @param {string} networkWatcherName The name of the Network Watcher resource. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * @@ -20388,44 +19107,21 @@ export interface NetworkSecurityGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + startWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, 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. + * Starts the specified connection monitor. * - * @param {string} [parameters.id] Resource ID. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {string} [parameters.location] Resource location. + * @param {string} networkWatcherName The name of the Network Watcher resource. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * @@ -20439,7 +19135,7 @@ export interface NetworkSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {NetworkSecurityGroup} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -20447,30 +19143,27 @@ export interface NetworkSecurityGroups { * * {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. + * {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. */ - 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; + 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; /** - * Updates a network security group tags. - * - * @param {string} resourceGroupName The name of the resource group. + * Query a snapshot of the most recent connection states. * - * @param {string} networkSecurityGroupName The name of the network security - * group. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {object} parameters Parameters supplied to update network security - * group tags. + * @param {string} networkWatcherName The name of the Network Watcher resource. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} connectionMonitorName The name given to the connection + * monitor. * * @param {object} [options] Optional Parameters. * @@ -20479,24 +19172,22 @@ export interface NetworkSecurityGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + queryWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates a network security group tags. - * - * @param {string} resourceGroupName The name of the resource group. + * Query a snapshot of the most recent connection states. * - * @param {string} networkSecurityGroupName The name of the network security - * group. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {object} parameters Parameters supplied to update network security - * group tags. + * @param {string} networkWatcherName The name of the Network Watcher resource. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} connectionMonitorName The name given to the connection + * monitor. * * @param {object} [options] Optional Parameters. * @@ -20510,7 +19201,7 @@ export interface NetworkSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {NetworkSecurityGroup} - The deserialized result object. + * @resolve {ConnectionMonitorQueryResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -20518,20 +19209,26 @@ export interface NetworkSecurityGroups { * * {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. + * {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. */ - 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; + 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; /** - * Gets all network security groups in a subscription. + * 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. * @@ -20540,14 +19237,19 @@ export interface NetworkSecurityGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network security groups in a subscription. + * 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. * @@ -20561,7 +19263,7 @@ export interface NetworkSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {NetworkSecurityGroupListResult} - The deserialized result object. + * @resolve {ConnectionMonitorListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -20569,23 +19271,60 @@ export interface NetworkSecurityGroups { * * {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 + * {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. */ - listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listAll(callback: ServiceCallback): void; - listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * Gets all network security groups in a resource group. + * Create or update a connection monitor. * - * @param {string} resourceGroupName The name of the resource group. + * @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 + * + * @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 + * + * @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. * @@ -20594,16 +19333,53 @@ export interface NetworkSecurityGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, parameters: models.ConnectionMonitor, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network security groups in a resource group. + * Create or update a connection monitor. * - * @param {string} resourceGroupName The name of the resource group. + * @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 + * + * @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 + * + * @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. * @@ -20617,7 +19393,7 @@ export interface NetworkSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {NetworkSecurityGroupListResult} - The deserialized result object. + * @resolve {ConnectionMonitorResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -20625,26 +19401,28 @@ export interface NetworkSecurityGroups { * * {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 + * {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. */ - 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; + 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 network security group. + * Deletes the specified connection monitor. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {string} networkSecurityGroupName The name of the network security - * group. + * @param {string} networkWatcherName The name of the Network Watcher resource. + * + * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * @@ -20657,15 +19435,17 @@ export interface NetworkSecurityGroups { * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified network security group. + * Deletes the specified connection monitor. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {string} networkSecurityGroupName The name of the network security - * group. + * @param {string} networkWatcherName The name of the Network Watcher resource. + * + * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * @@ -20693,89 +19473,107 @@ export interface NetworkSecurityGroups { * * {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; + 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; /** - * Creates or updates a network security group in the specified resource group. + * Stops the specified connection monitor. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {string} networkSecurityGroupName The name of the network security - * group. + * @param {string} networkWatcherName The name of the Network Watcher resource. * - * @param {object} parameters Parameters supplied to the create or update - * network security group operation. + * @param {string} connectionMonitorName The name of the connection monitor. * - * @param {array} [parameters.securityRules] A collection of security rules of - * the network security group. + * @param {object} [options] Optional Parameters. * - * @param {array} [parameters.defaultSecurityRules] The default security rules - * of network security group. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * network security group resource. + * @returns {Promise} A promise is returned * - * @param {string} [parameters.provisioningState] The provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @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} [parameters.id] Resource ID. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {string} [parameters.location] Resource location. + * @param {string} networkWatcherName The name of the Network Watcher resource. * - * @param {object} [parameters.tags] Resource tags. + * @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 + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @reject {Error|ServiceError} - The error object. + * {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. */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.NetworkSecurityGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + 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; + /** - * Creates or updates a network security group in the specified resource group. + * Starts the specified connection monitor. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {string} networkSecurityGroupName The name of the network security - * group. + * @param {string} networkWatcherName The name of the Network Watcher resource. * - * @param {object} parameters Parameters supplied to the create or update - * network security group operation. + * @param {string} connectionMonitorName The name of the connection monitor. * - * @param {array} [parameters.securityRules] A collection of security rules of - * the network security group. + * @param {object} [options] Optional Parameters. * - * @param {array} [parameters.defaultSecurityRules] The default security rules - * of network security group. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * network security group resource. + * @returns {Promise} A promise is returned * - * @param {string} [parameters.provisioningState] The provisioning state of the - * public IP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @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} [parameters.id] Resource ID. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {string} [parameters.location] Resource location. + * @param {string} networkWatcherName The name of the Network Watcher resource. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * @@ -20789,7 +19587,7 @@ export interface NetworkSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {NetworkSecurityGroup} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -20797,30 +19595,27 @@ export interface NetworkSecurityGroups { * * {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. + * {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. */ - 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; + 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; /** - * Updates a network security group tags. - * - * @param {string} resourceGroupName The name of the resource group. + * Query a snapshot of the most recent connection states. * - * @param {string} networkSecurityGroupName The name of the network security - * group. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {object} parameters Parameters supplied to update network security - * group tags. + * @param {string} networkWatcherName The name of the Network Watcher resource. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} connectionMonitorName The name given to the connection + * monitor. * * @param {object} [options] Optional Parameters. * @@ -20829,24 +19624,22 @@ export interface NetworkSecurityGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginQueryWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates a network security group tags. - * - * @param {string} resourceGroupName The name of the resource group. + * Query a snapshot of the most recent connection states. * - * @param {string} networkSecurityGroupName The name of the network security - * group. + * @param {string} resourceGroupName The name of the resource group containing + * Network Watcher. * - * @param {object} parameters Parameters supplied to update network security - * group tags. + * @param {string} networkWatcherName The name of the Network Watcher resource. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} connectionMonitorName The name given to the connection + * monitor. * * @param {object} [options] Optional Parameters. * @@ -20860,7 +19653,7 @@ export interface NetworkSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {NetworkSecurityGroup} - The deserialized result object. + * @resolve {ConnectionMonitorQueryResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -20868,23 +19661,30 @@ export interface NetworkSecurityGroups { * * {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. + * {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. */ - 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; + 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 { /** - * Gets all network security groups in a subscription. - * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * Lists all of the available Network Rest API operations. * * @param {object} [options] Optional Parameters. * @@ -20893,17 +19693,14 @@ export interface NetworkSecurityGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(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. + * Lists all of the available Network Rest API operations. * * @param {object} [options] Optional Parameters. * @@ -20917,7 +19714,7 @@ export interface NetworkSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {NetworkSecurityGroupListResult} - The deserialized result object. + * @resolve {OperationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -20925,21 +19722,20 @@ export interface NetworkSecurityGroups { * * {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. + * {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. */ - 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; + list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(callback: ServiceCallback): void; + list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets all network security groups in a resource group. + * Lists all of the available Network Rest API operations. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -20951,14 +19747,14 @@ export interface NetworkSecurityGroups { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network security groups in a resource group. + * Lists all of the available Network Rest API operations. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -20975,7 +19771,7 @@ export interface NetworkSecurityGroups { * * {Promise} A promise is returned. * - * @resolve {NetworkSecurityGroupListResult} - The deserialized result object. + * @resolve {OperationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -20983,37 +19779,33 @@ export interface NetworkSecurityGroups { * * {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. + * {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; + 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 + * PublicIPAddresses * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ -export interface SecurityRules { +export interface PublicIPAddresses { /** - * Deletes the specified network security rule. + * Deletes the specified public IP address. * * @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 {string} publicIpAddressName The name of the subnet. * * @param {object} [options] Optional Parameters. * @@ -21026,17 +19818,14 @@ export interface SecurityRules { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, publicIpAddressName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified network security rule. + * Deletes the specified public IP address. * * @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 {string} publicIpAddressName The name of the subnet. * * @param {object} [options] Optional Parameters. * @@ -21064,46 +19853,44 @@ export interface SecurityRules { * * {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; + 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; /** - * Get the specified network security rule. + * Gets the specified public IP address in a specified resource 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 {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. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, publicIpAddressName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get the specified network security rule. + * Gets the specified public IP address in a specified resource 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 {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 * @@ -21114,7 +19901,7 @@ export interface SecurityRules { * * {Promise} A promise is returned. * - * @resolve {SecurityRule} - The deserialized result object. + * @resolve {PublicIPAddress} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -21122,101 +19909,87 @@ export interface SecurityRules { * * {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. + * {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, 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; + 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 security rule in the specified network security group. + * Creates or updates a static or dynamic public IP address. * * @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} publicIpAddressName The name of the public IP address. * - * @param {string} [securityRuleParameters.description] A description for this - * rule. Restricted to 140 chars. + * @param {object} parameters Parameters supplied to the create or update + * public IP address operation. * - * @param {string} securityRuleParameters.protocol Network protocol this rule - * applies to. Possible values are 'Tcp', 'Udp', and '*'. Possible values - * include: 'Tcp', 'Udp', '*' + * @param {object} [parameters.sku] The public IP address SKU. * - * @param {string} [securityRuleParameters.sourcePortRange] The source port or - * range. Integer or range between 0 and 65535. Asterix '*' can also be used to - * match all ports. + * @param {string} [parameters.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' * - * @param {string} [securityRuleParameters.destinationPortRange] The - * destination port or range. Integer or range between 0 and 65535. Asterix '*' - * can also be used to match all ports. + * @param {string} [parameters.publicIPAllocationMethod] The public IP + * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible + * values include: 'Static', 'Dynamic' * - * @param {string} [securityRuleParameters.sourceAddressPrefix] The CIDR or - * source IP range. Asterix '*' 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 {string} [parameters.publicIPAddressVersion] The public IP address + * version. Possible values are: 'IPv4' and 'IPv6'. Possible values include: + * 'IPv4', 'IPv6' * - * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or - * source IP ranges. + * @param {object} [parameters.dnsSettings] The FQDN of the DNS record + * associated with the public IP address. * - * @param {array} [securityRuleParameters.sourceApplicationSecurityGroups] The - * application security group specified as source. + * @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} [securityRuleParameters.destinationAddressPrefix] The - * destination address prefix. CIDR or destination IP range. Asterix '*' can - * also be used to match all source IPs. Default tags such as 'VirtualNetwork', - * 'AzureLoadBalancer' and 'Internet' can also be used. + * @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 {array} [securityRuleParameters.destinationAddressPrefixes] The - * destination address prefixes. CIDR or destination IP ranges. + * @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 {array} [securityRuleParameters.destinationApplicationSecurityGroups] - * The application security group specified as destination. + * @param {array} [parameters.ipTags] The list of tags associated with the + * public IP address. * - * @param {array} [securityRuleParameters.sourcePortRanges] The source port - * ranges. + * @param {string} [parameters.ipAddress] The IP address associated with the + * public IP address resource. * - * @param {array} [securityRuleParameters.destinationPortRanges] The - * destination port ranges. + * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the + * public IP address. * - * @param {string} securityRuleParameters.access The network traffic is allowed - * or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: - * 'Allow', 'Deny' + * @param {string} [parameters.resourceGuid] The resource GUID property of the + * public IP resource. * - * @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} [parameters.provisioningState] The provisioning state of the + * PublicIP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. * - * @param {string} securityRuleParameters.direction The direction of the rule. - * The direction specifies if rule will be evaluated on incoming or outcoming - * traffic. Possible values are: 'Inbound' and 'Outbound'. Possible values - * include: 'Inbound', 'Outbound' + * @param {string} [parameters.etag] A unique read-only string that changes + * whenever the resource is updated. * - * @param {string} [securityRuleParameters.provisioningState] The provisioning - * state of the public IP resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. + * @param {array} [parameters.zones] A list of availability zones denoting the + * IP allocated for the resource needs to come from. * - * @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} [parameters.id] Resource ID. * - * @param {string} [securityRuleParameters.etag] A unique read-only string that - * changes whenever the resource is updated. + * @param {string} [parameters.location] Resource location. * - * @param {string} [securityRuleParameters.id] Resource ID. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -21225,95 +19998,81 @@ export interface SecurityRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, publicIpAddressName: string, parameters: models.PublicIPAddress, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a security rule in the specified network security group. + * Creates or updates a static or dynamic public IP address. * * @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} publicIpAddressName The name of the public IP address. * - * @param {string} [securityRuleParameters.description] A description for this - * rule. Restricted to 140 chars. + * @param {object} parameters Parameters supplied to the create or update + * public IP address operation. * - * @param {string} securityRuleParameters.protocol Network protocol this rule - * applies to. Possible values are 'Tcp', 'Udp', and '*'. Possible values - * include: 'Tcp', 'Udp', '*' + * @param {object} [parameters.sku] The public IP address SKU. * - * @param {string} [securityRuleParameters.sourcePortRange] The source port or - * range. Integer or range between 0 and 65535. Asterix '*' can also be used to - * match all ports. + * @param {string} [parameters.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' * - * @param {string} [securityRuleParameters.destinationPortRange] The - * destination port or range. Integer or range between 0 and 65535. Asterix '*' - * can also be used to match all ports. + * @param {string} [parameters.publicIPAllocationMethod] The public IP + * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible + * values include: 'Static', 'Dynamic' * - * @param {string} [securityRuleParameters.sourceAddressPrefix] The CIDR or - * source IP range. Asterix '*' 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 {string} [parameters.publicIPAddressVersion] The public IP address + * version. Possible values are: 'IPv4' and 'IPv6'. Possible values include: + * 'IPv4', 'IPv6' * - * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or - * source IP ranges. + * @param {object} [parameters.dnsSettings] The FQDN of the DNS record + * associated with the public IP address. * - * @param {array} [securityRuleParameters.sourceApplicationSecurityGroups] The - * application security group specified as source. + * @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} [securityRuleParameters.destinationAddressPrefix] The - * destination address prefix. CIDR or destination IP range. Asterix '*' can - * also be used to match all source IPs. Default tags such as 'VirtualNetwork', - * 'AzureLoadBalancer' and 'Internet' can also be used. + * @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 {array} [securityRuleParameters.destinationAddressPrefixes] The - * destination address prefixes. CIDR or destination IP ranges. + * @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 {array} [securityRuleParameters.destinationApplicationSecurityGroups] - * The application security group specified as destination. + * @param {array} [parameters.ipTags] The list of tags associated with the + * public IP address. * - * @param {array} [securityRuleParameters.sourcePortRanges] The source port - * ranges. + * @param {string} [parameters.ipAddress] The IP address associated with the + * public IP address resource. * - * @param {array} [securityRuleParameters.destinationPortRanges] The - * destination port ranges. + * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the + * public IP address. * - * @param {string} securityRuleParameters.access The network traffic is allowed - * or denied. Possible values are: 'Allow' and 'Deny'. Possible values include: - * 'Allow', 'Deny' + * @param {string} [parameters.resourceGuid] The resource GUID property of the + * public IP resource. * - * @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} [parameters.provisioningState] The provisioning state of the + * PublicIP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. * - * @param {string} securityRuleParameters.direction The direction of the rule. - * The direction specifies if rule will be evaluated on incoming or outcoming - * traffic. Possible values are: 'Inbound' and 'Outbound'. Possible values - * include: 'Inbound', 'Outbound' + * @param {string} [parameters.etag] A unique read-only string that changes + * whenever the resource is updated. * - * @param {string} [securityRuleParameters.provisioningState] The provisioning - * state of the public IP resource. Possible values are: 'Updating', - * 'Deleting', and 'Failed'. + * @param {array} [parameters.zones] A list of availability zones denoting the + * IP allocated for the resource needs to come from. * - * @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} [parameters.id] Resource ID. * - * @param {string} [securityRuleParameters.etag] A unique read-only string that - * changes whenever the resource is updated. + * @param {string} [parameters.location] Resource location. * - * @param {string} [securityRuleParameters.id] Resource ID. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -21327,7 +20086,7 @@ export interface SecurityRules { * * {Promise} A promise is returned. * - * @resolve {SecurityRule} - The deserialized result object. + * @resolve {PublicIPAddress} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -21335,25 +20094,29 @@ export interface SecurityRules { * * {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. + * {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, 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; - - + 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; + + /** - * Gets all security rules in a network security group. + * Updates public IP address tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkSecurityGroupName The name of the network security - * 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. * @@ -21362,19 +20125,23 @@ export interface SecurityRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateTagsWithHttpOperationResponse(resourceGroupName: string, publicIpAddressName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all security rules in a network security group. + * Updates public IP address tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkSecurityGroupName The name of the network security - * 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. * @@ -21388,7 +20155,7 @@ export interface SecurityRules { * * {Promise} A promise is returned. * - * @resolve {SecurityRuleListResult} - The deserialized result object. + * @resolve {PublicIPAddress} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -21396,28 +20163,20 @@ export interface SecurityRules { * * {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. + * {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. */ - 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; + 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; /** - * 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. + * Gets all the public IP addresses in a subscription. * * @param {object} [options] Optional Parameters. * @@ -21426,21 +20185,14 @@ export interface SecurityRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listAllWithHttpOperationResponse(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. + * Gets all the public IP addresses in a subscription. * * @param {object} [options] Optional Parameters. * @@ -21454,7 +20206,7 @@ export interface SecurityRules { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -21462,101 +20214,24 @@ export interface SecurityRules { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAll(callback: ServiceCallback): void; + listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates or updates a security rule in the specified network security group. + * Gets all public IP addresses in a resource 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', and '*'. Possible values - * include: 'Tcp', 'Udp', '*' - * - * @param {string} [securityRuleParameters.sourcePortRange] The source port or - * range. Integer or range between 0 and 65535. Asterix '*' can also be used to - * match all ports. - * - * @param {string} [securityRuleParameters.destinationPortRange] The - * destination port or range. Integer or range between 0 and 65535. Asterix '*' - * can also be used to match all ports. - * - * @param {string} [securityRuleParameters.sourceAddressPrefix] The CIDR or - * source IP range. Asterix '*' 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. Asterix '*' 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 are: 'Allow' and 'Deny'. 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 outcoming - * traffic. Possible values are: 'Inbound' and 'Outbound'. 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 @@ -21564,96 +20239,17 @@ export interface SecurityRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a security rule in the specified network security group. + * Gets all public IP addresses in a resource 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', and '*'. Possible values - * include: 'Tcp', 'Udp', '*' - * - * @param {string} [securityRuleParameters.sourcePortRange] The source port or - * range. Integer or range between 0 and 65535. Asterix '*' can also be used to - * match all ports. - * - * @param {string} [securityRuleParameters.destinationPortRange] The - * destination port or range. Integer or range between 0 and 65535. Asterix '*' - * can also be used to match all ports. - * - * @param {string} [securityRuleParameters.sourceAddressPrefix] The CIDR or - * source IP range. Asterix '*' 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. Asterix '*' 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 are: 'Allow' and 'Deny'. 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 outcoming - * traffic. Possible values are: 'Inbound' and 'Outbound'. 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 @@ -21666,7 +20262,7 @@ export interface SecurityRules { * * {Promise} A promise is returned. * - * @resolve {SecurityRule} - The deserialized result object. + * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -21674,23 +20270,27 @@ export interface SecurityRules { * * {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. + * {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. */ - 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; + 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 security rules in a network security group. + * 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 {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualMachineScaleSetName The name of the virtual machine + * scale set. * * @param {object} [options] Optional Parameters. * @@ -21699,17 +20299,20 @@ export interface SecurityRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listVirtualMachineScaleSetPublicIPAddressesWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all security rules in a network security group. + * 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 {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualMachineScaleSetName The name of the virtual machine + * scale set. * * @param {object} [options] Optional Parameters. * @@ -21723,7 +20326,7 @@ export interface SecurityRules { * * {Promise} A promise is returned. * - * @resolve {SecurityRuleListResult} - The deserialized result object. + * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -21731,35 +20334,33 @@ export interface SecurityRules { * * {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 + * {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; -} - -/** - * @class - * DefaultSecurityRules - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - */ -export interface DefaultSecurityRules { + 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 all default security rules in a network security group. + * 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} networkSecurityGroupName The name of the network security - * 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. * @@ -21768,19 +20369,26 @@ export interface DefaultSecurityRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listVirtualMachineScaleSetVMPublicIPAddressesWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all default security rules in a network security group. + * 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} networkSecurityGroupName The name of the network security - * 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. * @@ -21794,7 +20402,7 @@ export interface DefaultSecurityRules { * * {Promise} A promise is returned. * - * @resolve {SecurityRuleListResult} - The deserialized result object. + * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -21802,56 +20410,70 @@ export interface DefaultSecurityRules { * * {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 + * {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, 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; + 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 default network security rule. + * Get the specified public IP address in a virtual machine scale set. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkSecurityGroupName The name of the network security - * group. + * @param {string} virtualMachineScaleSetName The name of the virtual machine + * scale set. * - * @param {string} defaultSecurityRuleName The name of the default security - * rule. + * @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. + * @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>; + getVirtualMachineScaleSetPublicIPAddressWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, publicIpAddressName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get the specified default network security rule. + * Get the specified public IP address in a virtual machine scale set. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkSecurityGroupName The name of the network security - * group. + * @param {string} virtualMachineScaleSetName The name of the virtual machine + * scale set. * - * @param {string} defaultSecurityRuleName The name of the default security - * rule. + * @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 * @@ -21862,7 +20484,7 @@ export interface DefaultSecurityRules { * * {Promise} A promise is returned. * - * @resolve {SecurityRule} - The deserialized result object. + * @resolve {PublicIPAddress} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -21870,23 +20492,24 @@ export interface DefaultSecurityRules { * * {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. + * {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, 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; + 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; /** - * Gets all default security rules in a network security group. + * Deletes the specified public IP address. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} publicIpAddressName The name of the subnet. * * @param {object} [options] Optional Parameters. * @@ -21895,17 +20518,18 @@ export interface DefaultSecurityRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, publicIpAddressName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all default security rules in a network security group. + * Deletes the specified public IP address. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} publicIpAddressName The name of the subnet. * * @param {object} [options] Optional Parameters. * @@ -21919,7 +20543,7 @@ export interface DefaultSecurityRules { * * {Promise} A promise is returned. * - * @resolve {SecurityRuleListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -21927,73 +20551,81 @@ export interface DefaultSecurityRules { * * {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. + * {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. */ - 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 { + 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 network watcher in the specified resource group. + * Creates or updates a static or dynamic public IP address. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} publicIpAddressName The name of the public IP address. * - * @param {object} parameters Parameters that define the network watcher - * resource. + * @param {object} parameters Parameters supplied to the create or update + * public IP address operation. * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @param {object} [parameters.sku] The public IP address SKU. * - * @param {string} [parameters.id] Resource ID. + * @param {string} [parameters.sku.name] Name of a public IP address SKU. + * Possible values include: 'Basic', 'Standard' * - * @param {string} [parameters.location] Resource location. + * @param {string} [parameters.publicIPAllocationMethod] The public IP + * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible + * values include: 'Static', 'Dynamic' * - * @param {object} [parameters.tags] Resource tags. + * @param {string} [parameters.publicIPAddressVersion] The public IP address + * version. Possible values are: 'IPv4' and 'IPv6'. Possible values include: + * 'IPv4', 'IPv6' * - * @param {object} [options] Optional Parameters. + * @param {object} [parameters.dnsSettings] The FQDN of the DNS record + * associated with the public IP address. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @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. * - * @returns {Promise} A promise is returned + * @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. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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. * - * @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 {array} [parameters.ipTags] The list of tags associated with the + * public IP address. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} [parameters.ipAddress] The IP address associated with the + * public IP address resource. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the + * public IP address. * - * @param {object} parameters Parameters that define the network watcher - * resource. + * @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. @@ -22005,39 +20637,127 @@ export interface NetworkWatchers { * @param {object} [options.customHeaders] Headers that will be added to the * request * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @returns {Promise} A promise is returned * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * {Promise} A promise is returned. + * @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. * - * @resolve {NetworkWatcher} - The deserialized result object. + * @param {string} resourceGroupName The name of the resource group. * - * @reject {Error|ServiceError} - The error object. + * @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 + * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible + * values include: 'Static', 'Dynamic' + * + * @param {string} [parameters.publicIPAddressVersion] The public IP address + * version. Possible values are: 'IPv4' and 'IPv6'. 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 {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 {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. * - * {NetworkWatcher} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkWatcher} for more information. + * {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, 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; + 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; /** - * Gets the specified network watcher by resource group. + * Updates public IP address tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @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. * @@ -22046,18 +20766,23 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, publicIpAddressName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified network watcher by resource group. + * Updates public IP address tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @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. * @@ -22071,7 +20796,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {NetworkWatcher} - The deserialized result object. + * @resolve {PublicIPAddress} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -22079,24 +20804,23 @@ export interface NetworkWatchers { * * {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. + * {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, 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; + 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; /** - * Deletes the specified network watcher resource. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all the public IP addresses in a subscription. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -22105,18 +20829,17 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified network watcher resource. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all the public IP addresses in a subscription. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -22130,7 +20853,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -22138,28 +20861,24 @@ export interface NetworkWatchers { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * 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. + * Gets all public IP addresses in a resource group. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -22168,23 +20887,17 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listNextWithHttpOperationResponse(nextPageLink: string, 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. + * Gets all public IP addresses in a resource group. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -22198,7 +20911,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {NetworkWatcher} - The deserialized result object. + * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -22206,22 +20919,25 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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 network watchers by resource group. + * 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} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -22230,16 +20946,18 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listVirtualMachineScaleSetPublicIPAddressesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network watchers by resource group. + * 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} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -22253,7 +20971,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {NetworkWatcherListResult} - The deserialized result object. + * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -22261,21 +20979,25 @@ export interface NetworkWatchers { * * {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 + * {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; + 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 all network watchers by subscription. + * 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. * @@ -22284,14 +21006,18 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listVirtualMachineScaleSetVMPublicIPAddressesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all network watchers by subscription. + * 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. * @@ -22305,7 +21031,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {NetworkWatcherListResult} - The deserialized result object. + * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -22313,39 +21039,34 @@ export interface NetworkWatchers { * * {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 + * {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; + 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 + * RouteFilters + * __NOTE__: An instance of this class is automatically created for an + * instance of the NetworkManagementClient. + */ +export interface RouteFilters { /** - * Gets the current network topology by resource group. + * Deletes the specified route filter. * * @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 {string} routeFilterName The name of the route filter. * * @param {object} [options] Optional Parameters. * @@ -22354,32 +21075,18 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the current network topology by resource group. + * Deletes the specified route filter. * * @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 {string} routeFilterName The name of the route filter. * * @param {object} [options] Optional Parameters. * @@ -22393,7 +21100,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {Topology} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -22401,109 +21108,52 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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; /** - * Verify IP flow from the specified VM to a location given the currently - * configured NSG rules. + * Gets the specified route filter. * * @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 {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. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Verify IP flow from the specified VM to a location given the currently - * configured NSG rules. + * Gets the specified route filter. * * @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 {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 * @@ -22514,7 +21164,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {VerificationIPFlowResult} - The deserialized result object. + * @resolve {RouteFilter} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -22522,39 +21172,39 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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; /** - * Gets the next hop from the specified VM. + * Creates or updates a route filter in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeFilterName The name of the route filter. * - * @param {object} parameters Parameters that define the source and destination - * endpoint. + * @param {object} routeFilterParameters Parameters supplied to the create or + * update route filter operation. * - * @param {string} parameters.targetResourceId The resource identifier of the - * target resource against which the action is to be performed. + * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules + * contained within a route filter. * - * @param {string} parameters.sourceIPAddress The source IP address. + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. * - * @param {string} parameters.destinationIPAddress The destination IP address. + * @param {string} [routeFilterParameters.id] Resource ID. * - * @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 {string} [routeFilterParameters.location] Resource location. + * + * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -22563,32 +21213,33 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.RouteFilter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the next hop from the specified VM. + * Creates or updates a route filter in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeFilterName The name of the route filter. * - * @param {object} parameters Parameters that define the source and destination - * endpoint. + * @param {object} routeFilterParameters Parameters supplied to the create or + * update route filter operation. * - * @param {string} parameters.targetResourceId The resource identifier of the - * target resource against which the action is to be performed. + * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules + * contained within a route filter. * - * @param {string} parameters.sourceIPAddress The source IP address. + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. * - * @param {string} parameters.destinationIPAddress The destination IP address. + * @param {string} [routeFilterParameters.id] Resource ID. * - * @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 {string} [routeFilterParameters.location] Resource location. + * + * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -22602,7 +21253,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {NextHopResult} - The deserialized result object. + * @resolve {RouteFilter} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -22610,29 +21261,37 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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; /** - * Gets the configured and effective security group rules on the specified VM. + * Updates a route filter in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeFilterName The name of the route filter. * - * @param {object} parameters Parameters that define the VM to check security - * groups for. + * @param {object} routeFilterParameters Parameters supplied to the update + * route filter operation. * - * @param {string} parameters.targetResourceId ID of the target VM. + * @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. * @@ -22641,23 +21300,31 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + updateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.PatchRouteFilter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the configured and effective security group rules on the specified VM. + * Updates a route filter in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeFilterName The name of the route filter. * - * @param {object} parameters Parameters that define the VM to check security - * groups for. + * @param {object} routeFilterParameters Parameters supplied to the update + * route filter operation. * - * @param {string} parameters.targetResourceId ID of the target VM. + * @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. * @@ -22671,7 +21338,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {SecurityGroupViewResult} - The deserialized result object. + * @resolve {RouteFilter} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -22679,38 +21346,23 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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; /** - * Initiate troubleshooting on a specified resource + * Gets all route filters in a resource group. * * @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 @@ -22718,31 +21370,17 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Initiate troubleshooting on a specified resource + * Gets all route filters in a resource group. * * @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 @@ -22755,7 +21393,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {TroubleshootingResult} - The deserialized result object. + * @resolve {RouteFilterListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -22763,30 +21401,20 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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; /** - * 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. + * Gets all route filters in a subscription. * * @param {object} [options] Optional Parameters. * @@ -22795,24 +21423,14 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listWithHttpOperationResponse(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. + * Gets all route filters in a subscription. * * @param {object} [options] Optional Parameters. * @@ -22826,7 +21444,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {TroubleshootingResult} - The deserialized result object. + * @resolve {RouteFilterListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -22834,79 +21452,24 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(callback: ServiceCallback): void; + list(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] - * - * @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] - * - * @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] - * - * @param {object} - * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration - * - * @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 + * Deletes the specified route filter. * - * @param {string} - * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId - * Resource Id of the attached workspace + * @param {string} resourceGroupName The name of the resource group. * - * @param {number} - * [parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval] - * The interval in minutes which would decide how frequently TA service should - * do flow analytics + * @param {string} routeFilterName The name of the route filter. * * @param {object} [options] Optional Parameters. * @@ -22915,73 +21478,18 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, 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] - * - * @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] - * - * @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] - * - * @param {object} - * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration - * - * @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 + * Deletes the specified route filter. * - * @param {string} - * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId - * Resource Id of the attached workspace + * @param {string} resourceGroupName The name of the resource group. * - * @param {number} - * [parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval] - * The interval in minutes which would decide how frequently TA service should - * do flow analytics + * @param {string} routeFilterName The name of the route filter. * * @param {object} [options] Optional Parameters. * @@ -22995,7 +21503,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {FlowLogInformation} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -23003,32 +21511,38 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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; /** - * Queries status of flow log and traffic analytics (optional) on a specified - * resource. + * Creates or updates a route filter in a specified resource group. * - * @param {string} resourceGroupName The name of the network watcher resource - * group. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher resource. + * @param {string} routeFilterName The name of the route filter. * - * @param {object} parameters Parameters that define a resource to query flow - * log and traffic analytics (optional) status. + * @param {object} routeFilterParameters Parameters supplied to the create or + * update route filter operation. * - * @param {string} parameters.targetResourceId The target resource where - * getting the flow log and traffic analytics (optional) status. + * @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. * @@ -23037,26 +21551,33 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.RouteFilter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Queries status of flow log and traffic analytics (optional) on a specified - * resource. + * Creates or updates a route filter in a specified resource group. * - * @param {string} resourceGroupName The name of the network watcher resource - * group. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher resource. + * @param {string} routeFilterName The name of the route filter. * - * @param {object} parameters Parameters that define a resource to query flow - * log and traffic analytics (optional) status. + * @param {object} routeFilterParameters Parameters supplied to the create or + * update route filter operation. * - * @param {string} parameters.targetResourceId The target resource where - * getting the flow log and traffic analytics (optional) status. + * @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. * @@ -23070,7 +21591,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {FlowLogInformation} - The deserialized result object. + * @resolve {RouteFilter} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -23078,66 +21599,37 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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; /** - * 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 - * - * @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 - * - * @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. + * Updates a route filter in a specified resource group. * - * @param {number} [parameters.destination.port] Port on which check - * connectivity will be performed. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [parameters.protocol] Network protocol. Possible values - * include: 'Tcp', 'Http', 'Https', 'Icmp' + * @param {string} routeFilterName The name of the route filter. * - * @param {object} [parameters.protocolConfiguration] + * @param {object} routeFilterParameters Parameters supplied to the update + * route filter operation. * - * @param {object} [parameters.protocolConfiguration.hTTPConfiguration] + * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules + * contained within a route filter. * - * @param {string} [parameters.protocolConfiguration.hTTPConfiguration.method] - * HTTP method. Possible values include: 'Get' + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. * - * @param {array} [parameters.protocolConfiguration.hTTPConfiguration.headers] - * List of HTTP headers. + * @param {object} [routeFilterParameters.tags] Resource tags. * - * @param {array} - * [parameters.protocolConfiguration.hTTPConfiguration.validStatusCodes] Valid - * status codes. + * @param {string} [routeFilterParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -23146,60 +21638,31 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginUpdateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.PatchRouteFilter, 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 - * - * @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 - * - * @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. + * Updates a route filter in a specified resource group. * - * @param {number} [parameters.destination.port] Port on which check - * connectivity will be performed. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [parameters.protocol] Network protocol. Possible values - * include: 'Tcp', 'Http', 'Https', 'Icmp' + * @param {string} routeFilterName The name of the route filter. * - * @param {object} [parameters.protocolConfiguration] + * @param {object} routeFilterParameters Parameters supplied to the update + * route filter operation. * - * @param {object} [parameters.protocolConfiguration.hTTPConfiguration] + * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules + * contained within a route filter. * - * @param {string} [parameters.protocolConfiguration.hTTPConfiguration.method] - * HTTP method. Possible values include: 'Get' + * @param {array} [routeFilterParameters.peerings] A collection of references + * to express route circuit peerings. * - * @param {array} [parameters.protocolConfiguration.hTTPConfiguration.headers] - * List of HTTP headers. + * @param {object} [routeFilterParameters.tags] Resource tags. * - * @param {array} - * [parameters.protocolConfiguration.hTTPConfiguration.validStatusCodes] Valid - * status codes. + * @param {string} [routeFilterParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -23213,7 +21676,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {ConnectivityInformation} - The deserialized result object. + * @resolve {RouteFilter} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -23221,50 +21684,23 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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 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 - * - * @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. + * Gets all route filters in a resource group. * - * @param {date} parameters.endTime The end time for the Azure reachability - * report. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -23273,43 +21709,17 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, 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 - * - * @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. + * Gets all route filters in a resource group. * - * @param {date} parameters.endTime The end time for the Azure reachability - * report. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -23323,7 +21733,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {AzureReachabilityReport} - The deserialized result object. + * @resolve {RouteFilterListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -23331,39 +21741,23 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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 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. + * Gets all route filters in a subscription. * - * @param {string} [parameters.city] The city or town for available providers - * list. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -23372,32 +21766,17 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all available internet service providers for a specified Azure region. + * Gets all route filters in a subscription. * - * @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 {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -23411,7 +21790,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {AvailableProvidersList} - The deserialized result object. + * @resolve {RouteFilterListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -23419,39 +21798,35 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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 { /** - * Get network configuration diagnostic. + * Deletes the specified rule from a route filter. * * @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 {string} routeFilterName The name of the route filter. * - * @param {array} parameters.profiles List of network configuration diagnostic - * profiles. + * @param {string} ruleName The name of the rule. * * @param {object} [options] Optional Parameters. * @@ -23460,32 +21835,20 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, ruleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get network configuration diagnostic. + * Deletes the specified rule from a route filter. * * @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 {string} routeFilterName The name of the route filter. * - * @param {array} parameters.profiles List of network configuration diagnostic - * profiles. + * @param {string} ruleName The name of the rule. * * @param {object} [options] Optional Parameters. * @@ -23499,7 +21862,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {NetworkConfigurationDiagnosticResponse} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -23507,25 +21870,25 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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; /** - * Deletes the specified network watcher resource. + * Gets the specified rule from a route filter. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeFilterName The name of the route filter. + * + * @param {string} ruleName The name of the rule. * * @param {object} [options] Optional Parameters. * @@ -23534,18 +21897,20 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, ruleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified network watcher resource. + * Gets the specified rule from a route filter. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeFilterName The name of the route filter. + * + * @param {string} ruleName The name of the rule. * * @param {object} [options] Optional Parameters. * @@ -23559,7 +21924,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {RouteFilterRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -23567,54 +21932,44 @@ export interface NetworkWatchers { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Verify IP flow from the specified VM to a location given the currently - * configured NSG rules. + * Creates or updates a route in the specified route filter. * * @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} routeFilterName The name of the route filter. * - * @param {string} parameters.direction The direction of the packet represented - * as a 5-tuple. Possible values include: 'Inbound', 'Outbound' + * @param {string} ruleName The name of the route filter rule. * - * @param {string} parameters.protocol Protocol to be verified on. Possible - * values include: 'TCP', 'UDP' + * @param {object} routeFilterRuleParameters Parameters supplied to the create + * or update route filter rule operation. * - * @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} routeFilterRuleParameters.access The access type of the + * rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', + * 'Deny' * - * @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 {array} routeFilterRuleParameters.communities The collection for bgp + * community values to filter on. e.g. ['12076:5010','12076:5020'] * - * @param {string} parameters.localIPAddress The local IP address. Acceptable - * values are valid IPv4 addresses. + * @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} parameters.remoteIPAddress The remote IP address. Acceptable - * values are valid IPv4 addresses. + * @param {string} [routeFilterRuleParameters.location] Resource location. * - * @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 {string} [routeFilterRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -23623,49 +21978,38 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.RouteFilterRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Verify IP flow from the specified VM to a location given the currently - * configured NSG rules. + * Creates or updates a route in the specified route filter. * * @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} routeFilterName The name of the route filter. * - * @param {string} parameters.direction The direction of the packet represented - * as a 5-tuple. Possible values include: 'Inbound', 'Outbound' + * @param {string} ruleName The name of the route filter rule. * - * @param {string} parameters.protocol Protocol to be verified on. Possible - * values include: 'TCP', 'UDP' + * @param {object} routeFilterRuleParameters Parameters supplied to the create + * or update route filter rule operation. * - * @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} routeFilterRuleParameters.access The access type of the + * rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', + * 'Deny' * - * @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 {array} routeFilterRuleParameters.communities The collection for bgp + * community values to filter on. e.g. ['12076:5010','12076:5020'] * - * @param {string} parameters.localIPAddress The local IP address. Acceptable - * values are valid IPv4 addresses. + * @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} parameters.remoteIPAddress The remote IP address. Acceptable - * values are valid IPv4 addresses. + * @param {string} [routeFilterRuleParameters.location] Resource location. * - * @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 {string} [routeFilterRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -23679,7 +22023,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {VerificationIPFlowResult} - The deserialized result object. + * @resolve {RouteFilterRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -23687,39 +22031,38 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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; /** - * Gets the next hop from the specified VM. + * Updates a route in the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeFilterName The name of the route filter. * - * @param {object} parameters Parameters that define the source and destination - * endpoint. + * @param {string} ruleName The name of the route filter rule. * - * @param {string} parameters.targetResourceId The resource identifier of the - * target resource against which the action is to be performed. + * @param {object} routeFilterRuleParameters Parameters supplied to the update + * route filter rule operation. * - * @param {string} parameters.sourceIPAddress The source IP address. + * @param {string} routeFilterRuleParameters.access The access type of the + * rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', + * 'Deny' * - * @param {string} parameters.destinationIPAddress The destination IP address. + * @param {array} routeFilterRuleParameters.communities The collection for bgp + * community values to filter on. e.g. ['12076:5010','12076:5020'] * - * @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 {string} [routeFilterRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -23728,32 +22071,32 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + updateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.PatchRouteFilterRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the next hop from the specified VM. + * Updates a route in the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeFilterName The name of the route filter. * - * @param {object} parameters Parameters that define the source and destination - * endpoint. + * @param {string} ruleName The name of the route filter rule. * - * @param {string} parameters.targetResourceId The resource identifier of the - * target resource against which the action is to be performed. + * @param {object} routeFilterRuleParameters Parameters supplied to the update + * route filter rule operation. * - * @param {string} parameters.sourceIPAddress The source IP address. + * @param {string} routeFilterRuleParameters.access The access type of the + * rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', + * 'Deny' * - * @param {string} parameters.destinationIPAddress The destination IP address. + * @param {array} routeFilterRuleParameters.communities The collection for bgp + * community values to filter on. e.g. ['12076:5010','12076:5020'] * - * @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 {string} [routeFilterRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -23767,7 +22110,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {NextHopResult} - The deserialized result object. + * @resolve {RouteFilterRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -23775,29 +22118,24 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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 the configured and effective security group rules on the specified VM. + * Gets all RouteFilterRules in a route filter. * * @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 {string} routeFilterName The name of the route filter. * * @param {object} [options] Optional Parameters. * @@ -23806,23 +22144,18 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listByRouteFilterWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the configured and effective security group rules on the specified VM. + * Gets all RouteFilterRules in a route filter. * * @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 {string} routeFilterName The name of the route filter. * * @param {object} [options] Optional Parameters. * @@ -23836,7 +22169,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {SecurityGroupViewResult} - The deserialized result object. + * @resolve {RouteFilterRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -23844,37 +22177,27 @@ export interface NetworkWatchers { * * {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 + * {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. */ - 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; + 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; /** - * Initiate troubleshooting on a specified resource + * Deletes the specified rule from a route filter. * * @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} routeFilterName The name of the route filter. * - * @param {string} parameters.storagePath The path to the blob to save the - * troubleshoot result in. + * @param {string} ruleName The name of the rule. * * @param {object} [options] Optional Parameters. * @@ -23883,30 +22206,20 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, ruleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Initiate troubleshooting on a specified resource + * Deletes the specified rule from a route filter. * * @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} routeFilterName The name of the route filter. * - * @param {string} parameters.storagePath The path to the blob to save the - * troubleshoot result in. + * @param {string} ruleName The name of the rule. * * @param {object} [options] Optional Parameters. * @@ -23920,7 +22233,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {TroubleshootingResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -23928,30 +22241,43 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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; /** - * Get the last completed troubleshooting result on a specified resource + * Creates or updates a route in the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher resource. + * @param {string} routeFilterName The name of the route filter. * - * @param {object} parameters Parameters that define the resource to query the - * troubleshooting result. + * @param {string} ruleName The name of the route filter rule. * - * @param {string} parameters.targetResourceId The target resource ID to query - * the troubleshooting result. + * @param {object} routeFilterRuleParameters Parameters supplied to the create + * or update route filter rule operation. + * + * @param {string} routeFilterRuleParameters.access The access type of the + * rule. Valid values are: 'Allow', 'Deny'. 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. * @@ -23960,24 +22286,38 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.RouteFilterRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get the last completed troubleshooting result on a specified resource + * Creates or updates a route in the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher resource. + * @param {string} routeFilterName The name of the route filter. * - * @param {object} parameters Parameters that define the resource to query the - * troubleshooting result. + * @param {string} ruleName The name of the route filter rule. * - * @param {string} parameters.targetResourceId The target resource ID to query - * the troubleshooting result. + * @param {object} routeFilterRuleParameters Parameters supplied to the create + * or update route filter rule operation. + * + * @param {string} routeFilterRuleParameters.access The access type of the + * rule. Valid values are: 'Allow', 'Deny'. 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. * @@ -23991,7 +22331,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {TroubleshootingResult} - The deserialized result object. + * @resolve {RouteFilterRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -23999,79 +22339,38 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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; /** - * 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] - * - * @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] - * - * @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. + * Updates a route in the specified route filter. * - * @param {object} [parameters.flowAnalyticsConfiguration] + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} - * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration + * @param {string} routeFilterName The name of the route filter. * - * @param {boolean} - * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled - * Flag to enable/disable traffic analytics. + * @param {string} ruleName The name of the route filter rule. * - * @param {string} - * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceId - * The resource guid of the attached workspace + * @param {object} routeFilterRuleParameters Parameters supplied to the update + * route filter rule operation. * - * @param {string} - * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceRegion - * The location of the attached workspace + * @param {string} routeFilterRuleParameters.access The access type of the + * rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', + * 'Deny' * - * @param {string} - * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId - * Resource Id of the attached workspace + * @param {array} routeFilterRuleParameters.communities The collection for bgp + * community values to filter on. e.g. ['12076:5010','12076:5020'] * - * @param {number} - * [parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval] - * The interval in minutes which would decide how frequently TA service should - * do flow analytics + * @param {string} [routeFilterRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -24080,73 +22379,89 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginUpdateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.PatchRouteFilterRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Configures flow log and traffic analytics (optional) on a specified - * resource. + * Updates a route in the specified route filter. * - * @param {string} resourceGroupName The name of the network watcher resource - * group. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher resource. + * @param {string} routeFilterName The name of the route filter. * - * @param {object} parameters Parameters that define the configuration of flow - * log. + * @param {string} ruleName The name of the route filter rule. * - * @param {string} parameters.targetResourceId The ID of the resource to - * configure for flow log and traffic analytics (optional) . + * @param {object} routeFilterRuleParameters Parameters supplied to the update + * route filter rule operation. * - * @param {string} parameters.storageId ID of the storage account which is used - * to store the flow log. + * @param {string} routeFilterRuleParameters.access The access type of the + * rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', + * 'Deny' * - * @param {boolean} parameters.enabled Flag to enable/disable flow logging. + * @param {array} routeFilterRuleParameters.communities The collection for bgp + * community values to filter on. e.g. ['12076:5010','12076:5020'] * - * @param {object} [parameters.retentionPolicy] + * @param {string} [routeFilterRuleParameters.id] Resource ID. * - * @param {number} [parameters.retentionPolicy.days] Number of days to retain - * flow log records. + * @param {object} [options] Optional Parameters. * - * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable - * retention. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {object} [parameters.format] + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {string} [parameters.format.type] The file type of flow log. Possible - * values include: 'JSON' + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {number} [parameters.format.version] The version (revision) of the - * flow log. + * {Promise} A promise is returned. * - * @param {object} [parameters.flowAnalyticsConfiguration] + * @resolve {RouteFilterRule} - The deserialized result object. * - * @param {object} - * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration + * @reject {Error|ServiceError} - The error object. * - * @param {boolean} - * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled - * Flag to enable/disable traffic analytics. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {string} - * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceId - * The resource guid of the attached workspace + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {string} - * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceRegion - * The location of the attached workspace + * {RouteFilterRule} [result] - The deserialized result object if an error did not occur. + * See {@link RouteFilterRule} for more information. * - * @param {string} - * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId - * Resource Id of the attached workspace + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {number} - * [parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval] - * The interval in minutes which would decide how frequently TA service should - * do flow analytics + * {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. * @@ -24160,7 +22475,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {FlowLogInformation} - The deserialized result object. + * @resolve {RouteFilterRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24168,32 +22483,34 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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 { /** - * 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. + * Deletes the specified route table. * - * @param {object} parameters Parameters that define a resource to query flow - * log and traffic analytics (optional) status. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} parameters.targetResourceId The target resource where - * getting the flow log and traffic analytics (optional) status. + * @param {string} routeTableName The name of the route table. * * @param {object} [options] Optional Parameters. * @@ -24202,26 +22519,18 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, 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. + * Deletes the specified route table. * - * @param {object} parameters Parameters that define a resource to query flow - * log and traffic analytics (optional) status. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} parameters.targetResourceId The target resource where - * getting the flow log and traffic analytics (optional) status. + * @param {string} routeTableName The name of the route table. * * @param {object} [options] Optional Parameters. * @@ -24235,7 +22544,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {FlowLogInformation} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24243,131 +22552,50 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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; /** - * 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 - * - * @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 - * - * @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] - * - * @param {object} [parameters.protocolConfiguration.hTTPConfiguration] - * - * @param {string} [parameters.protocolConfiguration.hTTPConfiguration.method] - * HTTP method. Possible values include: 'Get' + * Gets the specified route table. * - * @param {array} [parameters.protocolConfiguration.hTTPConfiguration.headers] - * List of HTTP headers. + * @param {string} resourceGroupName The name of the resource group. * - * @param {array} - * [parameters.protocolConfiguration.hTTPConfiguration.validStatusCodes] Valid - * status codes. + * @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. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, options?: { expand? : string, 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 - * - * @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 - * - * @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] - * - * @param {object} [parameters.protocolConfiguration.hTTPConfiguration] - * - * @param {string} [parameters.protocolConfiguration.hTTPConfiguration.method] - * HTTP method. Possible values include: 'Get' + * Gets the specified route table. * - * @param {array} [parameters.protocolConfiguration.hTTPConfiguration.headers] - * List of HTTP headers. + * @param {string} resourceGroupName The name of the resource group. * - * @param {array} - * [parameters.protocolConfiguration.hTTPConfiguration.validStatusCodes] Valid - * status codes. + * @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 * @@ -24378,7 +22606,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {ConnectivityInformation} - The deserialized result object. + * @resolve {RouteTable} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24386,50 +22614,46 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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; /** - * 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. + * Create or updates a route table in a specified resource group. * - * @param {string} networkWatcherName The name of the network watcher resource. + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} parameters Parameters that determine Azure reachability - * report configuration. + * @param {string} routeTableName The name of the route table. * - * @param {object} parameters.providerLocation + * @param {object} parameters Parameters supplied to the create or update route + * table operation. * - * @param {string} parameters.providerLocation.country The name of the country. + * @param {array} [parameters.routes] Collection of routes contained within a + * route table. * - * @param {string} [parameters.providerLocation.state] The name of the state. + * @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.providerLocation.city] The name of the city or - * town. + * @param {string} [parameters.provisioningState] The provisioning state of the + * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * - * @param {array} [parameters.providers] List of Internet service providers. + * @param {string} [parameters.etag] Gets a unique read-only string that + * changes whenever the resource is updated. * - * @param {array} [parameters.azureLocations] Optional Azure regions to scope - * the query to. + * @param {string} [parameters.id] Resource ID. * - * @param {date} parameters.startTime The start time for the Azure reachability - * report. + * @param {string} [parameters.location] Resource location. * - * @param {date} parameters.endTime The end time for the Azure reachability - * report. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -24438,43 +22662,40 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, parameters: models.RouteTable, 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. + * Create or updates a route table in a specified resource group. * - * @param {string} networkWatcherName The name of the network watcher resource. + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} parameters Parameters that determine Azure reachability - * report configuration. + * @param {string} routeTableName The name of the route table. * - * @param {object} parameters.providerLocation + * @param {object} parameters Parameters supplied to the create or update route + * table operation. * - * @param {string} parameters.providerLocation.country The name of the country. + * @param {array} [parameters.routes] Collection of routes contained within a + * route table. * - * @param {string} [parameters.providerLocation.state] The name of the state. + * @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.providerLocation.city] The name of the city or - * town. + * @param {string} [parameters.provisioningState] The provisioning state of the + * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * - * @param {array} [parameters.providers] List of Internet service providers. + * @param {string} [parameters.etag] Gets a unique read-only string that + * changes whenever the resource is updated. * - * @param {array} [parameters.azureLocations] Optional Azure regions to scope - * the query to. + * @param {string} [parameters.id] Resource ID. * - * @param {date} parameters.startTime The start time for the Azure reachability - * report. + * @param {string} [parameters.location] Resource location. * - * @param {date} parameters.endTime The end time for the Azure reachability - * report. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -24488,7 +22709,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {AzureReachabilityReport} - The deserialized result object. + * @resolve {RouteTable} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24496,39 +22717,28 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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; /** - * 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. + * Updates a route table tags. * - * @param {array} [parameters.azureLocations] A list of Azure regions. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [parameters.country] The country for available providers - * list. + * @param {string} routeTableName The name of the route table. * - * @param {string} [parameters.state] The state for available providers list. + * @param {object} parameters Parameters supplied to update route table tags. * - * @param {string} [parameters.city] The city or town for available providers - * list. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -24537,32 +22747,22 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + updateTagsWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, parameters: models.TagsObject, 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. + * Updates a route table tags. * - * @param {array} [parameters.azureLocations] A list of Azure regions. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [parameters.country] The country for available providers - * list. + * @param {string} routeTableName The name of the route table. * - * @param {string} [parameters.state] The state for available providers list. + * @param {object} parameters Parameters supplied to update route table tags. * - * @param {string} [parameters.city] The city or town for available providers - * list. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -24576,7 +22776,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {AvailableProvidersList} - The deserialized result object. + * @resolve {RouteTable} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24584,40 +22784,23 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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; + 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; /** - * Get network configuration diagnostic. + * Gets all route tables in a resource group. * * @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 @@ -24625,33 +22808,17 @@ export interface NetworkWatchers { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get network configuration diagnostic. + * Gets all route tables in a resource group. * * @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 @@ -24664,7 +22831,7 @@ export interface NetworkWatchers { * * {Promise} A promise is returned. * - * @resolve {NetworkConfigurationDiagnosticResponse} - The deserialized result object. + * @resolve {RouteTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24672,68 +22839,20 @@ export interface NetworkWatchers { * * {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. + * {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. */ - 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 { + 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; /** - * 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 - * - * @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] + * Gets all route tables in a subscription. * * @param {object} [options] Optional Parameters. * @@ -24742,52 +22861,14 @@ export interface PacketCaptures { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listAllWithHttpOperationResponse(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 - * - * @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] + * Gets all route tables in a subscription. * * @param {object} [options] Optional Parameters. * @@ -24801,7 +22882,7 @@ export interface PacketCaptures { * * {Promise} A promise is returned. * - * @resolve {PacketCaptureResult} - The deserialized result object. + * @resolve {RouteTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24809,26 +22890,24 @@ export interface PacketCaptures { * * {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. + * {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. */ - 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; + listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAll(callback: ServiceCallback): void; + listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets a packet capture session by name. + * Deletes the specified route table. * * @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 {string} routeTableName The name of the route table. * * @param {object} [options] Optional Parameters. * @@ -24837,20 +22916,18 @@ export interface PacketCaptures { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets a packet capture session by name. + * Deletes the specified route table. * * @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 {string} routeTableName The name of the route table. * * @param {object} [options] Optional Parameters. * @@ -24864,7 +22941,7 @@ export interface PacketCaptures { * * {Promise} A promise is returned. * - * @resolve {PacketCaptureResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24872,26 +22949,45 @@ export interface PacketCaptures { * * {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. + * {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. */ - 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; + 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; /** - * Deletes the specified packet capture session. + * Create or updates a route table in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeTableName The name of the route table. * - * @param {string} packetCaptureName The name of the packet capture session. + * @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. * @@ -24900,20 +22996,40 @@ export interface PacketCaptures { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, parameters: models.RouteTable, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified packet capture session. + * Create or updates a route table in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeTableName The name of the route table. * - * @param {string} packetCaptureName The name of the packet capture session. + * @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. * @@ -24927,7 +23043,7 @@ export interface PacketCaptures { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {RouteTable} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24935,25 +23051,28 @@ export interface PacketCaptures { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Stops a specified packet capture session. + * Updates a route table tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeTableName The name of the route table. * - * @param {string} packetCaptureName The name of the packet capture session. + * @param {object} parameters Parameters supplied to update route table tags. + * + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -24962,20 +23081,22 @@ export interface PacketCaptures { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Stops a specified packet capture session. + * Updates a route table tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeTableName The name of the route table. * - * @param {string} packetCaptureName The name of the packet capture session. + * @param {object} parameters Parameters supplied to update route table tags. + * + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -24989,7 +23110,7 @@ export interface PacketCaptures { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {RouteTable} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -24997,26 +23118,23 @@ export interface PacketCaptures { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * 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. + * Gets all route tables in a resource group. * - * @param {string} packetCaptureName The name given to the packet capture - * session. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -25025,21 +23143,17 @@ export interface PacketCaptures { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listNextWithHttpOperationResponse(nextPageLink: 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. + * Gets all route tables in a resource group. * - * @param {string} packetCaptureName The name given to the packet capture - * session. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -25053,7 +23167,7 @@ export interface PacketCaptures { * * {Promise} A promise is returned. * - * @resolve {PacketCaptureQueryStatusResult} - The deserialized result object. + * @resolve {RouteTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25061,25 +23175,23 @@ export interface PacketCaptures { * * {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. + * {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. */ - 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; + 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 all packet capture sessions within the specified resource group. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all route tables in a subscription. * - * @param {string} networkWatcherName The name of the Network Watcher resource. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -25088,18 +23200,17 @@ export interface PacketCaptures { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAllNextWithHttpOperationResponse(nextPageLink: 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. + * Gets all route tables in a subscription. * - * @param {string} networkWatcherName The name of the Network Watcher resource. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -25113,7 +23224,7 @@ export interface PacketCaptures { * * {Promise} A promise is returned. * - * @resolve {PacketCaptureListResult} - The deserialized result object. + * @resolve {RouteTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25121,59 +23232,35 @@ export interface PacketCaptures { * * {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. + * {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, 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; + 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 { /** - * Create and start a packet capture on the specified VM. + * Deletes the specified route from a route table. * * @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 - * - * @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 {string} routeTableName The name of the route table. * - * @param {array} [parameters.filters] + * @param {string} routeName The name of the route. * * @param {object} [options] Optional Parameters. * @@ -25182,52 +23269,20 @@ export interface PacketCaptures { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, routeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create and start a packet capture on the specified VM. + * Deletes the specified route from a route table. * * @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 - * - * @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 {string} routeTableName The name of the route table. * - * @param {array} [parameters.filters] + * @param {string} routeName The name of the route. * * @param {object} [options] Optional Parameters. * @@ -25241,7 +23296,7 @@ export interface PacketCaptures { * * {Promise} A promise is returned. * - * @resolve {PacketCaptureResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25249,26 +23304,25 @@ export interface PacketCaptures { * * {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. + * {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. */ - 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; + 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; /** - * Deletes the specified packet capture session. + * Gets the specified route from a route table. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeTableName The name of the route table. * - * @param {string} packetCaptureName The name of the packet capture session. + * @param {string} routeName The name of the route. * * @param {object} [options] Optional Parameters. * @@ -25277,20 +23331,20 @@ export interface PacketCaptures { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, routeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified packet capture session. + * Gets the specified route from a route table. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeTableName The name of the route table. * - * @param {string} packetCaptureName The name of the packet capture session. + * @param {string} routeName The name of the route. * * @param {object} [options] Optional Parameters. * @@ -25304,7 +23358,7 @@ export interface PacketCaptures { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {Route} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25312,25 +23366,54 @@ export interface PacketCaptures { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Stops a specified packet capture session. + * Creates or updates a route in the specified route table. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeTableName The name of the route table. * - * @param {string} packetCaptureName The name of the packet capture session. + * @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 are: 'VirtualNetworkGateway', + * 'VnetLocal', 'Internet', 'VirtualAppliance', and 'None'. 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. * @@ -25339,20 +23422,48 @@ export interface PacketCaptures { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, routeName: string, routeParameters: models.Route, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Stops a specified packet capture session. + * Creates or updates a route in the specified route table. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the network watcher. + * @param {string} routeTableName The name of the route table. * - * @param {string} packetCaptureName The name of the packet capture session. + * @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 are: 'VirtualNetworkGateway', + * 'VnetLocal', 'Internet', 'VirtualAppliance', and 'None'. 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. * @@ -25366,7 +23477,7 @@ export interface PacketCaptures { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {Route} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25374,26 +23485,24 @@ export interface PacketCaptures { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Query the status of a running packet capture session. + * Gets all routes in a route table. * * @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 {string} routeTableName The name of the route table. * * @param {object} [options] Optional Parameters. * @@ -25402,21 +23511,18 @@ export interface PacketCaptures { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Query the status of a running packet capture session. + * Gets all routes in a route table. * * @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 {string} routeTableName The name of the route table. * * @param {object} [options] Optional Parameters. * @@ -25430,7 +23536,7 @@ export interface PacketCaptures { * * {Promise} A promise is returned. * - * @resolve {PacketCaptureQueryStatusResult} - The deserialized result object. + * @resolve {RouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25438,69 +23544,26 @@ export interface PacketCaptures { * * {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. + * {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. */ - 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 { + 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; /** - * 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 - * - * @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 - * - * @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). + * Deletes the specified route from a route table. * - * @param {number} [parameters.destination.port] The destination port used by - * connection monitor. + * @param {string} resourceGroupName The name of the resource group. * - * @param {boolean} [parameters.autoStart] Determines if the connection monitor - * will start automatically once created. + * @param {string} routeTableName The name of the route table. * - * @param {number} [parameters.monitoringIntervalInSeconds] Monitoring interval - * in seconds. + * @param {string} routeName The name of the route. * * @param {object} [options] Optional Parameters. * @@ -25509,53 +23572,20 @@ export interface ConnectionMonitors { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, routeName: string, 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 - * - * @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 - * - * @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). + * Deletes the specified route from a route table. * - * @param {number} [parameters.destination.port] The destination port used by - * connection monitor. + * @param {string} resourceGroupName The name of the resource group. * - * @param {boolean} [parameters.autoStart] Determines if the connection monitor - * will start automatically once created. + * @param {string} routeTableName The name of the route table. * - * @param {number} [parameters.monitoringIntervalInSeconds] Monitoring interval - * in seconds. + * @param {string} routeName The name of the route. * * @param {object} [options] Optional Parameters. * @@ -25569,7 +23599,7 @@ export interface ConnectionMonitors { * * {Promise} A promise is returned. * - * @resolve {ConnectionMonitorResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25577,117 +23607,103 @@ export interface ConnectionMonitors { * * {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. + * {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. */ - 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; + 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; /** - * Gets a connection monitor by name. + * Creates or updates a route in the specified route table. * - * @param {string} resourceGroupName The name of the resource group containing - * Network Watcher. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the Network Watcher resource. + * @param {string} routeTableName The name of the route table. * - * @param {string} connectionMonitorName The name of the connection monitor. + * @param {string} routeName The name of the route. * - * @param {object} [options] Optional Parameters. + * @param {object} routeParameters Parameters supplied to the create or update + * route operation. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {string} [routeParameters.addressPrefix] The destination CIDR to + * which the route applies. * - * @returns {Promise} A promise is returned + * @param {string} routeParameters.nextHopType The type of Azure hop the packet + * should be sent to. Possible values are: 'VirtualNetworkGateway', + * 'VnetLocal', 'Internet', 'VirtualAppliance', and 'None'. Possible values + * include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', + * 'VirtualAppliance', 'None' * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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. * - * @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} [routeParameters.provisioningState] The provisioning state + * of the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * - * @param {string} resourceGroupName The name of the resource group containing - * Network Watcher. + * @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} networkWatcherName The name of the Network Watcher resource. + * @param {string} [routeParameters.etag] A unique read-only string that + * changes whenever the resource is updated. * - * @param {string} connectionMonitorName The name of the connection monitor. + * @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 {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. + * @returns {Promise} A promise is returned * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + * @reject {Error|ServiceError} - The error object. */ - 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; - + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, routeName: string, routeParameters: models.Route, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified connection monitor. + * Creates or updates a route in the specified route table. * - * @param {string} resourceGroupName The name of the resource group containing - * Network Watcher. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the Network Watcher resource. + * @param {string} routeTableName The name of the route table. * - * @param {string} connectionMonitorName The name of the connection monitor. + * @param {string} routeName The name of the route. * - * @param {object} [options] Optional Parameters. + * @param {object} routeParameters Parameters supplied to the create or update + * route operation. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {string} [routeParameters.addressPrefix] The destination CIDR to + * which the route applies. * - * @returns {Promise} A promise is returned + * @param {string} routeParameters.nextHopType The type of Azure hop the packet + * should be sent to. Possible values are: 'VirtualNetworkGateway', + * 'VnetLocal', 'Internet', 'VirtualAppliance', and 'None'. Possible values + * include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', + * 'VirtualAppliance', 'None' * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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. * - * @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} [routeParameters.provisioningState] The provisioning state + * of the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * - * @param {string} resourceGroupName The name of the resource group containing - * Network Watcher. + * @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} networkWatcherName The name of the Network Watcher resource. + * @param {string} [routeParameters.etag] A unique read-only string that + * changes whenever the resource is updated. * - * @param {string} connectionMonitorName The name of the connection monitor. + * @param {string} [routeParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -25701,7 +23717,7 @@ export interface ConnectionMonitors { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {Route} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25709,26 +23725,23 @@ export interface ConnectionMonitors { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * 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. + * Gets all routes in a route table. * - * @param {string} connectionMonitorName The name of the connection monitor. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -25737,21 +23750,17 @@ export interface ConnectionMonitors { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listNextWithHttpOperationResponse(nextPageLink: 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. + * Gets all routes in a route table. * - * @param {string} connectionMonitorName The name of the connection monitor. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -25765,7 +23774,7 @@ export interface ConnectionMonitors { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {RouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25773,26 +23782,29 @@ export interface ConnectionMonitors { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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 { /** - * 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. + * Gets all the available bgp service communities. * * @param {object} [options] Optional Parameters. * @@ -25801,21 +23813,14 @@ export interface ConnectionMonitors { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listWithHttpOperationResponse(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. + * Gets all the available bgp service communities. * * @param {object} [options] Optional Parameters. * @@ -25829,7 +23834,7 @@ export interface ConnectionMonitors { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {BgpServiceCommunityListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25837,27 +23842,24 @@ export interface ConnectionMonitors { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(callback: ServiceCallback): void; + list(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. + * Gets all the available bgp service communities. * - * @param {string} connectionMonitorName The name given to the connection - * monitor. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -25866,22 +23868,17 @@ export interface ConnectionMonitors { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listNextWithHttpOperationResponse(nextPageLink: 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. + * Gets all the available bgp service communities. * - * @param {string} connectionMonitorName The name given to the connection - * monitor. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -25895,7 +23892,7 @@ export interface ConnectionMonitors { * * {Promise} A promise is returned. * - * @resolve {ConnectionMonitorQueryResult} - The deserialized result object. + * @resolve {BgpServiceCommunityListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25903,26 +23900,32 @@ export interface ConnectionMonitors { * * {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 + * {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. */ - 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; + 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 + * Usages + * __NOTE__: An instance of this class is automatically created for an + * instance of the NetworkManagementClient. + */ +export interface Usages { /** - * Lists all connection monitors for the specified Network Watcher. - * - * @param {string} resourceGroupName The name of the resource group containing - * Network Watcher. + * List network usages for a subscription. * - * @param {string} networkWatcherName The name of the Network Watcher resource. + * @param {string} location The location where resource usage is queried. * * @param {object} [options] Optional Parameters. * @@ -25931,19 +23934,16 @@ export interface ConnectionMonitors { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(location: 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. + * List network usages for a subscription. * - * @param {string} networkWatcherName The name of the Network Watcher resource. + * @param {string} location The location where resource usage is queried. * * @param {object} [options] Optional Parameters. * @@ -25957,7 +23957,7 @@ export interface ConnectionMonitors { * * {Promise} A promise is returned. * - * @resolve {ConnectionMonitorListResult} - The deserialized result object. + * @resolve {UsagesListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -25965,60 +23965,23 @@ export interface ConnectionMonitors { * * {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. + * {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(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; + 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; /** - * 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 - * - * @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 - * - * @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. + * List network usages for a subscription. * - * @param {number} [parameters.monitoringIntervalInSeconds] Monitoring interval - * in seconds. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -26027,53 +23990,17 @@ export interface ConnectionMonitors { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listNextWithHttpOperationResponse(nextPageLink: string, 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 - * - * @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 - * - * @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. + * List network usages for a subscription. * - * @param {number} [parameters.monitoringIntervalInSeconds] Monitoring interval - * in seconds. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -26087,7 +24014,7 @@ export interface ConnectionMonitors { * * {Promise} A promise is returned. * - * @resolve {ConnectionMonitorResult} - The deserialized result object. + * @resolve {UsagesListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26095,28 +24022,33 @@ export interface ConnectionMonitors { * * {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. + * {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. */ - 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; + 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 connection monitor. - * - * @param {string} resourceGroupName The name of the resource group containing - * Network Watcher. + * Deletes the specified virtual network. * - * @param {string} networkWatcherName The name of the Network Watcher resource. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} connectionMonitorName The name of the connection monitor. + * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * @@ -26129,17 +24061,14 @@ export interface ConnectionMonitors { * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified connection monitor. - * - * @param {string} resourceGroupName The name of the resource group containing - * Network Watcher. + * Deletes the specified virtual network. * - * @param {string} networkWatcherName The name of the Network Watcher resource. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} connectionMonitorName The name of the connection monitor. + * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * @@ -26167,46 +24096,44 @@ export interface ConnectionMonitors { * * {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; + 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; /** - * Stops the specified connection monitor. - * - * @param {string} resourceGroupName The name of the resource group containing - * Network Watcher. + * Gets the specified virtual network by resource group. * - * @param {string} networkWatcherName The name of the Network Watcher resource. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} connectionMonitorName The name of the connection monitor. + * @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. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Stops the specified connection monitor. - * - * @param {string} resourceGroupName The name of the resource group containing - * Network Watcher. + * Gets the specified virtual network by resource group. * - * @param {string} networkWatcherName The name of the Network Watcher resource. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} connectionMonitorName The name of the connection monitor. + * @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 * @@ -26217,7 +24144,7 @@ export interface ConnectionMonitors { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VirtualNetwork} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26225,53 +24152,144 @@ export interface ConnectionMonitors { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Starts the specified connection monitor. - * - * @param {string} resourceGroupName The name of the resource group containing - * Network Watcher. + * Creates or updates a virtual network in the specified resource group. * - * @param {string} networkWatcherName The name of the Network Watcher resource. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} connectionMonitorName The name of the connection monitor. + * @param {string} virtualNetworkName The name of the virtual network. * - * @param {object} [options] Optional Parameters. + * @param {object} parameters Parameters supplied to the create or update + * virtual network operation * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {object} [parameters.addressSpace] The AddressSpace that contains an + * array of IP address ranges that can be used by subnets. * - * @returns {Promise} A promise is returned + * @param {array} [parameters.addressSpace.addressPrefixes] A list of address + * blocks reserved for this virtual network in CIDR notation. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {object} [parameters.dhcpOptions] The dhcpOptions that contains an + * array of DNS servers available to VMs deployed in the virtual network. * - * @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 {array} [parameters.dhcpOptions.dnsServers] The list of DNS servers + * IP addresses. * - * @param {string} resourceGroupName The name of the resource group containing - * Network Watcher. + * @param {array} [parameters.subnets] A list of subnets in a Virtual Network. * - * @param {string} networkWatcherName The name of the Network Watcher resource. + * @param {array} [parameters.virtualNetworkPeerings] A list of peerings in a + * Virtual Network. * - * @param {string} connectionMonitorName The name of the connection monitor. + * @param {string} [parameters.resourceGuid] The resourceGuid property of the + * Virtual Network resource. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.provisioningState] The provisioning state of the + * PublicIP resource. Possible values are: 'Updating', 'Deleting', and + * 'Failed'. * - * @param {object} [options.customHeaders] Headers that will be added to the + * @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. @@ -26281,7 +24299,7 @@ export interface ConnectionMonitors { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VirtualNetwork} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26289,27 +24307,29 @@ export interface ConnectionMonitors { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Query a snapshot of the most recent connection states. + * Updates a virtual network tags. * - * @param {string} resourceGroupName The name of the resource group containing - * Network Watcher. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the Network Watcher resource. + * @param {string} virtualNetworkName The name of the virtual network. * - * @param {string} connectionMonitorName The name given to the connection - * monitor. + * @param {object} parameters Parameters supplied to update virtual network + * tags. + * + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -26318,22 +24338,23 @@ export interface ConnectionMonitors { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + updateTagsWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Query a snapshot of the most recent connection states. + * Updates a virtual network tags. * - * @param {string} resourceGroupName The name of the resource group containing - * Network Watcher. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} networkWatcherName The name of the Network Watcher resource. + * @param {string} virtualNetworkName The name of the virtual network. * - * @param {string} connectionMonitorName The name given to the connection - * monitor. + * @param {object} parameters Parameters supplied to update virtual network + * tags. + * + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -26347,7 +24368,7 @@ export interface ConnectionMonitors { * * {Promise} A promise is returned. * - * @resolve {ConnectionMonitorQueryResult} - The deserialized result object. + * @resolve {VirtualNetwork} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26355,30 +24376,20 @@ export interface ConnectionMonitors { * * {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. + * {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. */ - 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 { + 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; /** - * Lists all of the available Network Rest API operations. + * Gets all virtual networks in a subscription. * * @param {object} [options] Optional Parameters. * @@ -26387,14 +24398,14 @@ export interface Operations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all of the available Network Rest API operations. + * Gets all virtual networks in a subscription. * * @param {object} [options] Optional Parameters. * @@ -26408,7 +24419,7 @@ export interface Operations { * * {Promise} A promise is returned. * - * @resolve {OperationListResult} - The deserialized result object. + * @resolve {VirtualNetworkListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26416,23 +24427,23 @@ export interface Operations { * * {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. + * {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(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - list(callback: ServiceCallback): void; - list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAll(callback: ServiceCallback): void; + listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Lists all of the available Network Rest API operations. + * Gets all virtual networks in a resource group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * @@ -26441,17 +24452,16 @@ export interface Operations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all of the available Network Rest API operations. + * Gets all virtual networks in a resource group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * @@ -26465,7 +24475,7 @@ export interface Operations { * * {Promise} A promise is returned. * - * @resolve {OperationListResult} - The deserialized result object. + * @resolve {VirtualNetworkListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26473,33 +24483,27 @@ export interface Operations { * * {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. + * {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; -} - -/** - * @class - * PublicIPAddresses - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - */ -export interface PublicIPAddresses { + 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 address. + * Checks whether a private IP address is available for use. + * + * @param {string} ipAddress The private IP address to be verified. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpAddressName The name of the subnet. + * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * @@ -26508,18 +24512,20 @@ export interface PublicIPAddresses { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, publicIpAddressName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + checkIPAddressAvailabilityWithHttpOperationResponse(ipAddress: string, resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified public IP address. + * Checks whether a private IP address is available for use. + * + * @param {string} ipAddress The private IP address to be verified. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpAddressName The name of the subnet. + * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * @@ -26533,7 +24539,7 @@ export interface PublicIPAddresses { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {IPAddressAvailabilityResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26541,50 +24547,48 @@ export interface PublicIPAddresses { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + checkIPAddressAvailability(ipAddress: string, resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + checkIPAddressAvailability(ipAddress: string, resourceGroupName: string, virtualNetworkName: string, callback: ServiceCallback): void; + checkIPAddressAvailability(ipAddress: string, resourceGroupName: string, virtualNetworkName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets the specified public IP address in a specified resource group. + * Lists usage stats. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpAddressName The name of the subnet. + * @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. + * @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>; + listUsageWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified public IP address in a specified resource group. + * Lists usage stats. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpAddressName The name of the subnet. + * @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 * @@ -26595,7 +24599,7 @@ export interface PublicIPAddresses { * * {Promise} A promise is returned. * - * @resolve {PublicIPAddress} - The deserialized result object. + * @resolve {VirtualNetworkListUsageResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26603,86 +24607,125 @@ export interface PublicIPAddresses { * * {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. + * {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. */ - 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; + 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; /** - * Creates or updates a static or dynamic public IP address. + * Deletes the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpAddressName The name of the public IP address. + * @param {string} virtualNetworkName The name of the virtual network. * - * @param {object} parameters Parameters supplied to the create or update - * public IP address operation. + * @param {object} [options] Optional Parameters. * - * @param {object} [parameters.sku] The public IP address SKU. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.sku.name] Name of a public IP address SKU. - * Possible values include: 'Basic', 'Standard' + * @returns {Promise} A promise is returned * - * @param {string} [parameters.publicIPAllocationMethod] The public IP - * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} [parameters.publicIPAddressVersion] The public IP address - * version. Possible values are: 'IPv4' and 'IPv6'. Possible values include: - * 'IPv4', 'IPv6' + * @reject {Error|ServiceError} - The error object. + */ + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Deletes the specified virtual network. * - * @param {object} [parameters.dnsSettings] The FQDN of the DNS record - * associated with the public IP address. + * @param {string} resourceGroupName The name of the resource group. * - * @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} virtualNetworkName The name of the virtual network. * - * @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 {object} [options] Optional Parameters. * - * @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} [options.customHeaders] Headers that will be added to the + * request * - * @param {array} [parameters.ipTags] The list of tags associated with the - * public IP address. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {string} [parameters.ipAddress] The IP address associated with the - * public IP address resource. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. * - * @param {object} [parameters.publicIPPrefix] The Public IP Prefix this Public - * IP Address should be allocated from. + * @resolve {null} - The deserialized result object. * - * @param {string} [parameters.publicIPPrefix.id] Resource ID. + * @reject {Error|ServiceError} - The error object. * - * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the - * public IP address. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * public IP resource. + * {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 {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @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 {array} [parameters.zones] A list of availability zones denoting the - * IP allocated for the resource needs to come from. + * @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. * @@ -26697,80 +24740,60 @@ export interface PublicIPAddresses { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, parameters: models.VirtualNetwork, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a static or dynamic public IP address. + * Creates or updates a virtual network in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpAddressName The name of the public IP address. + * @param {string} virtualNetworkName The name of the virtual network. * * @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 - * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' - * - * @param {string} [parameters.publicIPAddressVersion] The public IP address - * version. Possible values are: 'IPv4' and 'IPv6'. 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. + * virtual network operation * - * @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.addressSpace] The AddressSpace that contains an + * array of IP address ranges that can be used by subnets. * - * @param {array} [parameters.ipTags] The list of tags associated with the - * public IP address. + * @param {array} [parameters.addressSpace.addressPrefixes] A list of address + * blocks reserved for this virtual network in CIDR notation. * - * @param {string} [parameters.ipAddress] The IP address associated with the - * public IP address resource. + * @param {object} [parameters.dhcpOptions] The dhcpOptions that contains an + * array of DNS servers available to VMs deployed in the virtual network. * - * @param {object} [parameters.publicIPPrefix] The Public IP Prefix this Public - * IP Address should be allocated from. + * @param {array} [parameters.dhcpOptions.dnsServers] The list of DNS servers + * IP addresses. * - * @param {string} [parameters.publicIPPrefix.id] Resource ID. + * @param {array} [parameters.subnets] A list of subnets in a Virtual Network. * - * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the - * public IP address. + * @param {array} [parameters.virtualNetworkPeerings] A list of peerings in a + * Virtual Network. * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * public IP resource. + * @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 {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @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 {array} [parameters.zones] A list of availability zones denoting the - * IP allocated for the resource needs to come from. + * @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. * @@ -26790,7 +24813,7 @@ export interface PublicIPAddresses { * * {Promise} A promise is returned. * - * @resolve {PublicIPAddress} - The deserialized result object. + * @resolve {VirtualNetwork} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26798,26 +24821,26 @@ export interface PublicIPAddresses { * * {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. + * {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, 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; + 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 public IP address tags. + * Updates a virtual network tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpAddressName The name of the public IP address. + * @param {string} virtualNetworkName The name of the virtual network. * - * @param {object} parameters Parameters supplied to update public IP address + * @param {object} parameters Parameters supplied to update virtual network * tags. * * @param {object} [parameters.tags] Resource tags. @@ -26829,20 +24852,20 @@ export interface PublicIPAddresses { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates public IP address tags. + * Updates a virtual network tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpAddressName The name of the public IP address. + * @param {string} virtualNetworkName The name of the virtual network. * - * @param {object} parameters Parameters supplied to update public IP address + * @param {object} parameters Parameters supplied to update virtual network * tags. * * @param {object} [parameters.tags] Resource tags. @@ -26859,7 +24882,7 @@ export interface PublicIPAddresses { * * {Promise} A promise is returned. * - * @resolve {PublicIPAddress} - The deserialized result object. + * @resolve {VirtualNetwork} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26867,20 +24890,23 @@ export interface PublicIPAddresses { * * {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. + * {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, 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; + 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 the public IP addresses in a subscription. + * 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. * @@ -26889,14 +24915,17 @@ export interface PublicIPAddresses { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the public IP addresses in a subscription. + * 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. * @@ -26910,7 +24939,7 @@ export interface PublicIPAddresses { * * {Promise} A promise is returned. * - * @resolve {PublicIPAddressListResult} - The deserialized result object. + * @resolve {VirtualNetworkListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26918,23 +24947,24 @@ export interface PublicIPAddresses { * * {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 + * {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; + 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. + * Gets all virtual networks in a resource group. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -26943,16 +24973,17 @@ export interface PublicIPAddresses { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all public IP addresses in a resource group. + * Gets all virtual networks in a resource group. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -26966,7 +24997,7 @@ export interface PublicIPAddresses { * * {Promise} A promise is returned. * - * @resolve {PublicIPAddressListResult} - The deserialized result object. + * @resolve {VirtualNetworkListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -26974,27 +25005,24 @@ export interface PublicIPAddresses { * * {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 + * {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; + 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} resourceGroupName The name of the resource group. + * Lists usage stats. * - * @param {string} virtualMachineScaleSetName The name of the virtual machine - * scale set. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -27003,20 +25031,17 @@ export interface PublicIPAddresses { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listVirtualMachineScaleSetPublicIPAddressesWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listUsageNextWithHttpOperationResponse(nextPageLink: 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. + * Lists usage stats. * - * @param {string} virtualMachineScaleSetName The name of the virtual machine - * scale set. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -27030,7 +25055,7 @@ export interface PublicIPAddresses { * * {Promise} A promise is returned. * - * @resolve {PublicIPAddressListResult} - The deserialized result object. + * @resolve {VirtualNetworkListUsageResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27038,33 +25063,36 @@ export interface PublicIPAddresses { * * {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 + * {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. */ - 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; + 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 { /** - * Gets information about all public IP addresses in a virtual machine IP - * configuration in a virtual machine scale set. + * Deletes the specified subnet. * * @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} virtualNetworkName The name of the virtual network. * - * @param {string} ipConfigurationName The IP configuration name. + * @param {string} subnetName The name of the subnet. * * @param {object} [options] Optional Parameters. * @@ -27073,26 +25101,20 @@ export interface PublicIPAddresses { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, subnetName: 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. + * Deletes the specified subnet. * * @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} virtualNetworkName The name of the virtual network. * - * @param {string} ipConfigurationName The IP configuration name. + * @param {string} subnetName The name of the subnet. * * @param {object} [options] Optional Parameters. * @@ -27106,7 +25128,7 @@ export interface PublicIPAddresses { * * {Promise} A promise is returned. * - * @resolve {PublicIPAddressListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27114,34 +25136,25 @@ export interface PublicIPAddresses { * * {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. + * {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. */ - 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; + 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; /** - * Get the specified public IP address in a virtual machine scale set. + * Gets the specified subnet by virtual network and resource group. * * @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} virtualNetworkName The name of the virtual network. * - * @param {string} publicIpAddressName The name of the public IP Address. + * @param {string} subnetName The name of the subnet. * * @param {object} [options] Optional Parameters. * @@ -27152,27 +25165,20 @@ export interface PublicIPAddresses { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Get the specified public IP address in a virtual machine scale set. + * Gets the specified subnet by virtual network and resource group. * * @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} virtualNetworkName The name of the virtual network. * - * @param {string} publicIpAddressName The name of the public IP Address. + * @param {string} subnetName The name of the subnet. * * @param {object} [options] Optional Parameters. * @@ -27188,7 +25194,7 @@ export interface PublicIPAddresses { * * {Promise} A promise is returned. * - * @resolve {PublicIPAddress} - The deserialized result object. + * @resolve {Subnet} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27196,150 +25202,99 @@ export interface PublicIPAddresses { * * {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. + * {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. */ - 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; - + 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; - /** - * 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. + * Creates or updates a subnet in the specified virtual network. * * @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. + * @param {string} virtualNetworkName The name of the virtual network. * - * {null} [result] - The deserialized result object if an error did not occur. + * @param {string} subnetName The name of the subnet. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {object} subnetParameters Parameters supplied to the create or update + * subnet operation. * - * {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} [subnetParameters.addressPrefix] The address prefix for the + * subnet. * - * @param {string} resourceGroupName The name of the resource group. + * @param {object} [subnetParameters.networkSecurityGroup] The reference of the + * NetworkSecurityGroup resource. * - * @param {string} publicIpAddressName The name of the public IP address. + * @param {array} [subnetParameters.networkSecurityGroup.securityRules] A + * collection of security rules of the network security group. * - * @param {object} parameters Parameters supplied to the create or update - * public IP address operation. + * @param {array} [subnetParameters.networkSecurityGroup.defaultSecurityRules] + * The default security rules of network security group. * - * @param {object} [parameters.sku] The public IP address SKU. + * @param {string} [subnetParameters.networkSecurityGroup.resourceGuid] The + * resource GUID property of the network security group resource. * - * @param {string} [parameters.sku.name] Name of a public IP address SKU. - * Possible values include: 'Basic', 'Standard' + * @param {string} [subnetParameters.networkSecurityGroup.provisioningState] + * The provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. * - * @param {string} [parameters.publicIPAllocationMethod] The public IP - * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' + * @param {string} [subnetParameters.networkSecurityGroup.etag] A unique + * read-only string that changes whenever the resource is updated. * - * @param {string} [parameters.publicIPAddressVersion] The public IP address - * version. Possible values are: 'IPv4' and 'IPv6'. Possible values include: - * 'IPv4', 'IPv6' + * @param {string} [subnetParameters.networkSecurityGroup.id] Resource ID. * - * @param {object} [parameters.dnsSettings] The FQDN of the DNS record - * associated with the public IP address. + * @param {string} [subnetParameters.networkSecurityGroup.location] Resource + * location. * - * @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 {object} [subnetParameters.networkSecurityGroup.tags] Resource tags. * - * @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 {object} [subnetParameters.routeTable] The reference of the + * RouteTable resource. * - * @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 {array} [subnetParameters.routeTable.routes] Collection of routes + * contained within a route table. * - * @param {array} [parameters.ipTags] The list of tags associated with the - * public IP address. + * @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} [parameters.ipAddress] The IP address associated with the - * public IP address resource. + * @param {string} [subnetParameters.routeTable.provisioningState] The + * provisioning state of the resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. * - * @param {object} [parameters.publicIPPrefix] The Public IP Prefix this Public - * IP Address should be allocated from. + * @param {string} [subnetParameters.routeTable.etag] Gets a unique read-only + * string that changes whenever the resource is updated. * - * @param {string} [parameters.publicIPPrefix.id] Resource ID. + * @param {string} [subnetParameters.routeTable.id] Resource ID. * - * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the - * public IP address. + * @param {string} [subnetParameters.routeTable.location] Resource location. * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * public IP resource. + * @param {object} [subnetParameters.routeTable.tags] Resource tags. * - * @param {string} [parameters.provisioningState] The provisioning state of the - * PublicIP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. + * @param {array} [subnetParameters.serviceEndpoints] An array of service + * endpoints. * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of + * references to the external resources using subnet. * - * @param {array} [parameters.zones] A list of availability zones denoting the - * IP allocated for the resource needs to come from. + * @param {string} [subnetParameters.provisioningState] The provisioning state + * of the resource. * - * @param {string} [parameters.id] Resource ID. + * @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} [parameters.location] Resource location. + * @param {string} [subnetParameters.etag] A unique read-only string that + * changes whenever the resource is updated. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} [subnetParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -27348,86 +25303,93 @@ export interface PublicIPAddresses { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, subnetName: string, subnetParameters: models.Subnet, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a static or dynamic public IP address. + * Creates or updates a subnet in the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpAddressName The name of the public IP address. + * @param {string} virtualNetworkName The name of the virtual network. * - * @param {object} parameters Parameters supplied to the create or update - * public IP address operation. + * @param {string} subnetName The name of the subnet. * - * @param {object} [parameters.sku] The public IP address SKU. + * @param {object} subnetParameters Parameters supplied to the create or update + * subnet operation. * - * @param {string} [parameters.sku.name] Name of a public IP address SKU. - * Possible values include: 'Basic', 'Standard' + * @param {string} [subnetParameters.addressPrefix] The address prefix for the + * subnet. * - * @param {string} [parameters.publicIPAllocationMethod] The public IP - * allocation method. Possible values are: 'Static' and 'Dynamic'. Possible - * values include: 'Static', 'Dynamic' + * @param {object} [subnetParameters.networkSecurityGroup] The reference of the + * NetworkSecurityGroup resource. * - * @param {string} [parameters.publicIPAddressVersion] The public IP address - * version. Possible values are: 'IPv4' and 'IPv6'. Possible values include: - * 'IPv4', 'IPv6' + * @param {array} [subnetParameters.networkSecurityGroup.securityRules] A + * collection of security rules of the network security group. * - * @param {object} [parameters.dnsSettings] The FQDN of the DNS record - * associated with the public IP address. + * @param {array} [subnetParameters.networkSecurityGroup.defaultSecurityRules] + * The default security rules of network security group. * - * @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} [subnetParameters.networkSecurityGroup.resourceGuid] The + * resource GUID property of the network security group resource. * - * @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} [subnetParameters.networkSecurityGroup.provisioningState] + * The provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. * - * @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 {string} [subnetParameters.networkSecurityGroup.etag] A unique + * read-only string that changes whenever the resource is updated. * - * @param {array} [parameters.ipTags] The list of tags associated with the - * public IP address. + * @param {string} [subnetParameters.networkSecurityGroup.id] Resource ID. * - * @param {string} [parameters.ipAddress] The IP address associated with the - * public IP address resource. + * @param {string} [subnetParameters.networkSecurityGroup.location] Resource + * location. * - * @param {object} [parameters.publicIPPrefix] The Public IP Prefix this Public - * IP Address should be allocated from. + * @param {object} [subnetParameters.networkSecurityGroup.tags] Resource tags. * - * @param {string} [parameters.publicIPPrefix.id] Resource ID. + * @param {object} [subnetParameters.routeTable] The reference of the + * RouteTable resource. * - * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the - * public IP address. + * @param {array} [subnetParameters.routeTable.routes] Collection of routes + * contained within a route table. * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * public IP resource. + * @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} [parameters.provisioningState] The provisioning state of the - * PublicIP resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. + * @param {string} [subnetParameters.routeTable.provisioningState] The + * provisioning state of the 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} [subnetParameters.routeTable.etag] Gets 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} [subnetParameters.routeTable.id] Resource ID. * - * @param {string} [parameters.id] Resource ID. + * @param {string} [subnetParameters.routeTable.location] Resource location. * - * @param {string} [parameters.location] Resource location. + * @param {object} [subnetParameters.routeTable.tags] Resource tags. * - * @param {object} [parameters.tags] Resource tags. + * @param {array} [subnetParameters.serviceEndpoints] An array of service + * endpoints. + * + * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of + * references to the external resources using 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. * @@ -27441,7 +25403,7 @@ export interface PublicIPAddresses { * * {Promise} A promise is returned. * - * @resolve {PublicIPAddress} - The deserialized result object. + * @resolve {Subnet} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27449,29 +25411,24 @@ export interface PublicIPAddresses { * * {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. + * {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, 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; + 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; /** - * Updates public IP address tags. + * Gets all subnets in a virtual network. * * @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 {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * @@ -27480,23 +25437,18 @@ export interface PublicIPAddresses { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates public IP address tags. + * Gets all subnets in a virtual network. * * @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 {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * @@ -27510,7 +25462,7 @@ export interface PublicIPAddresses { * * {Promise} A promise is returned. * - * @resolve {PublicIPAddress} - The deserialized result object. + * @resolve {SubnetListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27518,23 +25470,26 @@ export interface PublicIPAddresses { * * {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. + * {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. */ - 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; + 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; /** - * Gets all the public IP addresses in a subscription. + * Deletes the specified subnet. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -27543,17 +25498,20 @@ export interface PublicIPAddresses { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the public IP addresses in a subscription. + * Deletes the specified subnet. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -27567,7 +25525,7 @@ export interface PublicIPAddresses { * * {Promise} A promise is returned. * - * @resolve {PublicIPAddressListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27575,83 +25533,98 @@ export interface PublicIPAddresses { * * {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. + * {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. */ - 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; + 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; /** - * Gets all public IP addresses in a resource group. + * Creates or updates a subnet in the specified virtual network. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} [options] Optional Parameters. + * @param {string} virtualNetworkName The name of the virtual network. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {string} subnetName The name of the subnet. * - * @returns {Promise} A promise is returned + * @param {object} subnetParameters Parameters supplied to the create or update + * subnet operation. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {string} [subnetParameters.addressPrefix] The address prefix for the + * subnet. * - * @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 {object} [subnetParameters.networkSecurityGroup] The reference of the + * NetworkSecurityGroup resource. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {array} [subnetParameters.networkSecurityGroup.securityRules] A + * collection of security rules of the network security group. * - * @param {object} [options] Optional Parameters. + * @param {array} [subnetParameters.networkSecurityGroup.defaultSecurityRules] + * The default security rules of network security group. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {string} [subnetParameters.networkSecurityGroup.resourceGuid] The + * resource GUID property of the network security group resource. * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {string} [subnetParameters.networkSecurityGroup.provisioningState] + * The provisioning state of the public IP resource. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {string} [subnetParameters.networkSecurityGroup.etag] A unique + * read-only string that changes whenever the resource is updated. * - * {Promise} A promise is returned. + * @param {string} [subnetParameters.networkSecurityGroup.id] Resource ID. * - * @resolve {PublicIPAddressListResult} - The deserialized result object. + * @param {string} [subnetParameters.networkSecurityGroup.location] Resource + * location. * - * @reject {Error|ServiceError} - The error object. + * @param {object} [subnetParameters.networkSecurityGroup.tags] Resource tags. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {object} [subnetParameters.routeTable] The reference of the + * RouteTable resource. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {array} [subnetParameters.routeTable.routes] Collection of routes + * contained within a route table. * - * {PublicIPAddressListResult} [result] - The deserialized result object if an error did not occur. - * See {@link PublicIPAddressListResult} for more - * information. + * @param {boolean} [subnetParameters.routeTable.disableBgpRoutePropagation] + * Gets or sets whether to disable the routes learned by BGP on that route + * table. True means disable. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {string} [subnetParameters.routeTable.provisioningState] The + * provisioning state of the resource. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. * - * {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} [subnetParameters.routeTable.etag] Gets a unique read-only + * string that changes whenever the resource is updated. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} [subnetParameters.routeTable.id] Resource ID. + * + * @param {string} [subnetParameters.routeTable.location] Resource location. + * + * @param {object} [subnetParameters.routeTable.tags] Resource tags. + * + * @param {array} [subnetParameters.serviceEndpoints] An array of service + * endpoints. + * + * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of + * references to the external resources using 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. * @@ -27660,18 +25633,93 @@ export interface PublicIPAddresses { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listVirtualMachineScaleSetPublicIPAddressesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, subnetName: string, subnetParameters: models.Subnet, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets information about all public IP addresses on a virtual machine scale - * set level. + * Creates or updates a subnet in the specified virtual network. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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 {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 {array} [subnetParameters.serviceEndpoints] An array of service + * endpoints. + * + * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of + * references to the external resources using 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. * @@ -27685,7 +25733,7 @@ export interface PublicIPAddresses { * * {Promise} A promise is returned. * - * @resolve {PublicIPAddressListResult} - The deserialized result object. + * @resolve {Subnet} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27693,22 +25741,20 @@ export interface PublicIPAddresses { * * {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. + * {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. */ - 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; + 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; /** - * Gets information about all public IP addresses in a virtual machine IP - * configuration in a virtual machine scale set. + * Gets all subnets in a virtual network. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -27720,15 +25766,14 @@ export interface PublicIPAddresses { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listVirtualMachineScaleSetVMPublicIPAddressesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(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. + * Gets all subnets in a virtual network. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -27745,7 +25790,7 @@ export interface PublicIPAddresses { * * {Promise} A promise is returned. * - * @resolve {PublicIPAddressListResult} - The deserialized result object. + * @resolve {SubnetListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27753,34 +25798,36 @@ export interface PublicIPAddresses { * * {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. + * {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. */ - 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; + 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 - * PublicIPPrefixes + * VirtualNetworkPeerings * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ -export interface PublicIPPrefixes { +export interface VirtualNetworkPeerings { /** - * Deletes the specified public IP prefix. + * Deletes the specified virtual network peering. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpPrefixName The name of the PublicIpPrefix. + * @param {string} virtualNetworkName The name of the virtual network. + * + * @param {string} virtualNetworkPeeringName The name of the virtual network + * peering. * * @param {object} [options] Optional Parameters. * @@ -27793,14 +25840,17 @@ export interface PublicIPPrefixes { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, publicIpPrefixName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified public IP prefix. + * Deletes the specified virtual network peering. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpPrefixName The name of the PublicIpPrefix. + * @param {string} virtualNetworkName The name of the virtual network. + * + * @param {string} virtualNetworkPeeringName The name of the virtual network + * peering. * * @param {object} [options] Optional Parameters. * @@ -27828,43 +25878,45 @@ export interface PublicIPPrefixes { * * {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; + 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 public IP prefix in a specified resource group. + * Gets the specified virtual network peering. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpPrefixName The name of the PublicIPPrefx. + * @param {string} virtualNetworkName The name of the virtual network. * - * @param {object} [options] Optional Parameters. + * @param {string} virtualNetworkPeeringName The name of the virtual network + * peering. * - * @param {string} [options.expand] Expands referenced resources. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified public IP prefix in a specified resource group. + * Gets the specified virtual network peering. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpPrefixName The name of the PublicIPPrefx. + * @param {string} virtualNetworkName The name of the virtual network. * - * @param {object} [options] Optional Parameters. + * @param {string} virtualNetworkPeeringName The name of the virtual network + * peering. * - * @param {string} [options.expand] Expands referenced resources. + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -27876,7 +25928,7 @@ export interface PublicIPPrefixes { * * {Promise} A promise is returned. * - * @resolve {PublicIPPrefix} - The deserialized result object. + * @resolve {VirtualNetworkPeering} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -27884,66 +25936,81 @@ export interface PublicIPPrefixes { * * {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. + * {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, 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; + 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 static or dynamic public IP prefix. + * Creates or updates a peering in the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpPrefixName The name of the public IP prefix. + * @param {string} virtualNetworkName The name of the virtual network. * - * @param {object} parameters Parameters supplied to the create or update - * public IP prefix operation. + * @param {string} virtualNetworkPeeringName The name of the peering. * - * @param {object} [parameters.sku] The public IP prefix SKU. + * @param {object} virtualNetworkPeeringParameters Parameters supplied to the + * create or update virtual network peering operation. * - * @param {string} [parameters.sku.name] Name of a public IP prefix SKU. - * Possible values include: 'Standard' + * @param {boolean} [virtualNetworkPeeringParameters.allowVirtualNetworkAccess] + * Whether the VMs in the linked virtual network space would be able to access + * all the VMs in local Virtual network space. * - * @param {string} [parameters.publicIPAddressVersion] The public IP address - * version. Possible values are: 'IPv4' and 'IPv6'. Possible values include: - * 'IPv4', 'IPv6' + * @param {boolean} [virtualNetworkPeeringParameters.allowForwardedTraffic] + * Whether the forwarded traffic from the VMs in the remote virtual network + * will be allowed/disallowed. * - * @param {array} [parameters.ipTags] The list of tags associated with the - * public IP prefix. + * @param {boolean} [virtualNetworkPeeringParameters.allowGatewayTransit] If + * gateway links can be used in remote virtual networking to link to this + * virtual network. * - * @param {number} [parameters.prefixLength] The Length of the Public IP - * Prefix. + * @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 {string} [parameters.ipPrefix] The allocated Prefix + * @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 {array} [parameters.publicIPAddresses] The list of all referenced - * PublicIPAddresses + * @param {string} [virtualNetworkPeeringParameters.remoteVirtualNetwork.id] + * Resource ID. * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * public IP prefix resource. + * @param {object} [virtualNetworkPeeringParameters.remoteAddressSpace] The + * reference of the remote virtual network address space. * - * @param {string} [parameters.provisioningState] The provisioning state of the - * Public IP prefix resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. + * @param {array} + * [virtualNetworkPeeringParameters.remoteAddressSpace.addressPrefixes] A list + * of address blocks reserved for this virtual network in CIDR notation. * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @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 {array} [parameters.zones] A list of availability zones denoting the - * IP allocated for the resource needs to come from. + * @param {string} [virtualNetworkPeeringParameters.provisioningState] The + * provisioning state of the resource. * - * @param {string} [parameters.id] Resource ID. + * @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} [parameters.location] Resource location. + * @param {string} [virtualNetworkPeeringParameters.etag] A unique read-only + * string that changes whenever the resource is updated. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} [virtualNetworkPeeringParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -27952,60 +26019,75 @@ export interface PublicIPPrefixes { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, virtualNetworkPeeringParameters: models.VirtualNetworkPeering, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a static or dynamic public IP prefix. + * Creates or updates a peering in the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpPrefixName The name of the public IP prefix. + * @param {string} virtualNetworkName The name of the virtual network. * - * @param {object} parameters Parameters supplied to the create or update - * public IP prefix operation. + * @param {string} virtualNetworkPeeringName The name of the peering. * - * @param {object} [parameters.sku] The public IP prefix SKU. + * @param {object} virtualNetworkPeeringParameters Parameters supplied to the + * create or update virtual network peering operation. * - * @param {string} [parameters.sku.name] Name of a public IP prefix SKU. - * Possible values include: 'Standard' + * @param {boolean} [virtualNetworkPeeringParameters.allowVirtualNetworkAccess] + * Whether the VMs in the linked virtual network space would be able to access + * all the VMs in local Virtual network space. * - * @param {string} [parameters.publicIPAddressVersion] The public IP address - * version. Possible values are: 'IPv4' and 'IPv6'. Possible values include: - * 'IPv4', 'IPv6' + * @param {boolean} [virtualNetworkPeeringParameters.allowForwardedTraffic] + * Whether the forwarded traffic from the VMs in the remote virtual network + * will be allowed/disallowed. * - * @param {array} [parameters.ipTags] The list of tags associated with the - * public IP prefix. + * @param {boolean} [virtualNetworkPeeringParameters.allowGatewayTransit] If + * gateway links can be used in remote virtual networking to link to this + * virtual network. * - * @param {number} [parameters.prefixLength] The Length of the Public IP - * Prefix. + * @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 {string} [parameters.ipPrefix] The allocated Prefix + * @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 {array} [parameters.publicIPAddresses] The list of all referenced - * PublicIPAddresses + * @param {string} [virtualNetworkPeeringParameters.remoteVirtualNetwork.id] + * Resource ID. * - * @param {string} [parameters.resourceGuid] The resource GUID property of the - * public IP prefix resource. + * @param {object} [virtualNetworkPeeringParameters.remoteAddressSpace] The + * reference of the remote virtual network address space. * - * @param {string} [parameters.provisioningState] The provisioning state of the - * Public IP prefix resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. + * @param {array} + * [virtualNetworkPeeringParameters.remoteAddressSpace.addressPrefixes] A list + * of address blocks reserved for this virtual network in CIDR notation. * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @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 {array} [parameters.zones] A list of availability zones denoting the - * IP allocated for the resource needs to come from. + * @param {string} [virtualNetworkPeeringParameters.provisioningState] The + * provisioning state of the resource. * - * @param {string} [parameters.id] Resource ID. + * @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} [parameters.location] Resource location. + * @param {string} [virtualNetworkPeeringParameters.etag] A unique read-only + * string that changes whenever the resource is updated. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} [virtualNetworkPeeringParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -28019,7 +26101,7 @@ export interface PublicIPPrefixes { * * {Promise} A promise is returned. * - * @resolve {PublicIPPrefix} - The deserialized result object. + * @resolve {VirtualNetworkPeering} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28027,29 +26109,24 @@ export interface PublicIPPrefixes { * * {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. + * {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, 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; + 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; /** - * Updates public IP prefix tags. + * Gets all virtual network peerings in a virtual network. * * @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 {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * @@ -28058,23 +26135,18 @@ export interface PublicIPPrefixes { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates public IP prefix tags. + * Gets all virtual network peerings in a virtual network. * * @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 {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * @@ -28088,7 +26160,7 @@ export interface PublicIPPrefixes { * * {Promise} A promise is returned. * - * @resolve {PublicIPPrefix} - The deserialized result object. + * @resolve {VirtualNetworkPeeringListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28096,20 +26168,28 @@ export interface PublicIPPrefixes { * * {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. + * {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. */ - 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; + 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; /** - * Gets all the public IP prefixes in a subscription. + * 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. * @@ -28118,14 +26198,21 @@ export interface PublicIPPrefixes { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the public IP prefixes in a subscription. + * 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. * @@ -28139,7 +26226,7 @@ export interface PublicIPPrefixes { * * {Promise} A promise is returned. * - * @resolve {PublicIPPrefixListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28147,81 +26234,80 @@ export interface PublicIPPrefixes { * * {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. + * {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. */ - listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listAll(callback: ServiceCallback): void; - listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * Gets all public IP prefixes in a resource group. + * Creates or updates a peering in the specified virtual network. * * @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} virtualNetworkName The name of the virtual network. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} virtualNetworkPeeringName The name of the peering. * - * @param {object} [options] Optional Parameters. + * @param {object} virtualNetworkPeeringParameters Parameters supplied to the + * create or update virtual network peering operation. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {boolean} [virtualNetworkPeeringParameters.allowVirtualNetworkAccess] + * Whether the VMs in the linked virtual network space would be able to access + * all the VMs in local Virtual network space. * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {boolean} [virtualNetworkPeeringParameters.allowForwardedTraffic] + * Whether the forwarded traffic from the VMs in the remote virtual network + * will be allowed/disallowed. * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {boolean} [virtualNetworkPeeringParameters.allowGatewayTransit] If + * gateway links can be used in remote virtual networking to link to this + * virtual network. * - * {Promise} A promise is returned. + * @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. * - * @resolve {PublicIPPrefixListResult} - The deserialized result object. + * @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). * - * @reject {Error|ServiceError} - The error object. + * @param {string} [virtualNetworkPeeringParameters.remoteVirtualNetwork.id] + * Resource ID. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {object} [virtualNetworkPeeringParameters.remoteAddressSpace] The + * reference of the remote virtual network address space. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {array} + * [virtualNetworkPeeringParameters.remoteAddressSpace.addressPrefixes] A list + * of address blocks reserved for this virtual network in CIDR notation. * - * {PublicIPPrefixListResult} [result] - The deserialized result object if an error did not occur. - * See {@link PublicIPPrefixListResult} for more - * information. + * @param {string} [virtualNetworkPeeringParameters.peeringState] The status of + * the virtual network peering. Possible values are 'Initiated', 'Connected', + * and 'Disconnected'. Possible values include: 'Initiated', 'Connected', + * 'Disconnected' * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {string} [virtualNetworkPeeringParameters.provisioningState] The + * provisioning state of the resource. * - * {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} [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} resourceGroupName The name of the resource group. + * @param {string} [virtualNetworkPeeringParameters.etag] A unique read-only + * string that changes whenever the resource is updated. * - * @param {string} publicIpPrefixName The name of the PublicIpPrefix. + * @param {string} [virtualNetworkPeeringParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * @@ -28230,22 +26316,79 @@ export interface PublicIPPrefixes { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, publicIpPrefixName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, virtualNetworkPeeringParameters: models.VirtualNetworkPeering, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified public IP prefix. + * Creates or updates a peering in the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpPrefixName The name of the PublicIpPrefix. + * @param {string} virtualNetworkName The name of the virtual network. * - * @param {object} [options] Optional Parameters. + * @param {string} virtualNetworkPeeringName The name of the peering. * - * @param {object} [options.customHeaders] Headers that will be added to the + * @param {object} virtualNetworkPeeringParameters Parameters supplied to the + * create or update virtual network peering operation. + * + * @param {boolean} [virtualNetworkPeeringParameters.allowVirtualNetworkAccess] + * Whether the VMs in the linked virtual network space would be able to access + * all the VMs in local Virtual network space. + * + * @param {boolean} [virtualNetworkPeeringParameters.allowForwardedTraffic] + * Whether the forwarded traffic from the VMs in the remote virtual network + * will be allowed/disallowed. + * + * @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. @@ -28255,7 +26398,7 @@ export interface PublicIPPrefixes { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VirtualNetworkPeering} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28263,59 +26406,185 @@ export interface PublicIPPrefixes { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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 static or dynamic public IP prefix. + * Creates or updates a virtual network gateway in the specified resource + * group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpPrefixName The name of the public IP prefix. + * @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 {object} parameters Parameters supplied to the create or update - * public IP prefix operation. + * @param {string} [parameters.gatewayType] The type of this virtual network + * gateway. Possible values are: 'Vpn' and 'ExpressRoute'. Possible values + * include: 'Vpn', 'ExpressRoute' * - * @param {object} [parameters.sku] The public IP prefix SKU. + * @param {string} [parameters.vpnType] The type of this virtual network + * gateway. Possible values are: 'PolicyBased' and 'RouteBased'. Possible + * values include: 'PolicyBased', 'RouteBased' * - * @param {string} [parameters.sku.name] Name of a public IP prefix SKU. - * Possible values include: 'Standard' + * @param {boolean} [parameters.enableBgp] Whether BGP is enabled for this + * virtual network gateway or not. * - * @param {string} [parameters.publicIPAddressVersion] The public IP address - * version. Possible values are: 'IPv4' and 'IPv6'. Possible values include: - * 'IPv4', 'IPv6' + * @param {boolean} [parameters.activeActive] ActiveActive flag * - * @param {array} [parameters.ipTags] The list of tags associated with the - * public IP prefix. + * @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 {number} [parameters.prefixLength] The Length of the Public IP - * Prefix. + * @param {string} [parameters.gatewayDefaultSite.id] Resource ID. * - * @param {string} [parameters.ipPrefix] The allocated Prefix + * @param {object} [parameters.sku] The reference of the + * VirtualNetworkGatewaySku resource which represents the SKU selected for + * Virtual network gateway. * - * @param {array} [parameters.publicIPAddresses] The list of all referenced - * PublicIPAddresses + * @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.resourceGuid] The resource GUID property of the - * public IP prefix resource. + * @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 {string} [parameters.provisioningState] The provisioning state of the - * Public IP prefix resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. + * @param {number} [parameters.sku.capacity] The capacity. * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @param {object} [parameters.vpnClientConfiguration] The reference of the + * VpnClientConfiguration resource which represents the P2S VpnClient + * configurations. * - * @param {array} [parameters.zones] A list of availability zones denoting the - * IP allocated for the resource needs to come from. + * @param {object} [parameters.vpnClientConfiguration.vpnClientAddressPool] The + * reference of the address space resource which represents Address space for + * P2S VpnClient. + * + * @param {array} + * [parameters.vpnClientConfiguration.vpnClientAddressPool.addressPrefixes] A + * list of address blocks reserved for this virtual network in CIDR notation. + * + * @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 {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. * @@ -28330,54 +26599,112 @@ export interface PublicIPPrefixes { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VirtualNetworkGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a static or dynamic public IP prefix. + * Creates or updates a virtual network gateway in the specified resource + * group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} publicIpPrefixName The name of the public IP prefix. + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * - * @param {object} parameters Parameters supplied to the create or update - * public IP prefix operation. + * @param {object} parameters Parameters supplied to create or update virtual + * network gateway operation. + * + * @param {array} [parameters.ipConfigurations] IP configurations for virtual + * network gateway. * - * @param {object} [parameters.sku] The public IP prefix SKU. + * @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.sku.name] Name of a public IP prefix SKU. - * Possible values include: 'Standard' + * @param {string} [parameters.vpnType] The type of this virtual network + * gateway. Possible values are: 'PolicyBased' and 'RouteBased'. Possible + * values include: 'PolicyBased', 'RouteBased' * - * @param {string} [parameters.publicIPAddressVersion] The public IP address - * version. Possible values are: 'IPv4' and 'IPv6'. Possible values include: - * 'IPv4', 'IPv6' + * @param {boolean} [parameters.enableBgp] Whether BGP is enabled for this + * virtual network gateway or not. * - * @param {array} [parameters.ipTags] The list of tags associated with the - * public IP prefix. + * @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 {number} [parameters.prefixLength] The Length of the Public IP - * Prefix. + * @param {string} [parameters.gatewayDefaultSite.id] Resource ID. * - * @param {string} [parameters.ipPrefix] The allocated Prefix + * @param {object} [parameters.sku] The reference of the + * VirtualNetworkGatewaySku resource which represents the SKU selected for + * Virtual network gateway. * - * @param {array} [parameters.publicIPAddresses] The list of all referenced - * PublicIPAddresses + * @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.resourceGuid] The resource GUID property of the - * public IP prefix resource. + * @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 {string} [parameters.provisioningState] The provisioning state of the - * Public IP prefix resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. + * @param {number} [parameters.sku.capacity] The capacity. * - * @param {string} [parameters.etag] A unique read-only string that changes - * whenever the resource is updated. + * @param {object} [parameters.vpnClientConfiguration] The reference of the + * VpnClientConfiguration resource which represents the P2S VpnClient + * configurations. * - * @param {array} [parameters.zones] A list of availability zones denoting the - * IP allocated for the resource needs to come from. + * @param {object} [parameters.vpnClientConfiguration.vpnClientAddressPool] The + * reference of the address space resource which represents Address space for + * P2S VpnClient. + * + * @param {array} + * [parameters.vpnClientConfiguration.vpnClientAddressPool.addressPrefixes] A + * list of address blocks reserved for this virtual network in CIDR notation. + * + * @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 {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. * @@ -28397,7 +26724,7 @@ export interface PublicIPPrefixes { * * {Promise} A promise is returned. * - * @resolve {PublicIPPrefix} - The deserialized result object. + * @resolve {VirtualNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28405,29 +26732,25 @@ export interface PublicIPPrefixes { * * {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. + * {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, 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; + 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; /** - * Updates public IP prefix tags. + * Gets the specified virtual network gateway by resource group. * * @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 {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -28436,23 +26759,19 @@ export interface PublicIPPrefixes { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates public IP prefix tags. + * Gets the specified virtual network gateway by resource group. * * @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 {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -28466,7 +26785,7 @@ export interface PublicIPPrefixes { * * {Promise} A promise is returned. * - * @resolve {PublicIPPrefix} - The deserialized result object. + * @resolve {VirtualNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28474,23 +26793,25 @@ export interface PublicIPPrefixes { * * {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. + * {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, 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; + 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; /** - * Gets all the public IP prefixes in a subscription. + * Deletes the specified virtual network gateway. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -28499,17 +26820,19 @@ export interface PublicIPPrefixes { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the public IP prefixes in a subscription. + * Deletes the specified virtual network gateway. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -28523,7 +26846,7 @@ export interface PublicIPPrefixes { * * {Promise} A promise is returned. * - * @resolve {PublicIPPrefixListResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28531,24 +26854,29 @@ export interface PublicIPPrefixes { * * {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. + * {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. */ - 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; + 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; /** - * Gets all public IP prefixes in a resource group. + * Updates a virtual network gateway tags. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -28557,17 +26885,24 @@ export interface PublicIPPrefixes { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateTagsWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all public IP prefixes in a resource group. + * Updates a virtual network gateway tags. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -28581,7 +26916,7 @@ export interface PublicIPPrefixes { * * {Promise} A promise is returned. * - * @resolve {PublicIPPrefixListResult} - The deserialized result object. + * @resolve {VirtualNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28589,35 +26924,23 @@ export interface PublicIPPrefixes { * * {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. + * {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. */ - 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 { + 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; /** - * Deletes the specified route filter. + * Gets all virtual network gateways by resource group. * * @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 @@ -28625,19 +26948,17 @@ export interface RouteFilters { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified route filter. + * Gets all virtual network gateways by resource group. * * @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 @@ -28650,7 +26971,7 @@ export interface RouteFilters { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VirtualNetworkGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28658,52 +26979,50 @@ export interface RouteFilters { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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 the specified route filter. + * Gets all the connections in a virtual network gateway. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} routeFilterName The name of the route filter. + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * * @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. + * @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>; + listConnectionsWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified route filter. + * Gets all the connections in a virtual network gateway. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} routeFilterName The name of the route filter. + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * * @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 * @@ -28714,7 +27033,7 @@ export interface RouteFilters { * * {Promise} A promise is returned. * - * @resolve {RouteFilter} - The deserialized result object. + * @resolve {VirtualNetworkGatewayListConnectionsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28722,77 +27041,58 @@ export interface RouteFilters { * * {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. + * {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. */ - 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; + 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; /** - * Creates or updates a route filter in a specified resource group. + * Resets the primary of the virtual network gateway in the 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 {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. + * @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>; + resetWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { gatewayVip? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a route filter in a specified resource group. + * Resets the primary of the virtual network gateway in the 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 {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 * @@ -28803,7 +27103,7 @@ export interface RouteFilters { * * {Promise} A promise is returned. * - * @resolve {RouteFilter} - The deserialized result object. + * @resolve {VirtualNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28811,37 +27111,46 @@ export interface RouteFilters { * * {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. + * {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, 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; + 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; /** - * Updates a route filter in a specified resource group. + * 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} routeFilterName The name of the route filter. + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * - * @param {object} routeFilterParameters Parameters supplied to the update - * route filter operation. + * @param {object} parameters Parameters supplied to the generate virtual + * network gateway VPN client package operation. * - * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules - * contained within a route filter. + * @param {string} [parameters.processorArchitecture] VPN client Processor + * Architecture. Possible values are: 'AMD64' and 'X86'. Possible values + * include: 'Amd64', 'X86' * - * @param {array} [routeFilterParameters.peerings] A collection of references - * to express route circuit peerings. + * @param {string} [parameters.authenticationMethod] VPN client Authentication + * Method. Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values + * include: 'EAPTLS', 'EAPMSCHAPv2' * - * @param {object} [routeFilterParameters.tags] Resource tags. + * @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 {string} [routeFilterParameters.id] Resource ID. + * @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. * @@ -28850,31 +27159,40 @@ export interface RouteFilters { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + generatevpnclientpackageWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates a route filter in a specified resource group. + * 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} routeFilterName The name of the route filter. + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * - * @param {object} routeFilterParameters Parameters supplied to the update - * route filter operation. + * @param {object} parameters Parameters supplied to the generate virtual + * network gateway VPN client package operation. * - * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules - * contained within a route filter. + * @param {string} [parameters.processorArchitecture] VPN client Processor + * Architecture. Possible values are: 'AMD64' and 'X86'. Possible values + * include: 'Amd64', 'X86' * - * @param {array} [routeFilterParameters.peerings] A collection of references - * to express route circuit peerings. + * @param {string} [parameters.authenticationMethod] VPN client Authentication + * Method. Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values + * include: 'EAPTLS', 'EAPMSCHAPv2' * - * @param {object} [routeFilterParameters.tags] Resource tags. + * @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 {string} [routeFilterParameters.id] Resource ID. + * @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. * @@ -28888,7 +27206,7 @@ export interface RouteFilters { * * {Promise} A promise is returned. * - * @resolve {RouteFilter} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28896,23 +27214,46 @@ export interface RouteFilters { * * {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. + * {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. */ - 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; + 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; /** - * Gets all route filters in a resource group. + * 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 are: 'EAPTLS' and 'EAPMSCHAPv2'. 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 @@ -28920,17 +27261,41 @@ export interface RouteFilters { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + generateVpnProfileWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all route filters in a resource group. + * 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 are: 'EAPTLS' and 'EAPMSCHAPv2'. 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 @@ -28943,7 +27308,7 @@ export interface RouteFilters { * * {Promise} A promise is returned. * - * @resolve {RouteFilterListResult} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -28951,20 +27316,26 @@ export interface RouteFilters { * * {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. + * {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. */ - 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; + 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 all route filters in a subscription. + * 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. * @@ -28973,14 +27344,21 @@ export interface RouteFilters { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getVpnProfilePackageUrlWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all route filters in a subscription. + * 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. * @@ -28994,7 +27372,7 @@ export interface RouteFilters { * * {Promise} A promise is returned. * - * @resolve {RouteFilterListResult} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29002,47 +27380,54 @@ export interface RouteFilters { * * {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. + * {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. */ - list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - list(callback: ServiceCallback): void; - list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * Deletes the specified route filter. + * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} routeFilterName The name of the route filter. + * @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. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getBgpPeerStatusWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { peer? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified route filter. + * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} routeFilterName The name of the route filter. + * @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 * @@ -29053,7 +27438,7 @@ export interface RouteFilters { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {BgpPeerStatusListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29061,38 +27446,26 @@ export interface RouteFilters { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Creates or updates a route filter in a specified resource group. + * Gets a xml format representation for supported vpn devices. * * @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 {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -29101,33 +27474,19 @@ export interface RouteFilters { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + supportedVpnDevicesWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a route filter in a specified resource group. + * Gets a xml format representation for supported vpn devices. * * @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 {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -29141,7 +27500,7 @@ export interface RouteFilters { * * {Promise} A promise is returned. * - * @resolve {RouteFilter} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29149,37 +27508,25 @@ export interface RouteFilters { * * {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. + * {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. */ - 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; + 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; /** - * Updates a route filter in a specified resource group. + * 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} 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 {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -29188,31 +27535,20 @@ export interface RouteFilters { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getLearnedRoutesWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates a route filter in a specified resource group. + * 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} 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 {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -29226,7 +27562,7 @@ export interface RouteFilters { * * {Promise} A promise is returned. * - * @resolve {RouteFilter} - The deserialized result object. + * @resolve {GatewayRouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29234,23 +27570,29 @@ export interface RouteFilters { * * {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. + * {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. */ - 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; + 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; /** - * Gets all route filters in a resource group. + * This operation retrieves a list of routes the virtual network gateway is + * advertising to the specified peer. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -29259,17 +27601,22 @@ export interface RouteFilters { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getAdvertisedRoutesWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, peer: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all route filters in a resource group. + * This operation retrieves a list of routes the virtual network gateway is + * advertising to the specified peer. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -29283,7 +27630,7 @@ export interface RouteFilters { * * {Promise} A promise is returned. * - * @resolve {RouteFilterListResult} - The deserialized result object. + * @resolve {GatewayRouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29291,23 +27638,64 @@ export interface RouteFilters { * * {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. + * {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. */ - 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; + 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; /** - * Gets all route filters in a subscription. + * 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} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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 Groups 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 Groups 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. * @@ -29316,17 +27704,57 @@ export interface RouteFilters { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + setVpnclientIpsecParametersWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, vpnclientIpsecParams: models.VpnClientIPsecParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all route filters in a subscription. + * 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} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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 Groups 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 Groups 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. * @@ -29340,7 +27768,7 @@ export interface RouteFilters { * * {Promise} A promise is returned. * - * @resolve {RouteFilterListResult} - The deserialized result object. + * @resolve {VpnClientIPsecParameters} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29348,35 +27776,27 @@ export interface RouteFilters { * * {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. + * {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. */ - 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 { + 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; /** - * Deletes the specified rule from a route filter. + * 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} routeFilterName The name of the route filter. - * - * @param {string} ruleName The name of the rule. + * @param {string} virtualNetworkGatewayName The virtual network gateway name. * * @param {object} [options] Optional Parameters. * @@ -29385,20 +27805,20 @@ export interface RouteFilterRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getVpnclientIpsecParametersWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified rule from a route filter. + * 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} routeFilterName The name of the route filter. - * - * @param {string} ruleName The name of the rule. + * @param {string} virtualNetworkGatewayName The virtual network gateway name. * * @param {object} [options] Optional Parameters. * @@ -29412,7 +27832,7 @@ export interface RouteFilterRules { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VpnClientIPsecParameters} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29420,25 +27840,37 @@ export interface RouteFilterRules { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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 the specified rule from a route filter. + * Gets a xml format representation for vpn device configuration script. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} routeFilterName The name of the route filter. + * @param {string} virtualNetworkGatewayConnectionName The name of the virtual + * network gateway connection for which the configuration script is generated. * - * @param {string} ruleName The name of the rule. + * @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. * @@ -29447,20 +27879,30 @@ export interface RouteFilterRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + vpnDeviceConfigurationScriptWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.VpnDeviceScriptParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified rule from a route filter. + * Gets a xml format representation for vpn device configuration script. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} routeFilterName The name of the route filter. + * @param {string} virtualNetworkGatewayConnectionName The name of the virtual + * network gateway connection for which the configuration script is generated. * - * @param {string} ruleName The name of the rule. + * @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. * @@ -29474,7 +27916,7 @@ export interface RouteFilterRules { * * {Promise} A promise is returned. * - * @resolve {RouteFilterRule} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29482,44 +27924,123 @@ export interface RouteFilterRules { * * {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. + * {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. */ - 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; + 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 route in the specified route filter. + * Creates or updates a virtual network gateway in the specified resource + * group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} routeFilterName The name of the route filter. + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * - * @param {string} ruleName The name of the route filter rule. + * @param {object} parameters Parameters supplied to create or update virtual + * network gateway operation. * - * @param {object} routeFilterRuleParameters Parameters supplied to the create - * or update route filter rule operation. + * @param {array} [parameters.ipConfigurations] IP configurations for virtual + * network gateway. * - * @param {string} routeFilterRuleParameters.access The access type of the - * rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', - * 'Deny' + * @param {string} [parameters.gatewayType] The type of this virtual network + * gateway. Possible values are: 'Vpn' and 'ExpressRoute'. Possible values + * include: 'Vpn', 'ExpressRoute' * - * @param {array} routeFilterRuleParameters.communities The collection for bgp - * community values to filter on. e.g. ['12076:5010','12076:5020'] + * @param {string} [parameters.vpnType] The type of this virtual network + * gateway. Possible values are: 'PolicyBased' and 'RouteBased'. Possible + * values include: 'PolicyBased', 'RouteBased' * - * @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 {boolean} [parameters.enableBgp] Whether BGP is enabled for this + * virtual network gateway or not. * - * @param {string} [routeFilterRuleParameters.location] Resource location. + * @param {boolean} [parameters.activeActive] ActiveActive flag * - * @param {string} [routeFilterRuleParameters.id] Resource ID. + * @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.vpnClientAddressPool.addressPrefixes] A + * list of address blocks reserved for this virtual network in CIDR notation. + * + * @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 {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. * @@ -29528,38 +28049,118 @@ export interface RouteFilterRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VirtualNetworkGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a route in the specified route filter. + * Creates or updates a virtual network gateway in the specified resource + * group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} routeFilterName The name of the route filter. + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * - * @param {string} ruleName The name of the route filter rule. + * @param {object} parameters Parameters supplied to create or update virtual + * network gateway operation. * - * @param {object} routeFilterRuleParameters Parameters supplied to the create - * or update route filter rule operation. + * @param {array} [parameters.ipConfigurations] IP configurations for virtual + * network gateway. * - * @param {string} routeFilterRuleParameters.access The access type of the - * rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', - * 'Deny' + * @param {string} [parameters.gatewayType] The type of this virtual network + * gateway. Possible values are: 'Vpn' and 'ExpressRoute'. Possible values + * include: 'Vpn', 'ExpressRoute' * - * @param {array} routeFilterRuleParameters.communities The collection for bgp - * community values to filter on. e.g. ['12076:5010','12076:5020'] + * @param {string} [parameters.vpnType] The type of this virtual network + * gateway. Possible values are: 'PolicyBased' and 'RouteBased'. Possible + * values include: 'PolicyBased', 'RouteBased' * - * @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 {boolean} [parameters.enableBgp] Whether BGP is enabled for this + * virtual network gateway or not. * - * @param {string} [routeFilterRuleParameters.location] Resource location. + * @param {boolean} [parameters.activeActive] ActiveActive flag * - * @param {string} [routeFilterRuleParameters.id] Resource ID. + * @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.vpnClientAddressPool.addressPrefixes] A + * list of address blocks reserved for this virtual network in CIDR notation. + * + * @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 {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. * @@ -29573,7 +28174,7 @@ export interface RouteFilterRules { * * {Promise} A promise is returned. * - * @resolve {RouteFilterRule} - The deserialized result object. + * @resolve {VirtualNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29581,38 +28182,25 @@ export interface RouteFilterRules { * * {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. + * {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, 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; + 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; /** - * Updates a route in the specified route filter. + * Deletes the specified virtual network gateway. * * @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. Valid values are: 'Allow', 'Deny'. 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 {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -29621,32 +28209,19 @@ export interface RouteFilterRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates a route in the specified route filter. + * Deletes the specified virtual network gateway. * * @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. Valid values are: 'Allow', 'Deny'. 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 {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -29660,7 +28235,7 @@ export interface RouteFilterRules { * * {Promise} A promise is returned. * - * @resolve {RouteFilterRule} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29668,24 +28243,29 @@ export interface RouteFilterRules { * * {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. + * {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. */ - 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; + 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; /** - * Gets all RouteFilterRules in a route filter. + * Updates a virtual network gateway tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} routeFilterName The name of the route filter. + * @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. * @@ -29694,18 +28274,24 @@ export interface RouteFilterRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByRouteFilterWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all RouteFilterRules in a route filter. + * Updates a virtual network gateway tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} routeFilterName The name of the route filter. + * @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. * @@ -29719,7 +28305,7 @@ export interface RouteFilterRules { * * {Promise} A promise is returned. * - * @resolve {RouteFilterRuleListResult} - The deserialized result object. + * @resolve {VirtualNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29727,52 +28313,57 @@ export interface RouteFilterRules { * * {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. + * {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. */ - 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; + 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; /** - * Deletes the specified rule from a route filter. + * Resets the primary of the virtual network gateway in the specified resource + * group. * * @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 {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. + * @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>; + beginResetWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { gatewayVip? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified rule from a route filter. + * Resets the primary of the virtual network gateway in the specified resource + * group. * * @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 {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 * @@ -29783,7 +28374,7 @@ export interface RouteFilterRules { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VirtualNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29791,43 +28382,46 @@ export interface RouteFilterRules { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Creates or updates a route in the specified route filter. + * 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} 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} virtualNetworkGatewayName The name of the virtual network + * gateway. * - * @param {string} routeFilterRuleParameters.access The access type of the - * rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', - * 'Deny' + * @param {object} parameters Parameters supplied to the generate virtual + * network gateway VPN client package operation. * - * @param {array} routeFilterRuleParameters.communities The collection for bgp - * community values to filter on. e.g. ['12076:5010','12076:5020'] + * @param {string} [parameters.processorArchitecture] VPN client Processor + * Architecture. Possible values are: 'AMD64' and 'X86'. Possible values + * include: 'Amd64', 'X86' * - * @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} [parameters.authenticationMethod] VPN client Authentication + * Method. Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values + * include: 'EAPTLS', 'EAPMSCHAPv2' * - * @param {string} [routeFilterRuleParameters.location] Resource location. + * @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 {string} [routeFilterRuleParameters.id] Resource ID. + * @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. * @@ -29836,38 +28430,40 @@ export interface RouteFilterRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginGeneratevpnclientpackageWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a route in the specified route filter. + * 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} 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} virtualNetworkGatewayName The name of the virtual network + * gateway. * - * @param {string} routeFilterRuleParameters.access The access type of the - * rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', - * 'Deny' + * @param {object} parameters Parameters supplied to the generate virtual + * network gateway VPN client package operation. * - * @param {array} routeFilterRuleParameters.communities The collection for bgp - * community values to filter on. e.g. ['12076:5010','12076:5020'] + * @param {string} [parameters.processorArchitecture] VPN client Processor + * Architecture. Possible values are: 'AMD64' and 'X86'. Possible values + * include: 'Amd64', 'X86' * - * @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} [parameters.authenticationMethod] VPN client Authentication + * Method. Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values + * include: 'EAPTLS', 'EAPMSCHAPv2' * - * @param {string} [routeFilterRuleParameters.location] Resource location. + * @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 {string} [routeFilterRuleParameters.id] Resource ID. + * @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. * @@ -29881,7 +28477,7 @@ export interface RouteFilterRules { * * {Promise} A promise is returned. * - * @resolve {RouteFilterRule} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29889,38 +28485,45 @@ export interface RouteFilterRules { * * {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. + * {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. */ - 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; + beginGeneratevpnclientpackage(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginGeneratevpnclientpackage(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, callback: ServiceCallback): void; + beginGeneratevpnclientpackage(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Updates a route in the specified route filter. + * 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} routeFilterName The name of the route filter. + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * - * @param {string} ruleName The name of the route filter rule. + * @param {object} parameters Parameters supplied to the generate virtual + * network gateway VPN client package operation. * - * @param {object} routeFilterRuleParameters Parameters supplied to the update - * route filter rule operation. + * @param {string} [parameters.processorArchitecture] VPN client Processor + * Architecture. Possible values are: 'AMD64' and 'X86'. Possible values + * include: 'Amd64', 'X86' * - * @param {string} routeFilterRuleParameters.access The access type of the - * rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', - * 'Deny' + * @param {string} [parameters.authenticationMethod] VPN client Authentication + * Method. Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values + * include: 'EAPTLS', 'EAPMSCHAPv2' * - * @param {array} routeFilterRuleParameters.communities The collection for bgp - * community values to filter on. e.g. ['12076:5010','12076:5020'] + * @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 {string} [routeFilterRuleParameters.id] Resource ID. + * @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. * @@ -29929,32 +28532,40 @@ export interface RouteFilterRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginGenerateVpnProfileWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates a route in the specified route filter. + * 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} routeFilterName The name of the route filter. + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * - * @param {string} ruleName The name of the route filter rule. + * @param {object} parameters Parameters supplied to the generate virtual + * network gateway VPN client package operation. * - * @param {object} routeFilterRuleParameters Parameters supplied to the update - * route filter rule operation. + * @param {string} [parameters.processorArchitecture] VPN client Processor + * Architecture. Possible values are: 'AMD64' and 'X86'. Possible values + * include: 'Amd64', 'X86' * - * @param {string} routeFilterRuleParameters.access The access type of the - * rule. Valid values are: 'Allow', 'Deny'. Possible values include: 'Allow', - * 'Deny' + * @param {string} [parameters.authenticationMethod] VPN client Authentication + * Method. Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values + * include: 'EAPTLS', 'EAPMSCHAPv2' * - * @param {array} routeFilterRuleParameters.communities The collection for bgp - * community values to filter on. e.g. ['12076:5010','12076:5020'] + * @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 {string} [routeFilterRuleParameters.id] Resource ID. + * @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. * @@ -29968,7 +28579,7 @@ export interface RouteFilterRules { * * {Promise} A promise is returned. * - * @resolve {RouteFilterRule} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -29976,23 +28587,26 @@ export interface RouteFilterRules { * * {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. + * {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. */ - 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; + beginGenerateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginGenerateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, callback: ServiceCallback): void; + beginGenerateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets all RouteFilterRules in a route filter. + * 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} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -30001,17 +28615,21 @@ export interface RouteFilterRules { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByRouteFilterNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginGetVpnProfilePackageUrlWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all RouteFilterRules in a route filter. + * 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} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -30025,7 +28643,7 @@ export interface RouteFilterRules { * * {Promise} A promise is returned. * - * @resolve {RouteFilterRuleListResult} - The deserialized result object. + * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30033,57 +28651,54 @@ export interface RouteFilterRules { * * {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. + * {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. */ - 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 { + 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; /** - * Deletes the specified route table. + * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} routeTableName The name of the route table. + * @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. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginGetBgpPeerStatusWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { peer? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified route table. + * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} routeTableName The name of the route table. + * @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 * @@ -30094,7 +28709,7 @@ export interface RouteTables { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {BgpPeerStatusListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30102,50 +28717,52 @@ export interface RouteTables { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Gets the specified route table. + * 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} routeTableName The name of the route table. + * @param {string} virtualNetworkGatewayName The name of the virtual network + * 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. + * @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>; + beginGetLearnedRoutesWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified route table. + * 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} routeTableName The name of the route table. + * @param {string} virtualNetworkGatewayName The name of the virtual network + * 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 * @@ -30156,7 +28773,7 @@ export interface RouteTables { * * {Promise} A promise is returned. * - * @resolve {RouteTable} - The deserialized result object. + * @resolve {GatewayRouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30164,46 +28781,29 @@ export interface RouteTables { * * {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. + * {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. */ - 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; + 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; /** - * Create or updates a route table in a specified resource group. + * 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} 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 {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} peer The IP address of the peer * * @param {object} [options] Optional Parameters. * @@ -30212,40 +28812,22 @@ export interface RouteTables { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginGetAdvertisedRoutesWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, peer: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Create or updates a route table in a specified resource group. + * 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} 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 {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} peer The IP address of the peer * * @param {object} [options] Optional Parameters. * @@ -30259,7 +28841,7 @@ export interface RouteTables { * * {Promise} A promise is returned. * - * @resolve {RouteTable} - The deserialized result object. + * @resolve {GatewayRouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30267,28 +28849,64 @@ export interface RouteTables { * * {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. + * {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. */ - 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; + 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; /** - * Updates a route table tags. + * 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} routeTableName The name of the route table. + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * - * @param {object} parameters Parameters supplied to update route table tags. + * @param {object} vpnclientIpsecParams Parameters supplied to the Begin Set + * vpnclient ipsec parameters of Virtual Network Gateway P2S client operation + * through Network resource provider. * - * @param {object} [parameters.tags] Resource tags. + * @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 Groups 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 Groups 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. * @@ -30297,22 +28915,57 @@ export interface RouteTables { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginSetVpnclientIpsecParametersWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, vpnclientIpsecParams: models.VpnClientIPsecParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates a route table tags. + * 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} routeTableName The name of the route table. + * @param {string} virtualNetworkGatewayName The name of the virtual network + * gateway. * - * @param {object} parameters Parameters supplied to update route table tags. + * @param {object} vpnclientIpsecParams Parameters supplied to the Begin Set + * vpnclient ipsec parameters of Virtual Network Gateway P2S client operation + * through Network resource provider. * - * @param {object} [parameters.tags] Resource tags. + * @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 Groups 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 Groups 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. * @@ -30326,7 +28979,7 @@ export interface RouteTables { * * {Promise} A promise is returned. * - * @resolve {RouteTable} - The deserialized result object. + * @resolve {VpnClientIPsecParameters} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30334,23 +28987,28 @@ export interface RouteTables { * * {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. + * {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. */ - 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; + 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; /** - * Gets all route tables in a resource group. + * 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 @@ -30358,17 +29016,21 @@ export interface RouteTables { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginGetVpnclientIpsecParametersWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all route tables in a resource group. + * 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 @@ -30381,7 +29043,7 @@ export interface RouteTables { * * {Promise} A promise is returned. * - * @resolve {RouteTableListResult} - The deserialized result object. + * @resolve {VpnClientIPsecParameters} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30389,20 +29051,24 @@ export interface RouteTables { * * {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. + * {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. */ - 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; + 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 route tables in a subscription. + * 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. * @@ -30411,14 +29077,17 @@ export interface RouteTables { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all route tables in a subscription. + * 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. * @@ -30432,7 +29101,7 @@ export interface RouteTables { * * {Promise} A promise is returned. * - * @resolve {RouteTableListResult} - The deserialized result object. + * @resolve {VirtualNetworkGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30440,24 +29109,24 @@ export interface RouteTables { * * {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. + * {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. */ - listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listAll(callback: ServiceCallback): void; - listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * Deletes the specified route table. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all the connections in a virtual network gateway. * - * @param {string} routeTableName The name of the route table. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -30466,18 +29135,17 @@ export interface RouteTables { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listConnectionsNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified route table. - * - * @param {string} resourceGroupName The name of the resource group. + * Gets all the connections in a virtual network gateway. * - * @param {string} routeTableName The name of the route table. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -30491,7 +29159,7 @@ export interface RouteTables { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VirtualNetworkGatewayListConnectionsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30499,152 +29167,206 @@ export interface RouteTables { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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 { /** - * Create or updates a route table in a specified resource group. + * Creates or updates a virtual network gateway connection in the specified + * resource group. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} routeTableName The name of the route table. + * @param {string} virtualNetworkGatewayConnectionName The name of the virtual + * network gateway connection. * - * @param {object} parameters Parameters supplied to the create or update route - * table operation. + * @param {object} parameters Parameters supplied to the create or update + * virtual network gateway connection operation. * - * @param {array} [parameters.routes] Collection of routes contained within a - * route table. + * @param {string} [parameters.authorizationKey] The authorizationKey. * - * @param {boolean} [parameters.disableBgpRoutePropagation] Gets or sets - * whether to disable the routes learned by BGP on that route table. True means - * disable. + * @param {object} parameters.virtualNetworkGateway1 The reference to virtual + * network gateway resource. * - * @param {string} [parameters.provisioningState] The provisioning state of the - * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual + * network gateway resource. * - * @param {string} [parameters.etag] Gets a unique read-only string that - * changes whenever the resource is updated. + * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP + * configurations for virtual network gateway. * - * @param {string} [parameters.id] Resource ID. + * @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.location] Resource location. + * @param {string} [parameters.virtualNetworkGateway2.vpnType] The type of this + * virtual network gateway. Possible values are: 'PolicyBased' and + * 'RouteBased'. Possible values include: 'PolicyBased', 'RouteBased' * - * @param {object} [parameters.tags] Resource tags. + * @param {boolean} [parameters.virtualNetworkGateway2.enableBgp] Whether BGP + * is enabled for this virtual network gateway or not. * - * @param {object} [options] Optional Parameters. + * @param {boolean} [parameters.virtualNetworkGateway2.activeActive] + * ActiveActive flag * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @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. * - * @returns {Promise} A promise is returned + * @param {object} [parameters.virtualNetworkGateway2.sku] The reference of the + * VirtualNetworkGatewaySku resource which represents the SKU selected for + * Virtual network gateway. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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' * - * @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} [parameters.virtualNetworkGateway2.sku.tier] Gateway SKU + * tier. Possible values include: 'Basic', 'HighPerformance', 'Standard', + * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', + * 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' * - * @param {string} resourceGroupName The name of the resource group. + * @param {number} [parameters.virtualNetworkGateway2.sku.capacity] The + * capacity. * - * @param {string} routeTableName The name of the route table. + * @param {object} [parameters.virtualNetworkGateway2.vpnClientConfiguration] + * The reference of the VpnClientConfiguration resource which represents the + * P2S VpnClient configurations. * - * @param {object} parameters Parameters supplied to the create or update route - * table operation. + * @param {object} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool] + * The reference of the address space resource which represents Address space + * for P2S VpnClient. * - * @param {array} [parameters.routes] Collection of routes contained within a - * route table. + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRootCertificates] + * VpnClientRootCertificate for virtual network gateway. * - * @param {boolean} [parameters.disableBgpRoutePropagation] Gets or sets - * whether to disable the routes learned by BGP on that route table. True means - * disable. + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRevokedCertificates] + * VpnClientRevokedCertificate for Virtual network gateway. * - * @param {string} [parameters.provisioningState] The provisioning state of the - * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] + * VpnClientProtocols for Virtual network gateway. * - * @param {string} [parameters.etag] Gets a unique read-only string that - * changes whenever the resource is updated. + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientIpsecPolicies] + * VpnClientIpsecPolicies for virtual network gateway P2S client. * - * @param {string} [parameters.id] Resource ID. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] + * The radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. * - * @param {string} [parameters.location] Resource location. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] + * The radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. * - * @param {object} [parameters.tags] Resource tags. + * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual + * network gateway's BGP speaker settings. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The + * resource GUID property of the VirtualNetworkGateway resource. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {string} [parameters.virtualNetworkGateway2.etag] Gets a unique + * read-only string that changes whenever the resource is updated. * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {string} [parameters.virtualNetworkGateway2.id] Resource ID. * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {string} [parameters.virtualNetworkGateway2.location] Resource + * location. * - * {Promise} A promise is returned. + * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * - * @resolve {RouteTable} - The deserialized result object. + * @param {object} [parameters.localNetworkGateway2] The reference to local + * network gateway resource. * - * @reject {Error|ServiceError} - The error object. + * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] + * Local network site address space. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {array} + * [parameters.localNetworkGateway2.localNetworkAddressSpace.addressPrefixes] A + * list of address blocks reserved for this virtual network in CIDR notation. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {string} [parameters.localNetworkGateway2.gatewayIpAddress] IP + * address of local network gateway. * - * {RouteTable} [result] - The deserialized result object if an error did not occur. - * See {@link RouteTable} for more information. + * @param {object} [parameters.localNetworkGateway2.bgpSettings] Local network + * gateway's BGP speaker settings. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {number} [parameters.localNetworkGateway2.bgpSettings.asn] The BGP + * speaker's ASN. * - * {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} + * [parameters.localNetworkGateway2.bgpSettings.bgpPeeringAddress] The BGP + * peering address and BGP identifier of this BGP speaker. * - * @param {string} resourceGroupName The name of the resource group. + * @param {number} [parameters.localNetworkGateway2.bgpSettings.peerWeight] The + * weight added to routes learned from this BGP speaker. * - * @param {string} routeTableName The name of the route table. + * @param {string} [parameters.localNetworkGateway2.resourceGuid] The resource + * GUID property of the LocalNetworkGateway resource. * - * @param {object} parameters Parameters supplied to update route table tags. + * @param {string} [parameters.localNetworkGateway2.etag] A unique read-only + * string that changes whenever the resource is updated. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} [parameters.localNetworkGateway2.id] Resource ID. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.localNetworkGateway2.location] Resource + * location. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {object} [parameters.localNetworkGateway2.tags] Resource tags. * - * @returns {Promise} A promise is returned + * @param {string} parameters.connectionType Gateway connection type. Possible + * values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible + * values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {number} [parameters.routingWeight] The routing weight. * - * @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} [parameters.sharedKey] The IPSec shared key. * - * @param {string} resourceGroupName The name of the resource group. + * @param {object} [parameters.peer] The reference to peerings resource. * - * @param {string} routeTableName The name of the route table. + * @param {string} [parameters.peer.id] Resource ID. * - * @param {object} parameters Parameters supplied to update route table tags. + * @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 {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. * @@ -30653,186 +29375,194 @@ export interface RouteTables { * @param {object} [options.customHeaders] Headers that will be added to the * request * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @returns {Promise} A promise is returned * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * {Promise} A promise is returned. + * @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. * - * @resolve {RouteTable} - The deserialized result object. + * @param {string} resourceGroupName The name of the resource group. * - * @reject {Error|ServiceError} - The error object. + * @param {string} virtualNetworkGatewayConnectionName The name of the virtual + * network gateway connection. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {object} parameters Parameters supplied to the create or update + * virtual network gateway connection operation. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {string} [parameters.authorizationKey] The authorizationKey. * - * {RouteTable} [result] - The deserialized result object if an error did not occur. - * See {@link RouteTable} for more information. + * @param {object} parameters.virtualNetworkGateway1 The reference to virtual + * network gateway resource. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual + * network gateway resource. * - * {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 {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP + * configurations for virtual network gateway. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} [parameters.virtualNetworkGateway2.gatewayType] The type of + * this virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. + * Possible values include: 'Vpn', 'ExpressRoute' * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.virtualNetworkGateway2.vpnType] The type of this + * virtual network gateway. Possible values are: 'PolicyBased' and + * 'RouteBased'. Possible values include: 'PolicyBased', 'RouteBased' * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {boolean} [parameters.virtualNetworkGateway2.enableBgp] Whether BGP + * is enabled for this virtual network gateway or not. * - * @returns {Promise} A promise is returned + * @param {boolean} [parameters.virtualNetworkGateway2.activeActive] + * ActiveActive flag * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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. * - * @reject {Error|ServiceError} - The error object. - */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Gets all route tables in a resource group. + * @param {object} [parameters.virtualNetworkGateway2.sku] The reference of the + * VirtualNetworkGatewaySku resource which represents the SKU selected for + * Virtual network gateway. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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 {object} [options] Optional Parameters. + * @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 {object} [options.customHeaders] Headers that will be added to the - * request + * @param {number} [parameters.virtualNetworkGateway2.sku.capacity] The + * capacity. * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {object} [parameters.virtualNetworkGateway2.vpnClientConfiguration] + * The reference of the VpnClientConfiguration resource which represents the + * P2S VpnClient configurations. * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {object} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool] + * The reference of the address space resource which represents Address space + * for P2S VpnClient. * - * {Promise} A promise is returned. + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRootCertificates] + * VpnClientRootCertificate for virtual network gateway. * - * @resolve {RouteTableListResult} - The deserialized result object. + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRevokedCertificates] + * VpnClientRevokedCertificate for Virtual network gateway. * - * @reject {Error|ServiceError} - The error object. + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] + * VpnClientProtocols for Virtual network gateway. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientIpsecPolicies] + * VpnClientIpsecPolicies for virtual network gateway P2S client. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] + * The radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. * - * {RouteTableListResult} [result] - The deserialized result object if an error did not occur. - * See {@link RouteTableListResult} for more information. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] + * The radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual + * network gateway's BGP speaker settings. * - * {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} [parameters.virtualNetworkGateway2.resourceGuid] The + * resource GUID property of the VirtualNetworkGateway resource. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} [parameters.virtualNetworkGateway2.etag] Gets a unique + * read-only string that changes whenever the resource is updated. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.virtualNetworkGateway2.id] Resource ID. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {string} [parameters.virtualNetworkGateway2.location] Resource + * location. * - * @returns {Promise} A promise is returned + * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {object} [parameters.localNetworkGateway2] The reference to local + * network gateway resource. * - * @reject {Error|ServiceError} - The error object. - */ - listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Gets all route tables in a subscription. + * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] + * Local network site address space. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {array} + * [parameters.localNetworkGateway2.localNetworkAddressSpace.addressPrefixes] A + * list of address blocks reserved for this virtual network in CIDR notation. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.localNetworkGateway2.gatewayIpAddress] IP + * address of local network gateway. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {object} [parameters.localNetworkGateway2.bgpSettings] Local network + * gateway's BGP speaker settings. * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {number} [parameters.localNetworkGateway2.bgpSettings.asn] The BGP + * speaker's ASN. * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {string} + * [parameters.localNetworkGateway2.bgpSettings.bgpPeeringAddress] The BGP + * peering address and BGP identifier of this BGP speaker. * - * {Promise} A promise is returned. + * @param {number} [parameters.localNetworkGateway2.bgpSettings.peerWeight] The + * weight added to routes learned from this BGP speaker. * - * @resolve {RouteTableListResult} - The deserialized result object. + * @param {string} [parameters.localNetworkGateway2.resourceGuid] The resource + * GUID property of the LocalNetworkGateway resource. * - * @reject {Error|ServiceError} - The error object. + * @param {string} [parameters.localNetworkGateway2.etag] A unique read-only + * string that changes whenever the resource is updated. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {string} [parameters.localNetworkGateway2.id] Resource ID. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {string} [parameters.localNetworkGateway2.location] Resource + * location. * - * {RouteTableListResult} [result] - The deserialized result object if an error did not occur. - * See {@link RouteTableListResult} for more information. + * @param {object} [parameters.localNetworkGateway2.tags] Resource tags. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {string} parameters.connectionType Gateway connection type. Possible + * values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible + * values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' * - * {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 {number} [parameters.routingWeight] The routing weight. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} [parameters.sharedKey] The IPSec shared key. * - * @param {string} routeTableName The name of the route table. + * @param {object} [parameters.peer] The reference to peerings resource. * - * @param {string} routeName The name of the route. + * @param {string} [parameters.peer.id] Resource ID. * - * @param {object} [options] Optional Parameters. + * @param {boolean} [parameters.enableBgp] EnableBgp flag * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {boolean} [parameters.usePolicyBasedTrafficSelectors] Enable + * policy-based traffic selectors. * - * @returns {Promise} A promise is returned + * @param {array} [parameters.ipsecPolicies] The IPSec Policies to be + * considered by this connection. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {string} [parameters.resourceGuid] The resource GUID property of the + * VirtualNetworkGatewayConnection resource. * - * @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} [parameters.etag] Gets a unique read-only string that + * changes whenever the resource is updated. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} [parameters.id] Resource ID. * - * @param {string} routeTableName The name of the route table. + * @param {string} [parameters.location] Resource location. * - * @param {string} routeName The name of the route. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -30846,7 +29576,7 @@ export interface Routes { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VirtualNetworkGatewayConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30854,25 +29584,26 @@ export interface Routes { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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 route from a route table. + * Gets the specified virtual network gateway connection by resource group. * * @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 {string} virtualNetworkGatewayConnectionName The name of the virtual + * network gateway connection. * * @param {object} [options] Optional Parameters. * @@ -30881,20 +29612,19 @@ export interface Routes { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the specified route from a route table. + * Gets the specified virtual network gateway connection by resource group. * * @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 {string} virtualNetworkGatewayConnectionName The name of the virtual + * network gateway connection. * * @param {object} [options] Optional Parameters. * @@ -30908,7 +29638,7 @@ export interface Routes { * * {Promise} A promise is returned. * - * @resolve {Route} - The deserialized result object. + * @resolve {VirtualNetworkGatewayConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -30916,54 +29646,26 @@ export interface Routes { * * {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. + * {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, 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; + 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; /** - * Creates or updates a route in the specified route table. + * Deletes the specified virtual network Gateway connection. * * @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 are: 'VirtualNetworkGateway', - * 'VnetLocal', 'Internet', 'VirtualAppliance', and 'None'. 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 {string} virtualNetworkGatewayConnectionName The name of the virtual + * network gateway connection. * * @param {object} [options] Optional Parameters. * @@ -30972,11439 +29674,19 @@ export interface Routes { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates or updates a route in the specified route table. + * Deletes the specified virtual network Gateway connection. * * @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 are: 'VirtualNetworkGateway', - * 'VnetLocal', 'Internet', 'VirtualAppliance', and 'None'. 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 are: 'VirtualNetworkGateway', - * 'VnetLocal', 'Internet', 'VirtualAppliance', and 'None'. 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 are: 'VirtualNetworkGateway', - * 'VnetLocal', 'Internet', 'VirtualAppliance', and 'None'. 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 {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 {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; - - - /** - * 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 {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 {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; - - - /** - * 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 linked virtual network space would be able to access - * all the VMs in local Virtual network space. - * - * @param {boolean} [virtualNetworkPeeringParameters.allowForwardedTraffic] - * Whether the forwarded traffic from the VMs in the remote virtual network - * will be allowed/disallowed. - * - * @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 linked virtual network space would be able to access - * all the VMs in local Virtual network space. - * - * @param {boolean} [virtualNetworkPeeringParameters.allowForwardedTraffic] - * Whether the forwarded traffic from the VMs in the remote virtual network - * will be allowed/disallowed. - * - * @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 linked virtual network space would be able to access - * all the VMs in local Virtual network space. - * - * @param {boolean} [virtualNetworkPeeringParameters.allowForwardedTraffic] - * Whether the forwarded traffic from the VMs in the remote virtual network - * will be allowed/disallowed. - * - * @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 linked virtual network space would be able to access - * all the VMs in local Virtual network space. - * - * @param {boolean} [virtualNetworkPeeringParameters.allowForwardedTraffic] - * Whether the forwarded traffic from the VMs in the remote virtual network - * will be allowed/disallowed. - * - * @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.vpnClientAddressPool.addressPrefixes] A - * list of address blocks reserved for this virtual network in CIDR notation. - * - * @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 {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.vpnClientAddressPool.addressPrefixes] A - * list of address blocks reserved for this virtual network in CIDR notation. - * - * @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 {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 are: 'EAPTLS' and 'EAPMSCHAPv2'. 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 are: 'EAPTLS' and 'EAPMSCHAPv2'. 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 are: 'EAPTLS' and 'EAPMSCHAPv2'. 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 are: 'EAPTLS' and 'EAPMSCHAPv2'. 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 Groups 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 Groups 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 Groups 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 Groups 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.vpnClientAddressPool.addressPrefixes] A - * list of address blocks reserved for this virtual network in CIDR notation. - * - * @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 {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.vpnClientAddressPool.addressPrefixes] A - * list of address blocks reserved for this virtual network in CIDR notation. - * - * @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 {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; - - - /** - * 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 are: 'EAPTLS' and 'EAPMSCHAPv2'. 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. - */ - beginGeneratevpnclientpackageWithHttpOperationResponse(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 are: 'EAPTLS' and 'EAPMSCHAPv2'. 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. - */ - beginGeneratevpnclientpackage(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginGeneratevpnclientpackage(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, callback: ServiceCallback): void; - beginGeneratevpnclientpackage(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 are: 'EAPTLS' and 'EAPMSCHAPv2'. 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. - */ - beginGenerateVpnProfileWithHttpOperationResponse(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 are: 'EAPTLS' and 'EAPMSCHAPv2'. 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. - */ - beginGenerateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginGenerateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, callback: ServiceCallback): void; - beginGenerateVpnProfile(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. - */ - 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 Groups 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 Groups 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 Groups 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 Groups 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 {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 are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. 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 {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 are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. 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 {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 are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. 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 {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 are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. 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] - * Defines how a private IP address is assigned. Possible values are: 'Static' - * and 'Dynamic'. 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 are: 'IPv4' and 'IPv6'. 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 are: 'Static' and - * 'Dynamic'. 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 {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 allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * - * @param {string} - * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] - * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. - * 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 {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] - * Defines how a private IP address is assigned. Possible values are: 'Static' - * and 'Dynamic'. 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 are: 'IPv4' and 'IPv6'. 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 are: 'Static' and - * 'Dynamic'. 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 {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 allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * - * @param {string} - * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] - * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. - * 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 {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] - * Defines how a private IP address is assigned. Possible values are: 'Static' - * and 'Dynamic'. 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 are: 'IPv4' and 'IPv6'. 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 are: 'Static' and - * 'Dynamic'. 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 {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 allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * - * @param {string} - * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] - * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. - * 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 {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] - * Defines how a private IP address is assigned. Possible values are: 'Static' - * and 'Dynamic'. 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 are: 'IPv4' and 'IPv6'. 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 are: 'Static' and - * 'Dynamic'. 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 {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 allocation method. Possible values are: 'Static' and - * 'Dynamic'. Possible values include: 'Static', 'Dynamic' - * - * @param {string} - * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] - * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. - * 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 {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 {string} virtualNetworkGatewayConnectionName The name of the virtual + * network gateway connection. * * @param {object} [options] Optional Parameters. * @@ -42418,7 +29700,7 @@ export interface VirtualNetworkTaps { * * {Promise} A promise is returned. * - * @resolve {VirtualNetworkTap} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -42426,29 +29708,29 @@ export interface VirtualNetworkTaps { * * {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. + * {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. */ - 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; + 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 an VirtualNetworkTap tags. + * Updates a virtual network gateway connection tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} tapName The name of the tap. + * @param {string} virtualNetworkGatewayConnectionName The name of the virtual + * network gateway connection. * - * @param {object} tapParameters Parameters supplied to update - * VirtualNetworkTap tags. + * @param {object} parameters Parameters supplied to update virtual network + * gateway connection tags. * - * @param {object} [tapParameters.tags] Resource tags. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -42457,23 +29739,24 @@ export interface VirtualNetworkTaps { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + updateTagsWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates an VirtualNetworkTap tags. + * Updates a virtual network gateway connection tags. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} tapName The name of the tap. + * @param {string} virtualNetworkGatewayConnectionName The name of the virtual + * network gateway connection. * - * @param {object} tapParameters Parameters supplied to update - * VirtualNetworkTap tags. + * @param {object} parameters Parameters supplied to update virtual network + * gateway connection tags. * - * @param {object} [tapParameters.tags] Resource tags. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -42487,7 +29770,7 @@ export interface VirtualNetworkTaps { * * {Promise} A promise is returned. * - * @resolve {VirtualNetworkTap} - The deserialized result object. + * @resolve {VirtualNetworkGatewayConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -42495,23 +29778,38 @@ export interface VirtualNetworkTaps { * * {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. + * {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, 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; + 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; /** - * Gets all the VirtualNetworkTaps in a subscription. + * 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} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -42520,17 +29818,31 @@ export interface VirtualNetworkTaps { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + setSharedKeyWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionSharedKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the VirtualNetworkTaps in a subscription. + * 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} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -42544,7 +29856,7 @@ export interface VirtualNetworkTaps { * * {Promise} A promise is returned. * - * @resolve {VirtualNetworkTapListResult} - The deserialized result object. + * @resolve {ConnectionSharedKey} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -42552,24 +29864,27 @@ export interface VirtualNetworkTaps { * * {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. + * {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. */ - 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; + 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; /** - * Gets all the VirtualNetworkTaps in a subscription. + * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves + * information about the specified virtual network gateway connection shared + * key through Network resource provider. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -42578,17 +29893,21 @@ export interface VirtualNetworkTaps { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getSharedKeyWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets all the VirtualNetworkTaps in a subscription. + * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves + * information about the specified virtual network gateway connection shared + * key through Network resource provider. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -42602,7 +29921,7 @@ export interface VirtualNetworkTaps { * * {Promise} A promise is returned. * - * @resolve {VirtualNetworkTapListResult} - The deserialized result object. + * @resolve {ConnectionSharedKey} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -42610,34 +29929,23 @@ export interface VirtualNetworkTaps { * * {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. + * {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. */ - 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 { + 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; /** - * Retrieves the details of a VirtualWAN. - * - * @param {string} resourceGroupName The resource group name of the VirtualWan. + * The List VirtualNetworkGatewayConnections operation retrieves all the + * virtual network gateways connections created. * - * @param {string} virtualWANName The name of the VirtualWAN being retrieved. + * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * @@ -42646,18 +29954,17 @@ export interface VirtualWans { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves the details of a VirtualWAN. - * - * @param {string} resourceGroupName The resource group name of the VirtualWan. + * The List VirtualNetworkGatewayConnections operation retrieves all the + * virtual network gateways connections created. * - * @param {string} virtualWANName The name of the VirtualWAN being retrieved. + * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * @@ -42671,7 +29978,7 @@ export interface VirtualWans { * * {Promise} A promise is returned. * - * @resolve {VirtualWAN} - The deserialized result object. + * @resolve {VirtualNetworkGatewayConnectionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -42679,58 +29986,36 @@ export interface VirtualWans { * * {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. + * {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. */ - 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; + 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 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. + * 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} [wANParameters.provisioningState] The provisioning state of - * the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [wANParameters.id] Resource ID. + * @param {string} virtualNetworkGatewayConnectionName The virtual network + * gateway connection reset shared key Name. * - * @param {string} [wANParameters.location] Resource location. + * @param {object} parameters Parameters supplied to the begin reset virtual + * network gateway connection shared key operation through network resource + * provider. * - * @param {object} [wANParameters.tags] Resource tags. + * @param {number} parameters.keyLength The virtual network connection reset + * shared key length, should between 1 and 128. * * @param {object} [options] Optional Parameters. * @@ -42739,52 +30024,29 @@ export interface VirtualWans { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + resetSharedKeyWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionResetSharedKey, 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. + * 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} [wANParameters.provisioningState] The provisioning state of - * the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [wANParameters.id] Resource ID. + * @param {string} virtualNetworkGatewayConnectionName The virtual network + * gateway connection reset shared key Name. * - * @param {string} [wANParameters.location] Resource location. + * @param {object} parameters Parameters supplied to the begin reset virtual + * network gateway connection shared key operation through network resource + * provider. * - * @param {object} [wANParameters.tags] Resource tags. + * @param {number} parameters.keyLength The virtual network connection reset + * shared key length, should between 1 and 128. * * @param {object} [options] Optional Parameters. * @@ -42798,7 +30060,7 @@ export interface VirtualWans { * * {Promise} A promise is returned. * - * @resolve {VirtualWAN} - The deserialized result object. + * @resolve {ConnectionResetSharedKey} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -42806,343 +30068,393 @@ export interface VirtualWans { * * {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. + * {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. */ - 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; + 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; /** - * Updates a VirtualWAN tags. + * Creates or updates a virtual network gateway connection in the specified + * resource group. * - * @param {string} resourceGroupName The resource group name of the VirtualWan. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} virtualWANName The name of the VirtualWAN being updated. + * @param {string} virtualNetworkGatewayConnectionName The name of the virtual + * network gateway connection. * - * @param {object} wANParameters Parameters supplied to Update VirtualWAN tags. + * @param {object} parameters Parameters supplied to the create or update + * virtual network gateway connection operation. * - * @param {object} [wANParameters.tags] Resource tags. + * @param {string} [parameters.authorizationKey] The authorizationKey. * - * @param {object} [options] Optional Parameters. + * @param {object} parameters.virtualNetworkGateway1 The reference to virtual + * network gateway resource. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual + * network gateway resource. * - * @returns {Promise} A promise is returned + * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP + * configurations for virtual network gateway. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {string} [parameters.virtualNetworkGateway2.gatewayType] The type of + * this virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. + * Possible values include: 'Vpn', 'ExpressRoute' * - * @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} [parameters.virtualNetworkGateway2.vpnType] The type of this + * virtual network gateway. Possible values are: 'PolicyBased' and + * 'RouteBased'. Possible values include: 'PolicyBased', 'RouteBased' * - * @param {string} resourceGroupName The resource group name of the VirtualWan. + * @param {boolean} [parameters.virtualNetworkGateway2.enableBgp] Whether BGP + * is enabled for this virtual network gateway or not. * - * @param {string} virtualWANName The name of the VirtualWAN being updated. + * @param {boolean} [parameters.virtualNetworkGateway2.activeActive] + * ActiveActive flag * - * @param {object} wANParameters Parameters supplied to Update VirtualWAN tags. + * @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} [wANParameters.tags] Resource tags. + * @param {object} [parameters.virtualNetworkGateway2.sku] The reference of the + * VirtualNetworkGatewaySku resource which represents the SKU selected for + * Virtual network gateway. * - * @param {object} [options] Optional Parameters. + * @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 {object} [options.customHeaders] Headers that will be added to the - * request + * @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 {ServiceCallback} [optionalCallback] - The optional callback. + * @param {number} [parameters.virtualNetworkGateway2.sku.capacity] The + * capacity. * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {object} [parameters.virtualNetworkGateway2.vpnClientConfiguration] + * The reference of the VpnClientConfiguration resource which represents the + * P2S VpnClient configurations. * - * {Promise} A promise is returned. + * @param {object} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool] + * The reference of the address space resource which represents Address space + * for P2S VpnClient. * - * @resolve {VirtualWAN} - The deserialized result object. + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRootCertificates] + * VpnClientRootCertificate for virtual network gateway. * - * @reject {Error|ServiceError} - The error object. + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRevokedCertificates] + * VpnClientRevokedCertificate for Virtual network gateway. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] + * VpnClientProtocols for Virtual network gateway. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientIpsecPolicies] + * VpnClientIpsecPolicies for virtual network gateway P2S client. * - * {VirtualWAN} [result] - The deserialized result object if an error did not occur. - * See {@link VirtualWAN} for more information. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] + * The radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] + * The radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. * - * {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 {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual + * network gateway's BGP speaker settings. * - * @param {string} resourceGroupName The resource group name of the VirtualWan. + * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The + * resource GUID property of the VirtualNetworkGateway resource. * - * @param {string} virtualWANName The name of the VirtualWAN being deleted. + * @param {string} [parameters.virtualNetworkGateway2.etag] Gets a unique + * read-only string that changes whenever the resource is updated. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.virtualNetworkGateway2.id] Resource ID. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {string} [parameters.virtualNetworkGateway2.location] Resource + * location. * - * @returns {Promise} A promise is returned + * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {object} [parameters.localNetworkGateway2] The reference to local + * network gateway resource. * - * @reject {Error|ServiceError} - The error object. - */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Deletes a VirtualWAN. + * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] + * Local network site address space. * - * @param {string} resourceGroupName The resource group name of the VirtualWan. + * @param {array} + * [parameters.localNetworkGateway2.localNetworkAddressSpace.addressPrefixes] A + * list of address blocks reserved for this virtual network in CIDR notation. * - * @param {string} virtualWANName The name of the VirtualWAN being deleted. + * @param {string} [parameters.localNetworkGateway2.gatewayIpAddress] IP + * address of local network gateway. * - * @param {object} [options] Optional Parameters. + * @param {object} [parameters.localNetworkGateway2.bgpSettings] Local network + * gateway's BGP speaker settings. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {number} [parameters.localNetworkGateway2.bgpSettings.asn] The BGP + * speaker's ASN. * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {string} + * [parameters.localNetworkGateway2.bgpSettings.bgpPeeringAddress] The BGP + * peering address and BGP identifier of this BGP speaker. * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {number} [parameters.localNetworkGateway2.bgpSettings.peerWeight] The + * weight added to routes learned from this BGP speaker. * - * {Promise} A promise is returned. + * @param {string} [parameters.localNetworkGateway2.resourceGuid] The resource + * GUID property of the LocalNetworkGateway resource. * - * @resolve {null} - The deserialized result object. + * @param {string} [parameters.localNetworkGateway2.etag] A unique read-only + * string that changes whenever the resource is updated. * - * @reject {Error|ServiceError} - The error object. + * @param {string} [parameters.localNetworkGateway2.id] Resource ID. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {string} [parameters.localNetworkGateway2.location] Resource + * location. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {object} [parameters.localNetworkGateway2.tags] Resource tags. * - * {null} [result] - The deserialized result object if an error did not occur. + * @param {string} parameters.connectionType Gateway connection type. Possible + * values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible + * values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {number} [parameters.routingWeight] The routing weight. * - * {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} [parameters.sharedKey] The IPSec shared key. * - * @param {string} resourceGroupName The resource group name of the VirtualWan. + * @param {object} [parameters.peer] The reference to peerings resource. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.peer.id] Resource ID. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {boolean} [parameters.enableBgp] EnableBgp flag * - * @returns {Promise} A promise is returned + * @param {boolean} [parameters.usePolicyBasedTrafficSelectors] Enable + * policy-based traffic selectors. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {array} [parameters.ipsecPolicies] The IPSec Policies to be + * considered by this connection. * - * @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} [parameters.resourceGuid] The resource GUID property of the + * VirtualNetworkGatewayConnection resource. * - * @param {string} resourceGroupName The resource group name of the VirtualWan. + * @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 {Promise} A promise is returned * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * {Promise} A promise is returned. + * @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. * - * @resolve {ListVirtualWANsResult} - The deserialized result object. + * @param {string} resourceGroupName The name of the resource group. * - * @reject {Error|ServiceError} - The error object. + * @param {string} virtualNetworkGatewayConnectionName The name of the virtual + * network gateway connection. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {object} parameters Parameters supplied to the create or update + * virtual network gateway connection operation. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {string} [parameters.authorizationKey] The authorizationKey. * - * {ListVirtualWANsResult} [result] - The deserialized result object if an error did not occur. - * See {@link ListVirtualWANsResult} for more information. + * @param {object} parameters.virtualNetworkGateway1 The reference to virtual + * network gateway resource. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual + * network gateway resource. * - * {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 {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP + * configurations for virtual network gateway. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.virtualNetworkGateway2.gatewayType] The type of + * this virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. + * Possible values include: 'Vpn', 'ExpressRoute' * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {string} [parameters.virtualNetworkGateway2.vpnType] The type of this + * virtual network gateway. Possible values are: 'PolicyBased' and + * 'RouteBased'. Possible values include: 'PolicyBased', 'RouteBased' * - * @returns {Promise} A promise is returned + * @param {boolean} [parameters.virtualNetworkGateway2.enableBgp] Whether BGP + * is enabled for this virtual network gateway or not. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {boolean} [parameters.virtualNetworkGateway2.activeActive] + * ActiveActive flag * - * @reject {Error|ServiceError} - The error object. - */ - listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Lists all the VirtualWANs in a subscription. + * @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} [options] Optional Parameters. + * @param {object} [parameters.virtualNetworkGateway2.sku] The reference of the + * VirtualNetworkGatewaySku resource which represents the SKU selected for + * Virtual network gateway. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @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 {ServiceCallback} [optionalCallback] - The optional callback. + * @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' * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {number} [parameters.virtualNetworkGateway2.sku.capacity] The + * capacity. * - * {Promise} A promise is returned. + * @param {object} [parameters.virtualNetworkGateway2.vpnClientConfiguration] + * The reference of the VpnClientConfiguration resource which represents the + * P2S VpnClient configurations. * - * @resolve {ListVirtualWANsResult} - The deserialized result object. + * @param {object} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool] + * The reference of the address space resource which represents Address space + * for P2S VpnClient. * - * @reject {Error|ServiceError} - The error object. + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRootCertificates] + * VpnClientRootCertificate for virtual network gateway. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRevokedCertificates] + * VpnClientRevokedCertificate for Virtual network gateway. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] + * VpnClientProtocols for Virtual network gateway. * - * {ListVirtualWANsResult} [result] - The deserialized result object if an error did not occur. - * See {@link ListVirtualWANsResult} for more information. + * @param {array} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientIpsecPolicies] + * VpnClientIpsecPolicies for virtual network gateway P2S client. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {string} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] + * The radius server address property of the VirtualNetworkGateway resource for + * vpn client connection. * - * {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} + * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] + * The radius secret property of the VirtualNetworkGateway resource for vpn + * client connection. * - * @param {string} resourceGroupName The resource group name of the VirtualWan. + * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual + * network gateway's BGP speaker settings. * - * @param {string} virtualWANName The name of the VirtualWAN being created or - * updated. + * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The + * resource GUID property of the VirtualNetworkGateway resource. * - * @param {object} wANParameters Parameters supplied to create or update - * VirtualWAN. + * @param {string} [parameters.virtualNetworkGateway2.etag] Gets a unique + * read-only string that changes whenever the resource is updated. * - * @param {boolean} [wANParameters.disableVpnEncryption] Vpn encryption to be - * disabled or not. + * @param {string} [parameters.virtualNetworkGateway2.id] Resource ID. * - * @param {string} [wANParameters.securityProviderName] The Security Provider - * name. + * @param {string} [parameters.virtualNetworkGateway2.location] Resource + * location. * - * @param {boolean} [wANParameters.allowBranchToBranchTraffic] True if branch - * to branch traffic is allowed. + * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * - * @param {boolean} [wANParameters.allowVnetToVnetTraffic] True if Vnet to Vnet - * traffic is allowed. + * @param {object} [parameters.localNetworkGateway2] The reference to local + * network gateway resource. * - * @param {string} [wANParameters.office365LocalBreakoutCategory] The office - * local breakout category. Possible values include: 'Optimize', - * 'OptimizeAndAllow', 'All', 'None' + * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] + * Local network site address space. * - * @param {array} [wANParameters.p2SVpnServerConfigurations] list of all - * P2SVpnServerConfigurations associated with the virtual wan. + * @param {array} + * [parameters.localNetworkGateway2.localNetworkAddressSpace.addressPrefixes] A + * list of address blocks reserved for this virtual network in CIDR notation. * - * @param {string} [wANParameters.provisioningState] The provisioning state of - * the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' + * @param {string} [parameters.localNetworkGateway2.gatewayIpAddress] IP + * address of local network gateway. * - * @param {string} [wANParameters.id] Resource ID. + * @param {object} [parameters.localNetworkGateway2.bgpSettings] Local network + * gateway's BGP speaker settings. * - * @param {string} [wANParameters.location] Resource location. + * @param {number} [parameters.localNetworkGateway2.bgpSettings.asn] The BGP + * speaker's ASN. * - * @param {object} [wANParameters.tags] Resource tags. + * @param {string} + * [parameters.localNetworkGateway2.bgpSettings.bgpPeeringAddress] The BGP + * peering address and BGP identifier of this BGP speaker. * - * @param {object} [options] Optional Parameters. + * @param {number} [parameters.localNetworkGateway2.bgpSettings.peerWeight] The + * weight added to routes learned from this BGP speaker. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {string} [parameters.localNetworkGateway2.resourceGuid] The resource + * GUID property of the LocalNetworkGateway resource. * - * @returns {Promise} A promise is returned + * @param {string} [parameters.localNetworkGateway2.etag] A unique read-only + * string that changes whenever the resource is updated. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {string} [parameters.localNetworkGateway2.id] Resource ID. * - * @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} [parameters.localNetworkGateway2.location] Resource + * location. * - * @param {string} resourceGroupName The resource group name of the VirtualWan. + * @param {object} [parameters.localNetworkGateway2.tags] Resource tags. * - * @param {string} virtualWANName The name of the VirtualWAN being created or - * updated. + * @param {string} parameters.connectionType Gateway connection type. Possible + * values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible + * values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' * - * @param {object} wANParameters Parameters supplied to create or update - * VirtualWAN. + * @param {number} [parameters.routingWeight] The routing weight. * - * @param {boolean} [wANParameters.disableVpnEncryption] Vpn encryption to be - * disabled or not. + * @param {string} [parameters.sharedKey] The IPSec shared key. + * + * @param {object} [parameters.peer] The reference to peerings resource. * - * @param {string} [wANParameters.securityProviderName] The Security Provider - * name. + * @param {string} [parameters.peer.id] Resource ID. * - * @param {boolean} [wANParameters.allowBranchToBranchTraffic] True if branch - * to branch traffic is allowed. + * @param {boolean} [parameters.enableBgp] EnableBgp flag * - * @param {boolean} [wANParameters.allowVnetToVnetTraffic] True if Vnet to Vnet - * traffic is allowed. + * @param {boolean} [parameters.usePolicyBasedTrafficSelectors] Enable + * policy-based traffic selectors. * - * @param {string} [wANParameters.office365LocalBreakoutCategory] The office - * local breakout category. Possible values include: 'Optimize', - * 'OptimizeAndAllow', 'All', 'None' + * @param {array} [parameters.ipsecPolicies] The IPSec Policies to be + * considered by this connection. * - * @param {array} [wANParameters.p2SVpnServerConfigurations] list of all - * P2SVpnServerConfigurations associated with the virtual wan. + * @param {string} [parameters.resourceGuid] The resource GUID property of the + * VirtualNetworkGatewayConnection resource. * - * @param {string} [wANParameters.provisioningState] The provisioning state of - * the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', - * 'Failed' + * @param {string} [parameters.etag] Gets a unique read-only string that + * changes whenever the resource is updated. * - * @param {string} [wANParameters.id] Resource ID. + * @param {string} [parameters.id] Resource ID. * - * @param {string} [wANParameters.location] Resource location. + * @param {string} [parameters.location] Resource location. * - * @param {object} [wANParameters.tags] Resource tags. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -43156,7 +30468,7 @@ export interface VirtualWans { * * {Promise} A promise is returned. * - * @resolve {VirtualWAN} - The deserialized result object. + * @resolve {VirtualNetworkGatewayConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -43164,28 +30476,26 @@ export interface VirtualWans { * * {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. + * {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, 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; + 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; /** - * Updates a VirtualWAN tags. - * - * @param {string} resourceGroupName The resource group name of the VirtualWan. - * - * @param {string} virtualWANName The name of the VirtualWAN being updated. + * Deletes the specified virtual network Gateway connection. * - * @param {object} wANParameters Parameters supplied to Update VirtualWAN tags. + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} [wANParameters.tags] Resource tags. + * @param {string} virtualNetworkGatewayConnectionName The name of the virtual + * network gateway connection. * * @param {object} [options] Optional Parameters. * @@ -43194,22 +30504,19 @@ export interface VirtualWans { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, 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. + * Deletes the specified virtual network Gateway connection. * - * @param {object} wANParameters Parameters supplied to Update VirtualWAN tags. + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} [wANParameters.tags] Resource tags. + * @param {string} virtualNetworkGatewayConnectionName The name of the virtual + * network gateway connection. * * @param {object} [options] Optional Parameters. * @@ -43223,7 +30530,7 @@ export interface VirtualWans { * * {Promise} A promise is returned. * - * @resolve {VirtualWAN} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -43231,24 +30538,29 @@ export interface VirtualWans { * * {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. + * {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. */ - 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; + 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; /** - * Deletes a VirtualWAN. + * Updates a virtual network gateway connection tags. * - * @param {string} resourceGroupName The resource group name of the VirtualWan. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} virtualWANName The name of the VirtualWAN being deleted. + * @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. * @@ -43257,18 +30569,24 @@ export interface VirtualWans { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes a VirtualWAN. + * Updates a virtual network gateway connection tags. * - * @param {string} resourceGroupName The resource group name of the VirtualWan. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} virtualWANName The name of the VirtualWAN being deleted. + * @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. * @@ -43282,7 +30600,7 @@ export interface VirtualWans { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VirtualNetworkGatewayConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -43290,22 +30608,38 @@ export interface VirtualWans { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Lists all the VirtualWANs in a resource group. + * 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} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -43314,17 +30648,31 @@ export interface VirtualWans { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginSetSharedKeyWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionSharedKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the VirtualWANs in a resource group. + * 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} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -43338,7 +30686,7 @@ export interface VirtualWans { * * {Promise} A promise is returned. * - * @resolve {ListVirtualWANsResult} - The deserialized result object. + * @resolve {ConnectionSharedKey} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -43346,23 +30694,35 @@ export interface VirtualWans { * * {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. + * {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. */ - 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; + 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; /** - * Lists all the VirtualWANs in a subscription. + * 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} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -43371,17 +30731,29 @@ export interface VirtualWans { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginResetSharedKeyWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionResetSharedKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the VirtualWANs in a subscription. + * 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} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -43395,7 +30767,7 @@ export interface VirtualWans { * * {Promise} A promise is returned. * - * @resolve {ListVirtualWANsResult} - The deserialized result object. + * @resolve {ConnectionResetSharedKey} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -43403,33 +30775,25 @@ export interface VirtualWans { * * {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. + * {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. */ - 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 { + 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; /** - * Retrieves the details of a VPNsite. - * - * @param {string} resourceGroupName The resource group name of the VpnSite. + * The List VirtualNetworkGatewayConnections operation retrieves all the + * virtual network gateways connections created. * - * @param {string} vpnSiteName The name of the VpnSite being retrieved. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -43438,18 +30802,18 @@ export interface VpnSites { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves the details of a VPNsite. - * - * @param {string} resourceGroupName The resource group name of the VpnSite. + * The List VirtualNetworkGatewayConnections operation retrieves all the + * virtual network gateways connections created. * - * @param {string} vpnSiteName The name of the VpnSite being retrieved. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -43463,7 +30827,7 @@ export interface VpnSites { * * {Promise} A promise is returned. * - * @resolve {VpnSite} - The deserialized result object. + * @resolve {VirtualNetworkGatewayConnectionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -43471,79 +30835,70 @@ export interface VpnSites { * * {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. + * {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. */ - 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; + 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 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. + * Creates or updates a local network gateway in the specified resource group. * - * @param {string} [vpnSiteParameters.deviceProperties.deviceModel] Model of - * the device. + * @param {string} resourceGroupName The name of the resource group. * - * @param {number} [vpnSiteParameters.deviceProperties.linkSpeedInMbps] Link - * speed. + * @param {string} localNetworkGatewayName The name of the local network + * gateway. * - * @param {string} [vpnSiteParameters.ipAddress] The ip-address for the - * vpn-site. + * @param {object} parameters Parameters supplied to the create or update local + * network gateway operation. * - * @param {string} [vpnSiteParameters.siteKey] The key for vpn-site that can be - * used for connections. + * @param {object} [parameters.localNetworkAddressSpace] Local network site + * address space. * - * @param {object} [vpnSiteParameters.addressSpace] The AddressSpace that - * contains an array of IP address ranges. + * @param {array} [parameters.localNetworkAddressSpace.addressPrefixes] A list + * of address blocks reserved for this virtual network in CIDR notation. * - * @param {array} [vpnSiteParameters.addressSpace.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} [vpnSiteParameters.bgpProperties] The set of bgp properties. + * @param {object} [parameters.bgpSettings] Local network gateway's BGP speaker + * settings. * - * @param {number} [vpnSiteParameters.bgpProperties.asn] The BGP speaker's ASN. + * @param {number} [parameters.bgpSettings.asn] The BGP speaker's ASN. * - * @param {string} [vpnSiteParameters.bgpProperties.bgpPeeringAddress] The BGP - * peering address and BGP identifier of this BGP speaker. + * @param {string} [parameters.bgpSettings.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 {number} [parameters.bgpSettings.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 {string} [parameters.resourceGuid] The resource GUID property of the + * LocalNetworkGateway resource. * - * @param {boolean} [vpnSiteParameters.isSecuritySite] IsSecuritySite flag + * @param {string} [parameters.etag] A unique read-only string that changes + * whenever the resource is updated. * - * @param {string} [vpnSiteParameters.id] Resource ID. + * @param {string} [parameters.id] Resource ID. * - * @param {string} [vpnSiteParameters.location] Resource location. + * @param {string} [parameters.location] Resource location. * - * @param {object} [vpnSiteParameters.tags] Resource tags. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -43552,73 +30907,54 @@ export interface VpnSites { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.LocalNetworkGateway, 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. + * Creates or updates a local network gateway in the specified resource group. * - * @param {string} [vpnSiteParameters.deviceProperties.deviceModel] Model of - * the device. + * @param {string} resourceGroupName The name of the resource group. * - * @param {number} [vpnSiteParameters.deviceProperties.linkSpeedInMbps] Link - * speed. + * @param {string} localNetworkGatewayName The name of the local network + * gateway. * - * @param {string} [vpnSiteParameters.ipAddress] The ip-address for the - * vpn-site. + * @param {object} parameters Parameters supplied to the create or update local + * network gateway operation. * - * @param {string} [vpnSiteParameters.siteKey] The key for vpn-site that can be - * used for connections. + * @param {object} [parameters.localNetworkAddressSpace] Local network site + * address space. * - * @param {object} [vpnSiteParameters.addressSpace] The AddressSpace that - * contains an array of IP address ranges. + * @param {array} [parameters.localNetworkAddressSpace.addressPrefixes] A list + * of address blocks reserved for this virtual network in CIDR notation. * - * @param {array} [vpnSiteParameters.addressSpace.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} [vpnSiteParameters.bgpProperties] The set of bgp properties. + * @param {object} [parameters.bgpSettings] Local network gateway's BGP speaker + * settings. * - * @param {number} [vpnSiteParameters.bgpProperties.asn] The BGP speaker's ASN. + * @param {number} [parameters.bgpSettings.asn] The BGP speaker's ASN. * - * @param {string} [vpnSiteParameters.bgpProperties.bgpPeeringAddress] The BGP - * peering address and BGP identifier of this BGP speaker. + * @param {string} [parameters.bgpSettings.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 {number} [parameters.bgpSettings.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 {string} [parameters.resourceGuid] The resource GUID property of the + * LocalNetworkGateway resource. * - * @param {boolean} [vpnSiteParameters.isSecuritySite] IsSecuritySite flag + * @param {string} [parameters.etag] A unique read-only string that changes + * whenever the resource is updated. * - * @param {string} [vpnSiteParameters.id] Resource ID. + * @param {string} [parameters.id] Resource ID. * - * @param {string} [vpnSiteParameters.location] Resource location. + * @param {string} [parameters.location] Resource location. * - * @param {object} [vpnSiteParameters.tags] Resource tags. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -43632,7 +30968,7 @@ export interface VpnSites { * * {Promise} A promise is returned. * - * @resolve {VpnSite} - The deserialized result object. + * @resolve {LocalNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -43640,29 +30976,25 @@ export interface VpnSites { * * {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. + * {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, 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; + 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; /** - * Updates VpnSite tags. - * - * @param {string} resourceGroupName The resource group name of the VpnSite. - * - * @param {string} vpnSiteName The name of the VpnSite being updated. + * Gets the specified local network gateway in a resource group. * - * @param {object} vpnSiteParameters Parameters supplied to update VpnSite - * tags. + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} [vpnSiteParameters.tags] Resource tags. + * @param {string} localNetworkGatewayName The name of the local network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -43671,23 +31003,19 @@ export interface VpnSites { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, localNetworkGatewayName: string, 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. + * Gets the specified local network gateway in a resource group. * - * @param {object} vpnSiteParameters Parameters supplied to update VpnSite - * tags. + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} [vpnSiteParameters.tags] Resource tags. + * @param {string} localNetworkGatewayName The name of the local network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -43701,7 +31029,7 @@ export interface VpnSites { * * {Promise} A promise is returned. * - * @resolve {VpnSite} - The deserialized result object. + * @resolve {LocalNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -43709,24 +31037,25 @@ export interface VpnSites { * * {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. + * {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, 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; + 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 a VpnSite. + * Deletes the specified local network gateway. * - * @param {string} resourceGroupName The resource group name of the VpnSite. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} vpnSiteName The name of the VpnSite being deleted. + * @param {string} localNetworkGatewayName The name of the local network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -43739,14 +31068,15 @@ export interface VpnSites { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, localNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes a VpnSite. + * Deletes the specified local network gateway. * - * @param {string} resourceGroupName The resource group name of the VpnSite. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} vpnSiteName The name of the VpnSite being deleted. + * @param {string} localNetworkGatewayName The name of the local network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -43774,15 +31104,23 @@ export interface VpnSites { * * {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; + 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; /** - * Lists all the vpnSites in a resource group. + * Updates a local network gateway tags. * - * @param {string} resourceGroupName The resource group name of the VpnSite. + * @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. * @@ -43791,16 +31129,24 @@ export interface VpnSites { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateTagsWithHttpOperationResponse(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the vpnSites in a resource group. + * Updates a local network gateway tags. * - * @param {string} resourceGroupName The resource group name of the VpnSite. + * @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. * @@ -43814,7 +31160,7 @@ export interface VpnSites { * * {Promise} A promise is returned. * - * @resolve {ListVpnSitesResult} - The deserialized result object. + * @resolve {LocalNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -43822,20 +31168,22 @@ export interface VpnSites { * * {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. + * {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. */ - 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; + 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; /** - * Lists all the VpnSites in a subscription. + * Gets all the local network gateways in a resource group. + * + * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * @@ -43844,14 +31192,16 @@ export interface VpnSites { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the VpnSites in a subscription. + * Gets all the local network gateways in a resource group. + * + * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * @@ -43865,7 +31215,7 @@ export interface VpnSites { * * {Promise} A promise is returned. * - * @resolve {ListVpnSitesResult} - The deserialized result object. + * @resolve {LocalNetworkGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -43873,79 +31223,61 @@ export interface VpnSites { * * {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. + * {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(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - list(callback: ServiceCallback): void; - list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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 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. + * Creates or updates a local network gateway in the specified resource group. * - * @param {string} [vpnSiteParameters.deviceProperties.deviceModel] Model of - * the device. + * @param {string} resourceGroupName The name of the resource group. * - * @param {number} [vpnSiteParameters.deviceProperties.linkSpeedInMbps] Link - * speed. + * @param {string} localNetworkGatewayName The name of the local network + * gateway. * - * @param {string} [vpnSiteParameters.ipAddress] The ip-address for the - * vpn-site. + * @param {object} parameters Parameters supplied to the create or update local + * network gateway operation. * - * @param {string} [vpnSiteParameters.siteKey] The key for vpn-site that can be - * used for connections. + * @param {object} [parameters.localNetworkAddressSpace] Local network site + * address space. * - * @param {object} [vpnSiteParameters.addressSpace] The AddressSpace that - * contains an array of IP address ranges. + * @param {array} [parameters.localNetworkAddressSpace.addressPrefixes] A list + * of address blocks reserved for this virtual network in CIDR notation. * - * @param {array} [vpnSiteParameters.addressSpace.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} [vpnSiteParameters.bgpProperties] The set of bgp properties. + * @param {object} [parameters.bgpSettings] Local network gateway's BGP speaker + * settings. * - * @param {number} [vpnSiteParameters.bgpProperties.asn] The BGP speaker's ASN. + * @param {number} [parameters.bgpSettings.asn] The BGP speaker's ASN. * - * @param {string} [vpnSiteParameters.bgpProperties.bgpPeeringAddress] The BGP - * peering address and BGP identifier of this BGP speaker. + * @param {string} [parameters.bgpSettings.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 {number} [parameters.bgpSettings.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 {string} [parameters.resourceGuid] The resource GUID property of the + * LocalNetworkGateway resource. * - * @param {boolean} [vpnSiteParameters.isSecuritySite] IsSecuritySite flag + * @param {string} [parameters.etag] A unique read-only string that changes + * whenever the resource is updated. * - * @param {string} [vpnSiteParameters.id] Resource ID. + * @param {string} [parameters.id] Resource ID. * - * @param {string} [vpnSiteParameters.location] Resource location. + * @param {string} [parameters.location] Resource location. * - * @param {object} [vpnSiteParameters.tags] Resource tags. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -43954,73 +31286,54 @@ export interface VpnSites { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.LocalNetworkGateway, 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. + * Creates or updates a local network gateway in the specified resource group. * - * @param {string} [vpnSiteParameters.deviceProperties.deviceModel] Model of - * the device. + * @param {string} resourceGroupName The name of the resource group. * - * @param {number} [vpnSiteParameters.deviceProperties.linkSpeedInMbps] Link - * speed. + * @param {string} localNetworkGatewayName The name of the local network + * gateway. * - * @param {string} [vpnSiteParameters.ipAddress] The ip-address for the - * vpn-site. + * @param {object} parameters Parameters supplied to the create or update local + * network gateway operation. * - * @param {string} [vpnSiteParameters.siteKey] The key for vpn-site that can be - * used for connections. + * @param {object} [parameters.localNetworkAddressSpace] Local network site + * address space. * - * @param {object} [vpnSiteParameters.addressSpace] The AddressSpace that - * contains an array of IP address ranges. + * @param {array} [parameters.localNetworkAddressSpace.addressPrefixes] A list + * of address blocks reserved for this virtual network in CIDR notation. * - * @param {array} [vpnSiteParameters.addressSpace.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} [vpnSiteParameters.bgpProperties] The set of bgp properties. + * @param {object} [parameters.bgpSettings] Local network gateway's BGP speaker + * settings. * - * @param {number} [vpnSiteParameters.bgpProperties.asn] The BGP speaker's ASN. + * @param {number} [parameters.bgpSettings.asn] The BGP speaker's ASN. * - * @param {string} [vpnSiteParameters.bgpProperties.bgpPeeringAddress] The BGP - * peering address and BGP identifier of this BGP speaker. + * @param {string} [parameters.bgpSettings.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 {number} [parameters.bgpSettings.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 {string} [parameters.resourceGuid] The resource GUID property of the + * LocalNetworkGateway resource. * - * @param {boolean} [vpnSiteParameters.isSecuritySite] IsSecuritySite flag + * @param {string} [parameters.etag] A unique read-only string that changes + * whenever the resource is updated. * - * @param {string} [vpnSiteParameters.id] Resource ID. + * @param {string} [parameters.id] Resource ID. * - * @param {string} [vpnSiteParameters.location] Resource location. + * @param {string} [parameters.location] Resource location. * - * @param {object} [vpnSiteParameters.tags] Resource tags. + * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -44034,7 +31347,7 @@ export interface VpnSites { * * {Promise} A promise is returned. * - * @resolve {VpnSite} - The deserialized result object. + * @resolve {LocalNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -44042,29 +31355,25 @@ export interface VpnSites { * * {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. + * {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, 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; + 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; /** - * Updates VpnSite tags. - * - * @param {string} resourceGroupName The resource group name of the VpnSite. - * - * @param {string} vpnSiteName The name of the VpnSite being updated. + * Deletes the specified local network gateway. * - * @param {object} vpnSiteParameters Parameters supplied to update VpnSite - * tags. + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} [vpnSiteParameters.tags] Resource tags. + * @param {string} localNetworkGatewayName The name of the local network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -44073,23 +31382,19 @@ export interface VpnSites { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, localNetworkGatewayName: string, 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. + * Deletes the specified local network gateway. * - * @param {object} vpnSiteParameters Parameters supplied to update VpnSite - * tags. + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} [vpnSiteParameters.tags] Resource tags. + * @param {string} localNetworkGatewayName The name of the local network + * gateway. * * @param {object} [options] Optional Parameters. * @@ -44103,7 +31408,7 @@ export interface VpnSites { * * {Promise} A promise is returned. * - * @resolve {VpnSite} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -44111,24 +31416,29 @@ export interface VpnSites { * * {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. + * {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. */ - 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; + 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; /** - * Deletes a VpnSite. + * Updates a local network gateway tags. * - * @param {string} resourceGroupName The resource group name of the VpnSite. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} vpnSiteName The name of the VpnSite being deleted. + * @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. * @@ -44137,18 +31447,24 @@ export interface VpnSites { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes a VpnSite. + * Updates a local network gateway tags. * - * @param {string} resourceGroupName The resource group name of the VpnSite. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} vpnSiteName The name of the VpnSite being deleted. + * @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. * @@ -44162,7 +31478,7 @@ export interface VpnSites { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {LocalNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -44170,19 +31486,20 @@ export interface VpnSites { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Lists all the vpnSites in a resource group. + * Gets all the local network gateways in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -44194,14 +31511,14 @@ export interface VpnSites { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the vpnSites in a resource group. + * Gets all the local network gateways in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -44218,7 +31535,7 @@ export interface VpnSites { * * {Promise} A promise is returned. * - * @resolve {ListVpnSitesResult} - The deserialized result object. + * @resolve {LocalNetworkGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -44226,23 +31543,34 @@ export interface VpnSites { * * {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. + * {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. */ - 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; + 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 + * VirtualWANs + * __NOTE__: An instance of this class is automatically created for an + * instance of the NetworkManagementClient. + */ +export interface VirtualWANs { /** - * Lists all the VpnSites in a subscription. + * Retrieves the details of a VirtualWAN. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -44251,17 +31579,18 @@ export interface VpnSites { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the VpnSites in a subscription. + * Retrieves the details of a VirtualWAN. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -44275,7 +31604,7 @@ export interface VpnSites { * * {Promise} A promise is returned. * - * @resolve {ListVpnSitesResult} - The deserialized result object. + * @resolve {VirtualWAN} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -44283,44 +31612,42 @@ export interface VpnSites { * * {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. + * {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. */ - 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 { + 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; /** - * Gives the sas-url to download the configurations for vpn-sites in a resource - * group. + * Creates a VirtualWAN resource if it doesn't exist else updates the existing + * VirtualWAN. * - * @param {string} resourceGroupName The resource group name. + * @param {string} resourceGroupName The resource group name of the VirtualWan. * - * @param {string} virtualWANName The name of the VirtualWAN for which - * configuration of all vpn-sites is needed. + * @param {string} virtualWANName The name of the VirtualWAN being created or + * updated. * - * @param {object} request Parameters supplied to download vpn-sites - * configuration. + * @param {object} wANParameters Parameters supplied to create or update + * VirtualWAN. * - * @param {array} [request.vpnSites] List of resource-ids of the vpn-sites for - * which config is to be downloaded. + * @param {boolean} [wANParameters.disableVpnEncryption] Vpn encryption to be + * disabled or not. * - * @param {string} [request.outputBlobSasUrl] The sas-url to download the - * configurations for vpn-sites + * @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. * @@ -44329,29 +31656,36 @@ export interface VpnSitesConfiguration { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, wANParameters: models.VirtualWAN, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gives the sas-url to download the configurations for vpn-sites in a resource - * group. + * 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} resourceGroupName The resource group name. + * @param {string} virtualWANName The name of the VirtualWAN being created or + * updated. * - * @param {string} virtualWANName The name of the VirtualWAN for which - * configuration of all vpn-sites is needed. + * @param {object} wANParameters Parameters supplied to create or update + * VirtualWAN. * - * @param {object} request Parameters supplied to download vpn-sites - * configuration. + * @param {boolean} [wANParameters.disableVpnEncryption] Vpn encryption to be + * disabled or not. * - * @param {array} [request.vpnSites] List of resource-ids of the vpn-sites for - * which config is to be downloaded. + * @param {string} [wANParameters.provisioningState] The provisioning state of + * the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', + * 'Failed' * - * @param {string} [request.outputBlobSasUrl] The sas-url to download the - * configurations for vpn-sites + * @param {string} [wANParameters.id] Resource ID. + * + * @param {string} [wANParameters.location] Resource location. + * + * @param {object} [wANParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -44365,7 +31699,7 @@ export interface VpnSitesConfiguration { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VirtualWAN} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -44373,34 +31707,28 @@ export interface VpnSitesConfiguration { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Gives the sas-url to download the configurations for vpn-sites in a resource - * group. - * - * @param {string} resourceGroupName The resource group name. + * Updates a VirtualWAN tags. * - * @param {string} virtualWANName The name of the VirtualWAN for which - * configuration of all vpn-sites is needed. + * @param {string} resourceGroupName The resource group name of the VirtualWan. * - * @param {object} request Parameters supplied to download vpn-sites - * configuration. + * @param {string} virtualWANName The name of the VirtualWAN being updated. * - * @param {array} [request.vpnSites] List of resource-ids of the vpn-sites for - * which config is to be downloaded. + * @param {object} wANParameters Parameters supplied to Update VirtualWAN tags. * - * @param {string} [request.outputBlobSasUrl] The sas-url to download the - * configurations for vpn-sites + * @param {object} [wANParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -44409,29 +31737,22 @@ export interface VpnSitesConfiguration { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + updateTagsWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, wANParameters: models.TagsObject, 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. + * Updates a VirtualWAN tags. * - * @param {string} virtualWANName The name of the VirtualWAN for which - * configuration of all vpn-sites is needed. + * @param {string} resourceGroupName The resource group name of the VirtualWan. * - * @param {object} request Parameters supplied to download vpn-sites - * configuration. + * @param {string} virtualWANName The name of the VirtualWAN being updated. * - * @param {array} [request.vpnSites] List of resource-ids of the vpn-sites for - * which config is to be downloaded. + * @param {object} wANParameters Parameters supplied to Update VirtualWAN tags. * - * @param {string} [request.outputBlobSasUrl] The sas-url to download the - * configurations for vpn-sites + * @param {object} [wANParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -44445,7 +31766,7 @@ export interface VpnSitesConfiguration { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VirtualWAN} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -44453,32 +31774,24 @@ export interface VpnSitesConfiguration { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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 { + 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; /** - * Retrieves the details of a VirtualHub. + * Deletes a VirtualWAN. * - * @param {string} resourceGroupName The resource group name of the VirtualHub. + * @param {string} resourceGroupName The resource group name of the VirtualWan. * - * @param {string} virtualHubName The name of the VirtualHub. + * @param {string} virtualWANName The name of the VirtualWAN being deleted. * * @param {object} [options] Optional Parameters. * @@ -44487,18 +31800,18 @@ export interface VirtualHubs { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves the details of a VirtualHub. + * Deletes a VirtualWAN. * - * @param {string} resourceGroupName The resource group name of the VirtualHub. + * @param {string} resourceGroupName The resource group name of the VirtualWan. * - * @param {string} virtualHubName The name of the VirtualHub. + * @param {string} virtualWANName The name of the VirtualWAN being deleted. * * @param {object} [options] Optional Parameters. * @@ -44512,7 +31825,7 @@ export interface VirtualHubs { * * {Promise} A promise is returned. * - * @resolve {VirtualHub} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -44520,63 +31833,21 @@ export interface VirtualHubs { * * {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. + * {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. */ - 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; + 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; /** - * 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. + * Lists all the VirtualWANs in a resource group. * - * @param {object} [virtualHubParameters.tags] Resource tags. + * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {object} [options] Optional Parameters. * @@ -44585,57 +31856,16 @@ export interface VirtualHubs { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, 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. + * Lists all the VirtualWANs in a resource group. * - * @param {object} [virtualHubParameters.tags] Resource tags. + * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {object} [options] Optional Parameters. * @@ -44649,7 +31879,7 @@ export interface VirtualHubs { * * {Promise} A promise is returned. * - * @resolve {VirtualHub} - The deserialized result object. + * @resolve {ListVirtualWANsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -44657,29 +31887,20 @@ export interface VirtualHubs { * * {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. + * {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. */ - 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; + 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; /** - * 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. + * Lists all the VirtualWANs in a subscription. * * @param {object} [options] Optional Parameters. * @@ -44688,23 +31909,14 @@ export interface VirtualHubs { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listWithHttpOperationResponse(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. + * Lists all the VirtualWANs in a subscription. * * @param {object} [options] Optional Parameters. * @@ -44718,7 +31930,7 @@ export interface VirtualHubs { * * {Promise} A promise is returned. * - * @resolve {VirtualHub} - The deserialized result object. + * @resolve {ListVirtualWANsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -44726,24 +31938,42 @@ export interface VirtualHubs { * * {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. + * {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. */ - 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; + list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(callback: ServiceCallback): void; + list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes a VirtualHub. + * Creates a VirtualWAN resource if it doesn't exist else updates the existing + * VirtualWAN. * - * @param {string} resourceGroupName The resource group name of the VirtualHub. + * @param {string} resourceGroupName The resource group name of the VirtualWan. * - * @param {string} virtualHubName The name of the VirtualHub. + * @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.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. * @@ -44752,18 +31982,36 @@ export interface VirtualHubs { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, wANParameters: models.VirtualWAN, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes a VirtualHub. + * Creates a VirtualWAN resource if it doesn't exist else updates the existing + * VirtualWAN. * - * @param {string} resourceGroupName The resource group name of the VirtualHub. + * @param {string} resourceGroupName The resource group name of the VirtualWan. * - * @param {string} virtualHubName The name of the VirtualHub. + * @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.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. * @@ -44777,7 +32025,7 @@ export interface VirtualHubs { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VirtualWAN} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -44785,21 +32033,28 @@ export interface VirtualHubs { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Lists all the VirtualHubs in a resource group. + * Updates a VirtualWAN tags. * - * @param {string} resourceGroupName The resource group name of the VirtualHub. + * @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. * @@ -44808,16 +32063,22 @@ export interface VirtualHubs { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, wANParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the VirtualHubs in a resource group. + * Updates a VirtualWAN tags. * - * @param {string} resourceGroupName The resource group name of the VirtualHub. + * @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. * @@ -44831,7 +32092,7 @@ export interface VirtualHubs { * * {Promise} A promise is returned. * - * @resolve {ListVirtualHubsResult} - The deserialized result object. + * @resolve {VirtualWAN} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -44839,20 +32100,24 @@ export interface VirtualHubs { * * {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. + * {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. */ - 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; + 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; /** - * Lists all the VirtualHubs in a subscription. + * 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. * @@ -44861,14 +32126,18 @@ export interface VirtualHubs { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the VirtualHubs in a subscription. + * 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. * @@ -44882,7 +32151,7 @@ export interface VirtualHubs { * * {Promise} A promise is returned. * - * @resolve {ListVirtualHubsResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -44890,63 +32159,22 @@ export interface VirtualHubs { * * {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. + * {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. */ - list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - list(callback: ServiceCallback): void; - list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + 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; /** - * 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. + * Lists all the VirtualWANs in a resource group. * - * @param {object} [virtualHubParameters.tags] Resource tags. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -44955,57 +32183,17 @@ export interface VirtualHubs { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, 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. + * Lists all the VirtualWANs in a resource group. * - * @param {object} [virtualHubParameters.tags] Resource tags. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -45019,7 +32207,7 @@ export interface VirtualHubs { * * {Promise} A promise is returned. * - * @resolve {VirtualHub} - The deserialized result object. + * @resolve {ListVirtualWANsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -45027,29 +32215,23 @@ export interface VirtualHubs { * * {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. + * {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. */ - 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; + 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; /** - * 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. + * Lists all the VirtualWANs in a subscription. * - * @param {object} [virtualHubParameters.tags] Resource tags. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -45058,23 +32240,17 @@ export interface VirtualHubs { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listNextWithHttpOperationResponse(nextPageLink: string, 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. + * Lists all the VirtualWANs in a subscription. * - * @param {object} [virtualHubParameters.tags] Resource tags. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -45088,7 +32264,7 @@ export interface VirtualHubs { * * {Promise} A promise is returned. * - * @resolve {VirtualHub} - The deserialized result object. + * @resolve {ListVirtualWANsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -45096,24 +32272,33 @@ export interface VirtualHubs { * * {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. + * {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. */ - 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; + 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 { /** - * Deletes a VirtualHub. + * Retrieves the details of a VPNsite. * - * @param {string} resourceGroupName The resource group name of the VirtualHub. + * @param {string} resourceGroupName The resource group name of the VpnSite. * - * @param {string} virtualHubName The name of the VirtualHub. + * @param {string} vpnSiteName The name of the VpnSite being retrieved. * * @param {object} [options] Optional Parameters. * @@ -45122,18 +32307,18 @@ export interface VirtualHubs { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes a VirtualHub. + * Retrieves the details of a VPNsite. * - * @param {string} resourceGroupName The resource group name of the VirtualHub. + * @param {string} resourceGroupName The resource group name of the VpnSite. * - * @param {string} virtualHubName The name of the VirtualHub. + * @param {string} vpnSiteName The name of the VpnSite being retrieved. * * @param {object} [options] Optional Parameters. * @@ -45147,7 +32332,7 @@ export interface VirtualHubs { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VpnSite} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -45155,79 +32340,77 @@ export interface VirtualHubs { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Lists all the VirtualHubs in a resource group. + * Creates a VpnSite resource if it doesn't exist else updates the existing + * VpnSite. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The resource group name of the VpnSite. * - * @param {object} [options] Optional Parameters. + * @param {string} vpnSiteName The name of the VpnSite being created or + * updated. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {object} vpnSiteParameters Parameters supplied to create or update + * VpnSite. * - * @returns {Promise} A promise is returned + * @param {object} [vpnSiteParameters.virtualWAN] The VirtualWAN to which the + * vpnSite belongs * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {string} [vpnSiteParameters.virtualWAN.id] Resource ID. * - * @reject {Error|ServiceError} - The error object. - */ - listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Lists all the VirtualHubs in a resource group. + * @param {object} [vpnSiteParameters.deviceProperties] The device properties * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} [vpnSiteParameters.deviceProperties.deviceVendor] Name of + * the device Vendor. * - * @param {object} [options] Optional Parameters. + * @param {string} [vpnSiteParameters.deviceProperties.deviceModel] Model of + * the device. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {number} [vpnSiteParameters.deviceProperties.linkSpeedInMbps] Link + * speed. * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {string} [vpnSiteParameters.ipAddress] The ip-address for the + * vpn-site. * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {string} [vpnSiteParameters.siteKey] The key for vpn-site that can be + * used for connections. * - * {Promise} A promise is returned. + * @param {object} [vpnSiteParameters.addressSpace] The AddressSpace that + * contains an array of IP address ranges. * - * @resolve {ListVirtualHubsResult} - The deserialized result object. + * @param {array} [vpnSiteParameters.addressSpace.addressPrefixes] A list of + * address blocks reserved for this virtual network in CIDR notation. * - * @reject {Error|ServiceError} - The error object. + * @param {object} [vpnSiteParameters.bgpProperties] The set of bgp properties. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {number} [vpnSiteParameters.bgpProperties.asn] The BGP speaker's ASN. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {string} [vpnSiteParameters.bgpProperties.bgpPeeringAddress] The BGP + * peering address and BGP identifier of this BGP speaker. * - * {ListVirtualHubsResult} [result] - The deserialized result object if an error did not occur. - * See {@link ListVirtualHubsResult} for more information. + * @param {number} [vpnSiteParameters.bgpProperties.peerWeight] The weight + * added to routes learned from this BGP speaker. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {string} [vpnSiteParameters.provisioningState] The provisioning state + * of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' * - * {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} [vpnSiteParameters.id] Resource ID. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} [vpnSiteParameters.location] Resource location. + * + * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -45236,17 +32419,71 @@ export interface VirtualHubs { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.VpnSite, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the VirtualHubs in a subscription. + * Creates a VpnSite resource if it doesn't exist else updates the existing + * VpnSite. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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 {string} [vpnSiteParameters.id] Resource ID. + * + * @param {string} [vpnSiteParameters.location] Resource location. + * + * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -45260,7 +32497,7 @@ export interface VirtualHubs { * * {Promise} A promise is returned. * - * @resolve {ListVirtualHubsResult} - The deserialized result object. + * @resolve {VpnSite} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -45268,35 +32505,29 @@ export interface VirtualHubs { * * {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. + * {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. */ - 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 { + 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; /** - * Retrieves the details of a HubVirtualNetworkConnection. + * Updates VpnSite tags. * - * @param {string} resourceGroupName The resource group name of the VirtualHub. + * @param {string} resourceGroupName The resource group name of the VpnSite. * - * @param {string} virtualHubName The name of the VirtualHub. + * @param {string} vpnSiteName The name of the VpnSite being updated. * - * @param {string} connectionName The name of the vpn connection. + * @param {object} vpnSiteParameters Parameters supplied to update VpnSite + * tags. + * + * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -45305,20 +32536,23 @@ export interface HubVirtualNetworkConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + updateTagsWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves the details of a HubVirtualNetworkConnection. + * Updates VpnSite tags. * - * @param {string} resourceGroupName The resource group name of the VirtualHub. + * @param {string} resourceGroupName The resource group name of the VpnSite. * - * @param {string} virtualHubName The name of the VirtualHub. + * @param {string} vpnSiteName The name of the VpnSite being updated. * - * @param {string} connectionName The name of the vpn connection. + * @param {object} vpnSiteParameters Parameters supplied to update VpnSite + * tags. + * + * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -45332,7 +32566,7 @@ export interface HubVirtualNetworkConnections { * * {Promise} A promise is returned. * - * @resolve {HubVirtualNetworkConnection} - The deserialized result object. + * @resolve {VpnSite} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -45340,25 +32574,24 @@ export interface HubVirtualNetworkConnections { * * {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. + * {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, 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; + 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; /** - * Retrieves the details of all HubVirtualNetworkConnections. + * Deletes a VpnSite. * - * @param {string} resourceGroupName The resource group name of the VirtualHub. + * @param {string} resourceGroupName The resource group name of the VpnSite. * - * @param {string} virtualHubName The name of the VirtualHub. + * @param {string} vpnSiteName The name of the VpnSite being deleted. * * @param {object} [options] Optional Parameters. * @@ -45367,18 +32600,18 @@ export interface HubVirtualNetworkConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves the details of all HubVirtualNetworkConnections. + * Deletes a VpnSite. * - * @param {string} resourceGroupName The resource group name of the VirtualHub. + * @param {string} resourceGroupName The resource group name of the VpnSite. * - * @param {string} virtualHubName The name of the VirtualHub. + * @param {string} vpnSiteName The name of the VpnSite being deleted. * * @param {object} [options] Optional Parameters. * @@ -45392,7 +32625,7 @@ export interface HubVirtualNetworkConnections { * * {Promise} A promise is returned. * - * @resolve {ListHubVirtualNetworkConnectionsResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -45400,24 +32633,21 @@ export interface HubVirtualNetworkConnections { * * {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. + * {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. */ - 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; + 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; /** - * Retrieves the details of all HubVirtualNetworkConnections. + * Lists all the vpnSites in a resource group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {object} [options] Optional Parameters. * @@ -45426,17 +32656,16 @@ export interface HubVirtualNetworkConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves the details of all HubVirtualNetworkConnections. + * Lists all the vpnSites in a resource group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {object} [options] Optional Parameters. * @@ -45450,7 +32679,7 @@ export interface HubVirtualNetworkConnections { * * {Promise} A promise is returned. * - * @resolve {ListHubVirtualNetworkConnectionsResult} - The deserialized result object. + * @resolve {ListVpnSitesResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -45458,34 +32687,20 @@ export interface HubVirtualNetworkConnections { * * {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. + * {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 - * VpnGateways - * __NOTE__: An instance of this class is automatically created for an - * instance of the NetworkManagementClient. - */ -export interface VpnGateways { + 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; /** - * 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. + * Lists all the VpnSites in a subscription. * * @param {object} [options] Optional Parameters. * @@ -45494,18 +32709,14 @@ export interface VpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(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. + * Lists all the VpnSites in a subscription. * * @param {object} [options] Optional Parameters. * @@ -45519,7 +32730,7 @@ export interface VpnGateways { * * {Promise} A promise is returned. * - * @resolve {VpnGateway} - The deserialized result object. + * @resolve {ListVpnSitesResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -45527,61 +32738,77 @@ export interface VpnGateways { * * {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. + * {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. */ - 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; + 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. + * Creates a VpnSite resource if it doesn't exist else updates the existing + * VpnSite. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnSite. * - * @param {string} gatewayName The name of the gateway. + * @param {string} vpnSiteName The name of the VpnSite being created or + * updated. * - * @param {object} vpnGatewayParameters Parameters supplied to create or Update - * a virtual wan vpn gateway. + * @param {object} vpnSiteParameters Parameters supplied to create or update + * VpnSite. * - * @param {object} [vpnGatewayParameters.virtualHub] The VirtualHub to which - * the gateway belongs + * @param {object} [vpnSiteParameters.virtualWAN] The VirtualWAN to which the + * vpnSite belongs * - * @param {string} [vpnGatewayParameters.virtualHub.id] Resource ID. + * @param {string} [vpnSiteParameters.virtualWAN.id] Resource ID. * - * @param {array} [vpnGatewayParameters.connections] list of all vpn - * connections to the gateway. + * @param {object} [vpnSiteParameters.deviceProperties] The device properties * - * @param {object} [vpnGatewayParameters.bgpSettings] Local network gateway's - * BGP speaker settings. + * @param {string} [vpnSiteParameters.deviceProperties.deviceVendor] Name of + * the device Vendor. * - * @param {number} [vpnGatewayParameters.bgpSettings.asn] The BGP speaker's - * ASN. + * @param {string} [vpnSiteParameters.deviceProperties.deviceModel] Model of + * the device. * - * @param {string} [vpnGatewayParameters.bgpSettings.bgpPeeringAddress] The BGP + * @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} [vpnGatewayParameters.bgpSettings.peerWeight] The weight + * @param {number} [vpnSiteParameters.bgpProperties.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', + * @param {string} [vpnSiteParameters.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} [vpnSiteParameters.id] Resource ID. * - * @param {string} [vpnGatewayParameters.location] Resource location. + * @param {string} [vpnSiteParameters.location] Resource location. * - * @param {object} [vpnGatewayParameters.tags] Resource tags. + * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -45590,55 +32817,71 @@ export interface VpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.VpnSite, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a virtual wan vpn gateway if it doesn't exist else updates the - * existing gateway. + * Creates a VpnSite resource if it doesn't exist else updates the existing + * VpnSite. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnSite. * - * @param {string} gatewayName The name of the gateway. + * @param {string} vpnSiteName The name of the VpnSite being created or + * updated. * - * @param {object} vpnGatewayParameters Parameters supplied to create or Update - * a virtual wan vpn gateway. + * @param {object} vpnSiteParameters Parameters supplied to create or update + * VpnSite. * - * @param {object} [vpnGatewayParameters.virtualHub] The VirtualHub to which - * the gateway belongs + * @param {object} [vpnSiteParameters.virtualWAN] The VirtualWAN to which the + * vpnSite belongs * - * @param {string} [vpnGatewayParameters.virtualHub.id] Resource ID. + * @param {string} [vpnSiteParameters.virtualWAN.id] Resource ID. * - * @param {array} [vpnGatewayParameters.connections] list of all vpn - * connections to the gateway. + * @param {object} [vpnSiteParameters.deviceProperties] The device properties * - * @param {object} [vpnGatewayParameters.bgpSettings] Local network gateway's - * BGP speaker settings. + * @param {string} [vpnSiteParameters.deviceProperties.deviceVendor] Name of + * the device Vendor. * - * @param {number} [vpnGatewayParameters.bgpSettings.asn] The BGP speaker's - * ASN. + * @param {string} [vpnSiteParameters.deviceProperties.deviceModel] Model of + * the device. * - * @param {string} [vpnGatewayParameters.bgpSettings.bgpPeeringAddress] The BGP + * @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} [vpnGatewayParameters.bgpSettings.peerWeight] The weight + * @param {number} [vpnSiteParameters.bgpProperties.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', + * @param {string} [vpnSiteParameters.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} [vpnSiteParameters.id] Resource ID. * - * @param {string} [vpnGatewayParameters.location] Resource location. + * @param {string} [vpnSiteParameters.location] Resource location. * - * @param {object} [vpnGatewayParameters.tags] Resource tags. + * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -45652,7 +32895,7 @@ export interface VpnGateways { * * {Promise} A promise is returned. * - * @resolve {VpnGateway} - The deserialized result object. + * @resolve {VpnSite} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -45660,29 +32903,29 @@ export interface VpnGateways { * * {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. + * {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, 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; + 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 virtual wan vpn gateway tags. + * Updates VpnSite tags. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnSite. * - * @param {string} gatewayName The name of the gateway. + * @param {string} vpnSiteName The name of the VpnSite being updated. * - * @param {object} vpnGatewayParameters Parameters supplied to update a virtual - * wan vpn gateway tags. + * @param {object} vpnSiteParameters Parameters supplied to update VpnSite + * tags. * - * @param {object} [vpnGatewayParameters.tags] Resource tags. + * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -45691,23 +32934,23 @@ export interface VpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates virtual wan vpn gateway tags. + * Updates VpnSite tags. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnSite. * - * @param {string} gatewayName The name of the gateway. + * @param {string} vpnSiteName The name of the VpnSite being updated. * - * @param {object} vpnGatewayParameters Parameters supplied to update a virtual - * wan vpn gateway tags. + * @param {object} vpnSiteParameters Parameters supplied to update VpnSite + * tags. * - * @param {object} [vpnGatewayParameters.tags] Resource tags. + * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -45721,7 +32964,7 @@ export interface VpnGateways { * * {Promise} A promise is returned. * - * @resolve {VpnGateway} - The deserialized result object. + * @resolve {VpnSite} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -45729,24 +32972,24 @@ export interface VpnGateways { * * {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. + * {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, 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; + 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 virtual wan vpn gateway. + * Deletes a VpnSite. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnSite. * - * @param {string} gatewayName The name of the gateway. + * @param {string} vpnSiteName The name of the VpnSite being deleted. * * @param {object} [options] Optional Parameters. * @@ -45759,14 +33002,14 @@ export interface VpnGateways { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes a virtual wan vpn gateway. + * Deletes a VpnSite. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnSite. * - * @param {string} gatewayName The name of the gateway. + * @param {string} vpnSiteName The name of the VpnSite being deleted. * * @param {object} [options] Optional Parameters. * @@ -45794,15 +33037,16 @@ export interface VpnGateways { * * {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; + 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 VpnGateways in a resource group. + * Lists all the vpnSites in a resource group. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -45811,16 +33055,17 @@ export interface VpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the VpnGateways in a resource group. + * Lists all the vpnSites in a resource group. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -45834,7 +33079,7 @@ export interface VpnGateways { * * {Promise} A promise is returned. * - * @resolve {ListVpnGatewaysResult} - The deserialized result object. + * @resolve {ListVpnSitesResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -45842,20 +33087,23 @@ export interface VpnGateways { * * {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. + * {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; + 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. + * 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. * @@ -45864,14 +33112,17 @@ export interface VpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the VpnGateways in a subscription. + * 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. * @@ -45885,7 +33136,7 @@ export interface VpnGateways { * * {Promise} A promise is returned. * - * @resolve {ListVpnGatewaysResult} - The deserialized result object. + * @resolve {ListVpnSitesResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -45893,61 +33144,44 @@ export interface VpnGateways { * * {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. + * {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; + 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 { /** - * 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. + * Gives the sas-url to download the configurations for vpn-sites in a resource + * group. * - * @param {string} [vpnGatewayParameters.provisioningState] The provisioning - * state of the resource. Possible values include: 'Succeeded', 'Updating', - * 'Deleting', 'Failed' + * @param {string} resourceGroupName The resource group name. * - * @param {number} [vpnGatewayParameters.vpnGatewayScaleUnit] The scale unit - * for this vpn gateway. + * @param {string} virtualWANName The name of the VirtualWAN for which + * configuration of all vpn-sites is needed. * - * @param {string} [vpnGatewayParameters.id] Resource ID. + * @param {object} request Parameters supplied to download vpn-sites + * configuration. * - * @param {string} [vpnGatewayParameters.location] Resource location. + * @param {array} [request.vpnSites] List of resource-ids of the vpn-sites for + * which config is to be downloaded. * - * @param {object} [vpnGatewayParameters.tags] Resource tags. + * @param {string} [request.outputBlobSasUrl] The sas-url to download the + * configurations for vpn-sites * * @param {object} [options] Optional Parameters. * @@ -45956,55 +33190,29 @@ export interface VpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + downloadWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, request: models.GetVpnSitesConfigurationRequest, 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. + * Gives the sas-url to download the configurations for vpn-sites in a resource + * group. * - * @param {string} [vpnGatewayParameters.provisioningState] The provisioning - * state of the resource. Possible values include: 'Succeeded', 'Updating', - * 'Deleting', 'Failed' + * @param {string} resourceGroupName The resource group name. * - * @param {number} [vpnGatewayParameters.vpnGatewayScaleUnit] The scale unit - * for this vpn gateway. + * @param {string} virtualWANName The name of the VirtualWAN for which + * configuration of all vpn-sites is needed. * - * @param {string} [vpnGatewayParameters.id] Resource ID. + * @param {object} request Parameters supplied to download vpn-sites + * configuration. * - * @param {string} [vpnGatewayParameters.location] Resource location. + * @param {array} [request.vpnSites] List of resource-ids of the vpn-sites for + * which config is to be downloaded. * - * @param {object} [vpnGatewayParameters.tags] Resource tags. + * @param {string} [request.outputBlobSasUrl] The sas-url to download the + * configurations for vpn-sites * * @param {object} [options] Optional Parameters. * @@ -46018,7 +33226,7 @@ export interface VpnGateways { * * {Promise} A promise is returned. * - * @resolve {VpnGateway} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -46026,29 +33234,34 @@ export interface VpnGateways { * * {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. + * {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. */ - 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; + 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; /** - * Updates virtual wan vpn gateway tags. + * Gives the sas-url to download the configurations for vpn-sites in a resource + * group. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} resourceGroupName The resource group name. * - * @param {string} gatewayName The name of the gateway. + * @param {string} virtualWANName The name of the VirtualWAN for which + * configuration of all vpn-sites is needed. * - * @param {object} vpnGatewayParameters Parameters supplied to update a virtual - * wan vpn gateway tags. + * @param {object} request Parameters supplied to download vpn-sites + * configuration. * - * @param {object} [vpnGatewayParameters.tags] Resource tags. + * @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. * @@ -46057,23 +33270,29 @@ export interface VpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginDownloadWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, request: models.GetVpnSitesConfigurationRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates virtual wan vpn gateway tags. + * Gives the sas-url to download the configurations for vpn-sites in a resource + * group. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} resourceGroupName The resource group name. * - * @param {string} gatewayName The name of the gateway. + * @param {string} virtualWANName The name of the VirtualWAN for which + * configuration of all vpn-sites is needed. * - * @param {object} vpnGatewayParameters Parameters supplied to update a virtual - * wan vpn gateway tags. + * @param {object} request Parameters supplied to download vpn-sites + * configuration. * - * @param {object} [vpnGatewayParameters.tags] Resource tags. + * @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. * @@ -46087,7 +33306,7 @@ export interface VpnGateways { * * {Promise} A promise is returned. * - * @resolve {VpnGateway} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -46095,24 +33314,32 @@ export interface VpnGateways { * * {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. + * {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. */ - 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; + 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 { /** - * Deletes a virtual wan vpn gateway. + * Retrieves the details of a VirtualHub. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} resourceGroupName The resource group name of the VirtualHub. * - * @param {string} gatewayName The name of the gateway. + * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * @@ -46121,18 +33348,18 @@ export interface VpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes a virtual wan vpn gateway. + * Retrieves the details of a VirtualHub. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} resourceGroupName The resource group name of the VirtualHub. * - * @param {string} gatewayName The name of the gateway. + * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * @@ -46146,7 +33373,7 @@ export interface VpnGateways { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VirtualHub} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -46154,22 +33381,49 @@ export interface VpnGateways { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Lists all the VpnGateways in a resource group. + * Creates a VirtualHub resource if it doesn't exist else updates the existing + * VirtualHub. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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 {string} [virtualHubParameters.virtualWan.id] Resource ID. + * + * @param {array} [virtualHubParameters.hubVirtualNetworkConnections] list of + * all vnet connections with this VirtualHub. + * + * @param {string} [virtualHubParameters.addressPrefix] Address-prefix for this + * VirtualHub. + * + * @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. * @@ -46178,17 +33432,43 @@ export interface VpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.VirtualHub, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the VpnGateways in a resource group. + * Creates a VirtualHub resource if it doesn't exist else updates the existing + * VirtualHub. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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 {string} [virtualHubParameters.virtualWan.id] Resource ID. + * + * @param {array} [virtualHubParameters.hubVirtualNetworkConnections] list of + * all vnet connections with this VirtualHub. + * + * @param {string} [virtualHubParameters.addressPrefix] Address-prefix for this + * VirtualHub. + * + * @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. * @@ -46202,7 +33482,7 @@ export interface VpnGateways { * * {Promise} A promise is returned. * - * @resolve {ListVpnGatewaysResult} - The deserialized result object. + * @resolve {VirtualHub} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -46210,23 +33490,29 @@ export interface VpnGateways { * * {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. + * {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. */ - 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; + 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; /** - * Lists all the VpnGateways in a subscription. + * Updates VirtualHub tags. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -46235,17 +33521,23 @@ export interface VpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateTagsWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the VpnGateways in a subscription. + * Updates VirtualHub tags. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -46259,7 +33551,7 @@ export interface VpnGateways { * * {Promise} A promise is returned. * - * @resolve {ListVpnGatewaysResult} - The deserialized result object. + * @resolve {VirtualHub} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -46267,35 +33559,24 @@ export interface VpnGateways { * * {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. + * {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. */ - 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 { + 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; /** - * Retrieves the details of a vpn connection. - * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * Deletes a VirtualHub. * - * @param {string} gatewayName The name of the gateway. + * @param {string} resourceGroupName The resource group name of the VirtualHub. * - * @param {string} connectionName The name of the vpn connection. + * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * @@ -46304,20 +33585,18 @@ export interface VpnConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves the details of a vpn connection. - * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * Deletes a VirtualHub. * - * @param {string} gatewayName The name of the gateway. + * @param {string} resourceGroupName The resource group name of the VirtualHub. * - * @param {string} connectionName The name of the vpn connection. + * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * @@ -46331,7 +33610,7 @@ export interface VpnConnections { * * {Promise} A promise is returned. * - * @resolve {VpnConnection} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -46339,72 +33618,21 @@ export interface VpnConnections { * * {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. + * {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. */ - 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; + 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; /** - * 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 {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. + * Lists all the VirtualHubs in a resource group. * - * @param {string} [vpnConnectionParameters.id] Resource ID. + * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {object} [options] Optional Parameters. * @@ -46413,66 +33641,67 @@ export interface VpnConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, 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. + * Lists all the VirtualHubs in a resource group. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} resourceGroupName The resource group name of the VirtualHub. * - * @param {string} gatewayName The name of the gateway. + * @param {object} [options] Optional Parameters. * - * @param {string} connectionName The name of the connection. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {object} vpnConnectionParameters Parameters supplied to create or - * Update a VPN Connection. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {object} [vpnConnectionParameters.remoteVpnSite] Id of the connected - * vpn site. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {string} [vpnConnectionParameters.remoteVpnSite.id] Resource ID. + * {Promise} A promise is returned. * - * @param {number} [vpnConnectionParameters.routingWeight] routing weight for - * vpn connection. + * @resolve {ListVirtualHubsResult} - The deserialized result object. * - * @param {string} [vpnConnectionParameters.connectionStatus] The connection - * status. Possible values include: 'Unknown', 'Connecting', 'Connected', - * 'NotConnected' + * @reject {Error|ServiceError} - The error object. * - * @param {string} [vpnConnectionParameters.vpnConnectionProtocolType] - * Connection protocol used for this connection. Possible values include: - * 'IKEv2', 'IKEv1' + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {number} [vpnConnectionParameters.connectionBandwidth] Expected - * bandwidth in MBPS. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {string} [vpnConnectionParameters.sharedKey] SharedKey for the vpn - * connection. + * {ListVirtualHubsResult} [result] - The deserialized result object if an error did not occur. + * See {@link ListVirtualHubsResult} for more information. * - * @param {boolean} [vpnConnectionParameters.enableBgp] EnableBgp flag + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {array} [vpnConnectionParameters.ipsecPolicies] The IPSec Policies to - * be considered by this connection. + * {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 {boolean} [vpnConnectionParameters.enableRateLimiting] EnableBgp flag + * @param {object} [options] Optional Parameters. * - * @param {boolean} [vpnConnectionParameters.enableInternetSecurity] Enable - * internet security + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [vpnConnectionParameters.provisioningState] The provisioning - * state of the resource. Possible values include: 'Succeeded', 'Updating', - * 'Deleting', 'Failed' + * @returns {Promise} A promise is returned * - * @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. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} [vpnConnectionParameters.id] Resource ID. + * @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. * @@ -46486,7 +33715,7 @@ export interface VpnConnections { * * {Promise} A promise is returned. * - * @resolve {VpnConnection} - The deserialized result object. + * @resolve {ListVirtualHubsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -46494,26 +33723,49 @@ export interface VpnConnections { * * {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. + * {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. */ - 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; + list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(callback: ServiceCallback): void; + list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes a vpn connection. + * Creates a VirtualHub resource if it doesn't exist else updates the existing + * VirtualHub. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} resourceGroupName The resource group name of the VirtualHub. * - * @param {string} gatewayName The name of the gateway. + * @param {string} virtualHubName The name of the VirtualHub. * - * @param {string} connectionName The name of the connection. + * @param {object} virtualHubParameters Parameters supplied to create or update + * VirtualHub. + * + * @param {object} [virtualHubParameters.virtualWan] The VirtualWAN to which + * the VirtualHub belongs + * + * @param {string} [virtualHubParameters.virtualWan.id] Resource ID. + * + * @param {array} [virtualHubParameters.hubVirtualNetworkConnections] list of + * all vnet connections with this VirtualHub. + * + * @param {string} [virtualHubParameters.addressPrefix] Address-prefix for this + * VirtualHub. + * + * @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. * @@ -46522,20 +33774,43 @@ export interface VpnConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.VirtualHub, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes a vpn connection. + * Creates a VirtualHub resource if it doesn't exist else updates the existing + * VirtualHub. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} resourceGroupName The resource group name of the VirtualHub. * - * @param {string} gatewayName The name of the gateway. + * @param {string} virtualHubName The name of the VirtualHub. * - * @param {string} connectionName The name of the connection. + * @param {object} virtualHubParameters Parameters supplied to create or update + * VirtualHub. + * + * @param {object} [virtualHubParameters.virtualWan] The VirtualWAN to which + * the VirtualHub belongs + * + * @param {string} [virtualHubParameters.virtualWan.id] Resource ID. + * + * @param {array} [virtualHubParameters.hubVirtualNetworkConnections] list of + * all vnet connections with this VirtualHub. + * + * @param {string} [virtualHubParameters.addressPrefix] Address-prefix for this + * VirtualHub. + * + * @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. * @@ -46549,7 +33824,7 @@ export interface VpnConnections { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {VirtualHub} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -46557,23 +33832,29 @@ export interface VpnConnections { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * Updates VirtualHub tags. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} resourceGroupName The resource group name of the VirtualHub. * - * @param {string} gatewayName The name of the gateway. + * @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. * @@ -46582,18 +33863,23 @@ export interface VpnConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByVpnGatewayWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * Updates VirtualHub tags. * - * @param {string} resourceGroupName The resource group name of the VpnGateway. + * @param {string} resourceGroupName The resource group name of the VirtualHub. * - * @param {string} gatewayName The name of the gateway. + * @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. * @@ -46607,7 +33893,7 @@ export interface VpnConnections { * * {Promise} A promise is returned. * - * @resolve {ListVpnConnectionsResult} - The deserialized result object. + * @resolve {VirtualHub} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -46615,73 +33901,24 @@ export interface VpnConnections { * * {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. + * {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. */ - 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; + 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; /** - * 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 {string} [vpnConnectionParameters.provisioningState] The provisioning - * state of the resource. Possible values include: 'Succeeded', 'Updating', - * 'Deleting', 'Failed' + * Deletes a VirtualHub. * - * @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} resourceGroupName The resource group name of the VirtualHub. * - * @param {string} [vpnConnectionParameters.id] Resource ID. + * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * @@ -46690,66 +33927,18 @@ export interface VpnConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, 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 {string} [vpnConnectionParameters.provisioningState] The provisioning - * state of the resource. Possible values include: 'Succeeded', 'Updating', - * 'Deleting', 'Failed' + * Deletes a VirtualHub. * - * @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} resourceGroupName The resource group name of the VirtualHub. * - * @param {string} [vpnConnectionParameters.id] Resource ID. + * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * @@ -46763,7 +33952,7 @@ export interface VpnConnections { * * {Promise} A promise is returned. * - * @resolve {VpnConnection} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -46771,26 +33960,22 @@ export interface VpnConnections { * * {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. + * {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. */ - 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; + 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; /** - * Deletes a vpn connection. - * - * @param {string} resourceGroupName The resource group name of the VpnGateway. - * - * @param {string} gatewayName The name of the gateway. + * Lists all the VirtualHubs in a resource group. * - * @param {string} connectionName The name of the connection. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -46799,20 +33984,17 @@ export interface VpnConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listByResourceGroupNextWithHttpOperationResponse(nextPageLink: 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. + * Lists all the VirtualHubs in a resource group. * - * @param {string} connectionName The name of the connection. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -46826,7 +34008,7 @@ export interface VpnConnections { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {ListVirtualHubsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -46834,19 +34016,20 @@ export interface VpnConnections { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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; /** - * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * Lists all the VirtualHubs in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -46858,14 +34041,14 @@ export interface VpnConnections { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByVpnGatewayNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves all vpn connections for a particular virtual wan vpn gateway. + * Lists all the VirtualHubs in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -46882,7 +34065,7 @@ export interface VpnConnections { * * {Promise} A promise is returned. * - * @resolve {ListVpnConnectionsResult} - The deserialized result object. + * @resolve {ListVirtualHubsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -46890,38 +34073,35 @@ export interface VpnConnections { * * {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. + * {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. */ - 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; + 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 - * P2sVpnServerConfigurations + * HubVirtualNetworkConnections * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ -export interface P2sVpnServerConfigurations { +export interface HubVirtualNetworkConnections { /** - * Retrieves the details of a P2SVpnServerConfiguration. + * Retrieves the details of a HubVirtualNetworkConnection. * - * @param {string} resourceGroupName The resource group name of the - * P2SVpnServerConfiguration. + * @param {string} resourceGroupName The resource group name of the VirtualHub. * - * @param {string} virtualWanName The name of the VirtualWan. + * @param {string} virtualHubName The name of the VirtualHub. * - * @param {string} p2SVpnServerConfigurationName The name of the - * P2SVpnServerConfiguration. + * @param {string} connectionName The name of the vpn connection. * * @param {object} [options] Optional Parameters. * @@ -46930,22 +34110,20 @@ export interface P2sVpnServerConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves the details of a P2SVpnServerConfiguration. + * Retrieves the details of a HubVirtualNetworkConnection. * - * @param {string} resourceGroupName The resource group name of the - * P2SVpnServerConfiguration. + * @param {string} resourceGroupName The resource group name of the VirtualHub. * - * @param {string} virtualWanName The name of the VirtualWan. + * @param {string} virtualHubName The name of the VirtualHub. * - * @param {string} p2SVpnServerConfigurationName The name of the - * P2SVpnServerConfiguration. + * @param {string} connectionName The name of the vpn connection. * * @param {object} [options] Optional Parameters. * @@ -46959,7 +34137,7 @@ export interface P2sVpnServerConfigurations { * * {Promise} A promise is returned. * - * @resolve {P2SVpnServerConfiguration} - The deserialized result object. + * @resolve {HubVirtualNetworkConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -46967,78 +34145,25 @@ export interface P2sVpnServerConfigurations { * * {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 + * {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, 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; + 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; /** - * 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] - * vpnProtocols 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 for - * point to site client connection. - * - * @param {string} - * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigurationPropertiesEtag] - * A unique read-only string that changes whenever the resource is updated. + * Retrieves the details of all HubVirtualNetworkConnections. * - * @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} resourceGroupName The resource group name of the VirtualHub. * - * @param {string} [p2SVpnServerConfigurationParameters.id] Resource ID. + * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * @@ -47047,71 +34172,18 @@ export interface P2sVpnServerConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, 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] - * vpnProtocols 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 for - * point to site client connection. - * - * @param {string} - * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigurationPropertiesEtag] - * A unique read-only string that changes whenever the resource is updated. + * Retrieves the details of all HubVirtualNetworkConnections. * - * @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} resourceGroupName The resource group name of the VirtualHub. * - * @param {string} [p2SVpnServerConfigurationParameters.id] Resource ID. + * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * @@ -47125,7 +34197,7 @@ export interface P2sVpnServerConfigurations { * * {Promise} A promise is returned. * - * @resolve {P2SVpnServerConfiguration} - The deserialized result object. + * @resolve {ListHubVirtualNetworkConnectionsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -47133,29 +34205,24 @@ export interface P2sVpnServerConfigurations { * * {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. + * {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. */ - 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; + 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; /** - * Deletes a P2SVpnServerConfiguration. - * - * @param {string} resourceGroupName The resource group name of the - * P2SVpnServerConfiguration. - * - * @param {string} virtualWanName The name of the VirtualWan. + * Retrieves the details of all HubVirtualNetworkConnections. * - * @param {string} p2SVpnServerConfigurationName The name of the - * P2SVpnServerConfiguration. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -47164,22 +34231,17 @@ export interface P2sVpnServerConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + listNextWithHttpOperationResponse(nextPageLink: 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. + * Retrieves the details of all HubVirtualNetworkConnections. * - * @param {string} p2SVpnServerConfigurationName The name of the - * P2SVpnServerConfiguration. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -47193,7 +34255,7 @@ export interface P2sVpnServerConfigurations { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {ListHubVirtualNetworkConnectionsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -47201,23 +34263,34 @@ export interface P2sVpnServerConfigurations { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + 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 all P2SVpnServerConfigurations for a particular VirtualWan. + * Retrieves the details of a virtual wan vpn gateway. * - * @param {string} resourceGroupName The resource group name of the VirtualWan. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * - * @param {string} virtualWanName The name of the VirtualWan. + * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * @@ -47226,18 +34299,18 @@ export interface P2sVpnServerConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByVirtualWanWithHttpOperationResponse(resourceGroupName: string, virtualWanName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves all P2SVpnServerConfigurations for a particular VirtualWan. + * Retrieves the details of a virtual wan vpn gateway. * - * @param {string} resourceGroupName The resource group name of the VirtualWan. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * - * @param {string} virtualWanName The name of the VirtualWan. + * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * @@ -47251,7 +34324,7 @@ export interface P2sVpnServerConfigurations { * * {Promise} A promise is returned. * - * @resolve {ListP2SVpnServerConfigurationsResult} - The deserialized result object. + * @resolve {VpnGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -47259,78 +34332,174 @@ export interface P2sVpnServerConfigurations { * * {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. + * {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. */ - 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; + 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 P2SVpnServerConfiguration to associate with a VirtualWan if it - * doesn't exist else updates the existing P2SVpnServerConfiguration. + * 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 VirtualWan. + * @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 {object} [vpnGatewayParameters.policies] The policies applied to this + * vpn gateway. + * + * @param {boolean} [vpnGatewayParameters.policies.allowBranchToBranchTraffic] + * True if branch to branch traffic is allowed. + * + * @param {boolean} [vpnGatewayParameters.policies.allowVnetToVnetTraffic] True + * if Vnet to Vnet traffic is allowed. + * + * @param {string} [vpnGatewayParameters.id] Resource ID. + * + * @param {string} [vpnGatewayParameters.location] Resource location. + * + * @param {object} [vpnGatewayParameters.tags] Resource tags. * - * @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. + */ + 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 {object} [vpnGatewayParameters.policies] The policies applied to this + * vpn gateway. * - * @param {string} p2SVpnServerConfigurationName The name of the - * P2SVpnServerConfiguration. + * @param {boolean} [vpnGatewayParameters.policies.allowBranchToBranchTraffic] + * True if branch to branch traffic is allowed. * - * @param {object} p2SVpnServerConfigurationParameters Parameters supplied to - * create or Update a P2SVpnServerConfiguration. + * @param {boolean} [vpnGatewayParameters.policies.allowVnetToVnetTraffic] True + * if Vnet to Vnet traffic is allowed. + * + * @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. * - * @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. + * {Promise} A promise is returned. * - * @param {array} [p2SVpnServerConfigurationParameters.vpnProtocols] - * vpnProtocols for the P2SVpnServerConfiguration. + * @resolve {VpnGateway} - The deserialized result object. * - * @param {array} - * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigVpnClientRootCertificates] - * VPN client root certificate of P2SVpnServerConfiguration. + * @reject {Error|ServiceError} - The error object. * - * @param {array} - * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigVpnClientRevokedCertificates] - * VPN client revoked certificate of P2SVpnServerConfiguration. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {array} - * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigRadiusServerRootCertificates] - * Radius Server root certificate of P2SVpnServerConfiguration. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {array} - * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigRadiusClientRootCertificates] - * Radius client root certificate of P2SVpnServerConfiguration. + * {VpnGateway} [result] - The deserialized result object if an error did not occur. + * See {@link VpnGateway} for more information. * - * @param {array} [p2SVpnServerConfigurationParameters.vpnClientIpsecPolicies] - * VpnClientIpsecPolicies for P2SVpnServerConfiguration. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {string} [p2SVpnServerConfigurationParameters.radiusServerAddress] - * The radius server address property of the P2SVpnServerConfiguration resource - * for point to site client connection. + * {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} [p2SVpnServerConfigurationParameters.radiusServerSecret] The - * radius secret property of the P2SVpnServerConfiguration resource for for - * point to site client connection. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * - * @param {string} - * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigurationPropertiesEtag] - * A unique read-only string that changes whenever the resource is updated. + * @param {string} gatewayName The name of the gateway. * - * @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 {object} vpnGatewayParameters Parameters supplied to update a virtual + * wan vpn gateway tags. * - * @param {string} [p2SVpnServerConfigurationParameters.id] Resource ID. + * @param {object} [vpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -47339,71 +34508,23 @@ export interface P2sVpnServerConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + updateTagsWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.TagsObject, 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] - * vpnProtocols 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. + * Updates virtual wan vpn gateway tags. * - * @param {string} [p2SVpnServerConfigurationParameters.radiusServerSecret] The - * radius secret property of the P2SVpnServerConfiguration resource for for - * point to site client connection. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * - * @param {string} - * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigurationPropertiesEtag] - * A unique read-only string that changes whenever the resource is updated. + * @param {string} gatewayName The name of the gateway. * - * @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 {object} vpnGatewayParameters Parameters supplied to update a virtual + * wan vpn gateway tags. * - * @param {string} [p2SVpnServerConfigurationParameters.id] Resource ID. + * @param {object} [vpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -47417,7 +34538,7 @@ export interface P2sVpnServerConfigurations { * * {Promise} A promise is returned. * - * @resolve {P2SVpnServerConfiguration} - The deserialized result object. + * @resolve {VpnGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -47425,29 +34546,24 @@ export interface P2sVpnServerConfigurations { * * {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. + * {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, 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; + 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 P2SVpnServerConfiguration. - * - * @param {string} resourceGroupName The resource group name of the - * P2SVpnServerConfiguration. + * Deletes a virtual wan vpn gateway. * - * @param {string} virtualWanName The name of the VirtualWan. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * - * @param {string} p2SVpnServerConfigurationName The name of the - * P2SVpnServerConfiguration. + * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * @@ -47460,18 +34576,14 @@ export interface P2sVpnServerConfigurations { * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes a P2SVpnServerConfiguration. - * - * @param {string} resourceGroupName The resource group name of the - * P2SVpnServerConfiguration. + * Deletes a virtual wan vpn gateway. * - * @param {string} virtualWanName The name of the VirtualWan. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * - * @param {string} p2SVpnServerConfigurationName The name of the - * P2SVpnServerConfiguration. + * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * @@ -47499,16 +34611,15 @@ export interface P2sVpnServerConfigurations { * * {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; + 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; /** - * Retrieves all P2SVpnServerConfigurations for a particular VirtualWan. + * Lists all the VpnGateways in a resource group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {object} [options] Optional Parameters. * @@ -47517,17 +34628,16 @@ export interface P2sVpnServerConfigurations { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByVirtualWanNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Retrieves all P2SVpnServerConfigurations for a particular VirtualWan. + * Lists all the VpnGateways in a resource group. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {object} [options] Optional Parameters. * @@ -47541,7 +34651,7 @@ export interface P2sVpnServerConfigurations { * * {Promise} A promise is returned. * - * @resolve {ListP2SVpnServerConfigurationsResult} - The deserialized result object. + * @resolve {ListVpnGatewaysResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -47549,35 +34659,20 @@ export interface P2sVpnServerConfigurations { * * {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. + * {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. */ - 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 { + 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; /** - * 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. + * Lists all the VpnGateways in a subscription. * * @param {object} [options] Optional Parameters. * @@ -47586,19 +34681,14 @@ export interface P2sVpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listWithHttpOperationResponse(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. + * Lists all the VpnGateways in a subscription. * * @param {object} [options] Optional Parameters. * @@ -47612,7 +34702,7 @@ export interface P2sVpnGateways { * * {Promise} A promise is returned. * - * @resolve {P2SVpnGateway} - The deserialized result object. + * @resolve {ListVpnGatewaysResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -47620,59 +34710,67 @@ export interface P2sVpnGateways { * * {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. + * {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. */ - 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; + list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + list(callback: ServiceCallback): void; + list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the + * 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 - * P2SVpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @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} vpnGatewayParameters Parameters supplied to create or Update + * a virtual wan vpn gateway. * - * @param {object} [p2SVpnGatewayParameters.virtualHub] The VirtualHub to which + * @param {object} [vpnGatewayParameters.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 {string} [vpnGatewayParameters.virtualHub.id] Resource ID. + * + * @param {array} [vpnGatewayParameters.connections] list of all vpn + * connections to the gateway. * - * @param {number} [p2SVpnGatewayParameters.vpnGatewayScaleUnit] The scale unit - * for this p2s vpn gateway. + * @param {object} [vpnGatewayParameters.bgpSettings] Local network gateway's + * BGP speaker settings. * - * @param {object} [p2SVpnGatewayParameters.p2SVpnServerConfiguration] The - * P2SVpnServerConfiguration to which the p2sVpnGateway is attached to. + * @param {number} [vpnGatewayParameters.bgpSettings.asn] The BGP speaker's + * ASN. * - * @param {string} [p2SVpnGatewayParameters.p2SVpnServerConfiguration.id] - * Resource ID. + * @param {string} [vpnGatewayParameters.bgpSettings.bgpPeeringAddress] The BGP + * peering address and BGP identifier of this BGP speaker. * - * @param {object} [p2SVpnGatewayParameters.vpnClientAddressPool] The reference - * of the address space resource which represents Address space for P2S - * VpnClient. + * @param {number} [vpnGatewayParameters.bgpSettings.peerWeight] The weight + * added to routes learned from this BGP speaker. * - * @param {array} - * [p2SVpnGatewayParameters.vpnClientAddressPool.addressPrefixes] A list of - * address blocks reserved for this virtual network in CIDR notation. + * @param {string} [vpnGatewayParameters.provisioningState] The provisioning + * state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' + * + * @param {object} [vpnGatewayParameters.policies] The policies applied to this + * vpn gateway. * - * @param {string} [p2SVpnGatewayParameters.id] Resource ID. + * @param {boolean} [vpnGatewayParameters.policies.allowBranchToBranchTraffic] + * True if branch to branch traffic is allowed. * - * @param {string} [p2SVpnGatewayParameters.location] Resource location. + * @param {boolean} [vpnGatewayParameters.policies.allowVnetToVnetTraffic] True + * if Vnet to Vnet traffic is allowed. * - * @param {object} [p2SVpnGatewayParameters.tags] Resource tags. + * @param {string} [vpnGatewayParameters.id] Resource ID. + * + * @param {string} [vpnGatewayParameters.location] Resource location. + * + * @param {object} [vpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -47681,53 +34779,61 @@ export interface P2sVpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.VpnGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the + * 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 - * P2SVpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @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} vpnGatewayParameters Parameters supplied to create or Update + * a virtual wan vpn gateway. * - * @param {object} [p2SVpnGatewayParameters.virtualHub] The VirtualHub to which + * @param {object} [vpnGatewayParameters.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 {string} [vpnGatewayParameters.virtualHub.id] Resource ID. + * + * @param {array} [vpnGatewayParameters.connections] list of all vpn + * connections to the gateway. * - * @param {number} [p2SVpnGatewayParameters.vpnGatewayScaleUnit] The scale unit - * for this p2s vpn gateway. + * @param {object} [vpnGatewayParameters.bgpSettings] Local network gateway's + * BGP speaker settings. * - * @param {object} [p2SVpnGatewayParameters.p2SVpnServerConfiguration] The - * P2SVpnServerConfiguration to which the p2sVpnGateway is attached to. + * @param {number} [vpnGatewayParameters.bgpSettings.asn] The BGP speaker's + * ASN. * - * @param {string} [p2SVpnGatewayParameters.p2SVpnServerConfiguration.id] - * Resource ID. + * @param {string} [vpnGatewayParameters.bgpSettings.bgpPeeringAddress] The BGP + * peering address and BGP identifier of this BGP speaker. * - * @param {object} [p2SVpnGatewayParameters.vpnClientAddressPool] The reference - * of the address space resource which represents Address space for P2S - * VpnClient. + * @param {number} [vpnGatewayParameters.bgpSettings.peerWeight] The weight + * added to routes learned from this BGP speaker. * - * @param {array} - * [p2SVpnGatewayParameters.vpnClientAddressPool.addressPrefixes] A list of - * address blocks reserved for this virtual network in CIDR notation. + * @param {string} [vpnGatewayParameters.provisioningState] The provisioning + * state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' * - * @param {string} [p2SVpnGatewayParameters.id] Resource ID. + * @param {object} [vpnGatewayParameters.policies] The policies applied to this + * vpn gateway. * - * @param {string} [p2SVpnGatewayParameters.location] Resource location. + * @param {boolean} [vpnGatewayParameters.policies.allowBranchToBranchTraffic] + * True if branch to branch traffic is allowed. * - * @param {object} [p2SVpnGatewayParameters.tags] Resource tags. + * @param {boolean} [vpnGatewayParameters.policies.allowVnetToVnetTraffic] True + * if Vnet to Vnet traffic is allowed. + * + * @param {string} [vpnGatewayParameters.id] Resource ID. + * + * @param {string} [vpnGatewayParameters.location] Resource location. + * + * @param {object} [vpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -47741,7 +34847,7 @@ export interface P2sVpnGateways { * * {Promise} A promise is returned. * - * @resolve {P2SVpnGateway} - The deserialized result object. + * @resolve {VpnGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -47749,30 +34855,29 @@ export interface P2sVpnGateways { * * {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. + * {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, 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; + 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 p2s vpn gateway tags. + * Updates virtual wan vpn gateway tags. * - * @param {string} resourceGroupName The resource group name of the - * P2SVpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * - * @param {object} p2SVpnGatewayParameters Parameters supplied to update a - * virtual wan p2s vpn gateway tags. + * @param {object} vpnGatewayParameters Parameters supplied to update a virtual + * wan vpn gateway tags. * - * @param {object} [p2SVpnGatewayParameters.tags] Resource tags. + * @param {object} [vpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -47781,24 +34886,23 @@ export interface P2sVpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates virtual wan p2s vpn gateway tags. + * Updates virtual wan vpn gateway tags. * - * @param {string} resourceGroupName The resource group name of the - * P2SVpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * - * @param {object} p2SVpnGatewayParameters Parameters supplied to update a - * virtual wan p2s vpn gateway tags. + * @param {object} vpnGatewayParameters Parameters supplied to update a virtual + * wan vpn gateway tags. * - * @param {object} [p2SVpnGatewayParameters.tags] Resource tags. + * @param {object} [vpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -47812,7 +34916,7 @@ export interface P2sVpnGateways { * * {Promise} A promise is returned. * - * @resolve {P2SVpnGateway} - The deserialized result object. + * @resolve {VpnGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -47820,23 +34924,22 @@ export interface P2sVpnGateways { * * {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. + * {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, 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; + 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 p2s vpn gateway. + * Deletes a virtual wan vpn gateway. * - * @param {string} resourceGroupName The resource group name of the - * P2SVpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * @@ -47851,13 +34954,12 @@ export interface P2sVpnGateways { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes a virtual wan p2s vpn gateway. + * Deletes a virtual wan vpn gateway. * - * @param {string} resourceGroupName The resource group name of the - * P2SVpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * @@ -47887,16 +34989,16 @@ export interface P2sVpnGateways { * * {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; + 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 P2SVpnGateways in a resource group. + * Lists all the VpnGateways in a resource group. * - * @param {string} resourceGroupName The resource group name of the - * P2SVpnGateway. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -47905,17 +35007,17 @@ export interface P2sVpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the P2SVpnGateways in a resource group. + * Lists all the VpnGateways in a resource group. * - * @param {string} resourceGroupName The resource group name of the - * P2SVpnGateway. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -47929,7 +35031,7 @@ export interface P2sVpnGateways { * * {Promise} A promise is returned. * - * @resolve {ListP2SVpnGatewaysResult} - The deserialized result object. + * @resolve {ListVpnGatewaysResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -47937,21 +35039,23 @@ export interface P2sVpnGateways { * * {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. + * {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; + 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. + * 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. * @@ -47960,14 +35064,17 @@ export interface P2sVpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the P2SVpnGateways in a subscription. + * 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. * @@ -47981,7 +35088,7 @@ export interface P2sVpnGateways { * * {Promise} A promise is returned. * - * @resolve {ListP2SVpnGatewaysResult} - The deserialized result object. + * @resolve {ListVpnGatewaysResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -47989,33 +35096,35 @@ export interface P2sVpnGateways { * * {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. + * {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; + 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 { /** - * Generates VPN profile for P2S client of the P2SVpnGateway in the specified - * resource group. - * - * @param {string} resourceGroupName The name of the resource group. + * Retrieves the details of a vpn connection. * - * @param {string} gatewayName The name of the P2SVpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * - * @param {object} parameters Parameters supplied to the generate P2SVpnGateway - * VPN client package operation. + * @param {string} gatewayName The name of the gateway. * - * @param {string} [parameters.authenticationMethod] VPN client Authentication - * Method. Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values - * include: 'EAPTLS', 'EAPMSCHAPv2' + * @param {string} connectionName The name of the vpn connection. * * @param {object} [options] Optional Parameters. * @@ -48024,26 +35133,20 @@ export interface P2sVpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + getWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, connectionName: string, 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. + * Retrieves the details of a vpn connection. * - * @param {string} gatewayName The name of the P2SVpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * - * @param {object} parameters Parameters supplied to the generate P2SVpnGateway - * VPN client package operation. + * @param {string} gatewayName The name of the gateway. * - * @param {string} [parameters.authenticationMethod] VPN client Authentication - * Method. Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values - * include: 'EAPTLS', 'EAPMSCHAPv2' + * @param {string} connectionName The name of the vpn connection. * * @param {object} [options] Optional Parameters. * @@ -48057,7 +35160,7 @@ export interface P2sVpnGateways { * * {Promise} A promise is returned. * - * @resolve {VpnProfileResponse} - The deserialized result object. + * @resolve {VpnConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -48065,59 +35168,60 @@ export interface P2sVpnGateways { * * {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. + * {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. */ - 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; + 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 virtual wan p2s vpn gateway if it doesn't exist else updates the - * existing gateway. + * 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 - * P2SVpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * - * @param {object} p2SVpnGatewayParameters Parameters supplied to create or - * Update a virtual wan p2s vpn gateway. + * @param {string} connectionName The name of the connection. * - * @param {object} [p2SVpnGatewayParameters.virtualHub] The VirtualHub to which - * the gateway belongs + * @param {object} vpnConnectionParameters Parameters supplied to create or + * Update a VPN Connection. * - * @param {string} [p2SVpnGatewayParameters.provisioningState] The provisioning - * state of the resource. Possible values include: 'Succeeded', 'Updating', - * 'Deleting', 'Failed' + * @param {object} [vpnConnectionParameters.remoteVpnSite] Id of the connected + * vpn site. * - * @param {number} [p2SVpnGatewayParameters.vpnGatewayScaleUnit] The scale unit - * for this p2s vpn gateway. + * @param {string} [vpnConnectionParameters.remoteVpnSite.id] Resource ID. * - * @param {object} [p2SVpnGatewayParameters.p2SVpnServerConfiguration] The - * P2SVpnServerConfiguration to which the p2sVpnGateway is attached to. + * @param {number} [vpnConnectionParameters.routingWeight] routing weight for + * vpn connection. * - * @param {string} [p2SVpnGatewayParameters.p2SVpnServerConfiguration.id] - * Resource ID. + * @param {string} [vpnConnectionParameters.connectionStatus] The connection + * status. Possible values include: 'Unknown', 'Connecting', 'Connected', + * 'NotConnected' + * + * @param {string} [vpnConnectionParameters.sharedKey] SharedKey for the vpn + * connection. * - * @param {object} [p2SVpnGatewayParameters.vpnClientAddressPool] The reference - * of the address space resource which represents Address space for P2S - * VpnClient. + * @param {boolean} [vpnConnectionParameters.enableBgp] EnableBgp flag * - * @param {array} - * [p2SVpnGatewayParameters.vpnClientAddressPool.addressPrefixes] A list of - * address blocks reserved for this virtual network in CIDR notation. + * @param {array} [vpnConnectionParameters.ipsecPolicies] The IPSec Policies to + * be considered by this connection. + * + * @param {string} [vpnConnectionParameters.provisioningState] The provisioning + * state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' * - * @param {string} [p2SVpnGatewayParameters.id] Resource ID. + * @param {string} [vpnConnectionParameters.id] Resource ID. * - * @param {string} [p2SVpnGatewayParameters.location] Resource location. + * @param {string} [vpnConnectionParameters.location] Resource location. * - * @param {object} [p2SVpnGatewayParameters.tags] Resource tags. + * @param {object} [vpnConnectionParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -48126,53 +35230,54 @@ export interface P2sVpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, connectionName: string, vpnConnectionParameters: models.VpnConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the - * existing gateway. + * 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 - * P2SVpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * - * @param {object} p2SVpnGatewayParameters Parameters supplied to create or - * Update a virtual wan p2s vpn gateway. + * @param {string} connectionName The name of the connection. * - * @param {object} [p2SVpnGatewayParameters.virtualHub] The VirtualHub to which - * the gateway belongs + * @param {object} vpnConnectionParameters Parameters supplied to create or + * Update a VPN Connection. * - * @param {string} [p2SVpnGatewayParameters.provisioningState] The provisioning - * state of the resource. Possible values include: 'Succeeded', 'Updating', - * 'Deleting', 'Failed' + * @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 {number} [p2SVpnGatewayParameters.vpnGatewayScaleUnit] The scale unit - * for this p2s vpn gateway. + * @param {string} [vpnConnectionParameters.connectionStatus] The connection + * status. Possible values include: 'Unknown', 'Connecting', 'Connected', + * 'NotConnected' * - * @param {object} [p2SVpnGatewayParameters.p2SVpnServerConfiguration] The - * P2SVpnServerConfiguration to which the p2sVpnGateway is attached to. + * @param {string} [vpnConnectionParameters.sharedKey] SharedKey for the vpn + * connection. * - * @param {string} [p2SVpnGatewayParameters.p2SVpnServerConfiguration.id] - * Resource ID. + * @param {boolean} [vpnConnectionParameters.enableBgp] EnableBgp flag * - * @param {object} [p2SVpnGatewayParameters.vpnClientAddressPool] The reference - * of the address space resource which represents Address space for P2S - * VpnClient. + * @param {array} [vpnConnectionParameters.ipsecPolicies] The IPSec Policies to + * be considered by this connection. * - * @param {array} - * [p2SVpnGatewayParameters.vpnClientAddressPool.addressPrefixes] A list of - * address blocks reserved for this virtual network in CIDR notation. + * @param {string} [vpnConnectionParameters.provisioningState] The provisioning + * state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' * - * @param {string} [p2SVpnGatewayParameters.id] Resource ID. + * @param {string} [vpnConnectionParameters.id] Resource ID. * - * @param {string} [p2SVpnGatewayParameters.location] Resource location. + * @param {string} [vpnConnectionParameters.location] Resource location. * - * @param {object} [p2SVpnGatewayParameters.tags] Resource tags. + * @param {object} [vpnConnectionParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -48186,7 +35291,7 @@ export interface P2sVpnGateways { * * {Promise} A promise is returned. * - * @resolve {P2SVpnGateway} - The deserialized result object. + * @resolve {VpnConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -48194,30 +35299,26 @@ export interface P2sVpnGateways { * * {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. + * {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, 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; + 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; /** - * Updates virtual wan p2s vpn gateway tags. + * Deletes a vpn connection. * - * @param {string} resourceGroupName The resource group name of the - * P2SVpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @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 {string} connectionName The name of the connection. * * @param {object} [options] Optional Parameters. * @@ -48226,24 +35327,20 @@ export interface P2sVpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates virtual wan p2s vpn gateway tags. + * Deletes a vpn connection. * - * @param {string} resourceGroupName The resource group name of the - * P2SVpnGateway. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @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 {string} connectionName The name of the connection. * * @param {object} [options] Optional Parameters. * @@ -48257,7 +35354,7 @@ export interface P2sVpnGateways { * * {Promise} A promise is returned. * - * @resolve {P2SVpnGateway} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -48265,23 +35362,19 @@ export interface P2sVpnGateways { * * {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. + * {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. */ - 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; + 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; /** - * Deletes a virtual wan p2s vpn gateway. - * - * @param {string} resourceGroupName The resource group name of the - * P2SVpnGateway. + * Retrieves all vpn connections for a particular virtual wan vpn gateway. * * @param {string} gatewayName The name of the gateway. * @@ -48292,17 +35385,14 @@ export interface P2sVpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByVpnGatewayWithHttpOperationResponse(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. + * Retrieves all vpn connections for a particular virtual wan vpn gateway. * * @param {string} gatewayName The name of the gateway. * @@ -48318,7 +35408,7 @@ export interface P2sVpnGateways { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {ListVpnConnectionsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -48326,31 +35416,61 @@ export interface P2sVpnGateways { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {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. */ - 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; + listByVpnGateway(gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByVpnGateway(gatewayName: string, callback: ServiceCallback): void; + listByVpnGateway(gatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Generates VPN profile for P2S client of the P2SVpnGateway in the specified - * resource group. + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else + * updates the existing connection. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * - * @param {string} gatewayName The name of the P2SVpnGateway. + * @param {string} gatewayName The name of the gateway. * - * @param {object} parameters Parameters supplied to the generate P2SVpnGateway - * VPN client package operation. + * @param {string} connectionName The name of the connection. * - * @param {string} [parameters.authenticationMethod] VPN client Authentication - * Method. Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values - * include: 'EAPTLS', 'EAPMSCHAPv2' + * @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.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 {string} [vpnConnectionParameters.provisioningState] The provisioning + * state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' + * + * @param {string} [vpnConnectionParameters.id] Resource ID. + * + * @param {string} [vpnConnectionParameters.location] Resource location. + * + * @param {object} [vpnConnectionParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -48359,26 +35479,54 @@ export interface P2sVpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @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>; + beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, connectionName: string, vpnConnectionParameters: models.VpnConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Generates VPN profile for P2S client of the P2SVpnGateway in the specified - * resource group. + * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else + * updates the existing connection. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} resourceGroupName The resource group name of the VpnGateway. * - * @param {string} gatewayName The name of the P2SVpnGateway. + * @param {string} gatewayName The name of the gateway. * - * @param {object} parameters Parameters supplied to the generate P2SVpnGateway - * VPN client package operation. + * @param {string} connectionName The name of the connection. * - * @param {string} [parameters.authenticationMethod] VPN client Authentication - * Method. Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values - * include: 'EAPTLS', 'EAPMSCHAPv2' + * @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.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 {string} [vpnConnectionParameters.provisioningState] The provisioning + * state of the resource. Possible values include: 'Succeeded', 'Updating', + * 'Deleting', 'Failed' + * + * @param {string} [vpnConnectionParameters.id] Resource ID. + * + * @param {string} [vpnConnectionParameters.location] Resource location. + * + * @param {object} [vpnConnectionParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * @@ -48392,7 +35540,7 @@ export interface P2sVpnGateways { * * {Promise} A promise is returned. * - * @resolve {VpnProfileResponse} - The deserialized result object. + * @resolve {VpnConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -48400,23 +35548,26 @@ export interface P2sVpnGateways { * * {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. + * {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. */ - 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; + 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; /** - * Lists all the P2SVpnGateways in a resource group. + * Deletes a vpn connection. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -48425,17 +35576,20 @@ export interface P2sVpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the P2SVpnGateways in a resource group. + * Deletes a vpn connection. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @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. * @@ -48449,7 +35603,7 @@ export interface P2sVpnGateways { * * {Promise} A promise is returned. * - * @resolve {ListP2SVpnGatewaysResult} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -48457,21 +35611,19 @@ export interface P2sVpnGateways { * * {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. + * {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. */ - 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; + 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; /** - * Lists all the P2SVpnGateways in a subscription. + * Retrieves all vpn connections for a particular virtual wan vpn gateway. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -48483,14 +35635,14 @@ export interface P2sVpnGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByVpnGatewayNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all the P2SVpnGateways in a subscription. + * Retrieves all vpn connections for a particular virtual wan vpn gateway. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -48507,7 +35659,7 @@ export interface P2sVpnGateways { * * {Promise} A promise is returned. * - * @resolve {ListP2SVpnGatewaysResult} - The deserialized result object. + * @resolve {ListVpnConnectionsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -48515,15 +35667,15 @@ export interface P2sVpnGateways { * * {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 + * {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. */ - 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; + 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; } diff --git a/lib/services/networkManagement2/lib/operations/index.js b/lib/services/networkManagement2/lib/operations/index.js index 75d648518a..65816959b8 100644 --- a/lib/services/networkManagement2/lib/operations/index.js +++ b/lib/services/networkManagement2/lib/operations/index.js @@ -14,12 +14,9 @@ 'use strict'; +exports.AzureFirewalls = require('./azureFirewalls'); exports.ApplicationGateways = require('./applicationGateways'); exports.ApplicationSecurityGroups = require('./applicationSecurityGroups'); -exports.AvailableDelegations = require('./availableDelegations'); -exports.AvailableResourceGroupDelegations = require('./availableResourceGroupDelegations'); -exports.AzureFirewalls = require('./azureFirewalls'); -exports.AzureFirewallFqdnTags = require('./azureFirewallFqdnTags'); exports.DdosProtectionPlans = require('./ddosProtectionPlans'); exports.AvailableEndpointServices = require('./availableEndpointServices'); exports.ExpressRouteCircuitAuthorizations = require('./expressRouteCircuitAuthorizations'); @@ -29,25 +26,16 @@ exports.ExpressRouteCircuits = require('./expressRouteCircuits'); exports.ExpressRouteServiceProviders = require('./expressRouteServiceProviders'); exports.ExpressRouteCrossConnections = require('./expressRouteCrossConnections'); exports.ExpressRouteCrossConnectionPeerings = require('./expressRouteCrossConnectionPeerings'); -exports.ExpressRouteGateways = require('./expressRouteGateways'); -exports.ExpressRouteConnections = require('./expressRouteConnections'); -exports.ExpressRoutePortsLocations = require('./expressRoutePortsLocations'); -exports.ExpressRoutePorts = require('./expressRoutePorts'); -exports.ExpressRouteLinks = require('./expressRouteLinks'); -exports.InterfaceEndpoints = require('./interfaceEndpoints'); exports.LoadBalancers = require('./loadBalancers'); exports.LoadBalancerBackendAddressPools = require('./loadBalancerBackendAddressPools'); exports.LoadBalancerFrontendIPConfigurations = require('./loadBalancerFrontendIPConfigurations'); exports.InboundNatRules = require('./inboundNatRules'); exports.LoadBalancerLoadBalancingRules = require('./loadBalancerLoadBalancingRules'); -exports.LoadBalancerOutboundRules = require('./loadBalancerOutboundRules'); exports.LoadBalancerNetworkInterfaces = require('./loadBalancerNetworkInterfaces'); exports.LoadBalancerProbes = require('./loadBalancerProbes'); exports.NetworkInterfaces = require('./networkInterfaces'); exports.NetworkInterfaceIPConfigurations = require('./networkInterfaceIPConfigurations'); exports.NetworkInterfaceLoadBalancers = require('./networkInterfaceLoadBalancers'); -exports.NetworkInterfaceTapConfigurations = require('./networkInterfaceTapConfigurations'); -exports.NetworkProfiles = require('./networkProfiles'); exports.NetworkSecurityGroups = require('./networkSecurityGroups'); exports.SecurityRules = require('./securityRules'); exports.DefaultSecurityRules = require('./defaultSecurityRules'); @@ -56,14 +44,11 @@ exports.PacketCaptures = require('./packetCaptures'); exports.ConnectionMonitors = require('./connectionMonitors'); exports.Operations = require('./operations'); exports.PublicIPAddresses = require('./publicIPAddresses'); -exports.PublicIPPrefixes = require('./publicIPPrefixes'); exports.RouteFilters = require('./routeFilters'); exports.RouteFilterRules = require('./routeFilterRules'); exports.RouteTables = require('./routeTables'); exports.Routes = require('./routes'); exports.BgpServiceCommunities = require('./bgpServiceCommunities'); -exports.ServiceEndpointPolicies = require('./serviceEndpointPolicies'); -exports.ServiceEndpointPolicyDefinitions = require('./serviceEndpointPolicyDefinitions'); exports.Usages = require('./usages'); exports.VirtualNetworks = require('./virtualNetworks'); exports.Subnets = require('./subnets'); @@ -71,13 +56,10 @@ exports.VirtualNetworkPeerings = require('./virtualNetworkPeerings'); exports.VirtualNetworkGateways = require('./virtualNetworkGateways'); exports.VirtualNetworkGatewayConnections = require('./virtualNetworkGatewayConnections'); exports.LocalNetworkGateways = require('./localNetworkGateways'); -exports.VirtualNetworkTaps = require('./virtualNetworkTaps'); -exports.VirtualWans = require('./virtualWans'); +exports.VirtualWANs = require('./virtualWANs'); exports.VpnSites = require('./vpnSites'); exports.VpnSitesConfiguration = require('./vpnSitesConfiguration'); exports.VirtualHubs = require('./virtualHubs'); exports.HubVirtualNetworkConnections = require('./hubVirtualNetworkConnections'); exports.VpnGateways = require('./vpnGateways'); exports.VpnConnections = require('./vpnConnections'); -exports.P2sVpnServerConfigurations = require('./p2sVpnServerConfigurations'); -exports.P2sVpnGateways = require('./p2sVpnGateways'); diff --git a/lib/services/networkManagement2/lib/operations/loadBalancerBackendAddressPools.js b/lib/services/networkManagement2/lib/operations/loadBalancerBackendAddressPools.js index ae3306f158..726fbabf70 100644 --- a/lib/services/networkManagement2/lib/operations/loadBalancerBackendAddressPools.js +++ b/lib/services/networkManagement2/lib/operations/loadBalancerBackendAddressPools.js @@ -50,7 +50,7 @@ function _list(resourceGroupName, loadBalancerName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -195,7 +195,7 @@ function _get(resourceGroupName, loadBalancerName, backendAddressPoolName, optio if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/loadBalancerFrontendIPConfigurations.js b/lib/services/networkManagement2/lib/operations/loadBalancerFrontendIPConfigurations.js index 741a76dfe8..2b796513de 100644 --- a/lib/services/networkManagement2/lib/operations/loadBalancerFrontendIPConfigurations.js +++ b/lib/services/networkManagement2/lib/operations/loadBalancerFrontendIPConfigurations.js @@ -51,7 +51,7 @@ function _list(resourceGroupName, loadBalancerName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -198,7 +198,7 @@ function _get(resourceGroupName, loadBalancerName, frontendIPConfigurationName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/loadBalancerLoadBalancingRules.js b/lib/services/networkManagement2/lib/operations/loadBalancerLoadBalancingRules.js index 76530a651c..78f71280ae 100644 --- a/lib/services/networkManagement2/lib/operations/loadBalancerLoadBalancingRules.js +++ b/lib/services/networkManagement2/lib/operations/loadBalancerLoadBalancingRules.js @@ -50,7 +50,7 @@ function _list(resourceGroupName, loadBalancerName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -195,7 +195,7 @@ function _get(resourceGroupName, loadBalancerName, loadBalancingRuleName, option if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/loadBalancerNetworkInterfaces.js b/lib/services/networkManagement2/lib/operations/loadBalancerNetworkInterfaces.js index b677a57843..ba4d1a4a31 100644 --- a/lib/services/networkManagement2/lib/operations/loadBalancerNetworkInterfaces.js +++ b/lib/services/networkManagement2/lib/operations/loadBalancerNetworkInterfaces.js @@ -50,7 +50,7 @@ function _list(resourceGroupName, loadBalancerName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/loadBalancerProbes.js b/lib/services/networkManagement2/lib/operations/loadBalancerProbes.js index 2851e03a53..001fde0a3d 100644 --- a/lib/services/networkManagement2/lib/operations/loadBalancerProbes.js +++ b/lib/services/networkManagement2/lib/operations/loadBalancerProbes.js @@ -50,7 +50,7 @@ function _list(resourceGroupName, loadBalancerName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -195,7 +195,7 @@ function _get(resourceGroupName, loadBalancerName, probeName, options, callback) if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/loadBalancers.js b/lib/services/networkManagement2/lib/operations/loadBalancers.js index 5dfcb5fdc1..10a84cfc1e 100644 --- a/lib/services/networkManagement2/lib/operations/loadBalancers.js +++ b/lib/services/networkManagement2/lib/operations/loadBalancers.js @@ -115,7 +115,7 @@ function _get(resourceGroupName, loadBalancerName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -274,7 +274,7 @@ function _get(resourceGroupName, loadBalancerName, options, callback) { * machines cannot reference an inbound NAT pool. They have to reference * individual inbound NAT rules. * - * @param {array} [parameters.outboundRules] The outbound rules. + * @param {array} [parameters.outboundNatRules] The outbound NAT rules. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * load balancer resource. @@ -476,7 +476,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -610,7 +610,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -748,7 +748,7 @@ function _beginDeleteMethod(resourceGroupName, loadBalancerName, options, callba if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -883,7 +883,7 @@ function _beginDeleteMethod(resourceGroupName, loadBalancerName, options, callba * machines cannot reference an inbound NAT pool. They have to reference * individual inbound NAT rules. * - * @param {array} [parameters.outboundRules] The outbound rules. + * @param {array} [parameters.outboundNatRules] The outbound NAT rules. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * load balancer resource. @@ -929,7 +929,7 @@ function _beginCreateOrUpdate(resourceGroupName, loadBalancerName, parameters, o if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1110,7 +1110,7 @@ function _beginUpdateTags(resourceGroupName, loadBalancerName, parameters, optio if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1731,7 +1731,7 @@ class LoadBalancers { * machines cannot reference an inbound NAT pool. They have to reference * individual inbound NAT rules. * - * @param {array} [parameters.outboundRules] The outbound rules. + * @param {array} [parameters.outboundNatRules] The outbound NAT rules. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * load balancer resource. @@ -1818,7 +1818,7 @@ class LoadBalancers { * machines cannot reference an inbound NAT pool. They have to reference * individual inbound NAT rules. * - * @param {array} [parameters.outboundRules] The outbound rules. + * @param {array} [parameters.outboundNatRules] The outbound NAT rules. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * load balancer resource. @@ -2268,7 +2268,7 @@ class LoadBalancers { * machines cannot reference an inbound NAT pool. They have to reference * individual inbound NAT rules. * - * @param {array} [parameters.outboundRules] The outbound rules. + * @param {array} [parameters.outboundNatRules] The outbound NAT rules. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * load balancer resource. @@ -2355,7 +2355,7 @@ class LoadBalancers { * machines cannot reference an inbound NAT pool. They have to reference * individual inbound NAT rules. * - * @param {array} [parameters.outboundRules] The outbound rules. + * @param {array} [parameters.outboundNatRules] The outbound NAT rules. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * load balancer resource. diff --git a/lib/services/networkManagement2/lib/operations/localNetworkGateways.js b/lib/services/networkManagement2/lib/operations/localNetworkGateways.js index eb535b3b36..e49de422c3 100644 --- a/lib/services/networkManagement2/lib/operations/localNetworkGateways.js +++ b/lib/services/networkManagement2/lib/operations/localNetworkGateways.js @@ -164,7 +164,7 @@ function _get(resourceGroupName, localNetworkGatewayName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -460,7 +460,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -635,7 +635,7 @@ function _beginCreateOrUpdate(resourceGroupName, localNetworkGatewayName, parame if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -818,7 +818,7 @@ function _beginDeleteMethod(resourceGroupName, localNetworkGatewayName, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -956,7 +956,7 @@ function _beginUpdateTags(resourceGroupName, localNetworkGatewayName, parameters if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/networkInterfaceIPConfigurations.js b/lib/services/networkManagement2/lib/operations/networkInterfaceIPConfigurations.js index 16dc14bbbc..827c62f06a 100644 --- a/lib/services/networkManagement2/lib/operations/networkInterfaceIPConfigurations.js +++ b/lib/services/networkManagement2/lib/operations/networkInterfaceIPConfigurations.js @@ -50,7 +50,7 @@ function _list(resourceGroupName, networkInterfaceName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -196,7 +196,7 @@ function _get(resourceGroupName, networkInterfaceName, ipConfigurationName, opti if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/networkInterfaceLoadBalancers.js b/lib/services/networkManagement2/lib/operations/networkInterfaceLoadBalancers.js index 9edcfdf8d2..7e97efb188 100644 --- a/lib/services/networkManagement2/lib/operations/networkInterfaceLoadBalancers.js +++ b/lib/services/networkManagement2/lib/operations/networkInterfaceLoadBalancers.js @@ -50,7 +50,7 @@ function _list(resourceGroupName, networkInterfaceName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/networkInterfaces.js b/lib/services/networkManagement2/lib/operations/networkInterfaces.js index e3283aa2b1..dc3ab2af2a 100644 --- a/lib/services/networkManagement2/lib/operations/networkInterfaces.js +++ b/lib/services/networkManagement2/lib/operations/networkInterfaces.js @@ -115,7 +115,7 @@ function _get(resourceGroupName, networkInterfaceName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -240,6 +240,11 @@ function _get(resourceGroupName, networkInterfaceName, options, callback) { * @param {object} parameters Parameters supplied to the create or update * network interface operation. * + * @param {object} [parameters.virtualMachine] The reference of a virtual + * machine. + * + * @param {string} [parameters.virtualMachine.id] Resource ID. + * * @param {object} [parameters.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * @@ -269,9 +274,6 @@ function _get(resourceGroupName, networkInterfaceName, options, callback) { * @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. * @@ -511,7 +513,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -645,7 +647,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1743,7 +1745,7 @@ function _beginDeleteMethod(resourceGroupName, networkInterfaceName, options, ca if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1844,6 +1846,11 @@ function _beginDeleteMethod(resourceGroupName, networkInterfaceName, options, ca * @param {object} parameters Parameters supplied to the create or update * network interface operation. * + * @param {object} [parameters.virtualMachine] The reference of a virtual + * machine. + * + * @param {string} [parameters.virtualMachine.id] Resource ID. + * * @param {object} [parameters.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * @@ -1873,9 +1880,6 @@ function _beginDeleteMethod(resourceGroupName, networkInterfaceName, options, ca * @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. * @@ -1958,7 +1962,7 @@ function _beginCreateOrUpdate(resourceGroupName, networkInterfaceName, parameter if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2140,7 +2144,7 @@ function _beginUpdateTags(resourceGroupName, networkInterfaceName, parameters, o if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2301,7 +2305,7 @@ function _beginGetEffectiveRouteTable(resourceGroupName, networkInterfaceName, o if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2445,7 +2449,7 @@ function _beginListEffectiveNetworkSecurityGroups(resourceGroupName, networkInte if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3413,6 +3417,11 @@ class NetworkInterfaces { * @param {object} parameters Parameters supplied to the create or update * network interface operation. * + * @param {object} [parameters.virtualMachine] The reference of a virtual + * machine. + * + * @param {string} [parameters.virtualMachine.id] Resource ID. + * * @param {object} [parameters.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * @@ -3442,9 +3451,6 @@ class NetworkInterfaces { * @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. * @@ -3534,6 +3540,11 @@ class NetworkInterfaces { * @param {object} parameters Parameters supplied to the create or update * network interface operation. * + * @param {object} [parameters.virtualMachine] The reference of a virtual + * machine. + * + * @param {string} [parameters.virtualMachine.id] Resource ID. + * * @param {object} [parameters.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * @@ -3563,9 +3574,6 @@ class NetworkInterfaces { * @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. * @@ -4688,6 +4696,11 @@ class NetworkInterfaces { * @param {object} parameters Parameters supplied to the create or update * network interface operation. * + * @param {object} [parameters.virtualMachine] The reference of a virtual + * machine. + * + * @param {string} [parameters.virtualMachine.id] Resource ID. + * * @param {object} [parameters.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * @@ -4717,9 +4730,6 @@ class NetworkInterfaces { * @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. * @@ -4809,6 +4819,11 @@ class NetworkInterfaces { * @param {object} parameters Parameters supplied to the create or update * network interface operation. * + * @param {object} [parameters.virtualMachine] The reference of a virtual + * machine. + * + * @param {string} [parameters.virtualMachine.id] Resource ID. + * * @param {object} [parameters.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * @@ -4838,9 +4853,6 @@ class NetworkInterfaces { * @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. * diff --git a/lib/services/networkManagement2/lib/operations/networkSecurityGroups.js b/lib/services/networkManagement2/lib/operations/networkSecurityGroups.js index a864f1bc10..3b6fe3fcf2 100644 --- a/lib/services/networkManagement2/lib/operations/networkSecurityGroups.js +++ b/lib/services/networkManagement2/lib/operations/networkSecurityGroups.js @@ -117,7 +117,7 @@ function _get(resourceGroupName, networkSecurityGroupName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -451,7 +451,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -585,7 +585,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -724,7 +724,7 @@ function _beginDeleteMethod(resourceGroupName, networkSecurityGroupName, options if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -876,7 +876,7 @@ function _beginCreateOrUpdate(resourceGroupName, networkSecurityGroupName, param if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1059,7 +1059,7 @@ function _beginUpdateTags(resourceGroupName, networkSecurityGroupName, parameter if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/networkWatchers.js b/lib/services/networkManagement2/lib/operations/networkWatchers.js index 56466a02ac..21e34ddba2 100644 --- a/lib/services/networkManagement2/lib/operations/networkWatchers.js +++ b/lib/services/networkManagement2/lib/operations/networkWatchers.js @@ -61,7 +61,7 @@ function _createOrUpdate(resourceGroupName, networkWatcherName, parameters, opti if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -146,13 +146,12 @@ function _createOrUpdate(resourceGroupName, networkWatcherName, parameters, opti try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -239,7 +238,7 @@ function _get(resourceGroupName, networkWatcherName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -307,13 +306,12 @@ function _get(resourceGroupName, networkWatcherName, options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -451,7 +449,7 @@ function _updateTags(resourceGroupName, networkWatcherName, parameters, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -536,13 +534,12 @@ function _updateTags(resourceGroupName, networkWatcherName, parameters, options, try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -611,7 +608,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -675,13 +672,12 @@ function _list(resourceGroupName, options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -748,7 +744,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -808,13 +804,12 @@ function _listAll(options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -898,7 +893,7 @@ function _getTopology(resourceGroupName, networkWatcherName, parameters, options if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -983,13 +978,12 @@ function _getTopology(resourceGroupName, networkWatcherName, parameters, options try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -1513,14 +1507,6 @@ function _getTroubleshootingResult(resourceGroupName, networkWatcherName, parame * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * - * @param {object} [parameters.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] * * @param {object} @@ -1542,11 +1528,6 @@ function _getTroubleshootingResult(resourceGroupName, networkWatcherName, parame * 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 @@ -2021,99 +2002,6 @@ function _listAvailableProviders(resourceGroupName, networkWatcherName, paramete }); } - -/** - * 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 {function} callback - The callback. - * - * @returns {function} callback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkConfigurationDiagnosticResponse} for - * more information. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ -function _getNetworkConfigurationDiagnostic(resourceGroupName, networkWatcherName, parameters, options, callback) { - /* jshint validthis: true */ - let client = this.client; - if(!callback && typeof options === 'function') { - callback = options; - options = null; - } - - if (!callback) { - throw new Error('callback cannot be null.'); - } - - // Send request - this.beginGetNetworkConfigurationDiagnostic(resourceGroupName, networkWatcherName, parameters, options, (err, parsedResult, httpRequest, response) => { - if (err) return callback(err); - - let initialResult = new msRest.HttpOperationResponse(); - initialResult.request = httpRequest; - initialResult.response = response; - initialResult.body = response.body; - client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { - if (err) return callback(err); - - // Create Result - let result = null; - - httpRequest = pollingResult.request; - response = pollingResult.response; - let responseBody = pollingResult.body; - if (responseBody === '') responseBody = null; - - // Deserialize Response - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['NetworkConfigurationDiagnosticResponse']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - - return callback(null, result, httpRequest, response); - }); - }); -} - /** * Deletes the specified network watcher resource. * @@ -2148,7 +2036,7 @@ function _beginDeleteMethod(resourceGroupName, networkWatcherName, options, call if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2216,13 +2104,12 @@ function _beginDeleteMethod(resourceGroupName, networkWatcherName, options, call try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -2307,7 +2194,7 @@ function _beginVerifyIPFlow(resourceGroupName, networkWatcherName, parameters, o if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2392,13 +2279,12 @@ function _beginVerifyIPFlow(resourceGroupName, networkWatcherName, parameters, o try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -2499,7 +2385,7 @@ function _beginGetNextHop(resourceGroupName, networkWatcherName, parameters, opt if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2584,13 +2470,12 @@ function _beginGetNextHop(resourceGroupName, networkWatcherName, parameters, opt try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -2683,7 +2568,7 @@ function _beginGetVMSecurityRules(resourceGroupName, networkWatcherName, paramet if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2768,13 +2653,12 @@ function _beginGetVMSecurityRules(resourceGroupName, networkWatcherName, paramet try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -2873,7 +2757,7 @@ function _beginGetTroubleshooting(resourceGroupName, networkWatcherName, paramet if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2958,13 +2842,12 @@ function _beginGetTroubleshooting(resourceGroupName, networkWatcherName, paramet try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -3057,7 +2940,7 @@ function _beginGetTroubleshootingResult(resourceGroupName, networkWatcherName, p if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3142,13 +3025,12 @@ function _beginGetTroubleshootingResult(resourceGroupName, networkWatcherName, p try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -3228,14 +3110,6 @@ function _beginGetTroubleshootingResult(resourceGroupName, networkWatcherName, p * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * - * @param {object} [parameters.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] * * @param {object} @@ -3257,11 +3131,6 @@ function _beginGetTroubleshootingResult(resourceGroupName, networkWatcherName, p * 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 @@ -3290,7 +3159,7 @@ function _beginSetFlowLogConfiguration(resourceGroupName, networkWatcherName, pa if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3375,13 +3244,12 @@ function _beginSetFlowLogConfiguration(resourceGroupName, networkWatcherName, pa try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -3476,7 +3344,7 @@ function _beginGetFlowLogStatus(resourceGroupName, networkWatcherName, parameter if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3561,13 +3429,12 @@ function _beginGetFlowLogStatus(resourceGroupName, networkWatcherName, parameter try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -3697,7 +3564,7 @@ function _beginCheckConnectivity(resourceGroupName, networkWatcherName, paramete if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3782,13 +3649,12 @@ function _beginCheckConnectivity(resourceGroupName, networkWatcherName, paramete try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -3901,7 +3767,7 @@ function _beginGetAzureReachabilityReport(resourceGroupName, networkWatcherName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3986,13 +3852,12 @@ function _beginGetAzureReachabilityReport(resourceGroupName, networkWatcherName, try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -4094,7 +3959,7 @@ function _beginListAvailableProviders(resourceGroupName, networkWatcherName, par if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4179,13 +4044,12 @@ function _beginListAvailableProviders(resourceGroupName, networkWatcherName, par try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -4237,199 +4101,6 @@ function _beginListAvailableProviders(resourceGroupName, networkWatcherName, par }); } -/** - * 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 {function} callback - The callback. - * - * @returns {function} callback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkConfigurationDiagnosticResponse} for - * more information. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ -function _beginGetNetworkConfigurationDiagnostic(resourceGroupName, networkWatcherName, parameters, options, callback) { - /* jshint validthis: true */ - let client = this.client; - if(!callback && typeof options === 'function') { - callback = options; - options = null; - } - if (!callback) { - throw new Error('callback cannot be null.'); - } - let apiVersion = '2018-10-01'; - // Validate - try { - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); - } - if (networkWatcherName === null || networkWatcherName === undefined || typeof networkWatcherName.valueOf() !== 'string') { - throw new Error('networkWatcherName cannot be null or undefined and it must be of type string.'); - } - if (parameters === null || parameters === undefined) { - throw new Error('parameters cannot be null or undefined.'); - } - if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { - throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); - } - if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { - throw new Error('this.client.acceptLanguage must be of type string.'); - } - } catch (error) { - return callback(error); - } - - // Construct URL - let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/networkConfigurationDiagnostic'; - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{networkWatcherName}', encodeURIComponent(networkWatcherName)); - requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); - if (queryParameters.length > 0) { - requestUrl += '?' + queryParameters.join('&'); - } - - // Create HTTP transport objects - let httpRequest = new WebResource(); - httpRequest.method = 'POST'; - httpRequest.url = requestUrl; - httpRequest.headers = {}; - // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - if (this.client.generateClientRequestId) { - httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); - } - if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { - httpRequest.headers['accept-language'] = this.client.acceptLanguage; - } - if(options) { - for(let headerName in options['customHeaders']) { - if (options['customHeaders'].hasOwnProperty(headerName)) { - httpRequest.headers[headerName] = options['customHeaders'][headerName]; - } - } - } - // Serialize Request - let requestContent = null; - let requestModel = null; - try { - if (parameters !== null && parameters !== undefined) { - let requestModelMapper = new client.models['NetworkConfigurationDiagnosticParameters']().mapper(); - requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); - requestContent = JSON.stringify(requestModel); - } - } catch (error) { - let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + - `payload - ${JSON.stringify(parameters, null, 2)}.`); - return callback(serializationError); - } - httpRequest.body = requestContent; - // Send Request - return client.pipeline(httpRequest, (err, response, responseBody) => { - if (err) { - return callback(err); - } - let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 202) { - let error = new Error(responseBody); - error.statusCode = response.statusCode; - error.request = msRest.stripRequest(httpRequest); - error.response = msRest.stripResponse(response); - if (responseBody === '') responseBody = null; - let parsedErrorResponse; - try { - parsedErrorResponse = JSON.parse(responseBody); - if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; - } - if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); - error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); - } - } catch (defaultError) { - error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + - `- "${responseBody}" for the default response.`; - return callback(error); - } - return callback(error); - } - // Create Result - let result = null; - if (responseBody === '') responseBody = null; - // Deserialize Response - if (statusCode === 200) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['NetworkConfigurationDiagnosticResponse']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - } - // Deserialize Response - if (statusCode === 202) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['NetworkConfigurationDiagnosticResponse']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError1 = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError1.request = msRest.stripRequest(httpRequest); - deserializationError1.response = msRest.stripResponse(response); - return callback(deserializationError1); - } - } - - return callback(null, result, httpRequest, response); - }); -} - /** Class representing a NetworkWatchers. */ class NetworkWatchers { /** @@ -4455,7 +4126,6 @@ class NetworkWatchers { this._checkConnectivity = _checkConnectivity; this._getAzureReachabilityReport = _getAzureReachabilityReport; this._listAvailableProviders = _listAvailableProviders; - this._getNetworkConfigurationDiagnostic = _getNetworkConfigurationDiagnostic; this._beginDeleteMethod = _beginDeleteMethod; this._beginVerifyIPFlow = _beginVerifyIPFlow; this._beginGetNextHop = _beginGetNextHop; @@ -4467,7 +4137,6 @@ class NetworkWatchers { this._beginCheckConnectivity = _beginCheckConnectivity; this._beginGetAzureReachabilityReport = _beginGetAzureReachabilityReport; this._beginListAvailableProviders = _beginListAvailableProviders; - this._beginGetNetworkConfigurationDiagnostic = _beginGetNetworkConfigurationDiagnostic; } /** @@ -5719,14 +5388,6 @@ class NetworkWatchers { * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * - * @param {object} [parameters.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] * * @param {object} @@ -5748,11 +5409,6 @@ class NetworkWatchers { * 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 @@ -5806,14 +5462,6 @@ class NetworkWatchers { * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * - * @param {object} [parameters.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] * * @param {object} @@ -5835,11 +5483,6 @@ class NetworkWatchers { * 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 @@ -6412,121 +6055,6 @@ class NetworkWatchers { } } - /** - * 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} - The error object. - */ - getNetworkConfigurationDiagnosticWithHttpOperationResponse(resourceGroupName, networkWatcherName, parameters, options) { - let client = this.client; - let self = this; - return new Promise((resolve, reject) => { - self._getNetworkConfigurationDiagnostic(resourceGroupName, networkWatcherName, parameters, options, (err, result, request, response) => { - let httpOperationResponse = new msRest.HttpOperationResponse(request, response); - httpOperationResponse.body = result; - if (err) { reject(err); } - else { resolve(httpOperationResponse); } - return; - }); - }); - } - - /** - * 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 {function} [optionalCallback] - The optional callback. - * - * @returns {function|Promise} 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} - The error object. - * - * {function} optionalCallback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkConfigurationDiagnosticResponse} for - * more information. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ - getNetworkConfigurationDiagnostic(resourceGroupName, networkWatcherName, parameters, options, optionalCallback) { - let client = this.client; - let self = this; - if (!optionalCallback && typeof options === 'function') { - optionalCallback = options; - options = null; - } - if (!optionalCallback) { - return new Promise((resolve, reject) => { - self._getNetworkConfigurationDiagnostic(resourceGroupName, networkWatcherName, parameters, options, (err, result, request, response) => { - if (err) { reject(err); } - else { resolve(result); } - return; - }); - }); - } else { - return self._getNetworkConfigurationDiagnostic(resourceGroupName, networkWatcherName, parameters, options, optionalCallback); - } - } - /** * Deletes the specified network watcher resource. * @@ -7208,14 +6736,6 @@ class NetworkWatchers { * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * - * @param {object} [parameters.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] * * @param {object} @@ -7237,11 +6757,6 @@ class NetworkWatchers { * 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 @@ -7295,14 +6810,6 @@ class NetworkWatchers { * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * - * @param {object} [parameters.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] * * @param {object} @@ -7324,11 +6831,6 @@ class NetworkWatchers { * 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 @@ -7901,121 +7403,6 @@ class NetworkWatchers { } } - /** - * 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} - The error object. - */ - beginGetNetworkConfigurationDiagnosticWithHttpOperationResponse(resourceGroupName, networkWatcherName, parameters, options) { - let client = this.client; - let self = this; - return new Promise((resolve, reject) => { - self._beginGetNetworkConfigurationDiagnostic(resourceGroupName, networkWatcherName, parameters, options, (err, result, request, response) => { - let httpOperationResponse = new msRest.HttpOperationResponse(request, response); - httpOperationResponse.body = result; - if (err) { reject(err); } - else { resolve(httpOperationResponse); } - return; - }); - }); - } - - /** - * 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 {function} [optionalCallback] - The optional callback. - * - * @returns {function|Promise} 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} - The error object. - * - * {function} optionalCallback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link NetworkConfigurationDiagnosticResponse} for - * more information. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ - beginGetNetworkConfigurationDiagnostic(resourceGroupName, networkWatcherName, parameters, options, optionalCallback) { - let client = this.client; - let self = this; - if (!optionalCallback && typeof options === 'function') { - optionalCallback = options; - options = null; - } - if (!optionalCallback) { - return new Promise((resolve, reject) => { - self._beginGetNetworkConfigurationDiagnostic(resourceGroupName, networkWatcherName, parameters, options, (err, result, request, response) => { - if (err) { reject(err); } - else { resolve(result); } - return; - }); - }); - } else { - return self._beginGetNetworkConfigurationDiagnostic(resourceGroupName, networkWatcherName, parameters, options, optionalCallback); - } - } - } module.exports = NetworkWatchers; diff --git a/lib/services/networkManagement2/lib/operations/operations.js b/lib/services/networkManagement2/lib/operations/operations.js index 47a5471c24..2d6438e17a 100644 --- a/lib/services/networkManagement2/lib/operations/operations.js +++ b/lib/services/networkManagement2/lib/operations/operations.js @@ -45,7 +45,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/packetCaptures.js b/lib/services/networkManagement2/lib/operations/packetCaptures.js index 7a12dfc8de..bb8473afaf 100644 --- a/lib/services/networkManagement2/lib/operations/packetCaptures.js +++ b/lib/services/networkManagement2/lib/operations/packetCaptures.js @@ -163,7 +163,7 @@ function _get(resourceGroupName, networkWatcherName, packetCaptureName, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -235,13 +235,12 @@ function _get(resourceGroupName, networkWatcherName, packetCaptureName, options, try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -524,7 +523,7 @@ function _list(resourceGroupName, networkWatcherName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -592,13 +591,12 @@ function _list(resourceGroupName, networkWatcherName, options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -702,7 +700,7 @@ function _beginCreate(resourceGroupName, networkWatcherName, packetCaptureName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -791,13 +789,12 @@ function _beginCreate(resourceGroupName, networkWatcherName, packetCaptureName, try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -868,7 +865,7 @@ function _beginDeleteMethod(resourceGroupName, networkWatcherName, packetCapture if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -940,13 +937,12 @@ function _beginDeleteMethod(resourceGroupName, networkWatcherName, packetCapture try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -1000,7 +996,7 @@ function _beginStop(resourceGroupName, networkWatcherName, packetCaptureName, op if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1072,13 +1068,12 @@ function _beginStop(resourceGroupName, networkWatcherName, packetCaptureName, op try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { @@ -1135,7 +1130,7 @@ function _beginGetStatus(resourceGroupName, networkWatcherName, packetCaptureNam if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1207,13 +1202,12 @@ function _beginGetStatus(resourceGroupName, networkWatcherName, packetCaptureNam try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - let internalError = null; - if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; - error.code = internalError ? internalError.code : parsedErrorResponse.code; - error.message = internalError ? internalError.message : parsedErrorResponse.message; + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['ErrorResponse']().mapper(); + let resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { diff --git a/lib/services/networkManagement2/lib/operations/publicIPAddresses.js b/lib/services/networkManagement2/lib/operations/publicIPAddresses.js index f4474386fb..a65cd73eee 100644 --- a/lib/services/networkManagement2/lib/operations/publicIPAddresses.js +++ b/lib/services/networkManagement2/lib/operations/publicIPAddresses.js @@ -115,7 +115,7 @@ function _get(resourceGroupName, publicIpAddressName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -278,11 +278,6 @@ function _get(resourceGroupName, publicIpAddressName, options, callback) { * @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. * @@ -490,7 +485,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -624,7 +619,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1249,7 +1244,7 @@ function _beginDeleteMethod(resourceGroupName, publicIpAddressName, options, cal if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1388,11 +1383,6 @@ function _beginDeleteMethod(resourceGroupName, publicIpAddressName, options, cal * @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. * @@ -1443,7 +1433,7 @@ function _beginCreateOrUpdate(resourceGroupName, publicIpAddressName, parameters if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1625,7 +1615,7 @@ function _beginUpdateTags(resourceGroupName, publicIpAddressName, parameters, op if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2513,11 +2503,6 @@ class PublicIPAddresses { * @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. * @@ -2613,11 +2598,6 @@ class PublicIPAddresses { * @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. * @@ -3380,11 +3360,6 @@ class PublicIPAddresses { * @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. * @@ -3480,11 +3455,6 @@ class PublicIPAddresses { * @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. * diff --git a/lib/services/networkManagement2/lib/operations/routeFilterRules.js b/lib/services/networkManagement2/lib/operations/routeFilterRules.js index c4ad4d0f9f..60f8ee2472 100644 --- a/lib/services/networkManagement2/lib/operations/routeFilterRules.js +++ b/lib/services/networkManagement2/lib/operations/routeFilterRules.js @@ -116,7 +116,7 @@ function _get(resourceGroupName, routeFilterName, ruleName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -454,7 +454,7 @@ function _listByRouteFilter(resourceGroupName, routeFilterName, options, callbac if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -598,7 +598,7 @@ function _beginDeleteMethod(resourceGroupName, routeFilterName, ruleName, option if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -752,7 +752,7 @@ function _beginCreateOrUpdate(resourceGroupName, routeFilterName, ruleName, rout { routeFilterRuleParameters = {}; } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -951,7 +951,7 @@ function _beginUpdate(resourceGroupName, routeFilterName, ruleName, routeFilterR { routeFilterRuleParameters = {}; } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/routeFilters.js b/lib/services/networkManagement2/lib/operations/routeFilters.js index 668f338414..fca76f9c45 100644 --- a/lib/services/networkManagement2/lib/operations/routeFilters.js +++ b/lib/services/networkManagement2/lib/operations/routeFilters.js @@ -116,7 +116,7 @@ function _get(resourceGroupName, routeFilterName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -447,7 +447,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -582,7 +582,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -716,7 +716,7 @@ function _beginDeleteMethod(resourceGroupName, routeFilterName, options, callbac if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -857,7 +857,7 @@ function _beginCreateOrUpdate(resourceGroupName, routeFilterName, routeFilterPar if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1047,7 +1047,7 @@ function _beginUpdate(resourceGroupName, routeFilterName, routeFilterParameters, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/routeTables.js b/lib/services/networkManagement2/lib/operations/routeTables.js index 3820157eea..42f75b6be5 100644 --- a/lib/services/networkManagement2/lib/operations/routeTables.js +++ b/lib/services/networkManagement2/lib/operations/routeTables.js @@ -115,7 +115,7 @@ function _get(resourceGroupName, routeTableName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -444,7 +444,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -579,7 +579,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -713,7 +713,7 @@ function _beginDeleteMethod(resourceGroupName, routeTableName, options, callback if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -861,7 +861,7 @@ function _beginCreateOrUpdate(resourceGroupName, routeTableName, parameters, opt if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1042,7 +1042,7 @@ function _beginUpdateTags(resourceGroupName, routeTableName, parameters, options if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/routes.js b/lib/services/networkManagement2/lib/operations/routes.js index 4ae9b61e22..7b81ef051f 100644 --- a/lib/services/networkManagement2/lib/operations/routes.js +++ b/lib/services/networkManagement2/lib/operations/routes.js @@ -116,7 +116,7 @@ function _get(resourceGroupName, routeTableName, routeName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -371,7 +371,7 @@ function _list(resourceGroupName, routeTableName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -515,7 +515,7 @@ function _beginDeleteMethod(resourceGroupName, routeTableName, routeName, option if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -675,7 +675,7 @@ function _beginCreateOrUpdate(resourceGroupName, routeTableName, routeName, rout if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/securityRules.js b/lib/services/networkManagement2/lib/operations/securityRules.js index de8ea23ef5..ad6147a832 100644 --- a/lib/services/networkManagement2/lib/operations/securityRules.js +++ b/lib/services/networkManagement2/lib/operations/securityRules.js @@ -118,7 +118,7 @@ function _get(resourceGroupName, networkSecurityGroupName, securityRuleName, opt if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -422,7 +422,7 @@ function _list(resourceGroupName, networkSecurityGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -567,7 +567,7 @@ function _beginDeleteMethod(resourceGroupName, networkSecurityGroupName, securit if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -774,7 +774,7 @@ function _beginCreateOrUpdate(resourceGroupName, networkSecurityGroupName, secur if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/subnets.js b/lib/services/networkManagement2/lib/operations/subnets.js index c2434e3f62..c0888989e5 100644 --- a/lib/services/networkManagement2/lib/operations/subnets.js +++ b/lib/services/networkManagement2/lib/operations/subnets.js @@ -119,7 +119,7 @@ function _get(resourceGroupName, virtualNetworkName, subnetName, options, callba throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -253,9 +253,6 @@ function _get(resourceGroupName, virtualNetworkName, subnetName, options, callba * @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. * @@ -308,18 +305,9 @@ function _get(resourceGroupName, virtualNetworkName, subnetName, options, callba * @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. * @@ -437,7 +425,7 @@ function _list(resourceGroupName, virtualNetworkName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -581,7 +569,7 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkName, subnetName, o if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -691,9 +679,6 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkName, subnetName, o * @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. * @@ -746,18 +731,9 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkName, subnetName, o * @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. * @@ -798,7 +774,7 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkName, subnetName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1286,9 +1262,6 @@ class Subnets { * @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. * @@ -1341,18 +1314,9 @@ class Subnets { * @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. * @@ -1405,9 +1369,6 @@ class Subnets { * @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. * @@ -1460,18 +1421,9 @@ class Subnets { * @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. * @@ -1721,9 +1673,6 @@ class Subnets { * @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. * @@ -1776,18 +1725,9 @@ class Subnets { * @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. * @@ -1840,9 +1780,6 @@ class Subnets { * @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. * @@ -1895,18 +1832,9 @@ class Subnets { * @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. * diff --git a/lib/services/networkManagement2/lib/operations/usages.js b/lib/services/networkManagement2/lib/operations/usages.js index 01254efcdb..f3271bab85 100644 --- a/lib/services/networkManagement2/lib/operations/usages.js +++ b/lib/services/networkManagement2/lib/operations/usages.js @@ -47,16 +47,16 @@ function _list(location, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (location === null || location === undefined || typeof location.valueOf() !== 'string') { throw new Error('location cannot be null or undefined and it must be of type string.'); } if (location !== null && location !== undefined) { - if (location.match(/^[-\w\._ ]+$/) === null) + if (location.match(/^[-\w\._]+$/) === null) { - throw new Error('"location" should satisfy the constraint - "Pattern": /^[-\w\._ ]+$/'); + throw new Error('"location" should satisfy the constraint - "Pattern": /^[-\w\._]+$/'); } } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/virtualHubs.js b/lib/services/networkManagement2/lib/operations/virtualHubs.js index 50b0b11327..53ac965b0b 100644 --- a/lib/services/networkManagement2/lib/operations/virtualHubs.js +++ b/lib/services/networkManagement2/lib/operations/virtualHubs.js @@ -49,7 +49,7 @@ function _get(resourceGroupName, virtualHubName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -173,28 +173,14 @@ function _get(resourceGroupName, virtualHubName, options, callback) { * @param {object} [virtualHubParameters.virtualWan] The VirtualWAN to which * the VirtualHub belongs * - * @param {object} [virtualHubParameters.vpnGateway] The VpnGateway associated - * with this VirtualHub + * @param {string} [virtualHubParameters.virtualWan.id] Resource ID. * - * @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 {array} [virtualHubParameters.hubVirtualNetworkConnections] 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' @@ -454,7 +440,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -590,7 +576,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -705,28 +691,14 @@ function _list(options, callback) { * @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 {string} [virtualHubParameters.virtualWan.id] Resource ID. * - * @param {array} [virtualHubParameters.virtualNetworkConnections] list of all - * vnet connections with this VirtualHub. + * @param {array} [virtualHubParameters.hubVirtualNetworkConnections] 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' @@ -765,7 +737,7 @@ function _beginCreateOrUpdate(resourceGroupName, virtualHubName, virtualHubParam if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -948,7 +920,7 @@ function _beginUpdateTags(resourceGroupName, virtualHubName, virtualHubParameter if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1125,7 +1097,7 @@ function _beginDeleteMethod(resourceGroupName, virtualHubName, options, callback if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1594,28 +1566,14 @@ class VirtualHubs { * @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.virtualWan.id] Resource ID. * - * @param {string} [virtualHubParameters.expressRouteGateway.id] Resource ID. - * - * @param {array} [virtualHubParameters.virtualNetworkConnections] list of all - * vnet connections with this VirtualHub. + * @param {array} [virtualHubParameters.hubVirtualNetworkConnections] 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' @@ -1665,28 +1623,14 @@ class VirtualHubs { * @param {object} [virtualHubParameters.virtualWan] The VirtualWAN to which * the VirtualHub belongs * - * @param {object} [virtualHubParameters.vpnGateway] The VpnGateway associated - * with this VirtualHub + * @param {string} [virtualHubParameters.virtualWan.id] Resource ID. * - * @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 {array} [virtualHubParameters.hubVirtualNetworkConnections] 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' @@ -2099,28 +2043,14 @@ class VirtualHubs { * @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 {string} [virtualHubParameters.virtualWan.id] Resource ID. * - * @param {array} [virtualHubParameters.virtualNetworkConnections] list of all - * vnet connections with this VirtualHub. + * @param {array} [virtualHubParameters.hubVirtualNetworkConnections] 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' @@ -2170,28 +2100,14 @@ class VirtualHubs { * @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.virtualWan.id] Resource ID. * - * @param {string} [virtualHubParameters.expressRouteGateway.id] Resource ID. - * - * @param {array} [virtualHubParameters.virtualNetworkConnections] list of all - * vnet connections with this VirtualHub. + * @param {array} [virtualHubParameters.hubVirtualNetworkConnections] 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' diff --git a/lib/services/networkManagement2/lib/operations/virtualNetworkGatewayConnections.js b/lib/services/networkManagement2/lib/operations/virtualNetworkGatewayConnections.js index 3013c37738..bc21a7e86f 100644 --- a/lib/services/networkManagement2/lib/operations/virtualNetworkGatewayConnections.js +++ b/lib/services/networkManagement2/lib/operations/virtualNetworkGatewayConnections.js @@ -168,9 +168,6 @@ const WebResource = msRest.WebResource; * values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. 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. @@ -190,9 +187,6 @@ const WebResource = msRest.WebResource; * @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. * @@ -310,7 +304,7 @@ function _get(resourceGroupName, virtualNetworkGatewayConnectionName, options, c if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -696,7 +690,7 @@ function _getSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, o if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -839,7 +833,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1186,9 +1180,6 @@ function _resetSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, * values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. 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. @@ -1208,9 +1199,6 @@ function _resetSharedKey(resourceGroupName, virtualNetworkGatewayConnectionName, * @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. * @@ -1249,7 +1237,7 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkGatewayConnection if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1426,7 +1414,7 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkGatewayConnectionNa if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1559,7 +1547,7 @@ function _beginUpdateTags(resourceGroupName, virtualNetworkGatewayConnectionName if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1732,7 +1720,7 @@ function _beginSetSharedKey(resourceGroupName, virtualNetworkGatewayConnectionNa if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1921,7 +1909,7 @@ function _beginResetSharedKey(resourceGroupName, virtualNetworkGatewayConnection if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2352,9 +2340,6 @@ class VirtualNetworkGatewayConnections { * values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. 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. @@ -2374,9 +2359,6 @@ class VirtualNetworkGatewayConnections { * @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. * @@ -2564,9 +2546,6 @@ class VirtualNetworkGatewayConnections { * values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. 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. @@ -2586,9 +2565,6 @@ class VirtualNetworkGatewayConnections { * @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. * @@ -3472,9 +3448,6 @@ class VirtualNetworkGatewayConnections { * values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. 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. @@ -3494,9 +3467,6 @@ class VirtualNetworkGatewayConnections { * @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. * @@ -3684,9 +3654,6 @@ class VirtualNetworkGatewayConnections { * values are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. 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. @@ -3706,9 +3673,6 @@ class VirtualNetworkGatewayConnections { * @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. * diff --git a/lib/services/networkManagement2/lib/operations/virtualNetworkGateways.js b/lib/services/networkManagement2/lib/operations/virtualNetworkGateways.js index 0c2a155956..33084465c0 100644 --- a/lib/services/networkManagement2/lib/operations/virtualNetworkGateways.js +++ b/lib/services/networkManagement2/lib/operations/virtualNetworkGateways.js @@ -228,7 +228,7 @@ function _get(resourceGroupName, virtualNetworkGatewayName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -518,7 +518,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -659,7 +659,7 @@ function _listConnections(resourceGroupName, virtualNetworkGatewayName, options, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -851,71 +851,6 @@ function _reset(resourceGroupName, virtualNetworkGatewayName, options, callback) } -/** - * 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 {function} callback - The callback. - * - * @returns {function} callback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {null} [result] - The deserialized result object if an error did not occur. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ -function _resetVpnClientSharedKey(resourceGroupName, virtualNetworkGatewayName, options, callback) { - /* jshint validthis: true */ - let client = this.client; - if(!callback && typeof options === 'function') { - callback = options; - options = null; - } - - if (!callback) { - throw new Error('callback cannot be null.'); - } - - // Send request - this.beginResetVpnClientSharedKey(resourceGroupName, virtualNetworkGatewayName, options, (err, parsedResult, httpRequest, response) => { - if (err) return callback(err); - - let initialResult = new msRest.HttpOperationResponse(); - initialResult.request = httpRequest; - initialResult.response = response; - initialResult.body = response.body; - client.getLongRunningOperationResult(initialResult, options, (err, pollingResult) => { - if (err) return callback(err); - - // Create Result - let result = null; - - httpRequest = pollingResult.request; - response = pollingResult.response; - let responseBody = pollingResult.body; - if (responseBody === '') responseBody = null; - - // Deserialize Response - - return callback(null, result, httpRequest, response); - }); - }); -} - - /** * Generates VPN client package for P2S client of the virtual network gateway * in the specified resource group. @@ -1329,7 +1264,7 @@ function _supportedVpnDevices(resourceGroupName, virtualNetworkGatewayName, opti if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1852,7 +1787,7 @@ function _vpnDeviceConfigurationScript(resourceGroupName, virtualNetworkGatewayC if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2118,7 +2053,7 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkGatewayName, para if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2295,7 +2230,7 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkGatewayName, option if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2427,7 +2362,7 @@ function _beginUpdateTags(resourceGroupName, virtualNetworkGatewayName, paramete if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2593,7 +2528,7 @@ function _beginReset(resourceGroupName, virtualNetworkGatewayName, options, call throw new Error('callback cannot be null.'); } let gatewayVip = (options && options.gatewayVip !== undefined) ? options.gatewayVip : undefined; - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2707,133 +2642,6 @@ function _beginReset(resourceGroupName, virtualNetworkGatewayName, options, call }); } -/** - * 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 {function} callback - The callback. - * - * @returns {function} callback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {null} [result] - The deserialized result object if an error did not occur. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ -function _beginResetVpnClientSharedKey(resourceGroupName, virtualNetworkGatewayName, options, callback) { - /* jshint validthis: true */ - let client = this.client; - if(!callback && typeof options === 'function') { - callback = options; - options = null; - } - if (!callback) { - throw new Error('callback cannot be null.'); - } - let apiVersion = '2018-10-01'; - // Validate - try { - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); - } - if (virtualNetworkGatewayName === null || virtualNetworkGatewayName === undefined || typeof virtualNetworkGatewayName.valueOf() !== 'string') { - throw new Error('virtualNetworkGatewayName cannot be null or undefined and it must be of type string.'); - } - if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { - throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); - } - if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { - throw new Error('this.client.acceptLanguage must be of type string.'); - } - } catch (error) { - return callback(error); - } - - // Construct URL - let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/resetvpnclientsharedkey'; - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{virtualNetworkGatewayName}', encodeURIComponent(virtualNetworkGatewayName)); - requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); - if (queryParameters.length > 0) { - requestUrl += '?' + queryParameters.join('&'); - } - - // Create HTTP transport objects - let httpRequest = new WebResource(); - httpRequest.method = 'POST'; - httpRequest.url = requestUrl; - httpRequest.headers = {}; - // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - if (this.client.generateClientRequestId) { - httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); - } - if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { - httpRequest.headers['accept-language'] = this.client.acceptLanguage; - } - if(options) { - for(let headerName in options['customHeaders']) { - if (options['customHeaders'].hasOwnProperty(headerName)) { - httpRequest.headers[headerName] = options['customHeaders'][headerName]; - } - } - } - httpRequest.body = null; - // Send Request - return client.pipeline(httpRequest, (err, response, responseBody) => { - if (err) { - return callback(err); - } - let statusCode = response.statusCode; - if (statusCode !== 200 && statusCode !== 202) { - let error = new Error(responseBody); - error.statusCode = response.statusCode; - error.request = msRest.stripRequest(httpRequest); - error.response = msRest.stripResponse(response); - if (responseBody === '') responseBody = null; - let parsedErrorResponse; - try { - parsedErrorResponse = JSON.parse(responseBody); - if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; - } - if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['CloudError']().mapper(); - error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); - } - } catch (defaultError) { - error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + - `- "${responseBody}" for the default response.`; - return callback(error); - } - return callback(error); - } - // Create Result - let result = null; - if (responseBody === '') responseBody = null; - - return callback(null, result, httpRequest, response); - }); -} - /** * Generates VPN client package for P2S client of the virtual network gateway * in the specified resource group. @@ -2890,7 +2698,7 @@ function _beginGeneratevpnclientpackage(resourceGroupName, virtualNetworkGateway if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3077,7 +2885,7 @@ function _beginGenerateVpnProfile(resourceGroupName, virtualNetworkGatewayName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3245,7 +3053,7 @@ function _beginGetVpnProfilePackageUrl(resourceGroupName, virtualNetworkGatewayN if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3400,7 +3208,7 @@ function _beginGetBgpPeerStatus(resourceGroupName, virtualNetworkGatewayName, op throw new Error('callback cannot be null.'); } let peer = (options && options.peer !== undefined) ? options.peer : undefined; - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3552,7 +3360,7 @@ function _beginGetLearnedRoutes(resourceGroupName, virtualNetworkGatewayName, op if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3700,7 +3508,7 @@ function _beginGetAdvertisedRoutes(resourceGroupName, virtualNetworkGatewayName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -3887,7 +3695,7 @@ function _beginSetVpnclientIpsecParameters(resourceGroupName, virtualNetworkGate if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4050,7 +3858,7 @@ function _beginGetVpnclientIpsecParameters(resourceGroupName, virtualNetworkGate if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -4429,7 +4237,6 @@ class VirtualNetworkGateways { this._list = _list; this._listConnections = _listConnections; this._reset = _reset; - this._resetVpnClientSharedKey = _resetVpnClientSharedKey; this._generatevpnclientpackage = _generatevpnclientpackage; this._generateVpnProfile = _generateVpnProfile; this._getVpnProfilePackageUrl = _getVpnProfilePackageUrl; @@ -4444,7 +4251,6 @@ class VirtualNetworkGateways { this._beginDeleteMethod = _beginDeleteMethod; this._beginUpdateTags = _beginUpdateTags; this._beginReset = _beginReset; - this._beginResetVpnClientSharedKey = _beginResetVpnClientSharedKey; this._beginGeneratevpnclientpackage = _beginGeneratevpnclientpackage; this._beginGenerateVpnProfile = _beginGenerateVpnProfile; this._beginGetVpnProfilePackageUrl = _beginGetVpnProfilePackageUrl; @@ -5284,95 +5090,6 @@ class VirtualNetworkGateways { } } - /** - * 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} - The error object. - */ - resetVpnClientSharedKeyWithHttpOperationResponse(resourceGroupName, virtualNetworkGatewayName, options) { - let client = this.client; - let self = this; - return new Promise((resolve, reject) => { - self._resetVpnClientSharedKey(resourceGroupName, virtualNetworkGatewayName, options, (err, result, request, response) => { - let httpOperationResponse = new msRest.HttpOperationResponse(request, response); - httpOperationResponse.body = result; - if (err) { reject(err); } - else { resolve(httpOperationResponse); } - return; - }); - }); - } - - /** - * 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 {function} [optionalCallback] - The optional callback. - * - * @returns {function|Promise} 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} - The error object. - * - * {function} optionalCallback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {null} [result] - The deserialized result object if an error did not occur. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ - resetVpnClientSharedKey(resourceGroupName, virtualNetworkGatewayName, options, optionalCallback) { - let client = this.client; - let self = this; - if (!optionalCallback && typeof options === 'function') { - optionalCallback = options; - options = null; - } - if (!optionalCallback) { - return new Promise((resolve, reject) => { - self._resetVpnClientSharedKey(resourceGroupName, virtualNetworkGatewayName, options, (err, result, request, response) => { - if (err) { reject(err); } - else { resolve(result); } - return; - }); - }); - } else { - return self._resetVpnClientSharedKey(resourceGroupName, virtualNetworkGatewayName, options, optionalCallback); - } - } - /** * Generates VPN client package for P2S client of the virtual network gateway * in the specified resource group. @@ -7022,95 +6739,6 @@ class VirtualNetworkGateways { } } - /** - * 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} - The error object. - */ - beginResetVpnClientSharedKeyWithHttpOperationResponse(resourceGroupName, virtualNetworkGatewayName, options) { - let client = this.client; - let self = this; - return new Promise((resolve, reject) => { - self._beginResetVpnClientSharedKey(resourceGroupName, virtualNetworkGatewayName, options, (err, result, request, response) => { - let httpOperationResponse = new msRest.HttpOperationResponse(request, response); - httpOperationResponse.body = result; - if (err) { reject(err); } - else { resolve(httpOperationResponse); } - return; - }); - }); - } - - /** - * 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 {function} [optionalCallback] - The optional callback. - * - * @returns {function|Promise} 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} - The error object. - * - * {function} optionalCallback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {null} [result] - The deserialized result object if an error did not occur. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ - beginResetVpnClientSharedKey(resourceGroupName, virtualNetworkGatewayName, options, optionalCallback) { - let client = this.client; - let self = this; - if (!optionalCallback && typeof options === 'function') { - optionalCallback = options; - options = null; - } - if (!optionalCallback) { - return new Promise((resolve, reject) => { - self._beginResetVpnClientSharedKey(resourceGroupName, virtualNetworkGatewayName, options, (err, result, request, response) => { - if (err) { reject(err); } - else { resolve(result); } - return; - }); - }); - } else { - return self._beginResetVpnClientSharedKey(resourceGroupName, virtualNetworkGatewayName, options, optionalCallback); - } - } - /** * Generates VPN client package for P2S client of the virtual network gateway * in the specified resource group. diff --git a/lib/services/networkManagement2/lib/operations/virtualNetworkPeerings.js b/lib/services/networkManagement2/lib/operations/virtualNetworkPeerings.js index 1cc1930e3c..4ddc9a81af 100644 --- a/lib/services/networkManagement2/lib/operations/virtualNetworkPeerings.js +++ b/lib/services/networkManagement2/lib/operations/virtualNetworkPeerings.js @@ -118,7 +118,7 @@ function _get(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -401,7 +401,7 @@ function _list(resourceGroupName, virtualNetworkName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -546,7 +546,7 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkName, virtualNetwor if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -733,7 +733,7 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkName, virtualNetw if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/lib/operations/virtualNetworks.js b/lib/services/networkManagement2/lib/operations/virtualNetworks.js index 1920e40b27..b659bdb2d8 100644 --- a/lib/services/networkManagement2/lib/operations/virtualNetworks.js +++ b/lib/services/networkManagement2/lib/operations/virtualNetworks.js @@ -115,7 +115,7 @@ function _get(resourceGroupName, virtualNetworkName, options, callback) { throw new Error('callback cannot be null.'); } let expand = (options && options.expand !== undefined) ? options.expand : undefined; - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -470,7 +470,7 @@ function _listAll(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -604,7 +604,7 @@ function _list(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -711,12 +711,12 @@ function _list(resourceGroupName, options, callback) { /** * Checks whether a private IP address is available for use. * + * @param {string} ipAddress The private IP address to be verified. + * * @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 @@ -736,7 +736,7 @@ function _list(resourceGroupName, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _checkIPAddressAvailability(resourceGroupName, virtualNetworkName, ipAddress, options, callback) { +function _checkIPAddressAvailability(ipAddress, resourceGroupName, virtualNetworkName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -746,18 +746,18 @@ function _checkIPAddressAvailability(resourceGroupName, virtualNetworkName, ipAd if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { + if (ipAddress === null || ipAddress === undefined || typeof ipAddress.valueOf() !== 'string') { + throw new Error('ipAddress cannot be null or undefined and it must be of type string.'); + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } if (virtualNetworkName === null || virtualNetworkName === undefined || typeof virtualNetworkName.valueOf() !== 'string') { throw new Error('virtualNetworkName cannot be null or undefined and it must be of type string.'); } - if (ipAddress === null || ipAddress === undefined || typeof ipAddress.valueOf() !== 'string') { - throw new Error('ipAddress cannot be null or undefined and it must be of type string.'); - } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } @@ -894,7 +894,7 @@ function _listUsage(resourceGroupName, virtualNetworkName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1036,7 +1036,7 @@ function _beginDeleteMethod(resourceGroupName, virtualNetworkName, options, call if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1210,7 +1210,7 @@ function _beginCreateOrUpdate(resourceGroupName, virtualNetworkName, parameters, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -1392,7 +1392,7 @@ function _beginUpdateTags(resourceGroupName, virtualNetworkName, parameters, opt if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -2543,12 +2543,12 @@ class VirtualNetworks { /** * Checks whether a private IP address is available for use. * + * @param {string} ipAddress The private IP address to be verified. + * * @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 @@ -2560,11 +2560,11 @@ class VirtualNetworks { * * @reject {Error} - The error object. */ - checkIPAddressAvailabilityWithHttpOperationResponse(resourceGroupName, virtualNetworkName, ipAddress, options) { + checkIPAddressAvailabilityWithHttpOperationResponse(ipAddress, resourceGroupName, virtualNetworkName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._checkIPAddressAvailability(resourceGroupName, virtualNetworkName, ipAddress, options, (err, result, request, response) => { + self._checkIPAddressAvailability(ipAddress, resourceGroupName, virtualNetworkName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2577,12 +2577,12 @@ class VirtualNetworks { /** * Checks whether a private IP address is available for use. * + * @param {string} ipAddress The private IP address to be verified. + * * @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 @@ -2611,7 +2611,7 @@ class VirtualNetworks { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - checkIPAddressAvailability(resourceGroupName, virtualNetworkName, ipAddress, options, optionalCallback) { + checkIPAddressAvailability(ipAddress, resourceGroupName, virtualNetworkName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2620,14 +2620,14 @@ class VirtualNetworks { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._checkIPAddressAvailability(resourceGroupName, virtualNetworkName, ipAddress, options, (err, result, request, response) => { + self._checkIPAddressAvailability(ipAddress, resourceGroupName, virtualNetworkName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._checkIPAddressAvailability(resourceGroupName, virtualNetworkName, ipAddress, options, optionalCallback); + return self._checkIPAddressAvailability(ipAddress, resourceGroupName, virtualNetworkName, options, optionalCallback); } } diff --git a/lib/services/networkManagement2/lib/operations/virtualWANs.js b/lib/services/networkManagement2/lib/operations/virtualWANs.js index f0a7956eab..20e55641f2 100644 --- a/lib/services/networkManagement2/lib/operations/virtualWANs.js +++ b/lib/services/networkManagement2/lib/operations/virtualWANs.js @@ -49,7 +49,7 @@ function _get(resourceGroupName, virtualWANName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-08-01'; + let apiVersion = '2018-04-01'; // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { @@ -174,22 +174,6 @@ function _get(resourceGroupName, virtualWANName, options, callback) { * @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' @@ -448,7 +432,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-08-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -584,7 +568,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-08-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -700,22 +684,6 @@ function _list(options, callback) { * @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' @@ -754,7 +722,7 @@ function _beginCreateOrUpdate(resourceGroupName, virtualWANName, wANParameters, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-08-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -936,7 +904,7 @@ function _beginUpdateTags(resourceGroupName, virtualWANName, wANParameters, opti if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-08-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1113,7 +1081,7 @@ function _beginDeleteMethod(resourceGroupName, virtualWANName, options, callback if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-08-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1461,10 +1429,10 @@ function _listNext(nextPageLink, options, callback) { }); } -/** Class representing a VirtualWans. */ -class VirtualWans { +/** Class representing a VirtualWANs. */ +class VirtualWANs { /** - * Create a VirtualWans. + * Create a VirtualWANs. * @param {NetworkManagementClient} client Reference to the service client. */ constructor(client) { @@ -1583,22 +1551,6 @@ class VirtualWans { * @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' @@ -1649,22 +1601,6 @@ class VirtualWans { * @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' @@ -2076,22 +2012,6 @@ class VirtualWans { * @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' @@ -2142,22 +2062,6 @@ class VirtualWans { * @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' @@ -2564,4 +2468,4 @@ class VirtualWans { } -module.exports = VirtualWans; +module.exports = VirtualWANs; diff --git a/lib/services/networkManagement2/lib/operations/vpnConnections.js b/lib/services/networkManagement2/lib/operations/vpnConnections.js index 8a32bac10a..4f414488b9 100644 --- a/lib/services/networkManagement2/lib/operations/vpnConnections.js +++ b/lib/services/networkManagement2/lib/operations/vpnConnections.js @@ -51,7 +51,7 @@ function _get(resourceGroupName, gatewayName, connectionName, options, callback) if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -190,13 +190,6 @@ function _get(resourceGroupName, gatewayName, connectionName, options, callback) * 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. * @@ -205,21 +198,16 @@ function _get(resourceGroupName, gatewayName, connectionName, options, callback) * @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 {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 {string} [vpnConnectionParameters.location] Resource location. + * + * @param {object} [vpnConnectionParameters.tags] Resource tags. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -358,8 +346,6 @@ function _deleteMethod(resourceGroupName, gatewayName, connectionName, options, /** * 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. @@ -381,7 +367,7 @@ function _deleteMethod(resourceGroupName, gatewayName, connectionName, options, * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _listByVpnGateway(resourceGroupName, gatewayName, options, callback) { +function _listByVpnGateway(gatewayName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -391,15 +377,12 @@ function _listByVpnGateway(resourceGroupName, gatewayName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); - } if (gatewayName === null || gatewayName === undefined || typeof gatewayName.valueOf() !== 'string') { throw new Error('gatewayName cannot be null or undefined and it must be of type string.'); } @@ -412,9 +395,8 @@ function _listByVpnGateway(resourceGroupName, gatewayName, options, callback) { // Construct URL let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections'; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{gatewayName}', encodeURIComponent(gatewayName)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); @@ -525,13 +507,6 @@ function _listByVpnGateway(resourceGroupName, gatewayName, options, callback) { * 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. * @@ -540,21 +515,16 @@ function _listByVpnGateway(resourceGroupName, gatewayName, options, callback) { * @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 {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 {string} [vpnConnectionParameters.location] Resource location. + * + * @param {object} [vpnConnectionParameters.tags] Resource tags. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -583,7 +553,7 @@ function _beginCreateOrUpdate(resourceGroupName, gatewayName, connectionName, vp if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -766,7 +736,7 @@ function _beginDeleteMethod(resourceGroupName, gatewayName, connectionName, opti if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1123,13 +1093,6 @@ class VpnConnections { * 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. * @@ -1138,21 +1101,16 @@ class VpnConnections { * @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 {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 {string} [vpnConnectionParameters.location] Resource location. + * + * @param {object} [vpnConnectionParameters.tags] Resource tags. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1203,13 +1161,6 @@ class VpnConnections { * 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. * @@ -1218,21 +1169,16 @@ class VpnConnections { * @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 {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 {string} [vpnConnectionParameters.location] Resource location. + * + * @param {object} [vpnConnectionParameters.tags] Resource tags. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1372,8 +1318,6 @@ class VpnConnections { /** * 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. @@ -1387,11 +1331,11 @@ class VpnConnections { * * @reject {Error} - The error object. */ - listByVpnGatewayWithHttpOperationResponse(resourceGroupName, gatewayName, options) { + listByVpnGatewayWithHttpOperationResponse(gatewayName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._listByVpnGateway(resourceGroupName, gatewayName, options, (err, result, request, response) => { + self._listByVpnGateway(gatewayName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -1404,8 +1348,6 @@ class VpnConnections { /** * 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. @@ -1436,7 +1378,7 @@ class VpnConnections { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - listByVpnGateway(resourceGroupName, gatewayName, options, optionalCallback) { + listByVpnGateway(gatewayName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -1445,14 +1387,14 @@ class VpnConnections { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._listByVpnGateway(resourceGroupName, gatewayName, options, (err, result, request, response) => { + self._listByVpnGateway(gatewayName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._listByVpnGateway(resourceGroupName, gatewayName, options, optionalCallback); + return self._listByVpnGateway(gatewayName, options, optionalCallback); } } @@ -1481,13 +1423,6 @@ class VpnConnections { * 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. * @@ -1496,21 +1431,16 @@ class VpnConnections { * @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 {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 {string} [vpnConnectionParameters.location] Resource location. + * + * @param {object} [vpnConnectionParameters.tags] Resource tags. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -1561,13 +1491,6 @@ class VpnConnections { * 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. * @@ -1576,21 +1499,16 @@ class VpnConnections { * @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 {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 {string} [vpnConnectionParameters.location] Resource location. + * + * @param {object} [vpnConnectionParameters.tags] Resource tags. + * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the diff --git a/lib/services/networkManagement2/lib/operations/vpnGateways.js b/lib/services/networkManagement2/lib/operations/vpnGateways.js index 6a9ae378d8..b0960ac27f 100644 --- a/lib/services/networkManagement2/lib/operations/vpnGateways.js +++ b/lib/services/networkManagement2/lib/operations/vpnGateways.js @@ -49,7 +49,7 @@ function _get(resourceGroupName, gatewayName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -194,8 +194,14 @@ function _get(resourceGroupName, gatewayName, options, callback) { * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * - * @param {number} [vpnGatewayParameters.vpnGatewayScaleUnit] The scale unit - * for this vpn gateway. + * @param {object} [vpnGatewayParameters.policies] The policies applied to this + * vpn gateway. + * + * @param {boolean} [vpnGatewayParameters.policies.allowBranchToBranchTraffic] + * True if branch to branch traffic is allowed. + * + * @param {boolean} [vpnGatewayParameters.policies.allowVnetToVnetTraffic] True + * if Vnet to Vnet traffic is allowed. * * @param {string} [vpnGatewayParameters.id] Resource ID. * @@ -452,7 +458,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -588,7 +594,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -724,8 +730,14 @@ function _list(options, callback) { * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * - * @param {number} [vpnGatewayParameters.vpnGatewayScaleUnit] The scale unit - * for this vpn gateway. + * @param {object} [vpnGatewayParameters.policies] The policies applied to this + * vpn gateway. + * + * @param {boolean} [vpnGatewayParameters.policies.allowBranchToBranchTraffic] + * True if branch to branch traffic is allowed. + * + * @param {boolean} [vpnGatewayParameters.policies.allowVnetToVnetTraffic] True + * if Vnet to Vnet traffic is allowed. * * @param {string} [vpnGatewayParameters.id] Resource ID. * @@ -761,7 +773,7 @@ function _beginCreateOrUpdate(resourceGroupName, gatewayName, vpnGatewayParamete if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -944,7 +956,7 @@ function _beginUpdateTags(resourceGroupName, gatewayName, vpnGatewayParameters, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1121,7 +1133,7 @@ function _beginDeleteMethod(resourceGroupName, gatewayName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1611,8 +1623,14 @@ class VpnGateways { * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * - * @param {number} [vpnGatewayParameters.vpnGatewayScaleUnit] The scale unit - * for this vpn gateway. + * @param {object} [vpnGatewayParameters.policies] The policies applied to this + * vpn gateway. + * + * @param {boolean} [vpnGatewayParameters.policies.allowBranchToBranchTraffic] + * True if branch to branch traffic is allowed. + * + * @param {boolean} [vpnGatewayParameters.policies.allowVnetToVnetTraffic] True + * if Vnet to Vnet traffic is allowed. * * @param {string} [vpnGatewayParameters.id] Resource ID. * @@ -1680,8 +1698,14 @@ class VpnGateways { * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * - * @param {number} [vpnGatewayParameters.vpnGatewayScaleUnit] The scale unit - * for this vpn gateway. + * @param {object} [vpnGatewayParameters.policies] The policies applied to this + * vpn gateway. + * + * @param {boolean} [vpnGatewayParameters.policies.allowBranchToBranchTraffic] + * True if branch to branch traffic is allowed. + * + * @param {boolean} [vpnGatewayParameters.policies.allowVnetToVnetTraffic] True + * if Vnet to Vnet traffic is allowed. * * @param {string} [vpnGatewayParameters.id] Resource ID. * @@ -2112,8 +2136,14 @@ class VpnGateways { * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * - * @param {number} [vpnGatewayParameters.vpnGatewayScaleUnit] The scale unit - * for this vpn gateway. + * @param {object} [vpnGatewayParameters.policies] The policies applied to this + * vpn gateway. + * + * @param {boolean} [vpnGatewayParameters.policies.allowBranchToBranchTraffic] + * True if branch to branch traffic is allowed. + * + * @param {boolean} [vpnGatewayParameters.policies.allowVnetToVnetTraffic] True + * if Vnet to Vnet traffic is allowed. * * @param {string} [vpnGatewayParameters.id] Resource ID. * @@ -2181,8 +2211,14 @@ class VpnGateways { * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * - * @param {number} [vpnGatewayParameters.vpnGatewayScaleUnit] The scale unit - * for this vpn gateway. + * @param {object} [vpnGatewayParameters.policies] The policies applied to this + * vpn gateway. + * + * @param {boolean} [vpnGatewayParameters.policies.allowBranchToBranchTraffic] + * True if branch to branch traffic is allowed. + * + * @param {boolean} [vpnGatewayParameters.policies.allowVnetToVnetTraffic] True + * if Vnet to Vnet traffic is allowed. * * @param {string} [vpnGatewayParameters.id] Resource ID. * diff --git a/lib/services/networkManagement2/lib/operations/vpnSites.js b/lib/services/networkManagement2/lib/operations/vpnSites.js index 4d8f48db2a..6de36ae479 100644 --- a/lib/services/networkManagement2/lib/operations/vpnSites.js +++ b/lib/services/networkManagement2/lib/operations/vpnSites.js @@ -49,7 +49,7 @@ function _get(resourceGroupName, vpnSiteName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -171,10 +171,10 @@ function _get(resourceGroupName, vpnSiteName, options, callback) { * @param {object} vpnSiteParameters Parameters supplied to create or update * VpnSite. * - * @param {object} [vpnSiteParameters.virtualWan] The VirtualWAN to which the + * @param {object} [vpnSiteParameters.virtualWAN] The VirtualWAN to which the * vpnSite belongs * - * @param {string} [vpnSiteParameters.virtualWan.id] Resource ID. + * @param {string} [vpnSiteParameters.virtualWAN.id] Resource ID. * * @param {object} [vpnSiteParameters.deviceProperties] The device properties * @@ -213,8 +213,6 @@ function _get(resourceGroupName, vpnSiteName, options, callback) { * 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. @@ -470,7 +468,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -606,7 +604,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -719,10 +717,10 @@ function _list(options, callback) { * @param {object} vpnSiteParameters Parameters supplied to create or update * VpnSite. * - * @param {object} [vpnSiteParameters.virtualWan] The VirtualWAN to which the + * @param {object} [vpnSiteParameters.virtualWAN] The VirtualWAN to which the * vpnSite belongs * - * @param {string} [vpnSiteParameters.virtualWan.id] Resource ID. + * @param {string} [vpnSiteParameters.virtualWAN.id] Resource ID. * * @param {object} [vpnSiteParameters.deviceProperties] The device properties * @@ -761,8 +759,6 @@ function _list(options, callback) { * 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. @@ -797,7 +793,7 @@ function _beginCreateOrUpdate(resourceGroupName, vpnSiteName, vpnSiteParameters, if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -980,7 +976,7 @@ function _beginUpdateTags(resourceGroupName, vpnSiteName, vpnSiteParameters, opt if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1157,7 +1153,7 @@ function _beginDeleteMethod(resourceGroupName, vpnSiteName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -1624,10 +1620,10 @@ class VpnSites { * @param {object} vpnSiteParameters Parameters supplied to create or update * VpnSite. * - * @param {object} [vpnSiteParameters.virtualWan] The VirtualWAN to which the + * @param {object} [vpnSiteParameters.virtualWAN] The VirtualWAN to which the * vpnSite belongs * - * @param {string} [vpnSiteParameters.virtualWan.id] Resource ID. + * @param {string} [vpnSiteParameters.virtualWAN.id] Resource ID. * * @param {object} [vpnSiteParameters.deviceProperties] The device properties * @@ -1666,8 +1662,6 @@ class VpnSites { * 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. @@ -1711,10 +1705,10 @@ class VpnSites { * @param {object} vpnSiteParameters Parameters supplied to create or update * VpnSite. * - * @param {object} [vpnSiteParameters.virtualWan] The VirtualWAN to which the + * @param {object} [vpnSiteParameters.virtualWAN] The VirtualWAN to which the * vpnSite belongs * - * @param {string} [vpnSiteParameters.virtualWan.id] Resource ID. + * @param {string} [vpnSiteParameters.virtualWAN.id] Resource ID. * * @param {object} [vpnSiteParameters.deviceProperties] The device properties * @@ -1753,8 +1747,6 @@ class VpnSites { * 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. @@ -2161,10 +2153,10 @@ class VpnSites { * @param {object} vpnSiteParameters Parameters supplied to create or update * VpnSite. * - * @param {object} [vpnSiteParameters.virtualWan] The VirtualWAN to which the + * @param {object} [vpnSiteParameters.virtualWAN] The VirtualWAN to which the * vpnSite belongs * - * @param {string} [vpnSiteParameters.virtualWan.id] Resource ID. + * @param {string} [vpnSiteParameters.virtualWAN.id] Resource ID. * * @param {object} [vpnSiteParameters.deviceProperties] The device properties * @@ -2203,8 +2195,6 @@ class VpnSites { * 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. @@ -2248,10 +2238,10 @@ class VpnSites { * @param {object} vpnSiteParameters Parameters supplied to create or update * VpnSite. * - * @param {object} [vpnSiteParameters.virtualWan] The VirtualWAN to which the + * @param {object} [vpnSiteParameters.virtualWAN] The VirtualWAN to which the * vpnSite belongs * - * @param {string} [vpnSiteParameters.virtualWan.id] Resource ID. + * @param {string} [vpnSiteParameters.virtualWAN.id] Resource ID. * * @param {object} [vpnSiteParameters.deviceProperties] The device properties * @@ -2290,8 +2280,6 @@ class VpnSites { * 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. diff --git a/lib/services/networkManagement2/lib/operations/vpnSitesConfiguration.js b/lib/services/networkManagement2/lib/operations/vpnSitesConfiguration.js index a992dff912..0569c61558 100644 --- a/lib/services/networkManagement2/lib/operations/vpnSitesConfiguration.js +++ b/lib/services/networkManagement2/lib/operations/vpnSitesConfiguration.js @@ -133,7 +133,7 @@ function _beginDownload(resourceGroupName, virtualWANName, request, options, cal if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-10-01'; + let apiVersion = '2018-04-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { diff --git a/lib/services/networkManagement2/package.json b/lib/services/networkManagement2/package.json index 75c77514d0..5edd49b103 100644 --- a/lib/services/networkManagement2/package.json +++ b/lib/services/networkManagement2/package.json @@ -2,7 +2,7 @@ "name": "azure-arm-network", "author": "Microsoft Corporation", "description": "NetworkManagementClient Library with typescript type definitions for node", - "version": "11.0.0", + "version": "5.2.0", "dependencies": { "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5"