From 91f9de78cb666744af4df0e77b996e01393baa15 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 14 Sep 2023 21:26:53 +0000 Subject: [PATCH] CodeGen from PR 25800 in Azure/azure-rest-api-specs Merge 448b7ef74ede3737e6dcff802ce7016beaab24ac into 79a8753d9ea236631f7aff0cc549ca49e979b42e --- common/config/rush/pnpm-lock.yaml | 195 +++++++++-- sdk/compute/arm-compute/CHANGELOG.md | 57 +++- sdk/compute/arm-compute/_meta.json | 8 +- sdk/compute/arm-compute/package.json | 27 +- .../arm-compute/review/arm-compute.api.md | 128 ++++++- .../src/computeManagementClient.ts | 2 +- sdk/compute/arm-compute/src/models/index.ts | 269 +++++++++++++-- sdk/compute/arm-compute/src/models/mappers.ts | 319 +++++++++++++++++- .../arm-compute/src/models/parameters.ts | 6 +- .../arm-compute/src/operations/images.ts | 6 +- .../src/operationsInterfaces/images.ts | 3 +- sdk/compute/arm-compute/test/sampleTest.ts | 43 +++ sdk/compute/arm-compute/tsconfig.json | 10 +- 13 files changed, 967 insertions(+), 106 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 d940092e685a..ab315681fd0f 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1539,6 +1539,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'} @@ -1963,6 +1975,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 @@ -2430,7 +2449,7 @@ packages: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.36 - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/chai-as-promised/7.1.6: @@ -2452,7 +2471,7 @@ packages: /@types/connect/3.4.36: resolution: {integrity: sha512-P63Zd/JUGq+PdrM1lv0Wv5SBYeA2+CORvbrXbngriYY0jzLUWfQMQQxOhjONEz/wlHOAxOdY7CY65rgQdTjq2w==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/cookie/0.4.1: @@ -2462,7 +2481,7 @@ packages: /@types/cors/2.8.14: resolution: {integrity: sha512-RXHUvNWYICtbP6s18PnOCaqToK8y14DnLd75c6HfyKf228dxy7pHNOQkxPtvXKp/hINFMDjbYzsj63nnpPMSRQ==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/debug/4.1.8: @@ -2474,7 +2493,7 @@ packages: /@types/decompress/4.2.4: resolution: {integrity: sha512-/C8kTMRTNiNuWGl5nEyKbPiMv6HA+0RbEXzFhFBEzASM6+oa4tJro9b8nj7eRlOFfuLdzUU+DS/GPDlvvzMOhA==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/eslint/8.4.10: @@ -2495,7 +2514,7 @@ packages: /@types/express-serve-static-core/4.17.36: resolution: {integrity: sha512-zbivROJ0ZqLAtMzgzIUC4oNqDG9iF0lSsAqpOD9kbs5xcIM3dTiyuHvBc7R8MtWBp3AAWGaovJa+wzWPjLYW7Q==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 '@types/qs': 6.9.8 '@types/range-parser': 1.2.4 '@types/send': 0.17.1 @@ -2513,13 +2532,13 @@ packages: /@types/fs-extra/8.1.2: resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/fs-extra/9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/http-errors/2.0.1: @@ -2536,7 +2555,7 @@ packages: /@types/is-buffer/2.0.0: resolution: {integrity: sha512-0f7N/e3BAz32qDYvgB4d2cqv1DqUwvGxHkXsrucICn8la1Vb6Yl6Eg8mPScGwUiqHJeE7diXlzaK+QMA9m4Gxw==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/json-schema/7.0.12: @@ -2550,13 +2569,13 @@ packages: /@types/jsonwebtoken/9.0.2: resolution: {integrity: sha512-drE6uz7QBKq1fYqqoFKTDRdFCPHd5TCub75BM+D+cMx7NU9hUz7SESLfC2fSCXVFMO5Yj8sOWHuGqPgjc+fz0Q==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/jws/3.2.5: resolution: {integrity: sha512-xGTxZH34xOryaTN8CMsvhh9lfNqFuHiMoRvsLYWQdBJHqiECyfInXVl2eK8Jz2emxZWMIn5RBlmr3oDVPeWujw==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/linkify-it/3.0.3: @@ -2607,13 +2626,13 @@ packages: /@types/mysql/2.15.21: resolution: {integrity: sha512-NPotx5CVful7yB+qZbWtXL2fA4e7aEHkihHLjklc6ID8aq7bhguHgeIoC1EmSNTAuCgI6ZXrjt2ZSaXnYX0EUg==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/node-fetch/2.6.4: resolution: {integrity: sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 form-data: 3.0.1 dev: false @@ -2638,7 +2657,7 @@ packages: /@types/pg/8.6.1: resolution: {integrity: sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 pg-protocol: 1.6.0 pg-types: 2.2.0 dev: false @@ -2666,7 +2685,7 @@ packages: /@types/resolve/1.17.1: resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/resolve/1.20.2: @@ -2689,7 +2708,7 @@ packages: resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==} dependencies: '@types/mime': 1.3.2 - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/serve-static/1.15.2: @@ -2697,7 +2716,7 @@ packages: dependencies: '@types/http-errors': 2.0.1 '@types/mime': 3.0.1 - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/shimmer/1.0.2: @@ -2717,13 +2736,13 @@ packages: /@types/stoppable/1.1.1: resolution: {integrity: sha512-b8N+fCADRIYYrGZOcmOR8ZNBOqhktWTB/bMUl5LvGtT201QKJZOOH5UsFyI3qtteM6ZAJbJqZoBcLqqxKIwjhw==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/through/0.0.31: resolution: {integrity: sha512-LpKpmb7FGevYgXnBXYs6HWnmiFyVG07Pt1cnbgM1IhEacITTiUaBXXvOR3Y50ksaJWGSfhbEvQFivQEFGCC55w==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/tough-cookie/4.0.3: @@ -2737,7 +2756,7 @@ packages: /@types/tunnel/0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/underscore/1.11.9: @@ -2755,19 +2774,19 @@ packages: /@types/ws/7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/ws/8.5.5: resolution: {integrity: sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/xml2js/0.4.12: resolution: {integrity: sha512-CZPpQKBZ8db66EP5hCjwvYrLThgZvnyZrPXK2W+UI1oOaWezGt34iOaUCX4Jah2X8+rQqjvl9VKEIT8TR1I0rA==} dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false /@types/yargs-parser/21.0.0: @@ -2784,7 +2803,7 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 14.18.59 + '@types/node': 16.18.50 dev: false optional: true @@ -3028,6 +3047,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'} @@ -3042,6 +3066,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'} @@ -3823,7 +3852,7 @@ packages: resolution: {integrity: sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==} deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) dependencies: - ms: 2.1.1 + ms: 2.1.3 dev: false /debug/3.2.7: @@ -4064,7 +4093,11 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20230913 + 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: @@ -4093,6 +4126,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'} @@ -4115,7 +4152,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.14 - '@types/node': 14.18.59 + '@types/node': 16.18.50 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -4850,6 +4887,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/3.0.1: resolution: {integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==} engines: {node: '>= 6'} @@ -5039,13 +5084,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 @@ -5735,6 +5792,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 @@ -6296,6 +6362,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: @@ -6538,6 +6609,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 @@ -6547,6 +6625,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 @@ -7178,6 +7261,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'} @@ -7412,7 +7503,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 14.18.59 + '@types/node': 16.18.50 long: 5.2.3 dev: false @@ -7760,6 +7851,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: @@ -8012,6 +8111,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 @@ -8205,6 +8309,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'} @@ -8276,6 +8389,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'} @@ -8682,8 +8802,8 @@ packages: hasBin: true dev: false - /typescript/5.3.0-dev.20230913: - resolution: {integrity: sha512-+1lrLCj/NdyBbWXK3ifRSzmg0pSg2WLDmzeXf1/vTOb84eV/TCJ1i9eOS4c40T3tzDSAOjP39x9/+unUakbuKA==} + /typescript/5.3.0-dev.20230914: + resolution: {integrity: sha512-fLOsSwW/WYEdqhxDb4iaJ2IkPmxMM6di8p++ey3SlOTaK0sdczIYVl9tlCxkajWOp0UnvBfO6Bxe+g9xxZMypw==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -8957,6 +9077,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 @@ -10992,7 +11121,7 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-KcBzyf8z3VH4IKvOJ+/ckCEwuitWnkinnVC2C3TgLimT/fPwEXTAh6P4lM6t3VYdXZlRBGauagy0ikLpLYHwkQ==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-Obt+sejPhHRPctPjEyLNiHCPdjEBnCaf8jnY/PEQMEgqOdbvIOLW23wwG5B36nEewTXrPugYd7ldFBU9OtU3ZQ==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: @@ -11010,7 +11139,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_nwr4qppzkvr3a3tcnbgc45ok6m ts-node: 10.9.1_ee7w3dnijb2lty3fio6i5lkcbm @@ -13079,7 +13208,7 @@ packages: dev: false file:projects/arm-iothub.tgz: - resolution: {integrity: sha512-+3gvCFT4w9wn6/QCmpzdcb56w92zs4yTHo/AbHJJ0l8ZZt1OYY8UsyNY9LhN5pXYEYfa3JdsB/I+iD/+Epea6w==, tarball: file:projects/arm-iothub.tgz} + resolution: {integrity: sha512-ebXUh3NTS3XnhBot1LGjHqmVMIgLuJqC6CTOBpyd6gu1plGePRPKnCNRnrUF+BHxYrV5qNBbDfIvM8CCP+QsWQ==, tarball: file:projects/arm-iothub.tgz} name: '@rush-temp/arm-iothub' version: 0.0.0 dependencies: diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index c04a14081ca2..6af1063d806c 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,15 +1,52 @@ # Release History + +## 21.2.0 (2023-09-14) + +**Features** -## 21.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface CommunityGalleryMetadata + - Added Interface GalleryImageVersionUefiSettings + - Added Interface ImageVersionSecurityProfile + - Added Interface UefiKey + - Added Interface UefiKeySignatures + - Added Type Alias DomainNameLabelScopeTypes + - Added Type Alias NetworkInterfaceAuxiliaryMode + - Added Type Alias NetworkInterfaceAuxiliarySku + - Added Type Alias UefiKeyType + - Added Type Alias UefiSignatureTemplateName + - Interface CommunityGallery has a new optional parameter artifactTags + - Interface CommunityGallery has a new optional parameter communityMetadata + - Interface CommunityGallery has a new optional parameter disclaimer + - Interface CommunityGalleryImage has a new optional parameter artifactTags + - Interface CommunityGalleryImage has a new optional parameter disclaimer + - Interface CommunityGalleryImageVersion has a new optional parameter artifactTags + - Interface CommunityGalleryImageVersion has a new optional parameter disclaimer + - Interface CreationData has a new optional parameter elasticSanResourceId + - Interface Disk has a new optional parameter lastOwnershipUpdateTime + - Interface GalleryImageVersion has a new optional parameter securityProfile + - Interface GalleryImageVersionUpdate has a new optional parameter securityProfile + - Interface SharedGallery has a new optional parameter artifactTags + - Interface SharedGalleryImage has a new optional parameter artifactTags + - Interface SharedGalleryImageVersion has a new optional parameter artifactTags + - Interface VirtualMachineNetworkInterfaceConfiguration has a new optional parameter auxiliaryMode + - Interface VirtualMachineNetworkInterfaceConfiguration has a new optional parameter auxiliarySku + - Interface VirtualMachinePublicIPAddressDnsSettingsConfiguration has a new optional parameter domainNameLabelScope + - Interface VirtualMachineScaleSetNetworkConfiguration has a new optional parameter auxiliaryMode + - Interface VirtualMachineScaleSetNetworkConfiguration has a new optional parameter auxiliarySku + - Interface VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings has a new optional parameter domainNameLabelScope + - Interface VirtualMachineScaleSetUpdateNetworkConfiguration has a new optional parameter auxiliaryMode + - Interface VirtualMachineScaleSetUpdateNetworkConfiguration has a new optional parameter auxiliarySku + - Interface VirtualMachineScaleSetVM has a new optional parameter timeCreated + - Added Enum KnownDomainNameLabelScopeTypes + - Added Enum KnownNetworkInterfaceAuxiliaryMode + - Added Enum KnownNetworkInterfaceAuxiliarySku + - Added Enum KnownUefiKeyType + - Added Enum KnownUefiSignatureTemplateName + - Enum KnownConfidentialVMEncryptionType has a new value NonPersistedTPM + - Enum KnownDiskCreateOption has a new value CopyFromSanSnapshot + - Enum KnownReplicationStatusTypes has a new value UefiSettings + + ## 21.1.0 (2023-07-07) **Features** diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index 86612fe07657..3913fc191f82 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "310a0100f5b020c1900c527a6aa70d21992f078a", + "commit": "412a063cd8760462497733658b5e1bf9a1839984", "readme": "specification/compute/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\\compute\\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/compute/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/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index b20a8b8dff04..80a484bd3d64 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "21.1.1", + "version": "21.2.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,9 +48,8 @@ "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^14.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/arm-network": "^26.0.0", - "ts-node": "^10.0.0" + "ts-node": "^10.0.0", + "@azure/dev-tool": "^1.0.0" }, "repository": { "type": "git", @@ -85,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", @@ -113,13 +112,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 f9b50249b9ef..336184a2b90e 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -931,12 +931,21 @@ export type CommunityGalleriesGetResponse = CommunityGallery; // @public export interface CommunityGallery extends PirCommunityGalleryResource { + artifactTags?: { + [propertyName: string]: string; + }; + communityMetadata?: CommunityGalleryMetadata; + disclaimer?: string; } // @public export interface CommunityGalleryImage extends PirCommunityGalleryResource { architecture?: Architecture; + artifactTags?: { + [propertyName: string]: string; + }; disallowed?: Disallowed; + disclaimer?: string; endOfLifeDate?: Date; eula?: string; features?: GalleryImageFeature[]; @@ -991,6 +1000,10 @@ export type CommunityGalleryImagesListResponse = CommunityGalleryImageList; // @public export interface CommunityGalleryImageVersion extends PirCommunityGalleryResource { + artifactTags?: { + [propertyName: string]: string; + }; + disclaimer?: string; endOfLifeDate?: Date; excludeFromLatest?: boolean; publishedDate?: Date; @@ -1040,6 +1053,15 @@ export interface CommunityGalleryInfo { publisherUri?: string; } +// @public +export interface CommunityGalleryMetadata { + eula?: string; + privacyStatementUri?: string; + publicNames?: string[]; + publisherContact?: string; + publisherUri?: string; +} + // @public (undocumented) export class ComputeManagementClient extends coreClient.ServiceClient { // (undocumented) @@ -1186,6 +1208,7 @@ export type CopyCompletionErrorReason = string; // @public export interface CreationData { createOption: DiskCreateOption; + elasticSanResourceId?: string; galleryImageReference?: ImageDiskReference; imageReference?: ImageDiskReference; logicalSectorSize?: number; @@ -1517,6 +1540,7 @@ export interface Disk extends Resource { encryptionSettingsCollection?: EncryptionSettingsCollection; extendedLocation?: ExtendedLocation; hyperVGeneration?: HyperVGeneration; + readonly lastOwnershipUpdateTime?: Date; readonly managedBy?: string; readonly managedByExtended?: string[]; maxShares?: number; @@ -2080,6 +2104,9 @@ export interface DiskUpdate { tier?: string; } +// @public +export type DomainNameLabelScopeTypes = string; + // @public export type EdgeZoneStorageAccountType = string; @@ -2631,6 +2658,7 @@ export interface GalleryImageVersion extends Resource { publishingProfile?: GalleryImageVersionPublishingProfile; readonly replicationStatus?: ReplicationStatus; safetyProfile?: GalleryImageVersionSafetyProfile; + securityProfile?: ImageVersionSecurityProfile; storageProfile?: GalleryImageVersionStorageProfile; } @@ -2715,12 +2743,19 @@ export interface GalleryImageVersionsUpdateOptionalParams extends coreClient.Ope // @public export type GalleryImageVersionsUpdateResponse = GalleryImageVersion; +// @public +export interface GalleryImageVersionUefiSettings { + additionalSignatures?: UefiKeySignatures; + signatureTemplateNames?: UefiSignatureTemplateName[]; +} + // @public export interface GalleryImageVersionUpdate extends UpdateResourceDefinition { readonly provisioningState?: GalleryProvisioningState; publishingProfile?: GalleryImageVersionPublishingProfile; readonly replicationStatus?: ReplicationStatus; safetyProfile?: GalleryImageVersionSafetyProfile; + securityProfile?: ImageVersionSecurityProfile; storageProfile?: GalleryImageVersionStorageProfile; } @@ -2966,6 +3001,11 @@ export interface ImageUpdate extends UpdateResource { storageProfile?: ImageStorageProfile; } +// @public +export interface ImageVersionSecurityProfile { + uefiSettings?: GalleryImageVersionUefiSettings; +} + // @public export interface InnerError { errordetail?: string; @@ -3101,7 +3141,8 @@ export enum KnownCloudServiceUpgradeMode { export enum KnownConfidentialVMEncryptionType { EncryptedVMGuestStateOnlyWithPmk = "EncryptedVMGuestStateOnlyWithPmk", EncryptedWithCmk = "EncryptedWithCmk", - EncryptedWithPmk = "EncryptedWithPmk" + EncryptedWithPmk = "EncryptedWithPmk", + NonPersistedTPM = "NonPersistedTPM" } // @public @@ -3149,6 +3190,7 @@ export enum KnownDiskControllerTypes { export enum KnownDiskCreateOption { Attach = "Attach", Copy = "Copy", + CopyFromSanSnapshot = "CopyFromSanSnapshot", CopyStart = "CopyStart", Empty = "Empty", FromImage = "FromImage", @@ -3223,6 +3265,14 @@ export enum KnownDiskStorageAccountTypes { UltraSSDLRS = "UltraSSD_LRS" } +// @public +export enum KnownDomainNameLabelScopeTypes { + NoReuse = "NoReuse", + ResourceGroupReuse = "ResourceGroupReuse", + SubscriptionReuse = "SubscriptionReuse", + TenantReuse = "TenantReuse" +} + // @public export enum KnownEdgeZoneStorageAccountType { PremiumLRS = "Premium_LRS", @@ -3383,6 +3433,22 @@ export enum KnownNetworkApiVersion { TwoThousandTwenty1101 = "2020-11-01" } +// @public +export enum KnownNetworkInterfaceAuxiliaryMode { + AcceleratedConnections = "AcceleratedConnections", + Floating = "Floating", + None = "None" +} + +// @public +export enum KnownNetworkInterfaceAuxiliarySku { + A1 = "A1", + A2 = "A2", + A4 = "A4", + A8 = "A8", + None = "None" +} + // @public export enum KnownOperatingSystemType { Linux = "Linux", @@ -3515,7 +3581,8 @@ export enum KnownReplicationState { // @public export enum KnownReplicationStatusTypes { - ReplicationStatus = "ReplicationStatus" + ReplicationStatus = "ReplicationStatus", + UefiSettings = "UefiSettings" } // @public @@ -3611,6 +3678,19 @@ export enum KnownStorageAccountTypes { UltraSSDLRS = "UltraSSD_LRS" } +// @public +export enum KnownUefiKeyType { + Sha256 = "sha256", + X509 = "x509" +} + +// @public +export enum KnownUefiSignatureTemplateName { + MicrosoftUefiCertificateAuthorityTemplate = "MicrosoftUefiCertificateAuthorityTemplate", + MicrosoftWindowsTemplate = "MicrosoftWindowsTemplate", + NoSignatureTemplate = "NoSignatureTemplate" +} + // @public export enum KnownVirtualMachineEvictionPolicyTypes { Deallocate = "Deallocate", @@ -4043,6 +4123,12 @@ export type NetworkAccessPolicy = string; // @public export type NetworkApiVersion = string; +// @public +export type NetworkInterfaceAuxiliaryMode = string; + +// @public +export type NetworkInterfaceAuxiliarySku = string; + // @public export interface NetworkInterfaceReference extends SubResource { deleteOption?: DeleteOptions; @@ -5103,6 +5189,9 @@ export type SharedGalleriesListResponse = SharedGalleryList; // @public export interface SharedGallery extends PirSharedGalleryResource { + readonly artifactTags?: { + [propertyName: string]: string; + }; } // @public @@ -5122,6 +5211,9 @@ export type SharedGalleryHostCaching = string; // @public export interface SharedGalleryImage extends PirSharedGalleryResource { architecture?: Architecture; + artifactTags?: { + [propertyName: string]: string; + }; disallowed?: Disallowed; endOfLifeDate?: Date; eula?: string; @@ -5171,6 +5263,9 @@ export type SharedGalleryImagesListResponse = SharedGalleryImageList; // @public export interface SharedGalleryImageVersion extends PirSharedGalleryResource { + artifactTags?: { + [propertyName: string]: string; + }; endOfLifeDate?: Date; excludeFromLatest?: boolean; publishedDate?: Date; @@ -5621,12 +5716,32 @@ export interface TerminateNotificationProfile { export interface ThrottledRequestsInput extends LogAnalyticsInputBase { } +// @public +export interface UefiKey { + signatureType?: UefiKeyType; + value?: string[]; +} + +// @public +export interface UefiKeySignatures { + db?: UefiKey[]; + dbx?: UefiKey[]; + kek?: UefiKey[]; + pk?: UefiKey; +} + +// @public +export type UefiKeyType = string; + // @public export interface UefiSettings { secureBootEnabled?: boolean; vTpmEnabled?: boolean; } +// @public +export type UefiSignatureTemplateName = string; + // @public export interface UpdateDomain { readonly id?: string; @@ -6197,6 +6312,8 @@ export interface VirtualMachineListResult { // @public export interface VirtualMachineNetworkInterfaceConfiguration { + auxiliaryMode?: NetworkInterfaceAuxiliaryMode; + auxiliarySku?: NetworkInterfaceAuxiliarySku; deleteOption?: DeleteOptions; disableTcpStateTracking?: boolean; dnsSettings?: VirtualMachineNetworkInterfaceDnsSettingsConfiguration; @@ -6254,6 +6371,7 @@ export interface VirtualMachinePublicIPAddressConfiguration { // @public export interface VirtualMachinePublicIPAddressDnsSettingsConfiguration { domainNameLabel: string; + domainNameLabelScope?: DomainNameLabelScopeTypes; } // @public @@ -6689,6 +6807,8 @@ export interface VirtualMachineScaleSetManagedDiskParameters { // @public export interface VirtualMachineScaleSetNetworkConfiguration { + auxiliaryMode?: NetworkInterfaceAuxiliaryMode; + auxiliarySku?: NetworkInterfaceAuxiliarySku; deleteOption?: DeleteOptions; disableTcpStateTracking?: boolean; dnsSettings?: VirtualMachineScaleSetNetworkConfigurationDnsSettings; @@ -6756,6 +6876,7 @@ export interface VirtualMachineScaleSetPublicIPAddressConfiguration { // @public export interface VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings { domainNameLabel: string; + domainNameLabelScope?: DomainNameLabelScopeTypes; } // @public @@ -7117,6 +7238,8 @@ export interface VirtualMachineScaleSetUpdateIPConfiguration { // @public export interface VirtualMachineScaleSetUpdateNetworkConfiguration { + auxiliaryMode?: NetworkInterfaceAuxiliaryMode; + auxiliarySku?: NetworkInterfaceAuxiliarySku; deleteOption?: DeleteOptions; disableTcpStateTracking?: boolean; dnsSettings?: VirtualMachineScaleSetNetworkConfigurationDnsSettings; @@ -7210,6 +7333,7 @@ export interface VirtualMachineScaleSetVM extends Resource { securityProfile?: SecurityProfile; readonly sku?: Sku; storageProfile?: StorageProfile; + readonly timeCreated?: Date; userData?: string; readonly vmId?: string; readonly zones?: string[]; diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index ac98c4bc74a1..e1fc45dbf8c3 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.1.1`; + const packageDetails = `azsdk-js-arm-compute/21.2.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 42acaa4a2538..935268770b56 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -541,6 +541,10 @@ export interface VirtualMachineScaleSetNetworkConfiguration { enableIPForwarding?: boolean; /** Specify what happens to the network interface when the VM is deleted */ deleteOption?: DeleteOptions; + /** Specifies whether the Auxiliary mode is enabled for the Network Interface resource. */ + auxiliaryMode?: NetworkInterfaceAuxiliaryMode; + /** Specifies whether the Auxiliary sku is enabled for the Network Interface resource. */ + auxiliarySku?: NetworkInterfaceAuxiliarySku; } /** Describes a virtual machines scale sets network configuration's DNS settings. */ @@ -595,6 +599,8 @@ export interface VirtualMachineScaleSetPublicIPAddressConfiguration { export interface VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings { /** The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created */ domainNameLabel: string; + /** The Domain name label scope.The concatenation of the hashed domain name label that generated according to the policy from domain name label scope and vm index will be the domain name labels of the PublicIPAddress resources that will be created */ + domainNameLabelScope?: DomainNameLabelScopeTypes; } /** Contains the IP tag associated with the public IP address. */ @@ -998,6 +1004,10 @@ export interface VirtualMachineScaleSetUpdateNetworkConfiguration { enableIPForwarding?: boolean; /** Specify what happens to the network interface when the VM is deleted */ deleteOption?: DeleteOptions; + /** Specifies whether the Auxiliary mode is enabled for the Network Interface resource. */ + auxiliaryMode?: NetworkInterfaceAuxiliaryMode; + /** Specifies whether the Auxiliary sku is enabled for the Network Interface resource. */ + auxiliarySku?: NetworkInterfaceAuxiliarySku; } /** Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network */ @@ -1668,6 +1678,10 @@ export interface VirtualMachineNetworkInterfaceConfiguration { /** Specifies the IP configurations of the network interface. */ ipConfigurations?: VirtualMachineNetworkInterfaceIPConfiguration[]; dscpConfiguration?: SubResource; + /** Specifies whether the Auxiliary mode is enabled for the Network Interface resource. */ + auxiliaryMode?: NetworkInterfaceAuxiliaryMode; + /** Specifies whether the Auxiliary sku is enabled for the Network Interface resource. */ + auxiliarySku?: NetworkInterfaceAuxiliarySku; } /** Describes a virtual machines network configuration's DNS settings. */ @@ -1722,6 +1736,8 @@ export interface VirtualMachinePublicIPAddressConfiguration { export interface VirtualMachinePublicIPAddressDnsSettingsConfiguration { /** The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm network profile unique ID. */ domainNameLabel: string; + /** The Domain name label scope of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the hashed domain name label with policy according to the domain name label scope and vm network profile unique ID. */ + domainNameLabelScope?: DomainNameLabelScopeTypes; } /** Contains the IP tag associated with the public IP address. */ @@ -2860,6 +2876,8 @@ export interface CreationData { securityDataUri?: string; /** Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled. */ performancePlus?: boolean; + /** Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot. */ + elasticSanResourceId?: string; } /** The source image used for creating the disk. */ @@ -3505,7 +3523,7 @@ export interface GalleryIdentifier { /** Profile for gallery sharing to subscription or tenant */ export interface SharingProfile { - /** This property allows you to specify the permission of sharing gallery.

Possible values are:

**Private**

**Groups**

**Community** */ + /** This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.** */ permissions?: GallerySharingPermissionTypes; /** * A list of sharing profile groups. @@ -3518,7 +3536,7 @@ export interface SharingProfile { /** Group of the gallery sharing profile */ export interface SharingProfileGroup { - /** This property allows you to specify the type of sharing group.

Possible values are:

**Subscriptions**

**AADTenants** */ + /** This property allows you to specify the type of sharing group. Possible values are: **Subscriptions,** **AADTenants.** */ type?: SharingProfileGroupTypes; /** A list of subscription/tenant ids the gallery is aimed to be shared to. */ ids?: string[]; @@ -3807,6 +3825,40 @@ export interface RegionalReplicationStatus { readonly progress?: number; } +/** The security profile of a gallery image version */ +export interface ImageVersionSecurityProfile { + /** Contains UEFI settings for the image version. */ + uefiSettings?: GalleryImageVersionUefiSettings; +} + +/** Contains UEFI settings for the image version. */ +export interface GalleryImageVersionUefiSettings { + /** The name of the template(s) that contains default UEFI key signatures that will be added to the image. */ + signatureTemplateNames?: UefiSignatureTemplateName[]; + /** Additional UEFI key signatures that will be added to the image in addition to the signature templates */ + additionalSignatures?: UefiKeySignatures; +} + +/** Additional UEFI key signatures that will be added to the image in addition to the signature templates */ +export interface UefiKeySignatures { + /** The Platform Key of this image version. */ + pk?: UefiKey; + /** The Key Encryption Keys of this image version. */ + kek?: UefiKey[]; + /** The database of UEFI keys for this image version. */ + db?: UefiKey[]; + /** The database of revoked UEFI keys for this image version. */ + dbx?: UefiKey[]; +} + +/** A UEFI key signature. */ +export interface UefiKey { + /** The type of key signature. */ + signatureType?: UefiKeyType; + /** The value of the key signature. */ + value?: string[]; +} + /** A custom action that can be performed with a Gallery Application Version. */ export interface GalleryApplicationCustomAction { /** The name of the custom action. Must be unique within the Gallery Application Version. */ @@ -3900,7 +3952,7 @@ export interface GalleryApplicationVersionList { /** Specifies information about the gallery sharing profile update. */ export interface SharingUpdate { - /** This property allows you to specify the operation type of gallery sharing update.

Possible values are:

**Add**

**Remove**

**Reset** */ + /** This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.** */ operationType: SharingUpdateOperationTypes; /** A list of sharing profile groups. */ groups?: SharingProfileGroup[]; @@ -3963,7 +4015,21 @@ export interface SharedGalleryDiskImage { hostCaching?: SharedGalleryHostCaching; } -/** Base information about the community gallery resource in pir. */ +/** The metadata of community gallery. */ +export interface CommunityGalleryMetadata { + /** The publisher URI of this community gallery. */ + publisherUri?: string; + /** The publisher email id of this community gallery. */ + publisherContact?: string; + /** The end-user license agreement for this community gallery. */ + eula?: string; + /** A list of public names the gallery has. */ + publicNames?: string[]; + /** The link for the privacy statement of this community gallery from the gallery publisher. */ + privacyStatementUri?: string; +} + +/** Base information about the community gallery resource in the Platform Image Repository. */ export interface PirCommunityGalleryResource { /** * Resource name @@ -3998,7 +4064,7 @@ export interface CommunityGalleryImageIdentifier { export interface CommunityGalleryImageList { /** A list of community gallery images. */ value: CommunityGalleryImage[]; - /** The uri to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community gallery images. */ + /** The URI to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community gallery images. */ nextLink?: string; } @@ -4006,7 +4072,7 @@ export interface CommunityGalleryImageList { export interface CommunityGalleryImageVersionList { /** A list of community gallery image versions. */ value: CommunityGalleryImageVersion[]; - /** The uri to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of community gallery image versions. */ + /** The URI to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of community gallery image versions. */ nextLink?: string; } @@ -5105,6 +5171,11 @@ export interface VirtualMachineScaleSetVM extends Resource { protectionPolicy?: VirtualMachineScaleSetVMProtectionPolicy; /** UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here.

Minimum api-version: 2021-03-01 */ userData?: string; + /** + * Specifies the time at which the Virtual Machine resource was created.

Minimum api-version: 2021-11-01. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly timeCreated?: Date; } /** Describes a Virtual Machine. */ @@ -5562,6 +5633,11 @@ export interface Disk extends Resource { dataAccessAuthMode?: DataAccessAuthMode; /** Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 times a day) by detached from one virtual machine and attached to another. This property should not be set for disks that are not detached and attached frequently as it causes the disks to not align with the fault domain of the virtual machine. */ optimizedForFrequentAttach?: boolean; + /** + * The UTC time when the ownership state of the disk was last changed i.e., the time the disk was last attached or detached from a VM or the time when the VM to which the disk was attached was deallocated or started. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastOwnershipUpdateTime?: Date; } /** disk access resource. */ @@ -5728,7 +5804,7 @@ export interface GalleryImage extends Resource { privacyStatementUri?: string; /** The release note uri. */ releaseNoteUri?: string; - /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux** */ + /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.** */ osType?: OperatingSystemTypes; /** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */ osState?: OperatingSystemStateTypes; @@ -5773,6 +5849,8 @@ export interface GalleryImageVersion extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationStatus?: ReplicationStatus; + /** The security profile of a gallery image version */ + securityProfile?: ImageVersionSecurityProfile; } /** Specifies information about the gallery Application Definition that you want to create or update. */ @@ -5787,7 +5865,7 @@ export interface GalleryApplication extends Resource { releaseNoteUri?: string; /** The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. */ endOfLifeDate?: Date; - /** This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux** */ + /** This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.** */ supportedOSType?: OperatingSystemTypes; /** A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. */ customActions?: GalleryApplicationCustomAction[]; @@ -6340,7 +6418,7 @@ export interface GalleryImageUpdate extends UpdateResourceDefinition { privacyStatementUri?: string; /** The release note uri. */ releaseNoteUri?: string; - /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux** */ + /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.** */ osType?: OperatingSystemTypes; /** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */ osState?: OperatingSystemStateTypes; @@ -6385,6 +6463,8 @@ export interface GalleryImageVersionUpdate extends UpdateResourceDefinition { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly replicationStatus?: ReplicationStatus; + /** The security profile of a gallery image version */ + securityProfile?: ImageVersionSecurityProfile; } /** Specifies information about the gallery Application Definition that you want to update. */ @@ -6399,7 +6479,7 @@ export interface GalleryApplicationUpdate extends UpdateResourceDefinition { releaseNoteUri?: string; /** The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. */ endOfLifeDate?: Date; - /** This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux** */ + /** This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.** */ supportedOSType?: OperatingSystemTypes; /** A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. */ customActions?: GalleryApplicationCustomAction[]; @@ -6515,11 +6595,18 @@ export interface SharedGalleryDataDiskImage extends SharedGalleryDiskImage { } /** Specifies information about the Community Gallery that you want to create or update. */ -export interface CommunityGallery extends PirCommunityGalleryResource {} +export interface CommunityGallery extends PirCommunityGalleryResource { + /** The disclaimer for a community gallery resource. */ + disclaimer?: string; + /** The artifact tags of a community gallery resource. */ + artifactTags?: { [propertyName: string]: string }; + /** The metadata of community gallery. */ + communityMetadata?: CommunityGalleryMetadata; +} /** Specifies information about the gallery image definition that you want to create or update. */ export interface CommunityGalleryImage extends PirCommunityGalleryResource { - /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux** */ + /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.** */ osType?: OperatingSystemTypes; /** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */ osState?: OperatingSystemStateTypes; @@ -6539,10 +6626,14 @@ export interface CommunityGalleryImage extends PirCommunityGalleryResource { purchasePlan?: ImagePurchasePlan; /** The architecture of the image. Applicable to OS disks only. */ architecture?: Architecture; - /** Privacy statement uri for the current community gallery image. */ + /** Privacy statement URI for the current community gallery image. */ privacyStatementUri?: string; - /** End-user license agreement for the current community gallery image. */ + /** The end-user license agreement for the current community gallery image. */ eula?: string; + /** The disclaimer for a community gallery resource. */ + disclaimer?: string; + /** The artifact tags of a community gallery resource. */ + artifactTags?: { [propertyName: string]: string }; } /** Specifies information about the gallery image version that you want to create or update. */ @@ -6556,6 +6647,10 @@ export interface CommunityGalleryImageVersion excludeFromLatest?: boolean; /** Describes the storage profile of the image version. */ storageProfile?: SharedGalleryImageVersionStorageProfile; + /** The disclaimer for a community gallery resource. */ + disclaimer?: string; + /** The artifact tags of a community gallery resource. */ + artifactTags?: { [propertyName: string]: string }; } /** Describes a Virtual Machine Image. */ @@ -6586,11 +6681,17 @@ export interface VirtualMachineScaleSetReimageParameters } /** Specifies information about the Shared Gallery that you want to create or update. */ -export interface SharedGallery extends PirSharedGalleryResource {} +export interface SharedGallery extends PirSharedGalleryResource { + /** + * The artifact tags of a shared gallery resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly artifactTags?: { [propertyName: string]: string }; +} /** Specifies information about the gallery image definition that you want to create or update. */ export interface SharedGalleryImage extends PirSharedGalleryResource { - /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux** */ + /** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.** */ osType?: OperatingSystemTypes; /** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */ osState?: OperatingSystemStateTypes; @@ -6614,6 +6715,8 @@ export interface SharedGalleryImage extends PirSharedGalleryResource { privacyStatementUri?: string; /** End-user license agreement for the current community gallery image. */ eula?: string; + /** The artifact tags of a shared gallery resource. */ + artifactTags?: { [propertyName: string]: string }; } /** Specifies information about the gallery image version that you want to create or update. */ @@ -6626,6 +6729,8 @@ export interface SharedGalleryImageVersion extends PirSharedGalleryResource { excludeFromLatest?: boolean; /** Describes the storage profile of the image version. */ storageProfile?: SharedGalleryImageVersionStorageProfile; + /** The artifact tags of a shared gallery resource. */ + artifactTags?: { [propertyName: string]: string }; } /** Defines headers for VirtualMachineScaleSets_reapply operation. */ @@ -6900,6 +7005,30 @@ export enum KnownDiskDeleteOptionTypes { */ export type DiskDeleteOptionTypes = string; +/** Known values of {@link DomainNameLabelScopeTypes} that the service accepts. */ +export enum KnownDomainNameLabelScopeTypes { + /** TenantReuse */ + TenantReuse = "TenantReuse", + /** SubscriptionReuse */ + SubscriptionReuse = "SubscriptionReuse", + /** ResourceGroupReuse */ + ResourceGroupReuse = "ResourceGroupReuse", + /** NoReuse */ + NoReuse = "NoReuse" +} + +/** + * Defines values for DomainNameLabelScopeTypes. \ + * {@link KnownDomainNameLabelScopeTypes} can be used interchangeably with DomainNameLabelScopeTypes, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TenantReuse** \ + * **SubscriptionReuse** \ + * **ResourceGroupReuse** \ + * **NoReuse** + */ +export type DomainNameLabelScopeTypes = string; + /** Known values of {@link IPVersion} that the service accepts. */ export enum KnownIPVersion { /** IPv4 */ @@ -6972,6 +7101,54 @@ export enum KnownPublicIPAddressSkuTier { */ export type PublicIPAddressSkuTier = string; +/** Known values of {@link NetworkInterfaceAuxiliaryMode} that the service accepts. */ +export enum KnownNetworkInterfaceAuxiliaryMode { + /** None */ + None = "None", + /** AcceleratedConnections */ + AcceleratedConnections = "AcceleratedConnections", + /** Floating */ + Floating = "Floating" +} + +/** + * Defines values for NetworkInterfaceAuxiliaryMode. \ + * {@link KnownNetworkInterfaceAuxiliaryMode} can be used interchangeably with NetworkInterfaceAuxiliaryMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **AcceleratedConnections** \ + * **Floating** + */ +export type NetworkInterfaceAuxiliaryMode = string; + +/** Known values of {@link NetworkInterfaceAuxiliarySku} that the service accepts. */ +export enum KnownNetworkInterfaceAuxiliarySku { + /** None */ + None = "None", + /** A1 */ + A1 = "A1", + /** A2 */ + A2 = "A2", + /** A4 */ + A4 = "A4", + /** A8 */ + A8 = "A8" +} + +/** + * Defines values for NetworkInterfaceAuxiliarySku. \ + * {@link KnownNetworkInterfaceAuxiliarySku} can be used interchangeably with NetworkInterfaceAuxiliarySku, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **A1** \ + * **A2** \ + * **A4** \ + * **A8** + */ +export type NetworkInterfaceAuxiliarySku = string; + /** Known values of {@link NetworkApiVersion} that the service accepts. */ export enum KnownNetworkApiVersion { /** TwoThousandTwenty1101 */ @@ -8379,7 +8556,9 @@ export enum KnownDiskCreateOption { /** Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported disk by importing additional blob for VM guest state specified by securityDataUri in storage account specified by storageAccountId */ ImportSecure = "ImportSecure", /** Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in both disk and VM guest state */ - UploadPreparedSecure = "UploadPreparedSecure" + UploadPreparedSecure = "UploadPreparedSecure", + /** Create a new disk by exporting from elastic san volume snapshot */ + CopyFromSanSnapshot = "CopyFromSanSnapshot" } /** @@ -8396,7 +8575,8 @@ export enum KnownDiskCreateOption { * **Upload**: Create a new disk by obtaining a write token and using it to directly upload the contents of the disk. \ * **CopyStart**: Create a new disk by using a deep copy process, where the resource creation is considered complete only after all data has been copied from the source. \ * **ImportSecure**: Similar to Import create option. Create a new Trusted Launch VM or Confidential VM supported disk by importing additional blob for VM guest state specified by securityDataUri in storage account specified by storageAccountId \ - * **UploadPreparedSecure**: Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in both disk and VM guest state + * **UploadPreparedSecure**: Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in both disk and VM guest state \ + * **CopyFromSanSnapshot**: Create a new disk by exporting from elastic san volume snapshot */ export type DiskCreateOption = string; @@ -8869,7 +9049,9 @@ export enum KnownConfidentialVMEncryptionType { /** EncryptedWithPmk */ EncryptedWithPmk = "EncryptedWithPmk", /** EncryptedWithCmk */ - EncryptedWithCmk = "EncryptedWithCmk" + EncryptedWithCmk = "EncryptedWithCmk", + /** NonPersistedTPM */ + NonPersistedTPM = "NonPersistedTPM" } /** @@ -8879,7 +9061,8 @@ export enum KnownConfidentialVMEncryptionType { * ### Known values supported by the service * **EncryptedVMGuestStateOnlyWithPmk** \ * **EncryptedWithPmk** \ - * **EncryptedWithCmk** + * **EncryptedWithCmk** \ + * **NonPersistedTPM** */ export type ConfidentialVMEncryptionType = string; @@ -9015,10 +9198,51 @@ export enum KnownReplicationState { */ export type ReplicationState = string; +/** Known values of {@link UefiSignatureTemplateName} that the service accepts. */ +export enum KnownUefiSignatureTemplateName { + /** NoSignatureTemplate */ + NoSignatureTemplate = "NoSignatureTemplate", + /** MicrosoftUefiCertificateAuthorityTemplate */ + MicrosoftUefiCertificateAuthorityTemplate = "MicrosoftUefiCertificateAuthorityTemplate", + /** MicrosoftWindowsTemplate */ + MicrosoftWindowsTemplate = "MicrosoftWindowsTemplate" +} + +/** + * Defines values for UefiSignatureTemplateName. \ + * {@link KnownUefiSignatureTemplateName} can be used interchangeably with UefiSignatureTemplateName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NoSignatureTemplate** \ + * **MicrosoftUefiCertificateAuthorityTemplate** \ + * **MicrosoftWindowsTemplate** + */ +export type UefiSignatureTemplateName = string; + +/** Known values of {@link UefiKeyType} that the service accepts. */ +export enum KnownUefiKeyType { + /** Sha256 */ + Sha256 = "sha256", + /** X509 */ + X509 = "x509" +} + +/** + * Defines values for UefiKeyType. \ + * {@link KnownUefiKeyType} can be used interchangeably with UefiKeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **sha256** \ + * **x509** + */ +export type UefiKeyType = string; + /** Known values of {@link ReplicationStatusTypes} that the service accepts. */ export enum KnownReplicationStatusTypes { /** ReplicationStatus */ - ReplicationStatus = "ReplicationStatus" + ReplicationStatus = "ReplicationStatus", + /** UefiSettings */ + UefiSettings = "UefiSettings" } /** @@ -9026,7 +9250,8 @@ export enum KnownReplicationStatusTypes { * {@link KnownReplicationStatusTypes} can be used interchangeably with ReplicationStatusTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ReplicationStatus** + * **ReplicationStatus** \ + * **UefiSettings** */ export type ReplicationStatusTypes = string; diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index d95ac0bdbe91..74557318f27b 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -1580,6 +1580,18 @@ export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMap type: { name: "String" } + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String" + } + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String" + } } } } @@ -1774,6 +1786,12 @@ export const VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings: core type: { name: "String" } + }, + domainNameLabelScope: { + serializedName: "domainNameLabelScope", + type: { + name: "String" + } } } } @@ -2911,6 +2929,18 @@ export const VirtualMachineScaleSetUpdateNetworkConfiguration: coreClient.Compos type: { name: "String" } + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String" + } + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String" + } } } } @@ -4617,6 +4647,18 @@ export const VirtualMachineNetworkInterfaceConfiguration: coreClient.CompositeMa name: "Composite", className: "SubResource" } + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String" + } + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String" + } } } } @@ -4804,6 +4846,12 @@ export const VirtualMachinePublicIPAddressDnsSettingsConfiguration: coreClient.C type: { name: "String" } + }, + domainNameLabelScope: { + serializedName: "domainNameLabelScope", + type: { + name: "String" + } } } } @@ -7578,6 +7626,12 @@ export const CreationData: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + elasticSanResourceId: { + serializedName: "elasticSanResourceId", + type: { + name: "String" + } } } } @@ -9895,6 +9949,127 @@ export const RegionalReplicationStatus: coreClient.CompositeMapper = { } }; +export const ImageVersionSecurityProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageVersionSecurityProfile", + modelProperties: { + uefiSettings: { + serializedName: "uefiSettings", + type: { + name: "Composite", + className: "GalleryImageVersionUefiSettings" + } + } + } + } +}; + +export const GalleryImageVersionUefiSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryImageVersionUefiSettings", + modelProperties: { + signatureTemplateNames: { + serializedName: "signatureTemplateNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + additionalSignatures: { + serializedName: "additionalSignatures", + type: { + name: "Composite", + className: "UefiKeySignatures" + } + } + } + } +}; + +export const UefiKeySignatures: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UefiKeySignatures", + modelProperties: { + pk: { + serializedName: "pk", + type: { + name: "Composite", + className: "UefiKey" + } + }, + kek: { + serializedName: "kek", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UefiKey" + } + } + } + }, + db: { + serializedName: "db", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UefiKey" + } + } + } + }, + dbx: { + serializedName: "dbx", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UefiKey" + } + } + } + } + } + } +}; + +export const UefiKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UefiKey", + modelProperties: { + signatureType: { + serializedName: "signatureType", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const GalleryApplicationCustomAction: coreClient.CompositeMapper = { type: { name: "Composite", @@ -10374,6 +10549,50 @@ export const SharedGalleryDiskImage: coreClient.CompositeMapper = { } }; +export const CommunityGalleryMetadata: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CommunityGalleryMetadata", + modelProperties: { + publisherUri: { + serializedName: "publisherUri", + type: { + name: "String" + } + }, + publisherContact: { + serializedName: "publisherContact", + type: { + name: "String" + } + }, + eula: { + serializedName: "eula", + type: { + name: "String" + } + }, + publicNames: { + serializedName: "publicNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + privacyStatementUri: { + serializedName: "privacyStatementUri", + type: { + name: "String" + } + } + } + } +}; + export const PirCommunityGalleryResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -13078,6 +13297,13 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { type: { name: "String" } + }, + timeCreated: { + serializedName: "properties.timeCreated", + readOnly: true, + type: { + name: "DateTime" + } } } } @@ -14259,6 +14485,13 @@ export const Disk: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + lastOwnershipUpdateTime: { + serializedName: "properties.LastOwnershipUpdateTime", + readOnly: true, + type: { + name: "DateTime" + } } } } @@ -14771,6 +15004,13 @@ export const GalleryImageVersion: coreClient.CompositeMapper = { name: "Composite", className: "ReplicationStatus" } + }, + securityProfile: { + serializedName: "properties.securityProfile", + type: { + name: "Composite", + className: "ImageVersionSecurityProfile" + } } } } @@ -16349,6 +16589,13 @@ export const GalleryImageVersionUpdate: coreClient.CompositeMapper = { name: "Composite", className: "ReplicationStatus" } + }, + securityProfile: { + serializedName: "properties.securityProfile", + type: { + name: "Composite", + className: "ImageVersionSecurityProfile" + } } } } @@ -16704,7 +16951,27 @@ export const CommunityGallery: coreClient.CompositeMapper = { name: "Composite", className: "CommunityGallery", modelProperties: { - ...PirCommunityGalleryResource.type.modelProperties + ...PirCommunityGalleryResource.type.modelProperties, + disclaimer: { + serializedName: "properties.disclaimer", + type: { + name: "String" + } + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + communityMetadata: { + serializedName: "properties.communityMetadata", + type: { + name: "Composite", + className: "CommunityGalleryMetadata" + } + } } } }; @@ -16798,6 +17065,19 @@ export const CommunityGalleryImage: coreClient.CompositeMapper = { type: { name: "String" } + }, + disclaimer: { + serializedName: "properties.disclaimer", + type: { + name: "String" + } + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } @@ -16833,6 +17113,19 @@ export const CommunityGalleryImageVersion: coreClient.CompositeMapper = { name: "Composite", className: "SharedGalleryImageVersionStorageProfile" } + }, + disclaimer: { + serializedName: "properties.disclaimer", + type: { + name: "String" + } + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } @@ -16945,7 +17238,15 @@ export const SharedGallery: coreClient.CompositeMapper = { name: "Composite", className: "SharedGallery", modelProperties: { - ...PirSharedGalleryResource.type.modelProperties + ...PirSharedGalleryResource.type.modelProperties, + artifactTags: { + serializedName: "properties.artifactTags", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } } } }; @@ -17039,6 +17340,13 @@ export const SharedGalleryImage: coreClient.CompositeMapper = { type: { name: "String" } + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } @@ -17074,6 +17382,13 @@ export const SharedGalleryImageVersion: coreClient.CompositeMapper = { name: "Composite", className: "SharedGalleryImageVersionStorageProfile" } + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index b991bdde783f..185f9482fb8d 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -110,7 +110,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-03-01", + defaultValue: "2023-07-01", isConstant: true, serializedName: "api-version", type: { @@ -966,7 +966,7 @@ export const diskName: OperationURLParameter = { export const apiVersion1: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-01-02", + defaultValue: "2023-04-02", isConstant: true, serializedName: "api-version", type: { @@ -1127,7 +1127,7 @@ export const galleryName: OperationURLParameter = { export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-03-03", + defaultValue: "2022-08-03", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/compute/arm-compute/src/operations/images.ts b/sdk/compute/arm-compute/src/operations/images.ts index 1bc1ff8155f0..c59a61a63b0b 100644 --- a/sdk/compute/arm-compute/src/operations/images.ts +++ b/sdk/compute/arm-compute/src/operations/images.ts @@ -53,7 +53,8 @@ export class ImagesImpl implements Images { } /** - * Gets the list of images under a resource group. + * Gets the list of images under a resource group. Use nextLink property in the response to get the + * next page of Images. Do this till nextLink is null to fetch all the Images. * @param resourceGroupName The name of the resource group. * @param options The options parameters. */ @@ -463,7 +464,8 @@ export class ImagesImpl implements Images { } /** - * Gets the list of images under a resource group. + * Gets the list of images under a resource group. Use nextLink property in the response to get the + * next page of Images. Do this till nextLink is null to fetch all the Images. * @param resourceGroupName The name of the resource group. * @param options The options parameters. */ diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/images.ts b/sdk/compute/arm-compute/src/operationsInterfaces/images.ts index 8996335436a7..97bb85acd4ee 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/images.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/images.ts @@ -26,7 +26,8 @@ import { /** Interface representing a Images. */ export interface Images { /** - * Gets the list of images under a resource group. + * Gets the list of images under a resource group. Use nextLink property in the response to get the + * next page of Images. Do this till nextLink is null to fetch all the Images. * @param resourceGroupName The name of the resource group. * @param options The options parameters. */ diff --git a/sdk/compute/arm-compute/test/sampleTest.ts b/sdk/compute/arm-compute/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /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"