diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 02c02922362f..477489a4e4a7 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1903,6 +1903,18 @@ packages: resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} dev: false + /@isaacs/cliui@8.0.2: + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + dependencies: + string-width: 5.1.2 + string-width-cjs: /string-width@4.2.3 + strip-ansi: 7.1.0 + strip-ansi-cjs: /strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: /wrap-ansi@7.0.0 + dev: false + /@istanbuljs/load-nyc-config@1.1.0: resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==} engines: {node: '>=8'} @@ -2327,6 +2339,13 @@ packages: '@opentelemetry/core': 1.17.0(@opentelemetry/api@1.6.0) dev: false + /@pkgjs/parseargs@0.11.0: + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + requiresBuild: true + dev: false + optional: true + /@protobufjs/aspromise@1.1.2: resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==} dev: false @@ -3392,6 +3411,11 @@ packages: engines: {node: '>=8'} dev: false + /ansi-regex@6.0.1: + resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} + engines: {node: '>=12'} + dev: false + /ansi-styles@3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} @@ -3406,6 +3430,11 @@ packages: color-convert: 2.0.1 dev: false + /ansi-styles@6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + dev: false + /anymatch@3.1.3: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} @@ -4431,6 +4460,10 @@ packages: typescript: 5.3.0-dev.20230914 dev: false + /eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + dev: false + /ecdsa-sig-formatter@1.0.11: resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==} dependencies: @@ -4457,6 +4490,10 @@ packages: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} dev: false + /emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + dev: false + /encodeurl@1.0.2: resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==} engines: {node: '>= 0.8'} @@ -5204,6 +5241,14 @@ packages: signal-exit: 3.0.7 dev: false + /foreground-child@3.1.1: + resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==} + engines: {node: '>=14'} + dependencies: + cross-spawn: 7.0.3 + signal-exit: 4.1.0 + dev: false + /form-data@4.0.0: resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} engines: {node: '>= 6'} @@ -5384,13 +5429,25 @@ packages: resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==} dev: false + /glob@10.3.4: + resolution: {integrity: sha512-6LFElP3A+i/Q8XQKEvZjkEWEOTgAIALR9AO2rwT8bgPhDd1anmqDJDZ6lLddI4ehxxxR1S5RIqKe1uapMQfYaQ==} + engines: {node: '>=16 || 14 >=14.17'} + hasBin: true + dependencies: + foreground-child: 3.1.1 + jackspeak: 2.3.3 + minimatch: 9.0.3 + minipass: 7.0.3 + path-scurry: 1.10.1 + dev: false + /glob@7.1.3: resolution: {integrity: sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==} dependencies: 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 @@ -6069,6 +6126,15 @@ packages: istanbul-lib-report: 3.0.1 dev: false + /jackspeak@2.3.3: + resolution: {integrity: sha512-R2bUw+kVZFS/h1AZqBKrSgDmdmjApzgY0AlCPumopFiAlbUxE2gf+SCuBzQ0cP5hHmUmFYF5yw55T97Th5Kstg==} + engines: {node: '>=14'} + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + dev: false + /jju@1.4.0: resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} dev: false @@ -6594,6 +6660,11 @@ packages: get-func-name: 2.0.0 dev: false + /lru-cache@10.0.1: + resolution: {integrity: sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==} + engines: {node: 14 || >=16.14} + dev: false + /lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} dependencies: @@ -6836,6 +6907,13 @@ packages: brace-expansion: 2.0.1 dev: false + /minimatch@9.0.3: + resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + brace-expansion: 2.0.1 + dev: false + /minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} dev: false @@ -6845,6 +6923,11 @@ packages: engines: {node: '>=8'} dev: false + /minipass@7.0.3: + resolution: {integrity: sha512-LhbbwCfz3vsb12j/WkWQPZfKTsgqIe1Nf/ti1pKjYESGLHIVjWU96G9/ljLH4F9mWNVhlQOm0VySdAWzf05dpg==} + engines: {node: '>=16 || 14 >=14.17'} + dev: false + /mitt@3.0.0: resolution: {integrity: sha512-7dX2/10ITVyqh4aOSVI9gdape+t9l2/8QxHrFmUXu4EEUpdlxl6RudZUPZoc+zuY2hk1j7XxVroIVIan/pD/SQ==} dev: false @@ -7476,6 +7559,14 @@ packages: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} dev: false + /path-scurry@1.10.1: + resolution: {integrity: sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + lru-cache: 10.0.1 + minipass: 7.0.3 + dev: false + /path-scurry@1.6.3: resolution: {integrity: sha512-RAmB+n30SlN+HnNx6EbcpoDy9nwdpcGPnEKrJnu6GZoDWBdIjo1UQMVtW2ybtC7LC2oKLcMq8y5g8WnKLiod9g==} engines: {node: '>=16 || 14 >=14.17'} @@ -8058,6 +8149,14 @@ packages: glob: 7.2.3 dev: false + /rimraf@5.0.1: + resolution: {integrity: sha512-OfFZdwtd3lZ+XZzYP/6gTACubwFcHdLRqS9UX3UwpU2dnGQYkPFISRwvM3w9IiB2w7bW5qGo/uAwE4SmXXSKvg==} + engines: {node: '>=14'} + hasBin: true + dependencies: + glob: 10.3.4 + dev: false + /rollup-plugin-polyfill-node@0.12.0(rollup@2.79.1): resolution: {integrity: sha512-PWEVfDxLEKt8JX1nZ0NkUAgXpkZMTb85rO/Ru9AQ69wYW8VUCfDgP4CGRXXWYni5wDF0vIeR1UoF3Jmw/Lt3Ug==} peerDependencies: @@ -8310,6 +8409,11 @@ packages: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} dev: false + /signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + dev: false + /simple-concat@1.0.1: resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==} dev: false @@ -8503,6 +8607,15 @@ packages: strip-ansi: 6.0.1 dev: false + /string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.1.0 + dev: false + /string.prototype.padend@3.1.5: resolution: {integrity: sha512-DOB27b/2UTTD+4myKUFh+/fXWcu/UDyASIXfg+7VzoCNNGOfWvoyU/x5pvVHr++ztyt/oSYI1BcWBBG/hmlNjA==} engines: {node: '>= 0.4'} @@ -8574,6 +8687,13 @@ packages: ansi-regex: 5.0.1 dev: false + /strip-ansi@7.1.0: + resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + engines: {node: '>=12'} + dependencies: + ansi-regex: 6.0.1 + dev: false + /strip-bom@3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} @@ -9255,6 +9375,15 @@ packages: strip-ansi: 6.0.1 dev: false + /wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + dependencies: + ansi-styles: 6.2.1 + string-width: 5.1.2 + strip-ansi: 7.1.0 + dev: false + /wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} dev: false @@ -14361,7 +14490,7 @@ packages: dev: false file:projects/arm-network-1.tgz: - resolution: {integrity: sha512-oq6h2+foMLWcZQb9rCJQR5ld706OO7wW2php935hUnBu9kBmoezXz1h7No9rt/Q/rGu6tfwI4OnKvz16UxfSVQ==, tarball: file:projects/arm-network-1.tgz} + resolution: {integrity: sha512-Y3udiumT06uyq1tvLNW/UhxItdJYF7tL21wGN7NtbxumY5lMtsg5A4IPNAjz8hKrPG08mBL6unRZrdz66npZpw==, tarball: file:projects/arm-network-1.tgz} name: '@rush-temp/arm-network-1' version: 0.0.0 dependencies: @@ -14378,7 +14507,7 @@ packages: dotenv: 16.3.1 mkdirp: 2.1.6 mocha: 7.2.0 - rimraf: 3.0.2 + rimraf: 5.0.1 rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3(@types/node@14.18.59)(rollup@2.79.1) ts-node: 10.9.1(@types/node@14.18.59)(typescript@5.0.4) diff --git a/sdk/network/arm-network/CHANGELOG.md b/sdk/network/arm-network/CHANGELOG.md index e4e7ecf28a02..6426dfde99c2 100644 --- a/sdk/network/arm-network/CHANGELOG.md +++ b/sdk/network/arm-network/CHANGELOG.md @@ -1,15 +1,32 @@ # Release History + +## 33.0.0 (2023-09-15) + +**Features** -## 32.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Interface BastionHostPropertiesFormatNetworkAcls + - Added Interface FlowLogInformationRequest + - Added Interface FlowLogInformationResponse + - Added Interface IPRule + - Added Interface RequestIdentityObjectForUserAssigned + - Added Interface ResultIdentityObjectForUserAssigned + - Added Interface UserIdentityProperties + - Added Interface VirtualNetworkGatewayAutoScaleBounds + - Added Interface VirtualNetworkGatewayAutoScaleConfiguration + - Interface BastionHost has a new optional parameter networkAcls + - Interface BastionHost has a new optional parameter virtualNetwork + - Interface FirewallPolicy has a new optional parameter size + - Interface FirewallPolicyRuleCollectionGroup has a new optional parameter size + - Interface FlowLog has a new optional parameter identity + - Interface Subnet has a new optional parameter defaultOutboundAccess + - Interface VirtualNetworkGateway has a new optional parameter autoScaleConfiguration -### Other Changes +**Breaking Changes** + - Operation NetworkWatchers.beginSetFlowLogConfiguration has a new signature + - Operation NetworkWatchers.beginSetFlowLogConfigurationAndWait has a new signature + + ## 32.1.0 (2023-08-08) **Features** diff --git a/sdk/network/arm-network/_meta.json b/sdk/network/arm-network/_meta.json index aa64f1c9342c..279be5f8b06a 100644 --- a/sdk/network/arm-network/_meta.json +++ b/sdk/network/arm-network/_meta.json @@ -1,8 +1,8 @@ { - "commit": "2888f49ff0b4ce0587780b83530a7974dae71015", + "commit": "c29c33944f7fee90b174705a54408107e66b5c8e", "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.5 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/network/resource-manager/readme.md --use=@autorest/typescript@^6.0.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", - "use": "@autorest/typescript@6.0.5" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/network/arm-network/package.json b/sdk/network/arm-network/package.json index bf21af932ee5..79e05bd28dcb 100644 --- a/sdk/network/arm-network/package.json +++ b/sdk/network/arm-network/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetworkManagementClient.", - "version": "32.1.1", + "version": "33.0.0", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.3", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -38,7 +38,7 @@ "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~5.0.0", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", @@ -48,8 +48,8 @@ "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^14.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0" + "ts-node": "^10.0.0", + "@azure/dev-tool": "^1.0.0" }, "repository": { "type": "git", @@ -84,7 +84,7 @@ "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -112,13 +112,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 538bf5f86dd6..e49e048ba4d2 100644 --- a/sdk/network/arm-network/review/arm-network.api.md +++ b/sdk/network/arm-network/review/arm-network.api.md @@ -1991,9 +1991,12 @@ export interface BastionHost extends Resource { enableTunneling?: boolean; readonly etag?: string; ipConfigurations?: BastionHostIPConfiguration[]; + // (undocumented) + networkAcls?: BastionHostPropertiesFormatNetworkAcls; readonly provisioningState?: ProvisioningState; scaleUnits?: number; sku?: Sku; + virtualNetwork?: SubResource; } // @public @@ -2013,6 +2016,11 @@ export interface BastionHostListResult { value?: BastionHost[]; } +// @public (undocumented) +export interface BastionHostPropertiesFormatNetworkAcls { + ipRules?: IPRule[]; +} + // @public export interface BastionHosts { beginCreateOrUpdate(resourceGroupName: string, bastionHostName: string, parameters: BastionHost, options?: BastionHostsCreateOrUpdateOptionalParams): Promise, BastionHostsCreateOrUpdateResponse>>; @@ -4767,6 +4775,7 @@ export interface FirewallPolicy extends Resource { intrusionDetection?: FirewallPolicyIntrusionDetection; readonly provisioningState?: ProvisioningState; readonly ruleCollectionGroups?: SubResource[]; + readonly size?: string; sku?: FirewallPolicySku; snat?: FirewallPolicySnat; sql?: FirewallPolicySQL; @@ -4981,6 +4990,7 @@ export interface FirewallPolicyRuleCollectionGroup extends SubResource { priority?: number; readonly provisioningState?: ProvisioningState; ruleCollections?: FirewallPolicyRuleCollectionUnion[]; + readonly size?: string; readonly type?: string; } @@ -5087,6 +5097,7 @@ export interface FlowLog extends Resource { readonly etag?: string; flowAnalyticsConfiguration?: TrafficAnalyticsProperties; format?: FlowLogFormatParameters; + identity?: ResultIdentityObjectForUserAssigned; readonly provisioningState?: ProvisioningState; retentionPolicy?: RetentionPolicyParameters; storageId?: string; @@ -5104,10 +5115,22 @@ export interface FlowLogFormatParameters { export type FlowLogFormatType = string; // @public -export interface FlowLogInformation { +export interface FlowLogInformationRequest { enabled: boolean; flowAnalyticsConfiguration?: TrafficAnalyticsProperties; format?: FlowLogFormatParameters; + identity?: RequestIdentityObjectForUserAssigned; + retentionPolicy?: RetentionPolicyParameters; + storageId: string; + targetResourceId: string; +} + +// @public +export interface FlowLogInformationResponse { + enabled: boolean; + flowAnalyticsConfiguration?: TrafficAnalyticsProperties; + format?: FlowLogFormatParameters; + identity?: ResultIdentityObjectForUserAssigned; retentionPolicy?: RetentionPolicyParameters; storageId: string; targetResourceId: string; @@ -5887,6 +5910,11 @@ export interface IPPrefixesList { ipPrefixes?: string[]; } +// @public (undocumented) +export interface IPRule { + addressPrefix?: string; +} + // @public export type IpsecEncryption = string; @@ -9884,8 +9912,8 @@ export interface NetworkWatchers { beginGetVMSecurityRulesAndWait(resourceGroupName: string, networkWatcherName: string, parameters: SecurityGroupViewParameters, options?: NetworkWatchersGetVMSecurityRulesOptionalParams): Promise; beginListAvailableProviders(resourceGroupName: string, networkWatcherName: string, parameters: AvailableProvidersListParameters, options?: NetworkWatchersListAvailableProvidersOptionalParams): Promise, NetworkWatchersListAvailableProvidersResponse>>; beginListAvailableProvidersAndWait(resourceGroupName: string, networkWatcherName: string, parameters: AvailableProvidersListParameters, options?: NetworkWatchersListAvailableProvidersOptionalParams): Promise; - beginSetFlowLogConfiguration(resourceGroupName: string, networkWatcherName: string, parameters: FlowLogInformation, options?: NetworkWatchersSetFlowLogConfigurationOptionalParams): Promise, NetworkWatchersSetFlowLogConfigurationResponse>>; - beginSetFlowLogConfigurationAndWait(resourceGroupName: string, networkWatcherName: string, parameters: FlowLogInformation, options?: NetworkWatchersSetFlowLogConfigurationOptionalParams): Promise; + beginSetFlowLogConfiguration(resourceGroupName: string, networkWatcherName: string, parameters: FlowLogInformationRequest, options?: NetworkWatchersSetFlowLogConfigurationOptionalParams): Promise, NetworkWatchersSetFlowLogConfigurationResponse>>; + beginSetFlowLogConfigurationAndWait(resourceGroupName: string, networkWatcherName: string, parameters: FlowLogInformationRequest, options?: NetworkWatchersSetFlowLogConfigurationOptionalParams): Promise; beginVerifyIPFlow(resourceGroupName: string, networkWatcherName: string, parameters: VerificationIPFlowParameters, options?: NetworkWatchersVerifyIPFlowOptionalParams): Promise, NetworkWatchersVerifyIPFlowResponse>>; beginVerifyIPFlowAndWait(resourceGroupName: string, networkWatcherName: string, parameters: VerificationIPFlowParameters, options?: NetworkWatchersVerifyIPFlowOptionalParams): Promise; createOrUpdate(resourceGroupName: string, networkWatcherName: string, parameters: NetworkWatcher, options?: NetworkWatchersCreateOrUpdateOptionalParams): Promise; @@ -9934,7 +9962,7 @@ export interface NetworkWatchersGetFlowLogStatusOptionalParams extends coreClien } // @public -export type NetworkWatchersGetFlowLogStatusResponse = FlowLogInformation; +export type NetworkWatchersGetFlowLogStatusResponse = FlowLogInformationResponse; // @public export interface NetworkWatchersGetNetworkConfigurationDiagnosticOptionalParams extends coreClient.OperationOptions { @@ -10025,7 +10053,7 @@ export interface NetworkWatchersSetFlowLogConfigurationOptionalParams extends co } // @public -export type NetworkWatchersSetFlowLogConfigurationResponse = FlowLogInformation; +export type NetworkWatchersSetFlowLogConfigurationResponse = FlowLogInformationResponse; // @public export interface NetworkWatchersUpdateTagsOptionalParams extends coreClient.OperationOptions { @@ -11499,6 +11527,12 @@ export interface ReferencedPublicIpAddress { id?: string; } +// @public +export interface RequestIdentityObjectForUserAssigned { + type?: ResourceIdentityType; + userAssignedIdentities?: Record; +} + // @public export interface Resource { id?: string; @@ -11546,6 +11580,14 @@ export interface ResourceSet { subscriptions?: string[]; } +// @public +export interface ResultIdentityObjectForUserAssigned { + type?: ResourceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserIdentityProperties; + }; +} + // @public export interface RetentionPolicyParameters { days?: number; @@ -12749,6 +12791,7 @@ export interface Subnet extends SubResource { addressPrefix?: string; addressPrefixes?: string[]; applicationGatewayIPConfigurations?: ApplicationGatewayIPConfiguration[]; + defaultOutboundAccess?: boolean; delegations?: Delegation[]; readonly etag?: string; ipAllocations?: SubResource[]; @@ -13089,6 +13132,12 @@ export type UsageUnit = string; // @public export type UseHubGateway = string; +// @public (undocumented) +export interface UserIdentityProperties { + readonly clientId?: string; + readonly principalId?: string; +} + // @public export type VerbosityLevel = string; @@ -13640,6 +13689,7 @@ export interface VirtualNetworkGateway extends Resource { adminState?: AdminState; allowRemoteVnetTraffic?: boolean; allowVirtualWanTraffic?: boolean; + autoScaleConfiguration?: VirtualNetworkGatewayAutoScaleConfiguration; bgpSettings?: BgpSettings; customRoutes?: AddressSpace; disableIPSecReplayProtection?: boolean; @@ -13664,6 +13714,17 @@ export interface VirtualNetworkGateway extends Resource { vpnType?: VpnType; } +// @public (undocumented) +export interface VirtualNetworkGatewayAutoScaleBounds { + max?: number; + min?: number; +} + +// @public +export interface VirtualNetworkGatewayAutoScaleConfiguration { + bounds?: VirtualNetworkGatewayAutoScaleBounds; +} + // @public export interface VirtualNetworkGatewayConnection extends Resource { authorizationKey?: string; diff --git a/sdk/network/arm-network/src/models/index.ts b/sdk/network/arm-network/src/models/index.ts index 2a6b8f629a33..66cd62a5b6e3 100644 --- a/sdk/network/arm-network/src/models/index.ts +++ b/sdk/network/arm-network/src/models/index.ts @@ -216,6 +216,27 @@ export interface TrafficAnalyticsConfigurationProperties { trafficAnalyticsInterval?: number; } +/** Identity for the resource. */ +export interface ResultIdentityObjectForUserAssigned { + /** The type of identity used for the resource. The type 'UserAssigned' includes set of user assigned identities. The type 'None' will remove any identities from the flowlog. */ + type?: ResourceIdentityType; + /** The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ + userAssignedIdentities?: { [propertyName: string]: UserIdentityProperties }; +} + +export interface UserIdentityProperties { + /** + * The principal id of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The client id of user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; +} + /** The service endpoint properties. */ export interface ServiceEndpointPropertiesFormat { /** The type of the endpoint service. */ @@ -970,6 +991,16 @@ export interface AzureWebCategoryListResult { nextLink?: string; } +export interface BastionHostPropertiesFormatNetworkAcls { + /** Sets the IP ACL rules for Developer Bastion Host. */ + ipRules?: IPRule[]; +} + +export interface IPRule { + /** Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. */ + addressPrefix?: string; +} + /** The sku of this Bastion Host. */ export interface Sku { /** The name of this Bastion Host. */ @@ -3094,11 +3125,39 @@ export interface QueryTroubleshootingParameters { } /** Information on the configuration of flow log and traffic analytics (optional) . */ -export interface FlowLogInformation { +export interface FlowLogInformationRequest { /** The ID of the resource to configure for flow log and traffic analytics (optional) . */ targetResourceId: string; /** Parameters that define the configuration of traffic analytics. */ flowAnalyticsConfiguration?: TrafficAnalyticsProperties; + /** Identity of the workspace */ + identity?: RequestIdentityObjectForUserAssigned; + /** ID of the storage account which is used to store the flow log. */ + storageId: string; + /** Flag to enable/disable flow logging. */ + enabled: boolean; + /** Parameters that define the retention policy for flow log. */ + retentionPolicy?: RetentionPolicyParameters; + /** Parameters that define the flow log format. */ + format?: FlowLogFormatParameters; +} + +/** Identity for the resource. */ +export interface RequestIdentityObjectForUserAssigned { + /** The type of identity used for the resource. The type 'UserAssigned' includes set of user assigned identities. The type 'None' will remove any identities from the flowlog. */ + type?: ResourceIdentityType; + /** The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ + userAssignedIdentities?: Record; +} + +/** Information on the configuration of flow log and traffic analytics (optional) . */ +export interface FlowLogInformationResponse { + /** The ID of the resource to configure for flow log and traffic analytics (optional) . */ + targetResourceId: string; + /** Parameters that define the configuration of traffic analytics. */ + flowAnalyticsConfiguration?: TrafficAnalyticsProperties; + /** Identity of the workspace */ + identity?: ResultIdentityObjectForUserAssigned; /** ID of the storage account which is used to store the flow log. */ storageId: string; /** Flag to enable/disable flow logging. */ @@ -4492,6 +4551,19 @@ export interface VirtualNetworkDdosProtectionStatusResult { nextLink?: string; } +/** Virtual Network Gateway Autoscale Configuration details */ +export interface VirtualNetworkGatewayAutoScaleConfiguration { + /** The bounds of the autoscale configuration */ + bounds?: VirtualNetworkGatewayAutoScaleBounds; +} + +export interface VirtualNetworkGatewayAutoScaleBounds { + /** Minimum scale Units for Autoscale configuration */ + min?: number; + /** Maximum Scale Units for Autoscale configuration */ + max?: number; +} + /** VirtualNetworkGatewaySku details. */ export interface VirtualNetworkGatewaySku { /** Gateway SKU name. */ @@ -6563,6 +6635,8 @@ export interface Subnet extends SubResource { privateLinkServiceNetworkPolicies?: VirtualNetworkPrivateLinkServiceNetworkPolicies; /** Application gateway IP configurations of virtual network resource. */ applicationGatewayIPConfigurations?: ApplicationGatewayIPConfiguration[]; + /** Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet. */ + defaultOutboundAccess?: boolean; } /** Frontend IP address of the load balancer. */ @@ -7814,6 +7888,11 @@ export interface FirewallPolicyRuleCollectionGroup extends SubResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; + /** + * A read-only string that represents the size of the FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly size?: string; /** Priority of the Firewall Policy Rule Collection Group resource. */ priority?: number; /** Group of Firewall Policy rule collections. */ @@ -9105,6 +9184,8 @@ export interface FlowLog extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly etag?: string; + /** Identity of the workspace */ + identity?: ResultIdentityObjectForUserAssigned; /** ID of network security group to which flow log will be applied. */ targetResourceId?: string; /** @@ -9559,6 +9640,9 @@ export interface BastionHost extends Resource { ipConfigurations?: BastionHostIPConfiguration[]; /** FQDN for the endpoint on which bastion host is accessible. */ dnsName?: string; + /** Reference to an existing virtual network required for Developer Bastion Host only. */ + virtualNetwork?: SubResource; + networkAcls?: BastionHostPropertiesFormatNetworkAcls; /** * The provisioning state of the bastion host resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -9935,6 +10019,11 @@ export interface FirewallPolicy extends Resource { readonly etag?: string; /** The identity of the firewall policy. */ identity?: ManagedServiceIdentity; + /** + * A read-only string that represents the size of the FirewallPolicyPropertiesFormat in MB. (ex 0.5MB) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly size?: string; /** * List of references to FirewallPolicyRuleCollectionGroups. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -10403,6 +10492,8 @@ export interface VirtualNetworkGateway extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly etag?: string; + /** Autoscale configuration for virutal network gateway */ + autoScaleConfiguration?: VirtualNetworkGatewayAutoScaleConfiguration; /** IP configurations for virtual network gateway. */ ipConfigurations?: VirtualNetworkGatewayIPConfiguration[]; /** The type of this virtual network gateway. */ @@ -16471,18 +16562,18 @@ export enum KnownHubVirtualNetworkConnectionStatus { * **NotConnected** */ export type HubVirtualNetworkConnectionStatus = string; -/** Defines values for PublicIpAddressDnsSettingsDomainNameLabelScope. */ -export type PublicIpAddressDnsSettingsDomainNameLabelScope = - | "TenantReuse" - | "SubscriptionReuse" - | "ResourceGroupReuse" - | "NoReuse"; /** Defines values for ResourceIdentityType. */ export type ResourceIdentityType = | "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; +/** Defines values for PublicIpAddressDnsSettingsDomainNameLabelScope. */ +export type PublicIpAddressDnsSettingsDomainNameLabelScope = + | "TenantReuse" + | "SubscriptionReuse" + | "ResourceGroupReuse" + | "NoReuse"; /** Defines values for SlotType. */ export type SlotType = "Production" | "Staging"; /** Defines values for FirewallPolicyIdpsSignatureMode. */ @@ -20005,7 +20096,7 @@ export interface NetworkWatchersSetFlowLogConfigurationOptionalParams } /** Contains response data for the setFlowLogConfiguration operation. */ -export type NetworkWatchersSetFlowLogConfigurationResponse = FlowLogInformation; +export type NetworkWatchersSetFlowLogConfigurationResponse = FlowLogInformationResponse; /** Optional parameters. */ export interface NetworkWatchersGetFlowLogStatusOptionalParams @@ -20017,7 +20108,7 @@ export interface NetworkWatchersGetFlowLogStatusOptionalParams } /** Contains response data for the getFlowLogStatus operation. */ -export type NetworkWatchersGetFlowLogStatusResponse = FlowLogInformation; +export type NetworkWatchersGetFlowLogStatusResponse = FlowLogInformationResponse; /** Optional parameters. */ export interface NetworkWatchersCheckConnectivityOptionalParams diff --git a/sdk/network/arm-network/src/models/mappers.ts b/sdk/network/arm-network/src/models/mappers.ts index 6883e5c0a02d..f543efd7163c 100644 --- a/sdk/network/arm-network/src/models/mappers.ts +++ b/sdk/network/arm-network/src/models/mappers.ts @@ -515,6 +515,59 @@ export const TrafficAnalyticsConfigurationProperties: coreClient.CompositeMapper } }; +export const ResultIdentityObjectForUserAssigned: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResultIdentityObjectForUserAssigned", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserIdentityProperties" } + } + } + } + } + } +}; + +export const UserIdentityProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserIdentityProperties", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const ServiceEndpointPropertiesFormat: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2767,6 +2820,42 @@ export const AzureWebCategoryListResult: coreClient.CompositeMapper = { } }; +export const BastionHostPropertiesFormatNetworkAcls: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BastionHostPropertiesFormatNetworkAcls", + modelProperties: { + ipRules: { + serializedName: "ipRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPRule" + } + } + } + } + } + } +}; + +export const IPRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IPRule", + modelProperties: { + addressPrefix: { + serializedName: "addressPrefix", + type: { + name: "String" + } + } + } + } +}; + export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8823,10 +8912,10 @@ export const QueryTroubleshootingParameters: coreClient.CompositeMapper = { } }; -export const FlowLogInformation: coreClient.CompositeMapper = { +export const FlowLogInformationRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FlowLogInformation", + className: "FlowLogInformationRequest", modelProperties: { targetResourceId: { serializedName: "targetResourceId", @@ -8842,6 +8931,99 @@ export const FlowLogInformation: coreClient.CompositeMapper = { className: "TrafficAnalyticsProperties" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "RequestIdentityObjectForUserAssigned" + } + }, + storageId: { + serializedName: "properties.storageId", + required: true, + type: { + name: "String" + } + }, + enabled: { + serializedName: "properties.enabled", + required: true, + type: { + name: "Boolean" + } + }, + retentionPolicy: { + serializedName: "properties.retentionPolicy", + type: { + name: "Composite", + className: "RetentionPolicyParameters" + } + }, + format: { + serializedName: "properties.format", + type: { + name: "Composite", + className: "FlowLogFormatParameters" + } + } + } + } +}; + +export const RequestIdentityObjectForUserAssigned: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RequestIdentityObjectForUserAssigned", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +export const FlowLogInformationResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FlowLogInformationResponse", + modelProperties: { + targetResourceId: { + serializedName: "targetResourceId", + required: true, + type: { + name: "String" + } + }, + flowAnalyticsConfiguration: { + serializedName: "flowAnalyticsConfiguration", + type: { + name: "Composite", + className: "TrafficAnalyticsProperties" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResultIdentityObjectForUserAssigned" + } + }, storageId: { serializedName: "properties.storageId", required: true, @@ -12705,6 +12887,43 @@ export const VirtualNetworkDdosProtectionStatusResult: coreClient.CompositeMappe } }; +export const VirtualNetworkGatewayAutoScaleConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualNetworkGatewayAutoScaleConfiguration", + modelProperties: { + bounds: { + serializedName: "bounds", + type: { + name: "Composite", + className: "VirtualNetworkGatewayAutoScaleBounds" + } + } + } + } +}; + +export const VirtualNetworkGatewayAutoScaleBounds: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualNetworkGatewayAutoScaleBounds", + modelProperties: { + min: { + serializedName: "min", + type: { + name: "Number" + } + }, + max: { + serializedName: "max", + type: { + name: "Number" + } + } + } + } +}; + export const VirtualNetworkGatewaySku: coreClient.CompositeMapper = { type: { name: "Composite", @@ -18257,6 +18476,12 @@ export const Subnet: coreClient.CompositeMapper = { } } } + }, + defaultOutboundAccess: { + serializedName: "properties.defaultOutboundAccess", + type: { + name: "Boolean" + } } } } @@ -21242,6 +21467,13 @@ export const FirewallPolicyRuleCollectionGroup: coreClient.CompositeMapper = { name: "String" } }, + size: { + serializedName: "properties.size", + readOnly: true, + type: { + name: "String" + } + }, priority: { constraints: { InclusiveMaximum: 65000, @@ -24336,6 +24568,13 @@ export const FlowLog: coreClient.CompositeMapper = { name: "String" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResultIdentityObjectForUserAssigned" + } + }, targetResourceId: { serializedName: "properties.targetResourceId", type: { @@ -25661,6 +25900,20 @@ export const BastionHost: coreClient.CompositeMapper = { name: "String" } }, + virtualNetwork: { + serializedName: "properties.virtualNetwork", + type: { + name: "Composite", + className: "SubResource" + } + }, + networkAcls: { + serializedName: "properties.networkAcls", + type: { + name: "Composite", + className: "BastionHostPropertiesFormatNetworkAcls" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -26549,6 +26802,13 @@ export const FirewallPolicy: coreClient.CompositeMapper = { className: "ManagedServiceIdentity" } }, + size: { + serializedName: "properties.size", + readOnly: true, + type: { + name: "String" + } + }, ruleCollectionGroups: { serializedName: "properties.ruleCollectionGroups", readOnly: true, @@ -27740,6 +28000,13 @@ export const VirtualNetworkGateway: coreClient.CompositeMapper = { name: "String" } }, + autoScaleConfiguration: { + serializedName: "properties.autoScaleConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkGatewayAutoScaleConfiguration" + } + }, ipConfigurations: { serializedName: "properties.ipConfigurations", type: { diff --git a/sdk/network/arm-network/src/models/parameters.ts b/sdk/network/arm-network/src/models/parameters.ts index d628a5d409af..2c0c3400f3fc 100644 --- a/sdk/network/arm-network/src/models/parameters.ts +++ b/sdk/network/arm-network/src/models/parameters.ts @@ -81,7 +81,7 @@ import { SecurityGroupViewParameters as SecurityGroupViewParametersMapper, TroubleshootingParameters as TroubleshootingParametersMapper, QueryTroubleshootingParameters as QueryTroubleshootingParametersMapper, - FlowLogInformation as FlowLogInformationMapper, + FlowLogInformationRequest as FlowLogInformationRequestMapper, FlowLogStatusParameters as FlowLogStatusParametersMapper, ConnectivityParameters as ConnectivityParametersMapper, AzureReachabilityReportParameters as AzureReachabilityReportParametersMapper, @@ -204,7 +204,7 @@ export const applicationGatewayName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-04-01", + defaultValue: "2023-05-01", isConstant: true, serializedName: "api-version", type: { @@ -1440,7 +1440,7 @@ export const parameters51: OperationParameter = { export const parameters52: OperationParameter = { parameterPath: "parameters", - mapper: FlowLogInformationMapper + mapper: FlowLogInformationRequestMapper }; export const parameters53: OperationParameter = { diff --git a/sdk/network/arm-network/src/networkManagementClient.ts b/sdk/network/arm-network/src/networkManagementClient.ts index 77609c3ba68f..e91d21f11ccc 100644 --- a/sdk/network/arm-network/src/networkManagementClient.ts +++ b/sdk/network/arm-network/src/networkManagementClient.ts @@ -379,7 +379,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-network/32.1.1`; + const packageDetails = `azsdk-js-arm-network/33.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/network/arm-network/src/operations/networkWatchers.ts b/sdk/network/arm-network/src/operations/networkWatchers.ts index ce3959f41325..4caa8920da75 100644 --- a/sdk/network/arm-network/src/operations/networkWatchers.ts +++ b/sdk/network/arm-network/src/operations/networkWatchers.ts @@ -50,7 +50,7 @@ import { QueryTroubleshootingParameters, NetworkWatchersGetTroubleshootingResultOptionalParams, NetworkWatchersGetTroubleshootingResultResponse, - FlowLogInformation, + FlowLogInformationRequest, NetworkWatchersSetFlowLogConfigurationOptionalParams, NetworkWatchersSetFlowLogConfigurationResponse, FlowLogStatusParameters, @@ -841,7 +841,7 @@ export class NetworkWatchersImpl implements NetworkWatchers { async beginSetFlowLogConfiguration( resourceGroupName: string, networkWatcherName: string, - parameters: FlowLogInformation, + parameters: FlowLogInformationRequest, options?: NetworkWatchersSetFlowLogConfigurationOptionalParams ): Promise< SimplePollerLike< @@ -915,7 +915,7 @@ export class NetworkWatchersImpl implements NetworkWatchers { async beginSetFlowLogConfigurationAndWait( resourceGroupName: string, networkWatcherName: string, - parameters: FlowLogInformation, + parameters: FlowLogInformationRequest, options?: NetworkWatchersSetFlowLogConfigurationOptionalParams ): Promise { const poller = await this.beginSetFlowLogConfiguration( @@ -1755,16 +1755,16 @@ const setFlowLogConfigurationOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.FlowLogInformation + bodyMapper: Mappers.FlowLogInformationResponse }, 201: { - bodyMapper: Mappers.FlowLogInformation + bodyMapper: Mappers.FlowLogInformationResponse }, 202: { - bodyMapper: Mappers.FlowLogInformation + bodyMapper: Mappers.FlowLogInformationResponse }, 204: { - bodyMapper: Mappers.FlowLogInformation + bodyMapper: Mappers.FlowLogInformationResponse }, default: { bodyMapper: Mappers.ErrorResponse @@ -1788,16 +1788,16 @@ const getFlowLogStatusOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.FlowLogInformation + bodyMapper: Mappers.FlowLogInformationResponse }, 201: { - bodyMapper: Mappers.FlowLogInformation + bodyMapper: Mappers.FlowLogInformationResponse }, 202: { - bodyMapper: Mappers.FlowLogInformation + bodyMapper: Mappers.FlowLogInformationResponse }, 204: { - bodyMapper: Mappers.FlowLogInformation + bodyMapper: Mappers.FlowLogInformationResponse }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/network/arm-network/src/operationsInterfaces/networkWatchers.ts b/sdk/network/arm-network/src/operationsInterfaces/networkWatchers.ts index 6c65446ad7da..48beab521b27 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/networkWatchers.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/networkWatchers.ts @@ -38,7 +38,7 @@ import { QueryTroubleshootingParameters, NetworkWatchersGetTroubleshootingResultOptionalParams, NetworkWatchersGetTroubleshootingResultResponse, - FlowLogInformation, + FlowLogInformationRequest, NetworkWatchersSetFlowLogConfigurationOptionalParams, NetworkWatchersSetFlowLogConfigurationResponse, FlowLogStatusParameters, @@ -314,7 +314,7 @@ export interface NetworkWatchers { beginSetFlowLogConfiguration( resourceGroupName: string, networkWatcherName: string, - parameters: FlowLogInformation, + parameters: FlowLogInformationRequest, options?: NetworkWatchersSetFlowLogConfigurationOptionalParams ): Promise< SimplePollerLike< @@ -332,7 +332,7 @@ export interface NetworkWatchers { beginSetFlowLogConfigurationAndWait( resourceGroupName: string, networkWatcherName: string, - parameters: FlowLogInformation, + parameters: FlowLogInformationRequest, options?: NetworkWatchersSetFlowLogConfigurationOptionalParams ): 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"