/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ import { ServiceClient, ServiceClientOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest'; import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure'; import * as models from "./models"; import * as operations from "./operations"; export default class NetworkManagementClient extends AzureServiceClient { /** * Initializes a new instance of the NetworkManagementClient class. * @constructor * * @class * @param {credentials} credentials - Credentials needed for the client to connect to Azure. * * @param {string} subscriptionId - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. * * @param {string} [baseUri] - The base URI of the service. * * @param {object} [options] - The parameter options * * @param {Array} [options.filters] - Filters to be added to the request pipeline * * @param {object} [options.requestOptions] - Options for the underlying request object * {@link https://github.com/request/request#requestoptions-callback Options doc} * * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy * * @param {string} [options.acceptLanguage] - The preferred language for the response. * * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30. * * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * */ constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); credentials: ServiceClientCredentials; subscriptionId: string; acceptLanguage: string; longRunningOperationRetryTimeout: number; generateClientRequestId: boolean; // Operation groups applicationGateways: operations.ApplicationGateways; applicationSecurityGroups: operations.ApplicationSecurityGroups; availableDelegations: operations.AvailableDelegations; availableResourceGroupDelegations: operations.AvailableResourceGroupDelegations; azureFirewalls: operations.AzureFirewalls; azureFirewallFqdnTags: operations.AzureFirewallFqdnTags; ddosCustomPolicies: operations.DdosCustomPolicies; ddosProtectionPlans: operations.DdosProtectionPlans; availableEndpointServices: operations.AvailableEndpointServices; expressRouteCircuitAuthorizations: operations.ExpressRouteCircuitAuthorizations; expressRouteCircuitPeerings: operations.ExpressRouteCircuitPeerings; expressRouteCircuitConnections: operations.ExpressRouteCircuitConnections; peerExpressRouteCircuitConnections: operations.PeerExpressRouteCircuitConnections; expressRouteCircuits: operations.ExpressRouteCircuits; 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; natGateways: operations.NatGateways; networkInterfaces: operations.NetworkInterfaces; networkInterfaceIPConfigurations: operations.NetworkInterfaceIPConfigurations; networkInterfaceLoadBalancers: operations.NetworkInterfaceLoadBalancers; networkInterfaceTapConfigurations: operations.NetworkInterfaceTapConfigurations; networkProfiles: operations.NetworkProfiles; networkSecurityGroups: operations.NetworkSecurityGroups; securityRules: operations.SecurityRules; defaultSecurityRules: operations.DefaultSecurityRules; networkWatchers: operations.NetworkWatchers; packetCaptures: operations.PacketCaptures; 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; virtualNetworkPeerings: operations.VirtualNetworkPeerings; virtualNetworkGateways: operations.VirtualNetworkGateways; virtualNetworkGatewayConnections: operations.VirtualNetworkGatewayConnections; localNetworkGateways: operations.LocalNetworkGateways; virtualNetworkTaps: operations.VirtualNetworkTaps; 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; webApplicationFirewallPolicies: operations.WebApplicationFirewallPolicies; /** * Checks whether a domain name in the cloudapp.azure.com zone is available for * use. * * @param {string} location The location of the domain name. * * @param {string} domainNameLabel The domain name to be verified. It must * conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ checkDnsNameAvailabilityWithHttpOperationResponse(location: string, domainNameLabel: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Checks whether a domain name in the cloudapp.azure.com zone is available for * use. * * @param {string} location The location of the domain name. * * @param {string} domainNameLabel The domain name to be verified. It must * conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DnsNameAvailabilityResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DnsNameAvailabilityResult} [result] - The deserialized result object if an error did not occur. * See {@link DnsNameAvailabilityResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ 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 };