From 71b6bad233f6b3dcaa691b9763dfa4bfefb3a556 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 7 Nov 2023 10:02:17 +0000 Subject: [PATCH] CodeGen from PR 3686 in openapi-env-test/azure-rest-api-specs Merge c13039a6e3551aea9be922a8f3b6a836a40c3994 into 4924b593e200fd3cc704495bd726c7f87f859975 --- common/config/rush/pnpm-lock.yaml | 43 +- sdk/network/arm-network/CHANGELOG.md | 84 +- sdk/network/arm-network/_meta.json | 10 +- sdk/network/arm-network/package.json | 24 +- .../arm-network/review/arm-network.api.md | 415 +----- sdk/network/arm-network/src/models/index.ts | 750 +--------- sdk/network/arm-network/src/models/mappers.ts | 1305 +++-------------- .../arm-network/src/models/parameters.ts | 260 ++-- .../src/networkManagementClient.ts | 16 +- .../src/operations/azureFirewalls.ts | 132 -- .../src/operations/bastionHosts.ts | 2 +- .../src/operations/connectionMonitors.ts | 2 +- .../src/operations/customIPPrefixes.ts | 2 +- .../src/operations/ddosCustomPolicies.ts | 2 +- .../src/operations/ddosProtectionPlans.ts | 2 +- .../operations/dscpConfigurationOperations.ts | 2 +- .../src/operations/expressRouteCircuits.ts | 2 +- .../expressRouteCrossConnections.ts | 2 +- .../src/operations/expressRoutePorts.ts | 2 +- .../src/operations/firewallPolicies.ts | 2 +- .../firewallPolicyIdpsSignatures.ts | 2 +- ...irewallPolicyIdpsSignaturesFilterValues.ts | 2 +- .../firewallPolicyIdpsSignaturesOverrides.ts | 4 +- .../firewallPolicyRuleCollectionGroups.ts | 2 +- .../arm-network/src/operations/flowLogs.ts | 2 +- .../inboundSecurityRuleOperations.ts | 2 +- .../arm-network/src/operations/index.ts | 1 - .../src/operations/ipAllocations.ts | 2 +- .../arm-network/src/operations/ipGroups.ts | 2 +- .../loadBalancerBackendAddressPools.ts | 2 +- .../src/operations/loadBalancers.ts | 49 +- .../src/operations/localNetworkGateways.ts | 2 +- ...anagementGroupNetworkManagerConnections.ts | 2 +- .../arm-network/src/operations/natGateways.ts | 2 +- .../src/operations/networkGroups.ts | 2 +- .../src/operations/networkInterfaces.ts | 2 +- .../src/operations/networkManagerCommits.ts | 2 +- ...etworkManagerDeploymentStatusOperations.ts | 2 +- .../src/operations/networkManagers.ts | 4 +- .../src/operations/networkProfiles.ts | 2 +- .../src/operations/networkSecurityGroups.ts | 2 +- .../networkVirtualApplianceConnections.ts | 523 ------- .../operations/networkVirtualAppliances.ts | 2 +- .../src/operations/networkWatchers.ts | 26 +- .../src/operations/p2SVpnGateways.ts | 2 +- .../src/operations/packetCaptures.ts | 2 +- .../src/operations/privateDnsZoneGroups.ts | 2 +- .../src/operations/privateEndpoints.ts | 2 +- .../src/operations/privateLinkServices.ts | 8 +- .../src/operations/publicIPAddresses.ts | 2 +- .../src/operations/publicIPPrefixes.ts | 2 +- .../arm-network/src/operations/routeTables.ts | 2 +- .../src/operations/scopeConnections.ts | 2 +- .../operations/securityPartnerProviders.ts | 2 +- .../src/operations/serviceEndpointPolicies.ts | 2 +- .../src/operations/staticMembers.ts | 2 +- .../subscriptionNetworkManagerConnections.ts | 2 +- .../arm-network/src/operations/vipSwap.ts | 2 +- .../src/operations/virtualApplianceSites.ts | 2 +- .../src/operations/virtualHubBgpConnection.ts | 2 +- .../operations/virtualHubBgpConnections.ts | 96 +- .../operations/virtualHubIpConfiguration.ts | 2 +- .../arm-network/src/operations/virtualHubs.ts | 99 +- .../virtualNetworkGatewayConnections.ts | 10 +- .../src/operations/virtualNetworkGateways.ts | 12 +- .../src/operations/virtualNetworkTaps.ts | 2 +- .../src/operations/virtualNetworks.ts | 2 +- .../src/operations/virtualRouterPeerings.ts | 2 +- .../src/operations/virtualRouters.ts | 2 +- .../src/operations/vpnConnections.ts | 4 +- .../arm-network/src/operations/vpnGateways.ts | 4 +- .../webApplicationFirewallPolicies.ts | 2 +- .../operationsInterfaces/azureFirewalls.ts | 36 +- .../src/operationsInterfaces/index.ts | 1 - .../src/operationsInterfaces/loadBalancers.ts | 15 +- .../networkVirtualApplianceConnections.ts | 113 -- .../src/operationsInterfaces/virtualHubs.ts | 32 +- sdk/network/arm-network/test/sampleTest.ts | 43 + sdk/network/arm-network/tsconfig.json | 10 +- 79 files changed, 695 insertions(+), 3532 deletions(-) delete mode 100644 sdk/network/arm-network/src/operations/networkVirtualApplianceConnections.ts delete mode 100644 sdk/network/arm-network/src/operationsInterfaces/networkVirtualApplianceConnections.ts create mode 100644 sdk/network/arm-network/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 99321d0907bc..1792cdb40c23 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1,7 +1,7 @@ lockfileVersion: '6.0' settings: - autoInstallPeers: true + autoInstallPeers: false excludeLinksFromLockfile: false dependencies: @@ -1154,6 +1154,21 @@ packages: - supports-color dev: false + /@azure/arm-network@32.2.0: + resolution: {integrity: sha512-6QmZ9aGdiz+9u7jPhQEg2zY/Tn8hwJrmjAMuHlWpnqE2kHvSDnKCE3BiNLZsENfi/IeLKBuW0QIdZ5UhbSSA0A==} + engines: {node: '>=14.0.0'} + dependencies: + '@azure/abort-controller': 1.1.0 + '@azure/core-auth': 1.5.0 + '@azure/core-client': 1.7.3 + '@azure/core-lro': 2.5.4 + '@azure/core-paging': 1.5.0 + '@azure/core-rest-pipeline': 1.12.2 + tslib: 2.6.2 + transitivePeerDependencies: + - supports-color + dev: false + /@azure/communication-signaling@1.0.0-beta.20: resolution: {integrity: sha512-Vjsiv6lWiVFqTG51cKNOAwnhuUhKbb6oOsQ833NEaWl9MwlqEQtxSOMJPYsoSCjb+pnIYvbioC+hIHkKfkAxbQ==} engines: {node: '>=8.0.0'} @@ -4495,7 +4510,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20231030 + typescript: 5.4.0-dev.20231107 dev: false /eastasianwidth@0.2.0: @@ -9261,8 +9276,8 @@ packages: hasBin: true dev: false - /typescript@5.3.0-dev.20231030: - resolution: {integrity: sha512-azWrF0lAiu8cBHNr6yq3RDkU/DtQScvT48ea3Ngq6oXJ/GPO0n96wCFSRQA5UbZlVVf3fAAqsUfvOdohRbrPVg==} + /typescript@5.4.0-dev.20231107: + resolution: {integrity: sha512-4bQlfsyFjzZMo1bSLEkFJEcvuQ64pgE0S/BpdWu16lYsQOfJZtntZIyWdED3h+e96IMtVgrC6sxzfPZhj4J/dw==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -11416,10 +11431,11 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-GNH6eYlcbf2q/gL3gSeFIrGTeu55MJKUeTHcFvtpwckRU5Gl7M+amBD/C3WcgxE9eiMwGdSh7fnY2u9I3kN1Cg==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-woMseNIuijTLmmueZtuEdz2Aa7lEIIlTbyEtYgfYOG1v1yOP6hLuoUShn2b4HsVqbzef0kdkI5mi5alsIZvHRw==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: + '@azure/arm-network': 32.2.0 '@azure/identity': 3.3.2 '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 @@ -11466,10 +11482,11 @@ packages: dev: false file:projects/arm-compute.tgz: - resolution: {integrity: sha512-l0ZioJDcuCfgBQvrWRCtT6jnnygpKC4TkWT+M6BqOnOhOdTM8bxGaxmfcXLKUShb4Xd2zZo+FOj+0eimg3MJCw==, tarball: file:projects/arm-compute.tgz} + resolution: {integrity: sha512-WdhgZLbrpNn861iEG7vXJSTR1ZYIOUORztuIahvzMqsbPG2xctJK5c4GcrsPWhx4NJ0OJmIHkrYcvEPAE1vS9g==, tarball: file:projects/arm-compute.tgz} name: '@rush-temp/arm-compute' version: 0.0.0 dependencies: + '@azure/arm-network': 32.2.0 '@azure/identity': 3.3.2 '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 @@ -12622,10 +12639,11 @@ packages: dev: false file:projects/arm-eventhub.tgz: - resolution: {integrity: sha512-MfPrGJfNBWzwigKTkYZc19i+yeMfEcS2Qqv4b12H6wCup7inRqS3dpnGKQ503XzVVwaaYNzqHdCTrYZo27lo6Q==, tarball: file:projects/arm-eventhub.tgz} + resolution: {integrity: sha512-TiVt+aIo/m+zkgm2yVlBDY1Xa7Yi08FpUd5fC/KoqHej0XH2w88gi+iQFwuTio34OwhadQqxhwKjhn8H1TEcYA==, tarball: file:projects/arm-eventhub.tgz} name: '@rush-temp/arm-eventhub' version: 0.0.0 dependencies: + '@azure/arm-network': 32.2.0 '@azure/identity': 3.3.2 '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 @@ -13905,20 +13923,22 @@ packages: dev: false file:projects/arm-network-1.tgz: - resolution: {integrity: sha512-k1AJlE2JlD5JBpEeGn4+wPVcHfP5xwEO/wYGWneUym/POypcrsT1bNajpqRfMXgzWByzcIQwSoBh33OoD3tQow==, tarball: file:projects/arm-network-1.tgz} + resolution: {integrity: sha512-FWmITS228P24PMyeFCSt2aBdMMQwvcn4HmRWtJaQ9UTZujvrknwj1wX6TvnktiysxyzvSe9rkD8LscEcfxLvDg==, tarball: file:projects/arm-network-1.tgz} name: '@rush-temp/arm-network-1' version: 0.0.0 dependencies: '@azure/identity': 3.3.2 '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 + '@types/mocha': 10.0.3 '@types/node': 18.18.7 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.3.1 + esm: 3.2.25 mkdirp: 2.1.6 mocha: 10.2.0 - rimraf: 3.0.2 + rimraf: 5.0.5 ts-node: 10.9.1(@types/node@18.18.7)(typescript@5.2.2) tslib: 2.6.2 typescript: 5.2.2 @@ -14715,10 +14735,11 @@ packages: dev: false file:projects/arm-rediscache.tgz: - resolution: {integrity: sha512-tXv/RXh41XXxV30jK7/85qDP9tzB13GtuDBvAr6RuqLXwgE+MOtPc43LaS/Y3WyUl/bCxBh8AKK/oltopZuYcg==, tarball: file:projects/arm-rediscache.tgz} + resolution: {integrity: sha512-3YSXMeycDrKOeUev8QnHwYtkZnvsh6Rw+OZtbNhQs7Exg+eOYmi/ZY8yOx8qaqJ83HzDocPIDHBMq5+oV1nHgw==, tarball: file:projects/arm-rediscache.tgz} name: '@rush-temp/arm-rediscache' version: 0.0.0 dependencies: + '@azure/arm-network': 32.2.0 '@azure/identity': 3.3.2 '@microsoft/api-extractor': 7.38.0(@types/node@18.18.7) '@types/chai': 4.3.9 @@ -20375,7 +20396,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-2LtIcl6t12irIaBaBSP/ytxkJA5VSRJ2RUg08UJEi/NVLHhjpx+NQQn/a/ebeAwpa2DefdSkfHRhgh7zn8Qzzg==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-nBVNUHVbjsSyKfoA2uJNvG+jlJEW9Oq12K9Oha1C6GVY1rZhEpcWrkob0RJe/sCDdrMo0MBUnvL7+PkUsvhR8w==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: diff --git a/sdk/network/arm-network/CHANGELOG.md b/sdk/network/arm-network/CHANGELOG.md index 48a28c02b8f7..2fc4a085219e 100644 --- a/sdk/network/arm-network/CHANGELOG.md +++ b/sdk/network/arm-network/CHANGELOG.md @@ -1,15 +1,81 @@ # Release History + +## 33.0.0 (2023-11-07) + +**Features** -## 32.2.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Interface PeerRouteList + - Interface Subnet has a new optional parameter applicationGatewayIpConfigurations + - Interface VirtualNetworkPeering has a new optional parameter localAddressSpace + - Interface VirtualNetworkPeering has a new optional parameter localSubnetNames + - Interface VirtualNetworkPeering has a new optional parameter localVirtualNetworkAddressSpace + - Interface VirtualNetworkPeering has a new optional parameter peerCompleteVnets + - Interface VirtualNetworkPeering has a new optional parameter remoteSubnetNames + - Enum KnownApplicationGatewayCustomErrorStatusCode has a new value HttpStatus499 + - Enum KnownLoadBalancerBackendAddressAdminState has a new value Drain -### Other Changes +**Breaking Changes** + - Removed operation group NetworkVirtualApplianceConnections + - Removed operation AzureFirewalls.beginPacketCapture + - Removed operation AzureFirewalls.beginPacketCaptureAndWait + - Removed operation LoadBalancers.migrateToIpBased + - Interface ActiveDefaultSecurityAdminRule no longer has parameter resourceGuid + - Interface ActiveSecurityAdminRule no longer has parameter resourceGuid + - Interface AdminRule no longer has parameter resourceGuid + - Interface AdminRuleCollection no longer has parameter resourceGuid + - Interface ApplicationGateway no longer has parameter defaultPredefinedSslPolicy + - Interface ApplicationRule no longer has parameter httpHeadersToInsert + - Interface BackendAddressPool no longer has parameter syncMode + - Interface BastionHost no longer has parameter enableKerberos + - Interface BastionHost no longer has parameter networkAcls + - Interface BastionHost no longer has parameter virtualNetwork + - Interface ConfigurationGroup no longer has parameter resourceGuid + - Interface ConnectivityConfiguration no longer has parameter resourceGuid + - Interface DefaultAdminRule no longer has parameter resourceGuid + - Interface EffectiveConnectivityConfiguration no longer has parameter resourceGuid + - Interface EffectiveDefaultSecurityAdminRule no longer has parameter resourceGuid + - Interface EffectiveSecurityAdminRule no longer has parameter resourceGuid + - Interface FirewallPolicy no longer has parameter size + - Interface FirewallPolicyRuleCollectionGroup no longer has parameter size + - Interface NetworkGroup no longer has parameter resourceGuid + - Interface NetworkInterface no longer has parameter auxiliarySku + - Interface NetworkManager no longer has parameter resourceGuid + - Interface NetworkVirtualAppliance no longer has parameter additionalNics + - Interface NetworkVirtualAppliance no longer has parameter virtualApplianceConnections + - Interface PolicySettings no longer has parameter fileUploadEnforcement + - Interface PolicySettings no longer has parameter logScrubbing + - Interface PolicySettings no longer has parameter requestBodyEnforcement + - Interface PolicySettings no longer has parameter requestBodyInspectLimitInKB + - Interface PrivateEndpointConnection no longer has parameter privateEndpointLocation + - Interface PublicIPAddressDnsSettings no longer has parameter domainNameLabelScope + - Interface SecurityAdminConfiguration no longer has parameter resourceGuid + - Interface Subnet no longer has parameter applicationGatewayIPConfigurations + - Interface Subnet no longer has parameter defaultOutboundAccess + - Interface VirtualApplianceNicProperties no longer has parameter instanceName + - Interface VirtualNetworkGateway no longer has parameter adminState + - Interface VirtualNetworkGateway no longer has parameter autoScaleConfiguration + - Interface WebApplicationFirewallCustomRule no longer has parameter groupByUserSession + - Interface WebApplicationFirewallCustomRule no longer has parameter rateLimitDuration + - Interface WebApplicationFirewallCustomRule no longer has parameter rateLimitThreshold + - Type of parameter prefix of interface EffectiveRouteMapRoute is changed from string to string[] + - Class NetworkManagementClient no longer has parameter networkVirtualApplianceConnections + - Removed Enum KnownAdminState + - Removed Enum KnownApplicationGatewayFirewallRateLimitDuration + - Removed Enum KnownApplicationGatewayFirewallUserSessionVariable + - Removed Enum KnownAzureFirewallPacketCaptureFlagsType + - Removed Enum KnownNetworkInterfaceAuxiliarySku + - Removed Enum KnownScrubbingRuleEntryMatchOperator + - Removed Enum KnownScrubbingRuleEntryMatchVariable + - Removed Enum KnownScrubbingRuleEntryState + - Removed Enum KnownSyncMode + - Removed Enum KnownWebApplicationFirewallScrubbingState + - Enum KnownApplicationGatewaySkuName no longer has value Basic + - Enum KnownApplicationGatewayTier no longer has value Basic + - Enum KnownNetworkInterfaceAuxiliaryMode no longer has value AcceleratedConnections + - Enum KnownWebApplicationFirewallRuleType no longer has value RateLimitRule + + ## 32.2.0 (2023-09-07) **Features** @@ -901,4 +967,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/network/arm-network/_meta.json b/sdk/network/arm-network/_meta.json index a60e4a22d99b..c92c61454be3 100644 --- a/sdk/network/arm-network/_meta.json +++ b/sdk/network/arm-network/_meta.json @@ -1,8 +1,8 @@ { - "commit": "241397aafd74aaad6161cd0058449f9eb6d5163c", + "commit": "c2b5ac6668545bde5a288fe33f213d8a05076d27", "readme": "specification/network/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\network\\resource-manager\\readme.md --use=@autorest/typescript@6.0.8 --generate-sample=true", - "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.8" + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/network/resource-manager/readme.md --use=@autorest/typescript@^6.0.11", + "repository_url": "https://github.com/openapi-env-test/azure-rest-api-specs.git", + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@^6.0.11" } \ No newline at end of file diff --git a/sdk/network/arm-network/package.json b/sdk/network/arm-network/package.json index 3c92b5d769e5..bf7f5505b61a 100644 --- a/sdk/network/arm-network/package.json +++ b/sdk/network/arm-network/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetworkManagementClient.", - "version": "32.2.1", + "version": "33.0.0", "engines": { "node": ">=18.0.0" }, @@ -32,18 +32,20 @@ "mkdirp": "^2.1.2", "typescript": "~5.2.0", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^3.3.0", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "ts-node": "^10.0.0", - "@azure/dev-tool": "^1.0.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -77,7 +79,7 @@ "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -105,13 +107,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-network?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network" +} \ No newline at end of file diff --git a/sdk/network/arm-network/review/arm-network.api.md b/sdk/network/arm-network/review/arm-network.api.md index a1cc3b682ac5..8396bc1cf6d7 100644 --- a/sdk/network/arm-network/review/arm-network.api.md +++ b/sdk/network/arm-network/review/arm-network.api.md @@ -74,7 +74,6 @@ export interface ActiveDefaultSecurityAdminRule extends ActiveBaseSecurityAdminR readonly priority?: number; readonly protocol?: SecurityConfigurationRuleProtocol; readonly provisioningState?: ProvisioningState; - readonly resourceGuid?: string; readonly sourcePortRanges?: string[]; readonly sources?: AddressPrefixItem[]; } @@ -90,7 +89,6 @@ export interface ActiveSecurityAdminRule extends ActiveBaseSecurityAdminRule { priority?: number; protocol?: SecurityConfigurationRuleProtocol; readonly provisioningState?: ProvisioningState; - readonly resourceGuid?: string; sourcePortRanges?: string[]; sources?: AddressPrefixItem[]; } @@ -126,7 +124,6 @@ export interface AdminRule extends BaseAdminRule { priority?: number; protocol?: SecurityConfigurationRuleProtocol; readonly provisioningState?: ProvisioningState; - readonly resourceGuid?: string; sourcePortRanges?: string[]; sources?: AddressPrefixItem[]; } @@ -136,7 +133,6 @@ export interface AdminRuleCollection extends ChildResource { appliesToGroups?: NetworkManagerSecurityGroupItem[]; description?: string; readonly provisioningState?: ProvisioningState; - readonly resourceGuid?: string; readonly systemData?: SystemData; } @@ -257,9 +253,6 @@ export interface AdminRulesListOptionalParams extends coreClient.OperationOption // @public export type AdminRulesListResponse = AdminRuleListResult; -// @public -export type AdminState = string; - // @public export interface ApplicationGateway extends Resource { authenticationCertificates?: ApplicationGatewayAuthenticationCertificate[]; @@ -268,7 +261,6 @@ export interface ApplicationGateway extends Resource { backendHttpSettingsCollection?: ApplicationGatewayBackendHttpSettings[]; backendSettingsCollection?: ApplicationGatewayBackendSettings[]; customErrorConfigurations?: ApplicationGatewayCustomError[]; - readonly defaultPredefinedSslPolicy?: ApplicationGatewaySslPolicyName; enableFips?: boolean; enableHttp2?: boolean; readonly etag?: string; @@ -475,9 +467,6 @@ export interface ApplicationGatewayFirewallManifestRuleSet { // @public export type ApplicationGatewayFirewallMode = string; -// @public -export type ApplicationGatewayFirewallRateLimitDuration = string; - // @public export interface ApplicationGatewayFirewallRule { action?: ApplicationGatewayWafRuleActionTypes; @@ -503,9 +492,6 @@ export interface ApplicationGatewayFirewallRuleSet extends Resource { tiers?: ApplicationGatewayTierTypes[]; } -// @public -export type ApplicationGatewayFirewallUserSessionVariable = string; - // @public export interface ApplicationGatewayFrontendIPConfiguration extends SubResource { readonly etag?: string; @@ -1228,7 +1214,6 @@ export interface ApplicationGatewayWebApplicationFirewallConfiguration { export interface ApplicationRule extends FirewallPolicyRule { destinationAddresses?: string[]; fqdnTags?: string[]; - httpHeadersToInsert?: FirewallPolicyHttpHeaderToInsert[]; protocols?: FirewallPolicyRuleApplicationProtocol[]; ruleType: "ApplicationRule"; sourceAddresses?: string[]; @@ -1729,21 +1714,6 @@ export interface AzureFirewallNetworkRuleCollection extends SubResource { // @public export type AzureFirewallNetworkRuleProtocol = string; -// @public -export interface AzureFirewallPacketCaptureFlags { - type?: AzureFirewallPacketCaptureFlagsType; -} - -// @public -export type AzureFirewallPacketCaptureFlagsType = string; - -// @public -export interface AzureFirewallPacketCaptureRule { - destinationPorts?: string[]; - destinations?: string[]; - sources?: string[]; -} - // @public export interface AzureFirewallPublicIPAddress { address?: string; @@ -1765,8 +1735,6 @@ export interface AzureFirewalls { beginDeleteAndWait(resourceGroupName: string, azureFirewallName: string, options?: AzureFirewallsDeleteOptionalParams): Promise; beginListLearnedPrefixes(resourceGroupName: string, azureFirewallName: string, options?: AzureFirewallsListLearnedPrefixesOptionalParams): Promise, AzureFirewallsListLearnedPrefixesResponse>>; beginListLearnedPrefixesAndWait(resourceGroupName: string, azureFirewallName: string, options?: AzureFirewallsListLearnedPrefixesOptionalParams): Promise; - beginPacketCapture(resourceGroupName: string, azureFirewallName: string, parameters: FirewallPacketCaptureParameters, options?: AzureFirewallsPacketCaptureOptionalParams): Promise, AzureFirewallsPacketCaptureResponse>>; - beginPacketCaptureAndWait(resourceGroupName: string, azureFirewallName: string, parameters: FirewallPacketCaptureParameters, options?: AzureFirewallsPacketCaptureOptionalParams): Promise; beginUpdateTags(resourceGroupName: string, azureFirewallName: string, parameters: TagsObject, options?: AzureFirewallsUpdateTagsOptionalParams): Promise, AzureFirewallsUpdateTagsResponse>>; beginUpdateTagsAndWait(resourceGroupName: string, azureFirewallName: string, parameters: TagsObject, options?: AzureFirewallsUpdateTagsOptionalParams): Promise; get(resourceGroupName: string, azureFirewallName: string, options?: AzureFirewallsGetOptionalParams): Promise; @@ -1845,21 +1813,6 @@ export interface AzureFirewallsListOptionalParams extends coreClient.OperationOp // @public export type AzureFirewallsListResponse = AzureFirewallListResult; -// @public -export interface AzureFirewallsPacketCaptureHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface AzureFirewallsPacketCaptureOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AzureFirewallsPacketCaptureResponse = AzureFirewallsPacketCaptureHeaders; - // @public export interface AzureFirewallsUpdateTagsOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1941,7 +1894,6 @@ export interface BackendAddressPool extends SubResource { readonly outboundRule?: SubResource; readonly outboundRules?: SubResource[]; readonly provisioningState?: ProvisioningState; - syncMode?: SyncMode; tunnelInterfaces?: GatewayLoadBalancerTunnelInterface[]; readonly type?: string; virtualNetwork?: SubResource; @@ -1986,17 +1938,13 @@ export interface BastionHost extends Resource { dnsName?: string; enableFileCopy?: boolean; enableIpConnect?: boolean; - enableKerberos?: boolean; enableShareableLink?: boolean; enableTunneling?: boolean; readonly etag?: string; ipConfigurations?: BastionHostIPConfiguration[]; - // (undocumented) - networkAcls?: BastionHostPropertiesFormatNetworkAcls; readonly provisioningState?: ProvisioningState; scaleUnits?: number; sku?: Sku; - virtualNetwork?: SubResource; } // @public @@ -2016,11 +1964,6 @@ export interface BastionHostListResult { value?: BastionHost[]; } -// @public (undocumented) -export interface BastionHostPropertiesFormatNetworkAcls { - ipRules?: IPRule[]; -} - // @public export interface BastionHosts { beginCreateOrUpdate(resourceGroupName: string, bastionHostName: string, parameters: BastionHost, options?: BastionHostsCreateOrUpdateOptionalParams): Promise, BastionHostsCreateOrUpdateResponse>>; @@ -2266,7 +2209,6 @@ export interface ConfigurationGroup { description?: string; id?: string; readonly provisioningState?: ProvisioningState; - readonly resourceGuid?: string; } // @public @@ -2628,7 +2570,6 @@ export interface ConnectivityConfiguration extends ChildResource { hubs?: Hub[]; isGlobal?: IsGlobal; readonly provisioningState?: ProvisioningState; - readonly resourceGuid?: string; readonly systemData?: SystemData; } @@ -3080,7 +3021,6 @@ export interface DefaultAdminRule extends BaseAdminRule { readonly priority?: number; readonly protocol?: SecurityConfigurationRuleProtocol; readonly provisioningState?: ProvisioningState; - readonly resourceGuid?: string; readonly sourcePortRanges?: string[]; readonly sources?: AddressPrefixItem[]; } @@ -3307,7 +3247,6 @@ export interface EffectiveConnectivityConfiguration { id?: string; isGlobal?: IsGlobal; readonly provisioningState?: ProvisioningState; - readonly resourceGuid?: string; } // @public @@ -3322,7 +3261,6 @@ export interface EffectiveDefaultSecurityAdminRule extends EffectiveBaseSecurity readonly priority?: number; readonly protocol?: SecurityConfigurationRuleProtocol; readonly provisioningState?: ProvisioningState; - readonly resourceGuid?: string; readonly sourcePortRanges?: string[]; readonly sources?: AddressPrefixItem[]; } @@ -3388,12 +3326,7 @@ export interface EffectiveRouteListResult { export interface EffectiveRouteMapRoute { asPath?: string; bgpCommunities?: string; - prefix?: string; -} - -// @public -export interface EffectiveRouteMapRouteList { - value?: EffectiveRouteMapRoute[]; + prefix?: string[]; } // @public @@ -3419,7 +3352,6 @@ export interface EffectiveSecurityAdminRule extends EffectiveBaseSecurityAdminRu priority?: number; protocol?: SecurityConfigurationRuleProtocol; readonly provisioningState?: ProvisioningState; - readonly resourceGuid?: string; sourcePortRanges?: string[]; sources?: AddressPrefixItem[]; } @@ -4681,17 +4613,6 @@ export interface FilterItems { values?: string[]; } -// @public -export interface FirewallPacketCaptureParameters extends SubResource { - durationInSeconds?: number; - fileName?: string; - filters?: AzureFirewallPacketCaptureRule[]; - flags?: AzureFirewallPacketCaptureFlags[]; - numberOfPacketsToCapture?: number; - protocol?: AzureFirewallNetworkRuleProtocol; - sasUrl?: string; -} - // @public export interface FirewallPolicies { beginCreateOrUpdate(resourceGroupName: string, firewallPolicyName: string, parameters: FirewallPolicy, options?: FirewallPoliciesCreateOrUpdateOptionalParams): Promise, FirewallPoliciesCreateOrUpdateResponse>>; @@ -4775,7 +4696,6 @@ export interface FirewallPolicy extends Resource { intrusionDetection?: FirewallPolicyIntrusionDetection; readonly provisioningState?: ProvisioningState; readonly ruleCollectionGroups?: SubResource[]; - readonly size?: string; sku?: FirewallPolicySku; snat?: FirewallPolicySnat; sql?: FirewallPolicySQL; @@ -4805,12 +4725,6 @@ export interface FirewallPolicyFilterRuleCollectionAction { // @public export type FirewallPolicyFilterRuleCollectionActionType = string; -// @public -export interface FirewallPolicyHttpHeaderToInsert { - headerName?: string; - headerValue?: string; -} - // @public export type FirewallPolicyIdpsQuerySortOrder = string; @@ -4990,7 +4904,6 @@ export interface FirewallPolicyRuleCollectionGroup extends SubResource { priority?: number; readonly provisioningState?: ProvisioningState; ruleCollections?: FirewallPolicyRuleCollectionUnion[]; - readonly size?: string; readonly type?: string; } @@ -5317,16 +5230,6 @@ export interface GetVpnSitesConfigurationRequest { vpnSites?: string[]; } -// @public -export interface GroupByUserSession { - groupByVariables: GroupByVariable[]; -} - -// @public -export interface GroupByVariable { - variableName: ApplicationGatewayFirewallUserSessionVariable; -} - // @public export type GroupConnectivity = string; @@ -5897,11 +5800,6 @@ export interface IPPrefixesList { ipPrefixes?: string[]; } -// @public (undocumented) -export interface IPRule { - addressPrefix?: string; -} - // @public export type IpsecEncryption = string; @@ -5979,12 +5877,6 @@ export enum KnownAdminRuleKind { Default = "Default" } -// @public -export enum KnownAdminState { - Disabled = "Disabled", - Enabled = "Enabled" -} - // @public export enum KnownApplicationGatewayBackendHealthServerHealth { Down = "Down", @@ -6013,6 +5905,7 @@ export enum KnownApplicationGatewayCustomErrorStatusCode { HttpStatus404 = "HttpStatus404", HttpStatus405 = "HttpStatus405", HttpStatus408 = "HttpStatus408", + HttpStatus499 = "HttpStatus499", HttpStatus500 = "HttpStatus500", HttpStatus502 = "HttpStatus502", HttpStatus503 = "HttpStatus503", @@ -6025,19 +5918,6 @@ export enum KnownApplicationGatewayFirewallMode { Prevention = "Prevention" } -// @public -export enum KnownApplicationGatewayFirewallRateLimitDuration { - FiveMins = "FiveMins", - OneMin = "OneMin" -} - -// @public -export enum KnownApplicationGatewayFirewallUserSessionVariable { - ClientAddr = "ClientAddr", - GeoLocation = "GeoLocation", - None = "None" -} - // @public export enum KnownApplicationGatewayLoadDistributionAlgorithm { IpHash = "IpHash", @@ -6085,7 +5965,6 @@ export enum KnownApplicationGatewayRuleSetStatusOptions { // @public export enum KnownApplicationGatewaySkuName { - Basic = "Basic", StandardLarge = "Standard_Large", StandardMedium = "Standard_Medium", StandardSmall = "Standard_Small", @@ -6153,7 +6032,6 @@ export enum KnownApplicationGatewaySslProtocol { // @public export enum KnownApplicationGatewayTier { - Basic = "Basic", Standard = "Standard", StandardV2 = "Standard_v2", WAF = "WAF", @@ -6228,16 +6106,6 @@ export enum KnownAzureFirewallNetworkRuleProtocol { UDP = "UDP" } -// @public -export enum KnownAzureFirewallPacketCaptureFlagsType { - Ack = "ack", - Fin = "fin", - Push = "push", - Rst = "rst", - Syn = "syn", - Urg = "urg" -} - // @public export enum KnownAzureFirewallRCActionType { Allow = "Allow", @@ -6813,6 +6681,7 @@ export enum KnownIsWorkloadProtected { // @public export enum KnownLoadBalancerBackendAddressAdminState { Down = "Down", + Drain = "Drain", None = "None", Up = "Up" } @@ -6864,21 +6733,11 @@ export enum KnownNetworkIntentPolicyBasedService { // @public export enum KnownNetworkInterfaceAuxiliaryMode { - AcceleratedConnections = "AcceleratedConnections", Floating = "Floating", MaxConnections = "MaxConnections", None = "None" } -// @public -export enum KnownNetworkInterfaceAuxiliarySku { - A1 = "A1", - A2 = "A2", - A4 = "A4", - A8 = "A8", - None = "None" -} - // @public export enum KnownNetworkInterfaceMigrationPhase { Abort = "Abort", @@ -7134,28 +6993,6 @@ export enum KnownScopeConnectionState { Revoked = "Revoked" } -// @public -export enum KnownScrubbingRuleEntryMatchOperator { - Equals = "Equals", - EqualsAny = "EqualsAny" -} - -// @public -export enum KnownScrubbingRuleEntryMatchVariable { - RequestArgNames = "RequestArgNames", - RequestCookieNames = "RequestCookieNames", - RequestHeaderNames = "RequestHeaderNames", - RequestIPAddress = "RequestIPAddress", - RequestJsonArgNames = "RequestJSONArgNames", - RequestPostArgNames = "RequestPostArgNames" -} - -// @public -export enum KnownScrubbingRuleEntryState { - Disabled = "Disabled", - Enabled = "Enabled" -} - // @public export enum KnownSecurityConfigurationRuleAccess { Allow = "Allow", @@ -7230,12 +7067,6 @@ export enum KnownSeverity { Warning = "Warning" } -// @public -export enum KnownSyncMode { - Automatic = "Automatic", - Manual = "Manual" -} - // @public export enum KnownSyncRemoteAddressSpace { True = "true" @@ -7524,14 +7355,7 @@ export enum KnownWebApplicationFirewallPolicyResourceState { // @public export enum KnownWebApplicationFirewallRuleType { Invalid = "Invalid", - MatchRule = "MatchRule", - RateLimitRule = "RateLimitRule" -} - -// @public -export enum KnownWebApplicationFirewallScrubbingState { - Disabled = "Disabled", - Enabled = "Enabled" + MatchRule = "MatchRule" } // @public @@ -7953,7 +7777,6 @@ export interface LoadBalancers { get(resourceGroupName: string, loadBalancerName: string, options?: LoadBalancersGetOptionalParams): Promise; list(resourceGroupName: string, options?: LoadBalancersListOptionalParams): PagedAsyncIterableIterator; listAll(options?: LoadBalancersListAllOptionalParams): PagedAsyncIterableIterator; - migrateToIpBased(groupName: string, loadBalancerName: string, options?: LoadBalancersMigrateToIpBasedOptionalParams): Promise; updateTags(resourceGroupName: string, loadBalancerName: string, parameters: TagsObject, options?: LoadBalancersUpdateTagsOptionalParams): Promise; } @@ -8029,14 +7852,6 @@ export interface LoadBalancersListOptionalParams extends coreClient.OperationOpt // @public export type LoadBalancersListResponse = LoadBalancerListResult; -// @public -export interface LoadBalancersMigrateToIpBasedOptionalParams extends coreClient.OperationOptions { - parameters?: MigrateLoadBalancerToIpBasedRequest; -} - -// @public -export type LoadBalancersMigrateToIpBasedResponse = MigratedPools; - // @public export interface LoadBalancersSwapPublicIpAddressesOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -8282,16 +8097,6 @@ export interface MetricSpecification { unit?: string; } -// @public -export interface MigratedPools { - migratedPools?: string[]; -} - -// @public -export interface MigrateLoadBalancerToIpBasedRequest { - pools?: string[]; -} - // @public export interface NatGateway extends Resource { readonly etag?: string; @@ -8486,7 +8291,6 @@ export interface NetworkConfigurationDiagnosticResult { export interface NetworkGroup extends ChildResource { description?: string; readonly provisioningState?: ProvisioningState; - readonly resourceGuid?: string; readonly systemData?: SystemData; } @@ -8570,7 +8374,6 @@ export interface NetworkIntentPolicyConfiguration { // @public export interface NetworkInterface extends Resource { auxiliaryMode?: NetworkInterfaceAuxiliaryMode; - auxiliarySku?: NetworkInterfaceAuxiliarySku; disableTcpStateTracking?: boolean; dnsSettings?: NetworkInterfaceDnsSettings; readonly dscpConfiguration?: SubResource; @@ -8604,9 +8407,6 @@ export interface NetworkInterfaceAssociation { // @public export type NetworkInterfaceAuxiliaryMode = string; -// @public -export type NetworkInterfaceAuxiliarySku = string; - // @public export interface NetworkInterfaceDnsSettings { readonly appliedDnsServers?: string[]; @@ -9135,8 +8935,6 @@ export class NetworkManagementClient extends coreClient.ServiceClient { // (undocumented) networkSecurityGroups: NetworkSecurityGroups; // (undocumented) - networkVirtualApplianceConnections: NetworkVirtualApplianceConnections; - // (undocumented) networkVirtualAppliances: NetworkVirtualAppliances; // (undocumented) networkWatchers: NetworkWatchers; @@ -9272,7 +9070,6 @@ export interface NetworkManager extends Resource { networkManagerScopeAccesses?: ConfigurationType[]; networkManagerScopes?: NetworkManagerPropertiesNetworkManagerScopes; readonly provisioningState?: ProvisioningState; - readonly resourceGuid?: string; readonly systemData?: SystemData; } @@ -9664,7 +9461,6 @@ export interface NetworkSecurityRulesEvaluationResult { // @public export interface NetworkVirtualAppliance extends Resource { - additionalNics?: VirtualApplianceAdditionalNicProperties[]; readonly addressPrefix?: string; bootStrapConfigurationBlobs?: string[]; cloudInitConfiguration?: string; @@ -9679,81 +9475,11 @@ export interface NetworkVirtualAppliance extends Resource { readonly provisioningState?: ProvisioningState; sshPublicKey?: string; virtualApplianceAsn?: number; - readonly virtualApplianceConnections?: SubResource[]; readonly virtualApplianceNics?: VirtualApplianceNicProperties[]; readonly virtualApplianceSites?: SubResource[]; virtualHub?: SubResource; } -// @public -export interface NetworkVirtualApplianceConnection extends SubResource { - asn?: number; - bgpPeerAddress?: string[]; - enableInternetSecurity?: boolean; - name?: string; - namePropertiesName?: string; - readonly provisioningState?: ProvisioningState; - routingConfiguration?: RoutingConfigurationNfv; - tunnelIdentifier?: number; -} - -// @public -export interface NetworkVirtualApplianceConnectionList { - nextLink?: string; - value?: NetworkVirtualApplianceConnection[]; -} - -// @public -export interface NetworkVirtualApplianceConnections { - beginCreateOrUpdate(resourceGroupName: string, networkVirtualApplianceName: string, connectionName: string, networkVirtualApplianceConnectionParameters: NetworkVirtualApplianceConnection, options?: NetworkVirtualApplianceConnectionsCreateOrUpdateOptionalParams): Promise, NetworkVirtualApplianceConnectionsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, networkVirtualApplianceName: string, connectionName: string, networkVirtualApplianceConnectionParameters: NetworkVirtualApplianceConnection, options?: NetworkVirtualApplianceConnectionsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, networkVirtualApplianceName: string, connectionName: string, options?: NetworkVirtualApplianceConnectionsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, networkVirtualApplianceName: string, connectionName: string, options?: NetworkVirtualApplianceConnectionsDeleteOptionalParams): Promise; - get(resourceGroupName: string, networkVirtualApplianceName: string, connectionName: string, options?: NetworkVirtualApplianceConnectionsGetOptionalParams): Promise; - list(resourceGroupName: string, networkVirtualApplianceName: string, options?: NetworkVirtualApplianceConnectionsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface NetworkVirtualApplianceConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type NetworkVirtualApplianceConnectionsCreateOrUpdateResponse = NetworkVirtualApplianceConnection; - -// @public -export interface NetworkVirtualApplianceConnectionsDeleteHeaders { - location?: string; -} - -// @public -export interface NetworkVirtualApplianceConnectionsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface NetworkVirtualApplianceConnectionsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NetworkVirtualApplianceConnectionsGetResponse = NetworkVirtualApplianceConnection; - -// @public -export interface NetworkVirtualApplianceConnectionsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NetworkVirtualApplianceConnectionsListNextResponse = NetworkVirtualApplianceConnectionList; - -// @public -export interface NetworkVirtualApplianceConnectionsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type NetworkVirtualApplianceConnectionsListResponse = NetworkVirtualApplianceConnectionList; - // @public export interface NetworkVirtualApplianceListResult { nextLink?: string; @@ -9772,11 +9498,6 @@ export interface NetworkVirtualAppliances { updateTags(resourceGroupName: string, networkVirtualApplianceName: string, parameters: TagsObject, options?: NetworkVirtualAppliancesUpdateTagsOptionalParams): Promise; } -// @public -export interface NetworkVirtualAppliancesCreateOrUpdateHeaders { - location?: string; -} - // @public export interface NetworkVirtualAppliancesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -9786,11 +9507,6 @@ export interface NetworkVirtualAppliancesCreateOrUpdateOptionalParams extends co // @public export type NetworkVirtualAppliancesCreateOrUpdateResponse = NetworkVirtualAppliance; -// @public -export interface NetworkVirtualAppliancesDeleteHeaders { - location?: string; -} - // @public export interface NetworkVirtualAppliancesDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -10611,6 +10327,11 @@ export interface PeerRoute { readonly weight?: number; } +// @public +export interface PeerRouteList { + value?: PeerRoute[]; +} + // @public export type PfsGroup = string; @@ -10618,23 +10339,13 @@ export type PfsGroup = string; export interface PolicySettings { customBlockResponseBody?: string; customBlockResponseStatusCode?: number; - fileUploadEnforcement?: boolean; fileUploadLimitInMb?: number; - logScrubbing?: PolicySettingsLogScrubbing; maxRequestBodySizeInKb?: number; mode?: WebApplicationFirewallMode; requestBodyCheck?: boolean; - requestBodyEnforcement?: boolean; - requestBodyInspectLimitInKB?: number; state?: WebApplicationFirewallEnabledState; } -// @public -export interface PolicySettingsLogScrubbing { - scrubbingRules?: WebApplicationFirewallScrubbingRules[]; - state?: WebApplicationFirewallScrubbingState; -} - // @public export type PreferredIPVersion = string; @@ -10735,7 +10446,6 @@ export interface PrivateEndpointConnection extends SubResource { readonly linkIdentifier?: string; name?: string; readonly privateEndpoint?: PrivateEndpoint; - readonly privateEndpointLocation?: string; privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; readonly provisioningState?: ProvisioningState; readonly type?: string; @@ -11073,12 +10783,6 @@ export interface PropagatedRouteTable { labels?: string[]; } -// @public -export interface PropagatedRouteTableNfv { - ids?: RoutingConfigurationNfvSubResource[]; - labels?: string[]; -} - // @public export type Protocol = string; @@ -11120,14 +10824,10 @@ export interface PublicIPAddress extends Resource { // @public export interface PublicIPAddressDnsSettings { domainNameLabel?: string; - domainNameLabelScope?: PublicIpAddressDnsSettingsDomainNameLabelScope; fqdn?: string; reverseFqdn?: string; } -// @public -export type PublicIpAddressDnsSettingsDomainNameLabelScope = "TenantReuse" | "SubscriptionReuse" | "ResourceGroupReuse" | "NoReuse"; - // @public export interface PublicIPAddresses { beginCreateOrUpdate(resourceGroupName: string, publicIpAddressName: string, parameters: PublicIPAddress, options?: PublicIPAddressesCreateOrUpdateOptionalParams): Promise, PublicIPAddressesCreateOrUpdateResponse>>; @@ -11951,19 +11651,6 @@ export interface RoutingConfiguration { vnetRoutes?: VnetRoute; } -// @public -export interface RoutingConfigurationNfv { - associatedRouteTable?: RoutingConfigurationNfvSubResource; - inboundRouteMap?: RoutingConfigurationNfvSubResource; - outboundRouteMap?: RoutingConfigurationNfvSubResource; - propagatedRouteTables?: PropagatedRouteTableNfv; -} - -// @public -export interface RoutingConfigurationNfvSubResource { - resourceUri?: string; -} - // @public export interface RoutingIntent extends SubResource { readonly etag?: string; @@ -12089,21 +11776,11 @@ export type ScopeConnectionsListResponse = ScopeConnectionListResult; // @public export type ScopeConnectionState = string; -// @public -export type ScrubbingRuleEntryMatchOperator = string; - -// @public -export type ScrubbingRuleEntryMatchVariable = string; - -// @public -export type ScrubbingRuleEntryState = string; - // @public export interface SecurityAdminConfiguration extends ChildResource { applyOnNetworkIntentPolicyBasedServices?: NetworkIntentPolicyBasedService[]; description?: string; readonly provisioningState?: ProvisioningState; - readonly resourceGuid?: string; readonly systemData?: SystemData; } @@ -12763,8 +12440,7 @@ export interface StaticRoutesConfig { export interface Subnet extends SubResource { addressPrefix?: string; addressPrefixes?: string[]; - applicationGatewayIPConfigurations?: ApplicationGatewayIPConfiguration[]; - defaultOutboundAccess?: boolean; + applicationGatewayIpConfigurations?: ApplicationGatewayIPConfiguration[]; delegations?: Delegation[]; readonly etag?: string; ipAllocations?: SubResource[]; @@ -12934,9 +12610,6 @@ export interface SwapResourceProperties { slotType?: SlotType; } -// @public -export type SyncMode = string; - // @public export type SyncRemoteAddressSpace = string; @@ -13154,15 +12827,8 @@ export interface VipSwapListOptionalParams extends coreClient.OperationOptions { // @public export type VipSwapListResponse = SwapResourceListResult; -// @public -export interface VirtualApplianceAdditionalNicProperties { - hasPublicIp?: boolean; - name?: string; -} - // @public export interface VirtualApplianceNicProperties { - readonly instanceName?: string; readonly name?: string; readonly privateIpAddress?: string; readonly publicIpAddress?: string; @@ -13333,9 +12999,7 @@ export interface VirtualHubBgpConnectionsListAdvertisedRoutesOptionalParams exte } // @public -export type VirtualHubBgpConnectionsListAdvertisedRoutesResponse = { - [propertyName: string]: PeerRoute[]; -}; +export type VirtualHubBgpConnectionsListAdvertisedRoutesResponse = PeerRouteList; // @public export interface VirtualHubBgpConnectionsListLearnedRoutesOptionalParams extends coreClient.OperationOptions { @@ -13344,9 +13008,7 @@ export interface VirtualHubBgpConnectionsListLearnedRoutesOptionalParams extends } // @public -export type VirtualHubBgpConnectionsListLearnedRoutesResponse = { - [propertyName: string]: PeerRoute[]; -}; +export type VirtualHubBgpConnectionsListLearnedRoutesResponse = PeerRouteList; // @public export interface VirtualHubBgpConnectionsListNextOptionalParams extends coreClient.OperationOptions { @@ -13507,12 +13169,12 @@ export interface VirtualHubs { beginCreateOrUpdateAndWait(resourceGroupName: string, virtualHubName: string, virtualHubParameters: VirtualHub, options?: VirtualHubsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, virtualHubName: string, options?: VirtualHubsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, virtualHubName: string, options?: VirtualHubsDeleteOptionalParams): Promise; - beginGetEffectiveVirtualHubRoutes(resourceGroupName: string, virtualHubName: string, options?: VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams): Promise, VirtualHubsGetEffectiveVirtualHubRoutesResponse>>; - beginGetEffectiveVirtualHubRoutesAndWait(resourceGroupName: string, virtualHubName: string, options?: VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams): Promise; - beginGetInboundRoutes(resourceGroupName: string, virtualHubName: string, getInboundRoutesParameters: GetInboundRoutesParameters, options?: VirtualHubsGetInboundRoutesOptionalParams): Promise, VirtualHubsGetInboundRoutesResponse>>; - beginGetInboundRoutesAndWait(resourceGroupName: string, virtualHubName: string, getInboundRoutesParameters: GetInboundRoutesParameters, options?: VirtualHubsGetInboundRoutesOptionalParams): Promise; - beginGetOutboundRoutes(resourceGroupName: string, virtualHubName: string, getOutboundRoutesParameters: GetOutboundRoutesParameters, options?: VirtualHubsGetOutboundRoutesOptionalParams): Promise, VirtualHubsGetOutboundRoutesResponse>>; - beginGetOutboundRoutesAndWait(resourceGroupName: string, virtualHubName: string, getOutboundRoutesParameters: GetOutboundRoutesParameters, options?: VirtualHubsGetOutboundRoutesOptionalParams): Promise; + beginGetEffectiveVirtualHubRoutes(resourceGroupName: string, virtualHubName: string, options?: VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams): Promise, void>>; + beginGetEffectiveVirtualHubRoutesAndWait(resourceGroupName: string, virtualHubName: string, options?: VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams): Promise; + beginGetInboundRoutes(resourceGroupName: string, virtualHubName: string, getInboundRoutesParameters: GetInboundRoutesParameters, options?: VirtualHubsGetInboundRoutesOptionalParams): Promise, void>>; + beginGetInboundRoutesAndWait(resourceGroupName: string, virtualHubName: string, getInboundRoutesParameters: GetInboundRoutesParameters, options?: VirtualHubsGetInboundRoutesOptionalParams): Promise; + beginGetOutboundRoutes(resourceGroupName: string, virtualHubName: string, getOutboundRoutesParameters: GetOutboundRoutesParameters, options?: VirtualHubsGetOutboundRoutesOptionalParams): Promise, void>>; + beginGetOutboundRoutesAndWait(resourceGroupName: string, virtualHubName: string, getOutboundRoutesParameters: GetOutboundRoutesParameters, options?: VirtualHubsGetOutboundRoutesOptionalParams): Promise; get(resourceGroupName: string, virtualHubName: string, options?: VirtualHubsGetOptionalParams): Promise; list(options?: VirtualHubsListOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: VirtualHubsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; @@ -13541,18 +13203,12 @@ export interface VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams extends c updateIntervalInMs?: number; } -// @public -export type VirtualHubsGetEffectiveVirtualHubRoutesResponse = VirtualHubEffectiveRouteList; - // @public export interface VirtualHubsGetInboundRoutesOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } -// @public -export type VirtualHubsGetInboundRoutesResponse = EffectiveRouteMapRouteList; - // @public export interface VirtualHubsGetOptionalParams extends coreClient.OperationOptions { } @@ -13563,9 +13219,6 @@ export interface VirtualHubsGetOutboundRoutesOptionalParams extends coreClient.O updateIntervalInMs?: number; } -// @public -export type VirtualHubsGetOutboundRoutesResponse = EffectiveRouteMapRouteList; - // @public export type VirtualHubsGetResponse = VirtualHub; @@ -13653,10 +13306,8 @@ export type VirtualNetworkEncryptionEnforcement = string; // @public export interface VirtualNetworkGateway extends Resource { active?: boolean; - adminState?: AdminState; allowRemoteVnetTraffic?: boolean; allowVirtualWanTraffic?: boolean; - autoScaleConfiguration?: VirtualNetworkGatewayAutoScaleConfiguration; bgpSettings?: BgpSettings; customRoutes?: AddressSpace; disableIPSecReplayProtection?: boolean; @@ -13681,17 +13332,6 @@ export interface VirtualNetworkGateway extends Resource { vpnType?: VpnType; } -// @public (undocumented) -export interface VirtualNetworkGatewayAutoScaleBounds { - max?: number; - min?: number; -} - -// @public -export interface VirtualNetworkGatewayAutoScaleConfiguration { - bounds?: VirtualNetworkGatewayAutoScaleBounds; -} - // @public export interface VirtualNetworkGatewayConnection extends Resource { authorizationKey?: string; @@ -14293,12 +13933,17 @@ export interface VirtualNetworkPeering extends SubResource { allowVirtualNetworkAccess?: boolean; doNotVerifyRemoteGateways?: boolean; readonly etag?: string; + localAddressSpace?: AddressSpace; + localSubnetNames?: string[]; + localVirtualNetworkAddressSpace?: AddressSpace; name?: string; + peerCompleteVnets?: boolean; peeringState?: VirtualNetworkPeeringState; peeringSyncLevel?: VirtualNetworkPeeringLevel; readonly provisioningState?: ProvisioningState; remoteAddressSpace?: AddressSpace; remoteBgpCommunities?: VirtualNetworkBgpCommunities; + remoteSubnetNames?: string[]; remoteVirtualNetwork?: SubResource; remoteVirtualNetworkAddressSpace?: AddressSpace; readonly remoteVirtualNetworkEncryption?: VirtualNetworkEncryption; @@ -15655,12 +15300,9 @@ export type WebApplicationFirewallAction = string; export interface WebApplicationFirewallCustomRule { action: WebApplicationFirewallAction; readonly etag?: string; - groupByUserSession?: GroupByUserSession[]; matchConditions: MatchCondition[]; name?: string; priority: number; - rateLimitDuration?: ApplicationGatewayFirewallRateLimitDuration; - rateLimitThreshold?: number; ruleType: WebApplicationFirewallRuleType; state?: WebApplicationFirewallState; } @@ -15760,17 +15402,6 @@ export type WebApplicationFirewallPolicyResourceState = string; // @public export type WebApplicationFirewallRuleType = string; -// @public -export interface WebApplicationFirewallScrubbingRules { - matchVariable: ScrubbingRuleEntryMatchVariable; - selector?: string; - selectorMatchOperator: ScrubbingRuleEntryMatchOperator; - state?: ScrubbingRuleEntryState; -} - -// @public -export type WebApplicationFirewallScrubbingState = string; - // @public export type WebApplicationFirewallState = string; diff --git a/sdk/network/arm-network/src/models/index.ts b/sdk/network/arm-network/src/models/index.ts index ea928d566358..4dc93daff865 100644 --- a/sdk/network/arm-network/src/models/index.ts +++ b/sdk/network/arm-network/src/models/index.ts @@ -241,8 +241,6 @@ export interface PublicIPAddressSku { export interface PublicIPAddressDnsSettings { /** 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; - /** The domain name label scope. If a domain name label and a domain name label scope are specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system with a hashed value includes in FQDN. */ - domainNameLabelScope?: PublicIpAddressDnsSettingsDomainNameLabelScope; /** The 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; /** 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. */ @@ -912,22 +910,6 @@ export interface IPPrefixesList { ipPrefixes?: string[]; } -/** Properties of the AzureFirewallRCAction. */ -export interface AzureFirewallPacketCaptureFlags { - /** Flags to capture */ - type?: AzureFirewallPacketCaptureFlagsType; -} - -/** Group of src/dest ips and ports to be captured. */ -export interface AzureFirewallPacketCaptureRule { - /** List of source IP addresses/subnets to be captured. */ - sources?: string[]; - /** List of destination IP addresses/subnets to be captured. */ - destinations?: string[]; - /** List of ports to be captured. */ - destinationPorts?: string[]; -} - /** Response for ListAzureFirewallFqdnTags API service call. */ export interface AzureFirewallFqdnTagListResult { /** List of Azure Firewall FQDN Tags in a resource group. */ @@ -970,16 +952,6 @@ export interface AzureWebCategoryListResult { nextLink?: string; } -export interface BastionHostPropertiesFormatNetworkAcls { - /** Sets the IP ACL rules for Developer Bastion Host. */ - ipRules?: IPRule[]; -} - -export interface IPRule { - /** Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. */ - addressPrefix?: string; -} - /** The sku of this Bastion Host. */ export interface Sku { /** The name of this Bastion Host. */ @@ -2061,18 +2033,6 @@ export interface InboundNatRulePortMapping { readonly backendPort?: number; } -/** The request for a migrateToIpBased API. */ -export interface MigrateLoadBalancerToIpBasedRequest { - /** A list of pool names that should be migrated from Nic based to IP based pool */ - pools?: string[]; -} - -/** The response for a migrateToIpBased API. */ -export interface MigratedPools { - /** A list of pools migrated from Nic based to IP based pool */ - migratedPools?: string[]; -} - /** Response for ListNatGateways API service call. */ export interface NatGatewayListResult { /** A list of Nat Gateways that exists in a resource group. */ @@ -2360,11 +2320,6 @@ export interface EffectiveConnectivityConfiguration { readonly provisioningState?: ProvisioningState; /** Flag if need to remove current existing peerings. */ deleteExistingPeering?: DeleteExistingPeering; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; } /** Hub Item. */ @@ -2398,11 +2353,6 @@ export interface ConfigurationGroup { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; } /** Result of the request to list active security admin rules. It contains a list of active security admin rules and a skiptoken to get the next set of results. */ @@ -2637,19 +2587,6 @@ export interface VirtualApplianceNicProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateIpAddress?: string; - /** - * Instance on which nic is attached. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instanceName?: string; -} - -/** Network Virtual Appliance Additional NIC properties. */ -export interface VirtualApplianceAdditionalNicProperties { - /** Name of additional nic */ - name?: string; - /** Flag (true or false) for Intent for Public Ip on additional nic */ - hasPublicIp?: boolean; } /** Properties of the delegation. */ @@ -4502,19 +4439,6 @@ export interface VirtualNetworkDdosProtectionStatusResult { nextLink?: string; } -/** Virtual Network Gateway Autoscale Configuration details */ -export interface VirtualNetworkGatewayAutoScaleConfiguration { - /** The bounds of the autoscale configuration */ - bounds?: VirtualNetworkGatewayAutoScaleBounds; -} - -export interface VirtualNetworkGatewayAutoScaleBounds { - /** Minimum scale Units for Autoscale configuration */ - min?: number; - /** Maximum Scale Units for Autoscale configuration */ - max?: number; -} - /** VirtualNetworkGatewaySku details. */ export interface VirtualNetworkGatewaySku { /** Gateway SKU name. */ @@ -5491,40 +5415,6 @@ export interface ExpressRouteConnectionList { value?: ExpressRouteConnection[]; } -/** NFV version of Routing Configuration indicating the associated and propagated route tables for this connection. */ -export interface RoutingConfigurationNfv { - /** The resource id RouteTable associated with this RoutingConfiguration. */ - associatedRouteTable?: RoutingConfigurationNfvSubResource; - /** The list of RouteTables to advertise the routes to. */ - propagatedRouteTables?: PropagatedRouteTableNfv; - /** The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes. */ - inboundRouteMap?: RoutingConfigurationNfvSubResource; - /** The resource id of the RouteMap associated with this RoutingConfiguration for outbound advertised routes. */ - outboundRouteMap?: RoutingConfigurationNfvSubResource; -} - -/** Reference to RouteTableV3 associated with the connection. */ -export interface RoutingConfigurationNfvSubResource { - /** Resource ID. */ - resourceUri?: string; -} - -/** Nfv version of the list of RouteTables to advertise the routes to. */ -export interface PropagatedRouteTableNfv { - /** The list of labels. */ - labels?: string[]; - /** The list of resource ids of all the RouteTables. */ - ids?: RoutingConfigurationNfvSubResource[]; -} - -/** NetworkVirtualApplianceConnection list. */ -export interface NetworkVirtualApplianceConnectionList { - /** The list of NetworkVirtualAppliance connections. */ - value?: NetworkVirtualApplianceConnection[]; - /** URL to get the next set of results. */ - nextLink?: string; -} - /** VirtualHubBgpConnections list. */ export interface ListVirtualHubBgpConnectionResults { /** The list of VirtualHubBgpConnections. */ @@ -5533,6 +5423,12 @@ export interface ListVirtualHubBgpConnectionResults { nextLink?: string; } +/** List of virtual router peer routes. */ +export interface PeerRouteList { + /** List of peer routes. */ + value?: PeerRoute[]; +} + /** Peer routing details. */ export interface PeerRoute { /** @@ -5610,26 +5506,6 @@ export interface EffectiveRoutesParameters { virtualWanResourceType?: string; } -/** EffectiveRoutes List. */ -export interface VirtualHubEffectiveRouteList { - /** The list of effective routes configured on the virtual hub or the specified resource. */ - value?: VirtualHubEffectiveRoute[]; -} - -/** The effective route configured on the virtual hub or specified resource. */ -export interface VirtualHubEffectiveRoute { - /** The list of address prefixes. */ - addressPrefixes?: string[]; - /** The list of next hops. */ - nextHops?: string[]; - /** The type of the next hop. */ - nextHopType?: string; - /** The ASPath of this route. */ - asPath?: string; - /** The origin of this route. */ - routeOrigin?: string; -} - /** The parameters specifying the connection resource whose inbound routes are being requested. */ export interface GetInboundRoutesParameters { /** The connection resource whose inbound routes are being requested. */ @@ -5638,22 +5514,6 @@ export interface GetInboundRoutesParameters { connectionType?: string; } -/** EffectiveRouteMapRoute List. */ -export interface EffectiveRouteMapRouteList { - /** The list of Effective RouteMap Routes configured on the connection resource. */ - value?: EffectiveRouteMapRoute[]; -} - -/** The effective RouteMap route configured on the connection resource. */ -export interface EffectiveRouteMapRoute { - /** The address prefix of the route. */ - prefix?: string; - /** BGP communities of the route. */ - bgpCommunities?: string; - /** The ASPath of this route. */ - asPath?: string; -} - /** The parameters specifying the connection resource whose outbound routes are being requested. */ export interface GetOutboundRoutesParameters { /** The connection resource whose outbound routes are being requested. */ @@ -5702,42 +5562,14 @@ export interface PolicySettings { mode?: WebApplicationFirewallMode; /** Whether to allow WAF to check request Body. */ requestBodyCheck?: boolean; - /** Max inspection limit in KB for request body inspection for WAF. */ - requestBodyInspectLimitInKB?: number; - /** Whether allow WAF to enforce request body limits. */ - requestBodyEnforcement?: boolean; /** Maximum request body size in Kb for WAF. */ maxRequestBodySizeInKb?: number; - /** Whether allow WAF to enforce file upload limits. */ - fileUploadEnforcement?: boolean; /** Maximum file upload size in Mb for WAF. */ fileUploadLimitInMb?: number; /** If the action type is block, customer can override the response status code. */ customBlockResponseStatusCode?: number; /** If the action type is block, customer can override the response body. The body must be specified in base64 encoding. */ customBlockResponseBody?: string; - /** To scrub sensitive log fields */ - logScrubbing?: PolicySettingsLogScrubbing; -} - -/** To scrub sensitive log fields */ -export interface PolicySettingsLogScrubbing { - /** State of the log scrubbing config. Default value is Enabled. */ - state?: WebApplicationFirewallScrubbingState; - /** The rules that are applied to the logs for scrubbing. */ - scrubbingRules?: WebApplicationFirewallScrubbingRules[]; -} - -/** Allow certain variables to be scrubbed on WAF logs */ -export interface WebApplicationFirewallScrubbingRules { - /** The variable to be scrubbed from the logs. */ - matchVariable: ScrubbingRuleEntryMatchVariable; - /** When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. */ - selectorMatchOperator: ScrubbingRuleEntryMatchOperator; - /** When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. */ - selector?: string; - /** Defines the state of log scrubbing rule. Default value is Enabled. */ - state?: ScrubbingRuleEntryState; } /** Defines contents of a web application rule. */ @@ -5753,16 +5585,10 @@ export interface WebApplicationFirewallCustomRule { priority: number; /** Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. */ state?: WebApplicationFirewallState; - /** Duration over which Rate Limit policy will be applied. Applies only when ruleType is RateLimitRule. */ - rateLimitDuration?: ApplicationGatewayFirewallRateLimitDuration; - /** Rate Limit threshold to apply in case ruleType is RateLimitRule. Must be greater than or equal to 1 */ - rateLimitThreshold?: number; /** The rule type. */ ruleType: WebApplicationFirewallRuleType; /** List of match conditions. */ matchConditions: MatchCondition[]; - /** List of user session identifier group by clauses. */ - groupByUserSession?: GroupByUserSession[]; /** Type of Actions. */ action: WebApplicationFirewallAction; } @@ -5789,18 +5615,6 @@ export interface MatchVariable { selector?: string; } -/** Define user session identifier group by clauses. */ -export interface GroupByUserSession { - /** List of group by clause variables. */ - groupByVariables: GroupByVariable[]; -} - -/** Define user session group by clause variables. */ -export interface GroupByVariable { - /** User Session clause variable. */ - variableName: ApplicationGatewayFirewallUserSessionVariable; -} - /** Allow to exclude some variable satisfy the condition for the WAF check. */ export interface ManagedRulesDefinition { /** The Exclusions that are applied on the policy. */ @@ -5903,14 +5717,6 @@ export interface FirewallPolicyRuleApplicationProtocol { port?: number; } -/** name and value of HTTP/S header to insert */ -export interface FirewallPolicyHttpHeaderToInsert { - /** Contains the name of the header */ - headerName?: string; - /** Contains the value of the header */ - headerValue?: 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. */ @@ -5936,6 +5742,36 @@ export interface VpnSiteId { readonly vpnSite?: string; } +/** EffectiveRoutes List. */ +export interface VirtualHubEffectiveRouteList { + /** The list of effective routes configured on the virtual hub or the specified resource. */ + value?: VirtualHubEffectiveRoute[]; +} + +/** The effective route configured on the virtual hub or specified resource. */ +export interface VirtualHubEffectiveRoute { + /** The list of address prefixes. */ + addressPrefixes?: string[]; + /** The list of next hops. */ + nextHops?: string[]; + /** The type of the next hop. */ + nextHopType?: string; + /** The ASPath of this route. */ + asPath?: string; + /** The origin of this route. */ + routeOrigin?: string; +} + +/** The effective RouteMap route configured on the connection resource. */ +export interface EffectiveRouteMapRoute { + /** The address prefix of the route. */ + prefix?: string[]; + /** BGP communities of the route. */ + bgpCommunities?: string; + /** The ASPath of this route. */ + asPath?: string; +} + /** IP configuration of an application gateway. Currently 1 public and 1 private IP configuration is allowed. */ export interface ApplicationGatewayIPConfiguration extends SubResource { /** Name of the IP configuration that is unique within an Application Gateway. */ @@ -6167,7 +6003,7 @@ export interface ApplicationGatewayProbe extends SubResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Basic, Standard_v2 and WAF_v2 only. */ + /** Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Standard_v2 and WAF_v2 only. */ port?: number; } @@ -6333,11 +6169,6 @@ export interface PrivateEndpointConnection extends SubResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly linkIdentifier?: string; - /** - * The location of the private endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateEndpointLocation?: string; } /** Route resource. */ @@ -6585,9 +6416,7 @@ export interface Subnet extends SubResource { /** Enable or Disable apply network policies on private link service in the subnet. */ privateLinkServiceNetworkPolicies?: VirtualNetworkPrivateLinkServiceNetworkPolicies; /** Application gateway IP configurations of virtual network resource. */ - applicationGatewayIPConfigurations?: ApplicationGatewayIPConfiguration[]; - /** Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet. */ - defaultOutboundAccess?: boolean; + applicationGatewayIpConfigurations?: ApplicationGatewayIPConfiguration[]; } /** Frontend IP address of the load balancer. */ @@ -6701,8 +6530,6 @@ export interface BackendAddressPool extends SubResource { drainPeriodInSeconds?: number; /** A reference to a virtual network. */ virtualNetwork?: SubResource; - /** Backend address synchronous mode for the backend pool */ - syncMode?: SyncMode; } /** Inbound NAT rule of the load balancer. */ @@ -7462,24 +7289,6 @@ export interface AzureFirewallIPConfiguration extends SubResource { readonly provisioningState?: ProvisioningState; } -/** Azure Firewall Packet Capture Parameters resource. */ -export interface FirewallPacketCaptureParameters extends SubResource { - /** Duration of packet capture in seconds. */ - durationInSeconds?: number; - /** Number of packets to be captured. */ - numberOfPacketsToCapture?: number; - /** Upload capture location */ - sasUrl?: string; - /** Name of file to be uploaded to sasURL */ - fileName?: string; - /** The protocol of packets to capture */ - protocol?: AzureFirewallNetworkRuleProtocol; - /** The tcp-flag type to be captured. Used with protocol TCP */ - flags?: AzureFirewallPacketCaptureFlags[]; - /** Rules to filter packet captures. */ - filters?: AzureFirewallPacketCaptureRule[]; -} - /** IP configuration of an Bastion Host. */ export interface BastionHostIPConfiguration extends SubResource { /** Name of the resource that is unique within a resource group. This name can be used to access the resource. */ @@ -7839,11 +7648,6 @@ export interface FirewallPolicyRuleCollectionGroup extends SubResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; - /** - * A read-only string that represents the size of the FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB) - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly size?: string; /** Priority of the Firewall Policy Rule Collection Group resource. */ priority?: number; /** Group of Firewall Policy rule collections. */ @@ -8180,8 +7984,18 @@ export interface VirtualNetworkPeering extends SubResource { useRemoteGateways?: boolean; /** The reference to 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 local address space of the local virtual network that is peered. */ + localAddressSpace?: AddressSpace; + /** The current local address space of the local virtual network that is peered. */ + localVirtualNetworkAddressSpace?: AddressSpace; /** The reference to the address space peered with the remote virtual network. */ remoteAddressSpace?: AddressSpace; + /** Whether complete virtual network address space is peered. */ + peerCompleteVnets?: boolean; + /** List of local subnet names that are subnet peered with remote virtual network. */ + localSubnetNames?: string[]; + /** List of remote subnet names from remote virtual network that are subnet peered. */ + remoteSubnetNames?: string[]; /** The reference to the current address space of the remote virtual network. */ remoteVirtualNetworkAddressSpace?: AddressSpace; /** The reference to the remote virtual network's Bgp Communities. */ @@ -8741,29 +8555,6 @@ export interface ExpressRouteConnection extends SubResource { routingConfiguration?: RoutingConfiguration; } -/** NetworkVirtualApplianceConnection resource. */ -export interface NetworkVirtualApplianceConnection extends SubResource { - /** The name of the resource. */ - name?: string; - /** The name of the resource. */ - namePropertiesName?: string; - /** - * The provisioning state of the NetworkVirtualApplianceConnection resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** Network Virtual Appliance ASN. */ - asn?: number; - /** Unique identifier for the connection. */ - tunnelIdentifier?: number; - /** List of bgpPeerAddresses for the NVA instances */ - bgpPeerAddress?: string[]; - /** Enable internet security. */ - enableInternetSecurity?: boolean; - /** The Routing Configuration indicating the associated and propagated route tables on this connection. */ - routingConfiguration?: RoutingConfigurationNfv; -} - /** Virtual Appliance Site resource. */ export interface BgpConnection extends SubResource { /** Name of the connection. */ @@ -9124,8 +8915,6 @@ export interface NetworkInterface extends Resource { migrationPhase?: NetworkInterfaceMigrationPhase; /** Auxiliary mode of Network Interface resource. */ auxiliaryMode?: NetworkInterfaceAuxiliaryMode; - /** Auxiliary sku of Network Interface resource. */ - auxiliarySku?: NetworkInterfaceAuxiliarySku; } /** A flow log resource. */ @@ -9478,11 +9267,6 @@ export interface ApplicationGateway extends Resource { loadDistributionPolicies?: ApplicationGatewayLoadDistributionPolicy[]; /** Global Configuration. */ globalConfiguration?: ApplicationGatewayGlobalConfiguration; - /** - * The default predefined SSL Policy applied on the application gateway resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly defaultPredefinedSslPolicy?: ApplicationGatewaySslPolicyName; } /** A web application firewall rule set. */ @@ -9589,9 +9373,6 @@ export interface BastionHost extends Resource { ipConfigurations?: BastionHostIPConfiguration[]; /** FQDN for the endpoint on which bastion host is accessible. */ dnsName?: string; - /** Reference to an existing virtual network required for Developer Bastion Host only. */ - virtualNetwork?: SubResource; - networkAcls?: BastionHostPropertiesFormatNetworkAcls; /** * The provisioning state of the bastion host resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -9609,8 +9390,6 @@ export interface BastionHost extends Resource { enableShareableLink?: boolean; /** Enable/Disable Tunneling feature of the Bastion Host resource. */ enableTunneling?: boolean; - /** Enable/Disable Kerberos feature of the Bastion Host resource. */ - enableKerberos?: boolean; } /** Describes a Virtual Machine. */ @@ -9968,11 +9747,6 @@ export interface FirewallPolicy extends Resource { readonly etag?: string; /** The identity of the firewall policy. */ identity?: ManagedServiceIdentity; - /** - * A read-only string that represents the size of the FirewallPolicyPropertiesFormat in MB. (ex 0.5MB) - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly size?: string; /** * List of references to FirewallPolicyRuleCollectionGroups. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -10134,11 +9908,6 @@ export interface NetworkManager extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; } /** Network profile resource. */ @@ -10200,18 +9969,11 @@ export interface NetworkVirtualAppliance extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly virtualApplianceNics?: VirtualApplianceNicProperties[]; - /** Details required for Additional Network Interface. */ - additionalNics?: VirtualApplianceAdditionalNicProperties[]; /** * List of references to VirtualApplianceSite. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly virtualApplianceSites?: SubResource[]; - /** - * List of references to VirtualApplianceConnections. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly virtualApplianceConnections?: SubResource[]; /** * List of references to InboundSecurityRules. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -10441,8 +10203,6 @@ export interface VirtualNetworkGateway extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly etag?: string; - /** Autoscale configuration for virutal network gateway */ - autoScaleConfiguration?: VirtualNetworkGatewayAutoScaleConfiguration; /** IP configurations for virtual network gateway. */ ipConfigurations?: VirtualNetworkGatewayIPConfiguration[]; /** The type of this virtual network gateway. */ @@ -10498,8 +10258,6 @@ export interface VirtualNetworkGateway extends Resource { allowVirtualWanTraffic?: boolean; /** Configure this gateway to accept traffic from other Azure Virtual Networks. This configuration does not support connectivity to Azure Virtual WAN. */ allowRemoteVnetTraffic?: boolean; - /** Property to indicate if the Express Route Gateway serves traffic when there are multiple Express Route Gateways in the vnet */ - adminState?: AdminState; } /** A common class for general resource information. */ @@ -11092,11 +10850,6 @@ export interface ActiveSecurityAdminRule extends ActiveBaseSecurityAdminRule { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; } /** Network default admin rule. */ @@ -11156,11 +10909,6 @@ export interface ActiveDefaultSecurityAdminRule * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; } /** The Network Manager Connection resource */ @@ -11205,11 +10953,6 @@ export interface ConnectivityConfiguration extends ChildResource { readonly provisioningState?: ProvisioningState; /** Flag if need to remove current existing peerings. */ deleteExistingPeering?: DeleteExistingPeering; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; } /** The network group resource */ @@ -11226,11 +10969,6 @@ export interface NetworkGroup extends ChildResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; } /** StaticMember Item. */ @@ -11290,11 +11028,6 @@ export interface SecurityAdminConfiguration extends ChildResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; } /** Defines the admin rule collection. */ @@ -11313,11 +11046,6 @@ export interface AdminRuleCollection extends ChildResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; } /** Network base admin rule. */ @@ -11359,11 +11087,6 @@ export interface EffectiveSecurityAdminRule * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; } /** Network default admin rule. */ @@ -11423,11 +11146,6 @@ export interface EffectiveDefaultSecurityAdminRule * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; } /** The properties of a packet capture session. */ @@ -11486,8 +11204,6 @@ export interface ApplicationRule extends FirewallPolicyRule { terminateTLS?: boolean; /** List of destination azure web categories. */ webCategories?: string[]; - /** List of HTTP/S headers to insert. */ - httpHeadersToInsert?: FirewallPolicyHttpHeaderToInsert[]; } /** Rule of type nat. */ @@ -11559,11 +11275,6 @@ export interface AdminRule extends BaseAdminRule { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; } /** Network default admin rule. */ @@ -11622,16 +11333,6 @@ export interface DefaultAdminRule extends BaseAdminRule { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * Unique identifier for this resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceGuid?: string; -} - -/** Defines headers for AzureFirewalls_packetCapture operation. */ -export interface AzureFirewallsPacketCaptureHeaders { - location?: string; } /** Defines headers for PublicIPAddresses_delete operation. */ @@ -11700,24 +11401,6 @@ export interface AdminRulesDeleteHeaders { location?: string; } -/** Defines headers for NetworkVirtualAppliances_delete operation. */ -export interface NetworkVirtualAppliancesDeleteHeaders { - /** The URL of the resource used to check the status of the asynchronous operation. */ - location?: string; -} - -/** Defines headers for NetworkVirtualAppliances_createOrUpdate operation. */ -export interface NetworkVirtualAppliancesCreateOrUpdateHeaders { - /** The URL of the resource used to check the status of the asynchronous operation. */ - location?: string; -} - -/** Defines headers for NetworkVirtualApplianceConnections_delete operation. */ -export interface NetworkVirtualApplianceConnectionsDeleteHeaders { - /** The URL of the resource used to check the status of the asynchronous operation. */ - location?: string; -} - /** Known values of {@link ApplicationGatewaySkuName} that the service accepts. */ export enum KnownApplicationGatewaySkuName { /** StandardSmall */ @@ -11733,9 +11416,7 @@ export enum KnownApplicationGatewaySkuName { /** StandardV2 */ StandardV2 = "Standard_v2", /** WAFV2 */ - WAFV2 = "WAF_v2", - /** Basic */ - Basic = "Basic" + WAFV2 = "WAF_v2" } /** @@ -11749,8 +11430,7 @@ export enum KnownApplicationGatewaySkuName { * **WAF_Medium** \ * **WAF_Large** \ * **Standard_v2** \ - * **WAF_v2** \ - * **Basic** + * **WAF_v2** */ export type ApplicationGatewaySkuName = string; @@ -11763,9 +11443,7 @@ export enum KnownApplicationGatewayTier { /** StandardV2 */ StandardV2 = "Standard_v2", /** WAFV2 */ - WAFV2 = "WAF_v2", - /** Basic */ - Basic = "Basic" + WAFV2 = "WAF_v2" } /** @@ -11776,8 +11454,7 @@ export enum KnownApplicationGatewayTier { * **Standard** \ * **WAF** \ * **Standard_v2** \ - * **WAF_v2** \ - * **Basic** + * **WAF_v2** */ export type ApplicationGatewayTier = string; @@ -12190,9 +11867,7 @@ export enum KnownNetworkInterfaceAuxiliaryMode { /** MaxConnections */ MaxConnections = "MaxConnections", /** Floating */ - Floating = "Floating", - /** AcceleratedConnections */ - AcceleratedConnections = "AcceleratedConnections" + Floating = "Floating" } /** @@ -12202,38 +11877,10 @@ export enum KnownNetworkInterfaceAuxiliaryMode { * ### Known values supported by the service * **None** \ * **MaxConnections** \ - * **Floating** \ - * **AcceleratedConnections** + * **Floating** */ export type NetworkInterfaceAuxiliaryMode = string; -/** Known values of {@link NetworkInterfaceAuxiliarySku} that the service accepts. */ -export enum KnownNetworkInterfaceAuxiliarySku { - /** None */ - None = "None", - /** A1 */ - A1 = "A1", - /** A2 */ - A2 = "A2", - /** A4 */ - A4 = "A4", - /** A8 */ - A8 = "A8" -} - -/** - * Defines values for NetworkInterfaceAuxiliarySku. \ - * {@link KnownNetworkInterfaceAuxiliarySku} can be used interchangeably with NetworkInterfaceAuxiliarySku, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **A1** \ - * **A2** \ - * **A4** \ - * **A8** - */ -export type NetworkInterfaceAuxiliarySku = string; - /** Known values of {@link FlowLogFormatType} that the service accepts. */ export enum KnownFlowLogFormatType { /** Json */ @@ -12478,7 +12125,9 @@ export enum KnownLoadBalancerBackendAddressAdminState { /** Up */ Up = "Up", /** Down */ - Down = "Down" + Down = "Down", + /** Drain */ + Drain = "Drain" } /** @@ -12488,28 +12137,11 @@ export enum KnownLoadBalancerBackendAddressAdminState { * ### Known values supported by the service * **None** \ * **Up** \ - * **Down** + * **Down** \ + * **Drain** */ export type LoadBalancerBackendAddressAdminState = string; -/** Known values of {@link SyncMode} that the service accepts. */ -export enum KnownSyncMode { - /** Automatic */ - Automatic = "Automatic", - /** Manual */ - Manual = "Manual" -} - -/** - * Defines values for SyncMode. \ - * {@link KnownSyncMode} can be used interchangeably with SyncMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Automatic** \ - * **Manual** - */ -export type SyncMode = string; - /** Known values of {@link TransportProtocol} that the service accepts. */ export enum KnownTransportProtocol { /** Udp */ @@ -12561,6 +12193,8 @@ export enum KnownApplicationGatewayCustomErrorStatusCode { HttpStatus405 = "HttpStatus405", /** HttpStatus408 */ HttpStatus408 = "HttpStatus408", + /** HttpStatus499 */ + HttpStatus499 = "HttpStatus499", /** HttpStatus500 */ HttpStatus500 = "HttpStatus500", /** HttpStatus502 */ @@ -12581,6 +12215,7 @@ export enum KnownApplicationGatewayCustomErrorStatusCode { * **HttpStatus404** \ * **HttpStatus405** \ * **HttpStatus408** \ + * **HttpStatus499** \ * **HttpStatus500** \ * **HttpStatus502** \ * **HttpStatus503** \ @@ -12948,36 +12583,6 @@ export enum KnownAzureFirewallSkuTier { */ export type AzureFirewallSkuTier = string; -/** Known values of {@link AzureFirewallPacketCaptureFlagsType} that the service accepts. */ -export enum KnownAzureFirewallPacketCaptureFlagsType { - /** Fin */ - Fin = "fin", - /** Syn */ - Syn = "syn", - /** Rst */ - Rst = "rst", - /** Push */ - Push = "push", - /** Ack */ - Ack = "ack", - /** Urg */ - Urg = "urg" -} - -/** - * Defines values for AzureFirewallPacketCaptureFlagsType. \ - * {@link KnownAzureFirewallPacketCaptureFlagsType} can be used interchangeably with AzureFirewallPacketCaptureFlagsType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **fin** \ - * **syn** \ - * **rst** \ - * **push** \ - * **ack** \ - * **urg** - */ -export type AzureFirewallPacketCaptureFlagsType = string; - /** Known values of {@link BastionHostSkuName} that the service accepts. */ export enum KnownBastionHostSkuName { /** Basic */ @@ -15330,24 +14935,6 @@ export enum KnownVpnNatRuleMode { */ export type VpnNatRuleMode = string; -/** Known values of {@link AdminState} that the service accepts. */ -export enum KnownAdminState { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" -} - -/** - * Defines values for AdminState. \ - * {@link KnownAdminState} can be used interchangeably with AdminState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type AdminState = string; - /** Known values of {@link VirtualNetworkGatewayConnectionType} that the service accepts. */ export enum KnownVirtualNetworkGatewayConnectionType { /** IPsec */ @@ -15822,90 +15409,6 @@ export enum KnownWebApplicationFirewallMode { */ export type WebApplicationFirewallMode = string; -/** Known values of {@link WebApplicationFirewallScrubbingState} that the service accepts. */ -export enum KnownWebApplicationFirewallScrubbingState { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled" -} - -/** - * Defines values for WebApplicationFirewallScrubbingState. \ - * {@link KnownWebApplicationFirewallScrubbingState} can be used interchangeably with WebApplicationFirewallScrubbingState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Disabled** \ - * **Enabled** - */ -export type WebApplicationFirewallScrubbingState = string; - -/** Known values of {@link ScrubbingRuleEntryMatchVariable} that the service accepts. */ -export enum KnownScrubbingRuleEntryMatchVariable { - /** RequestHeaderNames */ - RequestHeaderNames = "RequestHeaderNames", - /** RequestCookieNames */ - RequestCookieNames = "RequestCookieNames", - /** RequestArgNames */ - RequestArgNames = "RequestArgNames", - /** RequestPostArgNames */ - RequestPostArgNames = "RequestPostArgNames", - /** RequestJsonArgNames */ - RequestJsonArgNames = "RequestJSONArgNames", - /** RequestIPAddress */ - RequestIPAddress = "RequestIPAddress" -} - -/** - * Defines values for ScrubbingRuleEntryMatchVariable. \ - * {@link KnownScrubbingRuleEntryMatchVariable} can be used interchangeably with ScrubbingRuleEntryMatchVariable, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **RequestHeaderNames** \ - * **RequestCookieNames** \ - * **RequestArgNames** \ - * **RequestPostArgNames** \ - * **RequestJSONArgNames** \ - * **RequestIPAddress** - */ -export type ScrubbingRuleEntryMatchVariable = string; - -/** Known values of {@link ScrubbingRuleEntryMatchOperator} that the service accepts. */ -export enum KnownScrubbingRuleEntryMatchOperator { - /** Equals */ - Equals = "Equals", - /** EqualsAny */ - EqualsAny = "EqualsAny" -} - -/** - * Defines values for ScrubbingRuleEntryMatchOperator. \ - * {@link KnownScrubbingRuleEntryMatchOperator} can be used interchangeably with ScrubbingRuleEntryMatchOperator, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Equals** \ - * **EqualsAny** - */ -export type ScrubbingRuleEntryMatchOperator = string; - -/** Known values of {@link ScrubbingRuleEntryState} that the service accepts. */ -export enum KnownScrubbingRuleEntryState { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" -} - -/** - * Defines values for ScrubbingRuleEntryState. \ - * {@link KnownScrubbingRuleEntryState} can be used interchangeably with ScrubbingRuleEntryState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type ScrubbingRuleEntryState = string; - /** Known values of {@link WebApplicationFirewallState} that the service accepts. */ export enum KnownWebApplicationFirewallState { /** Disabled */ @@ -15924,30 +15427,10 @@ export enum KnownWebApplicationFirewallState { */ export type WebApplicationFirewallState = string; -/** Known values of {@link ApplicationGatewayFirewallRateLimitDuration} that the service accepts. */ -export enum KnownApplicationGatewayFirewallRateLimitDuration { - /** OneMin */ - OneMin = "OneMin", - /** FiveMins */ - FiveMins = "FiveMins" -} - -/** - * Defines values for ApplicationGatewayFirewallRateLimitDuration. \ - * {@link KnownApplicationGatewayFirewallRateLimitDuration} can be used interchangeably with ApplicationGatewayFirewallRateLimitDuration, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **OneMin** \ - * **FiveMins** - */ -export type ApplicationGatewayFirewallRateLimitDuration = string; - /** Known values of {@link WebApplicationFirewallRuleType} that the service accepts. */ export enum KnownWebApplicationFirewallRuleType { /** MatchRule */ MatchRule = "MatchRule", - /** RateLimitRule */ - RateLimitRule = "RateLimitRule", /** Invalid */ Invalid = "Invalid" } @@ -15958,7 +15441,6 @@ export enum KnownWebApplicationFirewallRuleType { * this enum contains the known values that the service supports. * ### Known values supported by the service * **MatchRule** \ - * **RateLimitRule** \ * **Invalid** */ export type WebApplicationFirewallRuleType = string; @@ -16080,27 +15562,6 @@ export enum KnownWebApplicationFirewallTransform { */ export type WebApplicationFirewallTransform = string; -/** Known values of {@link ApplicationGatewayFirewallUserSessionVariable} that the service accepts. */ -export enum KnownApplicationGatewayFirewallUserSessionVariable { - /** ClientAddr */ - ClientAddr = "ClientAddr", - /** GeoLocation */ - GeoLocation = "GeoLocation", - /** None */ - None = "None" -} - -/** - * Defines values for ApplicationGatewayFirewallUserSessionVariable. \ - * {@link KnownApplicationGatewayFirewallUserSessionVariable} can be used interchangeably with ApplicationGatewayFirewallUserSessionVariable, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ClientAddr** \ - * **GeoLocation** \ - * **None** - */ -export type ApplicationGatewayFirewallUserSessionVariable = string; - /** Known values of {@link WebApplicationFirewallAction} that the service accepts. */ export enum KnownWebApplicationFirewallAction { /** Allow */ @@ -16511,12 +15972,6 @@ export enum KnownHubVirtualNetworkConnectionStatus { * **NotConnected** */ export type HubVirtualNetworkConnectionStatus = string; -/** Defines values for PublicIpAddressDnsSettingsDomainNameLabelScope. */ -export type PublicIpAddressDnsSettingsDomainNameLabelScope = - | "TenantReuse" - | "SubscriptionReuse" - | "ResourceGroupReuse" - | "NoReuse"; /** Defines values for ResourceIdentityType. */ export type ResourceIdentityType = | "SystemAssigned" @@ -16970,18 +16425,6 @@ export interface AzureFirewallsListLearnedPrefixesOptionalParams /** Contains response data for the listLearnedPrefixes operation. */ export type AzureFirewallsListLearnedPrefixesResponse = IPPrefixesList; -/** Optional parameters. */ -export interface AzureFirewallsPacketCaptureOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the packetCapture operation. */ -export type AzureFirewallsPacketCaptureResponse = AzureFirewallsPacketCaptureHeaders; - /** Optional parameters. */ export interface AzureFirewallsListNextOptionalParams extends coreClient.OperationOptions {} @@ -18777,16 +18220,6 @@ export interface LoadBalancersListInboundNatRulePortMappingsOptionalParams /** Contains response data for the listInboundNatRulePortMappings operation. */ export type LoadBalancersListInboundNatRulePortMappingsResponse = BackendAddressInboundNatRulePortMappings; -/** Optional parameters. */ -export interface LoadBalancersMigrateToIpBasedOptionalParams - extends coreClient.OperationOptions { - /** Parameters supplied to the migrateToIpBased Api. */ - parameters?: MigrateLoadBalancerToIpBasedRequest; -} - -/** Contains response data for the migrateToIpBased operation. */ -export type LoadBalancersMigrateToIpBasedResponse = MigratedPools; - /** Optional parameters. */ export interface LoadBalancersListAllNextOptionalParams extends coreClient.OperationOptions {} @@ -22302,9 +21735,6 @@ export interface VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams resumeFrom?: string; } -/** Contains response data for the getEffectiveVirtualHubRoutes operation. */ -export type VirtualHubsGetEffectiveVirtualHubRoutesResponse = VirtualHubEffectiveRouteList; - /** Optional parameters. */ export interface VirtualHubsGetInboundRoutesOptionalParams extends coreClient.OperationOptions { @@ -22314,9 +21744,6 @@ export interface VirtualHubsGetInboundRoutesOptionalParams resumeFrom?: string; } -/** Contains response data for the getInboundRoutes operation. */ -export type VirtualHubsGetInboundRoutesResponse = EffectiveRouteMapRouteList; - /** Optional parameters. */ export interface VirtualHubsGetOutboundRoutesOptionalParams extends coreClient.OperationOptions { @@ -22326,9 +21753,6 @@ export interface VirtualHubsGetOutboundRoutesOptionalParams resumeFrom?: string; } -/** Contains response data for the getOutboundRoutes operation. */ -export type VirtualHubsGetOutboundRoutesResponse = EffectiveRouteMapRouteList; - /** Optional parameters. */ export interface VirtualHubsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} @@ -22974,48 +22398,6 @@ export interface ExpressRouteConnectionsListOptionalParams /** Contains response data for the list operation. */ export type ExpressRouteConnectionsListResponse = ExpressRouteConnectionList; -/** Optional parameters. */ -export interface NetworkVirtualApplianceConnectionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type NetworkVirtualApplianceConnectionsCreateOrUpdateResponse = NetworkVirtualApplianceConnection; - -/** Optional parameters. */ -export interface NetworkVirtualApplianceConnectionsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type NetworkVirtualApplianceConnectionsGetResponse = NetworkVirtualApplianceConnection; - -/** Optional parameters. */ -export interface NetworkVirtualApplianceConnectionsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface NetworkVirtualApplianceConnectionsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type NetworkVirtualApplianceConnectionsListResponse = NetworkVirtualApplianceConnectionList; - -/** Optional parameters. */ -export interface NetworkVirtualApplianceConnectionsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type NetworkVirtualApplianceConnectionsListNextResponse = NetworkVirtualApplianceConnectionList; - /** Optional parameters. */ export interface VirtualHubBgpConnectionGetOptionalParams extends coreClient.OperationOptions {} @@ -23061,9 +22443,7 @@ export interface VirtualHubBgpConnectionsListLearnedRoutesOptionalParams } /** Contains response data for the listLearnedRoutes operation. */ -export type VirtualHubBgpConnectionsListLearnedRoutesResponse = { - [propertyName: string]: PeerRoute[]; -}; +export type VirtualHubBgpConnectionsListLearnedRoutesResponse = PeerRouteList; /** Optional parameters. */ export interface VirtualHubBgpConnectionsListAdvertisedRoutesOptionalParams @@ -23075,9 +22455,7 @@ export interface VirtualHubBgpConnectionsListAdvertisedRoutesOptionalParams } /** Contains response data for the listAdvertisedRoutes operation. */ -export type VirtualHubBgpConnectionsListAdvertisedRoutesResponse = { - [propertyName: string]: PeerRoute[]; -}; +export type VirtualHubBgpConnectionsListAdvertisedRoutesResponse = PeerRouteList; /** Optional parameters. */ export interface VirtualHubBgpConnectionsListNextOptionalParams diff --git a/sdk/network/arm-network/src/models/mappers.ts b/sdk/network/arm-network/src/models/mappers.ts index 916a86a92b73..b263d36780fc 100644 --- a/sdk/network/arm-network/src/models/mappers.ts +++ b/sdk/network/arm-network/src/models/mappers.ts @@ -580,18 +580,6 @@ export const PublicIPAddressDnsSettings: coreClient.CompositeMapper = { name: "String" } }, - domainNameLabelScope: { - serializedName: "domainNameLabelScope", - type: { - name: "Enum", - allowedValues: [ - "TenantReuse", - "SubscriptionReuse", - "ResourceGroupReuse", - "NoReuse" - ] - } - }, fqdn: { serializedName: "fqdn", type: { @@ -2613,63 +2601,6 @@ export const IPPrefixesList: coreClient.CompositeMapper = { } }; -export const AzureFirewallPacketCaptureFlags: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureFirewallPacketCaptureFlags", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const AzureFirewallPacketCaptureRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureFirewallPacketCaptureRule", - modelProperties: { - sources: { - serializedName: "sources", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - destinations: { - serializedName: "destinations", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - destinationPorts: { - serializedName: "destinationPorts", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - export const AzureFirewallFqdnTagListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2767,42 +2698,6 @@ export const AzureWebCategoryListResult: coreClient.CompositeMapper = { } }; -export const BastionHostPropertiesFormatNetworkAcls: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BastionHostPropertiesFormatNetworkAcls", - modelProperties: { - ipRules: { - serializedName: "ipRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IPRule" - } - } - } - } - } - } -}; - -export const IPRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IPRule", - modelProperties: { - addressPrefix: { - serializedName: "addressPrefix", - type: { - name: "String" - } - } - } - } -}; - export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5802,46 +5697,6 @@ export const InboundNatRulePortMapping: coreClient.CompositeMapper = { } }; -export const MigrateLoadBalancerToIpBasedRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MigrateLoadBalancerToIpBasedRequest", - modelProperties: { - pools: { - serializedName: "pools", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const MigratedPools: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MigratedPools", - modelProperties: { - migratedPools: { - serializedName: "migratedPools", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - export const NatGatewayListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6732,13 +6587,6 @@ export const EffectiveConnectivityConfiguration: coreClient.CompositeMapper = { type: { name: "String" } - }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, - type: { - name: "String" - } } } } @@ -6823,13 +6671,6 @@ export const ConfigurationGroup: coreClient.CompositeMapper = { type: { name: "String" } - }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, - type: { - name: "String" - } } } } @@ -7507,34 +7348,6 @@ export const VirtualApplianceNicProperties: coreClient.CompositeMapper = { type: { name: "String" } - }, - instanceName: { - serializedName: "instanceName", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const VirtualApplianceAdditionalNicProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualApplianceAdditionalNicProperties", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - hasPublicIp: { - serializedName: "hasPublicIp", - type: { - name: "Boolean" - } } } } @@ -12741,43 +12554,6 @@ export const VirtualNetworkDdosProtectionStatusResult: coreClient.CompositeMappe } }; -export const VirtualNetworkGatewayAutoScaleConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkGatewayAutoScaleConfiguration", - modelProperties: { - bounds: { - serializedName: "bounds", - type: { - name: "Composite", - className: "VirtualNetworkGatewayAutoScaleBounds" - } - } - } - } -}; - -export const VirtualNetworkGatewayAutoScaleBounds: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkGatewayAutoScaleBounds", - modelProperties: { - min: { - serializedName: "min", - type: { - name: "Number" - } - }, - max: { - serializedName: "max", - type: { - name: "Number" - } - } - } - } -}; - export const VirtualNetworkGatewaySku: coreClient.CompositeMapper = { type: { name: "Composite", @@ -15502,50 +15278,25 @@ export const ExpressRouteConnectionList: coreClient.CompositeMapper = { } }; -export const RoutingConfigurationNfv: coreClient.CompositeMapper = { +export const ListVirtualHubBgpConnectionResults: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoutingConfigurationNfv", + className: "ListVirtualHubBgpConnectionResults", modelProperties: { - associatedRouteTable: { - serializedName: "associatedRouteTable", - type: { - name: "Composite", - className: "RoutingConfigurationNfvSubResource" - } - }, - propagatedRouteTables: { - serializedName: "propagatedRouteTables", - type: { - name: "Composite", - className: "PropagatedRouteTableNfv" - } - }, - inboundRouteMap: { - serializedName: "inboundRouteMap", + value: { + serializedName: "value", type: { - name: "Composite", - className: "RoutingConfigurationNfvSubResource" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BgpConnection" + } + } } }, - outboundRouteMap: { - serializedName: "outboundRouteMap", - type: { - name: "Composite", - className: "RoutingConfigurationNfvSubResource" - } - } - } - } -}; - -export const RoutingConfigurationNfvSubResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoutingConfigurationNfvSubResource", - modelProperties: { - resourceUri: { - serializedName: "resourceUri", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -15554,30 +15305,19 @@ export const RoutingConfigurationNfvSubResource: coreClient.CompositeMapper = { } }; -export const PropagatedRouteTableNfv: coreClient.CompositeMapper = { +export const PeerRouteList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PropagatedRouteTableNfv", + className: "PeerRouteList", modelProperties: { - labels: { - serializedName: "labels", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - ids: { - serializedName: "ids", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RoutingConfigurationNfvSubResource" + className: "PeerRoute" } } } @@ -15586,68 +15326,14 @@ export const PropagatedRouteTableNfv: coreClient.CompositeMapper = { } }; -export const NetworkVirtualApplianceConnectionList: coreClient.CompositeMapper = { +export const PeerRoute: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkVirtualApplianceConnectionList", + className: "PeerRoute", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkVirtualApplianceConnection" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ListVirtualHubBgpConnectionResults: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListVirtualHubBgpConnectionResults", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BgpConnection" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const PeerRoute: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PeerRoute", - modelProperties: { - localAddress: { - serializedName: "localAddress", - readOnly: true, + localAddress: { + serializedName: "localAddress", + readOnly: true, type: { name: "String" } @@ -15822,76 +15508,6 @@ export const EffectiveRoutesParameters: coreClient.CompositeMapper = { } }; -export const VirtualHubEffectiveRouteList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualHubEffectiveRouteList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualHubEffectiveRoute" - } - } - } - } - } - } -}; - -export const VirtualHubEffectiveRoute: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualHubEffectiveRoute", - modelProperties: { - addressPrefixes: { - serializedName: "addressPrefixes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - nextHops: { - serializedName: "nextHops", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - nextHopType: { - serializedName: "nextHopType", - type: { - name: "String" - } - }, - asPath: { - serializedName: "asPath", - type: { - name: "String" - } - }, - routeOrigin: { - serializedName: "routeOrigin", - type: { - name: "String" - } - } - } - } -}; - export const GetInboundRoutesParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -15913,54 +15529,6 @@ export const GetInboundRoutesParameters: coreClient.CompositeMapper = { } }; -export const EffectiveRouteMapRouteList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EffectiveRouteMapRouteList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EffectiveRouteMapRoute" - } - } - } - } - } - } -}; - -export const EffectiveRouteMapRoute: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EffectiveRouteMapRoute", - modelProperties: { - prefix: { - serializedName: "prefix", - type: { - name: "String" - } - }, - bgpCommunities: { - serializedName: "bgpCommunities", - type: { - name: "String" - } - }, - asPath: { - serializedName: "asPath", - type: { - name: "String" - } - } - } - } -}; - export const GetOutboundRoutesParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -16096,19 +15664,6 @@ export const PolicySettings: coreClient.CompositeMapper = { name: "Boolean" } }, - requestBodyInspectLimitInKB: { - serializedName: "requestBodyInspectLimitInKB", - type: { - name: "Number" - } - }, - requestBodyEnforcement: { - defaultValue: true, - serializedName: "requestBodyEnforcement", - type: { - name: "Boolean" - } - }, maxRequestBodySizeInKb: { constraints: { InclusiveMinimum: 8 @@ -16118,13 +15673,6 @@ export const PolicySettings: coreClient.CompositeMapper = { name: "Number" } }, - fileUploadEnforcement: { - defaultValue: true, - serializedName: "fileUploadEnforcement", - type: { - name: "Boolean" - } - }, fileUploadLimitInMb: { constraints: { InclusiveMinimum: 0 @@ -16154,75 +15702,6 @@ export const PolicySettings: coreClient.CompositeMapper = { type: { name: "String" } - }, - logScrubbing: { - serializedName: "logScrubbing", - type: { - name: "Composite", - className: "PolicySettingsLogScrubbing" - } - } - } - } -}; - -export const PolicySettingsLogScrubbing: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PolicySettingsLogScrubbing", - modelProperties: { - state: { - serializedName: "state", - type: { - name: "String" - } - }, - scrubbingRules: { - serializedName: "scrubbingRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WebApplicationFirewallScrubbingRules" - } - } - } - } - } - } -}; - -export const WebApplicationFirewallScrubbingRules: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WebApplicationFirewallScrubbingRules", - modelProperties: { - matchVariable: { - serializedName: "matchVariable", - required: true, - type: { - name: "String" - } - }, - selectorMatchOperator: { - serializedName: "selectorMatchOperator", - required: true, - type: { - name: "String" - } - }, - selector: { - serializedName: "selector", - type: { - name: "String" - } - }, - state: { - serializedName: "state", - type: { - name: "String" - } } } } @@ -16262,18 +15741,6 @@ export const WebApplicationFirewallCustomRule: coreClient.CompositeMapper = { name: "String" } }, - rateLimitDuration: { - serializedName: "rateLimitDuration", - type: { - name: "String" - } - }, - rateLimitThreshold: { - serializedName: "rateLimitThreshold", - type: { - name: "Number" - } - }, ruleType: { serializedName: "ruleType", required: true, @@ -16294,18 +15761,6 @@ export const WebApplicationFirewallCustomRule: coreClient.CompositeMapper = { } } }, - groupByUserSession: { - serializedName: "groupByUserSession", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GroupByUserSession" - } - } - } - }, action: { serializedName: "action", required: true, @@ -16397,44 +15852,6 @@ export const MatchVariable: coreClient.CompositeMapper = { } }; -export const GroupByUserSession: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GroupByUserSession", - modelProperties: { - groupByVariables: { - serializedName: "groupByVariables", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GroupByVariable" - } - } - } - } - } - } -}; - -export const GroupByVariable: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GroupByVariable", - modelProperties: { - variableName: { - serializedName: "variableName", - required: true, - type: { - name: "String" - } - } - } - } -}; - export const ManagedRulesDefinition: coreClient.CompositeMapper = { type: { name: "Composite", @@ -16769,78 +16186,159 @@ export const FirewallPolicyRuleApplicationProtocol: coreClient.CompositeMapper = } }; -export const FirewallPolicyHttpHeaderToInsert: coreClient.CompositeMapper = { +export const AzureAsyncOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FirewallPolicyHttpHeaderToInsert", + className: "AzureAsyncOperationResult", modelProperties: { - headerName: { - serializedName: "headerName", + status: { + serializedName: "status", + type: { + name: "String" + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorModel" + } + } + } + } +}; + +export const AddressPrefixItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AddressPrefixItem", + modelProperties: { + addressPrefix: { + serializedName: "addressPrefix", + type: { + name: "String" + } + }, + addressPrefixType: { + serializedName: "addressPrefixType", + type: { + name: "String" + } + } + } + } +}; + +export const VpnSiteId: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnSiteId", + modelProperties: { + vpnSite: { + serializedName: "vpnSite", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const VirtualHubEffectiveRouteList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualHubEffectiveRouteList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualHubEffectiveRoute" + } + } + } + } + } + } +}; + +export const VirtualHubEffectiveRoute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualHubEffectiveRoute", + modelProperties: { + addressPrefixes: { + serializedName: "addressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + nextHops: { + serializedName: "nextHops", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - headerValue: { - serializedName: "headerValue", + nextHopType: { + serializedName: "nextHopType", type: { name: "String" } - } - } - } -}; - -export const AzureAsyncOperationResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureAsyncOperationResult", - modelProperties: { - status: { - serializedName: "status", + }, + asPath: { + serializedName: "asPath", type: { name: "String" } }, - error: { - serializedName: "error", + routeOrigin: { + serializedName: "routeOrigin", type: { - name: "Composite", - className: "ErrorModel" + name: "String" } } } } }; -export const AddressPrefixItem: coreClient.CompositeMapper = { +export const EffectiveRouteMapRoute: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AddressPrefixItem", + className: "EffectiveRouteMapRoute", modelProperties: { - addressPrefix: { - serializedName: "addressPrefix", + prefix: { + serializedName: "prefix", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - addressPrefixType: { - serializedName: "addressPrefixType", + bgpCommunities: { + serializedName: "bgpCommunities", type: { name: "String" } - } - } - } -}; - -export const VpnSiteId: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VpnSiteId", - modelProperties: { - vpnSite: { - serializedName: "vpnSite", - readOnly: true, + }, + asPath: { + serializedName: "asPath", type: { name: "String" } @@ -17715,13 +17213,6 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "String" } - }, - privateEndpointLocation: { - serializedName: "properties.privateEndpointLocation", - readOnly: true, - type: { - name: "String" - } } } } @@ -18319,8 +17810,8 @@ export const Subnet: coreClient.CompositeMapper = { name: "String" } }, - applicationGatewayIPConfigurations: { - serializedName: "properties.applicationGatewayIPConfigurations", + applicationGatewayIpConfigurations: { + serializedName: "properties.applicationGatewayIpConfigurations", type: { name: "Sequence", element: { @@ -18330,12 +17821,6 @@ export const Subnet: coreClient.CompositeMapper = { } } } - }, - defaultOutboundAccess: { - serializedName: "properties.defaultOutboundAccess", - type: { - name: "Boolean" - } } } } @@ -18621,12 +18106,6 @@ export const BackendAddressPool: coreClient.CompositeMapper = { name: "Composite", className: "SubResource" } - }, - syncMode: { - serializedName: "properties.syncMode", - type: { - name: "String" - } } } } @@ -20499,78 +19978,6 @@ export const AzureFirewallIPConfiguration: coreClient.CompositeMapper = { } }; -export const FirewallPacketCaptureParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FirewallPacketCaptureParameters", - modelProperties: { - ...SubResource.type.modelProperties, - durationInSeconds: { - constraints: { - InclusiveMaximum: 1800, - InclusiveMinimum: 30 - }, - serializedName: "properties.durationInSeconds", - type: { - name: "Number" - } - }, - numberOfPacketsToCapture: { - constraints: { - InclusiveMaximum: 90000, - InclusiveMinimum: 100 - }, - serializedName: "properties.numberOfPacketsToCapture", - type: { - name: "Number" - } - }, - sasUrl: { - serializedName: "properties.sasUrl", - type: { - name: "String" - } - }, - fileName: { - serializedName: "properties.fileName", - type: { - name: "String" - } - }, - protocol: { - serializedName: "properties.protocol", - type: { - name: "String" - } - }, - flags: { - serializedName: "properties.flags", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureFirewallPacketCaptureFlags" - } - } - } - }, - filters: { - serializedName: "properties.filters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureFirewallPacketCaptureRule" - } - } - } - } - } - } -}; - export const BastionHostIPConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", @@ -21321,13 +20728,6 @@ export const FirewallPolicyRuleCollectionGroup: coreClient.CompositeMapper = { name: "String" } }, - size: { - serializedName: "properties.size", - readOnly: true, - type: { - name: "String" - } - }, priority: { constraints: { InclusiveMaximum: 65000, @@ -22122,6 +21522,20 @@ export const VirtualNetworkPeering: coreClient.CompositeMapper = { className: "SubResource" } }, + localAddressSpace: { + serializedName: "properties.localAddressSpace", + type: { + name: "Composite", + className: "AddressSpace" + } + }, + localVirtualNetworkAddressSpace: { + serializedName: "properties.localVirtualNetworkAddressSpace", + type: { + name: "Composite", + className: "AddressSpace" + } + }, remoteAddressSpace: { serializedName: "properties.remoteAddressSpace", type: { @@ -22129,6 +21543,34 @@ export const VirtualNetworkPeering: coreClient.CompositeMapper = { className: "AddressSpace" } }, + peerCompleteVnets: { + serializedName: "properties.peerCompleteVnets", + type: { + name: "Boolean" + } + }, + localSubnetNames: { + serializedName: "properties.localSubnetNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + remoteSubnetNames: { + serializedName: "properties.remoteSubnetNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, remoteVirtualNetworkAddressSpace: { serializedName: "properties.remoteVirtualNetworkAddressSpace", type: { @@ -23403,100 +22845,27 @@ export const VpnGatewayNatRule: coreClient.CompositeMapper = { readOnly: true, type: { name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - } - } - } -}; - -export const ExpressRouteConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExpressRouteConnection", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - expressRouteCircuitPeering: { - serializedName: "properties.expressRouteCircuitPeering", - type: { - name: "Composite", - className: "ExpressRouteCircuitPeeringId" - } - }, - authorizationKey: { - serializedName: "properties.authorizationKey", - type: { - name: "String" - } - }, - routingWeight: { - serializedName: "properties.routingWeight", - type: { - name: "Number" - } - }, - enableInternetSecurity: { - serializedName: "properties.enableInternetSecurity", - type: { - name: "Boolean" - } - }, - expressRouteGatewayBypass: { - serializedName: "properties.expressRouteGatewayBypass", - type: { - name: "Boolean" - } - }, - enablePrivateLinkFastPath: { - serializedName: "properties.enablePrivateLinkFastPath", - type: { - name: "Boolean" - } - }, - routingConfiguration: { - serializedName: "properties.routingConfiguration", - type: { - name: "Composite", - className: "RoutingConfiguration" + element: { + type: { + name: "Composite", + className: "SubResource" + } + } } } } } }; -export const NetworkVirtualApplianceConnection: coreClient.CompositeMapper = { +export const ExpressRouteConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkVirtualApplianceConnection", + className: "ExpressRouteConnection", modelProperties: { ...SubResource.type.modelProperties, name: { serializedName: "name", - type: { - name: "String" - } - }, - namePropertiesName: { - serializedName: "properties.name", + required: true, type: { name: "String" } @@ -23508,35 +22877,23 @@ export const NetworkVirtualApplianceConnection: coreClient.CompositeMapper = { name: "String" } }, - asn: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "properties.asn", + expressRouteCircuitPeering: { + serializedName: "properties.expressRouteCircuitPeering", type: { - name: "Number" + name: "Composite", + className: "ExpressRouteCircuitPeeringId" } }, - tunnelIdentifier: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 - }, - serializedName: "properties.tunnelIdentifier", + authorizationKey: { + serializedName: "properties.authorizationKey", type: { - name: "Number" + name: "String" } }, - bgpPeerAddress: { - serializedName: "properties.bgpPeerAddress", + routingWeight: { + serializedName: "properties.routingWeight", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, enableInternetSecurity: { @@ -23545,11 +22902,23 @@ export const NetworkVirtualApplianceConnection: coreClient.CompositeMapper = { name: "Boolean" } }, + expressRouteGatewayBypass: { + serializedName: "properties.expressRouteGatewayBypass", + type: { + name: "Boolean" + } + }, + enablePrivateLinkFastPath: { + serializedName: "properties.enablePrivateLinkFastPath", + type: { + name: "Boolean" + } + }, routingConfiguration: { serializedName: "properties.routingConfiguration", type: { name: "Composite", - className: "RoutingConfigurationNfv" + className: "RoutingConfiguration" } } } @@ -24398,12 +23767,6 @@ export const NetworkInterface: coreClient.CompositeMapper = { type: { name: "String" } - }, - auxiliarySku: { - serializedName: "properties.auxiliarySku", - type: { - name: "String" - } } } } @@ -25420,13 +24783,6 @@ export const ApplicationGateway: coreClient.CompositeMapper = { name: "Composite", className: "ApplicationGatewayGlobalConfiguration" } - }, - defaultPredefinedSslPolicy: { - serializedName: "properties.defaultPredefinedSslPolicy", - readOnly: true, - type: { - name: "String" - } } } } @@ -25747,20 +25103,6 @@ export const BastionHost: coreClient.CompositeMapper = { name: "String" } }, - virtualNetwork: { - serializedName: "properties.virtualNetwork", - type: { - name: "Composite", - className: "SubResource" - } - }, - networkAcls: { - serializedName: "properties.networkAcls", - type: { - name: "Composite", - className: "BastionHostPropertiesFormatNetworkAcls" - } - }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -25812,13 +25154,6 @@ export const BastionHost: coreClient.CompositeMapper = { type: { name: "Boolean" } - }, - enableKerberos: { - defaultValue: false, - serializedName: "properties.enableKerberos", - type: { - name: "Boolean" - } } } } @@ -26649,13 +25984,6 @@ export const FirewallPolicy: coreClient.CompositeMapper = { className: "ManagedServiceIdentity" } }, - size: { - serializedName: "properties.size", - readOnly: true, - type: { - name: "String" - } - }, ruleCollectionGroups: { serializedName: "properties.ruleCollectionGroups", readOnly: true, @@ -27092,13 +26420,6 @@ export const NetworkManager: coreClient.CompositeMapper = { type: { name: "String" } - }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, - type: { - name: "String" - } } } } @@ -27258,18 +26579,6 @@ export const NetworkVirtualAppliance: coreClient.CompositeMapper = { } } }, - additionalNics: { - serializedName: "properties.additionalNics", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualApplianceAdditionalNicProperties" - } - } - } - }, virtualApplianceSites: { serializedName: "properties.virtualApplianceSites", readOnly: true, @@ -27283,19 +26592,6 @@ export const NetworkVirtualAppliance: coreClient.CompositeMapper = { } } }, - virtualApplianceConnections: { - serializedName: "properties.virtualApplianceConnections", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, inboundSecurityRules: { serializedName: "properties.inboundSecurityRules", readOnly: true, @@ -27847,13 +27143,6 @@ export const VirtualNetworkGateway: coreClient.CompositeMapper = { name: "String" } }, - autoScaleConfiguration: { - serializedName: "properties.autoScaleConfiguration", - type: { - name: "Composite", - className: "VirtualNetworkGatewayAutoScaleConfiguration" - } - }, ipConfigurations: { serializedName: "properties.ipConfigurations", type: { @@ -28017,12 +27306,6 @@ export const VirtualNetworkGateway: coreClient.CompositeMapper = { type: { name: "Boolean" } - }, - adminState: { - serializedName: "properties.adminState", - type: { - name: "String" - } } } } @@ -29649,13 +28932,6 @@ export const ActiveSecurityAdminRule: coreClient.CompositeMapper = { type: { name: "String" } - }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, - type: { - name: "String" - } } } } @@ -29768,13 +29044,6 @@ export const ActiveDefaultSecurityAdminRule: coreClient.CompositeMapper = { type: { name: "String" } - }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, - type: { - name: "String" - } } } } @@ -29883,13 +29152,6 @@ export const ConnectivityConfiguration: coreClient.CompositeMapper = { type: { name: "String" } - }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, - type: { - name: "String" - } } } } @@ -29920,13 +29182,6 @@ export const NetworkGroup: coreClient.CompositeMapper = { type: { name: "String" } - }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, - type: { - name: "String" - } } } } @@ -30047,13 +29302,6 @@ export const SecurityAdminConfiguration: coreClient.CompositeMapper = { type: { name: "String" } - }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, - type: { - name: "String" - } } } } @@ -30096,13 +29344,6 @@ export const AdminRuleCollection: coreClient.CompositeMapper = { type: { name: "String" } - }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, - type: { - name: "String" - } } } } @@ -30234,13 +29475,6 @@ export const EffectiveSecurityAdminRule: coreClient.CompositeMapper = { type: { name: "String" } - }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, - type: { - name: "String" - } } } } @@ -30353,13 +29587,6 @@ export const EffectiveDefaultSecurityAdminRule: coreClient.CompositeMapper = { type: { name: "String" } - }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, - type: { - name: "String" - } } } } @@ -30523,18 +29750,6 @@ export const ApplicationRule: coreClient.CompositeMapper = { } } } - }, - httpHeadersToInsert: { - serializedName: "httpHeadersToInsert", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FirewallPolicyHttpHeaderToInsert" - } - } - } } } } @@ -30811,13 +30026,6 @@ export const AdminRule: coreClient.CompositeMapper = { type: { name: "String" } - }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, - type: { - name: "String" - } } } } @@ -30929,28 +30137,6 @@ export const DefaultAdminRule: coreClient.CompositeMapper = { type: { name: "String" } - }, - resourceGuid: { - serializedName: "properties.resourceGuid", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const AzureFirewallsPacketCaptureHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureFirewallsPacketCaptureHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } } } } @@ -31121,51 +30307,6 @@ export const AdminRulesDeleteHeaders: coreClient.CompositeMapper = { } }; -export const NetworkVirtualAppliancesDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkVirtualAppliancesDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const NetworkVirtualAppliancesCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkVirtualAppliancesCreateOrUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const NetworkVirtualApplianceConnectionsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkVirtualApplianceConnectionsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - export let discriminators = { FirewallPolicyRuleCollection: FirewallPolicyRuleCollection, ActiveBaseSecurityAdminRule: ActiveBaseSecurityAdminRule, diff --git a/sdk/network/arm-network/src/models/parameters.ts b/sdk/network/arm-network/src/models/parameters.ts index 002323e88dd6..d4d3f9079c2b 100644 --- a/sdk/network/arm-network/src/models/parameters.ts +++ b/sdk/network/arm-network/src/models/parameters.ts @@ -18,7 +18,6 @@ import { ApplicationGatewayPrivateEndpointConnection as ApplicationGatewayPrivateEndpointConnectionMapper, ApplicationSecurityGroup as ApplicationSecurityGroupMapper, AzureFirewall as AzureFirewallMapper, - FirewallPacketCaptureParameters as FirewallPacketCaptureParametersMapper, BastionHost as BastionHostMapper, BastionShareableLinkListRequest as BastionShareableLinkListRequestMapper, SessionIds as SessionIdsMapper, @@ -51,7 +50,6 @@ import { LoadBalancer as LoadBalancerMapper, LoadBalancerVipSwapRequest as LoadBalancerVipSwapRequestMapper, QueryInboundNatRulePortMappingRequest as QueryInboundNatRulePortMappingRequestMapper, - MigrateLoadBalancerToIpBasedRequest as MigrateLoadBalancerToIpBasedRequestMapper, BackendAddressPool as BackendAddressPoolMapper, InboundNatRule as InboundNatRuleMapper, NatGateway as NatGatewayMapper, @@ -147,7 +145,6 @@ import { VirtualHubRouteTableV2 as VirtualHubRouteTableV2Mapper, ExpressRouteGateway as ExpressRouteGatewayMapper, ExpressRouteConnection as ExpressRouteConnectionMapper, - NetworkVirtualApplianceConnection as NetworkVirtualApplianceConnectionMapper, BgpConnection as BgpConnectionMapper, HubIpConfiguration as HubIpConfigurationMapper, HubRouteTable as HubRouteTableMapper, @@ -204,7 +201,7 @@ export const applicationGatewayName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-05-01", + defaultValue: "2022-09-01", isConstant: true, serializedName: "api-version", type: { @@ -358,27 +355,6 @@ export const azureFirewallName1: OperationURLParameter = { } }; -export const parameters5: OperationParameter = { - parameterPath: "parameters", - mapper: FirewallPacketCaptureParametersMapper -}; - -export const azureFirewallName2: OperationURLParameter = { - parameterPath: "azureFirewallName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9]"), - MaxLength: 56, - MinLength: 1 - }, - serializedName: "azureFirewallName", - required: true, - type: { - name: "String" - } - } -}; - export const name: OperationURLParameter = { parameterPath: "name", mapper: { @@ -401,7 +377,7 @@ export const bastionHostName: OperationURLParameter = { } }; -export const parameters6: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", mapper: BastionHostMapper }; @@ -438,7 +414,7 @@ export const providerport: OperationURLParameter = { } }; -export const parameters7: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", mapper: ActiveConfigurationParameterMapper }; @@ -468,7 +444,7 @@ export const top: OperationQueryParameter = { } }; -export const parameters8: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", mapper: QueryRequestOptionsMapper }; @@ -533,7 +509,7 @@ export const networkInterfaceName: OperationURLParameter = { } }; -export const parameters9: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: NetworkInterfaceMapper }; @@ -594,7 +570,7 @@ export const publicIpAddressName: OperationURLParameter = { } }; -export const parameters10: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: PublicIPAddressMapper }; @@ -633,7 +609,7 @@ export const singletonResource: OperationURLParameter = { } }; -export const parameters11: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", mapper: SwapResourceMapper }; @@ -649,7 +625,7 @@ export const customIpPrefixName: OperationURLParameter = { } }; -export const parameters12: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: CustomIpPrefixMapper }; @@ -665,7 +641,7 @@ export const ddosCustomPolicyName: OperationURLParameter = { } }; -export const parameters13: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: DdosCustomPolicyMapper }; @@ -681,12 +657,12 @@ export const ddosProtectionPlanName: OperationURLParameter = { } }; -export const parameters14: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", mapper: DdosProtectionPlanMapper }; -export const parameters15: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", mapper: DscpConfigurationMapper }; @@ -750,7 +726,7 @@ export const expressRouteCircuitConnectionParameters: OperationParameter = { mapper: ExpressRouteCircuitConnectionMapper }; -export const parameters16: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", mapper: ExpressRouteCircuitMapper }; @@ -777,7 +753,7 @@ export const crossConnectionName: OperationURLParameter = { } }; -export const parameters17: OperationParameter = { +export const parameters16: OperationParameter = { parameterPath: "parameters", mapper: ExpressRouteCrossConnectionMapper }; @@ -814,7 +790,7 @@ export const expressRoutePortName: OperationURLParameter = { } }; -export const parameters18: OperationParameter = { +export const parameters17: OperationParameter = { parameterPath: "parameters", mapper: ExpressRoutePortMapper }; @@ -861,7 +837,7 @@ export const firewallPolicyName: OperationURLParameter = { } }; -export const parameters19: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", mapper: FirewallPolicyMapper }; @@ -877,22 +853,22 @@ export const ruleCollectionGroupName: OperationURLParameter = { } }; -export const parameters20: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", mapper: FirewallPolicyRuleCollectionGroupMapper }; -export const parameters21: OperationParameter = { +export const parameters20: OperationParameter = { parameterPath: "parameters", mapper: IdpsQueryObjectMapper }; -export const parameters22: OperationParameter = { +export const parameters21: OperationParameter = { parameterPath: "parameters", mapper: SignaturesOverridesMapper }; -export const parameters23: OperationParameter = { +export const parameters22: OperationParameter = { parameterPath: "parameters", mapper: SignatureOverridesFilterValuesQueryMapper }; @@ -908,7 +884,7 @@ export const ipAllocationName: OperationURLParameter = { } }; -export const parameters24: OperationParameter = { +export const parameters23: OperationParameter = { parameterPath: "parameters", mapper: IpAllocationMapper }; @@ -924,7 +900,7 @@ export const ipGroupsName: OperationURLParameter = { } }; -export const parameters25: OperationParameter = { +export const parameters24: OperationParameter = { parameterPath: "parameters", mapper: IpGroupMapper }; @@ -940,17 +916,17 @@ export const loadBalancerName: OperationURLParameter = { } }; -export const parameters26: OperationParameter = { +export const parameters25: OperationParameter = { parameterPath: "parameters", mapper: LoadBalancerMapper }; -export const parameters27: OperationParameter = { +export const parameters26: OperationParameter = { parameterPath: "parameters", mapper: LoadBalancerVipSwapRequestMapper }; -export const parameters28: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", mapper: QueryInboundNatRulePortMappingRequestMapper }; @@ -966,39 +942,6 @@ export const backendPoolName: OperationURLParameter = { } }; -export const parameters29: OperationParameter = { - parameterPath: ["options", "parameters"], - mapper: MigrateLoadBalancerToIpBasedRequestMapper -}; - -export const groupName1: OperationURLParameter = { - parameterPath: "groupName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-z][a-z0-9]*$") - }, - serializedName: "groupName", - required: true, - type: { - name: "String" - } - } -}; - -export const loadBalancerName1: OperationURLParameter = { - parameterPath: "loadBalancerName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-z][a-z0-9]*$") - }, - serializedName: "loadBalancerName", - required: true, - type: { - name: "String" - } - } -}; - export const backendAddressPoolName: OperationURLParameter = { parameterPath: "backendAddressPoolName", mapper: { @@ -1010,7 +953,7 @@ export const backendAddressPoolName: OperationURLParameter = { } }; -export const parameters30: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: "parameters", mapper: BackendAddressPoolMapper }; @@ -1086,7 +1029,7 @@ export const natGatewayName: OperationURLParameter = { } }; -export const parameters31: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: "parameters", mapper: NatGatewayMapper }; @@ -1107,7 +1050,7 @@ export const tapConfigurationParameters: OperationParameter = { mapper: NetworkInterfaceTapConfigurationMapper }; -export const parameters32: OperationParameter = { +export const parameters30: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerMapper }; @@ -1122,7 +1065,7 @@ export const force: OperationQueryParameter = { } }; -export const parameters33: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", mapper: PatchObjectMapper }; @@ -1137,17 +1080,17 @@ export const skipToken: OperationQueryParameter = { } }; -export const parameters34: OperationParameter = { +export const parameters32: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerCommitMapper }; -export const parameters35: OperationParameter = { +export const parameters33: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerDeploymentStatusParameterMapper }; -export const parameters36: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerConnectionMapper }; @@ -1201,7 +1144,7 @@ export const networkGroupName: OperationURLParameter = { } }; -export const parameters37: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", mapper: NetworkGroupMapper }; @@ -1227,12 +1170,12 @@ export const staticMemberName: OperationURLParameter = { } }; -export const parameters38: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", mapper: StaticMemberMapper }; -export const parameters39: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: "parameters", mapper: ScopeConnectionMapper }; @@ -1296,7 +1239,7 @@ export const networkProfileName: OperationURLParameter = { } }; -export const parameters40: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", mapper: NetworkProfileMapper }; @@ -1312,7 +1255,7 @@ export const networkSecurityGroupName: OperationURLParameter = { } }; -export const parameters41: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: "parameters", mapper: NetworkSecurityGroupMapper }; @@ -1355,7 +1298,7 @@ export const networkVirtualApplianceName: OperationURLParameter = { } }; -export const parameters42: OperationParameter = { +export const parameters40: OperationParameter = { parameterPath: "parameters", mapper: NetworkVirtualApplianceMapper }; @@ -1371,7 +1314,7 @@ export const siteName: OperationURLParameter = { } }; -export const parameters43: OperationParameter = { +export const parameters41: OperationParameter = { parameterPath: "parameters", mapper: VirtualApplianceSiteMapper }; @@ -1387,12 +1330,12 @@ export const skuName: OperationURLParameter = { } }; -export const parameters44: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: "parameters", mapper: InboundSecurityRuleMapper }; -export const parameters45: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", mapper: NetworkWatcherMapper }; @@ -1408,67 +1351,67 @@ export const networkWatcherName: OperationURLParameter = { } }; -export const parameters46: OperationParameter = { +export const parameters44: OperationParameter = { parameterPath: "parameters", mapper: TopologyParametersMapper }; -export const parameters47: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", mapper: VerificationIPFlowParametersMapper }; -export const parameters48: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", mapper: NextHopParametersMapper }; -export const parameters49: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", mapper: SecurityGroupViewParametersMapper }; -export const parameters50: OperationParameter = { +export const parameters48: OperationParameter = { parameterPath: "parameters", mapper: TroubleshootingParametersMapper }; -export const parameters51: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", mapper: QueryTroubleshootingParametersMapper }; -export const parameters52: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: "parameters", mapper: FlowLogInformationMapper }; -export const parameters53: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", mapper: FlowLogStatusParametersMapper }; -export const parameters54: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", mapper: ConnectivityParametersMapper }; -export const parameters55: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", mapper: AzureReachabilityReportParametersMapper }; -export const parameters56: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: AvailableProvidersListParametersMapper }; -export const parameters57: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", mapper: NetworkConfigurationDiagnosticParametersMapper }; -export const parameters58: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", mapper: PacketCaptureMapper }; @@ -1484,7 +1427,7 @@ export const packetCaptureName: OperationURLParameter = { } }; -export const parameters59: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", mapper: ConnectionMonitorMapper }; @@ -1510,7 +1453,7 @@ export const migrate: OperationQueryParameter = { } }; -export const parameters60: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", mapper: FlowLogMapper }; @@ -1537,7 +1480,7 @@ export const privateEndpointName: OperationURLParameter = { } }; -export const parameters61: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointMapper }; @@ -1553,7 +1496,7 @@ export const privateDnsZoneGroupName: OperationURLParameter = { } }; -export const parameters62: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", mapper: PrivateDnsZoneGroupMapper }; @@ -1569,7 +1512,7 @@ export const serviceName: OperationURLParameter = { } }; -export const parameters63: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", mapper: PrivateLinkServiceMapper }; @@ -1585,12 +1528,12 @@ export const peConnectionName: OperationURLParameter = { } }; -export const parameters64: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointConnectionMapper }; -export const parameters65: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", mapper: CheckPrivateLinkServiceVisibilityRequestMapper }; @@ -1606,7 +1549,7 @@ export const publicIpPrefixName: OperationURLParameter = { } }; -export const parameters66: OperationParameter = { +export const parameters64: OperationParameter = { parameterPath: "parameters", mapper: PublicIPPrefixMapper }; @@ -1643,7 +1586,7 @@ export const routeTableName: OperationURLParameter = { } }; -export const parameters67: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: RouteTableMapper }; @@ -1675,7 +1618,7 @@ export const securityPartnerProviderName: OperationURLParameter = { } }; -export const parameters68: OperationParameter = { +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: SecurityPartnerProviderMapper }; @@ -1691,7 +1634,7 @@ export const serviceEndpointPolicyName: OperationURLParameter = { } }; -export const parameters69: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", mapper: ServiceEndpointPolicyMapper }; @@ -1746,7 +1689,7 @@ export const location1: OperationURLParameter = { } }; -export const parameters70: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkMapper }; @@ -1834,7 +1777,7 @@ export const syncRemoteAddressSpace: OperationQueryParameter = { } }; -export const parameters71: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkGatewayMapper }; @@ -1860,7 +1803,7 @@ export const gatewayVip: OperationQueryParameter = { } }; -export const parameters72: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", mapper: VpnClientParametersMapper }; @@ -1891,7 +1834,7 @@ export const vpnclientIpsecParams: OperationParameter = { mapper: VpnClientIPsecParametersMapper }; -export const parameters73: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", mapper: VpnDeviceScriptParametersMapper }; @@ -1907,12 +1850,12 @@ export const virtualNetworkGatewayConnectionName: OperationURLParameter = { } }; -export const parameters74: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnPacketCaptureStartParametersMapper }; -export const parameters75: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: "parameters", mapper: VpnPacketCaptureStopParametersMapper }; @@ -1922,22 +1865,22 @@ export const request1: OperationParameter = { mapper: P2SVpnConnectionRequestMapper }; -export const parameters76: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkGatewayConnectionMapper }; -export const parameters77: OperationParameter = { +export const parameters75: OperationParameter = { parameterPath: "parameters", mapper: ConnectionSharedKeyMapper }; -export const parameters78: OperationParameter = { +export const parameters76: OperationParameter = { parameterPath: "parameters", mapper: ConnectionResetSharedKeyMapper }; -export const parameters79: OperationParameter = { +export const parameters77: OperationParameter = { parameterPath: "parameters", mapper: LocalNetworkGatewayMapper }; @@ -1983,7 +1926,7 @@ export const tapName: OperationURLParameter = { } }; -export const parameters80: OperationParameter = { +export const parameters78: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkTapMapper }; @@ -2004,12 +1947,12 @@ export const virtualRouterName: OperationURLParameter = { } }; -export const parameters81: OperationParameter = { +export const parameters79: OperationParameter = { parameterPath: "parameters", mapper: VirtualRouterMapper }; -export const parameters82: OperationParameter = { +export const parameters80: OperationParameter = { parameterPath: "parameters", mapper: VirtualRouterPeeringMapper }; @@ -2197,12 +2140,12 @@ export const ipConfigurationId: OperationQueryParameter = { } }; -export const parameters83: OperationParameter = { +export const parameters81: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnGatewayPacketCaptureStartParametersMapper }; -export const parameters84: OperationParameter = { +export const parameters82: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnGatewayPacketCaptureStopParametersMapper }; @@ -2223,7 +2166,7 @@ export const vpnConnectionParameters: OperationParameter = { mapper: VpnConnectionMapper }; -export const parameters85: OperationParameter = { +export const parameters83: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnConnectionPacketCaptureStartParametersMapper }; @@ -2239,7 +2182,7 @@ export const vpnConnectionName: OperationURLParameter = { } }; -export const parameters86: OperationParameter = { +export const parameters84: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnConnectionPacketCaptureStopParametersMapper }; @@ -2259,7 +2202,7 @@ export const p2SVpnGatewayParameters1: OperationParameter = { mapper: TagsObjectMapper }; -export const parameters87: OperationParameter = { +export const parameters85: OperationParameter = { parameterPath: "parameters", mapper: P2SVpnProfileParametersMapper }; @@ -2311,40 +2254,7 @@ export const putExpressRouteConnectionParameters: OperationParameter = { mapper: ExpressRouteConnectionMapper }; -export const networkVirtualApplianceConnectionParameters: OperationParameter = { - parameterPath: "networkVirtualApplianceConnectionParameters", - mapper: NetworkVirtualApplianceConnectionMapper -}; - -export const networkVirtualApplianceName1: OperationURLParameter = { - parameterPath: "networkVirtualApplianceName", - mapper: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9_]+") - }, - serializedName: "networkVirtualApplianceName", - required: true, - type: { - name: "String" - } - } -}; - -export const connectionName1: OperationURLParameter = { - parameterPath: "connectionName", - mapper: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9_]+") - }, - serializedName: "connectionName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters88: OperationParameter = { +export const parameters86: OperationParameter = { parameterPath: "parameters", mapper: BgpConnectionMapper }; @@ -2371,7 +2281,7 @@ export const ipConfigName: OperationURLParameter = { } }; -export const parameters89: OperationParameter = { +export const parameters87: OperationParameter = { parameterPath: "parameters", mapper: HubIpConfigurationMapper }; @@ -2411,7 +2321,7 @@ export const policyName: OperationURLParameter = { } }; -export const parameters90: OperationParameter = { +export const parameters88: OperationParameter = { parameterPath: "parameters", mapper: WebApplicationFirewallPolicyMapper }; diff --git a/sdk/network/arm-network/src/networkManagementClient.ts b/sdk/network/arm-network/src/networkManagementClient.ts index 881d4e469dee..d34538463c11 100644 --- a/sdk/network/arm-network/src/networkManagementClient.ts +++ b/sdk/network/arm-network/src/networkManagementClient.ts @@ -143,7 +143,6 @@ import { VirtualHubRouteTableV2SImpl, ExpressRouteGatewaysImpl, ExpressRouteConnectionsImpl, - NetworkVirtualApplianceConnectionsImpl, VirtualHubBgpConnectionImpl, VirtualHubBgpConnectionsImpl, VirtualHubIpConfigurationImpl, @@ -277,7 +276,6 @@ import { VirtualHubRouteTableV2S, ExpressRouteGateways, ExpressRouteConnections, - NetworkVirtualApplianceConnections, VirtualHubBgpConnection, VirtualHubBgpConnections, VirtualHubIpConfiguration, @@ -379,7 +377,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-network/32.2.1`; + const packageDetails = `azsdk-js-arm-network/33.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -633,9 +631,6 @@ export class NetworkManagementClient extends coreClient.ServiceClient { this.virtualHubRouteTableV2S = new VirtualHubRouteTableV2SImpl(this); this.expressRouteGateways = new ExpressRouteGatewaysImpl(this); this.expressRouteConnections = new ExpressRouteConnectionsImpl(this); - this.networkVirtualApplianceConnections = new NetworkVirtualApplianceConnectionsImpl( - this - ); this.virtualHubBgpConnection = new VirtualHubBgpConnectionImpl(this); this.virtualHubBgpConnections = new VirtualHubBgpConnectionsImpl(this); this.virtualHubIpConfiguration = new VirtualHubIpConfigurationImpl(this); @@ -1721,7 +1716,6 @@ export class NetworkManagementClient extends coreClient.ServiceClient { virtualHubRouteTableV2S: VirtualHubRouteTableV2S; expressRouteGateways: ExpressRouteGateways; expressRouteConnections: ExpressRouteConnections; - networkVirtualApplianceConnections: NetworkVirtualApplianceConnections; virtualHubBgpConnection: VirtualHubBgpConnection; virtualHubBgpConnections: VirtualHubBgpConnections; virtualHubIpConfiguration: VirtualHubIpConfiguration; @@ -1923,7 +1917,7 @@ const listActiveConnectivityConfigurationsOperationSpec: coreClient.OperationSpe bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, @@ -1947,7 +1941,7 @@ const listActiveSecurityAdminRulesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, @@ -1972,7 +1966,7 @@ const listNetworkManagerEffectiveConnectivityConfigurationsOperationSpec: coreCl bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, @@ -1996,7 +1990,7 @@ const listNetworkManagerEffectiveSecurityAdminRulesOperationSpec: coreClient.Ope bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/azureFirewalls.ts b/sdk/network/arm-network/src/operations/azureFirewalls.ts index 45cf1bdc3b4b..09fe867b63be 100644 --- a/sdk/network/arm-network/src/operations/azureFirewalls.ts +++ b/sdk/network/arm-network/src/operations/azureFirewalls.ts @@ -37,9 +37,6 @@ import { AzureFirewallsUpdateTagsResponse, AzureFirewallsListLearnedPrefixesOptionalParams, AzureFirewallsListLearnedPrefixesResponse, - FirewallPacketCaptureParameters, - AzureFirewallsPacketCaptureOptionalParams, - AzureFirewallsPacketCaptureResponse, AzureFirewallsListNextResponse, AzureFirewallsListAllNextResponse } from "../models"; @@ -581,102 +578,6 @@ export class AzureFirewallsImpl implements AzureFirewalls { return poller.pollUntilDone(); } - /** - * Runs a packet capture on AzureFirewall. - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to run packet capture on azure firewall. - * @param options The options parameters. - */ - async beginPacketCapture( - resourceGroupName: string, - azureFirewallName: string, - parameters: FirewallPacketCaptureParameters, - options?: AzureFirewallsPacketCaptureOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AzureFirewallsPacketCaptureResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, azureFirewallName, parameters, options }, - spec: packetCaptureOperationSpec - }); - const poller = await createHttpPoller< - AzureFirewallsPacketCaptureResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Runs a packet capture on AzureFirewall. - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to run packet capture on azure firewall. - * @param options The options parameters. - */ - async beginPacketCaptureAndWait( - resourceGroupName: string, - azureFirewallName: string, - parameters: FirewallPacketCaptureParameters, - options?: AzureFirewallsPacketCaptureOptionalParams - ): Promise { - const poller = await this.beginPacketCapture( - resourceGroupName, - azureFirewallName, - parameters, - options - ); - return poller.pollUntilDone(); - } - /** * ListNext * @param resourceGroupName The name of the resource group. @@ -892,39 +793,6 @@ const listLearnedPrefixesOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const packetCaptureOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}/packetCapture", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.AzureFirewallsPacketCaptureHeaders - }, - 201: { - headersMapper: Mappers.AzureFirewallsPacketCaptureHeaders - }, - 202: { - headersMapper: Mappers.AzureFirewallsPacketCaptureHeaders - }, - 204: { - headersMapper: Mappers.AzureFirewallsPacketCaptureHeaders - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.parameters5, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.azureFirewallName2 - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/network/arm-network/src/operations/bastionHosts.ts b/sdk/network/arm-network/src/operations/bastionHosts.ts index 6a2aaeec26dd..0dedeb98b331 100644 --- a/sdk/network/arm-network/src/operations/bastionHosts.ts +++ b/sdk/network/arm-network/src/operations/bastionHosts.ts @@ -593,7 +593,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/connectionMonitors.ts b/sdk/network/arm-network/src/operations/connectionMonitors.ts index 9a0ba8b2aa59..58dfaf5abf6f 100644 --- a/sdk/network/arm-network/src/operations/connectionMonitors.ts +++ b/sdk/network/arm-network/src/operations/connectionMonitors.ts @@ -686,7 +686,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters57, queryParameters: [Parameters.apiVersion, Parameters.migrate], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/customIPPrefixes.ts b/sdk/network/arm-network/src/operations/customIPPrefixes.ts index ca82a49ff5ca..d8c719d868b6 100644 --- a/sdk/network/arm-network/src/operations/customIPPrefixes.ts +++ b/sdk/network/arm-network/src/operations/customIPPrefixes.ts @@ -509,7 +509,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/ddosCustomPolicies.ts b/sdk/network/arm-network/src/operations/ddosCustomPolicies.ts index b7158bfc902f..698ea880a31b 100644 --- a/sdk/network/arm-network/src/operations/ddosCustomPolicies.ts +++ b/sdk/network/arm-network/src/operations/ddosCustomPolicies.ts @@ -325,7 +325,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/ddosProtectionPlans.ts b/sdk/network/arm-network/src/operations/ddosProtectionPlans.ts index 3badfb256575..785863b1c754 100644 --- a/sdk/network/arm-network/src/operations/ddosProtectionPlans.ts +++ b/sdk/network/arm-network/src/operations/ddosProtectionPlans.ts @@ -516,7 +516,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/dscpConfigurationOperations.ts b/sdk/network/arm-network/src/operations/dscpConfigurationOperations.ts index 5f25c930ea09..f28d8c1fdbc9 100644 --- a/sdk/network/arm-network/src/operations/dscpConfigurationOperations.ts +++ b/sdk/network/arm-network/src/operations/dscpConfigurationOperations.ts @@ -443,7 +443,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters15, + requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/expressRouteCircuits.ts b/sdk/network/arm-network/src/operations/expressRouteCircuits.ts index 682919b24ccc..ca5409078bbe 100644 --- a/sdk/network/arm-network/src/operations/expressRouteCircuits.ts +++ b/sdk/network/arm-network/src/operations/expressRouteCircuits.ts @@ -882,7 +882,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/expressRouteCrossConnections.ts b/sdk/network/arm-network/src/operations/expressRouteCrossConnections.ts index 1abf50a10ba2..d824b2cc641d 100644 --- a/sdk/network/arm-network/src/operations/expressRouteCrossConnections.ts +++ b/sdk/network/arm-network/src/operations/expressRouteCrossConnections.ts @@ -786,7 +786,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/expressRoutePorts.ts b/sdk/network/arm-network/src/operations/expressRoutePorts.ts index d1a91ceafd08..d9fa8fe7fec4 100644 --- a/sdk/network/arm-network/src/operations/expressRoutePorts.ts +++ b/sdk/network/arm-network/src/operations/expressRoutePorts.ts @@ -538,7 +538,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/firewallPolicies.ts b/sdk/network/arm-network/src/operations/firewallPolicies.ts index c91cfd0b1c1a..2054bbdf2191 100644 --- a/sdk/network/arm-network/src/operations/firewallPolicies.ts +++ b/sdk/network/arm-network/src/operations/firewallPolicies.ts @@ -509,7 +509,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignatures.ts b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignatures.ts index 80a78a7a78b8..7e777b48e2bf 100644 --- a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignatures.ts +++ b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignatures.ts @@ -64,7 +64,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesFilterValues.ts b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesFilterValues.ts index 879343b494d9..af2d63b6005a 100644 --- a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesFilterValues.ts +++ b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesFilterValues.ts @@ -64,7 +64,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters23, + requestBody: Parameters.parameters22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesOverrides.ts b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesOverrides.ts index 42dc66070ad7..04544c7215d2 100644 --- a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesOverrides.ts +++ b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesOverrides.ts @@ -123,7 +123,7 @@ const patchOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters22, + requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -147,7 +147,7 @@ const putOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters22, + requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/firewallPolicyRuleCollectionGroups.ts b/sdk/network/arm-network/src/operations/firewallPolicyRuleCollectionGroups.ts index 5b1b2b7df06e..43b7e27c883d 100644 --- a/sdk/network/arm-network/src/operations/firewallPolicyRuleCollectionGroups.ts +++ b/sdk/network/arm-network/src/operations/firewallPolicyRuleCollectionGroups.ts @@ -459,7 +459,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/flowLogs.ts b/sdk/network/arm-network/src/operations/flowLogs.ts index fabefdfa3494..3860b7f32dbd 100644 --- a/sdk/network/arm-network/src/operations/flowLogs.ts +++ b/sdk/network/arm-network/src/operations/flowLogs.ts @@ -429,7 +429,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters58, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts b/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts index 4a2e9fdd7035..8f521903fcb5 100644 --- a/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts +++ b/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts @@ -169,7 +169,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters44, + requestBody: Parameters.parameters42, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/index.ts b/sdk/network/arm-network/src/operations/index.ts index 298c7c04491e..a666d0b45a47 100644 --- a/sdk/network/arm-network/src/operations/index.ts +++ b/sdk/network/arm-network/src/operations/index.ts @@ -131,7 +131,6 @@ export * from "./vpnServerConfigurationsAssociatedWithVirtualWan"; export * from "./virtualHubRouteTableV2S"; export * from "./expressRouteGateways"; export * from "./expressRouteConnections"; -export * from "./networkVirtualApplianceConnections"; export * from "./virtualHubBgpConnection"; export * from "./virtualHubBgpConnections"; export * from "./virtualHubIpConfiguration"; diff --git a/sdk/network/arm-network/src/operations/ipAllocations.ts b/sdk/network/arm-network/src/operations/ipAllocations.ts index de769f8edfb4..90024c9a50ba 100644 --- a/sdk/network/arm-network/src/operations/ipAllocations.ts +++ b/sdk/network/arm-network/src/operations/ipAllocations.ts @@ -516,7 +516,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters24, + requestBody: Parameters.parameters23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/ipGroups.ts b/sdk/network/arm-network/src/operations/ipGroups.ts index f5ccc3e276a0..13e0766886b9 100644 --- a/sdk/network/arm-network/src/operations/ipGroups.ts +++ b/sdk/network/arm-network/src/operations/ipGroups.ts @@ -493,7 +493,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts b/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts index d7580bb09966..71e7074f3520 100644 --- a/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts +++ b/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts @@ -452,7 +452,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters30, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/loadBalancers.ts b/sdk/network/arm-network/src/operations/loadBalancers.ts index 0cde19a76226..13eae7e2afc8 100644 --- a/sdk/network/arm-network/src/operations/loadBalancers.ts +++ b/sdk/network/arm-network/src/operations/loadBalancers.ts @@ -40,8 +40,6 @@ import { QueryInboundNatRulePortMappingRequest, LoadBalancersListInboundNatRulePortMappingsOptionalParams, LoadBalancersListInboundNatRulePortMappingsResponse, - LoadBalancersMigrateToIpBasedOptionalParams, - LoadBalancersMigrateToIpBasedResponse, LoadBalancersListAllNextResponse, LoadBalancersListNextResponse } from "../models"; @@ -605,23 +603,6 @@ export class LoadBalancersImpl implements LoadBalancers { return poller.pollUntilDone(); } - /** - * Migrate load balancer to IP Based - * @param groupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param options The options parameters. - */ - migrateToIpBased( - groupName: string, - loadBalancerName: string, - options?: LoadBalancersMigrateToIpBasedOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { groupName, loadBalancerName, options }, - migrateToIpBasedOperationSpec - ); - } - /** * ListAllNext * @param nextLink The nextLink from the previous successful call to the ListAll method. @@ -723,7 +704,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -810,7 +791,7 @@ const swapPublicIpAddressesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -842,7 +823,7 @@ const listInboundNatRulePortMappingsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -855,30 +836,6 @@ const listInboundNatRulePortMappingsOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const migrateToIpBasedOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/migrateToIpBased", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.MigratedPools - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.parameters29, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.groupName1, - Parameters.loadBalancerName1 - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/network/arm-network/src/operations/localNetworkGateways.ts b/sdk/network/arm-network/src/operations/localNetworkGateways.ts index 2c0ba03de05d..39ef19e96845 100644 --- a/sdk/network/arm-network/src/operations/localNetworkGateways.ts +++ b/sdk/network/arm-network/src/operations/localNetworkGateways.ts @@ -381,7 +381,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters79, + requestBody: Parameters.parameters77, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts b/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts index b70222c26efa..5e7d95f3f825 100644 --- a/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts +++ b/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts @@ -211,7 +211,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters36, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/natGateways.ts b/sdk/network/arm-network/src/operations/natGateways.ts index 33a75bd86f9c..e0b5ee71b22f 100644 --- a/sdk/network/arm-network/src/operations/natGateways.ts +++ b/sdk/network/arm-network/src/operations/natGateways.ts @@ -509,7 +509,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkGroups.ts b/sdk/network/arm-network/src/operations/networkGroups.ts index 197e13b3ea20..7fd2a57920ee 100644 --- a/sdk/network/arm-network/src/operations/networkGroups.ts +++ b/sdk/network/arm-network/src/operations/networkGroups.ts @@ -343,7 +343,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters37, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkInterfaces.ts b/sdk/network/arm-network/src/operations/networkInterfaces.ts index 63f56efc1eb1..0363905a6786 100644 --- a/sdk/network/arm-network/src/operations/networkInterfaces.ts +++ b/sdk/network/arm-network/src/operations/networkInterfaces.ts @@ -1586,7 +1586,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkManagerCommits.ts b/sdk/network/arm-network/src/operations/networkManagerCommits.ts index 83a9ded1c567..3ef528b7094a 100644 --- a/sdk/network/arm-network/src/operations/networkManagerCommits.ts +++ b/sdk/network/arm-network/src/operations/networkManagerCommits.ts @@ -155,7 +155,7 @@ const postOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters34, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts b/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts index d4930a95e741..7796b576677d 100644 --- a/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts +++ b/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts @@ -64,7 +64,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters35, + requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkManagers.ts b/sdk/network/arm-network/src/operations/networkManagers.ts index 175581b41c5c..10dcaa622676 100644 --- a/sdk/network/arm-network/src/operations/networkManagers.ts +++ b/sdk/network/arm-network/src/operations/networkManagers.ts @@ -406,7 +406,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -453,7 +453,7 @@ const patchOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkProfiles.ts b/sdk/network/arm-network/src/operations/networkProfiles.ts index 38a0fe42e83d..b15e796fa9c0 100644 --- a/sdk/network/arm-network/src/operations/networkProfiles.ts +++ b/sdk/network/arm-network/src/operations/networkProfiles.ts @@ -426,7 +426,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters38, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkSecurityGroups.ts b/sdk/network/arm-network/src/operations/networkSecurityGroups.ts index dc48205a47f5..ea5d56c9e48c 100644 --- a/sdk/network/arm-network/src/operations/networkSecurityGroups.ts +++ b/sdk/network/arm-network/src/operations/networkSecurityGroups.ts @@ -514,7 +514,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkVirtualApplianceConnections.ts b/sdk/network/arm-network/src/operations/networkVirtualApplianceConnections.ts deleted file mode 100644 index 9aba36a03ec3..000000000000 --- a/sdk/network/arm-network/src/operations/networkVirtualApplianceConnections.ts +++ /dev/null @@ -1,523 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { NetworkVirtualApplianceConnections } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetworkManagementClient } from "../networkManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - NetworkVirtualApplianceConnection, - NetworkVirtualApplianceConnectionsListNextOptionalParams, - NetworkVirtualApplianceConnectionsListOptionalParams, - NetworkVirtualApplianceConnectionsListResponse, - NetworkVirtualApplianceConnectionsCreateOrUpdateOptionalParams, - NetworkVirtualApplianceConnectionsCreateOrUpdateResponse, - NetworkVirtualApplianceConnectionsGetOptionalParams, - NetworkVirtualApplianceConnectionsGetResponse, - NetworkVirtualApplianceConnectionsDeleteOptionalParams, - NetworkVirtualApplianceConnectionsListNextResponse -} from "../models"; - -/// -/** Class containing NetworkVirtualApplianceConnections operations. */ -export class NetworkVirtualApplianceConnectionsImpl - implements NetworkVirtualApplianceConnections { - private readonly client: NetworkManagementClient; - - /** - * Initialize a new instance of the class NetworkVirtualApplianceConnections class. - * @param client Reference to the service client - */ - constructor(client: NetworkManagementClient) { - this.client = client; - } - - /** - * Lists NetworkVirtualApplianceConnections under the NVA. - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - networkVirtualApplianceName: string, - options?: NetworkVirtualApplianceConnectionsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - networkVirtualApplianceName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage( - resourceGroupName, - networkVirtualApplianceName, - options, - settings - ); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - networkVirtualApplianceName: string, - options?: NetworkVirtualApplianceConnectionsListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: NetworkVirtualApplianceConnectionsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list( - resourceGroupName, - networkVirtualApplianceName, - options - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - networkVirtualApplianceName, - continuationToken, - options - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceGroupName: string, - networkVirtualApplianceName: string, - options?: NetworkVirtualApplianceConnectionsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - networkVirtualApplianceName, - options - )) { - yield* page; - } - } - - /** - * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA - * connection' - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. - * @param networkVirtualApplianceConnectionParameters Parameters supplied in an - * NetworkVirtualApplianceConnection PUT operation. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - networkVirtualApplianceName: string, - connectionName: string, - networkVirtualApplianceConnectionParameters: NetworkVirtualApplianceConnection, - options?: NetworkVirtualApplianceConnectionsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - NetworkVirtualApplianceConnectionsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - networkVirtualApplianceName, - connectionName, - networkVirtualApplianceConnectionParameters, - options - }, - spec: createOrUpdateOperationSpec - }); - const poller = await createHttpPoller< - NetworkVirtualApplianceConnectionsCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA - * connection' - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. - * @param networkVirtualApplianceConnectionParameters Parameters supplied in an - * NetworkVirtualApplianceConnection PUT operation. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - networkVirtualApplianceName: string, - connectionName: string, - networkVirtualApplianceConnectionParameters: NetworkVirtualApplianceConnection, - options?: NetworkVirtualApplianceConnectionsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - networkVirtualApplianceName, - connectionName, - networkVirtualApplianceConnectionParameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * Retrieves the details of specified NVA connection. - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - networkVirtualApplianceName: string, - connectionName: string, - options?: NetworkVirtualApplianceConnectionsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - networkVirtualApplianceName, - connectionName, - options - }, - getOperationSpec - ); - } - - /** - * Deletes a NVA connection. - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - networkVirtualApplianceName: string, - connectionName: string, - options?: NetworkVirtualApplianceConnectionsDeleteOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - networkVirtualApplianceName, - connectionName, - options - }, - spec: deleteOperationSpec - }); - const poller = await createHttpPoller>(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Deletes a NVA connection. - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - networkVirtualApplianceName: string, - connectionName: string, - options?: NetworkVirtualApplianceConnectionsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - networkVirtualApplianceName, - connectionName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Lists NetworkVirtualApplianceConnections under the NVA. - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - networkVirtualApplianceName: string, - options?: NetworkVirtualApplianceConnectionsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, networkVirtualApplianceName, options }, - listOperationSpec - ); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - networkVirtualApplianceName: string, - nextLink: string, - options?: NetworkVirtualApplianceConnectionsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, networkVirtualApplianceName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.NetworkVirtualApplianceConnection - }, - 201: { - bodyMapper: Mappers.NetworkVirtualApplianceConnection - }, - 202: { - bodyMapper: Mappers.NetworkVirtualApplianceConnection - }, - 204: { - bodyMapper: Mappers.NetworkVirtualApplianceConnection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.networkVirtualApplianceConnectionParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.networkVirtualApplianceName1, - Parameters.connectionName1 - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NetworkVirtualApplianceConnection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.connectionName, - Parameters.networkVirtualApplianceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections/{connectionName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.connectionName, - Parameters.networkVirtualApplianceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/networkVirtualApplianceConnections", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NetworkVirtualApplianceConnectionList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.networkVirtualApplianceName1 - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NetworkVirtualApplianceConnectionList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.networkVirtualApplianceName1 - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts b/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts index 039f269e2265..3a72caeed9a8 100644 --- a/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts +++ b/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts @@ -545,7 +545,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters42, + requestBody: Parameters.parameters40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkWatchers.ts b/sdk/network/arm-network/src/operations/networkWatchers.ts index ce3959f41325..96f4ecc1f965 100644 --- a/sdk/network/arm-network/src/operations/networkWatchers.ts +++ b/sdk/network/arm-network/src/operations/networkWatchers.ts @@ -1441,7 +1441,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters45, + requestBody: Parameters.parameters43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1572,7 +1572,7 @@ const getTopologyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters46, + requestBody: Parameters.parameters44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1605,7 +1605,7 @@ const verifyIPFlowOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters47, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1638,7 +1638,7 @@ const getNextHopOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1671,7 +1671,7 @@ const getVMSecurityRulesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters47, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1704,7 +1704,7 @@ const getTroubleshootingOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters48, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1737,7 +1737,7 @@ const getTroubleshootingResultOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters49, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1770,7 +1770,7 @@ const setFlowLogConfigurationOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters52, + requestBody: Parameters.parameters50, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1803,7 +1803,7 @@ const getFlowLogStatusOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters53, + requestBody: Parameters.parameters51, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1836,7 +1836,7 @@ const checkConnectivityOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters52, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1869,7 +1869,7 @@ const getAzureReachabilityReportOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters55, + requestBody: Parameters.parameters53, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1902,7 +1902,7 @@ const listAvailableProvidersOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters56, + requestBody: Parameters.parameters54, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1935,7 +1935,7 @@ const getNetworkConfigurationDiagnosticOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters57, + requestBody: Parameters.parameters55, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/p2SVpnGateways.ts b/sdk/network/arm-network/src/operations/p2SVpnGateways.ts index 1185362dbbc4..ba083c0bbb54 100644 --- a/sdk/network/arm-network/src/operations/p2SVpnGateways.ts +++ b/sdk/network/arm-network/src/operations/p2SVpnGateways.ts @@ -1218,7 +1218,7 @@ const generateVpnProfileOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters87, + requestBody: Parameters.parameters85, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/packetCaptures.ts b/sdk/network/arm-network/src/operations/packetCaptures.ts index 6a52ad36a909..2cdec651dcc0 100644 --- a/sdk/network/arm-network/src/operations/packetCaptures.ts +++ b/sdk/network/arm-network/src/operations/packetCaptures.ts @@ -562,7 +562,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters56, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts b/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts index 7db80e332a37..f233ab161074 100644 --- a/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts +++ b/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts @@ -460,7 +460,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters60, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/privateEndpoints.ts b/sdk/network/arm-network/src/operations/privateEndpoints.ts index aa840b54b51a..c90a9990c93a 100644 --- a/sdk/network/arm-network/src/operations/privateEndpoints.ts +++ b/sdk/network/arm-network/src/operations/privateEndpoints.ts @@ -490,7 +490,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters59, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/privateLinkServices.ts b/sdk/network/arm-network/src/operations/privateLinkServices.ts index aa69067f3176..0c00998b7d00 100644 --- a/sdk/network/arm-network/src/operations/privateLinkServices.ts +++ b/sdk/network/arm-network/src/operations/privateLinkServices.ts @@ -1200,7 +1200,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters63, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1285,7 +1285,7 @@ const updatePrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters64, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1365,7 +1365,7 @@ const checkPrivateLinkServiceVisibilityOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters65, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1397,7 +1397,7 @@ const checkPrivateLinkServiceVisibilityByResourceGroupOperationSpec: coreClient. bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters65, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/publicIPAddresses.ts b/sdk/network/arm-network/src/operations/publicIPAddresses.ts index 05a27c7924b2..81b411779fa2 100644 --- a/sdk/network/arm-network/src/operations/publicIPAddresses.ts +++ b/sdk/network/arm-network/src/operations/publicIPAddresses.ts @@ -1371,7 +1371,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/publicIPPrefixes.ts b/sdk/network/arm-network/src/operations/publicIPPrefixes.ts index 4928826b637a..c6235abefe96 100644 --- a/sdk/network/arm-network/src/operations/publicIPPrefixes.ts +++ b/sdk/network/arm-network/src/operations/publicIPPrefixes.ts @@ -509,7 +509,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters66, + requestBody: Parameters.parameters64, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/routeTables.ts b/sdk/network/arm-network/src/operations/routeTables.ts index a50d181a6c66..ec818a1aefa4 100644 --- a/sdk/network/arm-network/src/operations/routeTables.ts +++ b/sdk/network/arm-network/src/operations/routeTables.ts @@ -509,7 +509,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters67, + requestBody: Parameters.parameters65, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/scopeConnections.ts b/sdk/network/arm-network/src/operations/scopeConnections.ts index 15ab47732cac..e0e5fba8c394 100644 --- a/sdk/network/arm-network/src/operations/scopeConnections.ts +++ b/sdk/network/arm-network/src/operations/scopeConnections.ts @@ -238,7 +238,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters39, + requestBody: Parameters.parameters37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/securityPartnerProviders.ts b/sdk/network/arm-network/src/operations/securityPartnerProviders.ts index 66abf6889112..e745b07cfd8b 100644 --- a/sdk/network/arm-network/src/operations/securityPartnerProviders.ts +++ b/sdk/network/arm-network/src/operations/securityPartnerProviders.ts @@ -521,7 +521,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters68, + requestBody: Parameters.parameters66, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts b/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts index f5748352f060..31f1c4c5bf30 100644 --- a/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts +++ b/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts @@ -521,7 +521,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters69, + requestBody: Parameters.parameters67, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/staticMembers.ts b/sdk/network/arm-network/src/operations/staticMembers.ts index 728babfa616e..447573f99169 100644 --- a/sdk/network/arm-network/src/operations/staticMembers.ts +++ b/sdk/network/arm-network/src/operations/staticMembers.ts @@ -304,7 +304,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters38, + requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts b/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts index 0db755eb9e08..5a756b5e897d 100644 --- a/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts +++ b/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts @@ -184,7 +184,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters36, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/vipSwap.ts b/sdk/network/arm-network/src/operations/vipSwap.ts index 5a82df902333..d47ff77ae153 100644 --- a/sdk/network/arm-network/src/operations/vipSwap.ts +++ b/sdk/network/arm-network/src/operations/vipSwap.ts @@ -202,7 +202,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualApplianceSites.ts b/sdk/network/arm-network/src/operations/virtualApplianceSites.ts index fd904825a361..8d7b60333ec5 100644 --- a/sdk/network/arm-network/src/operations/virtualApplianceSites.ts +++ b/sdk/network/arm-network/src/operations/virtualApplianceSites.ts @@ -457,7 +457,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters43, + requestBody: Parameters.parameters41, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts b/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts index e0bf55628339..b9f5bf3b9997 100644 --- a/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts +++ b/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts @@ -301,7 +301,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters88, + requestBody: Parameters.parameters86, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualHubBgpConnections.ts b/sdk/network/arm-network/src/operations/virtualHubBgpConnections.ts index 9a364cf5270b..2392b4e064bd 100644 --- a/sdk/network/arm-network/src/operations/virtualHubBgpConnections.ts +++ b/sdk/network/arm-network/src/operations/virtualHubBgpConnections.ts @@ -379,56 +379,16 @@ const listLearnedRoutesOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - bodyMapper: { - type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { type: { name: "Composite", className: "PeerRoute" } } - } - } - } - } + bodyMapper: Mappers.PeerRouteList }, 201: { - bodyMapper: { - type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { type: { name: "Composite", className: "PeerRoute" } } - } - } - } - } + bodyMapper: Mappers.PeerRouteList }, 202: { - bodyMapper: { - type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { type: { name: "Composite", className: "PeerRoute" } } - } - } - } - } + bodyMapper: Mappers.PeerRouteList }, 204: { - bodyMapper: { - type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { type: { name: "Composite", className: "PeerRoute" } } - } - } - } - } + bodyMapper: Mappers.PeerRouteList }, default: { bodyMapper: Mappers.CloudError @@ -451,56 +411,16 @@ const listAdvertisedRoutesOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - bodyMapper: { - type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { type: { name: "Composite", className: "PeerRoute" } } - } - } - } - } + bodyMapper: Mappers.PeerRouteList }, 201: { - bodyMapper: { - type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { type: { name: "Composite", className: "PeerRoute" } } - } - } - } - } + bodyMapper: Mappers.PeerRouteList }, 202: { - bodyMapper: { - type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { type: { name: "Composite", className: "PeerRoute" } } - } - } - } - } + bodyMapper: Mappers.PeerRouteList }, 204: { - bodyMapper: { - type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { type: { name: "Composite", className: "PeerRoute" } } - } - } - } - } + bodyMapper: Mappers.PeerRouteList }, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts b/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts index b6f0b8976f96..cdb947b1c249 100644 --- a/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts +++ b/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts @@ -421,7 +421,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters89, + requestBody: Parameters.parameters87, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualHubs.ts b/sdk/network/arm-network/src/operations/virtualHubs.ts index cce114f64eed..20ee3df756c4 100644 --- a/sdk/network/arm-network/src/operations/virtualHubs.ts +++ b/sdk/network/arm-network/src/operations/virtualHubs.ts @@ -36,13 +36,10 @@ import { VirtualHubsUpdateTagsResponse, VirtualHubsDeleteOptionalParams, VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams, - VirtualHubsGetEffectiveVirtualHubRoutesResponse, GetInboundRoutesParameters, VirtualHubsGetInboundRoutesOptionalParams, - VirtualHubsGetInboundRoutesResponse, GetOutboundRoutesParameters, VirtualHubsGetOutboundRoutesOptionalParams, - VirtualHubsGetOutboundRoutesResponse, VirtualHubsListByResourceGroupNextResponse, VirtualHubsListNextResponse } from "../models"; @@ -438,16 +435,11 @@ export class VirtualHubsImpl implements VirtualHubs { resourceGroupName: string, virtualHubName: string, options?: VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - VirtualHubsGetEffectiveVirtualHubRoutesResponse - > - > { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -488,10 +480,7 @@ export class VirtualHubsImpl implements VirtualHubs { args: { resourceGroupName, virtualHubName, options }, spec: getEffectiveVirtualHubRoutesOperationSpec }); - const poller = await createHttpPoller< - VirtualHubsGetEffectiveVirtualHubRoutesResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location" @@ -510,7 +499,7 @@ export class VirtualHubsImpl implements VirtualHubs { resourceGroupName: string, virtualHubName: string, options?: VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams - ): Promise { + ): Promise { const poller = await this.beginGetEffectiveVirtualHubRoutes( resourceGroupName, virtualHubName, @@ -532,16 +521,11 @@ export class VirtualHubsImpl implements VirtualHubs { virtualHubName: string, getInboundRoutesParameters: GetInboundRoutesParameters, options?: VirtualHubsGetInboundRoutesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - VirtualHubsGetInboundRoutesResponse - > - > { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -587,10 +571,7 @@ export class VirtualHubsImpl implements VirtualHubs { }, spec: getInboundRoutesOperationSpec }); - const poller = await createHttpPoller< - VirtualHubsGetInboundRoutesResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location" @@ -612,7 +593,7 @@ export class VirtualHubsImpl implements VirtualHubs { virtualHubName: string, getInboundRoutesParameters: GetInboundRoutesParameters, options?: VirtualHubsGetInboundRoutesOptionalParams - ): Promise { + ): Promise { const poller = await this.beginGetInboundRoutes( resourceGroupName, virtualHubName, @@ -635,16 +616,11 @@ export class VirtualHubsImpl implements VirtualHubs { virtualHubName: string, getOutboundRoutesParameters: GetOutboundRoutesParameters, options?: VirtualHubsGetOutboundRoutesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - VirtualHubsGetOutboundRoutesResponse - > - > { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -690,10 +666,7 @@ export class VirtualHubsImpl implements VirtualHubs { }, spec: getOutboundRoutesOperationSpec }); - const poller = await createHttpPoller< - VirtualHubsGetOutboundRoutesResponse, - OperationState - >(lro, { + const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location" @@ -715,7 +688,7 @@ export class VirtualHubsImpl implements VirtualHubs { virtualHubName: string, getOutboundRoutesParameters: GetOutboundRoutesParameters, options?: VirtualHubsGetOutboundRoutesOptionalParams - ): Promise { + ): Promise { const poller = await this.beginGetOutboundRoutes( resourceGroupName, virtualHubName, @@ -905,18 +878,10 @@ const getEffectiveVirtualHubRoutesOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/effectiveRoutes", httpMethod: "POST", responses: { - 200: { - bodyMapper: Mappers.VirtualHubEffectiveRouteList - }, - 201: { - bodyMapper: Mappers.VirtualHubEffectiveRouteList - }, - 202: { - bodyMapper: Mappers.VirtualHubEffectiveRouteList - }, - 204: { - bodyMapper: Mappers.VirtualHubEffectiveRouteList - }, + 200: {}, + 201: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError } @@ -938,18 +903,10 @@ const getInboundRoutesOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/inboundRoutes", httpMethod: "POST", responses: { - 200: { - bodyMapper: Mappers.EffectiveRouteMapRouteList - }, - 201: { - bodyMapper: Mappers.EffectiveRouteMapRouteList - }, - 202: { - bodyMapper: Mappers.EffectiveRouteMapRouteList - }, - 204: { - bodyMapper: Mappers.EffectiveRouteMapRouteList - }, + 200: {}, + 201: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError } @@ -971,18 +928,10 @@ const getOutboundRoutesOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/outboundRoutes", httpMethod: "POST", responses: { - 200: { - bodyMapper: Mappers.EffectiveRouteMapRouteList - }, - 201: { - bodyMapper: Mappers.EffectiveRouteMapRouteList - }, - 202: { - bodyMapper: Mappers.EffectiveRouteMapRouteList - }, - 204: { - bodyMapper: Mappers.EffectiveRouteMapRouteList - }, + 200: {}, + 201: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError } diff --git a/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts b/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts index 94518904a042..624eb9838421 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts @@ -1095,7 +1095,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters76, + requestBody: Parameters.parameters74, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1206,7 +1206,7 @@ const setSharedKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters77, + requestBody: Parameters.parameters75, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1282,7 +1282,7 @@ const resetSharedKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters78, + requestBody: Parameters.parameters76, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1315,7 +1315,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters74, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1348,7 +1348,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters75, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts b/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts index 36c64973ea7b..ace5d0853149 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts @@ -2006,7 +2006,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2214,7 +2214,7 @@ const generatevpnclientpackageOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters72, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2247,7 +2247,7 @@ const generateVpnProfileOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters72, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2481,7 +2481,7 @@ const vpnDeviceConfigurationScriptOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters73, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2514,7 +2514,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters74, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2547,7 +2547,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters75, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts b/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts index 0824ac34950c..4fbcb172e547 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts @@ -512,7 +512,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters80, + requestBody: Parameters.parameters78, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualNetworks.ts b/sdk/network/arm-network/src/operations/virtualNetworks.ts index 7e1f0c783da7..02a39d3c19e0 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworks.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworks.ts @@ -837,7 +837,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters70, + requestBody: Parameters.parameters68, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts b/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts index 7fae28d777af..219caae3313c 100644 --- a/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts +++ b/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts @@ -446,7 +446,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters82, + requestBody: Parameters.parameters80, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualRouters.ts b/sdk/network/arm-network/src/operations/virtualRouters.ts index 69781b41b460..65524109bf1e 100644 --- a/sdk/network/arm-network/src/operations/virtualRouters.ts +++ b/sdk/network/arm-network/src/operations/virtualRouters.ts @@ -494,7 +494,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters81, + requestBody: Parameters.parameters79, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/vpnConnections.ts b/sdk/network/arm-network/src/operations/vpnConnections.ts index c575e3f0cef8..66532d456b7b 100644 --- a/sdk/network/arm-network/src/operations/vpnConnections.ts +++ b/sdk/network/arm-network/src/operations/vpnConnections.ts @@ -682,7 +682,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters85, + requestBody: Parameters.parameters83, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -716,7 +716,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters86, + requestBody: Parameters.parameters84, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/vpnGateways.ts b/sdk/network/arm-network/src/operations/vpnGateways.ts index d31eeb22d8af..4763a7add568 100644 --- a/sdk/network/arm-network/src/operations/vpnGateways.ts +++ b/sdk/network/arm-network/src/operations/vpnGateways.ts @@ -969,7 +969,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters83, + requestBody: Parameters.parameters81, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1002,7 +1002,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters84, + requestBody: Parameters.parameters82, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts b/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts index 51fd5c04d7c9..07dab78e7901 100644 --- a/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts +++ b/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts @@ -420,7 +420,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters90, + requestBody: Parameters.parameters88, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operationsInterfaces/azureFirewalls.ts b/sdk/network/arm-network/src/operationsInterfaces/azureFirewalls.ts index 3c270388fa33..4952d41ed57b 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/azureFirewalls.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/azureFirewalls.ts @@ -21,10 +21,7 @@ import { AzureFirewallsUpdateTagsOptionalParams, AzureFirewallsUpdateTagsResponse, AzureFirewallsListLearnedPrefixesOptionalParams, - AzureFirewallsListLearnedPrefixesResponse, - FirewallPacketCaptureParameters, - AzureFirewallsPacketCaptureOptionalParams, - AzureFirewallsPacketCaptureResponse + AzureFirewallsListLearnedPrefixesResponse } from "../models"; /// @@ -168,35 +165,4 @@ export interface AzureFirewalls { azureFirewallName: string, options?: AzureFirewallsListLearnedPrefixesOptionalParams ): Promise; - /** - * Runs a packet capture on AzureFirewall. - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to run packet capture on azure firewall. - * @param options The options parameters. - */ - beginPacketCapture( - resourceGroupName: string, - azureFirewallName: string, - parameters: FirewallPacketCaptureParameters, - options?: AzureFirewallsPacketCaptureOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - AzureFirewallsPacketCaptureResponse - > - >; - /** - * Runs a packet capture on AzureFirewall. - * @param resourceGroupName The name of the resource group. - * @param azureFirewallName The name of the Azure Firewall. - * @param parameters Parameters supplied to run packet capture on azure firewall. - * @param options The options parameters. - */ - beginPacketCaptureAndWait( - resourceGroupName: string, - azureFirewallName: string, - parameters: FirewallPacketCaptureParameters, - options?: AzureFirewallsPacketCaptureOptionalParams - ): Promise; } diff --git a/sdk/network/arm-network/src/operationsInterfaces/index.ts b/sdk/network/arm-network/src/operationsInterfaces/index.ts index 298c7c04491e..a666d0b45a47 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/index.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/index.ts @@ -131,7 +131,6 @@ export * from "./vpnServerConfigurationsAssociatedWithVirtualWan"; export * from "./virtualHubRouteTableV2S"; export * from "./expressRouteGateways"; export * from "./expressRouteConnections"; -export * from "./networkVirtualApplianceConnections"; export * from "./virtualHubBgpConnection"; export * from "./virtualHubBgpConnections"; export * from "./virtualHubIpConfiguration"; diff --git a/sdk/network/arm-network/src/operationsInterfaces/loadBalancers.ts b/sdk/network/arm-network/src/operationsInterfaces/loadBalancers.ts index 9ef33ed11f6b..df3962a99757 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/loadBalancers.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/loadBalancers.ts @@ -24,9 +24,7 @@ import { LoadBalancersSwapPublicIpAddressesOptionalParams, QueryInboundNatRulePortMappingRequest, LoadBalancersListInboundNatRulePortMappingsOptionalParams, - LoadBalancersListInboundNatRulePortMappingsResponse, - LoadBalancersMigrateToIpBasedOptionalParams, - LoadBalancersMigrateToIpBasedResponse + LoadBalancersListInboundNatRulePortMappingsResponse } from "../models"; /// @@ -182,15 +180,4 @@ export interface LoadBalancers { parameters: QueryInboundNatRulePortMappingRequest, options?: LoadBalancersListInboundNatRulePortMappingsOptionalParams ): Promise; - /** - * Migrate load balancer to IP Based - * @param groupName The name of the resource group. - * @param loadBalancerName The name of the load balancer. - * @param options The options parameters. - */ - migrateToIpBased( - groupName: string, - loadBalancerName: string, - options?: LoadBalancersMigrateToIpBasedOptionalParams - ): Promise; } diff --git a/sdk/network/arm-network/src/operationsInterfaces/networkVirtualApplianceConnections.ts b/sdk/network/arm-network/src/operationsInterfaces/networkVirtualApplianceConnections.ts deleted file mode 100644 index 4584b2c8e698..000000000000 --- a/sdk/network/arm-network/src/operationsInterfaces/networkVirtualApplianceConnections.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - NetworkVirtualApplianceConnection, - NetworkVirtualApplianceConnectionsListOptionalParams, - NetworkVirtualApplianceConnectionsCreateOrUpdateOptionalParams, - NetworkVirtualApplianceConnectionsCreateOrUpdateResponse, - NetworkVirtualApplianceConnectionsGetOptionalParams, - NetworkVirtualApplianceConnectionsGetResponse, - NetworkVirtualApplianceConnectionsDeleteOptionalParams -} from "../models"; - -/// -/** Interface representing a NetworkVirtualApplianceConnections. */ -export interface NetworkVirtualApplianceConnections { - /** - * Lists NetworkVirtualApplianceConnections under the NVA. - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - networkVirtualApplianceName: string, - options?: NetworkVirtualApplianceConnectionsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA - * connection' - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. - * @param networkVirtualApplianceConnectionParameters Parameters supplied in an - * NetworkVirtualApplianceConnection PUT operation. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - networkVirtualApplianceName: string, - connectionName: string, - networkVirtualApplianceConnectionParameters: NetworkVirtualApplianceConnection, - options?: NetworkVirtualApplianceConnectionsCreateOrUpdateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - NetworkVirtualApplianceConnectionsCreateOrUpdateResponse - > - >; - /** - * Creates a connection to Network Virtual Appliance, if it doesn't exist else updates the existing NVA - * connection' - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. - * @param networkVirtualApplianceConnectionParameters Parameters supplied in an - * NetworkVirtualApplianceConnection PUT operation. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - networkVirtualApplianceName: string, - connectionName: string, - networkVirtualApplianceConnectionParameters: NetworkVirtualApplianceConnection, - options?: NetworkVirtualApplianceConnectionsCreateOrUpdateOptionalParams - ): Promise; - /** - * Retrieves the details of specified NVA connection. - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - networkVirtualApplianceName: string, - connectionName: string, - options?: NetworkVirtualApplianceConnectionsGetOptionalParams - ): Promise; - /** - * Deletes a NVA connection. - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - networkVirtualApplianceName: string, - connectionName: string, - options?: NetworkVirtualApplianceConnectionsDeleteOptionalParams - ): Promise, void>>; - /** - * Deletes a NVA connection. - * @param resourceGroupName The name of the resource group. - * @param networkVirtualApplianceName The name of the Network Virtual Appliance. - * @param connectionName The name of the NVA connection. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - networkVirtualApplianceName: string, - connectionName: string, - options?: NetworkVirtualApplianceConnectionsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualHubs.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualHubs.ts index d2b96c7b8aee..016b12613980 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualHubs.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualHubs.ts @@ -21,13 +21,10 @@ import { VirtualHubsUpdateTagsResponse, VirtualHubsDeleteOptionalParams, VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams, - VirtualHubsGetEffectiveVirtualHubRoutesResponse, GetInboundRoutesParameters, VirtualHubsGetInboundRoutesOptionalParams, - VirtualHubsGetInboundRoutesResponse, GetOutboundRoutesParameters, - VirtualHubsGetOutboundRoutesOptionalParams, - VirtualHubsGetOutboundRoutesResponse + VirtualHubsGetOutboundRoutesOptionalParams } from "../models"; /// @@ -136,12 +133,7 @@ export interface VirtualHubs { resourceGroupName: string, virtualHubName: string, options?: VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - VirtualHubsGetEffectiveVirtualHubRoutesResponse - > - >; + ): Promise, void>>; /** * Gets the effective routes configured for the Virtual Hub resource or the specified resource . * @param resourceGroupName The resource group name of the VirtualHub. @@ -152,7 +144,7 @@ export interface VirtualHubs { resourceGroupName: string, virtualHubName: string, options?: VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams - ): Promise; + ): Promise; /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * @param resourceGroupName The resource group name of the VirtualHub. @@ -166,12 +158,7 @@ export interface VirtualHubs { virtualHubName: string, getInboundRoutesParameters: GetInboundRoutesParameters, options?: VirtualHubsGetInboundRoutesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - VirtualHubsGetInboundRoutesResponse - > - >; + ): Promise, void>>; /** * Gets the inbound routes configured for the Virtual Hub on a particular connection. * @param resourceGroupName The resource group name of the VirtualHub. @@ -185,7 +172,7 @@ export interface VirtualHubs { virtualHubName: string, getInboundRoutesParameters: GetInboundRoutesParameters, options?: VirtualHubsGetInboundRoutesOptionalParams - ): Promise; + ): Promise; /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * @param resourceGroupName The resource group name of the VirtualHub. @@ -199,12 +186,7 @@ export interface VirtualHubs { virtualHubName: string, getOutboundRoutesParameters: GetOutboundRoutesParameters, options?: VirtualHubsGetOutboundRoutesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - VirtualHubsGetOutboundRoutesResponse - > - >; + ): Promise, void>>; /** * Gets the outbound routes configured for the Virtual Hub on a particular connection. * @param resourceGroupName The resource group name of the VirtualHub. @@ -218,5 +200,5 @@ export interface VirtualHubs { virtualHubName: string, getOutboundRoutesParameters: GetOutboundRoutesParameters, options?: VirtualHubsGetOutboundRoutesOptionalParams - ): Promise; + ): Promise; } diff --git a/sdk/network/arm-network/test/sampleTest.ts b/sdk/network/arm-network/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/network/arm-network/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/network/arm-network/tsconfig.json b/sdk/network/arm-network/tsconfig.json index 094dfbf3dbe3..3e6ae96443f3 100644 --- a/sdk/network/arm-network/tsconfig.json +++ b/sdk/network/arm-network/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-network": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"