diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 0f09bfecb785..74105cbeaaca 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2238,7 +2238,7 @@ packages: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/chai-as-promised/7.1.5: @@ -2260,7 +2260,7 @@ packages: /@types/connect/3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/cookie/0.4.1: @@ -2270,7 +2270,7 @@ packages: /@types/cors/2.8.13: resolution: {integrity: sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/debug/4.1.7: @@ -2282,7 +2282,7 @@ packages: /@types/decompress/4.2.4: resolution: {integrity: sha512-/C8kTMRTNiNuWGl5nEyKbPiMv6HA+0RbEXzFhFBEzASM6+oa4tJro9b8nj7eRlOFfuLdzUU+DS/GPDlvvzMOhA==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/eslint/8.4.10: @@ -2303,7 +2303,7 @@ packages: /@types/express-serve-static-core/4.17.33: resolution: {integrity: sha512-TPBqmR/HRYI3eC2E5hmiivIzv+bidAfXofM+sbonAGvyDhySGw9/PQZFt2BLOrjUUR++4eJVpx6KnLQK1Fk9tA==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 dev: false @@ -2320,13 +2320,13 @@ packages: /@types/fs-extra/8.1.2: resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/fs-extra/9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/inquirer/8.2.6: @@ -2339,7 +2339,7 @@ packages: /@types/is-buffer/2.0.0: resolution: {integrity: sha512-0f7N/e3BAz32qDYvgB4d2cqv1DqUwvGxHkXsrucICn8la1Vb6Yl6Eg8mPScGwUiqHJeE7diXlzaK+QMA9m4Gxw==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/json-schema/7.0.11: @@ -2353,13 +2353,13 @@ packages: /@types/jsonwebtoken/9.0.1: resolution: {integrity: sha512-c5ltxazpWabia/4UzhIoaDcIza4KViOQhdbjRlfcIGVnsE3c3brkz9Z+F/EeJIECOQP7W7US2hNE930cWWkPiw==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/jws/3.2.5: resolution: {integrity: sha512-xGTxZH34xOryaTN8CMsvhh9lfNqFuHiMoRvsLYWQdBJHqiECyfInXVl2eK8Jz2emxZWMIn5RBlmr3oDVPeWujw==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/linkify-it/3.0.2: @@ -2406,7 +2406,7 @@ packages: /@types/node-fetch/2.6.3: resolution: {integrity: sha512-ETTL1mOEdq/sxUtgtOhKjyB2Irra4cjxksvcMUR5Zr4n+PxVhsCD9WS46oPbHL3et9Zde7CNRr+WUNlcHvsX+w==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 form-data: 3.0.1 dev: false @@ -2449,7 +2449,7 @@ packages: /@types/resolve/1.17.1: resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/semaphore/1.1.1: @@ -2464,7 +2464,7 @@ packages: resolution: {integrity: sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==} dependencies: '@types/mime': 3.0.1 - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/sinon/10.0.14: @@ -2486,13 +2486,13 @@ packages: /@types/stoppable/1.1.1: resolution: {integrity: sha512-b8N+fCADRIYYrGZOcmOR8ZNBOqhktWTB/bMUl5LvGtT201QKJZOOH5UsFyI3qtteM6ZAJbJqZoBcLqqxKIwjhw==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/through/0.0.30: resolution: {integrity: sha512-FvnCJljyxhPM3gkRgWmxmDZyAQSiBQQWLI0A0VFL0K7W1oRUrPJSqNO0NvTnLkBcotdlp3lKvaT0JrnyRDkzOg==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/tough-cookie/4.0.2: @@ -2506,7 +2506,7 @@ packages: /@types/tunnel/0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/underscore/1.11.4: @@ -2524,19 +2524,19 @@ packages: /@types/ws/7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/ws/8.5.4: resolution: {integrity: sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/xml2js/0.4.11: resolution: {integrity: sha512-JdigeAKmCyoJUiQljjr7tQG3if9NkqGUgwEUqBvV0N7LM4HyQk7UXCnusRa1lnvXAEYJ8mw8GtZWioagNztOwA==} dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false /@types/yargs-parser/21.0.0: @@ -2553,7 +2553,7 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 14.18.42 + '@types/node': 18.16.0 dev: false optional: true @@ -3624,7 +3624,7 @@ packages: resolution: {integrity: sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==} deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) dependencies: - ms: 2.1.1 + ms: 2.1.3 dev: false /debug/3.2.7: @@ -3913,7 +3913,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.13 - '@types/node': 14.18.42 + '@types/node': 18.16.0 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -4927,7 +4927,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.0.4 + minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 dev: false @@ -7350,7 +7350,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 14.18.42 + '@types/node': 18.16.0 long: 5.2.3 dev: false @@ -13414,7 +13414,7 @@ packages: dev: false file:projects/arm-network-1.tgz: - resolution: {integrity: sha512-nXpqdA8VSaeag42S3M95ANDnxw2lbo20X2jflKuY51YrLbk/65nVaARI3OJ6CfEYNdwrR78d8e8W4ng/gmShgw==, tarball: file:projects/arm-network-1.tgz} + resolution: {integrity: sha512-HP4VbHNAjhBlsVcszfjybzzFd7MlgIBwbEnYhkPOk+uNySUPuU1whPAIPsgcbAkwf90ulTjitwCRSmBdf91Zhg==, tarball: file:projects/arm-network-1.tgz} name: '@rush-temp/arm-network-1' version: 0.0.0 dependencies: @@ -13435,7 +13435,7 @@ packages: rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_c43y4oaxxwie3ialrfuzfwwhqq tslib: 2.5.0 - typescript: 5.0.4 + typescript: 4.8.4 uglify-js: 3.17.4 transitivePeerDependencies: - supports-color diff --git a/sdk/network/arm-network/CHANGELOG.md b/sdk/network/arm-network/CHANGELOG.md index 7399f245e594..9db1b85b4b18 100644 --- a/sdk/network/arm-network/CHANGELOG.md +++ b/sdk/network/arm-network/CHANGELOG.md @@ -1,15 +1,81 @@ # Release History + +## 31.0.0 (2023-04-25) + +**Features** -## 30.2.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation group NetworkVirtualApplianceConnections + - Added operation AzureFirewalls.beginPacketCapture + - Added operation AzureFirewalls.beginPacketCaptureAndWait + - Added Interface AzureFirewallPacketCaptureFlags + - Added Interface AzureFirewallPacketCaptureRule + - Added Interface AzureFirewallsPacketCaptureHeaders + - Added Interface AzureFirewallsPacketCaptureOptionalParams + - Added Interface FirewallPacketCaptureParameters + - Added Interface FirewallPolicyHttpHeaderToInsert + - Added Interface GroupByUserSession + - Added Interface GroupByVariable + - Added Interface NetworkVirtualApplianceConnection + - Added Interface NetworkVirtualApplianceConnectionList + - Added Interface NetworkVirtualApplianceConnectionsCreateOrUpdateOptionalParams + - Added Interface NetworkVirtualApplianceConnectionsDeleteHeaders + - Added Interface NetworkVirtualApplianceConnectionsDeleteOptionalParams + - Added Interface NetworkVirtualApplianceConnectionsGetOptionalParams + - Added Interface NetworkVirtualApplianceConnectionsListNextOptionalParams + - Added Interface NetworkVirtualApplianceConnectionsListOptionalParams + - Added Interface NetworkVirtualAppliancesCreateOrUpdateHeaders + - Added Interface NetworkVirtualAppliancesDeleteHeaders + - Added Interface PolicySettingsLogScrubbing + - Added Interface PropagatedRouteTableNfv + - Added Interface RoutingConfigurationNfv + - Added Interface RoutingConfigurationNfvSubResource + - Added Interface VirtualApplianceAdditionalNicProperties + - Added Interface WebApplicationFirewallScrubbingRules + - Added Type Alias ApplicationGatewayFirewallRateLimitDuration + - Added Type Alias ApplicationGatewayFirewallUserSessionVariable + - Added Type Alias AzureFirewallPacketCaptureFlagsType + - Added Type Alias AzureFirewallsPacketCaptureResponse + - Added Type Alias NetworkInterfaceAuxiliarySku + - Added Type Alias NetworkVirtualApplianceConnectionsCreateOrUpdateResponse + - Added Type Alias NetworkVirtualApplianceConnectionsGetResponse + - Added Type Alias NetworkVirtualApplianceConnectionsListNextResponse + - Added Type Alias NetworkVirtualApplianceConnectionsListResponse + - Added Type Alias ScrubbingRuleEntryMatchOperator + - Added Type Alias ScrubbingRuleEntryMatchVariable + - Added Type Alias ScrubbingRuleEntryState + - Added Type Alias WebApplicationFirewallScrubbingState + - Interface ApplicationRule has a new optional parameter httpHeadersToInsert + - Interface BastionHost has a new optional parameter enableKerberos + - Interface NetworkInterface has a new optional parameter auxiliarySku + - Interface NetworkVirtualAppliance has a new optional parameter additionalNics + - Interface NetworkVirtualAppliance has a new optional parameter virtualApplianceConnections + - Interface PolicySettings has a new optional parameter fileUploadEnforcement + - Interface PolicySettings has a new optional parameter logScrubbing + - Interface PolicySettings has a new optional parameter requestBodyEnforcement + - Interface PolicySettings has a new optional parameter requestBodyInspectLimitInKB + - Interface PrivateEndpointConnection has a new optional parameter privateEndpointLocation + - Interface Subnet has a new optional parameter applicationGatewayIPConfigurations + - Interface VirtualApplianceNicProperties has a new optional parameter instanceName + - Interface WebApplicationFirewallCustomRule has a new optional parameter groupByUserSession + - Interface WebApplicationFirewallCustomRule has a new optional parameter rateLimitDuration + - Interface WebApplicationFirewallCustomRule has a new optional parameter rateLimitThreshold + - Added Enum KnownApplicationGatewayFirewallRateLimitDuration + - Added Enum KnownApplicationGatewayFirewallUserSessionVariable + - Added Enum KnownAzureFirewallPacketCaptureFlagsType + - Added Enum KnownNetworkInterfaceAuxiliarySku + - Added Enum KnownScrubbingRuleEntryMatchOperator + - Added Enum KnownScrubbingRuleEntryMatchVariable + - Added Enum KnownScrubbingRuleEntryState + - Added Enum KnownWebApplicationFirewallScrubbingState + - Enum KnownNetworkInterfaceAuxiliaryMode has a new value AcceleratedConnections + - Enum KnownWebApplicationFirewallRuleType has a new value RateLimitRule -### Other Changes +**Breaking Changes** + - Interface Subnet no longer has parameter applicationGatewayIpConfigurations + - Enum KnownLoadBalancerBackendAddressAdminState no longer has value Drain + + ## 30.2.0 (2023-03-07) **Features** diff --git a/sdk/network/arm-network/_meta.json b/sdk/network/arm-network/_meta.json index 4d0c13c6bbca..8f9a8bcb7ce2 100644 --- a/sdk/network/arm-network/_meta.json +++ b/sdk/network/arm-network/_meta.json @@ -1,8 +1,8 @@ { - "commit": "f6d16956a7d5b75e125a88d81d7bc9b6fecfd41a", + "commit": "db124c972d855f8f44598e15b92e527db4aacd48", "readme": "specification/network/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --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.0-rc.9 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --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.0-rc.10", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", - "use": "@autorest/typescript@6.0.0-rc.9" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", + "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/network/arm-network/package.json b/sdk/network/arm-network/package.json index 70a252721f0d..8d91816dd3cb 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": "30.2.1", + "version": "31.0.0", "engines": { "node": ">=14.0.0" }, @@ -36,7 +36,7 @@ "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~5.0.0", + "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "dotenv": "^16.0.0", @@ -111,13 +111,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 75823a6ac091..a02650511cc5 100644 --- a/sdk/network/arm-network/review/arm-network.api.md +++ b/sdk/network/arm-network/review/arm-network.api.md @@ -467,6 +467,9 @@ export interface ApplicationGatewayFirewallManifestRuleSet { // @public export type ApplicationGatewayFirewallMode = string; +// @public +export type ApplicationGatewayFirewallRateLimitDuration = string; + // @public export interface ApplicationGatewayFirewallRule { action?: ApplicationGatewayWafRuleActionTypes; @@ -492,6 +495,9 @@ export interface ApplicationGatewayFirewallRuleSet extends Resource { tiers?: ApplicationGatewayTierTypes[]; } +// @public +export type ApplicationGatewayFirewallUserSessionVariable = string; + // @public export interface ApplicationGatewayFrontendIPConfiguration extends SubResource { readonly etag?: string; @@ -1214,6 +1220,7 @@ export interface ApplicationGatewayWebApplicationFirewallConfiguration { export interface ApplicationRule extends FirewallPolicyRule { destinationAddresses?: string[]; fqdnTags?: string[]; + httpHeadersToInsert?: FirewallPolicyHttpHeaderToInsert[]; protocols?: FirewallPolicyRuleApplicationProtocol[]; ruleType: "ApplicationRule"; sourceAddresses?: string[]; @@ -1714,6 +1721,21 @@ 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; @@ -1735,6 +1757,8 @@ 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; @@ -1813,6 +1837,21 @@ 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; @@ -1938,6 +1977,7 @@ export interface BastionHost extends Resource { dnsName?: string; enableFileCopy?: boolean; enableIpConnect?: boolean; + enableKerberos?: boolean; enableShareableLink?: boolean; enableTunneling?: boolean; readonly etag?: string; @@ -4613,6 +4653,17 @@ 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>>; @@ -4725,6 +4776,12 @@ export interface FirewallPolicyFilterRuleCollectionAction { // @public export type FirewallPolicyFilterRuleCollectionActionType = string; +// @public +export interface FirewallPolicyHttpHeaderToInsert { + headerName?: string; + headerValue?: string; +} + // @public export type FirewallPolicyIdpsQuerySortOrder = string; @@ -5230,6 +5287,16 @@ export interface GetVpnSitesConfigurationRequest { vpnSites?: string[]; } +// @public +export interface GroupByUserSession { + groupByVariables: GroupByVariable[]; +} + +// @public +export interface GroupByVariable { + variableName: ApplicationGatewayFirewallUserSessionVariable; +} + // @public export type GroupConnectivity = string; @@ -5918,6 +5985,19 @@ 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", @@ -6106,6 +6186,16 @@ 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", @@ -6681,7 +6771,6 @@ export enum KnownIsWorkloadProtected { // @public export enum KnownLoadBalancerBackendAddressAdminState { Down = "Down", - Drain = "Drain", None = "None", Up = "Up" } @@ -6733,11 +6822,21 @@ 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", @@ -6993,6 +7092,28 @@ 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", @@ -7355,7 +7476,14 @@ export enum KnownWebApplicationFirewallPolicyResourceState { // @public export enum KnownWebApplicationFirewallRuleType { Invalid = "Invalid", - MatchRule = "MatchRule" + MatchRule = "MatchRule", + RateLimitRule = "RateLimitRule" +} + +// @public +export enum KnownWebApplicationFirewallScrubbingState { + Disabled = "Disabled", + Enabled = "Enabled" } // @public @@ -8374,6 +8502,7 @@ export interface NetworkIntentPolicyConfiguration { // @public export interface NetworkInterface extends Resource { auxiliaryMode?: NetworkInterfaceAuxiliaryMode; + auxiliarySku?: NetworkInterfaceAuxiliarySku; disableTcpStateTracking?: boolean; dnsSettings?: NetworkInterfaceDnsSettings; readonly dscpConfiguration?: SubResource; @@ -8407,6 +8536,9 @@ export interface NetworkInterfaceAssociation { // @public export type NetworkInterfaceAuxiliaryMode = string; +// @public +export type NetworkInterfaceAuxiliarySku = string; + // @public export interface NetworkInterfaceDnsSettings { readonly appliedDnsServers?: string[]; @@ -8934,6 +9066,8 @@ export class NetworkManagementClient extends coreClient.ServiceClient { // (undocumented) networkSecurityGroups: NetworkSecurityGroups; // (undocumented) + networkVirtualApplianceConnections: NetworkVirtualApplianceConnections; + // (undocumented) networkVirtualAppliances: NetworkVirtualAppliances; // (undocumented) networkWatchers: NetworkWatchers; @@ -9460,6 +9594,7 @@ export interface NetworkSecurityRulesEvaluationResult { // @public export interface NetworkVirtualAppliance extends Resource { + additionalNics?: VirtualApplianceAdditionalNicProperties[]; readonly addressPrefix?: string; bootStrapConfigurationBlobs?: string[]; cloudInitConfiguration?: string; @@ -9474,11 +9609,81 @@ 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; @@ -9497,6 +9702,11 @@ 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; @@ -9506,6 +9716,11 @@ 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; @@ -10326,11 +10541,6 @@ export interface PeerRoute { readonly weight?: number; } -// @public -export interface PeerRouteList { - value?: PeerRoute[]; -} - // @public export type PfsGroup = string; @@ -10338,13 +10548,23 @@ 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; @@ -10445,6 +10665,7 @@ export interface PrivateEndpointConnection extends SubResource { readonly linkIdentifier?: string; name?: string; readonly privateEndpoint?: PrivateEndpoint; + readonly privateEndpointLocation?: string; privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; readonly provisioningState?: ProvisioningState; readonly type?: string; @@ -10782,6 +11003,12 @@ export interface PropagatedRouteTable { labels?: string[]; } +// @public +export interface PropagatedRouteTableNfv { + ids?: RoutingConfigurationNfvSubResource[]; + labels?: string[]; +} + // @public export type Protocol = string; @@ -11650,6 +11877,19 @@ 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; @@ -11775,6 +12015,15 @@ 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[]; @@ -12439,7 +12688,7 @@ export interface StaticRoutesConfig { export interface Subnet extends SubResource { addressPrefix?: string; addressPrefixes?: string[]; - applicationGatewayIpConfigurations?: ApplicationGatewayIPConfiguration[]; + applicationGatewayIPConfigurations?: ApplicationGatewayIPConfiguration[]; delegations?: Delegation[]; readonly etag?: string; ipAllocations?: SubResource[]; @@ -12826,8 +13075,15 @@ 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; @@ -12998,7 +13254,9 @@ export interface VirtualHubBgpConnectionsListAdvertisedRoutesOptionalParams exte } // @public -export type VirtualHubBgpConnectionsListAdvertisedRoutesResponse = PeerRouteList; +export type VirtualHubBgpConnectionsListAdvertisedRoutesResponse = { + [propertyName: string]: PeerRoute[]; +}; // @public export interface VirtualHubBgpConnectionsListLearnedRoutesOptionalParams extends coreClient.OperationOptions { @@ -13007,7 +13265,9 @@ export interface VirtualHubBgpConnectionsListLearnedRoutesOptionalParams extends } // @public -export type VirtualHubBgpConnectionsListLearnedRoutesResponse = PeerRouteList; +export type VirtualHubBgpConnectionsListLearnedRoutesResponse = { + [propertyName: string]: PeerRoute[]; +}; // @public export interface VirtualHubBgpConnectionsListNextOptionalParams extends coreClient.OperationOptions { @@ -15294,9 +15554,12 @@ 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; } @@ -15396,6 +15659,17 @@ 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 c429ce48db4d..9e509cec1657 100644 --- a/sdk/network/arm-network/src/models/index.ts +++ b/sdk/network/arm-network/src/models/index.ts @@ -910,6 +910,22 @@ 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. */ @@ -2587,6 +2603,19 @@ 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 { + /** Customer Name for additional nic */ + name?: string; + /** Customer Intent for Public Ip on additional nic */ + hasPublicIp?: boolean; } /** Properties of the delegation. */ @@ -5415,6 +5444,40 @@ 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. */ @@ -5423,12 +5486,6 @@ 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 { /** @@ -5562,14 +5619,42 @@ 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. */ @@ -5585,10 +5670,16 @@ 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; } @@ -5615,6 +5706,18 @@ 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. */ @@ -5717,6 +5820,14 @@ 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. */ @@ -6169,6 +6280,11 @@ 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. */ @@ -6416,7 +6532,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[]; + applicationGatewayIPConfigurations?: ApplicationGatewayIPConfiguration[]; } /** Frontend IP address of the load balancer. */ @@ -7289,6 +7405,24 @@ 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. */ @@ -8545,6 +8679,29 @@ 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. */ @@ -8905,6 +9062,8 @@ 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. */ @@ -9380,6 +9539,8 @@ 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. */ @@ -9959,11 +10120,18 @@ 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. @@ -11194,6 +11362,8 @@ 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. */ @@ -11325,6 +11495,11 @@ export interface DefaultAdminRule extends BaseAdminRule { readonly provisioningState?: ProvisioningState; } +/** Defines headers for AzureFirewalls_packetCapture operation. */ +export interface AzureFirewallsPacketCaptureHeaders { + location?: string; +} + /** Defines headers for PublicIPAddresses_delete operation. */ export interface PublicIPAddressesDeleteHeaders { /** The URL of the resource used to check the status of the asynchronous operation. */ @@ -11391,6 +11566,24 @@ 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 */ @@ -11857,7 +12050,9 @@ export enum KnownNetworkInterfaceAuxiliaryMode { /** MaxConnections */ MaxConnections = "MaxConnections", /** Floating */ - Floating = "Floating" + Floating = "Floating", + /** AcceleratedConnections */ + AcceleratedConnections = "AcceleratedConnections" } /** @@ -11867,10 +12062,38 @@ export enum KnownNetworkInterfaceAuxiliaryMode { * ### Known values supported by the service * **None** \ * **MaxConnections** \ - * **Floating** + * **Floating** \ + * **AcceleratedConnections** */ 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 */ @@ -12115,9 +12338,7 @@ export enum KnownLoadBalancerBackendAddressAdminState { /** Up */ Up = "Up", /** Down */ - Down = "Down", - /** Drain */ - Drain = "Drain" + Down = "Down" } /** @@ -12127,8 +12348,7 @@ export enum KnownLoadBalancerBackendAddressAdminState { * ### Known values supported by the service * **None** \ * **Up** \ - * **Down** \ - * **Drain** + * **Down** */ export type LoadBalancerBackendAddressAdminState = string; @@ -12573,6 +12793,36 @@ 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 */ @@ -15399,6 +15649,90 @@ 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 */ @@ -15417,10 +15751,30 @@ 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" } @@ -15431,6 +15785,7 @@ 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; @@ -15552,6 +15907,27 @@ 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 */ @@ -16415,6 +16791,18 @@ 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 {} @@ -22388,6 +22776,48 @@ 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 {} @@ -22433,7 +22863,9 @@ export interface VirtualHubBgpConnectionsListLearnedRoutesOptionalParams } /** Contains response data for the listLearnedRoutes operation. */ -export type VirtualHubBgpConnectionsListLearnedRoutesResponse = PeerRouteList; +export type VirtualHubBgpConnectionsListLearnedRoutesResponse = { + [propertyName: string]: PeerRoute[]; +}; /** Optional parameters. */ export interface VirtualHubBgpConnectionsListAdvertisedRoutesOptionalParams @@ -22445,7 +22877,9 @@ export interface VirtualHubBgpConnectionsListAdvertisedRoutesOptionalParams } /** Contains response data for the listAdvertisedRoutes operation. */ -export type VirtualHubBgpConnectionsListAdvertisedRoutesResponse = PeerRouteList; +export type VirtualHubBgpConnectionsListAdvertisedRoutesResponse = { + [propertyName: string]: PeerRoute[]; +}; /** 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 d71086cd73c3..d3926ac14eaa 100644 --- a/sdk/network/arm-network/src/models/mappers.ts +++ b/sdk/network/arm-network/src/models/mappers.ts @@ -2601,6 +2601,63 @@ 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", @@ -7348,6 +7405,34 @@ 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" + } } } } @@ -15278,10 +15363,94 @@ export const ExpressRouteConnectionList: coreClient.CompositeMapper = { } }; -export const ListVirtualHubBgpConnectionResults: coreClient.CompositeMapper = { +export const RoutingConfigurationNfv: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListVirtualHubBgpConnectionResults", + className: "RoutingConfigurationNfv", + modelProperties: { + associatedRouteTable: { + serializedName: "associatedRouteTable", + type: { + name: "Composite", + className: "RoutingConfigurationNfvSubResource" + } + }, + propagatedRouteTables: { + serializedName: "propagatedRouteTables", + type: { + name: "Composite", + className: "PropagatedRouteTableNfv" + } + }, + inboundRouteMap: { + serializedName: "inboundRouteMap", + type: { + name: "Composite", + className: "RoutingConfigurationNfvSubResource" + } + }, + outboundRouteMap: { + serializedName: "outboundRouteMap", + type: { + name: "Composite", + className: "RoutingConfigurationNfvSubResource" + } + } + } + } +}; + +export const RoutingConfigurationNfvSubResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoutingConfigurationNfvSubResource", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + type: { + name: "String" + } + } + } + } +}; + +export const PropagatedRouteTableNfv: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PropagatedRouteTableNfv", + modelProperties: { + labels: { + serializedName: "labels", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + ids: { + serializedName: "ids", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoutingConfigurationNfvSubResource" + } + } + } + } + } + } +}; + +export const NetworkVirtualApplianceConnectionList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkVirtualApplianceConnectionList", modelProperties: { value: { serializedName: "value", @@ -15290,7 +15459,7 @@ export const ListVirtualHubBgpConnectionResults: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BgpConnection" + className: "NetworkVirtualApplianceConnection" } } } @@ -15305,10 +15474,10 @@ export const ListVirtualHubBgpConnectionResults: coreClient.CompositeMapper = { } }; -export const PeerRouteList: coreClient.CompositeMapper = { +export const ListVirtualHubBgpConnectionResults: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PeerRouteList", + className: "ListVirtualHubBgpConnectionResults", modelProperties: { value: { serializedName: "value", @@ -15317,10 +15486,16 @@ export const PeerRouteList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PeerRoute" + className: "BgpConnection" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } @@ -15664,6 +15839,19 @@ 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 @@ -15673,6 +15861,13 @@ export const PolicySettings: coreClient.CompositeMapper = { name: "Number" } }, + fileUploadEnforcement: { + defaultValue: true, + serializedName: "fileUploadEnforcement", + type: { + name: "Boolean" + } + }, fileUploadLimitInMb: { constraints: { InclusiveMinimum: 0 @@ -15702,6 +15897,75 @@ 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" + } } } } @@ -15741,6 +16005,18 @@ export const WebApplicationFirewallCustomRule: coreClient.CompositeMapper = { name: "String" } }, + rateLimitDuration: { + serializedName: "rateLimitDuration", + type: { + name: "String" + } + }, + rateLimitThreshold: { + serializedName: "rateLimitThreshold", + type: { + name: "Number" + } + }, ruleType: { serializedName: "ruleType", required: true, @@ -15761,6 +16037,18 @@ export const WebApplicationFirewallCustomRule: coreClient.CompositeMapper = { } } }, + groupByUserSession: { + serializedName: "groupByUserSession", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GroupByUserSession" + } + } + } + }, action: { serializedName: "action", required: true, @@ -15821,7 +16109,51 @@ export const MatchCondition: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" + name: "String" + } + } + } + } + } + } +}; + +export const MatchVariable: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MatchVariable", + modelProperties: { + variableName: { + serializedName: "variableName", + required: true, + type: { + name: "String" + } + }, + selector: { + serializedName: "selector", + type: { + name: "String" + } + } + } + } +}; + +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" } } } @@ -15830,10 +16162,10 @@ export const MatchCondition: coreClient.CompositeMapper = { } }; -export const MatchVariable: coreClient.CompositeMapper = { +export const GroupByVariable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MatchVariable", + className: "GroupByVariable", modelProperties: { variableName: { serializedName: "variableName", @@ -15841,12 +16173,6 @@ export const MatchVariable: coreClient.CompositeMapper = { type: { name: "String" } - }, - selector: { - serializedName: "selector", - type: { - name: "String" - } } } } @@ -16186,6 +16512,27 @@ export const FirewallPolicyRuleApplicationProtocol: coreClient.CompositeMapper = } }; +export const FirewallPolicyHttpHeaderToInsert: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FirewallPolicyHttpHeaderToInsert", + modelProperties: { + headerName: { + serializedName: "headerName", + type: { + name: "String" + } + }, + headerValue: { + serializedName: "headerValue", + type: { + name: "String" + } + } + } + } +}; + export const AzureAsyncOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -17213,6 +17560,13 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "String" } + }, + privateEndpointLocation: { + serializedName: "properties.privateEndpointLocation", + readOnly: true, + type: { + name: "String" + } } } } @@ -17810,8 +18164,8 @@ export const Subnet: coreClient.CompositeMapper = { name: "String" } }, - applicationGatewayIpConfigurations: { - serializedName: "properties.applicationGatewayIpConfigurations", + applicationGatewayIPConfigurations: { + serializedName: "properties.applicationGatewayIPConfigurations", type: { name: "Sequence", element: { @@ -19978,6 +20332,78 @@ 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", @@ -22883,6 +23309,79 @@ export const ExpressRouteConnection: coreClient.CompositeMapper = { } }; +export const NetworkVirtualApplianceConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkVirtualApplianceConnection", + modelProperties: { + ...SubResource.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + namePropertiesName: { + serializedName: "properties.name", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + asn: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "properties.asn", + type: { + name: "Number" + } + }, + tunnelIdentifier: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "properties.tunnelIdentifier", + type: { + name: "Number" + } + }, + bgpPeerAddress: { + serializedName: "properties.bgpPeerAddress", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + enableInternetSecurity: { + serializedName: "properties.enableInternetSecurity", + type: { + name: "Boolean" + } + }, + routingConfiguration: { + serializedName: "properties.routingConfiguration", + type: { + name: "Composite", + className: "RoutingConfigurationNfv" + } + } + } + } +}; + export const BgpConnection: coreClient.CompositeMapper = { type: { name: "Composite", @@ -23725,6 +24224,12 @@ export const NetworkInterface: coreClient.CompositeMapper = { type: { name: "String" } + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String" + } } } } @@ -25112,6 +25617,13 @@ export const BastionHost: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + enableKerberos: { + defaultValue: false, + serializedName: "properties.enableKerberos", + type: { + name: "Boolean" + } } } } @@ -26537,6 +27049,18 @@ export const NetworkVirtualAppliance: coreClient.CompositeMapper = { } } }, + additionalNics: { + serializedName: "properties.additionalNics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualApplianceAdditionalNicProperties" + } + } + } + }, virtualApplianceSites: { serializedName: "properties.virtualApplianceSites", readOnly: true, @@ -26550,6 +27074,19 @@ 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, @@ -29708,6 +30245,18 @@ export const ApplicationRule: coreClient.CompositeMapper = { } } } + }, + httpHeadersToInsert: { + serializedName: "httpHeadersToInsert", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FirewallPolicyHttpHeaderToInsert" + } + } + } } } } @@ -30100,6 +30649,21 @@ export const DefaultAdminRule: coreClient.CompositeMapper = { } }; +export const AzureFirewallsPacketCaptureHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureFirewallsPacketCaptureHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + export const PublicIPAddressesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", @@ -30265,6 +30829,51 @@ 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 d4d3f9079c2b..1684aa0207e6 100644 --- a/sdk/network/arm-network/src/models/parameters.ts +++ b/sdk/network/arm-network/src/models/parameters.ts @@ -18,6 +18,7 @@ import { ApplicationGatewayPrivateEndpointConnection as ApplicationGatewayPrivateEndpointConnectionMapper, ApplicationSecurityGroup as ApplicationSecurityGroupMapper, AzureFirewall as AzureFirewallMapper, + FirewallPacketCaptureParameters as FirewallPacketCaptureParametersMapper, BastionHost as BastionHostMapper, BastionShareableLinkListRequest as BastionShareableLinkListRequestMapper, SessionIds as SessionIdsMapper, @@ -145,6 +146,7 @@ import { VirtualHubRouteTableV2 as VirtualHubRouteTableV2Mapper, ExpressRouteGateway as ExpressRouteGatewayMapper, ExpressRouteConnection as ExpressRouteConnectionMapper, + NetworkVirtualApplianceConnection as NetworkVirtualApplianceConnectionMapper, BgpConnection as BgpConnectionMapper, HubIpConfiguration as HubIpConfigurationMapper, HubRouteTable as HubRouteTableMapper, @@ -201,7 +203,7 @@ export const applicationGatewayName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-09-01", + defaultValue: "2022-11-01", isConstant: true, serializedName: "api-version", type: { @@ -355,6 +357,27 @@ 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: { @@ -377,7 +400,7 @@ export const bastionHostName: OperationURLParameter = { } }; -export const parameters5: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", mapper: BastionHostMapper }; @@ -414,7 +437,7 @@ export const providerport: OperationURLParameter = { } }; -export const parameters6: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", mapper: ActiveConfigurationParameterMapper }; @@ -444,7 +467,7 @@ export const top: OperationQueryParameter = { } }; -export const parameters7: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: QueryRequestOptionsMapper }; @@ -509,7 +532,7 @@ export const networkInterfaceName: OperationURLParameter = { } }; -export const parameters8: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: NetworkInterfaceMapper }; @@ -570,7 +593,7 @@ export const publicIpAddressName: OperationURLParameter = { } }; -export const parameters9: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", mapper: PublicIPAddressMapper }; @@ -609,7 +632,7 @@ export const singletonResource: OperationURLParameter = { } }; -export const parameters10: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: SwapResourceMapper }; @@ -625,7 +648,7 @@ export const customIpPrefixName: OperationURLParameter = { } }; -export const parameters11: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: CustomIpPrefixMapper }; @@ -641,7 +664,7 @@ export const ddosCustomPolicyName: OperationURLParameter = { } }; -export const parameters12: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", mapper: DdosCustomPolicyMapper }; @@ -657,12 +680,12 @@ export const ddosProtectionPlanName: OperationURLParameter = { } }; -export const parameters13: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", mapper: DdosProtectionPlanMapper }; -export const parameters14: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", mapper: DscpConfigurationMapper }; @@ -726,7 +749,7 @@ export const expressRouteCircuitConnectionParameters: OperationParameter = { mapper: ExpressRouteCircuitConnectionMapper }; -export const parameters15: OperationParameter = { +export const parameters16: OperationParameter = { parameterPath: "parameters", mapper: ExpressRouteCircuitMapper }; @@ -753,7 +776,7 @@ export const crossConnectionName: OperationURLParameter = { } }; -export const parameters16: OperationParameter = { +export const parameters17: OperationParameter = { parameterPath: "parameters", mapper: ExpressRouteCrossConnectionMapper }; @@ -790,7 +813,7 @@ export const expressRoutePortName: OperationURLParameter = { } }; -export const parameters17: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", mapper: ExpressRoutePortMapper }; @@ -837,7 +860,7 @@ export const firewallPolicyName: OperationURLParameter = { } }; -export const parameters18: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", mapper: FirewallPolicyMapper }; @@ -853,22 +876,22 @@ export const ruleCollectionGroupName: OperationURLParameter = { } }; -export const parameters19: OperationParameter = { +export const parameters20: OperationParameter = { parameterPath: "parameters", mapper: FirewallPolicyRuleCollectionGroupMapper }; -export const parameters20: OperationParameter = { +export const parameters21: OperationParameter = { parameterPath: "parameters", mapper: IdpsQueryObjectMapper }; -export const parameters21: OperationParameter = { +export const parameters22: OperationParameter = { parameterPath: "parameters", mapper: SignaturesOverridesMapper }; -export const parameters22: OperationParameter = { +export const parameters23: OperationParameter = { parameterPath: "parameters", mapper: SignatureOverridesFilterValuesQueryMapper }; @@ -884,7 +907,7 @@ export const ipAllocationName: OperationURLParameter = { } }; -export const parameters23: OperationParameter = { +export const parameters24: OperationParameter = { parameterPath: "parameters", mapper: IpAllocationMapper }; @@ -900,7 +923,7 @@ export const ipGroupsName: OperationURLParameter = { } }; -export const parameters24: OperationParameter = { +export const parameters25: OperationParameter = { parameterPath: "parameters", mapper: IpGroupMapper }; @@ -916,17 +939,17 @@ export const loadBalancerName: OperationURLParameter = { } }; -export const parameters25: OperationParameter = { +export const parameters26: OperationParameter = { parameterPath: "parameters", mapper: LoadBalancerMapper }; -export const parameters26: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", mapper: LoadBalancerVipSwapRequestMapper }; -export const parameters27: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: "parameters", mapper: QueryInboundNatRulePortMappingRequestMapper }; @@ -953,7 +976,7 @@ export const backendAddressPoolName: OperationURLParameter = { } }; -export const parameters28: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: "parameters", mapper: BackendAddressPoolMapper }; @@ -1029,7 +1052,7 @@ export const natGatewayName: OperationURLParameter = { } }; -export const parameters29: OperationParameter = { +export const parameters30: OperationParameter = { parameterPath: "parameters", mapper: NatGatewayMapper }; @@ -1050,7 +1073,7 @@ export const tapConfigurationParameters: OperationParameter = { mapper: NetworkInterfaceTapConfigurationMapper }; -export const parameters30: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerMapper }; @@ -1065,7 +1088,7 @@ export const force: OperationQueryParameter = { } }; -export const parameters31: OperationParameter = { +export const parameters32: OperationParameter = { parameterPath: "parameters", mapper: PatchObjectMapper }; @@ -1080,17 +1103,17 @@ export const skipToken: OperationQueryParameter = { } }; -export const parameters32: OperationParameter = { +export const parameters33: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerCommitMapper }; -export const parameters33: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerDeploymentStatusParameterMapper }; -export const parameters34: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerConnectionMapper }; @@ -1144,7 +1167,7 @@ export const networkGroupName: OperationURLParameter = { } }; -export const parameters35: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", mapper: NetworkGroupMapper }; @@ -1170,12 +1193,12 @@ export const staticMemberName: OperationURLParameter = { } }; -export const parameters36: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: "parameters", mapper: StaticMemberMapper }; -export const parameters37: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", mapper: ScopeConnectionMapper }; @@ -1239,7 +1262,7 @@ export const networkProfileName: OperationURLParameter = { } }; -export const parameters38: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: "parameters", mapper: NetworkProfileMapper }; @@ -1255,7 +1278,7 @@ export const networkSecurityGroupName: OperationURLParameter = { } }; -export const parameters39: OperationParameter = { +export const parameters40: OperationParameter = { parameterPath: "parameters", mapper: NetworkSecurityGroupMapper }; @@ -1298,7 +1321,7 @@ export const networkVirtualApplianceName: OperationURLParameter = { } }; -export const parameters40: OperationParameter = { +export const parameters41: OperationParameter = { parameterPath: "parameters", mapper: NetworkVirtualApplianceMapper }; @@ -1314,7 +1337,7 @@ export const siteName: OperationURLParameter = { } }; -export const parameters41: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: "parameters", mapper: VirtualApplianceSiteMapper }; @@ -1330,12 +1353,12 @@ export const skuName: OperationURLParameter = { } }; -export const parameters42: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", mapper: InboundSecurityRuleMapper }; -export const parameters43: OperationParameter = { +export const parameters44: OperationParameter = { parameterPath: "parameters", mapper: NetworkWatcherMapper }; @@ -1351,67 +1374,67 @@ export const networkWatcherName: OperationURLParameter = { } }; -export const parameters44: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", mapper: TopologyParametersMapper }; -export const parameters45: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", mapper: VerificationIPFlowParametersMapper }; -export const parameters46: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", mapper: NextHopParametersMapper }; -export const parameters47: OperationParameter = { +export const parameters48: OperationParameter = { parameterPath: "parameters", mapper: SecurityGroupViewParametersMapper }; -export const parameters48: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", mapper: TroubleshootingParametersMapper }; -export const parameters49: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: "parameters", mapper: QueryTroubleshootingParametersMapper }; -export const parameters50: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", mapper: FlowLogInformationMapper }; -export const parameters51: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", mapper: FlowLogStatusParametersMapper }; -export const parameters52: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", mapper: ConnectivityParametersMapper }; -export const parameters53: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: AzureReachabilityReportParametersMapper }; -export const parameters54: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", mapper: AvailableProvidersListParametersMapper }; -export const parameters55: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", mapper: NetworkConfigurationDiagnosticParametersMapper }; -export const parameters56: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", mapper: PacketCaptureMapper }; @@ -1427,7 +1450,7 @@ export const packetCaptureName: OperationURLParameter = { } }; -export const parameters57: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", mapper: ConnectionMonitorMapper }; @@ -1453,7 +1476,7 @@ export const migrate: OperationQueryParameter = { } }; -export const parameters58: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", mapper: FlowLogMapper }; @@ -1480,7 +1503,7 @@ export const privateEndpointName: OperationURLParameter = { } }; -export const parameters59: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointMapper }; @@ -1496,7 +1519,7 @@ export const privateDnsZoneGroupName: OperationURLParameter = { } }; -export const parameters60: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", mapper: PrivateDnsZoneGroupMapper }; @@ -1512,7 +1535,7 @@ export const serviceName: OperationURLParameter = { } }; -export const parameters61: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", mapper: PrivateLinkServiceMapper }; @@ -1528,12 +1551,12 @@ export const peConnectionName: OperationURLParameter = { } }; -export const parameters62: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointConnectionMapper }; -export const parameters63: OperationParameter = { +export const parameters64: OperationParameter = { parameterPath: "parameters", mapper: CheckPrivateLinkServiceVisibilityRequestMapper }; @@ -1549,7 +1572,7 @@ export const publicIpPrefixName: OperationURLParameter = { } }; -export const parameters64: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: PublicIPPrefixMapper }; @@ -1586,7 +1609,7 @@ export const routeTableName: OperationURLParameter = { } }; -export const parameters65: OperationParameter = { +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: RouteTableMapper }; @@ -1618,7 +1641,7 @@ export const securityPartnerProviderName: OperationURLParameter = { } }; -export const parameters66: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", mapper: SecurityPartnerProviderMapper }; @@ -1634,7 +1657,7 @@ export const serviceEndpointPolicyName: OperationURLParameter = { } }; -export const parameters67: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", mapper: ServiceEndpointPolicyMapper }; @@ -1689,7 +1712,7 @@ export const location1: OperationURLParameter = { } }; -export const parameters68: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkMapper }; @@ -1777,7 +1800,7 @@ export const syncRemoteAddressSpace: OperationQueryParameter = { } }; -export const parameters69: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkGatewayMapper }; @@ -1803,7 +1826,7 @@ export const gatewayVip: OperationQueryParameter = { } }; -export const parameters70: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", mapper: VpnClientParametersMapper }; @@ -1834,7 +1857,7 @@ export const vpnclientIpsecParams: OperationParameter = { mapper: VpnClientIPsecParametersMapper }; -export const parameters71: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", mapper: VpnDeviceScriptParametersMapper }; @@ -1850,12 +1873,12 @@ export const virtualNetworkGatewayConnectionName: OperationURLParameter = { } }; -export const parameters72: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnPacketCaptureStartParametersMapper }; -export const parameters73: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: "parameters", mapper: VpnPacketCaptureStopParametersMapper }; @@ -1865,22 +1888,22 @@ export const request1: OperationParameter = { mapper: P2SVpnConnectionRequestMapper }; -export const parameters74: OperationParameter = { +export const parameters75: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkGatewayConnectionMapper }; -export const parameters75: OperationParameter = { +export const parameters76: OperationParameter = { parameterPath: "parameters", mapper: ConnectionSharedKeyMapper }; -export const parameters76: OperationParameter = { +export const parameters77: OperationParameter = { parameterPath: "parameters", mapper: ConnectionResetSharedKeyMapper }; -export const parameters77: OperationParameter = { +export const parameters78: OperationParameter = { parameterPath: "parameters", mapper: LocalNetworkGatewayMapper }; @@ -1926,7 +1949,7 @@ export const tapName: OperationURLParameter = { } }; -export const parameters78: OperationParameter = { +export const parameters79: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkTapMapper }; @@ -1947,12 +1970,12 @@ export const virtualRouterName: OperationURLParameter = { } }; -export const parameters79: OperationParameter = { +export const parameters80: OperationParameter = { parameterPath: "parameters", mapper: VirtualRouterMapper }; -export const parameters80: OperationParameter = { +export const parameters81: OperationParameter = { parameterPath: "parameters", mapper: VirtualRouterPeeringMapper }; @@ -2140,12 +2163,12 @@ export const ipConfigurationId: OperationQueryParameter = { } }; -export const parameters81: OperationParameter = { +export const parameters82: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnGatewayPacketCaptureStartParametersMapper }; -export const parameters82: OperationParameter = { +export const parameters83: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnGatewayPacketCaptureStopParametersMapper }; @@ -2166,7 +2189,7 @@ export const vpnConnectionParameters: OperationParameter = { mapper: VpnConnectionMapper }; -export const parameters83: OperationParameter = { +export const parameters84: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnConnectionPacketCaptureStartParametersMapper }; @@ -2182,7 +2205,7 @@ export const vpnConnectionName: OperationURLParameter = { } }; -export const parameters84: OperationParameter = { +export const parameters85: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnConnectionPacketCaptureStopParametersMapper }; @@ -2202,7 +2225,7 @@ export const p2SVpnGatewayParameters1: OperationParameter = { mapper: TagsObjectMapper }; -export const parameters85: OperationParameter = { +export const parameters86: OperationParameter = { parameterPath: "parameters", mapper: P2SVpnProfileParametersMapper }; @@ -2254,7 +2277,40 @@ export const putExpressRouteConnectionParameters: OperationParameter = { mapper: ExpressRouteConnectionMapper }; -export const parameters86: OperationParameter = { +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 parameters87: OperationParameter = { parameterPath: "parameters", mapper: BgpConnectionMapper }; @@ -2281,7 +2337,7 @@ export const ipConfigName: OperationURLParameter = { } }; -export const parameters87: OperationParameter = { +export const parameters88: OperationParameter = { parameterPath: "parameters", mapper: HubIpConfigurationMapper }; @@ -2321,7 +2377,7 @@ export const policyName: OperationURLParameter = { } }; -export const parameters88: OperationParameter = { +export const parameters89: OperationParameter = { parameterPath: "parameters", mapper: WebApplicationFirewallPolicyMapper }; diff --git a/sdk/network/arm-network/src/networkManagementClient.ts b/sdk/network/arm-network/src/networkManagementClient.ts index 73bea4a77274..332cab0d01a5 100644 --- a/sdk/network/arm-network/src/networkManagementClient.ts +++ b/sdk/network/arm-network/src/networkManagementClient.ts @@ -143,6 +143,7 @@ import { VirtualHubRouteTableV2SImpl, ExpressRouteGatewaysImpl, ExpressRouteConnectionsImpl, + NetworkVirtualApplianceConnectionsImpl, VirtualHubBgpConnectionImpl, VirtualHubBgpConnectionsImpl, VirtualHubIpConfigurationImpl, @@ -276,6 +277,7 @@ import { VirtualHubRouteTableV2S, ExpressRouteGateways, ExpressRouteConnections, + NetworkVirtualApplianceConnections, VirtualHubBgpConnection, VirtualHubBgpConnections, VirtualHubIpConfiguration, @@ -363,7 +365,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-network/30.2.1`; + const packageDetails = `azsdk-js-arm-network/31.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -617,6 +619,9 @@ 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); @@ -1702,6 +1707,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { virtualHubRouteTableV2S: VirtualHubRouteTableV2S; expressRouteGateways: ExpressRouteGateways; expressRouteConnections: ExpressRouteConnections; + networkVirtualApplianceConnections: NetworkVirtualApplianceConnections; virtualHubBgpConnection: VirtualHubBgpConnection; virtualHubBgpConnections: VirtualHubBgpConnections; virtualHubIpConfiguration: VirtualHubIpConfiguration; @@ -1903,7 +1909,7 @@ const listActiveConnectivityConfigurationsOperationSpec: coreClient.OperationSpe bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, @@ -1927,7 +1933,7 @@ const listActiveSecurityAdminRulesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters6, + requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, @@ -1952,7 +1958,7 @@ const listNetworkManagerEffectiveConnectivityConfigurationsOperationSpec: coreCl bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, @@ -1976,7 +1982,7 @@ const listNetworkManagerEffectiveSecurityAdminRulesOperationSpec: coreClient.Ope bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters8, 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 09fe867b63be..45cf1bdc3b4b 100644 --- a/sdk/network/arm-network/src/operations/azureFirewalls.ts +++ b/sdk/network/arm-network/src/operations/azureFirewalls.ts @@ -37,6 +37,9 @@ import { AzureFirewallsUpdateTagsResponse, AzureFirewallsListLearnedPrefixesOptionalParams, AzureFirewallsListLearnedPrefixesResponse, + FirewallPacketCaptureParameters, + AzureFirewallsPacketCaptureOptionalParams, + AzureFirewallsPacketCaptureResponse, AzureFirewallsListNextResponse, AzureFirewallsListAllNextResponse } from "../models"; @@ -578,6 +581,102 @@ 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. @@ -793,6 +892,39 @@ 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 0dedeb98b331..6a2aaeec26dd 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.parameters5, + requestBody: Parameters.parameters6, 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 58dfaf5abf6f..e3471a24a39e 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.parameters57, + requestBody: Parameters.parameters58, 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 d8c719d868b6..ca82a49ff5ca 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.parameters11, + requestBody: Parameters.parameters12, 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 698ea880a31b..b7158bfc902f 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.parameters12, + requestBody: Parameters.parameters13, 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 785863b1c754..3badfb256575 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.parameters13, + requestBody: Parameters.parameters14, 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 f28d8c1fdbc9..5f25c930ea09 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.parameters14, + requestBody: Parameters.parameters15, 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 ca5409078bbe..682919b24ccc 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.parameters15, + requestBody: Parameters.parameters16, 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 d824b2cc641d..1abf50a10ba2 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.parameters16, + requestBody: Parameters.parameters17, 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 d9fa8fe7fec4..d1a91ceafd08 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.parameters17, + requestBody: Parameters.parameters18, 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 2054bbdf2191..c91cfd0b1c1a 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.parameters18, + requestBody: Parameters.parameters19, 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 7e777b48e2bf..80a78a7a78b8 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.parameters20, + requestBody: Parameters.parameters21, 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 af2d63b6005a..879343b494d9 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.parameters22, + requestBody: Parameters.parameters23, 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 04544c7215d2..42dc66070ad7 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.parameters21, + requestBody: Parameters.parameters22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -147,7 +147,7 @@ const putOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters22, 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 43b7e27c883d..5b1b2b7df06e 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.parameters19, + requestBody: Parameters.parameters20, 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 3860b7f32dbd..11feb8cb8849 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.parameters58, + requestBody: Parameters.parameters59, 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 8f521903fcb5..cde2be9b870c 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.parameters42, + requestBody: Parameters.parameters43, 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 a666d0b45a47..298c7c04491e 100644 --- a/sdk/network/arm-network/src/operations/index.ts +++ b/sdk/network/arm-network/src/operations/index.ts @@ -131,6 +131,7 @@ 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 90024c9a50ba..de769f8edfb4 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.parameters23, + requestBody: Parameters.parameters24, 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 13e0766886b9..f5ccc3e276a0 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.parameters24, + requestBody: Parameters.parameters25, 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 71e7074f3520..f8a2cfe2e21a 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.parameters28, + requestBody: Parameters.parameters29, 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 13eae7e2afc8..aa7d5ecc5fe2 100644 --- a/sdk/network/arm-network/src/operations/loadBalancers.ts +++ b/sdk/network/arm-network/src/operations/loadBalancers.ts @@ -704,7 +704,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -791,7 +791,7 @@ const swapPublicIpAddressesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -823,7 +823,7 @@ const listInboundNatRulePortMappingsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/localNetworkGateways.ts b/sdk/network/arm-network/src/operations/localNetworkGateways.ts index 39ef19e96845..b707e6040e0e 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.parameters77, + requestBody: Parameters.parameters78, 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 5e7d95f3f825..08ec5bd3a005 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.parameters34, + requestBody: Parameters.parameters35, 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 e0b5ee71b22f..a12a948f5d8f 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.parameters29, + requestBody: Parameters.parameters30, 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 7fd2a57920ee..c6aa5da29b7e 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.parameters35, + requestBody: Parameters.parameters36, 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 0363905a6786..63f56efc1eb1 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.parameters8, + requestBody: Parameters.parameters9, 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 3ef528b7094a..e8e888c3fd50 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.parameters32, + requestBody: Parameters.parameters33, 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 7796b576677d..714819e8dad2 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.parameters33, + requestBody: Parameters.parameters34, 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 10dcaa622676..dfd4f26b1874 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.parameters30, + requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -453,7 +453,7 @@ const patchOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters32, 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 b15e796fa9c0..0063be1a0136 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.parameters38, + requestBody: Parameters.parameters39, 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 ea5d56c9e48c..b2becb503825 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.parameters39, + requestBody: Parameters.parameters40, 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 new file mode 100644 index 000000000000..9aba36a03ec3 --- /dev/null +++ b/sdk/network/arm-network/src/operations/networkVirtualApplianceConnections.ts @@ -0,0 +1,523 @@ +/* + * 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 3a72caeed9a8..a088f54f67f5 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.parameters40, + requestBody: Parameters.parameters41, 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 96f4ecc1f965..4400cec01654 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.parameters43, + requestBody: Parameters.parameters44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1572,7 +1572,7 @@ const getTopologyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters44, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1605,7 +1605,7 @@ const verifyIPFlowOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters45, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1638,7 +1638,7 @@ const getNextHopOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters46, + requestBody: Parameters.parameters47, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1671,7 +1671,7 @@ const getVMSecurityRulesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters47, + requestBody: Parameters.parameters48, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1704,7 +1704,7 @@ const getTroubleshootingOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters49, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1737,7 +1737,7 @@ const getTroubleshootingResultOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters50, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1770,7 +1770,7 @@ const setFlowLogConfigurationOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters51, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1803,7 +1803,7 @@ const getFlowLogStatusOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters52, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1836,7 +1836,7 @@ const checkConnectivityOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters52, + requestBody: Parameters.parameters53, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1869,7 +1869,7 @@ const getAzureReachabilityReportOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters53, + requestBody: Parameters.parameters54, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1902,7 +1902,7 @@ const listAvailableProvidersOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters55, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1935,7 +1935,7 @@ const getNetworkConfigurationDiagnosticOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters55, + requestBody: Parameters.parameters56, 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 ba083c0bbb54..d1dbf66a6461 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.parameters85, + requestBody: Parameters.parameters86, 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 2cdec651dcc0..5891edfbf593 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.parameters56, + requestBody: Parameters.parameters57, 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 f233ab161074..2807cc951e19 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.parameters60, + requestBody: Parameters.parameters61, 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 c90a9990c93a..39dd889edb57 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.parameters59, + requestBody: Parameters.parameters60, 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 0c00998b7d00..7a45505a5092 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.parameters61, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1285,7 +1285,7 @@ const updatePrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1365,7 +1365,7 @@ const checkPrivateLinkServiceVisibilityOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters63, + requestBody: Parameters.parameters64, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1397,7 +1397,7 @@ const checkPrivateLinkServiceVisibilityByResourceGroupOperationSpec: coreClient. bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters63, + requestBody: Parameters.parameters64, 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 81b411779fa2..05a27c7924b2 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.parameters9, + requestBody: Parameters.parameters10, 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 c6235abefe96..c6e71a32d7d1 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.parameters64, + requestBody: Parameters.parameters65, 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 ec818a1aefa4..cee23eaa97f4 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.parameters65, + requestBody: Parameters.parameters66, 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 e0e5fba8c394..a5a23b9446fe 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.parameters37, + requestBody: Parameters.parameters38, 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 e745b07cfd8b..eb8972fa2aa5 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.parameters66, + requestBody: Parameters.parameters67, 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 31f1c4c5bf30..a0a570f78c7b 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.parameters67, + requestBody: Parameters.parameters68, 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 447573f99169..b67a9bd34465 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.parameters36, + requestBody: Parameters.parameters37, 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 5a756b5e897d..5bd576a55f5c 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.parameters34, + requestBody: Parameters.parameters35, 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 d47ff77ae153..5a82df902333 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.parameters10, + requestBody: Parameters.parameters11, 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 8d7b60333ec5..e282b4ecec3b 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.parameters41, + requestBody: Parameters.parameters42, 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 b9f5bf3b9997..2662b778efcb 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.parameters86, + requestBody: Parameters.parameters87, 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 2392b4e064bd..9a364cf5270b 100644 --- a/sdk/network/arm-network/src/operations/virtualHubBgpConnections.ts +++ b/sdk/network/arm-network/src/operations/virtualHubBgpConnections.ts @@ -379,16 +379,56 @@ const listLearnedRoutesOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.PeerRouteList + bodyMapper: { + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { type: { name: "Composite", className: "PeerRoute" } } + } + } + } + } }, 201: { - bodyMapper: Mappers.PeerRouteList + bodyMapper: { + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { type: { name: "Composite", className: "PeerRoute" } } + } + } + } + } }, 202: { - bodyMapper: Mappers.PeerRouteList + bodyMapper: { + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { type: { name: "Composite", className: "PeerRoute" } } + } + } + } + } }, 204: { - bodyMapper: Mappers.PeerRouteList + bodyMapper: { + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { type: { name: "Composite", className: "PeerRoute" } } + } + } + } + } }, default: { bodyMapper: Mappers.CloudError @@ -411,16 +451,56 @@ const listAdvertisedRoutesOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.PeerRouteList + bodyMapper: { + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { type: { name: "Composite", className: "PeerRoute" } } + } + } + } + } }, 201: { - bodyMapper: Mappers.PeerRouteList + bodyMapper: { + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { type: { name: "Composite", className: "PeerRoute" } } + } + } + } + } }, 202: { - bodyMapper: Mappers.PeerRouteList + bodyMapper: { + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { type: { name: "Composite", className: "PeerRoute" } } + } + } + } + } }, 204: { - bodyMapper: Mappers.PeerRouteList + bodyMapper: { + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { type: { name: "Composite", className: "PeerRoute" } } + } + } + } + } }, 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 cdb947b1c249..519070619fad 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.parameters87, + requestBody: Parameters.parameters88, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts b/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts index 624eb9838421..71040efa8659 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.parameters74, + requestBody: Parameters.parameters75, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1206,7 +1206,7 @@ const setSharedKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters75, + requestBody: Parameters.parameters76, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1282,7 +1282,7 @@ const resetSharedKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters76, + requestBody: Parameters.parameters77, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1315,7 +1315,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters72, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1348,7 +1348,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters73, + requestBody: Parameters.parameters74, 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 ace5d0853149..e5b8d5b83b55 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.parameters69, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2214,7 +2214,7 @@ const generatevpnclientpackageOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters70, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2247,7 +2247,7 @@ const generateVpnProfileOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters70, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2481,7 +2481,7 @@ const vpnDeviceConfigurationScriptOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2514,7 +2514,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters72, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2547,7 +2547,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters73, + requestBody: Parameters.parameters74, 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 4fbcb172e547..98e05f30021d 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.parameters78, + requestBody: Parameters.parameters79, 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 02a39d3c19e0..24d626b5fcc9 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.parameters68, + requestBody: Parameters.parameters69, 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 219caae3313c..5c7eb95b4fa0 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.parameters80, + requestBody: Parameters.parameters81, 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 65524109bf1e..2f819b022fd7 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.parameters79, + requestBody: Parameters.parameters80, 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 66532d456b7b..fae53be77e1a 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.parameters83, + requestBody: Parameters.parameters84, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -716,7 +716,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters84, + requestBody: Parameters.parameters85, 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 4763a7add568..c46310de75a5 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.parameters81, + requestBody: Parameters.parameters82, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1002,7 +1002,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters82, + requestBody: Parameters.parameters83, 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 07dab78e7901..76bbf54e810b 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.parameters88, + requestBody: Parameters.parameters89, 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 4952d41ed57b..3c270388fa33 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/azureFirewalls.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/azureFirewalls.ts @@ -21,7 +21,10 @@ import { AzureFirewallsUpdateTagsOptionalParams, AzureFirewallsUpdateTagsResponse, AzureFirewallsListLearnedPrefixesOptionalParams, - AzureFirewallsListLearnedPrefixesResponse + AzureFirewallsListLearnedPrefixesResponse, + FirewallPacketCaptureParameters, + AzureFirewallsPacketCaptureOptionalParams, + AzureFirewallsPacketCaptureResponse } from "../models"; /// @@ -165,4 +168,35 @@ 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 a666d0b45a47..298c7c04491e 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/index.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/index.ts @@ -131,6 +131,7 @@ 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/networkVirtualApplianceConnections.ts b/sdk/network/arm-network/src/operationsInterfaces/networkVirtualApplianceConnections.ts new file mode 100644 index 000000000000..4584b2c8e698 --- /dev/null +++ b/sdk/network/arm-network/src/operationsInterfaces/networkVirtualApplianceConnections.ts @@ -0,0 +1,113 @@ +/* + * 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/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"