diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/LICENSE.txt b/sdk/network/arm-network-profile-2020-09-01-hybrid/LICENSE.txt new file mode 100644 index 000000000000..ea8fb1516028 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2020 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/README.md b/sdk/network/arm-network-profile-2020-09-01-hybrid/README.md new file mode 100644 index 000000000000..046cb52643b3 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/README.md @@ -0,0 +1,103 @@ +## Azure NetworkManagementClient SDK for JavaScript + +This package contains an isomorphic SDK for NetworkManagementClient. + +### Currently supported environments + +- Node.js version 6.x.x or higher +- Browser JavaScript + +### How to Install + +```bash +npm install @azure/arm-network-profile-2020-09-01-hybrid +``` + +### How to use + +#### nodejs - Authentication, client creation and get virtualNetworkGateways as an example written in TypeScript. + +##### Install @azure/ms-rest-nodeauth + +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +```bash +npm install @azure/ms-rest-nodeauth@"^3.0.0" +``` + +##### Sample code + +```typescript +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; +import { NetworkManagementClient, NetworkManagementModels, NetworkManagementMappers } from "@azure/arm-network-profile-2020-09-01-hybrid"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new NetworkManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const virtualNetworkGatewayName = "testvirtualNetworkGatewayName"; + client.virtualNetworkGateways.get(resourceGroupName, virtualNetworkGatewayName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +#### browser - Authentication, client creation and get virtualNetworkGateways as an example written in JavaScript. + +##### Install @azure/ms-rest-browserauth + +```bash +npm install @azure/ms-rest-browserauth +``` + +##### Sample code + +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-network-profile-2020-09-01-hybrid sample + + + + + + + + +``` + +## Related projects + +- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/network/arm-network-profile-2020-09-01-hybrid/README.png) diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/package.json b/sdk/network/arm-network-profile-2020-09-01-hybrid/package.json new file mode 100644 index 000000000000..ce75797a9253 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/package.json @@ -0,0 +1,58 @@ +{ + "name": "@azure/arm-network-profile-2020-09-01-hybrid", + "author": "Microsoft Corporation", + "description": "NetworkManagementClient Library with typescript type definitions for node.js and browser.", + "version": "1.0.0", + "dependencies": { + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "license": "MIT", + "main": "./dist/arm-network-profile-2020-09-01-hybrid.js", + "module": "./esm/networkManagementClient.js", + "types": "./esm/networkManagementClient.d.ts", + "devDependencies": { + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/network/arm-network-profile-2020-09-01-hybrid", + "repository": { + "type": "git", + "url": "https://github.com/Azure/azure-sdk-for-js.git" + }, + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "files": [ + "dist/**/*.js", + "dist/**/*.js.map", + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "src/**/*.ts", + "README.md", + "rollup.config.js", + "tsconfig.json" + ], + "scripts": { + "build": "tsc && rollup -c rollup.config.js && npm run minify", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-network-profile-2020-09-01-hybrid.js.map'\" -o ./dist/arm-network-profile-2020-09-01-hybrid.min.js ./dist/arm-network-profile-2020-09-01-hybrid.js", + "prepack": "npm install && npm run build" + }, + "sideEffects": false, + "autoPublish": true +} diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/rollup.config.js b/sdk/network/arm-network-profile-2020-09-01-hybrid/rollup.config.js new file mode 100644 index 000000000000..2b8cc8b4f73c --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/rollup.config.js @@ -0,0 +1,37 @@ +import rollup from "rollup"; +import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + +/** + * @type {rollup.RollupFileOptions} + */ +const config = { + input: "./esm/networkManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], + output: { + file: "./dist/arm-network-profile-2020-09-01-hybrid.js", + format: "umd", + name: "Azure.ArmNetworkProfile20200901Hybrid", + sourcemap: true, + globals: { + "@azure/ms-rest-js": "msRest", + "@azure/ms-rest-azure-js": "msRestAzure" + }, + banner: `/* + * 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. + */` + }, + plugins: [ + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() + ] +}; + +export default config; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/defaultSecurityRulesMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/defaultSecurityRulesMappers.ts new file mode 100644 index 000000000000..2626e8da90f2 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/defaultSecurityRulesMappers.ts @@ -0,0 +1,70 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + SecurityRuleListResult, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/inboundNatRulesMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/inboundNatRulesMappers.ts new file mode 100644 index 000000000000..3d4cc12b75e8 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/inboundNatRulesMappers.ts @@ -0,0 +1,70 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InboundNatRuleListResult, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/index.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/index.ts new file mode 100644 index 000000000000..67a6f66a541c --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/index.ts @@ -0,0 +1,6986 @@ +/* + * 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 { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export { BaseResource, CloudError }; + +/** + * Reference to another subresource. + */ +export interface SubResource extends BaseResource { + /** + * Resource ID. + */ + id?: string; +} + +/** + * IP configuration for virtual network gateway + */ +export interface VirtualNetworkGatewayIPConfiguration extends SubResource { + /** + * The private IP allocation method. Possible values are: 'Static' and 'Dynamic'. Possible values + * include: 'Static', 'Dynamic' + */ + privateIPAllocationMethod?: IPAllocationMethod; + /** + * 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'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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; +} + +/** + * VirtualNetworkGatewaySku details + */ +export interface VirtualNetworkGatewaySku { + /** + * Gateway SKU name. Possible values include: 'Basic', 'HighPerformance', 'Standard', + * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', + * 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' + */ + name?: VirtualNetworkGatewaySkuName; + /** + * Gateway SKU tier. Possible values include: 'Basic', 'HighPerformance', 'Standard', + * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', + * 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' + */ + tier?: VirtualNetworkGatewaySkuTier; + /** + * The capacity. + */ + capacity?: number; +} + +/** + * 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[]; +} + +/** + * VPN client root certificate of virtual network gateway + */ +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'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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; +} + +/** + * VPN client revoked certificate of virtual network gateway. + */ +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'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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; +} + +/** + * An IPSec Policy configuration for a virtual network gateway connection + */ +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: IpsecEncryption; + /** + * The IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', + * 'GCMAES128', 'GCMAES192', 'GCMAES256' + */ + ipsecIntegrity: IpsecIntegrity; + /** + * The IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', + * 'AES192', 'AES256', 'GCMAES256', 'GCMAES128' + */ + ikeEncryption: IkeEncryption; + /** + * The IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', + * 'SHA384', 'GCMAES256', 'GCMAES128' + */ + ikeIntegrity: IkeIntegrity; + /** + * The DH Groups used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', + * 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' + */ + dhGroup: DhGroup; + /** + * 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: PfsGroup; +} + +/** + * VpnClientConfiguration for P2S client. + */ +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?: VpnClientProtocol[]; + /** + * 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; +} + +/** + * BGP settings details + */ +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; +} + +/** + * BGP peer status details + */ +export interface BgpPeerStatus { + /** + * The virtual network gateway's local address + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly localAddress?: string; + /** + * The remote BGP peer + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly neighbor?: string; + /** + * The autonomous system number of the remote BGP peer + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly asn?: number; + /** + * The BGP peer state. Possible values include: 'Unknown', 'Stopped', 'Idle', 'Connecting', + * 'Connected' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: BgpPeerState; + /** + * For how long the peering has been up + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly connectedDuration?: string; + /** + * The number of routes learned from this peer + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly routesReceived?: number; + /** + * The number of BGP messages sent + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly messagesSent?: number; + /** + * The number of BGP messages received + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly messagesReceived?: number; +} + +/** + * Gateway routing details + */ +export interface GatewayRoute { + /** + * The gateway's local address + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly localAddress?: string; + /** + * The route's network prefix + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly network?: string; + /** + * The route's next hop + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextHop?: string; + /** + * The peer this route was learned from + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sourcePeer?: string; + /** + * The source this route was learned from + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly origin?: string; + /** + * The route's AS path sequence + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly asPath?: string; + /** + * The route's weight + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly weight?: number; +} + +/** + * Common resource representation. + */ +export interface Resource extends BaseResource { + /** + * Resource ID. + */ + id?: string; + /** + * Resource name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Resource location. + */ + location?: string; + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * A common class for general resource information + */ +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?: VirtualNetworkGatewayType; + /** + * The type of this virtual network gateway. Possible values are: 'PolicyBased' and 'RouteBased'. + * Possible values include: 'PolicyBased', 'RouteBased' + */ + vpnType?: VpnType; + /** + * 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'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ + etag?: string; +} + +/** + * Vpn Client Parameters for package generation + */ +export interface VpnClientParameters { + /** + * VPN client Processor Architecture. Possible values are: 'AMD64' and 'X86'. Possible values + * include: 'Amd64', 'X86' + */ + processorArchitecture?: ProcessorArchitecture; + /** + * VPN client Authentication Method. Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible + * values include: 'EAPTLS', 'EAPMSCHAPv2' + */ + authenticationMethod?: AuthenticationMethod; + /** + * 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[]; +} + +/** + * Response for list BGP peer status API service call + */ +export interface BgpPeerStatusListResult { + /** + * List of BGP peers + */ + value?: BgpPeerStatus[]; +} + +/** + * List of virtual network gateway routes + */ +export interface GatewayRouteListResult { + /** + * List of gateway routes + */ + value?: GatewayRoute[]; +} + +/** + * VirtualNetworkGatewayConnection properties + */ +export interface TunnelConnectionHealth { + /** + * Tunnel name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tunnel?: string; + /** + * Virtual network Gateway connection status. Possible values include: 'Unknown', 'Connecting', + * 'Connected', 'NotConnected' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly connectionStatus?: VirtualNetworkGatewayConnectionStatus; + /** + * The Ingress Bytes Transferred in this connection + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ingressBytesTransferred?: number; + /** + * The Egress Bytes Transferred in this connection + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly egressBytesTransferred?: number; + /** + * The time at which connection was established in Utc format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastConnectionEstablishedUtcTime?: string; +} + +/** + * A common class for general resource information + */ +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'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ + etag?: string; +} + +/** + * A common class for general resource information + */ +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: VirtualNetworkGatewayConnectionType; + /** + * Connection protocol used for this connection. Possible values include: 'IKEv2', 'IKEv1' + */ + connectionProtocol?: VirtualNetworkGatewayConnectionProtocol; + /** + * 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' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly connectionStatus?: VirtualNetworkGatewayConnectionStatus; + /** + * Collection of all tunnels' connection health status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tunnelConnectionStatus?: TunnelConnectionHealth[]; + /** + * The egress bytes transferred in this connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly egressBytesTransferred?: number; + /** + * The ingress bytes transferred in this connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * Bypass ExpressRoute Gateway for data forwarding + */ + expressRouteGatewayBypass?: boolean; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ + etag?: string; +} + +/** + * The virtual network connection reset shared key + */ +export interface ConnectionResetSharedKey { + /** + * The virtual network connection reset shared key length, should between 1 and 128. + */ + keyLength: number; +} + +/** + * Response for GetConnectionSharedKey API service call + */ +export interface ConnectionSharedKey extends SubResource { + /** + * The virtual network connection shared key value. + */ + value: string; +} + +/** + * An IPSec parameters for a virtual network gateway P2S connection. + */ +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: IpsecEncryption; + /** + * The IPSec integrity algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', + * 'GCMAES128', 'GCMAES192', 'GCMAES256' + */ + ipsecIntegrity: IpsecIntegrity; + /** + * The IKE encryption algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', + * 'AES192', 'AES256', 'GCMAES256', 'GCMAES128' + */ + ikeEncryption: IkeEncryption; + /** + * The IKE integrity algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', + * 'SHA384', 'GCMAES256', 'GCMAES128' + */ + ikeIntegrity: IkeIntegrity; + /** + * The DH Groups used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', + * 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' + */ + dhGroup: DhGroup; + /** + * 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: PfsGroup; +} + +/** + * A reference to VirtualNetworkGateway or LocalNetworkGateway resource. + */ +export interface VirtualNetworkConnectionGatewayReference { + /** + * The ID of VirtualNetworkGateway or LocalNetworkGateway resource. + */ + id: string; +} + +/** + * A common class for general resource information + */ +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: VirtualNetworkGatewayConnectionType; + /** + * Connection protocol used for this connection. Possible values include: 'IKEv2', 'IKEv1' + */ + connectionProtocol?: VirtualNetworkGatewayConnectionProtocol; + /** + * 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' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly connectionStatus?: VirtualNetworkGatewayConnectionStatus; + /** + * Collection of all tunnels' connection health status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tunnelConnectionStatus?: TunnelConnectionHealth[]; + /** + * The egress bytes transferred in this connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly egressBytesTransferred?: number; + /** + * The ingress bytes transferred in this connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * Bypass ExpressRoute Gateway for data forwarding + */ + expressRouteGatewayBypass?: boolean; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ + etag?: string; +} + +/** + * Vpn device configuration script generation parameters + */ +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; +} + +/** + * Tags object for patch operations. + */ +export interface TagsObject { + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * SKU of a load balancer + */ +export interface LoadBalancerSku { + /** + * Name of a load balancer SKU. Possible values include: 'Basic', 'Standard' + */ + name?: LoadBalancerSkuName; +} + +/** + * An application security group in a resource group. + */ +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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceGuid?: string; + /** + * The provisioning state of the application security group resource. Possible values are: + * 'Succeeded', 'Updating', 'Deleting', and 'Failed'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; +} + +/** + * Network security rule. + */ +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: SecurityRuleProtocol; + /** + * The source port or range. Integer or range between 0 and 65535. Asterisks '*' can also be used + * to match all ports. + */ + sourcePortRange?: string; + /** + * The destination port or range. Integer or range between 0 and 65535. Asterisks '*' can also be + * used to match all ports. + */ + destinationPortRange?: string; + /** + * The CIDR or source IP range. Asterisks '*' 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. Asterisks '*' 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: SecurityRuleAccess; + /** + * 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 + * outgoing traffic. Possible values are: 'Inbound' and 'Outbound'. Possible values include: + * 'Inbound', 'Outbound' + */ + direction: SecurityRuleDirection; + /** + * 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; +} + +/** + * Identifies the service being brought into the virtual network. + */ +export interface EndpointService { + /** + * A unique identifier of the service being referenced by the interface endpoint. + */ + id?: string; +} + +/** + * Interface endpoint resource. + */ +export interface InterfaceEndpoint extends Resource { + /** + * A first-party service's FQDN that is mapped to the private IP allocated via this interface + * endpoint. + */ + fqdn?: string; + /** + * A reference to the service being brought into the virtual network. + */ + endpointService?: EndpointService; + /** + * The ID of the subnet from which the private IP will be allocated. + */ + subnet?: Subnet; + /** + * Gets an array of references to the network interfaces created for this interface endpoint. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly networkInterfaces?: NetworkInterface[]; + /** + * A read-only property that identifies who created this interface endpoint. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly owner?: string; + /** + * The provisioning state of the interface endpoint. Possible values are: 'Updating', 'Deleting', + * and 'Failed'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ + etag?: string; +} + +/** + * Tap configuration in a Network Interface + */ +export interface NetworkInterfaceTapConfiguration extends SubResource { + /** + * The reference of the Virtual Network Tap resource. + */ + virtualNetworkTap?: VirtualNetworkTap; + /** + * The provisioning state of the network interface tap configuration. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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; + /** + * Sub Resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * Frontend IP address of the load balancer. + */ +export interface FrontendIPConfiguration extends SubResource { + /** + * Read only. Inbound rules URIs that use this frontend IP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly inboundNatRules?: SubResource[]; + /** + * Read only. Inbound pools URIs that use this frontend IP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly inboundNatPools?: SubResource[]; + /** + * Read only. Outbound rules URIs that use this frontend IP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly outboundRules?: SubResource[]; + /** + * Gets load balancing rules URIs that use this frontend IP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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?: IPAllocationMethod; + /** + * The reference of the subnet resource. + */ + subnet?: Subnet; + /** + * The reference of the Public IP resource. + */ + publicIPAddress?: PublicIPAddress; + /** + * The reference of the Public IP Prefix resource. + */ + publicIPPrefix?: SubResource; + /** + * 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[]; +} + +/** + * Virtual Network Tap resource + */ +export interface VirtualNetworkTap extends Resource { + /** + * Specifies the list of resource IDs for the network interface IP configuration that needs to be + * tapped. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly networkInterfaceTapConfigurations?: NetworkInterfaceTapConfiguration[]; + /** + * The resourceGuid property of the virtual network tap. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceGuid?: string; + /** + * The provisioning state of the virtual network tap. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The reference to the private IP Address of the collector nic that will receive the tap + */ + destinationNetworkInterfaceIPConfiguration?: NetworkInterfaceIPConfiguration; + /** + * The reference to the private IP address on the internal Load Balancer that will receive the + * tap + */ + destinationLoadBalancerFrontEndIPConfiguration?: FrontendIPConfiguration; + /** + * The VXLAN destination port that will receive the tapped traffic. + */ + destinationPort?: number; + /** + * Gets a unique read-only string that changes whenever the resource is updated. + */ + etag?: string; +} + +/** + * Backend address of an application gateway. + */ +export interface ApplicationGatewayBackendAddress { + /** + * Fully qualified domain name (FQDN). + */ + fqdn?: string; + /** + * IP address + */ + ipAddress?: string; +} + +/** + * Backend Address Pool of an application gateway. + */ +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; +} + +/** + * Pool of backend IP addresses. + */ +export interface BackendAddressPool extends SubResource { + /** + * Gets collection of references to IP addresses defined in network interfaces. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly backendIPConfigurations?: NetworkInterfaceIPConfiguration[]; + /** + * Gets load balancing rules that use this backend address pool. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly loadBalancingRules?: SubResource[]; + /** + * Gets outbound rules that use this backend address pool. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly outboundRule?: SubResource; + /** + * Gets outbound rules that use this backend address pool. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly outboundRules?: 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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly backendIPConfiguration?: NetworkInterfaceIPConfiguration; + /** + * Possible values include: 'Udp', 'Tcp', 'All' + */ + protocol?: TransportProtocol; + /** + * 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; + /** + * 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. + */ + enableTcpReset?: 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; +} + +/** + * SKU of a public IP address + */ +export interface PublicIPAddressSku { + /** + * Name of a public IP address SKU. Possible values include: 'Basic', 'Standard' + */ + name?: PublicIPAddressSkuName; +} + +/** + * IP configuration + */ +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?: IPAllocationMethod; + /** + * 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; +} + +/** + * Contains FQDN of the DNS record associated with the public IP address + */ +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; +} + +/** + * Contains the DDoS protection settings of the public IP. + */ +export interface DdosSettings { + /** + * The DDoS custom policy associated with the public IP. + */ + ddosCustomPolicy?: SubResource; + /** + * The DDoS protection policy customizability of the public IP. Only standard coverage will have + * the ability to be customized. Possible values include: 'Basic', 'Standard' + */ + protectionCoverage?: ProtectionCoverage; +} + +/** + * Contains the IpTag associated with the object + */ +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; +} + +/** + * Public IP address resource. + */ +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?: IPAllocationMethod; + /** + * The public IP address version. Possible values are: 'IPv4' and 'IPv6'. Possible values + * include: 'IPv4', 'IPv6' + */ + publicIPAddressVersion?: IPVersion; + /** + * The IP configuration associated with the public IP address. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ipConfiguration?: IPConfiguration; + /** + * The FQDN of the DNS record associated with the public IP address. + */ + dnsSettings?: PublicIPAddressDnsSettings; + /** + * The DDoS protection custom policy associated with the public IP address. + */ + ddosSettings?: DdosSettings; + /** + * The list of tags associated with the public IP address. + */ + ipTags?: IpTag[]; + /** + * The IP address associated with the public IP address resource. + */ + ipAddress?: string; + /** + * The Public IP Prefix this Public IP Address should be allocated from. + */ + 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[]; +} + +/** + * IPConfiguration in a network interface. + */ +export interface NetworkInterfaceIPConfiguration extends SubResource { + /** + * The reference to Virtual Network Taps. + */ + virtualNetworkTaps?: VirtualNetworkTap[]; + /** + * 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?: IPAllocationMethod; + /** + * 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?: IPVersion; + /** + * 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; + /** + * 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; +} + +/** + * DNS settings of a network interface. + */ +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; +} + +/** + * A network interface in a resource group. + */ +export interface NetworkInterface extends Resource { + /** + * The reference of a virtual machine. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly virtualMachine?: SubResource; + /** + * The reference of the NetworkSecurityGroup resource. + */ + networkSecurityGroup?: NetworkSecurityGroup; + /** + * A reference to the interface endpoint to which the network interface is linked. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly interfaceEndpoint?: InterfaceEndpoint; + /** + * A list of IPConfigurations of the network interface. + */ + ipConfigurations?: NetworkInterfaceIPConfiguration[]; + /** + * A list of TapConfigurations of the network interface. + */ + 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; + /** + * A list of references to linked BareMetal resources + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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; +} + +/** + * NetworkSecurityGroup resource. + */ +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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly networkInterfaces?: NetworkInterface[]; + /** + * A collection of references to subnets. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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; +} + +/** + * Route resource + */ +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: RouteNextHopType; + /** + * 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; +} + +/** + * Route table resource. + */ +export interface RouteTable extends Resource { + /** + * Collection of routes contained within a route table. + */ + routes?: Route[]; + /** + * A collection of references to subnets. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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; +} + +/** + * The service endpoint properties. + */ +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; +} + +/** + * Service Endpoint policy definitions. + */ +export interface ServiceEndpointPolicyDefinition extends SubResource { + /** + * A description for this rule. Restricted to 140 chars. + */ + description?: string; + /** + * service endpoint name. + */ + service?: string; + /** + * A list of service resources. + */ + serviceResources?: string[]; + /** + * The provisioning state of the service end point policy definition. Possible values are: + * 'Updating', 'Deleting', and 'Failed'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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; +} + +/** + * Service End point policy resource. + */ +export interface ServiceEndpointPolicy extends Resource { + /** + * A collection of service endpoint policy definitions of the service endpoint policy. + */ + serviceEndpointPolicyDefinitions?: ServiceEndpointPolicyDefinition[]; + /** + * A collection of references to subnets. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subnets?: Subnet[]; + /** + * The resource GUID property of the service endpoint policy resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceGuid?: string; + /** + * The provisioning state of the service endpoint policy. Possible values are: 'Updating', + * 'Deleting', and 'Failed'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ + etag?: string; +} + +/** + * IP configuration profile child resource. + */ +export interface IPConfigurationProfile extends SubResource { + /** + * The reference of the subnet resource to create a container network interface ip configuration. + */ + subnet?: Subnet; + /** + * The provisioning state of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The name of the resource. This name can be used to access the resource. + */ + name?: string; + /** + * Sub Resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + */ + etag?: string; +} + +/** + * ResourceNavigationLink resource. + */ +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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; +} + +/** + * ServiceAssociationLink resource. + */ +export interface ServiceAssociationLink extends SubResource { + /** + * Resource type of the linked resource. + */ + linkedResourceType?: string; + /** + * Link to the external resource. + */ + link?: string; + /** + * Provisioning state of the ServiceAssociationLink resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; +} + +/** + * Details the service to which the subnet is delegated. + */ +export interface Delegation extends SubResource { + /** + * The name of the service to whom the subnet should be delegated (e.g. Microsoft.Sql/servers) + */ + serviceName?: string; + /** + * Describes the actions permitted to the service upon delegation + */ + actions?: string[]; + /** + * The provisioning state of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The name of the resource that is unique within a subnet. 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; +} + +/** + * Subnet in a virtual network resource. + */ +export interface Subnet extends SubResource { + /** + * The address prefix for the subnet. + */ + addressPrefix?: string; + /** + * List of address prefixes for the subnet. + */ + 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[]; + /** + * An array of service endpoint policies. + */ + serviceEndpointPolicies?: ServiceEndpointPolicy[]; + /** + * An array of references to interface endpoints + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly interfaceEndpoints?: InterfaceEndpoint[]; + /** + * Gets an array of references to the network interface IP configurations using subnet. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ipConfigurations?: IPConfiguration[]; + /** + * Array of IP configuration profiles which reference this subnet. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ipConfigurationProfiles?: IPConfigurationProfile[]; + /** + * Gets an array of references to the external resources using subnet. + */ + resourceNavigationLinks?: ResourceNavigationLink[]; + /** + * Gets an array of references to services injecting into this subnet. + */ + serviceAssociationLinks?: ServiceAssociationLink[]; + /** + * Gets an array of references to the delegations on the subnet. + */ + delegations?: Delegation[]; + /** + * A read-only string identifying the intention of use for this subnet based on delegations and + * other user-defined properties. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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; +} + +/** + * A load balancing rule for a load balancer. + */ +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: TransportProtocol; + /** + * The load distribution policy for this rule. Possible values are 'Default', 'SourceIP', and + * 'SourceIPProtocol'. Possible values include: 'Default', 'SourceIP', 'SourceIPProtocol' + */ + loadDistribution?: LoadDistribution; + /** + * 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; + /** + * 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. + */ + 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; +} + +/** + * A load balancer probe. + */ +export interface Probe extends SubResource { + /** + * The load balancer rules that use this probe. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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: ProbeProtocol; + /** + * 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; +} + +/** + * Inbound NAT pool of the load balancer. + */ +export interface InboundNatPool extends SubResource { + /** + * A reference to frontend IP addresses. + */ + frontendIPConfiguration?: SubResource; + /** + * Possible values include: 'Udp', 'Tcp', 'All' + */ + protocol: TransportProtocol; + /** + * 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; + /** + * 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. + */ + 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; +} + +/** + * Outbound rule of the load balancer. + */ +export interface OutboundRule extends SubResource { + /** + * The number of outbound ports to be used for NAT. + */ + allocatedOutboundPorts?: number; + /** + * 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 - TCP, UDP or All. Possible values include: 'Tcp', 'Udp', 'All' + */ + protocol: Protocol; + /** + * 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. + */ + enableTcpReset?: boolean; + /** + * The timeout for the TCP idle connection + */ + 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; +} + +/** + * LoadBalancer resource + */ +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[]; + /** + * The outbound rules. + */ + outboundRules?: OutboundRule[]; + /** + * 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; +} + +/** + * An interface representing ErrorDetails. + */ +export interface ErrorDetails { + code?: string; + target?: string; + message?: string; +} + +/** + * An interface representing ErrorModel. + */ +export interface ErrorModel { + code?: string; + message?: string; + target?: string; + details?: ErrorDetails[]; + innerError?: string; +} + +/** + * 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?: NetworkOperationStatus; + error?: ErrorModel; +} + +/** + * An interface representing ManagedServiceIdentityUserAssignedIdentitiesValue. + */ +export interface ManagedServiceIdentityUserAssignedIdentitiesValue { + /** + * The principal id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The client id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clientId?: string; +} + +/** + * Identity for the resource. + */ +export interface ManagedServiceIdentity { + /** + * The principal id of the system assigned identity. This property will only be provided for a + * system assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The tenant id of the system assigned identity. This property will only be provided for a + * system assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * 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' + */ + type?: ResourceIdentityType; + /** + * 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}'. + */ + userAssignedIdentities?: { [propertyName: string]: ManagedServiceIdentityUserAssignedIdentitiesValue }; +} + +/** + * The effective network security group association. + */ +export interface EffectiveNetworkSecurityGroupAssociation { + /** + * The ID of the subnet if assigned. + */ + subnet?: SubResource; + /** + * The ID of the network interface if assigned. + */ + networkInterface?: SubResource; +} + +/** + * Effective network security rules. + */ +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?: EffectiveSecurityRuleProtocol; + /** + * 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 separator (e.g. 100-400), or an asterisk (*) + */ + sourcePortRanges?: string[]; + /** + * The destination port ranges. Expected values include a single integer between 0 and 65535, a + * range using '-' as separator (e.g. 100-400), or an asterisk (*) + */ + 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, AzureLoadBalancer, Internet), System Tags, and the asterisk (*). + */ + sourceAddressPrefixes?: string[]; + /** + * The destination address prefixes. Expected values include CIDR IP ranges, Default Tags + * (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*). + */ + 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?: SecurityRuleAccess; + /** + * The priority of the rule. + */ + priority?: number; + /** + * The direction of the rule. Possible values are: 'Inbound and Outbound'. Possible values + * include: 'Inbound', 'Outbound' + */ + direction?: SecurityRuleDirection; +} + +/** + * Effective network security group. + */ +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[] }; +} + +/** + * Response for list effective network security groups API service call. + */ +export interface EffectiveNetworkSecurityGroupListResult { + /** + * A list of effective network security groups. + */ + value?: EffectiveNetworkSecurityGroup[]; + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Effective Route + */ +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?: EffectiveRouteSource; + /** + * The value of effective route. Possible values are: 'Active' and 'Invalid'. Possible values + * include: 'Active', 'Invalid' + */ + state?: EffectiveRouteState; + /** + * 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?: RouteNextHopType; +} + +/** + * Response for list effective route API service call. + */ +export interface EffectiveRouteListResult { + /** + * A list of effective routes. + */ + value?: EffectiveRoute[]; + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Display metadata associated with 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; +} + +/** + * Availability of the metric. + */ +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; +} + +/** + * Dimension of the metric. + */ +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; +} + +/** + * Description of metrics specification. + */ +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; +} + +/** + * Description of logging specification. + */ +export interface LogSpecification { + /** + * The name of the specification. + */ + name?: string; + /** + * The display name of the specification. + */ + displayName?: string; + /** + * Duration of the blob. + */ + blobDuration?: string; +} + +/** + * Specification of the service. + */ +export interface OperationPropertiesFormatServiceSpecification { + /** + * Operation service specification. + */ + metricSpecifications?: MetricSpecification[]; + /** + * Operation log specification. + */ + logSpecifications?: LogSpecification[]; +} + +/** + * Network REST API operation definition. + */ +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; +} + +/** + * Peerings in a virtual network resource. + */ +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?: VirtualNetworkPeeringState; + /** + * 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; +} + +/** + * 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[]; +} + +/** + * Virtual Network resource. + */ +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. Default value: + * false. + */ + enableDdosProtection?: boolean; + /** + * Indicates if VM protection is enabled for all the subnets in the virtual network. Default + * value: false. + */ + 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; +} + +/** + * Response for CheckIPAddressAvailability API service call + */ +export interface IPAddressAvailabilityResult { + /** + * Private IP address availability. + */ + available?: boolean; + /** + * Contains other available private IP addresses if the asked for address is taken. + */ + availableIPAddresses?: string[]; +} + +/** + * Usage strings container. + */ +export interface VirtualNetworkUsageName { + /** + * Localized subnet size and usage string. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly localizedValue?: string; + /** + * Subnet size and usage string. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: string; +} + +/** + * Usage details for subnet. + */ +export interface VirtualNetworkUsage { + /** + * Indicates number of IPs used from the Subnet. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly currentValue?: number; + /** + * Subnet identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Indicates the size of the subnet. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly limit?: number; + /** + * The name containing common and localized value for usage. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: VirtualNetworkUsageName; + /** + * Usage units. Returns 'Count' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly unit?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualNetworkGatewaysResetOptionalParams extends msRest.RequestOptionsBase { + /** + * Virtual network gateway vip address supplied to the begin reset of the active-active feature + * enabled gateway. + */ + gatewayVip?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualNetworkGatewaysGetBgpPeerStatusOptionalParams extends msRest.RequestOptionsBase { + /** + * The IP address of the peer to retrieve the status of. + */ + peer?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualNetworkGatewaysBeginResetOptionalParams extends msRest.RequestOptionsBase { + /** + * Virtual network gateway vip address supplied to the begin reset of the active-active feature + * enabled gateway. + */ + gatewayVip?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualNetworkGatewaysBeginGetBgpPeerStatusOptionalParams extends msRest.RequestOptionsBase { + /** + * The IP address of the peer to retrieve the status of. + */ + peer?: string; +} + +/** + * Optional Parameters. + */ +export interface LoadBalancersGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Expands referenced resources. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface InboundNatRulesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Expands referenced resources. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface NetworkInterfacesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Expands referenced resources. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface NetworkSecurityGroupsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Expands referenced resources. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface PublicIPAddressesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Expands referenced resources. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface RouteTablesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Expands referenced resources. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface VirtualNetworksGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Expands referenced resources. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface SubnetsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * Expands referenced resources. + */ + expand?: string; +} + +/** + * An interface representing NetworkManagementClientOptions. + */ +export interface NetworkManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * Response for the ListVirtualNetworkGateways API service call. + * @extends Array + */ +export interface VirtualNetworkGatewayListResult extends Array { + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for the VirtualNetworkGatewayListConnections API service call + * @extends Array + */ +export interface VirtualNetworkGatewayListConnectionsResult extends Array { + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for the ListVirtualNetworkGatewayConnections API service call + * @extends Array + */ +export interface VirtualNetworkGatewayConnectionListResult extends Array { + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for ListLocalNetworkGateways API service call. + * @extends Array + */ +export interface LocalNetworkGatewayListResult extends Array { + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for ListLoadBalancers API service call. + * @extends Array + */ +export interface LoadBalancerListResult extends Array { + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for ListBackendAddressPool API service call. + * @extends Array + */ +export interface LoadBalancerBackendAddressPoolListResult extends Array { + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for ListFrontendIPConfiguration API service call. + * @extends Array + */ +export interface LoadBalancerFrontendIPConfigurationListResult extends Array { + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for ListInboundNatRule API service call. + * @extends Array + */ +export interface InboundNatRuleListResult extends Array { + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for ListLoadBalancingRule API service call. + * @extends Array + */ +export interface LoadBalancerLoadBalancingRuleListResult extends Array { + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for ListOutboundRule API service call. + * @extends Array + */ +export interface LoadBalancerOutboundRuleListResult extends Array { + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for the ListNetworkInterface API service call. + * @extends Array + */ +export interface NetworkInterfaceListResult extends Array { + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for ListProbe API service call. + * @extends Array + */ +export interface LoadBalancerProbeListResult extends Array { + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for list ip configurations API service call. + * @extends Array + */ +export interface NetworkInterfaceIPConfigurationListResult extends Array { + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for list ip configurations API service call. + * @extends Array + */ +export interface NetworkInterfaceLoadBalancerListResult extends Array { + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for list tap configurations API service call. + * @extends Array + */ +export interface NetworkInterfaceTapConfigurationListResult extends Array { + /** + * The URL to get the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for ListNetworkSecurityGroups API service call. + * @extends Array + */ +export interface NetworkSecurityGroupListResult extends Array { + /** + * The URL to get the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * Response for ListSecurityRule API service call. Retrieves all security rules that belongs to a + * network security group. + * @extends Array + */ +export interface SecurityRuleListResult extends Array { + /** + * The URL to get the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * 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. + * @extends Array + */ +export interface OperationListResult extends Array { + /** + * URL to get the next set of operation list results if there are any. + */ + nextLink?: string; +} + +/** + * @interface + * Response for ListPublicIpAddresses API service call. + * @extends Array + */ +export interface PublicIPAddressListResult extends Array { + /** + * The URL to get the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * Response for the ListRouteTable API service call. + * @extends Array + */ +export interface RouteTableListResult extends Array { + /** + * The URL to get the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * Response for the ListRoute API service call + * @extends Array + */ +export interface RouteListResult extends Array { + /** + * The URL to get the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * Response for the ListVirtualNetworks API service call. + * @extends Array + */ +export interface VirtualNetworkListResult extends Array { + /** + * The URL to get the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * Response for the virtual networks GetUsage API service call. + * @extends Array + */ +export interface VirtualNetworkListUsageResult extends Array { + /** + * The URL to get the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * Response for ListSubnets API service callRetrieves all subnet that belongs to a virtual network + * @extends Array + */ +export interface SubnetListResult extends Array { + /** + * The URL to get the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * Response for ListSubnets API service call. Retrieves all subnets that belong to a virtual + * network. + * @extends Array + */ +export interface VirtualNetworkPeeringListResult extends Array { + /** + * The URL to get the next set of results. + */ + nextLink?: string; +} + +/** + * Defines values for IPAllocationMethod. + * Possible values include: 'Static', 'Dynamic' + * @readonly + * @enum {string} + */ +export type IPAllocationMethod = 'Static' | 'Dynamic'; + +/** + * Defines values for VirtualNetworkGatewayType. + * Possible values include: 'Vpn', 'ExpressRoute' + * @readonly + * @enum {string} + */ +export type VirtualNetworkGatewayType = 'Vpn' | 'ExpressRoute'; + +/** + * Defines values for VpnType. + * Possible values include: 'PolicyBased', 'RouteBased' + * @readonly + * @enum {string} + */ +export type VpnType = 'PolicyBased' | 'RouteBased'; + +/** + * Defines values for VirtualNetworkGatewaySkuName. + * Possible values include: 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', + * 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' + * @readonly + * @enum {string} + */ +export type VirtualNetworkGatewaySkuName = 'Basic' | 'HighPerformance' | 'Standard' | 'UltraPerformance' | 'VpnGw1' | 'VpnGw2' | 'VpnGw3' | 'VpnGw1AZ' | 'VpnGw2AZ' | 'VpnGw3AZ' | 'ErGw1AZ' | 'ErGw2AZ' | 'ErGw3AZ'; + +/** + * Defines values for VirtualNetworkGatewaySkuTier. + * Possible values include: 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', + * 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' + * @readonly + * @enum {string} + */ +export type VirtualNetworkGatewaySkuTier = 'Basic' | 'HighPerformance' | 'Standard' | 'UltraPerformance' | 'VpnGw1' | 'VpnGw2' | 'VpnGw3' | 'VpnGw1AZ' | 'VpnGw2AZ' | 'VpnGw3AZ' | 'ErGw1AZ' | 'ErGw2AZ' | 'ErGw3AZ'; + +/** + * Defines values for VpnClientProtocol. + * Possible values include: 'IkeV2', 'SSTP', 'OpenVPN' + * @readonly + * @enum {string} + */ +export type VpnClientProtocol = 'IkeV2' | 'SSTP' | 'OpenVPN'; + +/** + * Defines values for IpsecEncryption. + * Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES128', + * 'GCMAES192', 'GCMAES256' + * @readonly + * @enum {string} + */ +export type IpsecEncryption = 'None' | 'DES' | 'DES3' | 'AES128' | 'AES192' | 'AES256' | 'GCMAES128' | 'GCMAES192' | 'GCMAES256'; + +/** + * Defines values for IpsecIntegrity. + * Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', 'GCMAES192', 'GCMAES256' + * @readonly + * @enum {string} + */ +export type IpsecIntegrity = 'MD5' | 'SHA1' | 'SHA256' | 'GCMAES128' | 'GCMAES192' | 'GCMAES256'; + +/** + * Defines values for IkeEncryption. + * Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', 'GCMAES256', 'GCMAES128' + * @readonly + * @enum {string} + */ +export type IkeEncryption = 'DES' | 'DES3' | 'AES128' | 'AES192' | 'AES256' | 'GCMAES256' | 'GCMAES128'; + +/** + * Defines values for IkeIntegrity. + * Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', 'GCMAES128' + * @readonly + * @enum {string} + */ +export type IkeIntegrity = 'MD5' | 'SHA1' | 'SHA256' | 'SHA384' | 'GCMAES256' | 'GCMAES128'; + +/** + * Defines values for DhGroup. + * Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', + * 'ECP384', 'DHGroup24' + * @readonly + * @enum {string} + */ +export type DhGroup = 'None' | 'DHGroup1' | 'DHGroup2' | 'DHGroup14' | 'DHGroup2048' | 'ECP256' | 'ECP384' | 'DHGroup24'; + +/** + * Defines values for PfsGroup. + * Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', 'ECP384', 'PFS24', + * 'PFS14', 'PFSMM' + * @readonly + * @enum {string} + */ +export type PfsGroup = 'None' | 'PFS1' | 'PFS2' | 'PFS2048' | 'ECP256' | 'ECP384' | 'PFS24' | 'PFS14' | 'PFSMM'; + +/** + * Defines values for BgpPeerState. + * Possible values include: 'Unknown', 'Stopped', 'Idle', 'Connecting', 'Connected' + * @readonly + * @enum {string} + */ +export type BgpPeerState = 'Unknown' | 'Stopped' | 'Idle' | 'Connecting' | 'Connected'; + +/** + * Defines values for ProcessorArchitecture. + * Possible values include: 'Amd64', 'X86' + * @readonly + * @enum {string} + */ +export type ProcessorArchitecture = 'Amd64' | 'X86'; + +/** + * Defines values for AuthenticationMethod. + * Possible values include: 'EAPTLS', 'EAPMSCHAPv2' + * @readonly + * @enum {string} + */ +export type AuthenticationMethod = 'EAPTLS' | 'EAPMSCHAPv2'; + +/** + * Defines values for VirtualNetworkGatewayConnectionStatus. + * Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected' + * @readonly + * @enum {string} + */ +export type VirtualNetworkGatewayConnectionStatus = 'Unknown' | 'Connecting' | 'Connected' | 'NotConnected'; + +/** + * Defines values for VirtualNetworkGatewayConnectionType. + * Possible values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' + * @readonly + * @enum {string} + */ +export type VirtualNetworkGatewayConnectionType = 'IPsec' | 'Vnet2Vnet' | 'ExpressRoute' | 'VPNClient'; + +/** + * Defines values for VirtualNetworkGatewayConnectionProtocol. + * Possible values include: 'IKEv2', 'IKEv1' + * @readonly + * @enum {string} + */ +export type VirtualNetworkGatewayConnectionProtocol = 'IKEv2' | 'IKEv1'; + +/** + * Defines values for LoadBalancerSkuName. + * Possible values include: 'Basic', 'Standard' + * @readonly + * @enum {string} + */ +export type LoadBalancerSkuName = 'Basic' | 'Standard'; + +/** + * Defines values for SecurityRuleProtocol. + * Possible values include: 'Tcp', 'Udp', '*' + * @readonly + * @enum {string} + */ +export type SecurityRuleProtocol = 'Tcp' | 'Udp' | '*'; + +/** + * Defines values for SecurityRuleAccess. + * Possible values include: 'Allow', 'Deny' + * @readonly + * @enum {string} + */ +export type SecurityRuleAccess = 'Allow' | 'Deny'; + +/** + * Defines values for SecurityRuleDirection. + * Possible values include: 'Inbound', 'Outbound' + * @readonly + * @enum {string} + */ +export type SecurityRuleDirection = 'Inbound' | 'Outbound'; + +/** + * Defines values for TransportProtocol. + * Possible values include: 'Udp', 'Tcp', 'All' + * @readonly + * @enum {string} + */ +export type TransportProtocol = 'Udp' | 'Tcp' | 'All'; + +/** + * Defines values for IPVersion. + * Possible values include: 'IPv4', 'IPv6' + * @readonly + * @enum {string} + */ +export type IPVersion = 'IPv4' | 'IPv6'; + +/** + * Defines values for PublicIPAddressSkuName. + * Possible values include: 'Basic', 'Standard' + * @readonly + * @enum {string} + */ +export type PublicIPAddressSkuName = 'Basic' | 'Standard'; + +/** + * Defines values for RouteNextHopType. + * Possible values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', + * 'None' + * @readonly + * @enum {string} + */ +export type RouteNextHopType = 'VirtualNetworkGateway' | 'VnetLocal' | 'Internet' | 'VirtualAppliance' | 'None'; + +/** + * Defines values for LoadDistribution. + * Possible values include: 'Default', 'SourceIP', 'SourceIPProtocol' + * @readonly + * @enum {string} + */ +export type LoadDistribution = 'Default' | 'SourceIP' | 'SourceIPProtocol'; + +/** + * Defines values for ProbeProtocol. + * Possible values include: 'Http', 'Tcp', 'Https' + * @readonly + * @enum {string} + */ +export type ProbeProtocol = 'Http' | 'Tcp' | 'Https'; + +/** + * Defines values for NetworkOperationStatus. + * Possible values include: 'InProgress', 'Succeeded', 'Failed' + * @readonly + * @enum {string} + */ +export type NetworkOperationStatus = 'InProgress' | 'Succeeded' | 'Failed'; + +/** + * Defines values for ResourceIdentityType. + * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', + * 'None' + * @readonly + * @enum {string} + */ +export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None'; + +/** + * Defines values for EffectiveSecurityRuleProtocol. + * Possible values include: 'Tcp', 'Udp', 'All' + * @readonly + * @enum {string} + */ +export type EffectiveSecurityRuleProtocol = 'Tcp' | 'Udp' | 'All'; + +/** + * Defines values for EffectiveRouteSource. + * Possible values include: 'Unknown', 'User', 'VirtualNetworkGateway', 'Default' + * @readonly + * @enum {string} + */ +export type EffectiveRouteSource = 'Unknown' | 'User' | 'VirtualNetworkGateway' | 'Default'; + +/** + * Defines values for EffectiveRouteState. + * Possible values include: 'Active', 'Invalid' + * @readonly + * @enum {string} + */ +export type EffectiveRouteState = 'Active' | 'Invalid'; + +/** + * Defines values for VirtualNetworkPeeringState. + * Possible values include: 'Initiated', 'Connected', 'Disconnected' + * @readonly + * @enum {string} + */ +export type VirtualNetworkPeeringState = 'Initiated' | 'Connected' | 'Disconnected'; + +/** + * Defines values for ProtectionCoverage. + * Possible values include: 'Basic', 'Standard' + * @readonly + * @enum {string} + */ +export type ProtectionCoverage = 'Basic' | 'Standard'; + +/** + * Defines values for Protocol. + * Possible values include: 'Tcp', 'Udp', 'All' + * @readonly + * @enum {string} + */ +export type Protocol = 'Tcp' | 'Udp' | 'All'; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type VirtualNetworkGatewaysCreateOrUpdateResponse = VirtualNetworkGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGateway; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type VirtualNetworkGatewaysGetResponse = VirtualNetworkGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGateway; + }; +}; + +/** + * Contains response data for the updateTags operation. + */ +export type VirtualNetworkGatewaysUpdateTagsResponse = VirtualNetworkGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGateway; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type VirtualNetworkGatewaysListResponse = VirtualNetworkGatewayListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGatewayListResult; + }; +}; + +/** + * Contains response data for the listConnections operation. + */ +export type VirtualNetworkGatewaysListConnectionsResponse = VirtualNetworkGatewayListConnectionsResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGatewayListConnectionsResult; + }; +}; + +/** + * Contains response data for the reset operation. + */ +export type VirtualNetworkGatewaysResetResponse = VirtualNetworkGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGateway; + }; +}; + +/** + * Contains response data for the generatevpnclientpackage operation. + */ +export type VirtualNetworkGatewaysGeneratevpnclientpackageResponse = { + /** + * The parsed response body. + */ + body: string; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; +}; + +/** + * Contains response data for the generateVpnProfile operation. + */ +export type VirtualNetworkGatewaysGenerateVpnProfileResponse = { + /** + * The parsed response body. + */ + body: string; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; +}; + +/** + * Contains response data for the getVpnProfilePackageUrl operation. + */ +export type VirtualNetworkGatewaysGetVpnProfilePackageUrlResponse = { + /** + * The parsed response body. + */ + body: string; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; +}; + +/** + * Contains response data for the getBgpPeerStatus operation. + */ +export type VirtualNetworkGatewaysGetBgpPeerStatusResponse = BgpPeerStatusListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BgpPeerStatusListResult; + }; +}; + +/** + * Contains response data for the supportedVpnDevices operation. + */ +export type VirtualNetworkGatewaysSupportedVpnDevicesResponse = { + /** + * The parsed response body. + */ + body: string; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; +}; + +/** + * Contains response data for the getLearnedRoutes operation. + */ +export type VirtualNetworkGatewaysGetLearnedRoutesResponse = GatewayRouteListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: GatewayRouteListResult; + }; +}; + +/** + * Contains response data for the getAdvertisedRoutes operation. + */ +export type VirtualNetworkGatewaysGetAdvertisedRoutesResponse = GatewayRouteListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: GatewayRouteListResult; + }; +}; + +/** + * Contains response data for the setVpnclientIpsecParameters operation. + */ +export type VirtualNetworkGatewaysSetVpnclientIpsecParametersResponse = VpnClientIPsecParameters & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VpnClientIPsecParameters; + }; +}; + +/** + * Contains response data for the getVpnclientIpsecParameters operation. + */ +export type VirtualNetworkGatewaysGetVpnclientIpsecParametersResponse = VpnClientIPsecParameters & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VpnClientIPsecParameters; + }; +}; + +/** + * Contains response data for the vpnDeviceConfigurationScript operation. + */ +export type VirtualNetworkGatewaysVpnDeviceConfigurationScriptResponse = { + /** + * The parsed response body. + */ + body: string; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type VirtualNetworkGatewaysBeginCreateOrUpdateResponse = VirtualNetworkGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGateway; + }; +}; + +/** + * Contains response data for the beginUpdateTags operation. + */ +export type VirtualNetworkGatewaysBeginUpdateTagsResponse = VirtualNetworkGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGateway; + }; +}; + +/** + * Contains response data for the beginReset operation. + */ +export type VirtualNetworkGatewaysBeginResetResponse = VirtualNetworkGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGateway; + }; +}; + +/** + * Contains response data for the beginGeneratevpnclientpackage operation. + */ +export type VirtualNetworkGatewaysBeginGeneratevpnclientpackageResponse = { + /** + * The parsed response body. + */ + body: string; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; +}; + +/** + * Contains response data for the beginGenerateVpnProfile operation. + */ +export type VirtualNetworkGatewaysBeginGenerateVpnProfileResponse = { + /** + * The parsed response body. + */ + body: string; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; +}; + +/** + * Contains response data for the beginGetVpnProfilePackageUrl operation. + */ +export type VirtualNetworkGatewaysBeginGetVpnProfilePackageUrlResponse = { + /** + * The parsed response body. + */ + body: string; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: string; + }; +}; + +/** + * Contains response data for the beginGetBgpPeerStatus operation. + */ +export type VirtualNetworkGatewaysBeginGetBgpPeerStatusResponse = BgpPeerStatusListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BgpPeerStatusListResult; + }; +}; + +/** + * Contains response data for the beginGetLearnedRoutes operation. + */ +export type VirtualNetworkGatewaysBeginGetLearnedRoutesResponse = GatewayRouteListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: GatewayRouteListResult; + }; +}; + +/** + * Contains response data for the beginGetAdvertisedRoutes operation. + */ +export type VirtualNetworkGatewaysBeginGetAdvertisedRoutesResponse = GatewayRouteListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: GatewayRouteListResult; + }; +}; + +/** + * Contains response data for the beginSetVpnclientIpsecParameters operation. + */ +export type VirtualNetworkGatewaysBeginSetVpnclientIpsecParametersResponse = VpnClientIPsecParameters & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VpnClientIPsecParameters; + }; +}; + +/** + * Contains response data for the beginGetVpnclientIpsecParameters operation. + */ +export type VirtualNetworkGatewaysBeginGetVpnclientIpsecParametersResponse = VpnClientIPsecParameters & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VpnClientIPsecParameters; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type VirtualNetworkGatewaysListNextResponse = VirtualNetworkGatewayListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGatewayListResult; + }; +}; + +/** + * Contains response data for the listConnectionsNext operation. + */ +export type VirtualNetworkGatewaysListConnectionsNextResponse = VirtualNetworkGatewayListConnectionsResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGatewayListConnectionsResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type VirtualNetworkGatewayConnectionsCreateOrUpdateResponse = VirtualNetworkGatewayConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGatewayConnection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type VirtualNetworkGatewayConnectionsGetResponse = VirtualNetworkGatewayConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGatewayConnection; + }; +}; + +/** + * Contains response data for the updateTags operation. + */ +export type VirtualNetworkGatewayConnectionsUpdateTagsResponse = VirtualNetworkGatewayConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGatewayConnection; + }; +}; + +/** + * Contains response data for the setSharedKey operation. + */ +export type VirtualNetworkGatewayConnectionsSetSharedKeyResponse = ConnectionSharedKey & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectionSharedKey; + }; +}; + +/** + * Contains response data for the getSharedKey operation. + */ +export type VirtualNetworkGatewayConnectionsGetSharedKeyResponse = ConnectionSharedKey & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectionSharedKey; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type VirtualNetworkGatewayConnectionsListResponse = VirtualNetworkGatewayConnectionListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGatewayConnectionListResult; + }; +}; + +/** + * Contains response data for the resetSharedKey operation. + */ +export type VirtualNetworkGatewayConnectionsResetSharedKeyResponse = ConnectionResetSharedKey & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectionResetSharedKey; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type VirtualNetworkGatewayConnectionsBeginCreateOrUpdateResponse = VirtualNetworkGatewayConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGatewayConnection; + }; +}; + +/** + * Contains response data for the beginUpdateTags operation. + */ +export type VirtualNetworkGatewayConnectionsBeginUpdateTagsResponse = VirtualNetworkGatewayConnection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGatewayConnection; + }; +}; + +/** + * Contains response data for the beginSetSharedKey operation. + */ +export type VirtualNetworkGatewayConnectionsBeginSetSharedKeyResponse = ConnectionSharedKey & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectionSharedKey; + }; +}; + +/** + * Contains response data for the beginResetSharedKey operation. + */ +export type VirtualNetworkGatewayConnectionsBeginResetSharedKeyResponse = ConnectionResetSharedKey & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectionResetSharedKey; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type VirtualNetworkGatewayConnectionsListNextResponse = VirtualNetworkGatewayConnectionListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkGatewayConnectionListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type LocalNetworkGatewaysCreateOrUpdateResponse = LocalNetworkGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LocalNetworkGateway; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type LocalNetworkGatewaysGetResponse = LocalNetworkGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LocalNetworkGateway; + }; +}; + +/** + * Contains response data for the updateTags operation. + */ +export type LocalNetworkGatewaysUpdateTagsResponse = LocalNetworkGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LocalNetworkGateway; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type LocalNetworkGatewaysListResponse = LocalNetworkGatewayListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LocalNetworkGatewayListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type LocalNetworkGatewaysBeginCreateOrUpdateResponse = LocalNetworkGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LocalNetworkGateway; + }; +}; + +/** + * Contains response data for the beginUpdateTags operation. + */ +export type LocalNetworkGatewaysBeginUpdateTagsResponse = LocalNetworkGateway & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LocalNetworkGateway; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type LocalNetworkGatewaysListNextResponse = LocalNetworkGatewayListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LocalNetworkGatewayListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type LoadBalancersGetResponse = LoadBalancer & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancer; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type LoadBalancersCreateOrUpdateResponse = LoadBalancer & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancer; + }; +}; + +/** + * Contains response data for the updateTags operation. + */ +export type LoadBalancersUpdateTagsResponse = LoadBalancer & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancer; + }; +}; + +/** + * Contains response data for the listAll operation. + */ +export type LoadBalancersListAllResponse = LoadBalancerListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancerListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type LoadBalancersListResponse = LoadBalancerListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancerListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type LoadBalancersBeginCreateOrUpdateResponse = LoadBalancer & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancer; + }; +}; + +/** + * Contains response data for the beginUpdateTags operation. + */ +export type LoadBalancersBeginUpdateTagsResponse = LoadBalancer & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancer; + }; +}; + +/** + * Contains response data for the listAllNext operation. + */ +export type LoadBalancersListAllNextResponse = LoadBalancerListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancerListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type LoadBalancersListNextResponse = LoadBalancerListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancerListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type LoadBalancerBackendAddressPoolsListResponse = LoadBalancerBackendAddressPoolListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancerBackendAddressPoolListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type LoadBalancerBackendAddressPoolsGetResponse = BackendAddressPool & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackendAddressPool; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type LoadBalancerBackendAddressPoolsListNextResponse = LoadBalancerBackendAddressPoolListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancerBackendAddressPoolListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type LoadBalancerFrontendIPConfigurationsListResponse = LoadBalancerFrontendIPConfigurationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancerFrontendIPConfigurationListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type LoadBalancerFrontendIPConfigurationsGetResponse = FrontendIPConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FrontendIPConfiguration; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type LoadBalancerFrontendIPConfigurationsListNextResponse = LoadBalancerFrontendIPConfigurationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancerFrontendIPConfigurationListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type InboundNatRulesListResponse = InboundNatRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: InboundNatRuleListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type InboundNatRulesGetResponse = InboundNatRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: InboundNatRule; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type InboundNatRulesCreateOrUpdateResponse = InboundNatRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: InboundNatRule; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type InboundNatRulesBeginCreateOrUpdateResponse = InboundNatRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: InboundNatRule; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type InboundNatRulesListNextResponse = InboundNatRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: InboundNatRuleListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type LoadBalancerLoadBalancingRulesListResponse = LoadBalancerLoadBalancingRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancerLoadBalancingRuleListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type LoadBalancerLoadBalancingRulesGetResponse = LoadBalancingRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancingRule; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type LoadBalancerLoadBalancingRulesListNextResponse = LoadBalancerLoadBalancingRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancerLoadBalancingRuleListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type LoadBalancerOutboundRulesListResponse = LoadBalancerOutboundRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancerOutboundRuleListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type LoadBalancerOutboundRulesGetResponse = OutboundRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OutboundRule; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type LoadBalancerOutboundRulesListNextResponse = LoadBalancerOutboundRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancerOutboundRuleListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type LoadBalancerNetworkInterfacesListResponse = NetworkInterfaceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type LoadBalancerNetworkInterfacesListNextResponse = NetworkInterfaceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type LoadBalancerProbesListResponse = LoadBalancerProbeListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancerProbeListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type LoadBalancerProbesGetResponse = Probe & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Probe; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type LoadBalancerProbesListNextResponse = LoadBalancerProbeListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoadBalancerProbeListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type NetworkInterfacesGetResponse = NetworkInterface & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterface; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type NetworkInterfacesCreateOrUpdateResponse = NetworkInterface & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterface; + }; +}; + +/** + * Contains response data for the updateTags operation. + */ +export type NetworkInterfacesUpdateTagsResponse = NetworkInterface & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterface; + }; +}; + +/** + * Contains response data for the listAll operation. + */ +export type NetworkInterfacesListAllResponse = NetworkInterfaceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type NetworkInterfacesListResponse = NetworkInterfaceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceListResult; + }; +}; + +/** + * Contains response data for the getEffectiveRouteTable operation. + */ +export type NetworkInterfacesGetEffectiveRouteTableResponse = EffectiveRouteListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EffectiveRouteListResult; + }; +}; + +/** + * Contains response data for the listEffectiveNetworkSecurityGroups operation. + */ +export type NetworkInterfacesListEffectiveNetworkSecurityGroupsResponse = EffectiveNetworkSecurityGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EffectiveNetworkSecurityGroupListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type NetworkInterfacesBeginCreateOrUpdateResponse = NetworkInterface & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterface; + }; +}; + +/** + * Contains response data for the beginUpdateTags operation. + */ +export type NetworkInterfacesBeginUpdateTagsResponse = NetworkInterface & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterface; + }; +}; + +/** + * Contains response data for the beginGetEffectiveRouteTable operation. + */ +export type NetworkInterfacesBeginGetEffectiveRouteTableResponse = EffectiveRouteListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EffectiveRouteListResult; + }; +}; + +/** + * Contains response data for the beginListEffectiveNetworkSecurityGroups operation. + */ +export type NetworkInterfacesBeginListEffectiveNetworkSecurityGroupsResponse = EffectiveNetworkSecurityGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EffectiveNetworkSecurityGroupListResult; + }; +}; + +/** + * Contains response data for the listAllNext operation. + */ +export type NetworkInterfacesListAllNextResponse = NetworkInterfaceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type NetworkInterfacesListNextResponse = NetworkInterfaceListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type NetworkInterfaceIPConfigurationsListResponse = NetworkInterfaceIPConfigurationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceIPConfigurationListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type NetworkInterfaceIPConfigurationsGetResponse = NetworkInterfaceIPConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceIPConfiguration; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type NetworkInterfaceIPConfigurationsListNextResponse = NetworkInterfaceIPConfigurationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceIPConfigurationListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type NetworkInterfaceLoadBalancersListResponse = NetworkInterfaceLoadBalancerListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceLoadBalancerListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type NetworkInterfaceLoadBalancersListNextResponse = NetworkInterfaceLoadBalancerListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceLoadBalancerListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type NetworkInterfaceTapConfigurationsGetResponse = NetworkInterfaceTapConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceTapConfiguration; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type NetworkInterfaceTapConfigurationsCreateOrUpdateResponse = NetworkInterfaceTapConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceTapConfiguration; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type NetworkInterfaceTapConfigurationsListResponse = NetworkInterfaceTapConfigurationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceTapConfigurationListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type NetworkInterfaceTapConfigurationsBeginCreateOrUpdateResponse = NetworkInterfaceTapConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceTapConfiguration; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type NetworkInterfaceTapConfigurationsListNextResponse = NetworkInterfaceTapConfigurationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkInterfaceTapConfigurationListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type NetworkSecurityGroupsGetResponse = NetworkSecurityGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkSecurityGroup; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type NetworkSecurityGroupsCreateOrUpdateResponse = NetworkSecurityGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkSecurityGroup; + }; +}; + +/** + * Contains response data for the updateTags operation. + */ +export type NetworkSecurityGroupsUpdateTagsResponse = NetworkSecurityGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkSecurityGroup; + }; +}; + +/** + * Contains response data for the listAll operation. + */ +export type NetworkSecurityGroupsListAllResponse = NetworkSecurityGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkSecurityGroupListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type NetworkSecurityGroupsListResponse = NetworkSecurityGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkSecurityGroupListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type NetworkSecurityGroupsBeginCreateOrUpdateResponse = NetworkSecurityGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkSecurityGroup; + }; +}; + +/** + * Contains response data for the beginUpdateTags operation. + */ +export type NetworkSecurityGroupsBeginUpdateTagsResponse = NetworkSecurityGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkSecurityGroup; + }; +}; + +/** + * Contains response data for the listAllNext operation. + */ +export type NetworkSecurityGroupsListAllNextResponse = NetworkSecurityGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkSecurityGroupListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type NetworkSecurityGroupsListNextResponse = NetworkSecurityGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkSecurityGroupListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SecurityRulesGetResponse = SecurityRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityRule; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type SecurityRulesCreateOrUpdateResponse = SecurityRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityRule; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type SecurityRulesListResponse = SecurityRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityRuleListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type SecurityRulesBeginCreateOrUpdateResponse = SecurityRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityRule; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type SecurityRulesListNextResponse = SecurityRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityRuleListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DefaultSecurityRulesListResponse = SecurityRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityRuleListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DefaultSecurityRulesGetResponse = SecurityRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityRule; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type DefaultSecurityRulesListNextResponse = SecurityRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityRuleListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = OperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PublicIPAddressesGetResponse = PublicIPAddress & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicIPAddress; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type PublicIPAddressesCreateOrUpdateResponse = PublicIPAddress & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicIPAddress; + }; +}; + +/** + * Contains response data for the updateTags operation. + */ +export type PublicIPAddressesUpdateTagsResponse = PublicIPAddress & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicIPAddress; + }; +}; + +/** + * Contains response data for the listAll operation. + */ +export type PublicIPAddressesListAllResponse = PublicIPAddressListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicIPAddressListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type PublicIPAddressesListResponse = PublicIPAddressListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicIPAddressListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type PublicIPAddressesBeginCreateOrUpdateResponse = PublicIPAddress & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicIPAddress; + }; +}; + +/** + * Contains response data for the beginUpdateTags operation. + */ +export type PublicIPAddressesBeginUpdateTagsResponse = PublicIPAddress & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicIPAddress; + }; +}; + +/** + * Contains response data for the listAllNext operation. + */ +export type PublicIPAddressesListAllNextResponse = PublicIPAddressListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicIPAddressListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type PublicIPAddressesListNextResponse = PublicIPAddressListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PublicIPAddressListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type RouteTablesGetResponse = RouteTable & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RouteTable; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type RouteTablesCreateOrUpdateResponse = RouteTable & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RouteTable; + }; +}; + +/** + * Contains response data for the updateTags operation. + */ +export type RouteTablesUpdateTagsResponse = RouteTable & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RouteTable; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type RouteTablesListResponse = RouteTableListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RouteTableListResult; + }; +}; + +/** + * Contains response data for the listAll operation. + */ +export type RouteTablesListAllResponse = RouteTableListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RouteTableListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type RouteTablesBeginCreateOrUpdateResponse = RouteTable & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RouteTable; + }; +}; + +/** + * Contains response data for the beginUpdateTags operation. + */ +export type RouteTablesBeginUpdateTagsResponse = RouteTable & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RouteTable; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type RouteTablesListNextResponse = RouteTableListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RouteTableListResult; + }; +}; + +/** + * Contains response data for the listAllNext operation. + */ +export type RouteTablesListAllNextResponse = RouteTableListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RouteTableListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type RoutesGetResponse = Route & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Route; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type RoutesCreateOrUpdateResponse = Route & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Route; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type RoutesListResponse = RouteListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RouteListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type RoutesBeginCreateOrUpdateResponse = Route & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Route; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type RoutesListNextResponse = RouteListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RouteListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type VirtualNetworksGetResponse = VirtualNetwork & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetwork; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type VirtualNetworksCreateOrUpdateResponse = VirtualNetwork & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetwork; + }; +}; + +/** + * Contains response data for the updateTags operation. + */ +export type VirtualNetworksUpdateTagsResponse = VirtualNetwork & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetwork; + }; +}; + +/** + * Contains response data for the listAll operation. + */ +export type VirtualNetworksListAllResponse = VirtualNetworkListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type VirtualNetworksListResponse = VirtualNetworkListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkListResult; + }; +}; + +/** + * Contains response data for the checkIPAddressAvailability operation. + */ +export type VirtualNetworksCheckIPAddressAvailabilityResponse = IPAddressAvailabilityResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IPAddressAvailabilityResult; + }; +}; + +/** + * Contains response data for the listUsage operation. + */ +export type VirtualNetworksListUsageResponse = VirtualNetworkListUsageResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkListUsageResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type VirtualNetworksBeginCreateOrUpdateResponse = VirtualNetwork & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetwork; + }; +}; + +/** + * Contains response data for the beginUpdateTags operation. + */ +export type VirtualNetworksBeginUpdateTagsResponse = VirtualNetwork & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetwork; + }; +}; + +/** + * Contains response data for the listAllNext operation. + */ +export type VirtualNetworksListAllNextResponse = VirtualNetworkListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type VirtualNetworksListNextResponse = VirtualNetworkListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkListResult; + }; +}; + +/** + * Contains response data for the listUsageNext operation. + */ +export type VirtualNetworksListUsageNextResponse = VirtualNetworkListUsageResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkListUsageResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SubnetsGetResponse = Subnet & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Subnet; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type SubnetsCreateOrUpdateResponse = Subnet & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Subnet; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type SubnetsListResponse = SubnetListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SubnetListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type SubnetsBeginCreateOrUpdateResponse = Subnet & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Subnet; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type SubnetsListNextResponse = SubnetListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SubnetListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type VirtualNetworkPeeringsGetResponse = VirtualNetworkPeering & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkPeering; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type VirtualNetworkPeeringsCreateOrUpdateResponse = VirtualNetworkPeering & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkPeering; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type VirtualNetworkPeeringsListResponse = VirtualNetworkPeeringListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkPeeringListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type VirtualNetworkPeeringsBeginCreateOrUpdateResponse = VirtualNetworkPeering & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkPeering; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type VirtualNetworkPeeringsListNextResponse = VirtualNetworkPeeringListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VirtualNetworkPeeringListResult; + }; +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerBackendAddressPoolsMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerBackendAddressPoolsMappers.ts new file mode 100644 index 000000000000..ba72067a126e --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerBackendAddressPoolsMappers.ts @@ -0,0 +1,70 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerBackendAddressPoolListResult, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerFrontendIPConfigurationsMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerFrontendIPConfigurationsMappers.ts new file mode 100644 index 000000000000..9d2decdedb1e --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerFrontendIPConfigurationsMappers.ts @@ -0,0 +1,70 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerFrontendIPConfigurationListResult, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerLoadBalancingRulesMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerLoadBalancingRulesMappers.ts new file mode 100644 index 000000000000..72593cfc4e7e --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerLoadBalancingRulesMappers.ts @@ -0,0 +1,70 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerLoadBalancingRuleListResult, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerNetworkInterfacesMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerNetworkInterfacesMappers.ts new file mode 100644 index 000000000000..403f35a45e9c --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerNetworkInterfacesMappers.ts @@ -0,0 +1,70 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceListResult, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerOutboundRulesMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerOutboundRulesMappers.ts new file mode 100644 index 000000000000..9f41a5f77da7 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerOutboundRulesMappers.ts @@ -0,0 +1,70 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerOutboundRuleListResult, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerProbesMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerProbesMappers.ts new file mode 100644 index 000000000000..22fcc41563ea --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancerProbesMappers.ts @@ -0,0 +1,70 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerProbeListResult, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancersMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancersMappers.ts new file mode 100644 index 000000000000..7ef231a8fd57 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/loadBalancersMappers.ts @@ -0,0 +1,71 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerListResult, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TagsObject, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/localNetworkGatewaysMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/localNetworkGatewaysMappers.ts new file mode 100644 index 000000000000..b37b4ef54c99 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/localNetworkGatewaysMappers.ts @@ -0,0 +1,71 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + LocalNetworkGatewayListResult, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TagsObject, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/mappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/mappers.ts new file mode 100644 index 000000000000..7ae7790548f6 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/mappers.ts @@ -0,0 +1,5493 @@ +/* + * 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 { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export const CloudError = CloudErrorMapper; +export const BaseResource = BaseResourceMapper; + +export const SubResource: msRest.CompositeMapper = { + serializedName: "SubResource", + type: { + name: "Composite", + className: "SubResource", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkGatewayIPConfiguration: msRest.CompositeMapper = { + serializedName: "VirtualNetworkGatewayIPConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkGatewayIPConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + privateIPAllocationMethod: { + serializedName: "properties.privateIPAllocationMethod", + type: { + name: "String" + } + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "SubResource" + } + }, + publicIPAddress: { + serializedName: "properties.publicIPAddress", + type: { + name: "Composite", + className: "SubResource" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkGatewaySku: msRest.CompositeMapper = { + serializedName: "VirtualNetworkGatewaySku", + type: { + name: "Composite", + className: "VirtualNetworkGatewaySku", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } + } + } + } +}; + +export const AddressSpace: msRest.CompositeMapper = { + serializedName: "AddressSpace", + type: { + name: "Composite", + className: "AddressSpace", + modelProperties: { + addressPrefixes: { + serializedName: "addressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const VpnClientRootCertificate: msRest.CompositeMapper = { + serializedName: "VpnClientRootCertificate", + type: { + name: "Composite", + className: "VpnClientRootCertificate", + modelProperties: { + ...SubResource.type.modelProperties, + publicCertData: { + required: true, + serializedName: "properties.publicCertData", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const VpnClientRevokedCertificate: msRest.CompositeMapper = { + serializedName: "VpnClientRevokedCertificate", + type: { + name: "Composite", + className: "VpnClientRevokedCertificate", + modelProperties: { + ...SubResource.type.modelProperties, + thumbprint: { + serializedName: "properties.thumbprint", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const IpsecPolicy: msRest.CompositeMapper = { + serializedName: "IpsecPolicy", + type: { + name: "Composite", + className: "IpsecPolicy", + modelProperties: { + saLifeTimeSeconds: { + required: true, + serializedName: "saLifeTimeSeconds", + type: { + name: "Number" + } + }, + saDataSizeKilobytes: { + required: true, + serializedName: "saDataSizeKilobytes", + type: { + name: "Number" + } + }, + ipsecEncryption: { + required: true, + serializedName: "ipsecEncryption", + type: { + name: "String" + } + }, + ipsecIntegrity: { + required: true, + serializedName: "ipsecIntegrity", + type: { + name: "String" + } + }, + ikeEncryption: { + required: true, + serializedName: "ikeEncryption", + type: { + name: "String" + } + }, + ikeIntegrity: { + required: true, + serializedName: "ikeIntegrity", + type: { + name: "String" + } + }, + dhGroup: { + required: true, + serializedName: "dhGroup", + type: { + name: "String" + } + }, + pfsGroup: { + required: true, + serializedName: "pfsGroup", + type: { + name: "String" + } + } + } + } +}; + +export const VpnClientConfiguration: msRest.CompositeMapper = { + serializedName: "VpnClientConfiguration", + type: { + name: "Composite", + className: "VpnClientConfiguration", + modelProperties: { + vpnClientAddressPool: { + serializedName: "vpnClientAddressPool", + type: { + name: "Composite", + className: "AddressSpace" + } + }, + vpnClientRootCertificates: { + serializedName: "vpnClientRootCertificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnClientRootCertificate" + } + } + } + }, + vpnClientRevokedCertificates: { + serializedName: "vpnClientRevokedCertificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VpnClientRevokedCertificate" + } + } + } + }, + vpnClientProtocols: { + serializedName: "vpnClientProtocols", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + vpnClientIpsecPolicies: { + serializedName: "vpnClientIpsecPolicies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpsecPolicy" + } + } + } + }, + radiusServerAddress: { + serializedName: "radiusServerAddress", + type: { + name: "String" + } + }, + radiusServerSecret: { + serializedName: "radiusServerSecret", + type: { + name: "String" + } + } + } + } +}; + +export const BgpSettings: msRest.CompositeMapper = { + serializedName: "BgpSettings", + type: { + name: "Composite", + className: "BgpSettings", + modelProperties: { + asn: { + serializedName: "asn", + type: { + name: "Number" + } + }, + bgpPeeringAddress: { + serializedName: "bgpPeeringAddress", + type: { + name: "String" + } + }, + peerWeight: { + serializedName: "peerWeight", + type: { + name: "Number" + } + } + } + } +}; + +export const BgpPeerStatus: msRest.CompositeMapper = { + serializedName: "BgpPeerStatus", + type: { + name: "Composite", + className: "BgpPeerStatus", + modelProperties: { + localAddress: { + readOnly: true, + serializedName: "localAddress", + type: { + name: "String" + } + }, + neighbor: { + readOnly: true, + serializedName: "neighbor", + type: { + name: "String" + } + }, + asn: { + readOnly: true, + serializedName: "asn", + type: { + name: "Number" + } + }, + state: { + readOnly: true, + serializedName: "state", + type: { + name: "String" + } + }, + connectedDuration: { + readOnly: true, + serializedName: "connectedDuration", + type: { + name: "String" + } + }, + routesReceived: { + readOnly: true, + serializedName: "routesReceived", + type: { + name: "Number" + } + }, + messagesSent: { + readOnly: true, + serializedName: "messagesSent", + type: { + name: "Number" + } + }, + messagesReceived: { + readOnly: true, + serializedName: "messagesReceived", + type: { + name: "Number" + } + } + } + } +}; + +export const GatewayRoute: msRest.CompositeMapper = { + serializedName: "GatewayRoute", + type: { + name: "Composite", + className: "GatewayRoute", + modelProperties: { + localAddress: { + readOnly: true, + serializedName: "localAddress", + type: { + name: "String" + } + }, + network: { + readOnly: true, + serializedName: "network", + type: { + name: "String" + } + }, + nextHop: { + readOnly: true, + serializedName: "nextHop", + type: { + name: "String" + } + }, + sourcePeer: { + readOnly: true, + serializedName: "sourcePeer", + type: { + name: "String" + } + }, + origin: { + readOnly: true, + serializedName: "origin", + type: { + name: "String" + } + }, + asPath: { + readOnly: true, + serializedName: "asPath", + type: { + name: "String" + } + }, + weight: { + readOnly: true, + serializedName: "weight", + type: { + name: "Number" + } + } + } + } +}; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const VirtualNetworkGateway: msRest.CompositeMapper = { + serializedName: "VirtualNetworkGateway", + type: { + name: "Composite", + className: "VirtualNetworkGateway", + modelProperties: { + ...Resource.type.modelProperties, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkGatewayIPConfiguration" + } + } + } + }, + gatewayType: { + serializedName: "properties.gatewayType", + type: { + name: "String" + } + }, + vpnType: { + serializedName: "properties.vpnType", + type: { + name: "String" + } + }, + enableBgp: { + serializedName: "properties.enableBgp", + type: { + name: "Boolean" + } + }, + activeActive: { + serializedName: "properties.activeActive", + type: { + name: "Boolean" + } + }, + gatewayDefaultSite: { + serializedName: "properties.gatewayDefaultSite", + type: { + name: "Composite", + className: "SubResource" + } + }, + sku: { + serializedName: "properties.sku", + type: { + name: "Composite", + className: "VirtualNetworkGatewaySku" + } + }, + vpnClientConfiguration: { + serializedName: "properties.vpnClientConfiguration", + type: { + name: "Composite", + className: "VpnClientConfiguration" + } + }, + bgpSettings: { + serializedName: "properties.bgpSettings", + type: { + name: "Composite", + className: "BgpSettings" + } + }, + resourceGuid: { + serializedName: "properties.resourceGuid", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const VpnClientParameters: msRest.CompositeMapper = { + serializedName: "VpnClientParameters", + type: { + name: "Composite", + className: "VpnClientParameters", + modelProperties: { + processorArchitecture: { + serializedName: "processorArchitecture", + type: { + name: "String" + } + }, + authenticationMethod: { + serializedName: "authenticationMethod", + type: { + name: "String" + } + }, + radiusServerAuthCertificate: { + serializedName: "radiusServerAuthCertificate", + type: { + name: "String" + } + }, + clientRootCertificates: { + serializedName: "clientRootCertificates", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const BgpPeerStatusListResult: msRest.CompositeMapper = { + serializedName: "BgpPeerStatusListResult", + type: { + name: "Composite", + className: "BgpPeerStatusListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BgpPeerStatus" + } + } + } + } + } + } +}; + +export const GatewayRouteListResult: msRest.CompositeMapper = { + serializedName: "GatewayRouteListResult", + type: { + name: "Composite", + className: "GatewayRouteListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayRoute" + } + } + } + } + } + } +}; + +export const TunnelConnectionHealth: msRest.CompositeMapper = { + serializedName: "TunnelConnectionHealth", + type: { + name: "Composite", + className: "TunnelConnectionHealth", + modelProperties: { + tunnel: { + readOnly: true, + serializedName: "tunnel", + type: { + name: "String" + } + }, + connectionStatus: { + readOnly: true, + serializedName: "connectionStatus", + type: { + name: "String" + } + }, + ingressBytesTransferred: { + readOnly: true, + serializedName: "ingressBytesTransferred", + type: { + name: "Number" + } + }, + egressBytesTransferred: { + readOnly: true, + serializedName: "egressBytesTransferred", + type: { + name: "Number" + } + }, + lastConnectionEstablishedUtcTime: { + readOnly: true, + serializedName: "lastConnectionEstablishedUtcTime", + type: { + name: "String" + } + } + } + } +}; + +export const LocalNetworkGateway: msRest.CompositeMapper = { + serializedName: "LocalNetworkGateway", + type: { + name: "Composite", + className: "LocalNetworkGateway", + modelProperties: { + ...Resource.type.modelProperties, + localNetworkAddressSpace: { + serializedName: "properties.localNetworkAddressSpace", + type: { + name: "Composite", + className: "AddressSpace" + } + }, + gatewayIpAddress: { + serializedName: "properties.gatewayIpAddress", + type: { + name: "String" + } + }, + bgpSettings: { + serializedName: "properties.bgpSettings", + type: { + name: "Composite", + className: "BgpSettings" + } + }, + resourceGuid: { + serializedName: "properties.resourceGuid", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkGatewayConnection: msRest.CompositeMapper = { + serializedName: "VirtualNetworkGatewayConnection", + type: { + name: "Composite", + className: "VirtualNetworkGatewayConnection", + modelProperties: { + ...Resource.type.modelProperties, + authorizationKey: { + serializedName: "properties.authorizationKey", + type: { + name: "String" + } + }, + virtualNetworkGateway1: { + required: true, + serializedName: "properties.virtualNetworkGateway1", + type: { + name: "Composite", + className: "VirtualNetworkGateway" + } + }, + virtualNetworkGateway2: { + serializedName: "properties.virtualNetworkGateway2", + type: { + name: "Composite", + className: "VirtualNetworkGateway" + } + }, + localNetworkGateway2: { + serializedName: "properties.localNetworkGateway2", + type: { + name: "Composite", + className: "LocalNetworkGateway" + } + }, + connectionType: { + required: true, + serializedName: "properties.connectionType", + type: { + name: "String" + } + }, + connectionProtocol: { + serializedName: "properties.connectionProtocol", + type: { + name: "String" + } + }, + routingWeight: { + serializedName: "properties.routingWeight", + type: { + name: "Number" + } + }, + sharedKey: { + serializedName: "properties.sharedKey", + type: { + name: "String" + } + }, + connectionStatus: { + readOnly: true, + serializedName: "properties.connectionStatus", + type: { + name: "String" + } + }, + tunnelConnectionStatus: { + readOnly: true, + serializedName: "properties.tunnelConnectionStatus", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TunnelConnectionHealth" + } + } + } + }, + egressBytesTransferred: { + readOnly: true, + serializedName: "properties.egressBytesTransferred", + type: { + name: "Number" + } + }, + ingressBytesTransferred: { + readOnly: true, + serializedName: "properties.ingressBytesTransferred", + type: { + name: "Number" + } + }, + peer: { + serializedName: "properties.peer", + type: { + name: "Composite", + className: "SubResource" + } + }, + enableBgp: { + serializedName: "properties.enableBgp", + type: { + name: "Boolean" + } + }, + usePolicyBasedTrafficSelectors: { + serializedName: "properties.usePolicyBasedTrafficSelectors", + type: { + name: "Boolean" + } + }, + ipsecPolicies: { + serializedName: "properties.ipsecPolicies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpsecPolicy" + } + } + } + }, + resourceGuid: { + serializedName: "properties.resourceGuid", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + expressRouteGatewayBypass: { + serializedName: "properties.expressRouteGatewayBypass", + type: { + name: "Boolean" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ConnectionResetSharedKey: msRest.CompositeMapper = { + serializedName: "ConnectionResetSharedKey", + type: { + name: "Composite", + className: "ConnectionResetSharedKey", + modelProperties: { + keyLength: { + required: true, + serializedName: "keyLength", + constraints: { + InclusiveMaximum: 128, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const ConnectionSharedKey: msRest.CompositeMapper = { + serializedName: "ConnectionSharedKey", + type: { + name: "Composite", + className: "ConnectionSharedKey", + modelProperties: { + ...SubResource.type.modelProperties, + value: { + required: true, + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const VpnClientIPsecParameters: msRest.CompositeMapper = { + serializedName: "VpnClientIPsecParameters", + type: { + name: "Composite", + className: "VpnClientIPsecParameters", + modelProperties: { + saLifeTimeSeconds: { + required: true, + serializedName: "saLifeTimeSeconds", + type: { + name: "Number" + } + }, + saDataSizeKilobytes: { + required: true, + serializedName: "saDataSizeKilobytes", + type: { + name: "Number" + } + }, + ipsecEncryption: { + required: true, + serializedName: "ipsecEncryption", + type: { + name: "String" + } + }, + ipsecIntegrity: { + required: true, + serializedName: "ipsecIntegrity", + type: { + name: "String" + } + }, + ikeEncryption: { + required: true, + serializedName: "ikeEncryption", + type: { + name: "String" + } + }, + ikeIntegrity: { + required: true, + serializedName: "ikeIntegrity", + type: { + name: "String" + } + }, + dhGroup: { + required: true, + serializedName: "dhGroup", + type: { + name: "String" + } + }, + pfsGroup: { + required: true, + serializedName: "pfsGroup", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkConnectionGatewayReference: msRest.CompositeMapper = { + serializedName: "virtualNetworkConnectionGatewayReference", + type: { + name: "Composite", + className: "VirtualNetworkConnectionGatewayReference", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkGatewayConnectionListEntity: msRest.CompositeMapper = { + serializedName: "VirtualNetworkGatewayConnectionListEntity", + type: { + name: "Composite", + className: "VirtualNetworkGatewayConnectionListEntity", + modelProperties: { + ...Resource.type.modelProperties, + authorizationKey: { + serializedName: "properties.authorizationKey", + type: { + name: "String" + } + }, + virtualNetworkGateway1: { + required: true, + serializedName: "properties.virtualNetworkGateway1", + type: { + name: "Composite", + className: "VirtualNetworkConnectionGatewayReference" + } + }, + virtualNetworkGateway2: { + serializedName: "properties.virtualNetworkGateway2", + type: { + name: "Composite", + className: "VirtualNetworkConnectionGatewayReference" + } + }, + localNetworkGateway2: { + serializedName: "properties.localNetworkGateway2", + type: { + name: "Composite", + className: "VirtualNetworkConnectionGatewayReference" + } + }, + connectionType: { + required: true, + serializedName: "properties.connectionType", + type: { + name: "String" + } + }, + connectionProtocol: { + serializedName: "properties.connectionProtocol", + type: { + name: "String" + } + }, + routingWeight: { + serializedName: "properties.routingWeight", + type: { + name: "Number" + } + }, + sharedKey: { + serializedName: "properties.sharedKey", + type: { + name: "String" + } + }, + connectionStatus: { + readOnly: true, + serializedName: "properties.connectionStatus", + type: { + name: "String" + } + }, + tunnelConnectionStatus: { + readOnly: true, + serializedName: "properties.tunnelConnectionStatus", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TunnelConnectionHealth" + } + } + } + }, + egressBytesTransferred: { + readOnly: true, + serializedName: "properties.egressBytesTransferred", + type: { + name: "Number" + } + }, + ingressBytesTransferred: { + readOnly: true, + serializedName: "properties.ingressBytesTransferred", + type: { + name: "Number" + } + }, + peer: { + serializedName: "properties.peer", + type: { + name: "Composite", + className: "SubResource" + } + }, + enableBgp: { + serializedName: "properties.enableBgp", + type: { + name: "Boolean" + } + }, + usePolicyBasedTrafficSelectors: { + serializedName: "properties.usePolicyBasedTrafficSelectors", + type: { + name: "Boolean" + } + }, + ipsecPolicies: { + serializedName: "properties.ipsecPolicies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpsecPolicy" + } + } + } + }, + resourceGuid: { + serializedName: "properties.resourceGuid", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + expressRouteGatewayBypass: { + serializedName: "properties.expressRouteGatewayBypass", + type: { + name: "Boolean" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const VpnDeviceScriptParameters: msRest.CompositeMapper = { + serializedName: "VpnDeviceScriptParameters", + type: { + name: "Composite", + className: "VpnDeviceScriptParameters", + modelProperties: { + vendor: { + serializedName: "vendor", + type: { + name: "String" + } + }, + deviceFamily: { + serializedName: "deviceFamily", + type: { + name: "String" + } + }, + firmwareVersion: { + serializedName: "firmwareVersion", + type: { + name: "String" + } + } + } + } +}; + +export const TagsObject: msRest.CompositeMapper = { + serializedName: "TagsObject", + type: { + name: "Composite", + className: "TagsObject", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const LoadBalancerSku: msRest.CompositeMapper = { + serializedName: "LoadBalancerSku", + type: { + name: "Composite", + className: "LoadBalancerSku", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationSecurityGroup: msRest.CompositeMapper = { + serializedName: "ApplicationSecurityGroup", + type: { + name: "Composite", + className: "ApplicationSecurityGroup", + modelProperties: { + ...Resource.type.modelProperties, + resourceGuid: { + readOnly: true, + serializedName: "properties.resourceGuid", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const SecurityRule: msRest.CompositeMapper = { + serializedName: "SecurityRule", + type: { + name: "Composite", + className: "SecurityRule", + modelProperties: { + ...SubResource.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + protocol: { + required: true, + serializedName: "properties.protocol", + type: { + name: "String" + } + }, + sourcePortRange: { + serializedName: "properties.sourcePortRange", + type: { + name: "String" + } + }, + destinationPortRange: { + serializedName: "properties.destinationPortRange", + type: { + name: "String" + } + }, + sourceAddressPrefix: { + serializedName: "properties.sourceAddressPrefix", + type: { + name: "String" + } + }, + sourceAddressPrefixes: { + serializedName: "properties.sourceAddressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + sourceApplicationSecurityGroups: { + serializedName: "properties.sourceApplicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationSecurityGroup" + } + } + } + }, + destinationAddressPrefix: { + serializedName: "properties.destinationAddressPrefix", + type: { + name: "String" + } + }, + destinationAddressPrefixes: { + serializedName: "properties.destinationAddressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + destinationApplicationSecurityGroups: { + serializedName: "properties.destinationApplicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationSecurityGroup" + } + } + } + }, + sourcePortRanges: { + serializedName: "properties.sourcePortRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + destinationPortRanges: { + serializedName: "properties.destinationPortRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + access: { + required: true, + serializedName: "properties.access", + type: { + name: "String" + } + }, + priority: { + serializedName: "properties.priority", + type: { + name: "Number" + } + }, + direction: { + required: true, + serializedName: "properties.direction", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const EndpointService: msRest.CompositeMapper = { + serializedName: "EndpointService", + type: { + name: "Composite", + className: "EndpointService", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const InterfaceEndpoint: msRest.CompositeMapper = { + serializedName: "InterfaceEndpoint", + type: { + name: "Composite", + className: "InterfaceEndpoint", + modelProperties: { + ...Resource.type.modelProperties, + fqdn: { + serializedName: "properties.fqdn", + type: { + name: "String" + } + }, + endpointService: { + serializedName: "properties.endpointService", + type: { + name: "Composite", + className: "EndpointService" + } + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "Subnet" + } + }, + networkInterfaces: { + readOnly: true, + serializedName: "properties.networkInterfaces", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterface" + } + } + } + }, + owner: { + readOnly: true, + serializedName: "properties.owner", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkInterfaceTapConfiguration: msRest.CompositeMapper = { + serializedName: "NetworkInterfaceTapConfiguration", + type: { + name: "Composite", + className: "NetworkInterfaceTapConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + virtualNetworkTap: { + serializedName: "properties.virtualNetworkTap", + type: { + name: "Composite", + className: "VirtualNetworkTap" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const FrontendIPConfiguration: msRest.CompositeMapper = { + serializedName: "FrontendIPConfiguration", + type: { + name: "Composite", + className: "FrontendIPConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + inboundNatRules: { + readOnly: true, + serializedName: "properties.inboundNatRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + inboundNatPools: { + readOnly: true, + serializedName: "properties.inboundNatPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + outboundRules: { + readOnly: true, + serializedName: "properties.outboundRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + loadBalancingRules: { + readOnly: true, + serializedName: "properties.loadBalancingRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + privateIPAddress: { + serializedName: "properties.privateIPAddress", + type: { + name: "String" + } + }, + privateIPAllocationMethod: { + serializedName: "properties.privateIPAllocationMethod", + type: { + name: "String" + } + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "Subnet" + } + }, + publicIPAddress: { + serializedName: "properties.publicIPAddress", + type: { + name: "Composite", + className: "PublicIPAddress" + } + }, + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", + type: { + name: "Composite", + className: "SubResource" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const VirtualNetworkTap: msRest.CompositeMapper = { + serializedName: "VirtualNetworkTap", + type: { + name: "Composite", + className: "VirtualNetworkTap", + modelProperties: { + ...Resource.type.modelProperties, + networkInterfaceTapConfigurations: { + readOnly: true, + serializedName: "properties.networkInterfaceTapConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceTapConfiguration" + } + } + } + }, + resourceGuid: { + readOnly: true, + serializedName: "properties.resourceGuid", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + destinationNetworkInterfaceIPConfiguration: { + serializedName: "properties.destinationNetworkInterfaceIPConfiguration", + type: { + name: "Composite", + className: "NetworkInterfaceIPConfiguration" + } + }, + destinationLoadBalancerFrontEndIPConfiguration: { + serializedName: "properties.destinationLoadBalancerFrontEndIPConfiguration", + type: { + name: "Composite", + className: "FrontendIPConfiguration" + } + }, + destinationPort: { + serializedName: "properties.destinationPort", + type: { + name: "Number" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationGatewayBackendAddress: msRest.CompositeMapper = { + serializedName: "ApplicationGatewayBackendAddress", + type: { + name: "Composite", + className: "ApplicationGatewayBackendAddress", + modelProperties: { + fqdn: { + serializedName: "fqdn", + type: { + name: "String" + } + }, + ipAddress: { + serializedName: "ipAddress", + type: { + name: "String" + } + } + } + } +}; + +export const ApplicationGatewayBackendAddressPool: msRest.CompositeMapper = { + serializedName: "ApplicationGatewayBackendAddressPool", + type: { + name: "Composite", + className: "ApplicationGatewayBackendAddressPool", + modelProperties: { + ...SubResource.type.modelProperties, + backendIPConfigurations: { + serializedName: "properties.backendIPConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceIPConfiguration" + } + } + } + }, + backendAddresses: { + serializedName: "properties.backendAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayBackendAddress" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const BackendAddressPool: msRest.CompositeMapper = { + serializedName: "BackendAddressPool", + type: { + name: "Composite", + className: "BackendAddressPool", + modelProperties: { + ...SubResource.type.modelProperties, + backendIPConfigurations: { + readOnly: true, + serializedName: "properties.backendIPConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceIPConfiguration" + } + } + } + }, + loadBalancingRules: { + readOnly: true, + serializedName: "properties.loadBalancingRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + outboundRule: { + readOnly: true, + serializedName: "properties.outboundRule", + type: { + name: "Composite", + className: "SubResource" + } + }, + outboundRules: { + readOnly: true, + serializedName: "properties.outboundRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const InboundNatRule: msRest.CompositeMapper = { + serializedName: "InboundNatRule", + type: { + name: "Composite", + className: "InboundNatRule", + modelProperties: { + ...SubResource.type.modelProperties, + frontendIPConfiguration: { + serializedName: "properties.frontendIPConfiguration", + type: { + name: "Composite", + className: "SubResource" + } + }, + backendIPConfiguration: { + readOnly: true, + serializedName: "properties.backendIPConfiguration", + type: { + name: "Composite", + className: "NetworkInterfaceIPConfiguration" + } + }, + protocol: { + serializedName: "properties.protocol", + type: { + name: "String" + } + }, + frontendPort: { + serializedName: "properties.frontendPort", + type: { + name: "Number" + } + }, + backendPort: { + serializedName: "properties.backendPort", + type: { + name: "Number" + } + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number" + } + }, + enableFloatingIP: { + serializedName: "properties.enableFloatingIP", + type: { + name: "Boolean" + } + }, + enableTcpReset: { + serializedName: "properties.enableTcpReset", + type: { + name: "Boolean" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PublicIPAddressSku: msRest.CompositeMapper = { + serializedName: "PublicIPAddressSku", + type: { + name: "Composite", + className: "PublicIPAddressSku", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const IPConfiguration: msRest.CompositeMapper = { + serializedName: "IPConfiguration", + type: { + name: "Composite", + className: "IPConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + privateIPAddress: { + serializedName: "properties.privateIPAddress", + type: { + name: "String" + } + }, + privateIPAllocationMethod: { + serializedName: "properties.privateIPAllocationMethod", + type: { + name: "String" + } + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "Subnet" + } + }, + publicIPAddress: { + serializedName: "properties.publicIPAddress", + type: { + name: "Composite", + className: "PublicIPAddress" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PublicIPAddressDnsSettings: msRest.CompositeMapper = { + serializedName: "PublicIPAddressDnsSettings", + type: { + name: "Composite", + className: "PublicIPAddressDnsSettings", + modelProperties: { + domainNameLabel: { + serializedName: "domainNameLabel", + type: { + name: "String" + } + }, + fqdn: { + serializedName: "fqdn", + type: { + name: "String" + } + }, + reverseFqdn: { + serializedName: "reverseFqdn", + type: { + name: "String" + } + } + } + } +}; + +export const DdosSettings: msRest.CompositeMapper = { + serializedName: "DdosSettings", + type: { + name: "Composite", + className: "DdosSettings", + modelProperties: { + ddosCustomPolicy: { + serializedName: "ddosCustomPolicy", + type: { + name: "Composite", + className: "SubResource" + } + }, + protectionCoverage: { + serializedName: "protectionCoverage", + type: { + name: "String" + } + } + } + } +}; + +export const IpTag: msRest.CompositeMapper = { + serializedName: "IpTag", + type: { + name: "Composite", + className: "IpTag", + modelProperties: { + ipTagType: { + serializedName: "ipTagType", + type: { + name: "String" + } + }, + tag: { + serializedName: "tag", + type: { + name: "String" + } + } + } + } +}; + +export const PublicIPAddress: msRest.CompositeMapper = { + serializedName: "PublicIPAddress", + type: { + name: "Composite", + className: "PublicIPAddress", + modelProperties: { + ...Resource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PublicIPAddressSku" + } + }, + publicIPAllocationMethod: { + serializedName: "properties.publicIPAllocationMethod", + type: { + name: "String" + } + }, + publicIPAddressVersion: { + serializedName: "properties.publicIPAddressVersion", + type: { + name: "String" + } + }, + ipConfiguration: { + readOnly: true, + serializedName: "properties.ipConfiguration", + type: { + name: "Composite", + className: "IPConfiguration" + } + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "PublicIPAddressDnsSettings" + } + }, + ddosSettings: { + serializedName: "properties.ddosSettings", + type: { + name: "Composite", + className: "DdosSettings" + } + }, + ipTags: { + serializedName: "properties.ipTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpTag" + } + } + } + }, + ipAddress: { + serializedName: "properties.ipAddress", + type: { + name: "String" + } + }, + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", + type: { + name: "Composite", + className: "SubResource" + } + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number" + } + }, + resourceGuid: { + serializedName: "properties.resourceGuid", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const NetworkInterfaceIPConfiguration: msRest.CompositeMapper = { + serializedName: "NetworkInterfaceIPConfiguration", + type: { + name: "Composite", + className: "NetworkInterfaceIPConfiguration", + modelProperties: { + ...SubResource.type.modelProperties, + virtualNetworkTaps: { + serializedName: "properties.virtualNetworkTaps", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkTap" + } + } + } + }, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationGatewayBackendAddressPool" + } + } + } + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackendAddressPool" + } + } + } + }, + loadBalancerInboundNatRules: { + serializedName: "properties.loadBalancerInboundNatRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InboundNatRule" + } + } + } + }, + privateIPAddress: { + serializedName: "properties.privateIPAddress", + type: { + name: "String" + } + }, + privateIPAllocationMethod: { + serializedName: "properties.privateIPAllocationMethod", + type: { + name: "String" + } + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", + type: { + name: "String" + } + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "Subnet" + } + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean" + } + }, + publicIPAddress: { + serializedName: "properties.publicIPAddress", + type: { + name: "Composite", + className: "PublicIPAddress" + } + }, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApplicationSecurityGroup" + } + } + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkInterfaceDnsSettings: msRest.CompositeMapper = { + serializedName: "NetworkInterfaceDnsSettings", + type: { + name: "Composite", + className: "NetworkInterfaceDnsSettings", + modelProperties: { + dnsServers: { + serializedName: "dnsServers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + appliedDnsServers: { + serializedName: "appliedDnsServers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + internalDnsNameLabel: { + serializedName: "internalDnsNameLabel", + type: { + name: "String" + } + }, + internalFqdn: { + serializedName: "internalFqdn", + type: { + name: "String" + } + }, + internalDomainNameSuffix: { + serializedName: "internalDomainNameSuffix", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkInterface: msRest.CompositeMapper = { + serializedName: "NetworkInterface", + type: { + name: "Composite", + className: "NetworkInterface", + modelProperties: { + ...Resource.type.modelProperties, + virtualMachine: { + readOnly: true, + serializedName: "properties.virtualMachine", + type: { + name: "Composite", + className: "SubResource" + } + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "NetworkSecurityGroup" + } + }, + interfaceEndpoint: { + readOnly: true, + serializedName: "properties.interfaceEndpoint", + type: { + name: "Composite", + className: "InterfaceEndpoint" + } + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceIPConfiguration" + } + } + } + }, + tapConfigurations: { + serializedName: "properties.tapConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceTapConfiguration" + } + } + } + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "NetworkInterfaceDnsSettings" + } + }, + macAddress: { + serializedName: "properties.macAddress", + type: { + name: "String" + } + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean" + } + }, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", + type: { + name: "Boolean" + } + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean" + } + }, + hostedWorkloads: { + readOnly: true, + serializedName: "properties.hostedWorkloads", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + resourceGuid: { + serializedName: "properties.resourceGuid", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkSecurityGroup: msRest.CompositeMapper = { + serializedName: "NetworkSecurityGroup", + type: { + name: "Composite", + className: "NetworkSecurityGroup", + modelProperties: { + ...Resource.type.modelProperties, + securityRules: { + serializedName: "properties.securityRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecurityRule" + } + } + } + }, + defaultSecurityRules: { + serializedName: "properties.defaultSecurityRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecurityRule" + } + } + } + }, + networkInterfaces: { + readOnly: true, + serializedName: "properties.networkInterfaces", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterface" + } + } + } + }, + subnets: { + readOnly: true, + serializedName: "properties.subnets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Subnet" + } + } + } + }, + resourceGuid: { + serializedName: "properties.resourceGuid", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const Route: msRest.CompositeMapper = { + serializedName: "Route", + type: { + name: "Composite", + className: "Route", + modelProperties: { + ...SubResource.type.modelProperties, + addressPrefix: { + serializedName: "properties.addressPrefix", + type: { + name: "String" + } + }, + nextHopType: { + required: true, + serializedName: "properties.nextHopType", + type: { + name: "String" + } + }, + nextHopIpAddress: { + serializedName: "properties.nextHopIpAddress", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const RouteTable: msRest.CompositeMapper = { + serializedName: "RouteTable", + type: { + name: "Composite", + className: "RouteTable", + modelProperties: { + ...Resource.type.modelProperties, + routes: { + serializedName: "properties.routes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Route" + } + } + } + }, + subnets: { + readOnly: true, + serializedName: "properties.subnets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Subnet" + } + } + } + }, + disableBgpRoutePropagation: { + serializedName: "properties.disableBgpRoutePropagation", + type: { + name: "Boolean" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceEndpointPropertiesFormat: msRest.CompositeMapper = { + serializedName: "ServiceEndpointPropertiesFormat", + type: { + name: "Composite", + className: "ServiceEndpointPropertiesFormat", + modelProperties: { + service: { + serializedName: "service", + type: { + name: "String" + } + }, + locations: { + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceEndpointPolicyDefinition: msRest.CompositeMapper = { + serializedName: "ServiceEndpointPolicyDefinition", + type: { + name: "Composite", + className: "ServiceEndpointPolicyDefinition", + modelProperties: { + ...SubResource.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + service: { + serializedName: "properties.service", + type: { + name: "String" + } + }, + serviceResources: { + serializedName: "properties.serviceResources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceEndpointPolicy: msRest.CompositeMapper = { + serializedName: "ServiceEndpointPolicy", + type: { + name: "Composite", + className: "ServiceEndpointPolicy", + modelProperties: { + ...Resource.type.modelProperties, + serviceEndpointPolicyDefinitions: { + serializedName: "properties.serviceEndpointPolicyDefinitions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceEndpointPolicyDefinition" + } + } + } + }, + subnets: { + readOnly: true, + serializedName: "properties.subnets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Subnet" + } + } + } + }, + resourceGuid: { + readOnly: true, + serializedName: "properties.resourceGuid", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const IPConfigurationProfile: msRest.CompositeMapper = { + serializedName: "IPConfigurationProfile", + type: { + name: "Composite", + className: "IPConfigurationProfile", + modelProperties: { + ...SubResource.type.modelProperties, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "Subnet" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceNavigationLink: msRest.CompositeMapper = { + serializedName: "ResourceNavigationLink", + type: { + name: "Composite", + className: "ResourceNavigationLink", + modelProperties: { + ...SubResource.type.modelProperties, + linkedResourceType: { + serializedName: "properties.linkedResourceType", + type: { + name: "String" + } + }, + link: { + serializedName: "properties.link", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceAssociationLink: msRest.CompositeMapper = { + serializedName: "ServiceAssociationLink", + type: { + name: "Composite", + className: "ServiceAssociationLink", + modelProperties: { + ...SubResource.type.modelProperties, + linkedResourceType: { + serializedName: "properties.linkedResourceType", + type: { + name: "String" + } + }, + link: { + serializedName: "properties.link", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const Delegation: msRest.CompositeMapper = { + serializedName: "Delegation", + type: { + name: "Composite", + className: "Delegation", + modelProperties: { + ...SubResource.type.modelProperties, + serviceName: { + serializedName: "properties.serviceName", + type: { + name: "String" + } + }, + actions: { + serializedName: "properties.actions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const Subnet: msRest.CompositeMapper = { + serializedName: "Subnet", + type: { + name: "Composite", + className: "Subnet", + modelProperties: { + ...SubResource.type.modelProperties, + addressPrefix: { + serializedName: "properties.addressPrefix", + type: { + name: "String" + } + }, + addressPrefixes: { + serializedName: "properties.addressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "NetworkSecurityGroup" + } + }, + routeTable: { + serializedName: "properties.routeTable", + type: { + name: "Composite", + className: "RouteTable" + } + }, + serviceEndpoints: { + serializedName: "properties.serviceEndpoints", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceEndpointPropertiesFormat" + } + } + } + }, + serviceEndpointPolicies: { + serializedName: "properties.serviceEndpointPolicies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceEndpointPolicy" + } + } + } + }, + interfaceEndpoints: { + readOnly: true, + serializedName: "properties.interfaceEndpoints", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InterfaceEndpoint" + } + } + } + }, + ipConfigurations: { + readOnly: true, + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPConfiguration" + } + } + } + }, + ipConfigurationProfiles: { + readOnly: true, + serializedName: "properties.ipConfigurationProfiles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPConfigurationProfile" + } + } + } + }, + resourceNavigationLinks: { + serializedName: "properties.resourceNavigationLinks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceNavigationLink" + } + } + } + }, + serviceAssociationLinks: { + serializedName: "properties.serviceAssociationLinks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceAssociationLink" + } + } + } + }, + delegations: { + serializedName: "properties.delegations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Delegation" + } + } + } + }, + purpose: { + readOnly: true, + serializedName: "properties.purpose", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const LoadBalancingRule: msRest.CompositeMapper = { + serializedName: "LoadBalancingRule", + type: { + name: "Composite", + className: "LoadBalancingRule", + modelProperties: { + ...SubResource.type.modelProperties, + frontendIPConfiguration: { + serializedName: "properties.frontendIPConfiguration", + type: { + name: "Composite", + className: "SubResource" + } + }, + backendAddressPool: { + serializedName: "properties.backendAddressPool", + type: { + name: "Composite", + className: "SubResource" + } + }, + probe: { + serializedName: "properties.probe", + type: { + name: "Composite", + className: "SubResource" + } + }, + protocol: { + required: true, + serializedName: "properties.protocol", + type: { + name: "String" + } + }, + loadDistribution: { + serializedName: "properties.loadDistribution", + type: { + name: "String" + } + }, + frontendPort: { + required: true, + serializedName: "properties.frontendPort", + type: { + name: "Number" + } + }, + backendPort: { + serializedName: "properties.backendPort", + type: { + name: "Number" + } + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number" + } + }, + enableFloatingIP: { + serializedName: "properties.enableFloatingIP", + type: { + name: "Boolean" + } + }, + enableTcpReset: { + serializedName: "properties.enableTcpReset", + type: { + name: "Boolean" + } + }, + disableOutboundSnat: { + serializedName: "properties.disableOutboundSnat", + type: { + name: "Boolean" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const Probe: msRest.CompositeMapper = { + serializedName: "Probe", + type: { + name: "Composite", + className: "Probe", + modelProperties: { + ...SubResource.type.modelProperties, + loadBalancingRules: { + readOnly: true, + serializedName: "properties.loadBalancingRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + protocol: { + required: true, + serializedName: "properties.protocol", + type: { + name: "String" + } + }, + port: { + required: true, + serializedName: "properties.port", + type: { + name: "Number" + } + }, + intervalInSeconds: { + serializedName: "properties.intervalInSeconds", + type: { + name: "Number" + } + }, + numberOfProbes: { + serializedName: "properties.numberOfProbes", + type: { + name: "Number" + } + }, + requestPath: { + serializedName: "properties.requestPath", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const InboundNatPool: msRest.CompositeMapper = { + serializedName: "InboundNatPool", + type: { + name: "Composite", + className: "InboundNatPool", + modelProperties: { + ...SubResource.type.modelProperties, + frontendIPConfiguration: { + serializedName: "properties.frontendIPConfiguration", + type: { + name: "Composite", + className: "SubResource" + } + }, + protocol: { + required: true, + serializedName: "properties.protocol", + type: { + name: "String" + } + }, + frontendPortRangeStart: { + required: true, + serializedName: "properties.frontendPortRangeStart", + type: { + name: "Number" + } + }, + frontendPortRangeEnd: { + required: true, + serializedName: "properties.frontendPortRangeEnd", + type: { + name: "Number" + } + }, + backendPort: { + required: true, + serializedName: "properties.backendPort", + type: { + name: "Number" + } + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number" + } + }, + enableFloatingIP: { + serializedName: "properties.enableFloatingIP", + type: { + name: "Boolean" + } + }, + enableTcpReset: { + serializedName: "properties.enableTcpReset", + type: { + name: "Boolean" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const OutboundRule: msRest.CompositeMapper = { + serializedName: "OutboundRule", + type: { + name: "Composite", + className: "OutboundRule", + modelProperties: { + ...SubResource.type.modelProperties, + allocatedOutboundPorts: { + serializedName: "properties.allocatedOutboundPorts", + type: { + name: "Number" + } + }, + frontendIPConfigurations: { + required: true, + serializedName: "properties.frontendIPConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + backendAddressPool: { + required: true, + serializedName: "properties.backendAddressPool", + type: { + name: "Composite", + className: "SubResource" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + protocol: { + required: true, + serializedName: "properties.protocol", + type: { + name: "String" + } + }, + enableTcpReset: { + serializedName: "properties.enableTcpReset", + type: { + name: "Boolean" + } + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const LoadBalancer: msRest.CompositeMapper = { + serializedName: "LoadBalancer", + type: { + name: "Composite", + className: "LoadBalancer", + modelProperties: { + ...Resource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "LoadBalancerSku" + } + }, + frontendIPConfigurations: { + serializedName: "properties.frontendIPConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FrontendIPConfiguration" + } + } + } + }, + backendAddressPools: { + serializedName: "properties.backendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackendAddressPool" + } + } + } + }, + loadBalancingRules: { + serializedName: "properties.loadBalancingRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LoadBalancingRule" + } + } + } + }, + probes: { + serializedName: "properties.probes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Probe" + } + } + } + }, + inboundNatRules: { + serializedName: "properties.inboundNatRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InboundNatRule" + } + } + } + }, + inboundNatPools: { + serializedName: "properties.inboundNatPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InboundNatPool" + } + } + } + }, + outboundRules: { + serializedName: "properties.outboundRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundRule" + } + } + } + }, + resourceGuid: { + serializedName: "properties.resourceGuid", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorDetails: msRest.CompositeMapper = { + serializedName: "ErrorDetails", + type: { + name: "Composite", + className: "ErrorDetails", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorModel: msRest.CompositeMapper = { + serializedName: "Error", + type: { + name: "Composite", + className: "ErrorModel", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetails" + } + } + } + }, + innerError: { + serializedName: "innerError", + type: { + name: "String" + } + } + } + } +}; + +export const AzureAsyncOperationResult: msRest.CompositeMapper = { + serializedName: "AzureAsyncOperationResult", + type: { + name: "Composite", + className: "AzureAsyncOperationResult", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorModel" + } + } + } + } +}; + +export const ManagedServiceIdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { + serializedName: "ManagedServiceIdentity_userAssignedIdentitiesValue", + type: { + name: "Composite", + className: "ManagedServiceIdentityUserAssignedIdentitiesValue", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + clientId: { + readOnly: true, + serializedName: "clientId", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedServiceIdentity: msRest.CompositeMapper = { + serializedName: "ManagedServiceIdentity", + type: { + name: "Composite", + className: "ManagedServiceIdentity", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "ManagedServiceIdentityUserAssignedIdentitiesValue" + } + } + } + } + } + } +}; + +export const EffectiveNetworkSecurityGroupAssociation: msRest.CompositeMapper = { + serializedName: "EffectiveNetworkSecurityGroupAssociation", + type: { + name: "Composite", + className: "EffectiveNetworkSecurityGroupAssociation", + modelProperties: { + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "SubResource" + } + }, + networkInterface: { + serializedName: "networkInterface", + type: { + name: "Composite", + className: "SubResource" + } + } + } + } +}; + +export const EffectiveNetworkSecurityRule: msRest.CompositeMapper = { + serializedName: "EffectiveNetworkSecurityRule", + type: { + name: "Composite", + className: "EffectiveNetworkSecurityRule", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + type: { + name: "String" + } + }, + sourcePortRange: { + serializedName: "sourcePortRange", + type: { + name: "String" + } + }, + destinationPortRange: { + serializedName: "destinationPortRange", + type: { + name: "String" + } + }, + sourcePortRanges: { + serializedName: "sourcePortRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + destinationPortRanges: { + serializedName: "destinationPortRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + sourceAddressPrefix: { + serializedName: "sourceAddressPrefix", + type: { + name: "String" + } + }, + destinationAddressPrefix: { + serializedName: "destinationAddressPrefix", + type: { + name: "String" + } + }, + sourceAddressPrefixes: { + serializedName: "sourceAddressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + destinationAddressPrefixes: { + serializedName: "destinationAddressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + expandedSourceAddressPrefix: { + serializedName: "expandedSourceAddressPrefix", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + expandedDestinationAddressPrefix: { + serializedName: "expandedDestinationAddressPrefix", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + access: { + serializedName: "access", + type: { + name: "String" + } + }, + priority: { + serializedName: "priority", + type: { + name: "Number" + } + }, + direction: { + serializedName: "direction", + type: { + name: "String" + } + } + } + } +}; + +export const EffectiveNetworkSecurityGroup: msRest.CompositeMapper = { + serializedName: "EffectiveNetworkSecurityGroup", + type: { + name: "Composite", + className: "EffectiveNetworkSecurityGroup", + modelProperties: { + networkSecurityGroup: { + serializedName: "networkSecurityGroup", + type: { + name: "Composite", + className: "SubResource" + } + }, + association: { + serializedName: "association", + type: { + name: "Composite", + className: "EffectiveNetworkSecurityGroupAssociation" + } + }, + effectiveSecurityRules: { + serializedName: "effectiveSecurityRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EffectiveNetworkSecurityRule" + } + } + } + }, + tagMap: { + serializedName: "tagMap", + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } + } + } +}; + +export const EffectiveNetworkSecurityGroupListResult: msRest.CompositeMapper = { + serializedName: "EffectiveNetworkSecurityGroupListResult", + type: { + name: "Composite", + className: "EffectiveNetworkSecurityGroupListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EffectiveNetworkSecurityGroup" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const EffectiveRoute: msRest.CompositeMapper = { + serializedName: "EffectiveRoute", + type: { + name: "Composite", + className: "EffectiveRoute", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + source: { + serializedName: "source", + type: { + name: "String" + } + }, + state: { + serializedName: "state", + type: { + name: "String" + } + }, + addressPrefix: { + serializedName: "addressPrefix", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + nextHopIpAddress: { + serializedName: "nextHopIpAddress", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + nextHopType: { + serializedName: "nextHopType", + type: { + name: "String" + } + } + } + } +}; + +export const EffectiveRouteListResult: msRest.CompositeMapper = { + serializedName: "EffectiveRouteListResult", + type: { + name: "Composite", + className: "EffectiveRouteListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EffectiveRoute" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "Operation_display", + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const Availability: msRest.CompositeMapper = { + serializedName: "Availability", + type: { + name: "Composite", + className: "Availability", + modelProperties: { + timeGrain: { + serializedName: "timeGrain", + type: { + name: "String" + } + }, + retention: { + serializedName: "retention", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + +export const Dimension: msRest.CompositeMapper = { + serializedName: "Dimension", + type: { + name: "Composite", + className: "Dimension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + internalName: { + serializedName: "internalName", + type: { + name: "String" + } + } + } + } +}; + +export const MetricSpecification: msRest.CompositeMapper = { + serializedName: "MetricSpecification", + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + availabilities: { + serializedName: "availabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Availability" + } + } + } + }, + enableRegionalMdmAccount: { + serializedName: "enableRegionalMdmAccount", + type: { + name: "Boolean" + } + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + type: { + name: "Boolean" + } + }, + metricFilterPattern: { + serializedName: "metricFilterPattern", + type: { + name: "String" + } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Dimension" + } + } + } + }, + isInternal: { + serializedName: "isInternal", + type: { + name: "Boolean" + } + }, + sourceMdmAccount: { + serializedName: "sourceMdmAccount", + type: { + name: "String" + } + }, + sourceMdmNamespace: { + serializedName: "sourceMdmNamespace", + type: { + name: "String" + } + }, + resourceIdDimensionNameOverride: { + serializedName: "resourceIdDimensionNameOverride", + type: { + name: "String" + } + } + } + } +}; + +export const LogSpecification: msRest.CompositeMapper = { + serializedName: "LogSpecification", + type: { + name: "Composite", + className: "LogSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + +export const OperationPropertiesFormatServiceSpecification: msRest.CompositeMapper = { + serializedName: "OperationPropertiesFormat_serviceSpecification", + type: { + name: "Composite", + className: "OperationPropertiesFormatServiceSpecification", + modelProperties: { + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification" + } + } + } + }, + logSpecifications: { + serializedName: "logSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification" + } + } + } + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + }, + serviceSpecification: { + serializedName: "properties.serviceSpecification", + type: { + name: "Composite", + className: "OperationPropertiesFormatServiceSpecification" + } + } + } + } +}; + +export const VirtualNetworkPeering: msRest.CompositeMapper = { + serializedName: "VirtualNetworkPeering", + type: { + name: "Composite", + className: "VirtualNetworkPeering", + modelProperties: { + ...SubResource.type.modelProperties, + allowVirtualNetworkAccess: { + serializedName: "properties.allowVirtualNetworkAccess", + type: { + name: "Boolean" + } + }, + allowForwardedTraffic: { + serializedName: "properties.allowForwardedTraffic", + type: { + name: "Boolean" + } + }, + allowGatewayTransit: { + serializedName: "properties.allowGatewayTransit", + type: { + name: "Boolean" + } + }, + useRemoteGateways: { + serializedName: "properties.useRemoteGateways", + type: { + name: "Boolean" + } + }, + remoteVirtualNetwork: { + serializedName: "properties.remoteVirtualNetwork", + type: { + name: "Composite", + className: "SubResource" + } + }, + remoteAddressSpace: { + serializedName: "properties.remoteAddressSpace", + type: { + name: "Composite", + className: "AddressSpace" + } + }, + peeringState: { + serializedName: "properties.peeringState", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DhcpOptions: msRest.CompositeMapper = { + serializedName: "DhcpOptions", + type: { + name: "Composite", + className: "DhcpOptions", + modelProperties: { + dnsServers: { + serializedName: "dnsServers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const VirtualNetwork: msRest.CompositeMapper = { + serializedName: "VirtualNetwork", + type: { + name: "Composite", + className: "VirtualNetwork", + modelProperties: { + ...Resource.type.modelProperties, + addressSpace: { + serializedName: "properties.addressSpace", + type: { + name: "Composite", + className: "AddressSpace" + } + }, + dhcpOptions: { + serializedName: "properties.dhcpOptions", + type: { + name: "Composite", + className: "DhcpOptions" + } + }, + subnets: { + serializedName: "properties.subnets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Subnet" + } + } + } + }, + virtualNetworkPeerings: { + serializedName: "properties.virtualNetworkPeerings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkPeering" + } + } + } + }, + resourceGuid: { + serializedName: "properties.resourceGuid", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + enableDdosProtection: { + serializedName: "properties.enableDdosProtection", + defaultValue: false, + type: { + name: "Boolean" + } + }, + enableVmProtection: { + serializedName: "properties.enableVmProtection", + defaultValue: false, + type: { + name: "Boolean" + } + }, + ddosProtectionPlan: { + serializedName: "properties.ddosProtectionPlan", + type: { + name: "Composite", + className: "SubResource" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const IPAddressAvailabilityResult: msRest.CompositeMapper = { + serializedName: "IPAddressAvailabilityResult", + type: { + name: "Composite", + className: "IPAddressAvailabilityResult", + modelProperties: { + available: { + serializedName: "available", + type: { + name: "Boolean" + } + }, + availableIPAddresses: { + serializedName: "availableIPAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const VirtualNetworkUsageName: msRest.CompositeMapper = { + serializedName: "VirtualNetworkUsageName", + type: { + name: "Composite", + className: "VirtualNetworkUsageName", + modelProperties: { + localizedValue: { + readOnly: true, + serializedName: "localizedValue", + type: { + name: "String" + } + }, + value: { + readOnly: true, + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkUsage: msRest.CompositeMapper = { + serializedName: "VirtualNetworkUsage", + type: { + name: "Composite", + className: "VirtualNetworkUsage", + modelProperties: { + currentValue: { + readOnly: true, + serializedName: "currentValue", + type: { + name: "Number" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + limit: { + readOnly: true, + serializedName: "limit", + type: { + name: "Number" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "Composite", + className: "VirtualNetworkUsageName" + } + }, + unit: { + readOnly: true, + serializedName: "unit", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkGatewayListResult: msRest.CompositeMapper = { + serializedName: "VirtualNetworkGatewayListResult", + type: { + name: "Composite", + className: "VirtualNetworkGatewayListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkGateway" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkGatewayListConnectionsResult: msRest.CompositeMapper = { + serializedName: "VirtualNetworkGatewayListConnectionsResult", + type: { + name: "Composite", + className: "VirtualNetworkGatewayListConnectionsResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkGatewayConnectionListEntity" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkGatewayConnectionListResult: msRest.CompositeMapper = { + serializedName: "VirtualNetworkGatewayConnectionListResult", + type: { + name: "Composite", + className: "VirtualNetworkGatewayConnectionListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkGatewayConnection" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const LocalNetworkGatewayListResult: msRest.CompositeMapper = { + serializedName: "LocalNetworkGatewayListResult", + type: { + name: "Composite", + className: "LocalNetworkGatewayListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LocalNetworkGateway" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const LoadBalancerListResult: msRest.CompositeMapper = { + serializedName: "LoadBalancerListResult", + type: { + name: "Composite", + className: "LoadBalancerListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LoadBalancer" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const LoadBalancerBackendAddressPoolListResult: msRest.CompositeMapper = { + serializedName: "LoadBalancerBackendAddressPoolListResult", + type: { + name: "Composite", + className: "LoadBalancerBackendAddressPoolListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackendAddressPool" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const LoadBalancerFrontendIPConfigurationListResult: msRest.CompositeMapper = { + serializedName: "LoadBalancerFrontendIPConfigurationListResult", + type: { + name: "Composite", + className: "LoadBalancerFrontendIPConfigurationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FrontendIPConfiguration" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const InboundNatRuleListResult: msRest.CompositeMapper = { + serializedName: "InboundNatRuleListResult", + type: { + name: "Composite", + className: "InboundNatRuleListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InboundNatRule" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const LoadBalancerLoadBalancingRuleListResult: msRest.CompositeMapper = { + serializedName: "LoadBalancerLoadBalancingRuleListResult", + type: { + name: "Composite", + className: "LoadBalancerLoadBalancingRuleListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LoadBalancingRule" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const LoadBalancerOutboundRuleListResult: msRest.CompositeMapper = { + serializedName: "LoadBalancerOutboundRuleListResult", + type: { + name: "Composite", + className: "LoadBalancerOutboundRuleListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundRule" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkInterfaceListResult: msRest.CompositeMapper = { + serializedName: "NetworkInterfaceListResult", + type: { + name: "Composite", + className: "NetworkInterfaceListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterface" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const LoadBalancerProbeListResult: msRest.CompositeMapper = { + serializedName: "LoadBalancerProbeListResult", + type: { + name: "Composite", + className: "LoadBalancerProbeListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Probe" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkInterfaceIPConfigurationListResult: msRest.CompositeMapper = { + serializedName: "NetworkInterfaceIPConfigurationListResult", + type: { + name: "Composite", + className: "NetworkInterfaceIPConfigurationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceIPConfiguration" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkInterfaceLoadBalancerListResult: msRest.CompositeMapper = { + serializedName: "NetworkInterfaceLoadBalancerListResult", + type: { + name: "Composite", + className: "NetworkInterfaceLoadBalancerListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LoadBalancer" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkInterfaceTapConfigurationListResult: msRest.CompositeMapper = { + serializedName: "NetworkInterfaceTapConfigurationListResult", + type: { + name: "Composite", + className: "NetworkInterfaceTapConfigurationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceTapConfiguration" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkSecurityGroupListResult: msRest.CompositeMapper = { + serializedName: "NetworkSecurityGroupListResult", + type: { + name: "Composite", + className: "NetworkSecurityGroupListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkSecurityGroup" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SecurityRuleListResult: msRest.CompositeMapper = { + serializedName: "SecurityRuleListResult", + type: { + name: "Composite", + className: "SecurityRuleListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecurityRule" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PublicIPAddressListResult: msRest.CompositeMapper = { + serializedName: "PublicIPAddressListResult", + type: { + name: "Composite", + className: "PublicIPAddressListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PublicIPAddress" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const RouteTableListResult: msRest.CompositeMapper = { + serializedName: "RouteTableListResult", + type: { + name: "Composite", + className: "RouteTableListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RouteTable" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const RouteListResult: msRest.CompositeMapper = { + serializedName: "RouteListResult", + type: { + name: "Composite", + className: "RouteListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Route" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkListResult: msRest.CompositeMapper = { + serializedName: "VirtualNetworkListResult", + type: { + name: "Composite", + className: "VirtualNetworkListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetwork" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkListUsageResult: msRest.CompositeMapper = { + serializedName: "VirtualNetworkListUsageResult", + type: { + name: "Composite", + className: "VirtualNetworkListUsageResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkUsage" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SubnetListResult: msRest.CompositeMapper = { + serializedName: "SubnetListResult", + type: { + name: "Composite", + className: "SubnetListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Subnet" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualNetworkPeeringListResult: msRest.CompositeMapper = { + serializedName: "VirtualNetworkPeeringListResult", + type: { + name: "Composite", + className: "VirtualNetworkPeeringListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualNetworkPeering" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/networkInterfaceIPConfigurationsMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/networkInterfaceIPConfigurationsMappers.ts new file mode 100644 index 000000000000..77d873112695 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/networkInterfaceIPConfigurationsMappers.ts @@ -0,0 +1,70 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceIPConfigurationListResult, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/networkInterfaceLoadBalancersMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/networkInterfaceLoadBalancersMappers.ts new file mode 100644 index 000000000000..5c20a2a6feff --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/networkInterfaceLoadBalancersMappers.ts @@ -0,0 +1,70 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceLoadBalancerListResult, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/networkInterfaceTapConfigurationsMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/networkInterfaceTapConfigurationsMappers.ts new file mode 100644 index 000000000000..4fa0afe58475 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/networkInterfaceTapConfigurationsMappers.ts @@ -0,0 +1,70 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkInterfaceTapConfigurationListResult, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/networkInterfacesMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/networkInterfacesMappers.ts new file mode 100644 index 000000000000..b1ab08340fe2 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/networkInterfacesMappers.ts @@ -0,0 +1,77 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EffectiveNetworkSecurityGroup, + EffectiveNetworkSecurityGroupAssociation, + EffectiveNetworkSecurityGroupListResult, + EffectiveNetworkSecurityRule, + EffectiveRoute, + EffectiveRouteListResult, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceListResult, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TagsObject, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/networkSecurityGroupsMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/networkSecurityGroupsMappers.ts new file mode 100644 index 000000000000..a9b5a9cb1388 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/networkSecurityGroupsMappers.ts @@ -0,0 +1,71 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + NetworkSecurityGroupListResult, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TagsObject, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/operationsMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/operationsMappers.ts new file mode 100644 index 000000000000..bf072e23821a --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/operationsMappers.ts @@ -0,0 +1,19 @@ +/* + * 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. + */ + +export { + Availability, + CloudError, + Dimension, + LogSpecification, + MetricSpecification, + Operation, + OperationDisplay, + OperationListResult, + OperationPropertiesFormatServiceSpecification +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/parameters.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/parameters.ts new file mode 100644 index 000000000000..aff1dce482b2 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/parameters.ts @@ -0,0 +1,342 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; + +export const acceptLanguage: msRest.OperationParameter = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } +}; +export const apiVersion: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; +export const backendAddressPoolName: msRest.OperationURLParameter = { + parameterPath: "backendAddressPoolName", + mapper: { + required: true, + serializedName: "backendAddressPoolName", + type: { + name: "String" + } + } +}; +export const defaultSecurityRuleName: msRest.OperationURLParameter = { + parameterPath: "defaultSecurityRuleName", + mapper: { + required: true, + serializedName: "defaultSecurityRuleName", + type: { + name: "String" + } + } +}; +export const expand: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "expand" + ], + mapper: { + serializedName: "$expand", + type: { + name: "String" + } + } +}; +export const frontendIPConfigurationName: msRest.OperationURLParameter = { + parameterPath: "frontendIPConfigurationName", + mapper: { + required: true, + serializedName: "frontendIPConfigurationName", + type: { + name: "String" + } + } +}; +export const gatewayVip: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "gatewayVip" + ], + mapper: { + serializedName: "gatewayVip", + type: { + name: "String" + } + } +}; +export const inboundNatRuleName: msRest.OperationURLParameter = { + parameterPath: "inboundNatRuleName", + mapper: { + required: true, + serializedName: "inboundNatRuleName", + type: { + name: "String" + } + } +}; +export const ipAddress: msRest.OperationQueryParameter = { + parameterPath: "ipAddress", + mapper: { + required: true, + serializedName: "ipAddress", + type: { + name: "String" + } + } +}; +export const ipConfigurationName: msRest.OperationURLParameter = { + parameterPath: "ipConfigurationName", + mapper: { + required: true, + serializedName: "ipConfigurationName", + type: { + name: "String" + } + } +}; +export const loadBalancerName: msRest.OperationURLParameter = { + parameterPath: "loadBalancerName", + mapper: { + required: true, + serializedName: "loadBalancerName", + type: { + name: "String" + } + } +}; +export const loadBalancingRuleName: msRest.OperationURLParameter = { + parameterPath: "loadBalancingRuleName", + mapper: { + required: true, + serializedName: "loadBalancingRuleName", + type: { + name: "String" + } + } +}; +export const localNetworkGatewayName: msRest.OperationURLParameter = { + parameterPath: "localNetworkGatewayName", + mapper: { + required: true, + serializedName: "localNetworkGatewayName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } +}; +export const networkInterfaceName: msRest.OperationURLParameter = { + parameterPath: "networkInterfaceName", + mapper: { + required: true, + serializedName: "networkInterfaceName", + type: { + name: "String" + } + } +}; +export const networkSecurityGroupName: msRest.OperationURLParameter = { + parameterPath: "networkSecurityGroupName", + mapper: { + required: true, + serializedName: "networkSecurityGroupName", + type: { + name: "String" + } + } +}; +export const nextPageLink: msRest.OperationURLParameter = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const outboundRuleName: msRest.OperationURLParameter = { + parameterPath: "outboundRuleName", + mapper: { + required: true, + serializedName: "outboundRuleName", + type: { + name: "String" + } + } +}; +export const peer0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "peer" + ], + mapper: { + serializedName: "peer", + type: { + name: "String" + } + } +}; +export const peer1: msRest.OperationQueryParameter = { + parameterPath: "peer", + mapper: { + required: true, + serializedName: "peer", + type: { + name: "String" + } + } +}; +export const probeName: msRest.OperationURLParameter = { + parameterPath: "probeName", + mapper: { + required: true, + serializedName: "probeName", + type: { + name: "String" + } + } +}; +export const publicIpAddressName: msRest.OperationURLParameter = { + parameterPath: "publicIpAddressName", + mapper: { + required: true, + serializedName: "publicIpAddressName", + type: { + name: "String" + } + } +}; +export const resourceGroupName: msRest.OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + type: { + name: "String" + } + } +}; +export const routeName: msRest.OperationURLParameter = { + parameterPath: "routeName", + mapper: { + required: true, + serializedName: "routeName", + type: { + name: "String" + } + } +}; +export const routeTableName: msRest.OperationURLParameter = { + parameterPath: "routeTableName", + mapper: { + required: true, + serializedName: "routeTableName", + type: { + name: "String" + } + } +}; +export const securityRuleName: msRest.OperationURLParameter = { + parameterPath: "securityRuleName", + mapper: { + required: true, + serializedName: "securityRuleName", + type: { + name: "String" + } + } +}; +export const subnetName: msRest.OperationURLParameter = { + parameterPath: "subnetName", + mapper: { + required: true, + serializedName: "subnetName", + type: { + name: "String" + } + } +}; +export const subscriptionId: msRest.OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } +}; +export const tapConfigurationName: msRest.OperationURLParameter = { + parameterPath: "tapConfigurationName", + mapper: { + required: true, + serializedName: "tapConfigurationName", + type: { + name: "String" + } + } +}; +export const virtualNetworkGatewayConnectionName: msRest.OperationURLParameter = { + parameterPath: "virtualNetworkGatewayConnectionName", + mapper: { + required: true, + serializedName: "virtualNetworkGatewayConnectionName", + type: { + name: "String" + } + } +}; +export const virtualNetworkGatewayName: msRest.OperationURLParameter = { + parameterPath: "virtualNetworkGatewayName", + mapper: { + required: true, + serializedName: "virtualNetworkGatewayName", + type: { + name: "String" + } + } +}; +export const virtualNetworkName: msRest.OperationURLParameter = { + parameterPath: "virtualNetworkName", + mapper: { + required: true, + serializedName: "virtualNetworkName", + type: { + name: "String" + } + } +}; +export const virtualNetworkPeeringName: msRest.OperationURLParameter = { + parameterPath: "virtualNetworkPeeringName", + mapper: { + required: true, + serializedName: "virtualNetworkPeeringName", + type: { + name: "String" + } + } +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/publicIPAddressesMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/publicIPAddressesMappers.ts new file mode 100644 index 000000000000..b9a0dc5608a0 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/publicIPAddressesMappers.ts @@ -0,0 +1,71 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressListResult, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TagsObject, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/routeTablesMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/routeTablesMappers.ts new file mode 100644 index 000000000000..08bccb58f2c6 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/routeTablesMappers.ts @@ -0,0 +1,71 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + RouteTableListResult, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TagsObject, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/routesMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/routesMappers.ts new file mode 100644 index 000000000000..1b47c5651c8e --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/routesMappers.ts @@ -0,0 +1,70 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteListResult, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/securityRulesMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/securityRulesMappers.ts new file mode 100644 index 000000000000..2626e8da90f2 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/securityRulesMappers.ts @@ -0,0 +1,70 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + SecurityRuleListResult, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/subnetsMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/subnetsMappers.ts new file mode 100644 index 000000000000..445688b8632e --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/subnetsMappers.ts @@ -0,0 +1,70 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubnetListResult, + SubResource, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/virtualNetworkGatewayConnectionsMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/virtualNetworkGatewayConnectionsMappers.ts new file mode 100644 index 000000000000..2e10f2ace19b --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/virtualNetworkGatewayConnectionsMappers.ts @@ -0,0 +1,72 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionResetSharedKey, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TagsObject, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayConnectionListResult, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/virtualNetworkGatewaysMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/virtualNetworkGatewaysMappers.ts new file mode 100644 index 000000000000..5ca99ed14e4c --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/virtualNetworkGatewaysMappers.ts @@ -0,0 +1,79 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpPeerStatus, + BgpPeerStatusListResult, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + GatewayRoute, + GatewayRouteListResult, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TagsObject, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewayListConnectionsResult, + VirtualNetworkGatewayListResult, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientIPsecParameters, + VpnClientParameters, + VpnClientRevokedCertificate, + VpnClientRootCertificate, + VpnDeviceScriptParameters +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/virtualNetworkPeeringsMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/virtualNetworkPeeringsMappers.ts new file mode 100644 index 000000000000..14c0d00e2782 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/virtualNetworkPeeringsMappers.ts @@ -0,0 +1,70 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkPeering, + VirtualNetworkPeeringListResult, + VirtualNetworkTap, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/virtualNetworksMappers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/virtualNetworksMappers.ts new file mode 100644 index 000000000000..189b43e4ba4f --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/models/virtualNetworksMappers.ts @@ -0,0 +1,75 @@ +/* + * 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. + */ + +export { + AddressSpace, + ApplicationGatewayBackendAddress, + ApplicationGatewayBackendAddressPool, + ApplicationSecurityGroup, + BackendAddressPool, + BaseResource, + BgpSettings, + CloudError, + ConnectionSharedKey, + DdosSettings, + Delegation, + DhcpOptions, + EndpointService, + FrontendIPConfiguration, + InboundNatPool, + InboundNatRule, + InterfaceEndpoint, + IPAddressAvailabilityResult, + IPConfiguration, + IPConfigurationProfile, + IpsecPolicy, + IpTag, + LoadBalancer, + LoadBalancerSku, + LoadBalancingRule, + LocalNetworkGateway, + NetworkInterface, + NetworkInterfaceDnsSettings, + NetworkInterfaceIPConfiguration, + NetworkInterfaceTapConfiguration, + NetworkSecurityGroup, + OutboundRule, + Probe, + PublicIPAddress, + PublicIPAddressDnsSettings, + PublicIPAddressSku, + Resource, + ResourceNavigationLink, + Route, + RouteTable, + SecurityRule, + ServiceAssociationLink, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + ServiceEndpointPropertiesFormat, + Subnet, + SubResource, + TagsObject, + TunnelConnectionHealth, + VirtualNetwork, + VirtualNetworkConnectionGatewayReference, + VirtualNetworkGateway, + VirtualNetworkGatewayConnection, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkGatewayIPConfiguration, + VirtualNetworkGatewaySku, + VirtualNetworkListResult, + VirtualNetworkListUsageResult, + VirtualNetworkPeering, + VirtualNetworkTap, + VirtualNetworkUsage, + VirtualNetworkUsageName, + VpnClientConfiguration, + VpnClientRevokedCertificate, + VpnClientRootCertificate +} from "../models/mappers"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/networkManagementClient.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/networkManagementClient.ts new file mode 100644 index 000000000000..fb64d2a973d9 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/networkManagementClient.ts @@ -0,0 +1,91 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as Models from "./models"; +import * as Mappers from "./models/mappers"; +import * as operations from "./operations"; +import { NetworkManagementClientContext } from "./networkManagementClientContext"; + + +class NetworkManagementClient extends NetworkManagementClientContext { + // Operation groups + virtualNetworkGateways: operations.VirtualNetworkGateways; + virtualNetworkGatewayConnections: operations.VirtualNetworkGatewayConnections; + localNetworkGateways: operations.LocalNetworkGateways; + 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; + networkSecurityGroups: operations.NetworkSecurityGroups; + securityRules: operations.SecurityRules; + defaultSecurityRules: operations.DefaultSecurityRules; + operations: operations.Operations; + publicIPAddresses: operations.PublicIPAddresses; + routeTables: operations.RouteTables; + routes: operations.Routes; + virtualNetworks: operations.VirtualNetworks; + subnets: operations.Subnets; + virtualNetworkPeerings: operations.VirtualNetworkPeerings; + + /** + * Initializes a new instance of the NetworkManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId The subscription credentials which uniquely identify the Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.NetworkManagementClientOptions) { + super(credentials, subscriptionId, options); + this.virtualNetworkGateways = new operations.VirtualNetworkGateways(this); + this.virtualNetworkGatewayConnections = new operations.VirtualNetworkGatewayConnections(this); + this.localNetworkGateways = new operations.LocalNetworkGateways(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.networkSecurityGroups = new operations.NetworkSecurityGroups(this); + this.securityRules = new operations.SecurityRules(this); + this.defaultSecurityRules = new operations.DefaultSecurityRules(this); + this.operations = new operations.Operations(this); + this.publicIPAddresses = new operations.PublicIPAddresses(this); + this.routeTables = new operations.RouteTables(this); + this.routes = new operations.Routes(this); + this.virtualNetworks = new operations.VirtualNetworks(this); + this.subnets = new operations.Subnets(this); + this.virtualNetworkPeerings = new operations.VirtualNetworkPeerings(this); + } +} + +// Operation Specifications + +export { + NetworkManagementClient, + NetworkManagementClientContext, + Models as NetworkManagementModels, + Mappers as NetworkManagementMappers +}; +export * from "./operations"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/networkManagementClientContext.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/networkManagementClientContext.ts new file mode 100644 index 000000000000..f5b91c0455e5 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/networkManagementClientContext.ts @@ -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. + */ + +import * as Models from "./models"; +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; + +const packageName = "@azure/arm-network-profile-2020-09-01-hybrid"; +const packageVersion = "1.0.0"; + +export class NetworkManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; + apiVersion?: string; + + /** + * Initializes a new instance of the NetworkManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId The subscription credentials which uniquely identify the Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.NetworkManagementClientOptions) { + if (credentials == undefined) { + throw new Error('\'credentials\' cannot be null.'); + } + if (subscriptionId == undefined) { + throw new Error('\'subscriptionId\' cannot be null.'); + } + + if (!options) { + options = {}; + } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + + super(credentials, options); + + this.apiVersion = '2018-11-01'; + this.acceptLanguage = 'en-US'; + this.longRunningOperationRetryTimeout = 30; + this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; + this.requestContentType = "application/json; charset=utf-8"; + this.credentials = credentials; + this.subscriptionId = subscriptionId; + + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + this.acceptLanguage = options.acceptLanguage; + } + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; + } + } +} diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/defaultSecurityRules.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/defaultSecurityRules.ts new file mode 100644 index 000000000000..3d992449e86f --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/defaultSecurityRules.ts @@ -0,0 +1,198 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/defaultSecurityRulesMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a DefaultSecurityRules. */ +export class DefaultSecurityRules { + private readonly client: NetworkManagementClientContext; + + /** + * Create a DefaultSecurityRules. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Gets all default security rules in a network security group. + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, networkSecurityGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param callback The callback + */ + list(resourceGroupName: string, networkSecurityGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, networkSecurityGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, networkSecurityGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkSecurityGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get the specified default network security rule. + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param defaultSecurityRuleName The name of the default security rule. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, networkSecurityGroupName: string, defaultSecurityRuleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param defaultSecurityRuleName The name of the default security rule. + * @param callback The callback + */ + get(resourceGroupName: string, networkSecurityGroupName: string, defaultSecurityRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param defaultSecurityRuleName The name of the default security rule. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, networkSecurityGroupName: string, defaultSecurityRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, networkSecurityGroupName: string, defaultSecurityRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkSecurityGroupName, + defaultSecurityRuleName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets all default security rules in a network security group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkSecurityGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecurityRuleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkSecurityGroupName, + Parameters.defaultSecurityRuleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecurityRule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecurityRuleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/inboundNatRules.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/inboundNatRules.ts new file mode 100644 index 000000000000..576368737148 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/inboundNatRules.ts @@ -0,0 +1,333 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/inboundNatRulesMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a InboundNatRules. */ +export class InboundNatRules { + private readonly client: NetworkManagementClientContext; + + /** + * Create a InboundNatRules. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Gets all the inbound nat rules in a load balancer. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param callback The callback + */ + list(resourceGroupName: string, loadBalancerName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, loadBalancerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + loadBalancerName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified load balancer inbound nat rule. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param inboundNatRuleName The name of the inbound nat rule. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,loadBalancerName,inboundNatRuleName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets the specified load balancer inbound nat rule. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param inboundNatRuleName The name of the inbound nat rule. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: Models.InboundNatRulesGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param inboundNatRuleName The name of the inbound nat rule. + * @param callback The callback + */ + get(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param inboundNatRuleName The name of the inbound nat rule. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options: Models.InboundNatRulesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: Models.InboundNatRulesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + loadBalancerName, + inboundNatRuleName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a load balancer inbound nat rule. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param inboundNatRuleName The name of the inbound nat rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound nat rule + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: Models.InboundNatRule, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,loadBalancerName,inboundNatRuleName,inboundNatRuleParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes the specified load balancer inbound nat rule. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param inboundNatRuleName The name of the inbound nat rule. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + loadBalancerName, + inboundNatRuleName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Creates or updates a load balancer inbound nat rule. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param inboundNatRuleName The name of the inbound nat rule. + * @param inboundNatRuleParameters Parameters supplied to the create or update inbound nat rule + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: Models.InboundNatRule, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + loadBalancerName, + inboundNatRuleName, + inboundNatRuleParameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Gets all the inbound nat rules in a load balancer. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.InboundNatRuleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.inboundNatRuleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.expand + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.InboundNatRule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.inboundNatRuleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.inboundNatRuleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "inboundNatRuleParameters", + mapper: { + ...Mappers.InboundNatRule, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.InboundNatRule + }, + 201: { + bodyMapper: Mappers.InboundNatRule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.InboundNatRuleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/index.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/index.ts new file mode 100644 index 000000000000..96fcfe97e6d7 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/index.ts @@ -0,0 +1,35 @@ +/* + * 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. + */ + +export * from "./virtualNetworkGateways"; +export * from "./virtualNetworkGatewayConnections"; +export * from "./localNetworkGateways"; +export * from "./loadBalancers"; +export * from "./loadBalancerBackendAddressPools"; +export * from "./loadBalancerFrontendIPConfigurations"; +export * from "./inboundNatRules"; +export * from "./loadBalancerLoadBalancingRules"; +export * from "./loadBalancerOutboundRules"; +export * from "./loadBalancerNetworkInterfaces"; +export * from "./loadBalancerProbes"; +export * from "./networkInterfaces"; +export * from "./networkInterfaceIPConfigurations"; +export * from "./networkInterfaceLoadBalancers"; +export * from "./networkInterfaceTapConfigurations"; +export * from "./networkSecurityGroups"; +export * from "./securityRules"; +export * from "./defaultSecurityRules"; +export * from "./operations"; +export * from "./publicIPAddresses"; +export * from "./routeTables"; +export * from "./routes"; +export * from "./virtualNetworks"; +export * from "./subnets"; +export * from "./virtualNetworkPeerings"; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerBackendAddressPools.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerBackendAddressPools.ts new file mode 100644 index 000000000000..b50e2f3340f1 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerBackendAddressPools.ts @@ -0,0 +1,198 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/loadBalancerBackendAddressPoolsMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a LoadBalancerBackendAddressPools. */ +export class LoadBalancerBackendAddressPools { + private readonly client: NetworkManagementClientContext; + + /** + * Create a LoadBalancerBackendAddressPools. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Gets all the load balancer backed address pools. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param callback The callback + */ + list(resourceGroupName: string, loadBalancerName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, loadBalancerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + loadBalancerName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets load balancer backend address pool. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param backendAddressPoolName The name of the backend address pool. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, loadBalancerName: string, backendAddressPoolName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param backendAddressPoolName The name of the backend address pool. + * @param callback The callback + */ + get(resourceGroupName: string, loadBalancerName: string, backendAddressPoolName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param backendAddressPoolName The name of the backend address pool. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, loadBalancerName: string, backendAddressPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, loadBalancerName: string, backendAddressPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + loadBalancerName, + backendAddressPoolName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets all the load balancer backed address pools. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancerBackendAddressPoolListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.backendAddressPoolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackendAddressPool + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancerBackendAddressPoolListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerFrontendIPConfigurations.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerFrontendIPConfigurations.ts new file mode 100644 index 000000000000..29a3afc374c0 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerFrontendIPConfigurations.ts @@ -0,0 +1,198 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/loadBalancerFrontendIPConfigurationsMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a LoadBalancerFrontendIPConfigurations. */ +export class LoadBalancerFrontendIPConfigurations { + private readonly client: NetworkManagementClientContext; + + /** + * Create a LoadBalancerFrontendIPConfigurations. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Gets all the load balancer frontend IP configurations. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param callback The callback + */ + list(resourceGroupName: string, loadBalancerName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, loadBalancerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + loadBalancerName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets load balancer frontend IP configuration. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param frontendIPConfigurationName The name of the frontend IP configuration. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, loadBalancerName: string, frontendIPConfigurationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param frontendIPConfigurationName The name of the frontend IP configuration. + * @param callback The callback + */ + get(resourceGroupName: string, loadBalancerName: string, frontendIPConfigurationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param frontendIPConfigurationName The name of the frontend IP configuration. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, loadBalancerName: string, frontendIPConfigurationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, loadBalancerName: string, frontendIPConfigurationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + loadBalancerName, + frontendIPConfigurationName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets all the load balancer frontend IP configurations. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancerFrontendIPConfigurationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations/{frontendIPConfigurationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.frontendIPConfigurationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FrontendIPConfiguration + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancerFrontendIPConfigurationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerLoadBalancingRules.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerLoadBalancingRules.ts new file mode 100644 index 000000000000..db3578235c41 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerLoadBalancingRules.ts @@ -0,0 +1,198 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/loadBalancerLoadBalancingRulesMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a LoadBalancerLoadBalancingRules. */ +export class LoadBalancerLoadBalancingRules { + private readonly client: NetworkManagementClientContext; + + /** + * Create a LoadBalancerLoadBalancingRules. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Gets all the load balancing rules in a load balancer. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param callback The callback + */ + list(resourceGroupName: string, loadBalancerName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, loadBalancerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + loadBalancerName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets the specified load balancer load balancing rule. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param loadBalancingRuleName The name of the load balancing rule. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, loadBalancerName: string, loadBalancingRuleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param loadBalancingRuleName The name of the load balancing rule. + * @param callback The callback + */ + get(resourceGroupName: string, loadBalancerName: string, loadBalancingRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param loadBalancingRuleName The name of the load balancing rule. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, loadBalancerName: string, loadBalancingRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, loadBalancerName: string, loadBalancingRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + loadBalancerName, + loadBalancingRuleName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets all the load balancing rules in a load balancer. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancerLoadBalancingRuleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.loadBalancingRuleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancingRule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancerLoadBalancingRuleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerNetworkInterfaces.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerNetworkInterfaces.ts new file mode 100644 index 000000000000..32fdc45899ac --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerNetworkInterfaces.ts @@ -0,0 +1,136 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/loadBalancerNetworkInterfacesMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a LoadBalancerNetworkInterfaces. */ +export class LoadBalancerNetworkInterfaces { + private readonly client: NetworkManagementClientContext; + + /** + * Create a LoadBalancerNetworkInterfaces. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Gets associated load balancer network interfaces. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param callback The callback + */ + list(resourceGroupName: string, loadBalancerName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, loadBalancerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + loadBalancerName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets associated load balancer network interfaces. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/networkInterfaces", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerOutboundRules.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerOutboundRules.ts new file mode 100644 index 000000000000..6cda857265fa --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerOutboundRules.ts @@ -0,0 +1,198 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/loadBalancerOutboundRulesMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a LoadBalancerOutboundRules. */ +export class LoadBalancerOutboundRules { + private readonly client: NetworkManagementClientContext; + + /** + * Create a LoadBalancerOutboundRules. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Gets all the outbound rules in a load balancer. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param callback The callback + */ + list(resourceGroupName: string, loadBalancerName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, loadBalancerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + loadBalancerName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets the specified load balancer outbound rule. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param outboundRuleName The name of the outbound rule. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, loadBalancerName: string, outboundRuleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param outboundRuleName The name of the outbound rule. + * @param callback The callback + */ + get(resourceGroupName: string, loadBalancerName: string, outboundRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param outboundRuleName The name of the outbound rule. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, loadBalancerName: string, outboundRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, loadBalancerName: string, outboundRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + loadBalancerName, + outboundRuleName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets all the outbound rules in a load balancer. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancerOutboundRuleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules/{outboundRuleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.outboundRuleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OutboundRule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancerOutboundRuleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerProbes.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerProbes.ts new file mode 100644 index 000000000000..57d8f7ca5390 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancerProbes.ts @@ -0,0 +1,198 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/loadBalancerProbesMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a LoadBalancerProbes. */ +export class LoadBalancerProbes { + private readonly client: NetworkManagementClientContext; + + /** + * Create a LoadBalancerProbes. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Gets all the load balancer probes. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param callback The callback + */ + list(resourceGroupName: string, loadBalancerName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, loadBalancerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + loadBalancerName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets load balancer probe. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param probeName The name of the probe. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, loadBalancerName: string, probeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param probeName The name of the probe. + * @param callback The callback + */ + get(resourceGroupName: string, loadBalancerName: string, probeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param probeName The name of the probe. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, loadBalancerName: string, probeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, loadBalancerName: string, probeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + loadBalancerName, + probeName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets all the load balancer probes. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancerProbeListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.probeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Probe + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancerProbeListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancers.ts new file mode 100644 index 000000000000..131be195b0e8 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/loadBalancers.ts @@ -0,0 +1,474 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/loadBalancersMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a LoadBalancers. */ +export class LoadBalancers { + private readonly client: NetworkManagementClientContext; + + /** + * Create a LoadBalancers. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Deletes the specified load balancer. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,loadBalancerName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets the specified load balancer. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, loadBalancerName: string, options?: Models.LoadBalancersGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param callback The callback + */ + get(resourceGroupName: string, loadBalancerName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, loadBalancerName: string, options: Models.LoadBalancersGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, loadBalancerName: string, options?: Models.LoadBalancersGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + loadBalancerName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a load balancer. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param parameters Parameters supplied to the create or update load balancer operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, loadBalancerName: string, parameters: Models.LoadBalancer, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,loadBalancerName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates a load balancer tags. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param parameters Parameters supplied to update load balancer tags. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, loadBalancerName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTags(resourceGroupName,loadBalancerName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets all the load balancers in a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listAll(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listAll(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listAll(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAll(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listAllOperationSpec, + callback) as Promise; + } + + /** + * Gets all the load balancers in a resource group. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified load balancer. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, loadBalancerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + loadBalancerName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Creates or updates a load balancer. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param parameters Parameters supplied to the create or update load balancer operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, loadBalancerName: string, parameters: Models.LoadBalancer, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + loadBalancerName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Updates a load balancer tags. + * @param resourceGroupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param parameters Parameters supplied to update load balancer tags. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateTags(resourceGroupName: string, loadBalancerName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + loadBalancerName, + parameters, + options + }, + beginUpdateTagsOperationSpec, + options); + } + + /** + * Gets all the load balancers in a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listAllNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listAllNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listAllNextOperationSpec, + callback) as Promise; + } + + /** + * Gets all the load balancers in a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.expand + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancer + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAllOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/loadBalancers", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.LoadBalancer, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.LoadBalancer + }, + 201: { + bodyMapper: Mappers.LoadBalancer + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.loadBalancerName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagsObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.LoadBalancer + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAllNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoadBalancerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/localNetworkGateways.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/localNetworkGateways.ts new file mode 100644 index 000000000000..117e2f49c788 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/localNetworkGateways.ts @@ -0,0 +1,377 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/localNetworkGatewaysMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a LocalNetworkGateways. */ +export class LocalNetworkGateways { + private readonly client: NetworkManagementClientContext; + + /** + * Create a LocalNetworkGateways. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Creates or updates a local network gateway in the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param localNetworkGatewayName The name of the local network gateway. + * @param parameters Parameters supplied to the create or update local network gateway operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, localNetworkGatewayName: string, parameters: Models.LocalNetworkGateway, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,localNetworkGatewayName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets the specified local network gateway in a resource group. + * @param resourceGroupName The name of the resource group. + * @param localNetworkGatewayName The name of the local network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, localNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param localNetworkGatewayName The name of the local network gateway. + * @param callback The callback + */ + get(resourceGroupName: string, localNetworkGatewayName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param localNetworkGatewayName The name of the local network gateway. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, localNetworkGatewayName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, localNetworkGatewayName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + localNetworkGatewayName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified local network gateway. + * @param resourceGroupName The name of the resource group. + * @param localNetworkGatewayName The name of the local network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, localNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,localNetworkGatewayName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Updates a local network gateway tags. + * @param resourceGroupName The name of the resource group. + * @param localNetworkGatewayName The name of the local network gateway. + * @param parameters Parameters supplied to update local network gateway tags. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, localNetworkGatewayName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTags(resourceGroupName,localNetworkGatewayName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets all the local network gateways in a resource group. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a local network gateway in the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param localNetworkGatewayName The name of the local network gateway. + * @param parameters Parameters supplied to the create or update local network gateway operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, localNetworkGatewayName: string, parameters: Models.LocalNetworkGateway, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + localNetworkGatewayName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes the specified local network gateway. + * @param resourceGroupName The name of the resource group. + * @param localNetworkGatewayName The name of the local network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, localNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + localNetworkGatewayName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Updates a local network gateway tags. + * @param resourceGroupName The name of the resource group. + * @param localNetworkGatewayName The name of the local network gateway. + * @param parameters Parameters supplied to update local network gateway tags. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateTags(resourceGroupName: string, localNetworkGatewayName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + localNetworkGatewayName, + parameters, + options + }, + beginUpdateTagsOperationSpec, + options); + } + + /** + * Gets all the local network gateways in a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.localNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LocalNetworkGateway + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LocalNetworkGatewayListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.localNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.LocalNetworkGateway, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.LocalNetworkGateway + }, + 201: { + bodyMapper: Mappers.LocalNetworkGateway + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.localNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.localNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagsObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.LocalNetworkGateway + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LocalNetworkGatewayListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/networkInterfaceIPConfigurations.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/networkInterfaceIPConfigurations.ts new file mode 100644 index 000000000000..9416a5b86be0 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/networkInterfaceIPConfigurations.ts @@ -0,0 +1,198 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/networkInterfaceIPConfigurationsMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a NetworkInterfaceIPConfigurations. */ +export class NetworkInterfaceIPConfigurations { + private readonly client: NetworkManagementClientContext; + + /** + * Create a NetworkInterfaceIPConfigurations. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Get all ip configurations in a network interface + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, networkInterfaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param callback The callback + */ + list(resourceGroupName: string, networkInterfaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, networkInterfaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, networkInterfaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkInterfaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets the specified network interface ip configuration. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the ip configuration name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, networkInterfaceName: string, ipConfigurationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the ip configuration name. + * @param callback The callback + */ + get(resourceGroupName: string, networkInterfaceName: string, ipConfigurationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param ipConfigurationName The name of the ip configuration name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, networkInterfaceName: string, ipConfigurationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, networkInterfaceName: string, ipConfigurationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkInterfaceName, + ipConfigurationName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Get all ip configurations in a network interface + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaceIPConfigurationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + Parameters.ipConfigurationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaceIPConfiguration + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaceIPConfigurationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/networkInterfaceLoadBalancers.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/networkInterfaceLoadBalancers.ts new file mode 100644 index 000000000000..108f1d99292e --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/networkInterfaceLoadBalancers.ts @@ -0,0 +1,136 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/networkInterfaceLoadBalancersMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a NetworkInterfaceLoadBalancers. */ +export class NetworkInterfaceLoadBalancers { + private readonly client: NetworkManagementClientContext; + + /** + * Create a NetworkInterfaceLoadBalancers. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * List all load balancers in a network interface. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, networkInterfaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param callback The callback + */ + list(resourceGroupName: string, networkInterfaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, networkInterfaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, networkInterfaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkInterfaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * List all load balancers in a network interface. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/loadBalancers", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaceLoadBalancerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaceLoadBalancerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/networkInterfaceTapConfigurations.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/networkInterfaceTapConfigurations.ts new file mode 100644 index 000000000000..fbc360a85830 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/networkInterfaceTapConfigurations.ts @@ -0,0 +1,332 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/networkInterfaceTapConfigurationsMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a NetworkInterfaceTapConfigurations. */ +export class NetworkInterfaceTapConfigurations { + private readonly client: NetworkManagementClientContext; + + /** + * Create a NetworkInterfaceTapConfigurations. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the tap configuration. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,networkInterfaceName,tapConfigurationName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Get the specified tap configuration on a network interface. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the tap configuration. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the tap configuration. + * @param callback The callback + */ + get(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the tap configuration. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkInterfaceName, + tapConfigurationName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a Tap configuration in the specified NetworkInterface. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, tapConfigurationParameters: Models.NetworkInterfaceTapConfiguration, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,networkInterfaceName,tapConfigurationName,tapConfigurationParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get all Tap configurations in a network interface + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, networkInterfaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param callback The callback + */ + list(resourceGroupName: string, networkInterfaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, networkInterfaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, networkInterfaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkInterfaceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified tap configuration from the NetworkInterface. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the tap configuration. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + networkInterfaceName, + tapConfigurationName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Creates or updates a Tap configuration in the specified NetworkInterface. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param tapConfigurationName The name of the tap configuration. + * @param tapConfigurationParameters Parameters supplied to the create or update tap configuration + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, tapConfigurationParameters: Models.NetworkInterfaceTapConfiguration, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + networkInterfaceName, + tapConfigurationName, + tapConfigurationParameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Get all Tap configurations in a network interface + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + Parameters.tapConfigurationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaceTapConfiguration + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaceTapConfigurationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + Parameters.tapConfigurationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + Parameters.tapConfigurationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "tapConfigurationParameters", + mapper: { + ...Mappers.NetworkInterfaceTapConfiguration, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaceTapConfiguration + }, + 201: { + bodyMapper: Mappers.NetworkInterfaceTapConfiguration + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaceTapConfigurationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/networkInterfaces.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/networkInterfaces.ts new file mode 100644 index 000000000000..9c2914ab4e1f --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/networkInterfaces.ts @@ -0,0 +1,586 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/networkInterfacesMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a NetworkInterfaces. */ +export class NetworkInterfaces { + private readonly client: NetworkManagementClientContext; + + /** + * Create a NetworkInterfaces. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Deletes the specified network interface. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, networkInterfaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,networkInterfaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets information about the specified network interface. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, networkInterfaceName: string, options?: Models.NetworkInterfacesGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param callback The callback + */ + get(resourceGroupName: string, networkInterfaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, networkInterfaceName: string, options: Models.NetworkInterfacesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, networkInterfaceName: string, options?: Models.NetworkInterfacesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkInterfaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a network interface. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param parameters Parameters supplied to the create or update network interface operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: Models.NetworkInterface, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,networkInterfaceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates a network interface tags. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param parameters Parameters supplied to update network interface tags. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, networkInterfaceName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTags(resourceGroupName,networkInterfaceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets all network interfaces in a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listAll(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listAll(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listAll(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAll(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listAllOperationSpec, + callback) as Promise; + } + + /** + * Gets all network interfaces in a resource group. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets all route tables applied to a network interface. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param [options] The optional parameters + * @returns Promise + */ + getEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginGetEffectiveRouteTable(resourceGroupName,networkInterfaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets all network security groups applied to a network interface. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param [options] The optional parameters + * @returns Promise + */ + listEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginListEffectiveNetworkSecurityGroups(resourceGroupName,networkInterfaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes the specified network interface. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, networkInterfaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + networkInterfaceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Creates or updates a network interface. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param parameters Parameters supplied to the create or update network interface operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: Models.NetworkInterface, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + networkInterfaceName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Updates a network interface tags. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param parameters Parameters supplied to update network interface tags. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateTags(resourceGroupName: string, networkInterfaceName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + networkInterfaceName, + parameters, + options + }, + beginUpdateTagsOperationSpec, + options); + } + + /** + * Gets all route tables applied to a network interface. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param [options] The optional parameters + * @returns Promise + */ + beginGetEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + networkInterfaceName, + options + }, + beginGetEffectiveRouteTableOperationSpec, + options); + } + + /** + * Gets all network security groups applied to a network interface. + * @param resourceGroupName The name of the resource group. + * @param networkInterfaceName The name of the network interface. + * @param [options] The optional parameters + * @returns Promise + */ + beginListEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + networkInterfaceName, + options + }, + beginListEffectiveNetworkSecurityGroupsOperationSpec, + options); + } + + /** + * Gets all network interfaces in a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listAllNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listAllNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listAllNextOperationSpec, + callback) as Promise; + } + + /** + * Gets all network interfaces in a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.expand + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkInterface + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAllOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.NetworkInterface, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.NetworkInterface + }, + 201: { + bodyMapper: Mappers.NetworkInterface + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagsObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.NetworkInterface + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginGetEffectiveRouteTableOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveRouteTable", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EffectiveRouteListResult + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginListEffectiveNetworkSecurityGroupsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveNetworkSecurityGroups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EffectiveNetworkSecurityGroupListResult + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAllNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/networkSecurityGroups.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/networkSecurityGroups.ts new file mode 100644 index 000000000000..d6b9644d897f --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/networkSecurityGroups.ts @@ -0,0 +1,474 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/networkSecurityGroupsMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a NetworkSecurityGroups. */ +export class NetworkSecurityGroups { + private readonly client: NetworkManagementClientContext; + + /** + * Create a NetworkSecurityGroups. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Deletes the specified network security group. + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, networkSecurityGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,networkSecurityGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets the specified network security group. + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, networkSecurityGroupName: string, options?: Models.NetworkSecurityGroupsGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param callback The callback + */ + get(resourceGroupName: string, networkSecurityGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, networkSecurityGroupName: string, options: Models.NetworkSecurityGroupsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, networkSecurityGroupName: string, options?: Models.NetworkSecurityGroupsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkSecurityGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a network security group in the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param parameters Parameters supplied to the create or update network security group operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, parameters: Models.NetworkSecurityGroup, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,networkSecurityGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates a network security group tags. + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param parameters Parameters supplied to update network security group tags. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, networkSecurityGroupName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTags(resourceGroupName,networkSecurityGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets all network security groups in a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listAll(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listAll(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listAll(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAll(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listAllOperationSpec, + callback) as Promise; + } + + /** + * Gets all network security groups in a resource group. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified network security group. + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, networkSecurityGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + networkSecurityGroupName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Creates or updates a network security group in the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param parameters Parameters supplied to the create or update network security group operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, parameters: Models.NetworkSecurityGroup, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + networkSecurityGroupName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Updates a network security group tags. + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param parameters Parameters supplied to update network security group tags. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateTags(resourceGroupName: string, networkSecurityGroupName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + networkSecurityGroupName, + parameters, + options + }, + beginUpdateTagsOperationSpec, + options); + } + + /** + * Gets all network security groups in a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listAllNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listAllNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listAllNextOperationSpec, + callback) as Promise; + } + + /** + * Gets all network security groups in a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkSecurityGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.expand + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAllOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkSecurityGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkSecurityGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.NetworkSecurityGroup, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityGroup + }, + 201: { + bodyMapper: Mappers.NetworkSecurityGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkSecurityGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagsObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAllNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/operations.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/operations.ts new file mode 100644 index 000000000000..faa321cdd45e --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/operations.ts @@ -0,0 +1,123 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/operationsMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a Operations. */ +export class Operations { + private readonly client: NetworkManagementClientContext; + + /** + * Create a Operations. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Lists all of the available Network Rest API operations. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the available Network Rest API operations. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Network/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/publicIPAddresses.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/publicIPAddresses.ts new file mode 100644 index 000000000000..3c95902170e8 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/publicIPAddresses.ts @@ -0,0 +1,474 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/publicIPAddressesMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a PublicIPAddresses. */ +export class PublicIPAddresses { + private readonly client: NetworkManagementClientContext; + + /** + * Create a PublicIPAddresses. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Deletes the specified public IP address. + * @param resourceGroupName The name of the resource group. + * @param publicIpAddressName The name of the subnet. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, publicIpAddressName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,publicIpAddressName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets the specified public IP address in a specified resource group. + * @param resourceGroupName The name of the resource group. + * @param publicIpAddressName The name of the subnet. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, publicIpAddressName: string, options?: Models.PublicIPAddressesGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param publicIpAddressName The name of the subnet. + * @param callback The callback + */ + get(resourceGroupName: string, publicIpAddressName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param publicIpAddressName The name of the subnet. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, publicIpAddressName: string, options: Models.PublicIPAddressesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, publicIpAddressName: string, options?: Models.PublicIPAddressesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + publicIpAddressName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a static or dynamic public IP address. + * @param resourceGroupName The name of the resource group. + * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to the create or update public IP address operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, publicIpAddressName: string, parameters: Models.PublicIPAddress, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,publicIpAddressName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates public IP address tags. + * @param resourceGroupName The name of the resource group. + * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to update public IP address tags. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, publicIpAddressName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTags(resourceGroupName,publicIpAddressName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets all the public IP addresses in a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listAll(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listAll(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listAll(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAll(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listAllOperationSpec, + callback) as Promise; + } + + /** + * Gets all public IP addresses in a resource group. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified public IP address. + * @param resourceGroupName The name of the resource group. + * @param publicIpAddressName The name of the subnet. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, publicIpAddressName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + publicIpAddressName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Creates or updates a static or dynamic public IP address. + * @param resourceGroupName The name of the resource group. + * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to the create or update public IP address operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, publicIpAddressName: string, parameters: Models.PublicIPAddress, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + publicIpAddressName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Updates public IP address tags. + * @param resourceGroupName The name of the resource group. + * @param publicIpAddressName The name of the public IP address. + * @param parameters Parameters supplied to update public IP address tags. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateTags(resourceGroupName: string, publicIpAddressName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + publicIpAddressName, + parameters, + options + }, + beginUpdateTagsOperationSpec, + options); + } + + /** + * Gets all the public IP addresses in a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listAllNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listAllNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listAllNextOperationSpec, + callback) as Promise; + } + + /** + * Gets all public IP addresses in a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.publicIpAddressName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.expand + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PublicIPAddress + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAllOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPAddresses", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PublicIPAddressListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PublicIPAddressListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.publicIpAddressName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.publicIpAddressName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PublicIPAddress, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PublicIPAddress + }, + 201: { + bodyMapper: Mappers.PublicIPAddress + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.publicIpAddressName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagsObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PublicIPAddress + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAllNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PublicIPAddressListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PublicIPAddressListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/routeTables.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/routeTables.ts new file mode 100644 index 000000000000..90d4c233ef1a --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/routeTables.ts @@ -0,0 +1,474 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/routeTablesMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a RouteTables. */ +export class RouteTables { + private readonly client: NetworkManagementClientContext; + + /** + * Create a RouteTables. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Deletes the specified route table. + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, routeTableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,routeTableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets the specified route table. + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, routeTableName: string, options?: Models.RouteTablesGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param callback The callback + */ + get(resourceGroupName: string, routeTableName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, routeTableName: string, options: Models.RouteTablesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, routeTableName: string, options?: Models.RouteTablesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + routeTableName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or updates a route table in a specified resource group. + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param parameters Parameters supplied to the create or update route table operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, routeTableName: string, parameters: Models.RouteTable, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,routeTableName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates a route table tags. + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param parameters Parameters supplied to update route table tags. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, routeTableName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTags(resourceGroupName,routeTableName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets all route tables in a resource group. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets all route tables in a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listAll(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listAll(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listAll(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAll(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listAllOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified route table. + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, routeTableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + routeTableName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Create or updates a route table in a specified resource group. + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param parameters Parameters supplied to the create or update route table operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, routeTableName: string, parameters: Models.RouteTable, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + routeTableName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Updates a route table tags. + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param parameters Parameters supplied to update route table tags. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateTags(resourceGroupName: string, routeTableName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + routeTableName, + parameters, + options + }, + beginUpdateTagsOperationSpec, + options); + } + + /** + * Gets all route tables in a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Gets all route tables in a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listAllNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listAllNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listAllNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.routeTableName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.expand + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RouteTable + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RouteTableListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAllOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/routeTables", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RouteTableListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.routeTableName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.routeTableName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.RouteTable, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.RouteTable + }, + 201: { + bodyMapper: Mappers.RouteTable + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.routeTableName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagsObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.RouteTable + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RouteTableListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAllNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RouteTableListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/routes.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/routes.ts new file mode 100644 index 000000000000..a73e208bbbce --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/routes.ts @@ -0,0 +1,330 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/routesMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a Routes. */ +export class Routes { + private readonly client: NetworkManagementClientContext; + + /** + * Create a Routes. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Deletes the specified route from a route table. + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, routeTableName: string, routeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,routeTableName,routeName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets the specified route from a route table. + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, routeTableName: string, routeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @param callback The callback + */ + get(resourceGroupName: string, routeTableName: string, routeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, routeTableName: string, routeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, routeTableName: string, routeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + routeTableName, + routeName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a route in the specified route table. + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @param routeParameters Parameters supplied to the create or update route operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, routeTableName: string, routeName: string, routeParameters: Models.Route, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,routeTableName,routeName,routeParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets all routes in a route table. + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, routeTableName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param callback The callback + */ + list(resourceGroupName: string, routeTableName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, routeTableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, routeTableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + routeTableName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified route from a route table. + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, routeTableName: string, routeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + routeTableName, + routeName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Creates or updates a route in the specified route table. + * @param resourceGroupName The name of the resource group. + * @param routeTableName The name of the route table. + * @param routeName The name of the route. + * @param routeParameters Parameters supplied to the create or update route operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, routeTableName: string, routeName: string, routeParameters: Models.Route, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + routeTableName, + routeName, + routeParameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Gets all routes in a route table. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.routeTableName, + Parameters.routeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Route + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.routeTableName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RouteListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.routeTableName, + Parameters.routeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.routeTableName, + Parameters.routeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "routeParameters", + mapper: { + ...Mappers.Route, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Route + }, + 201: { + bodyMapper: Mappers.Route + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RouteListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/securityRules.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/securityRules.ts new file mode 100644 index 000000000000..447da4af4dd4 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/securityRules.ts @@ -0,0 +1,332 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/securityRulesMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a SecurityRules. */ +export class SecurityRules { + private readonly client: NetworkManagementClientContext; + + /** + * Create a SecurityRules. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Deletes the specified network security rule. + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,networkSecurityGroupName,securityRuleName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Get the specified network security rule. + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @param callback The callback + */ + get(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkSecurityGroupName, + securityRuleName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a security rule in the specified network security group. + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @param securityRuleParameters Parameters supplied to the create or update network security rule + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: Models.SecurityRule, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,networkSecurityGroupName,securityRuleName,securityRuleParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets all security rules in a network security group. + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, networkSecurityGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param callback The callback + */ + list(resourceGroupName: string, networkSecurityGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, networkSecurityGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, networkSecurityGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + networkSecurityGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified network security rule. + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + networkSecurityGroupName, + securityRuleName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Creates or updates a security rule in the specified network security group. + * @param resourceGroupName The name of the resource group. + * @param networkSecurityGroupName The name of the network security group. + * @param securityRuleName The name of the security rule. + * @param securityRuleParameters Parameters supplied to the create or update network security rule + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: Models.SecurityRule, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + networkSecurityGroupName, + securityRuleName, + securityRuleParameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Gets all security rules in a network security group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkSecurityGroupName, + Parameters.securityRuleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecurityRule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkSecurityGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecurityRuleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkSecurityGroupName, + Parameters.securityRuleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.networkSecurityGroupName, + Parameters.securityRuleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "securityRuleParameters", + mapper: { + ...Mappers.SecurityRule, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SecurityRule + }, + 201: { + bodyMapper: Mappers.SecurityRule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecurityRuleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/subnets.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/subnets.ts new file mode 100644 index 000000000000..f0ec856b7fda --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/subnets.ts @@ -0,0 +1,331 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/subnetsMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a Subnets. */ +export class Subnets { + private readonly client: NetworkManagementClientContext; + + /** + * Create a Subnets. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Deletes the specified subnet. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,virtualNetworkName,subnetName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets the specified subnet by virtual network and resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: Models.SubnetsGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @param callback The callback + */ + get(resourceGroupName: string, virtualNetworkName: string, subnetName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options: Models.SubnetsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: Models.SubnetsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + virtualNetworkName, + subnetName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a subnet in the specified virtual network. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @param subnetParameters Parameters supplied to the create or update subnet operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, virtualNetworkName: string, subnetName: string, subnetParameters: Models.Subnet, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,virtualNetworkName,subnetName,subnetParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets all subnets in a virtual network. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, virtualNetworkName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param callback The callback + */ + list(resourceGroupName: string, virtualNetworkName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, virtualNetworkName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, virtualNetworkName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + virtualNetworkName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified subnet. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkName, + subnetName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Creates or updates a subnet in the specified virtual network. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param subnetName The name of the subnet. + * @param subnetParameters Parameters supplied to the create or update subnet operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, virtualNetworkName: string, subnetName: string, subnetParameters: Models.Subnet, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkName, + subnetName, + subnetParameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Gets all subnets in a virtual network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkName, + Parameters.subnetName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.expand + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Subnet + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SubnetListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkName, + Parameters.subnetName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkName, + Parameters.subnetName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "subnetParameters", + mapper: { + ...Mappers.Subnet, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Subnet + }, + 201: { + bodyMapper: Mappers.Subnet + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SubnetListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/virtualNetworkGatewayConnections.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/virtualNetworkGatewayConnections.ts new file mode 100644 index 000000000000..175296d58efe --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/virtualNetworkGatewayConnections.ts @@ -0,0 +1,590 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/virtualNetworkGatewayConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a VirtualNetworkGatewayConnections. */ +export class VirtualNetworkGatewayConnections { + private readonly client: NetworkManagementClientContext; + + /** + * Create a VirtualNetworkGatewayConnections. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Creates or updates a virtual network gateway connection in the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to the create or update virtual network gateway connection + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: Models.VirtualNetworkGatewayConnection, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,virtualNetworkGatewayConnectionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets the specified virtual network gateway connection by resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param callback The callback + */ + get(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + virtualNetworkGatewayConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified virtual network Gateway connection. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,virtualNetworkGatewayConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Updates a virtual network gateway connection tags. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTags(resourceGroupName,virtualNetworkGatewayConnectionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as 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 resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared + * key operation throughNetwork resource provider. + * @param [options] The optional parameters + * @returns Promise + */ + setSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: Models.ConnectionSharedKey, options?: msRest.RequestOptionsBase): Promise { + return this.beginSetSharedKey(resourceGroupName,virtualNetworkGatewayConnectionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the + * specified virtual network gateway connection shared key through Network resource provider. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The virtual network gateway connection shared key + * name. + * @param [options] The optional parameters + * @returns Promise + */ + getSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The virtual network gateway connection shared key + * name. + * @param callback The callback + */ + getSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The virtual network gateway connection shared key + * name. + * @param options The optional parameters + * @param callback The callback + */ + getSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + virtualNetworkGatewayConnectionName, + options + }, + getSharedKeyOperationSpec, + callback) as Promise; + } + + /** + * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways + * connections created. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as 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 resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared + * key Name. + * @param parameters Parameters supplied to the begin reset virtual network gateway connection + * shared key operation through network resource provider. + * @param [options] The optional parameters + * @returns Promise + */ + resetSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: Models.ConnectionResetSharedKey, options?: msRest.RequestOptionsBase): Promise { + return this.beginResetSharedKey(resourceGroupName,virtualNetworkGatewayConnectionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Creates or updates a virtual network gateway connection in the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to the create or update virtual network gateway connection + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: Models.VirtualNetworkGatewayConnection, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayConnectionName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes the specified virtual network Gateway connection. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayConnectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Updates a virtual network gateway connection tags. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection. + * @param parameters Parameters supplied to update virtual network gateway connection tags. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateTags(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayConnectionName, + parameters, + options + }, + beginUpdateTagsOperationSpec, + options); + } + + /** + * 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 resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The virtual network gateway connection name. + * @param parameters Parameters supplied to the Begin Set Virtual Network Gateway connection Shared + * key operation throughNetwork resource provider. + * @param [options] The optional parameters + * @returns Promise + */ + beginSetSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: Models.ConnectionSharedKey, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayConnectionName, + parameters, + options + }, + beginSetSharedKeyOperationSpec, + options); + } + + /** + * 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 resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The virtual network gateway connection reset shared + * key Name. + * @param parameters Parameters supplied to the begin reset virtual network gateway connection + * shared key operation through network resource provider. + * @param [options] The optional parameters + * @returns Promise + */ + beginResetSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: Models.ConnectionResetSharedKey, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayConnectionName, + parameters, + options + }, + beginResetSharedKeyOperationSpec, + options); + } + + /** + * The List VirtualNetworkGatewayConnections operation retrieves all the virtual network gateways + * connections created. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayConnectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkGatewayConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getSharedKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayConnectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectionSharedKey + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkGatewayConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayConnectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.VirtualNetworkGatewayConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkGatewayConnection + }, + 201: { + bodyMapper: Mappers.VirtualNetworkGatewayConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayConnectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayConnectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagsObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkGatewayConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginSetSharedKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayConnectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ConnectionSharedKey, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ConnectionSharedKey + }, + 201: { + bodyMapper: Mappers.ConnectionSharedKey + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginResetSharedKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey/reset", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayConnectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ConnectionResetSharedKey, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ConnectionResetSharedKey + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkGatewayConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/virtualNetworkGateways.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/virtualNetworkGateways.ts new file mode 100644 index 000000000000..1805c0bb995c --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/virtualNetworkGateways.ts @@ -0,0 +1,1251 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/virtualNetworkGatewaysMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a VirtualNetworkGateways. */ +export class VirtualNetworkGateways { + private readonly client: NetworkManagementClientContext; + + /** + * Create a VirtualNetworkGateways. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Creates or updates a virtual network gateway in the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to create or update virtual network gateway operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: Models.VirtualNetworkGateway, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,virtualNetworkGatewayName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets the specified virtual network gateway by resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param callback The callback + */ + get(resourceGroupName: string, virtualNetworkGatewayName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, virtualNetworkGatewayName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + virtualNetworkGatewayName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified virtual network gateway. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,virtualNetworkGatewayName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Updates a virtual network gateway tags. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTags(resourceGroupName,virtualNetworkGatewayName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets all virtual network gateways by resource group. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets all the connections in a virtual network gateway. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + listConnections(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param callback The callback + */ + listConnections(resourceGroupName: string, virtualNetworkGatewayName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param options The optional parameters + * @param callback The callback + */ + listConnections(resourceGroupName: string, virtualNetworkGatewayName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConnections(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + virtualNetworkGatewayName, + options + }, + listConnectionsOperationSpec, + callback) as Promise; + } + + /** + * Resets the primary of the virtual network gateway in the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + reset(resourceGroupName: string, virtualNetworkGatewayName: string, options?: Models.VirtualNetworkGatewaysResetOptionalParams): Promise { + return this.beginReset(resourceGroupName,virtualNetworkGatewayName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Resets the VPN client shared key of the virtual network gateway in the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + resetVpnClientSharedKey(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginResetVpnClientSharedKey(resourceGroupName,virtualNetworkGatewayName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Generates VPN client package for P2S client of the virtual network gateway in the specified + * resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to the generate virtual network gateway VPN client package + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + generatevpnclientpackage(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: Models.VpnClientParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginGeneratevpnclientpackage(resourceGroupName,virtualNetworkGatewayName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as 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 resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to the generate virtual network gateway VPN client package + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + generateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: Models.VpnClientParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginGenerateVpnProfile(resourceGroupName,virtualNetworkGatewayName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as 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 resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + getVpnProfilePackageUrl(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginGetVpnProfilePackageUrl(resourceGroupName,virtualNetworkGatewayName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The GetBgpPeerStatus operation retrieves the status of all BGP peers. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + getBgpPeerStatus(resourceGroupName: string, virtualNetworkGatewayName: string, options?: Models.VirtualNetworkGatewaysGetBgpPeerStatusOptionalParams): Promise { + return this.beginGetBgpPeerStatus(resourceGroupName,virtualNetworkGatewayName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets a xml format representation for supported vpn devices. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + supportedVpnDevices(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param callback The callback + */ + supportedVpnDevices(resourceGroupName: string, virtualNetworkGatewayName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param options The optional parameters + * @param callback The callback + */ + supportedVpnDevices(resourceGroupName: string, virtualNetworkGatewayName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + supportedVpnDevices(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + virtualNetworkGatewayName, + options + }, + supportedVpnDevicesOperationSpec, + callback) as Promise; + } + + /** + * This operation retrieves a list of routes the virtual network gateway has learned, including + * routes learned from BGP peers. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + getLearnedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginGetLearnedRoutes(resourceGroupName,virtualNetworkGatewayName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * This operation retrieves a list of routes the virtual network gateway is advertising to the + * specified peer. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param peer The IP address of the peer + * @param [options] The optional parameters + * @returns Promise + */ + getAdvertisedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, peer: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginGetAdvertisedRoutes(resourceGroupName,virtualNetworkGatewayName,peer,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as 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 resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of + * Virtual Network Gateway P2S client operation through Network resource provider. + * @param [options] The optional parameters + * @returns Promise + */ + setVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, vpnclientIpsecParams: Models.VpnClientIPsecParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginSetVpnclientIpsecParameters(resourceGroupName,virtualNetworkGatewayName,vpnclientIpsecParams,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as 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 resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @param [options] The optional parameters + * @returns Promise + */ + getVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginGetVpnclientIpsecParameters(resourceGroupName,virtualNetworkGatewayName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets a xml format representation for vpn device configuration script. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection + * for which the configuration script is generated. + * @param parameters Parameters supplied to the generate vpn device script operation. + * @param [options] The optional parameters + * @returns Promise + */ + vpnDeviceConfigurationScript(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: Models.VpnDeviceScriptParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection + * for which the configuration script is generated. + * @param parameters Parameters supplied to the generate vpn device script operation. + * @param callback The callback + */ + vpnDeviceConfigurationScript(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: Models.VpnDeviceScriptParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection + * for which the configuration script is generated. + * @param parameters Parameters supplied to the generate vpn device script operation. + * @param options The optional parameters + * @param callback The callback + */ + vpnDeviceConfigurationScript(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: Models.VpnDeviceScriptParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + vpnDeviceConfigurationScript(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: Models.VpnDeviceScriptParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + virtualNetworkGatewayConnectionName, + parameters, + options + }, + vpnDeviceConfigurationScriptOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a virtual network gateway in the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to create or update virtual network gateway operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: Models.VirtualNetworkGateway, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes the specified virtual network gateway. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Updates a virtual network gateway tags. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to update virtual network gateway tags. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateTags(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayName, + parameters, + options + }, + beginUpdateTagsOperationSpec, + options); + } + + /** + * Resets the primary of the virtual network gateway in the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + beginReset(resourceGroupName: string, virtualNetworkGatewayName: string, options?: Models.VirtualNetworkGatewaysBeginResetOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayName, + options + }, + beginResetOperationSpec, + options); + } + + /** + * Resets the VPN client shared key of the virtual network gateway in the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + beginResetVpnClientSharedKey(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayName, + options + }, + beginResetVpnClientSharedKeyOperationSpec, + options); + } + + /** + * Generates VPN client package for P2S client of the virtual network gateway in the specified + * resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to the generate virtual network gateway VPN client package + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginGeneratevpnclientpackage(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: Models.VpnClientParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayName, + parameters, + options + }, + beginGeneratevpnclientpackageOperationSpec, + options); + } + + /** + * Generates VPN profile for P2S client of the virtual network gateway in the specified resource + * group. Used for IKEV2 and radius based authentication. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param parameters Parameters supplied to the generate virtual network gateway VPN client package + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginGenerateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: Models.VpnClientParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayName, + parameters, + options + }, + beginGenerateVpnProfileOperationSpec, + options); + } + + /** + * 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 resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + beginGetVpnProfilePackageUrl(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayName, + options + }, + beginGetVpnProfilePackageUrlOperationSpec, + options); + } + + /** + * The GetBgpPeerStatus operation retrieves the status of all BGP peers. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + beginGetBgpPeerStatus(resourceGroupName: string, virtualNetworkGatewayName: string, options?: Models.VirtualNetworkGatewaysBeginGetBgpPeerStatusOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayName, + options + }, + beginGetBgpPeerStatusOperationSpec, + options); + } + + /** + * This operation retrieves a list of routes the virtual network gateway has learned, including + * routes learned from BGP peers. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param [options] The optional parameters + * @returns Promise + */ + beginGetLearnedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayName, + options + }, + beginGetLearnedRoutesOperationSpec, + options); + } + + /** + * This operation retrieves a list of routes the virtual network gateway is advertising to the + * specified peer. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param peer The IP address of the peer + * @param [options] The optional parameters + * @returns Promise + */ + beginGetAdvertisedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, peer: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayName, + peer, + options + }, + beginGetAdvertisedRoutesOperationSpec, + options); + } + + /** + * 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 resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The name of the virtual network gateway. + * @param vpnclientIpsecParams Parameters supplied to the Begin Set vpnclient ipsec parameters of + * Virtual Network Gateway P2S client operation through Network resource provider. + * @param [options] The optional parameters + * @returns Promise + */ + beginSetVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, vpnclientIpsecParams: Models.VpnClientIPsecParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayName, + vpnclientIpsecParams, + options + }, + beginSetVpnclientIpsecParametersOperationSpec, + options); + } + + /** + * 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 resourceGroupName The name of the resource group. + * @param virtualNetworkGatewayName The virtual network gateway name. + * @param [options] The optional parameters + * @returns Promise + */ + beginGetVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkGatewayName, + options + }, + beginGetVpnclientIpsecParametersOperationSpec, + options); + } + + /** + * Gets all virtual network gateways by resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Gets all the connections in a virtual network gateway. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listConnectionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listConnectionsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listConnectionsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConnectionsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listConnectionsNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkGateway + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkGatewayListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listConnectionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/connections", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkGatewayListConnectionsResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const supportedVpnDevicesOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/supportedvpndevices", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "String" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const vpnDeviceConfigurationScriptOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/vpndeviceconfigurationscript", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayConnectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.VpnDeviceScriptParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "String" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.VirtualNetworkGateway, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkGateway + }, + 201: { + bodyMapper: Mappers.VirtualNetworkGateway + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagsObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkGateway + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginResetOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.gatewayVip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkGateway + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginResetVpnClientSharedKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/resetvpnclientsharedkey", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginGeneratevpnclientpackageOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.VpnClientParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "String" + } + } + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginGenerateVpnProfileOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnprofile", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.VpnClientParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "String" + } + } + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginGetVpnProfilePackageUrlOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "String" + } + } + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginGetBgpPeerStatusOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.peer0, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BgpPeerStatusListResult + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginGetLearnedRoutesOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GatewayRouteListResult + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginGetAdvertisedRoutesOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.peer1, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GatewayRouteListResult + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginSetVpnclientIpsecParametersOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/setvpnclientipsecparameters", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "vpnclientIpsecParams", + mapper: { + ...Mappers.VpnClientIPsecParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VpnClientIPsecParameters + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginGetVpnclientIpsecParametersOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnclientipsecparameters", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkGatewayName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VpnClientIPsecParameters + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkGatewayListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listConnectionsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkGatewayListConnectionsResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/virtualNetworkPeerings.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/virtualNetworkPeerings.ts new file mode 100644 index 000000000000..f41d49114c88 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/virtualNetworkPeerings.ts @@ -0,0 +1,332 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/virtualNetworkPeeringsMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a VirtualNetworkPeerings. */ +export class VirtualNetworkPeerings { + private readonly client: NetworkManagementClientContext; + + /** + * Create a VirtualNetworkPeerings. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Deletes the specified virtual network peering. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,virtualNetworkName,virtualNetworkPeeringName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets the specified virtual network peering. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @param callback The callback + */ + get(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + virtualNetworkName, + virtualNetworkPeeringName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a peering in the specified virtual network. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual + * network peering operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, virtualNetworkPeeringParameters: Models.VirtualNetworkPeering, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,virtualNetworkName,virtualNetworkPeeringName,virtualNetworkPeeringParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets all virtual network peerings in a virtual network. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, virtualNetworkName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param callback The callback + */ + list(resourceGroupName: string, virtualNetworkName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, virtualNetworkName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, virtualNetworkName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + virtualNetworkName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified virtual network peering. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the virtual network peering. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkName, + virtualNetworkPeeringName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Creates or updates a peering in the specified virtual network. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param virtualNetworkPeeringName The name of the peering. + * @param virtualNetworkPeeringParameters Parameters supplied to the create or update virtual + * network peering operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, virtualNetworkPeeringParameters: Models.VirtualNetworkPeering, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkName, + virtualNetworkPeeringName, + virtualNetworkPeeringParameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Gets all virtual network peerings in a virtual network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkName, + Parameters.virtualNetworkPeeringName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkPeering + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkPeeringListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkName, + Parameters.virtualNetworkPeeringName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkName, + Parameters.virtualNetworkPeeringName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "virtualNetworkPeeringParameters", + mapper: { + ...Mappers.VirtualNetworkPeering, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkPeering + }, + 201: { + bodyMapper: Mappers.VirtualNetworkPeering + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkPeeringListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/virtualNetworks.ts b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/virtualNetworks.ts new file mode 100644 index 000000000000..d8412e3a43f1 --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/src/operations/virtualNetworks.ts @@ -0,0 +1,642 @@ +/* + * 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 * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/virtualNetworksMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a VirtualNetworks. */ +export class VirtualNetworks { + private readonly client: NetworkManagementClientContext; + + /** + * Create a VirtualNetworks. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Deletes the specified virtual network. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, virtualNetworkName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,virtualNetworkName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets the specified virtual network by resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, virtualNetworkName: string, options?: Models.VirtualNetworksGetOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param callback The callback + */ + get(resourceGroupName: string, virtualNetworkName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, virtualNetworkName: string, options: Models.VirtualNetworksGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, virtualNetworkName: string, options?: Models.VirtualNetworksGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + virtualNetworkName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a virtual network in the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param parameters Parameters supplied to the create or update virtual network operation + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, virtualNetworkName: string, parameters: Models.VirtualNetwork, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,virtualNetworkName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates a virtual network tags. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param parameters Parameters supplied to update virtual network tags. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, virtualNetworkName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTags(resourceGroupName,virtualNetworkName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets all virtual networks in a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listAll(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listAll(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listAll(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAll(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listAllOperationSpec, + callback) as Promise; + } + + /** + * Gets all virtual networks in a resource group. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + list(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Checks whether a private IP address is available for use. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param ipAddress The private IP address to be verified. + * @param [options] The optional parameters + * @returns Promise + */ + checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param ipAddress The private IP address to be verified. + * @param callback The callback + */ + checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param ipAddress The private IP address to be verified. + * @param options The optional parameters + * @param callback The callback + */ + checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + virtualNetworkName, + ipAddress, + options + }, + checkIPAddressAvailabilityOperationSpec, + callback) as Promise; + } + + /** + * Lists usage stats. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param [options] The optional parameters + * @returns Promise + */ + listUsage(resourceGroupName: string, virtualNetworkName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param callback The callback + */ + listUsage(resourceGroupName: string, virtualNetworkName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param options The optional parameters + * @param callback The callback + */ + listUsage(resourceGroupName: string, virtualNetworkName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUsage(resourceGroupName: string, virtualNetworkName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + virtualNetworkName, + options + }, + listUsageOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified virtual network. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, virtualNetworkName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Creates or updates a virtual network in the specified resource group. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param parameters Parameters supplied to the create or update virtual network operation + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, virtualNetworkName: string, parameters: Models.VirtualNetwork, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Updates a virtual network tags. + * @param resourceGroupName The name of the resource group. + * @param virtualNetworkName The name of the virtual network. + * @param parameters Parameters supplied to update virtual network tags. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateTags(resourceGroupName: string, virtualNetworkName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualNetworkName, + parameters, + options + }, + beginUpdateTagsOperationSpec, + options); + } + + /** + * Gets all virtual networks in a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listAllNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listAllNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listAllNextOperationSpec, + callback) as Promise; + } + + /** + * Gets all virtual networks in a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Lists usage stats. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listUsageNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listUsageNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listUsageNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUsageNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listUsageNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.expand + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetwork + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAllOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const checkIPAddressAvailabilityOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/CheckIPAddressAvailability", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.ipAddress, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IPAddressAvailabilityResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listUsageOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/usages", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkListUsageResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.VirtualNetwork, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualNetwork + }, + 201: { + bodyMapper: Mappers.VirtualNetwork + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualNetworkName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagsObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualNetwork + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAllNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listUsageNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualNetworkListUsageResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/network/arm-network-profile-2020-09-01-hybrid/tsconfig.json b/sdk/network/arm-network-profile-2020-09-01-hybrid/tsconfig.json new file mode 100644 index 000000000000..422b584abd5e --- /dev/null +++ b/sdk/network/arm-network-profile-2020-09-01-hybrid/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "es6", + "moduleResolution": "node", + "strict": true, + "target": "es5", + "sourceMap": true, + "declarationMap": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "lib": ["es6", "dom"], + "declaration": true, + "outDir": "./esm", + "importHelpers": true + }, + "include": ["./src/**/*.ts"], + "exclude": ["node_modules"] +}