diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 3e4122b7445e..7ab5c42c3439 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2278,7 +2278,7 @@ packages: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/chai-as-promised/7.1.5: @@ -2300,7 +2300,7 @@ packages: /@types/connect/3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/cookie/0.4.1: @@ -2310,7 +2310,7 @@ packages: /@types/cors/2.8.13: resolution: {integrity: sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/debug/4.1.7: @@ -2322,7 +2322,7 @@ packages: /@types/decompress/4.2.4: resolution: {integrity: sha512-/C8kTMRTNiNuWGl5nEyKbPiMv6HA+0RbEXzFhFBEzASM6+oa4tJro9b8nj7eRlOFfuLdzUU+DS/GPDlvvzMOhA==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/eslint/8.4.10: @@ -2343,7 +2343,7 @@ packages: /@types/express-serve-static-core/4.17.33: resolution: {integrity: sha512-TPBqmR/HRYI3eC2E5hmiivIzv+bidAfXofM+sbonAGvyDhySGw9/PQZFt2BLOrjUUR++4eJVpx6KnLQK1Fk9tA==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 dev: false @@ -2360,20 +2360,20 @@ packages: /@types/fs-extra/8.1.2: resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/fs-extra/9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/glob/8.1.0: resolution: {integrity: sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/inquirer/8.2.6: @@ -2386,7 +2386,7 @@ packages: /@types/is-buffer/2.0.0: resolution: {integrity: sha512-0f7N/e3BAz32qDYvgB4d2cqv1DqUwvGxHkXsrucICn8la1Vb6Yl6Eg8mPScGwUiqHJeE7diXlzaK+QMA9m4Gxw==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/json-schema/7.0.11: @@ -2400,13 +2400,13 @@ packages: /@types/jsonwebtoken/9.0.1: resolution: {integrity: sha512-c5ltxazpWabia/4UzhIoaDcIza4KViOQhdbjRlfcIGVnsE3c3brkz9Z+F/EeJIECOQP7W7US2hNE930cWWkPiw==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/jws/3.2.5: resolution: {integrity: sha512-xGTxZH34xOryaTN8CMsvhh9lfNqFuHiMoRvsLYWQdBJHqiECyfInXVl2eK8Jz2emxZWMIn5RBlmr3oDVPeWujw==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/mdast/3.0.10: @@ -2442,7 +2442,7 @@ packages: /@types/node-fetch/2.6.2: resolution: {integrity: sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 form-data: 3.0.1 dev: false @@ -2493,7 +2493,7 @@ packages: /@types/resolve/1.17.1: resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/semaphore/1.1.1: @@ -2508,7 +2508,7 @@ packages: resolution: {integrity: sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==} dependencies: '@types/mime': 3.0.1 - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/sinon/10.0.13: @@ -2530,13 +2530,13 @@ packages: /@types/stoppable/1.1.1: resolution: {integrity: sha512-b8N+fCADRIYYrGZOcmOR8ZNBOqhktWTB/bMUl5LvGtT201QKJZOOH5UsFyI3qtteM6ZAJbJqZoBcLqqxKIwjhw==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/through/0.0.30: resolution: {integrity: sha512-FvnCJljyxhPM3gkRgWmxmDZyAQSiBQQWLI0A0VFL0K7W1oRUrPJSqNO0NvTnLkBcotdlp3lKvaT0JrnyRDkzOg==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/tough-cookie/4.0.2: @@ -2550,13 +2550,13 @@ packages: /@types/tunnel/0.0.1: resolution: {integrity: sha512-AOqu6bQu5MSWwYvehMXLukFHnupHrpZ8nvgae5Ggie9UwzDR1CCwoXgSSWNZJuyOlCdfdsWMA5F2LlmvyoTv8A==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/tunnel/0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/underscore/1.11.4: @@ -2574,19 +2574,19 @@ packages: /@types/ws/7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/ws/8.5.4: resolution: {integrity: sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/xml2js/0.4.11: resolution: {integrity: sha512-JdigeAKmCyoJUiQljjr7tQG3if9NkqGUgwEUqBvV0N7LM4HyQk7UXCnusRa1lnvXAEYJ8mw8GtZWioagNztOwA==} dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false /@types/yargs-parser/21.0.0: @@ -2603,7 +2603,7 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 14.18.36 + '@types/node': 18.14.2 dev: false optional: true @@ -3739,7 +3739,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: @@ -3995,7 +3995,7 @@ packages: dependencies: semver: 7.3.8 shelljs: 0.8.5 - typescript: 4.8.4 + typescript: 4.9.5 dev: false /ecdsa-sig-formatter/1.0.11: @@ -4046,7 +4046,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.13 - '@types/node': 14.18.36 + '@types/node': 18.14.2 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -5096,7 +5096,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.0.4 + minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 dev: false @@ -10791,16 +10791,16 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-nAS8my45QL20JXjcqm/LyVZX6Osh/OJQHqEcGw9EekFmWkgiYs0FoyNkXyzYoQ+8RNIoSthLc3WHoo8ud6rzOA==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-/6LaxSwqtFEhu2InFsFMkgb0rpPdFdKxdXMKXptu3xmseGQDGW76+J57HP8/rFp09fIzlBaEVrFC2E10NxzUaQ==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: '@azure/arm-network': 26.0.0 '@azure/identity': 2.1.0 '@microsoft/api-extractor': 7.34.4_@types+node@14.18.36 - '@rollup/plugin-commonjs': 24.0.1_rollup@2.79.1 - '@rollup/plugin-json': 6.0.0_rollup@2.79.1 - '@rollup/plugin-multi-entry': 6.0.0_rollup@2.79.1 + '@rollup/plugin-commonjs': 21.1.0_rollup@2.79.1 + '@rollup/plugin-json': 4.1.0_rollup@2.79.1 + '@rollup/plugin-multi-entry': 4.1.0_rollup@2.79.1 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.79.1 '@types/chai': 4.3.4 '@types/node': 14.18.36 @@ -16298,7 +16298,7 @@ packages: dev: false file:projects/core-lro.tgz: - resolution: {integrity: sha512-Bx91XAS8Rjg7Yj4reY63dVClKZIJglX9jjhVkeLB+Zl+D315PeO3b38+Sz8rtMONtQWqEypCTT2K+thqG/NXPQ==, tarball: file:projects/core-lro.tgz} + resolution: {integrity: sha512-Z5PZJJ+IWAIkB83I1hVJQBPDc9yHU/3raWikE9cyRmsGug2iShdoLrMemh3h0a8+qmJXFiwBXCTtEbx0kSmBkQ==, tarball: file:projects/core-lro.tgz} name: '@rush-temp/core-lro' version: 0.0.0 dependencies: @@ -16650,7 +16650,7 @@ packages: dev: false file:projects/dev-tool.tgz: - resolution: {integrity: sha512-n23KTnCfe9M0fTikGbTyqnmNiQoex1eTeF4+ZA28LiUjNlqHWlaPQZOS6GhCPH3abvJyQOaSmK11VCTbRd7SHA==, tarball: file:projects/dev-tool.tgz} + resolution: {integrity: sha512-rxpO+wPUNFZuP5A4uXFrHF82/vDkwF/uPO/k6qCGIsUgDr3B2nUmS72Q01yn8IXG+ORK3DC1/RSc7nSQ30z6nQ==, tarball: file:projects/dev-tool.tgz} name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: @@ -16835,7 +16835,7 @@ packages: dev: false file:projects/event-hubs.tgz: - resolution: {integrity: sha512-BFdS8kXhBF6S6gG+3O1toni1w1girA/IHvM3/Vz+ayj2okWrlMUWiVU+gu/IuTG5PfIrj9/p4fxBRjEvWIkEkQ==, tarball: file:projects/event-hubs.tgz} + resolution: {integrity: sha512-HJ7gYO9DwwDF4it35pIJ3OjhKTxqQYd4TAUZy8gYlCstAYivfSS/kqoB913iqJz04KxZ52BpoEpjt3N0+OHnUA==, tarball: file:projects/event-hubs.tgz} name: '@rush-temp/event-hubs' version: 0.0.0 dependencies: @@ -19037,7 +19037,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-mYK6I+h0xzksiXIMd9/qOAU7QtVuQXfHFH7QcSSsTwkOFnNx967vIH40CRpeEXAUAjEXfKM0uaJPVw6W3saoEA==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-qfxL0rEhbj/NgJrnJW+7fuanBIdmW93Tv2tyggnI2tN3Emb7d3HezB4W1NOrKLaVkQ6ZIi1s461sO7W7WuTuOA==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: @@ -19727,7 +19727,7 @@ packages: dev: false file:projects/test-utils-perf.tgz: - resolution: {integrity: sha512-6zzcoXQnT/rCizMHw++j+aEcAQEedJz9XIpc+R/6edRn9aprq3QjvSTc7/EY89c5Y/grf5Rtd3iSlGm980Okqg==, tarball: file:projects/test-utils-perf.tgz} + resolution: {integrity: sha512-ItwQW/sYOYRNu3aTBbwuYSRyjgqKF7AMlKMCwFtN6qs/+RrTRqOtLQeEEp3tjjJayC+kzpxh5I5tXvHLfOFuWw==, tarball: file:projects/test-utils-perf.tgz} name: '@rush-temp/test-utils-perf' version: 0.0.0 dependencies: diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index 59f4dac04a27..0cb67783cd23 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,15 +1,21 @@ # Release History + +## 21.0.0 (2023-02-28) + +**Features** -## 20.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Type Alias EdgeZoneStorageAccountType + - Interface VirtualMachineScaleSetVMInstanceView has a new optional parameter computerName + - Interface VirtualMachineScaleSetVMInstanceView has a new optional parameter hyperVGeneration + - Interface VirtualMachineScaleSetVMInstanceView has a new optional parameter osName + - Interface VirtualMachineScaleSetVMInstanceView has a new optional parameter osVersion + - Added Enum KnownEdgeZoneStorageAccountType -### Other Changes +**Breaking Changes** + - Type of parameter storageAccountType of interface GalleryTargetExtendedLocation is changed from StorageAccountType to EdgeZoneStorageAccountType + + ## 20.0.0 (2023-01-05) **Features** diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index 66dce6b4a0c2..1772a002a67e 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "3dae9445631a0e27d743c1355f8cb82391d1634f", + "commit": "53bd9931fc61c38e97a7e926581149bdb286e83f", "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=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.5.20221215.1 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.5", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.5.4", - "use": "@autorest/typescript@6.0.0-rc.5.20221215.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", + "use": "@autorest/typescript@6.0.0-rc.5" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index 923ef06527ad..52212998e09e 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": "20.0.1", + "version": "21.0.0", "engines": { "node": ">=14.0.0" }, @@ -29,9 +29,9 @@ "types": "./types/arm-compute.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.31.1", - "@rollup/plugin-commonjs": "^24.0.0", - "@rollup/plugin-json": "^6.0.0", - "@rollup/plugin-multi-entry": "^6.0.0", + "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-multi-entry": "^4.1.0", "@rollup/plugin-node-resolve": "^13.1.3", "mkdirp": "^1.0.4", "rollup": "^2.66.1", @@ -39,7 +39,6 @@ "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", - "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^2.0.0", "@azure-tools/test-credential": "^1.0.0", @@ -48,9 +47,9 @@ "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" + "@azure/dev-tool": "^1.0.0" }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" @@ -111,14 +110,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" - } -} + "autoPublish": true +} \ 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 050bd7723852..896e46b0c6c7 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -2053,6 +2053,9 @@ export interface DiskUpdate { tier?: string; } +// @public +export type EdgeZoneStorageAccountType = string; + // @public export interface Encryption { diskEncryptionSetId?: string; @@ -2722,7 +2725,7 @@ export interface GalleryTargetExtendedLocation { extendedLocation?: GalleryExtendedLocation; extendedLocationReplicaCount?: number; name?: string; - storageAccountType?: StorageAccountType; + storageAccountType?: EdgeZoneStorageAccountType; } // @public @@ -3183,6 +3186,14 @@ export enum KnownDiskStorageAccountTypes { UltraSSDLRS = "UltraSSD_LRS" } +// @public +export enum KnownEdgeZoneStorageAccountType { + PremiumLRS = "Premium_LRS", + StandardLRS = "Standard_LRS", + StandardSSDLRS = "StandardSSD_LRS", + StandardZRS = "Standard_ZRS" +} + // @public export enum KnownEncryptionType { EncryptionAtRestWithCustomerKey = "EncryptionAtRestWithCustomerKey", @@ -7205,9 +7216,13 @@ export interface VirtualMachineScaleSetVMInstanceRequiredIDs { export interface VirtualMachineScaleSetVMInstanceView { readonly assignedHost?: string; bootDiagnostics?: BootDiagnosticsInstanceView; + computerName?: string; disks?: DiskInstanceView[]; extensions?: VirtualMachineExtensionInstanceView[]; + hyperVGeneration?: HyperVGeneration; maintenanceRedeployStatus?: MaintenanceRedeployStatus; + osName?: string; + osVersion?: string; placementGroupId?: string; platformFaultDomain?: number; platformUpdateDomain?: number; diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 17bdc7369edb..c4da3dbe4af3 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/20.0.1`; + const packageDetails = `azsdk-js-arm-compute/21.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 02d8d385ea82..960351360c26 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -638,7 +638,7 @@ export interface TerminateNotificationProfile { } export interface OSImageNotificationProfile { - /** Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out). The configuration is specified in ISO 8601 format, with the value set to 15 minutes (PT15M) */ + /** Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out). The configuration is specified in ISO 8601 format, and the value must be 15 minutes (PT15M) */ notBeforeTimeout?: string; /** Specifies whether the OS Image Scheduled event is enabled or disabled. */ enable?: boolean; @@ -1294,6 +1294,14 @@ export interface VirtualMachineScaleSetVMInstanceView { readonly assignedHost?: string; /** The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId. */ placementGroupId?: string; + /** Specifies the host OS name of the virtual machine.

This name cannot be updated after the VM is created.

**Max-length (Windows):** 15 characters

**Max-length (Linux):** 64 characters.

For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions). */ + computerName?: string; + /** The Operating System running on the hybrid machine. */ + osName?: string; + /** The version of Operating System running on the hybrid machine. */ + osVersion?: string; + /** The hypervisor generation of the Virtual Machine [V1, V2] */ + hyperVGeneration?: HyperVGeneration; } /** The instance view of the VM Agent running on the virtual machine. */ @@ -3508,7 +3516,7 @@ export interface GalleryTargetExtendedLocation { /** The number of replicas of the Image Version to be created per extended location. This property is updatable. */ extendedLocationReplicaCount?: number; /** Specifies the storage account type to be used to store the image. This property is not updatable. */ - storageAccountType?: StorageAccountType; + storageAccountType?: EdgeZoneStorageAccountType; /** Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. */ encryption?: EncryptionImages; } @@ -7015,6 +7023,24 @@ export enum KnownOrchestrationServiceStateAction { */ export type OrchestrationServiceStateAction = string; +/** Known values of {@link HyperVGeneration} that the service accepts. */ +export enum KnownHyperVGeneration { + /** V1 */ + V1 = "V1", + /** V2 */ + V2 = "V2" +} + +/** + * Defines values for HyperVGeneration. \ + * {@link KnownHyperVGeneration} can be used interchangeably with HyperVGeneration, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **V1** \ + * **V2** + */ +export type HyperVGeneration = string; + /** Known values of {@link VirtualMachineSizeTypes} that the service accepts. */ export enum KnownVirtualMachineSizeTypes { /** BasicA0 */ @@ -8116,24 +8142,6 @@ export enum KnownDiskStorageAccountTypes { */ export type DiskStorageAccountTypes = string; -/** Known values of {@link HyperVGeneration} that the service accepts. */ -export enum KnownHyperVGeneration { - /** V1 */ - V1 = "V1", - /** V2 */ - V2 = "V2" -} - -/** - * Defines values for HyperVGeneration. \ - * {@link KnownHyperVGeneration} can be used interchangeably with HyperVGeneration, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **V1** \ - * **V2** - */ -export type HyperVGeneration = string; - /** Known values of {@link Architecture} that the service accepts. */ export enum KnownArchitecture { /** X64 */ @@ -8695,6 +8703,30 @@ export enum KnownGalleryExtendedLocationType { */ export type GalleryExtendedLocationType = string; +/** Known values of {@link EdgeZoneStorageAccountType} that the service accepts. */ +export enum KnownEdgeZoneStorageAccountType { + /** StandardLRS */ + StandardLRS = "Standard_LRS", + /** StandardZRS */ + StandardZRS = "Standard_ZRS", + /** StandardSSDLRS */ + StandardSSDLRS = "StandardSSD_LRS", + /** PremiumLRS */ + PremiumLRS = "Premium_LRS" +} + +/** + * Defines values for EdgeZoneStorageAccountType. \ + * {@link KnownEdgeZoneStorageAccountType} can be used interchangeably with EdgeZoneStorageAccountType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard_LRS** \ + * **Standard_ZRS** \ + * **StandardSSD_LRS** \ + * **Premium_LRS** + */ +export type EdgeZoneStorageAccountType = string; + /** Known values of {@link PolicyViolationCategory} that the service accepts. */ export enum KnownPolicyViolationCategory { /** Other */ diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index d52741bcda2e..04bff22db434 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -3461,6 +3461,30 @@ export const VirtualMachineScaleSetVMInstanceView: coreClient.CompositeMapper = type: { name: "String" } + }, + computerName: { + serializedName: "computerName", + type: { + name: "String" + } + }, + osName: { + serializedName: "osName", + type: { + name: "String" + } + }, + osVersion: { + serializedName: "osVersion", + type: { + name: "String" + } + }, + hyperVGeneration: { + serializedName: "hyperVGeneration", + type: { + name: "String" + } } } } 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"