From 48ba9206f2700e874b5d6827ad9d68a06ce880bc Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 28 Jun 2024 06:09:46 +0000 Subject: [PATCH] CodeGen from PR 29602 in Azure/azure-rest-api-specs Merge dbfb6b3014f5f6baac3547d8274472ce81836e93 into 3764d28dd3e9b10bb60ce6f5811fec62f02f4459 --- common/config/rush/pnpm-lock.yaml | 113 ++-- sdk/compute/arm-compute/CHANGELOG.md | 20 +- sdk/compute/arm-compute/_meta.json | 8 +- sdk/compute/arm-compute/package.json | 18 +- .../arm-compute/review/arm-compute.api.md | 11 +- .../src/computeManagementClient.ts | 2 +- sdk/compute/arm-compute/src/models/index.ts | 200 +++---- sdk/compute/arm-compute/src/models/mappers.ts | 503 ++++++++++-------- sdk/compute/arm-compute/test/sampleTest.ts | 43 ++ sdk/compute/arm-compute/tsconfig.json | 10 +- 10 files changed, 532 insertions(+), 396 deletions(-) create mode 100644 sdk/compute/arm-compute/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 4e5f4d1fe308..02a9d1aa3b5a 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1270,6 +1270,21 @@ packages: - supports-color dev: false + /@azure/arm-compute@21.6.0: + resolution: {integrity: sha512-Qk6kxoqMgzOvceUBqD1WTHrPh/iaxlTLQPp241u3iNVOE4FVSTqSzTxjG1tr/UL1rBWGvoLPZExUFddo+Qd5KQ==} + engines: {node: '>=18.0.0'} + dependencies: + '@azure/abort-controller': 1.1.0 + '@azure/core-auth': 1.7.2 + '@azure/core-client': 1.9.2 + '@azure/core-lro': 2.7.2 + '@azure/core-paging': 1.6.2 + '@azure/core-rest-pipeline': 1.16.0 + tslib: 2.6.3 + transitivePeerDependencies: + - supports-color + dev: false + /@azure/arm-cosmosdb@16.0.0-beta.6: resolution: {integrity: sha512-Ue4ocP8qCsFDeBZ/MjMNyVt4e9QhU3UgrRfZSw6kWiMzdrCgDePnZvjzZs9PQpjAsXbHGd9HlEIXg9Dl6Y/uww==} engines: {node: '>=14.0.0'} @@ -3408,13 +3423,13 @@ packages: resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==} dependencies: '@types/connect': 3.4.38 - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/bunyan@1.8.9: resolution: {integrity: sha512-ZqS9JGpBxVOvsawzmVt30sP++gSQMTejCkIAQ3VdadOcRE8izTyW66hufvwLeH+YEGP6Js2AW7Gz+RMyvrEbmw==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/chai-as-promised@7.1.8: @@ -3436,7 +3451,7 @@ packages: /@types/connect@3.4.38: resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/cookie@0.4.1: @@ -3446,7 +3461,7 @@ packages: /@types/cors@2.8.17: resolution: {integrity: sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/debug@4.1.12: @@ -3485,7 +3500,7 @@ packages: /@types/express-serve-static-core@4.19.0: resolution: {integrity: sha512-bGyep3JqPCRry1wq+O5n7oiBgGWmeIJXPjXXCo8EK0u8duZGSYar7cGqd3ML2JUsLGeB7fmc06KYo9fLGWqPvQ==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 '@types/qs': 6.9.15 '@types/range-parser': 1.2.7 '@types/send': 0.17.4 @@ -3494,7 +3509,7 @@ packages: /@types/express-serve-static-core@4.19.5: resolution: {integrity: sha512-y6W03tvrACO72aijJ5uF02FRq5cgDR9lUxddQ8vyF+GvmjJQqbzDcJngEjURc+ZsG31VI3hODNZJ2URj86pzmg==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 '@types/qs': 6.9.15 '@types/range-parser': 1.2.7 '@types/send': 0.17.4 @@ -3513,19 +3528,19 @@ packages: resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} dependencies: '@types/jsonfile': 6.1.4 - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/fs-extra@8.1.5: resolution: {integrity: sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/fs-extra@9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/http-errors@2.0.4: @@ -3542,7 +3557,7 @@ packages: /@types/is-buffer@2.0.2: resolution: {integrity: sha512-G6OXy83Va+xEo8XgqAJYOuvOMxeey9xM5XKkvwJNmN8rVdcB+r15HvHsG86hl86JvU0y1aa7Z2ERkNFYWw9ySg==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/json-schema@7.0.15: @@ -3556,19 +3571,19 @@ packages: /@types/jsonfile@6.1.4: resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/jsonwebtoken@9.0.6: resolution: {integrity: sha512-/5hndP5dCjloafCXns6SZyESp3Ldq7YjH3zwzwczYnjxIT0Fqzk5ROSYVGfFyczIue7IUEj8hkvLbPoLQ18vQw==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/jws@3.2.10: resolution: {integrity: sha512-cOevhttJmssERB88/+XvZXvsq5m9JLKZNUiGfgjUb5lcPRdV2ZQciU6dU76D/qXXFYpSqkP3PrSg4hMTiafTZw==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/linkify-it@5.0.0: @@ -3615,13 +3630,13 @@ packages: /@types/mysql@2.15.22: resolution: {integrity: sha512-wK1pzsJVVAjYCSZWQoWHziQZbNggXFDUEIGf54g4ZM/ERuP86uGdWeKZWMYlqTPMZfHJJvLPyogXGvCOg87yLQ==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/node-fetch@2.6.11: resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 form-data: 4.0.0 dev: false @@ -3650,7 +3665,7 @@ packages: /@types/pg@8.6.1: resolution: {integrity: sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 pg-protocol: 1.6.1 pg-types: 2.2.0 dev: false @@ -3670,7 +3685,7 @@ packages: /@types/readdir-glob@1.1.5: resolution: {integrity: sha512-raiuEPUYqXu+nvtY2Pe8s8FEmZ3x5yAH4VkLdihcPdalvsHltomrRC9BzuStrJ9yk06470hS0Crw0f1pXqD+Hg==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/resolve@1.20.2: @@ -3689,14 +3704,14 @@ packages: resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==} dependencies: '@types/mime': 1.3.5 - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/serve-static@1.15.7: resolution: {integrity: sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==} dependencies: '@types/http-errors': 2.0.4 - '@types/node': 18.19.39 + '@types/node': 20.10.8 '@types/send': 0.17.4 dev: false @@ -3717,13 +3732,13 @@ packages: /@types/stoppable@1.1.3: resolution: {integrity: sha512-7wGKIBJGE4ZxFjk9NkjAxZMLlIXroETqP1FJCdoSvKmEznwmBxQFmTB1dsCkAvVcNemuSZM5qkkd9HE/NL2JTw==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/through@0.0.33: resolution: {integrity: sha512-HsJ+z3QuETzP3cswwtzt2vEIiHBk/dCcHGhbmG5X3ecnwFD/lPrMpliGXxSCg03L9AhrdwA4Oz/qfspkDW+xGQ==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/triple-beam@1.3.5: @@ -3737,7 +3752,7 @@ packages: /@types/tunnel@0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/underscore@1.11.15: @@ -3755,13 +3770,13 @@ packages: /@types/ws@7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/ws@8.5.10: resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==} dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false /@types/yargs-parser@21.0.3: @@ -3778,7 +3793,7 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 18.19.39 + '@types/node': 20.10.8 dev: false optional: true @@ -3926,7 +3941,7 @@ packages: dependencies: '@typescript-eslint/types': 7.10.0 eslint-visitor-keys: 3.4.3 - dev: false + dev: false /@ungap/structured-clone@1.2.0: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} @@ -5549,7 +5564,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.17 - '@types/node': 18.19.39 + '@types/node': 20.10.8 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -9003,7 +9018,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 18.19.39 + '@types/node': 20.10.8 long: 5.2.3 dev: false @@ -10329,6 +10344,24 @@ packages: strip-bom: 3.0.0 dev: false + /tshy@1.15.1: + resolution: {integrity: sha512-7p30vmXaNX7OL1yLy/MYUtO0SJOm9fQSnzk3DXaM+LmQosooCB4elVeHAGIIZdABhL2E8dx5t/5msR5lh0xnaQ==} + engines: {node: 16 >=16.17 || 18 >=18.15.0 || >=20.6.1} + hasBin: true + dependencies: + chalk: 5.3.0 + chokidar: 3.6.0 + foreground-child: 3.2.1 + minimatch: 9.0.4 + mkdirp: 3.0.1 + polite-json: 4.0.1 + resolve-import: 1.4.5 + rimraf: 5.0.7 + sync-content: 1.0.2 + typescript: 5.5.2 + walk-up-path: 3.0.1 + dev: false + /tshy@1.16.0: resolution: {integrity: sha512-5PE9ZzKdbCqTRE4vutgNJUcR7jNdKQxr0ixUT489o1ljH1M7hkg/yCiWoD0nOgSVGwk0e8zO2otAVfril5aZHQ==} engines: {node: 16 >=16.17 || 18 >=18.15.0 || >=20.6.1} @@ -11732,9 +11765,9 @@ packages: - supports-color - utf-8-validate dev: false - + file:projects/ai-translation-document.tgz: - resolution: {integrity: sha512-1beNCHG8JIOTr4zb1uhu0VXnFd5n1zUiY038vRewBFO7IGkiztLe+5gN0qPh3/sliCKDKnIjDn87NK9H9+invw==, tarball: file:projects/ai-translation-document.tgz} + resolution: {integrity: sha512-EQApuU7CzaZR6kQOPXi7VvSqfn0M8pPb3aW+mB/VDgok4XYcLMLZbMo/dGXiO4NAdcKH3ctccb69aRXyKwVqwA==, tarball: file:projects/ai-translation-document.tgz} name: '@rush-temp/ai-translation-document' version: 0.0.0 dependencies: @@ -11744,10 +11777,10 @@ packages: '@azure/core-lro': 3.0.0-beta.1 '@azure/identity': 4.3.0 '@azure/storage-blob': 12.23.0 - '@microsoft/api-extractor': 7.47.0(@types/node@18.19.37) + '@microsoft/api-extractor': 7.47.0(@types/node@18.19.39) '@types/chai': 4.3.16 - '@types/mocha': 10.0.6 - '@types/node': 18.19.37 + '@types/mocha': 10.0.7 + '@types/node': 18.19.39 autorest: 3.7.1 chai: 4.3.10 cross-env: 7.0.3 @@ -11769,7 +11802,7 @@ packages: prettier: 3.3.2 rimraf: 5.0.7 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.37)(typescript@5.4.5) + ts-node: 10.9.2(@types/node@18.19.39)(typescript@5.4.5) tshy: 1.15.1 tslib: 2.6.3 typescript: 5.4.5 @@ -11780,7 +11813,7 @@ packages: - debug - supports-color - utf-8-validate - dev: false + dev: false file:projects/ai-translation-text.tgz: resolution: {integrity: sha512-tjMi1e0jZ6A/L5v5CB+XLrR5UF8JkDmro+8nEygRHxCbxErYgbt+NG+TRGRq/ZoBBn5Q+DCRjkKvWKfCoJrDow==, tarball: file:projects/ai-translation-text.tgz} @@ -13085,7 +13118,7 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-cHmpUL4vSUYcRWf7fKSBBENOzXAOk4jug7q1q23ZfuvI87FCj/aBf+fLdMiLzGfTrKsn7/+wr/7zu6N9KmLByg==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-2ZN4oGy+ZUzDhVFK0MKxIKg5rtxAEgbHo6Sr60ptmsX8PwLR6WVJoeR+x6/gUW+rcBm5VlaRAMmQWziBSLX8LA==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: @@ -13106,6 +13139,7 @@ packages: rimraf: 5.0.7 ts-node: 10.9.2(@types/node@18.19.39)(typescript@5.4.5) tslib: 2.6.3 + tsx: 4.15.7 typescript: 5.4.5 uglify-js: 3.18.0 transitivePeerDependencies: @@ -15043,13 +15077,14 @@ packages: dev: false file:projects/arm-imagebuilder.tgz: - resolution: {integrity: sha512-yllt/Ixm5UxF81AFiYLpDKtLPDBRqCE+0gMkxg9ezcPnzTrREcSVylaj5MlDU9RWdAtoOi4O+5N5B1/6pPD5eA==, tarball: file:projects/arm-imagebuilder.tgz} + resolution: {integrity: sha512-9UYXwszNiVPQYO28zZPwKyerI4km7YQMEGpQgIfD6TwhnytMI4sHKti6mlOABcZbEL/CdQJPnvXTWVPOsjpLqA==, tarball: file:projects/arm-imagebuilder.tgz} name: '@rush-temp/arm-imagebuilder' version: 0.0.0 dependencies: '@azure-tools/test-credential': 1.2.0 '@azure-tools/test-recorder': 3.5.2 '@azure/abort-controller': 1.1.0 + '@azure/arm-compute': 21.6.0 '@azure/core-lro': 2.7.2 '@microsoft/api-extractor': 7.47.0(@types/node@18.19.39) '@types/chai': 4.3.16 @@ -20581,7 +20616,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-blob.tgz: - resolution: {integrity: sha512-fpCOyM0dO+71rfZa6CfTklgsZbUvfdTWY0UIVoh492rxwawM2T2NKXcZOH9dfP7dHAiThnOjOZzq6h2d99X4Cg==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} + resolution: {integrity: sha512-lC0ETP1LwXefVLXMlLZK+H+cTyU7Di4o6UD+ZOoiZMZ6/6Kx0Io2+NTjH+3s8vpU+FfYKrm8QuGoYE6cg1G3ug==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} name: '@rush-temp/eventhubs-checkpointstore-blob' version: 0.0.0 dependencies: @@ -24049,4 +24084,4 @@ packages: - debug - supports-color - utf-8-validate - dev: false \ No newline at end of file + dev: false diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index 3844b2e2bd4a..57305b8aaf7b 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,15 +1,19 @@ # Release History + +## 22.0.0 (2024-06-28) + +**Features** -## 21.6.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Interface SecurityPostureReferenceUpdate + - Interface SecurityPostureReference has a new optional parameter isOverridable + - Interface VirtualMachineScaleSetUpdateVMProfile has a new optional parameter securityPostureReference -### Other Changes +**Breaking Changes** + - Parameter id of interface SecurityPostureReference is now required + - Type of parameter excludeExtensions of interface SecurityPostureReference is changed from VirtualMachineExtension[] to string[] + + ## 21.6.0 (2024-04-26) **Features** diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index 74fbbef9d4ce..71ff0903a70e 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "c77bbf822be2deaac1b690270c6cd03a52df0e37", + "commit": "a3da2b181fb5716fcf431303dbc5a038e84db2f9", "readme": "specification/compute/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.20 --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/compute/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.5", - "use": "@autorest/typescript@6.0.20" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.10", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index 4ef28d34187a..ad9fd6228e85 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "21.6.1", + "version": "22.0.0", "engines": { "node": ">=18.0.0" }, @@ -37,14 +37,14 @@ "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-credential": "^1.0.0", + "@azure-tools/test-credential": "^1.1.0", "mocha": "^10.0.0", "@types/mocha": "^10.0.0", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/arm-network": "^32.2.0", "ts-node": "^10.0.0" }, "repository": { @@ -106,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute" +} \ No newline at end of file diff --git a/sdk/compute/arm-compute/review/arm-compute.api.md b/sdk/compute/arm-compute/review/arm-compute.api.md index 9a9172b615dd..b6a2f6bf581e 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -5271,8 +5271,16 @@ export type SecurityEncryptionTypes = string; // @public export interface SecurityPostureReference { - excludeExtensions?: VirtualMachineExtension[]; + excludeExtensions?: string[]; + id: string; + isOverridable?: boolean; +} + +// @public +export interface SecurityPostureReferenceUpdate { + excludeExtensions?: string[]; id?: string; + isOverridable?: boolean; } // @public @@ -7512,6 +7520,7 @@ export interface VirtualMachineScaleSetUpdateVMProfile { networkProfile?: VirtualMachineScaleSetUpdateNetworkProfile; osProfile?: VirtualMachineScaleSetUpdateOSProfile; scheduledEventsProfile?: ScheduledEventsProfile; + securityPostureReference?: SecurityPostureReferenceUpdate; securityProfile?: SecurityProfile; storageProfile?: VirtualMachineScaleSetUpdateStorageProfile; userData?: string; diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 52b1975c58c6..96c94e9cc694 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -145,7 +145,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-compute/21.6.1`; + const packageDetails = `azsdk-js-arm-compute/22.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index 0a215de55e0f..0c42b0e41ca3 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -288,7 +288,7 @@ export interface VirtualMachineScaleSetVMProfile { hardwareProfile?: VirtualMachineScaleSetHardwareProfile; /** Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version. Minimum api-version: 2022-11-01 */ serviceArtifactReference?: ServiceArtifactReference; - /** Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01 */ + /** Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01 */ securityPostureReference?: SecurityPostureReference; /** * Specifies the time in which this VM profile for the Virtual Machine Scale Set was created. Minimum API version for this property is 2024-03-01. This value will be added to VMSS Flex VM tags when creating/updating the VMSS VM Profile with minimum api-version 2024-03-01. @@ -810,63 +810,14 @@ export interface ServiceArtifactReference { id?: string; } -/** Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01 */ +/** Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01 */ export interface SecurityPostureReference { - /** The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest */ - id?: string; - /** List of virtual machine extensions to exclude when applying the Security Posture. */ - excludeExtensions?: VirtualMachineExtension[]; -} - -/** The instance view of a virtual machine extension. */ -export interface VirtualMachineExtensionInstanceView { - /** The virtual machine extension name. */ - name?: string; - /** Specifies the type of the extension; an example is "CustomScriptExtension". */ - type?: string; - /** Specifies the version of the script handler. */ - typeHandlerVersion?: string; - /** The resource status information. */ - substatuses?: InstanceViewStatus[]; - /** The resource status information. */ - statuses?: InstanceViewStatus[]; -} - -/** Instance view status. */ -export interface InstanceViewStatus { - /** The status code. */ - code?: string; - /** The level code. */ - level?: StatusLevelTypes; - /** The short localizable label for the status. */ - displayStatus?: string; - /** The detailed status message, including for alerts and error messages. */ - message?: string; - /** The time of the status. */ - time?: Date; -} - -/** The Resource model definition with location property as optional. */ -export interface ResourceWithOptionalLocation { - /** Resource location */ - location?: string; - /** - * Resource Id - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Resource name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** Resource tags */ - tags?: { [propertyName: string]: string }; + /** The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest */ + id: string; + /** The list of virtual machine extension names to exclude when applying the security posture. */ + excludeExtensions?: string[]; + /** Whether the security posture can be overridden by the user. */ + isOverridable?: boolean; } /** Enables or disables a capability on the virtual machine or virtual machine scale set. */ @@ -993,6 +944,8 @@ export interface VirtualMachineScaleSetUpdateVMProfile { storageProfile?: VirtualMachineScaleSetUpdateStorageProfile; /** The virtual machine scale set network profile. */ networkProfile?: VirtualMachineScaleSetUpdateNetworkProfile; + /** The virtual machine scale set security posture reference. */ + securityPostureReference?: SecurityPostureReferenceUpdate; /** The virtual machine scale set Security profile */ securityProfile?: SecurityProfile; /** The virtual machine scale set diagnostics profile. */ @@ -1128,6 +1081,16 @@ export interface VirtualMachineScaleSetUpdatePublicIPAddressConfiguration { deleteOption?: DeleteOptions; } +/** Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01 */ +export interface SecurityPostureReferenceUpdate { + /** The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest */ + id?: string; + /** The list of virtual machine extension names to exclude when applying the security posture. */ + excludeExtensions?: string[]; + /** Whether the security posture can be overridden by the user. */ + isOverridable?: boolean; +} + /** The Update Resource model definition. */ export interface UpdateResource { /** Resource tags */ @@ -1204,6 +1167,20 @@ export interface VirtualMachineScaleSetVMExtensionsSummary { readonly statusesSummary?: VirtualMachineStatusCodeCount[]; } +/** Instance view status. */ +export interface InstanceViewStatus { + /** The status code. */ + code?: string; + /** The level code. */ + level?: StatusLevelTypes; + /** The short localizable label for the status. */ + displayStatus?: string; + /** The detailed status message, including for alerts and error messages. */ + message?: string; + /** The time of the status. */ + time?: Date; +} + /** Summary for an orchestration service of a virtual machine scale set. */ export interface OrchestrationServiceSummary { /** @@ -1477,6 +1454,20 @@ export interface OrchestrationServiceStateInput { action: OrchestrationServiceStateAction; } +/** The instance view of a virtual machine extension. */ +export interface VirtualMachineExtensionInstanceView { + /** The virtual machine extension name. */ + name?: string; + /** Specifies the type of the extension; an example is "CustomScriptExtension". */ + type?: string; + /** Specifies the version of the script handler. */ + typeHandlerVersion?: string; + /** The resource status information. */ + substatuses?: InstanceViewStatus[]; + /** The resource status information. */ + statuses?: InstanceViewStatus[]; +} + /** The List VMSS VM Extension operation response */ export interface VirtualMachineScaleSetVMExtensionsListResult { /** The list of VMSS VM extensions */ @@ -1846,6 +1837,29 @@ export interface VirtualMachineScaleSetVMProtectionPolicy { protectFromScaleSetActions?: boolean; } +/** The Resource model definition with location property as optional. */ +export interface ResourceWithOptionalLocation { + /** Resource location */ + location?: string; + /** + * Resource Id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Resource name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Resource type + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** Resource tags */ + tags?: { [propertyName: string]: string }; +} + /** Identity for the virtual machine. */ export interface VirtualMachineIdentity { /** @@ -5122,39 +5136,6 @@ export interface DiskRestorePointAttributes extends SubResourceReadOnly { sourceDiskRestorePoint?: ApiEntityReference; } -/** Describes a Virtual Machine Extension. */ -export interface VirtualMachineExtension extends ResourceWithOptionalLocation { - /** How the extension handler should be forced to update even if the extension configuration has not changed. */ - forceUpdateTag?: string; - /** The name of the extension handler publisher. */ - publisher?: string; - /** Specifies the type of the extension; an example is "CustomScriptExtension". */ - typePropertiesType?: string; - /** Specifies the version of the script handler. */ - typeHandlerVersion?: string; - /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ - autoUpgradeMinorVersion?: boolean; - /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */ - enableAutomaticUpgrade?: boolean; - /** Json formatted public settings for the extension. */ - settings?: any; - /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ - protectedSettings?: any; - /** - * The provisioning state, which only appears in the response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** The virtual machine extension instance view. */ - instanceView?: VirtualMachineExtensionInstanceView; - /** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */ - suppressFailures?: boolean; - /** The extensions protected settings that are passed by reference, and consumed from key vault */ - protectedSettingsFromKeyVault?: KeyVaultSecretReference; - /** Collection of extension names after which this extension needs to be provisioned. */ - provisionAfterExtensions?: string[]; -} - /** Describes a Virtual Machine Scale Set. */ export interface VirtualMachineScaleSet extends Resource { /** The virtual machine scale set sku. */ @@ -6430,6 +6411,39 @@ export interface VirtualMachineScaleSetVMReimageParameters forceUpdateOSDiskForEphemeral?: boolean; } +/** Describes a Virtual Machine Extension. */ +export interface VirtualMachineExtension extends ResourceWithOptionalLocation { + /** How the extension handler should be forced to update even if the extension configuration has not changed. */ + forceUpdateTag?: string; + /** The name of the extension handler publisher. */ + publisher?: string; + /** Specifies the type of the extension; an example is "CustomScriptExtension". */ + typePropertiesType?: string; + /** Specifies the version of the script handler. */ + typeHandlerVersion?: string; + /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ + autoUpgradeMinorVersion?: boolean; + /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. */ + enableAutomaticUpgrade?: boolean; + /** Json formatted public settings for the extension. */ + settings?: any; + /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ + protectedSettings?: any; + /** + * The provisioning state, which only appears in the response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** The virtual machine extension instance view. */ + instanceView?: VirtualMachineExtensionInstanceView; + /** Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. */ + suppressFailures?: boolean; + /** The extensions protected settings that are passed by reference, and consumed from key vault */ + protectedSettingsFromKeyVault?: KeyVaultSecretReference; + /** Collection of extension names after which this extension needs to be provisioned. */ + provisionAfterExtensions?: string[]; +} + /** The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. */ export interface DedicatedHostInstanceViewWithName extends DedicatedHostInstanceView { @@ -9679,14 +9693,14 @@ export type ProtocolTypes = "Http" | "Https"; export type CachingTypes = "None" | "ReadOnly" | "ReadWrite"; /** Defines values for OperatingSystemTypes. */ export type OperatingSystemTypes = "Windows" | "Linux"; -/** Defines values for StatusLevelTypes. */ -export type StatusLevelTypes = "Info" | "Warning" | "Error"; /** Defines values for ResourceIdentityType. */ export type ResourceIdentityType = | "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; +/** Defines values for StatusLevelTypes. */ +export type StatusLevelTypes = "Info" | "Warning" | "Error"; /** Defines values for VirtualMachineScaleSetSkuScaleType. */ export type VirtualMachineScaleSetSkuScaleType = "Automatic" | "None"; /** Defines values for UpgradeState. */ @@ -10570,7 +10584,7 @@ export interface VirtualMachinesConvertToManagedDisksOptionalParams /** Optional parameters. */ export interface VirtualMachinesDeallocateOptionalParams extends coreClient.OperationOptions { - /** Optional parameter to hibernate a virtual machine. (Feature in Preview) */ + /** Optional parameter to hibernate a virtual machine. */ hibernate?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index dd59cd325ee2..5be36ecb1896 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -2387,6 +2387,7 @@ export const SecurityPostureReference: coreClient.CompositeMapper = { modelProperties: { id: { serializedName: "id", + required: true, type: { name: "String", }, @@ -2397,144 +2398,15 @@ export const SecurityPostureReference: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "Composite", - className: "VirtualMachineExtension", - }, - }, - }, - }, - }, - }, -}; - -export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineExtensionInstanceView", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - type: { - name: "String", - }, - }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", - type: { - name: "String", - }, - }, - substatuses: { - serializedName: "substatuses", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus", - }, - }, - }, - }, - statuses: { - serializedName: "statuses", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus", + name: "String", }, }, }, }, - }, - }, -}; - -export const InstanceViewStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InstanceViewStatus", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String", - }, - }, - level: { - serializedName: "level", - type: { - name: "Enum", - allowedValues: ["Info", "Warning", "Error"], - }, - }, - displayStatus: { - serializedName: "displayStatus", - type: { - name: "String", - }, - }, - message: { - serializedName: "message", - type: { - name: "String", - }, - }, - time: { - serializedName: "time", - type: { - name: "DateTime", - }, - }, - }, - }, -}; - -export const ResourceWithOptionalLocation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceWithOptionalLocation", - modelProperties: { - location: { - serializedName: "location", + isOverridable: { + serializedName: "isOverridable", type: { - name: "String", - }, - }, - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "Boolean", }, }, }, @@ -2852,6 +2724,13 @@ export const VirtualMachineScaleSetUpdateVMProfile: coreClient.CompositeMapper = className: "VirtualMachineScaleSetUpdateNetworkProfile", }, }, + securityPostureReference: { + serializedName: "securityPostureReference", + type: { + name: "Composite", + className: "SecurityPostureReferenceUpdate", + }, + }, securityProfile: { serializedName: "securityProfile", type: { @@ -3319,6 +3198,38 @@ export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClien }, }; +export const SecurityPostureReferenceUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityPostureReferenceUpdate", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + excludeExtensions: { + serializedName: "excludeExtensions", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + isOverridable: { + serializedName: "isOverridable", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + export const UpdateResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3507,6 +3418,46 @@ export const VirtualMachineScaleSetVMExtensionsSummary: coreClient.CompositeMapp }, }; +export const InstanceViewStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceViewStatus", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String", + }, + }, + level: { + serializedName: "level", + type: { + name: "Enum", + allowedValues: ["Info", "Warning", "Error"], + }, + }, + displayStatus: { + serializedName: "displayStatus", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + type: { + name: "String", + }, + }, + time: { + serializedName: "time", + type: { + name: "DateTime", + }, + }, + }, + }, +}; + export const OrchestrationServiceSummary: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4056,6 +4007,57 @@ export const OrchestrationServiceStateInput: coreClient.CompositeMapper = { }, }; +export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineExtensionInstanceView", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + type: { + name: "String", + }, + }, + typeHandlerVersion: { + serializedName: "typeHandlerVersion", + type: { + name: "String", + }, + }, + substatuses: { + serializedName: "substatuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus", + }, + }, + }, + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, +}; + export const VirtualMachineScaleSetVMExtensionsListResult: coreClient.CompositeMapper = { type: { @@ -5199,6 +5201,49 @@ export const VirtualMachineScaleSetVMProtectionPolicy: coreClient.CompositeMappe }, }; +export const ResourceWithOptionalLocation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceWithOptionalLocation", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + export const VirtualMachineIdentity: coreClient.CompositeMapper = { type: { name: "Composite", @@ -13286,102 +13331,6 @@ export const DiskRestorePointAttributes: coreClient.CompositeMapper = { }, }; -export const VirtualMachineExtension: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineExtension", - modelProperties: { - ...ResourceWithOptionalLocation.type.modelProperties, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", - type: { - name: "String", - }, - }, - publisher: { - serializedName: "properties.publisher", - type: { - name: "String", - }, - }, - typePropertiesType: { - serializedName: "properties.type", - type: { - name: "String", - }, - }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", - type: { - name: "String", - }, - }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", - type: { - name: "Boolean", - }, - }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", - type: { - name: "Boolean", - }, - }, - settings: { - serializedName: "properties.settings", - type: { - name: "any", - }, - }, - protectedSettings: { - serializedName: "properties.protectedSettings", - type: { - name: "any", - }, - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - instanceView: { - serializedName: "properties.instanceView", - type: { - name: "Composite", - className: "VirtualMachineExtensionInstanceView", - }, - }, - suppressFailures: { - serializedName: "properties.suppressFailures", - type: { - name: "Boolean", - }, - }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", - type: { - name: "Composite", - className: "KeyVaultSecretReference", - }, - }, - provisionAfterExtensions: { - serializedName: "properties.provisionAfterExtensions", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - export const VirtualMachineScaleSet: coreClient.CompositeMapper = { type: { name: "Composite", @@ -16617,6 +16566,102 @@ export const VirtualMachineScaleSetVMReimageParameters: coreClient.CompositeMapp }, }; +export const VirtualMachineExtension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineExtension", + modelProperties: { + ...ResourceWithOptionalLocation.type.modelProperties, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String", + }, + }, + publisher: { + serializedName: "properties.publisher", + type: { + name: "String", + }, + }, + typePropertiesType: { + serializedName: "properties.type", + type: { + name: "String", + }, + }, + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", + type: { + name: "String", + }, + }, + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", + type: { + name: "Boolean", + }, + }, + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", + type: { + name: "Boolean", + }, + }, + settings: { + serializedName: "properties.settings", + type: { + name: "any", + }, + }, + protectedSettings: { + serializedName: "properties.protectedSettings", + type: { + name: "any", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + instanceView: { + serializedName: "properties.instanceView", + type: { + name: "Composite", + className: "VirtualMachineExtensionInstanceView", + }, + }, + suppressFailures: { + serializedName: "properties.suppressFailures", + type: { + name: "Boolean", + }, + }, + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", + type: { + name: "Composite", + className: "KeyVaultSecretReference", + }, + }, + provisionAfterExtensions: { + serializedName: "properties.provisionAfterExtensions", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + export const DedicatedHostInstanceViewWithName: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/compute/arm-compute/test/sampleTest.ts b/sdk/compute/arm-compute/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/compute/arm-compute/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/compute/arm-compute/tsconfig.json b/sdk/compute/arm-compute/tsconfig.json index b84abc8423ab..3e6ae96443f3 100644 --- a/sdk/compute/arm-compute/tsconfig.json +++ b/sdk/compute/arm-compute/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-compute": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"