diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 2b15debf6e38..d7950ee9ec3b 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -10756,6 +10756,37 @@ packages: yn: 3.1.1 dev: false + /ts-node@10.9.2(@types/node@18.19.50)(typescript@5.5.4): + resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.11 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 18.19.50 + acorn: 8.12.1 + acorn-walk: 8.3.4 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 5.5.4 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + dev: false + /ts-node@10.9.2(@types/node@18.19.50)(typescript@5.6.2): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true @@ -12099,7 +12130,7 @@ packages: dev: false file:projects/ai-language-text.tgz: - resolution: {integrity: sha512-Ojho/AT4xqBEUQoGB7ohr4h8M/kg+jzsRc7Y2WCDDLK0Pq9VcDupOBzPJ9K4onGt8/TzureXx1NTJ1HfQaQZTA==, tarball: file:projects/ai-language-text.tgz} + resolution: {integrity: sha512-+28V/u3iH+goVWI66BNbymqVcY+E3RFpiYIDeTU2Yz9PU6RShfvTLT4vZrF0Pp88kJA3Tn6pgX8oHPz/O2o7Ag==, tarball: file:projects/ai-language-text.tgz} name: '@rush-temp/ai-language-text' version: 0.0.0 dependencies: @@ -12272,7 +12303,7 @@ packages: dev: false file:projects/ai-translation-document.tgz: - resolution: {integrity: sha512-IvqPCFiPDfaCTRSw8wwNEbrTMw8646pgulU1RW9pmEKoXLyY8KDkqDR+lv1WmU1lErE4dXgh9aSql86hZDyU5A==, tarball: file:projects/ai-translation-document.tgz} + resolution: {integrity: sha512-GwYwLipQMJO2h0BspCG1Xa9ODSq/e4t5S5eIT/Pxly3RxLu6t4I5Zg1ImBhNHosEaoPCczu18B+5pcrRH97eeg==, tarball: file:projects/ai-translation-document.tgz} name: '@rush-temp/ai-translation-document' version: 0.0.0 dependencies: @@ -12499,7 +12530,7 @@ packages: dev: false file:projects/api-management-custom-widgets-tools.tgz: - resolution: {integrity: sha512-4JW/GwV5qYw3bd3M+S27Sm9QlPy9bTdc2mwnjaCWEpmTGtbTKcwrb8GM+sGT2XlgFui2pvnGNijLaYZ1K7zuIw==, tarball: file:projects/api-management-custom-widgets-tools.tgz} + resolution: {integrity: sha512-kfsbfgWQ9EVaSxZ4FnZIWmd72WV9lJA/cAmAGXi5Q3BO3PJ836j/je5hYbQVWFQgi6MkrOddv6WqLHx63Rufow==, tarball: file:projects/api-management-custom-widgets-tools.tgz} name: '@rush-temp/api-management-custom-widgets-tools' version: 0.0.0 dependencies: @@ -13683,7 +13714,7 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-ltoqytPE1QVwr7Sob5PjXXoDsknShksZFG9vsodvBaEPOHz+3m3/LPQe1AZrhBRnbb6XWOeaDkSZnDkbfTZ86A==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-q7ZNp8T1O0obOch9s8Ghk+PEffombkTm70PePDEn4yQ9ec2ryJCu/fzcqXjlR7gbQh6329ttaS3qzMjRyeX+5Q==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: @@ -13703,10 +13734,10 @@ packages: mkdirp: 3.0.1 mocha: 10.7.3 rimraf: 5.0.10 - ts-node: 10.9.2(@types/node@18.19.50)(typescript@5.6.2) + ts-node: 10.9.2(@types/node@18.19.50)(typescript@5.5.4) tslib: 2.7.0 tsx: 4.19.1 - typescript: 5.6.2 + typescript: 5.5.4 uglify-js: 3.19.3 transitivePeerDependencies: - '@swc/core' @@ -21765,7 +21796,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-blob.tgz(chai@4.3.10): - resolution: {integrity: sha512-qNqd8gXnG7PRT5F86gpEj0NnT92HHHuXgrEACY/NSzcqieS5NDUBA1yCU8Z/daysMhqBlWSOCsHyJ7l62L7Gqw==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} + resolution: {integrity: sha512-7+n3JEJoxPOoMfd7xRjC5KB3urMd9hT/IF1dSH5ANGb5+W3xkyGoqneHkfxe+rDXH4uXWKhWmC12ESa0wjGTJA==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} id: file:projects/eventhubs-checkpointstore-blob.tgz name: '@rush-temp/eventhubs-checkpointstore-blob' version: 0.0.0 @@ -22867,7 +22898,7 @@ packages: dev: false file:projects/microsoft-playwright-testing.tgz: - resolution: {integrity: sha512-ITSzBkmdPixsxudFqxVV8FJiWVl9oSmfRsN5DncpYyAUg/IrzGdyguXq14eqZNwRXdFe2/im/GgtJyQbOXQBhw==, tarball: file:projects/microsoft-playwright-testing.tgz} + resolution: {integrity: sha512-xpirfRdOWn32HnBb78HxKKbplBdg5dagpdT8y9oVXsQTw7/SQhrWosexS173D89jQxMS4jLoWnB+bX/MQMZZxw==, tarball: file:projects/microsoft-playwright-testing.tgz} name: '@rush-temp/microsoft-playwright-testing' version: 0.0.0 dependencies: @@ -23739,7 +23770,7 @@ packages: dev: false file:projects/perf-storage-blob.tgz: - resolution: {integrity: sha512-gZ6zwWp1zoDicXpScCZcMSuaaob3zQrnGCyUUzbkxpVhSN7Rkx05VvAcsf+67Zw6mxZ1aNuEyEcLD8ePMj3WWw==, tarball: file:projects/perf-storage-blob.tgz} + resolution: {integrity: sha512-nrAkSzJAaNZ+eYGwe6dMYDpsidJjHjecyhzGJdQqlopaTkkaDzpappSRV8tnDPPkLlz36d4/R1BZd2s6XlnLkA==, tarball: file:projects/perf-storage-blob.tgz} name: '@rush-temp/perf-storage-blob' version: 0.0.0 dependencies: @@ -23759,7 +23790,7 @@ packages: dev: false file:projects/perf-storage-file-datalake.tgz: - resolution: {integrity: sha512-c+LWtazhGcpP7C2Qey9aZtC+TXE4yACrjv3E3fXZKuOdH+T5+mnXlQdkdaXib1WifaiF2RYO/2pIwBf0Ssnw4w==, tarball: file:projects/perf-storage-file-datalake.tgz} + resolution: {integrity: sha512-GJnE0VYAzRQztLrodmLxTk+SIhETqRl6ENajST3iKebVOi2hJ0ut3VBKdGRP9wIsvGMCUhx8SDg5C7+U6SpenQ==, tarball: file:projects/perf-storage-file-datalake.tgz} name: '@rush-temp/perf-storage-file-datalake' version: 0.0.0 dependencies: @@ -23779,7 +23810,7 @@ packages: dev: false file:projects/perf-storage-file-share.tgz: - resolution: {integrity: sha512-Mx8bjYzBgIU/3qgh4hnZXq46833ydMnmj3WrWT3d7ShivQuOD7bAvwAzIzqLEEw3PyjklNsvGI7bG8VY7izIqg==, tarball: file:projects/perf-storage-file-share.tgz} + resolution: {integrity: sha512-FIhhBfewDIIrp66K92aI+rrtPXiY1Nzh3173OdbWGlEWnAwQ2zxYk5zG7tq3eNjgwnDubkvq+f+Kk4Knk3lKGw==, tarball: file:projects/perf-storage-file-share.tgz} name: '@rush-temp/perf-storage-file-share' version: 0.0.0 dependencies: @@ -24096,7 +24127,7 @@ packages: dev: false file:projects/quantum-jobs.tgz: - resolution: {integrity: sha512-omyiGt/8rwA9rH15hquUguloLfLoZOlnrp+YILRK2ZxBrI9MflWKYtNT1jUqIADycRYH6/ejJWAv8KFZAcnAVQ==, tarball: file:projects/quantum-jobs.tgz} + resolution: {integrity: sha512-EyI5vM1la+ICxSer0h+O6kaHVTU/DBzZqUolZH+hElzKDiXmpxXpqD2P7x/ZZoXFHSKwArFmu5I6kYz/75IY9w==, tarball: file:projects/quantum-jobs.tgz} name: '@rush-temp/quantum-jobs' version: 0.0.0 dependencies: @@ -24395,7 +24426,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-p6UaCZ1AapsPwy2MAq0iiC8X7kUxD9O2e/4X7O3XCSuhdE0C4GJ+Hlip2+WVc0djq5Pr/O5qmqu4ISU38ZhEzQ==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-8KV9di/owQenzoXsfe19xqclM1Axy5wERZTQlkAwUyimkt5rhtX13UVy019YMv4qzvVeJ4h2SnkL2ACl/y/jsA==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: @@ -24494,7 +24525,7 @@ packages: dev: false file:projects/storage-file-datalake.tgz: - resolution: {integrity: sha512-fCOuNF3hB3Ag/i+e3OCtt15Np9IBCjB1Cc45Dr+CXgAWyW1Q3GNKW4AvH8mHoOvDGfiXLRixKs6XUeAtek9pCA==, tarball: file:projects/storage-file-datalake.tgz} + resolution: {integrity: sha512-FC/2g+ENPQlUMKPrj3Nm2p9penM3sSaIAbZw01qhZUjDQ+tVAlecwqqfQLcAk8qh82sJ9vd4GByEduRHyzh4kA==, tarball: file:projects/storage-file-datalake.tgz} name: '@rush-temp/storage-file-datalake' version: 0.0.0 dependencies: @@ -24545,7 +24576,7 @@ packages: dev: false file:projects/storage-file-share.tgz: - resolution: {integrity: sha512-oOyOXJU2tkLKTgaGqLCbhokZUgwokGA+MNAlyYfsZLXx++gVb75X1rERnSQwK89kcVtajZeZmAf6FB3Od2UWPw==, tarball: file:projects/storage-file-share.tgz} + resolution: {integrity: sha512-GuFyt0d1m2oDh+TuXVpczjUZCwDnEzFgIoq2AHS5ZiB/R5XeCofIDIFQQJQaCuUtY39c6ul4aX5uCP1B8rLN0g==, tarball: file:projects/storage-file-share.tgz} name: '@rush-temp/storage-file-share' version: 0.0.0 dependencies: @@ -24638,7 +24669,7 @@ packages: dev: false file:projects/storage-queue.tgz: - resolution: {integrity: sha512-ybuamJeXjo8gtw06wxoaundel86Z0SQR9gE39BG7RttckZb5h1Z0aLrp84R8O+2a2p31g4ovvZ10gBJV/Z86xg==, tarball: file:projects/storage-queue.tgz} + resolution: {integrity: sha512-IePQwAAuWIRX+Uvxr7M1JRQIhzkotL9NYuw5L8zmuzay7pXXiZUHZed7ghZ56YESovhpwqGm5qwtrYwu4mDl4Q==, tarball: file:projects/storage-queue.tgz} name: '@rush-temp/storage-queue' version: 0.0.0 dependencies: diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index dc8b08a3c947..7962e994a204 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,15 +1,13 @@ # Release History - -## 22.1.1 (Unreleased) - + +## 22.2.0 (2024-09-23) + ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Interface GalleryImageVersion has a new optional parameter restore + - Interface GalleryImageVersionUpdate has a new optional parameter restore + + ## 22.1.0 (2024-08-12) ### Features Added @@ -579,7 +577,7 @@ ## 17.3.1 (2022-04-06) -### Features Added +**features** - Bug fix diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index 08483ff528c8..8b1d1caf4110 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "3cef1bf0125458cc60dfb9e644e6bc28b787beab", + "commit": "e1e97e2afc54d97590470702bc6af8f6a323f9e8", "readme": "specification/compute/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.23 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.11", - "use": "@autorest/typescript@6.0.23" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.14", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index 1394d30b110d..5cebc01696fd 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,13 +3,13 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "22.1.1", + "version": "22.2.0", "engines": { "node": ">=18.0.0" }, "dependencies": { "@azure/core-lro": "^2.5.4", - "@azure/abort-controller": "^1.0.0", + "@azure/abort-controller": "^2.1.2", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.6.0", @@ -30,12 +30,12 @@ "devDependencies": { "@microsoft/api-extractor": "^7.31.1", "mkdirp": "^3.0.1", - "typescript": "~5.6.2", + "typescript": "~5.5.3", "uglify-js": "^3.4.9", "rimraf": "^5.0.0", "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", + "@azure/identity": "^4.2.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.1.0", "mocha": "^10.0.0", @@ -45,7 +45,6 @@ "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/arm-network": "^32.2.0", "ts-node": "^10.0.0" }, "repository": { @@ -107,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute" +} \ No newline at end of file diff --git a/sdk/compute/arm-compute/review/arm-compute.api.md b/sdk/compute/arm-compute/review/arm-compute.api.md index d9f1a58260a2..2c5f2b143316 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -2726,6 +2726,7 @@ export interface GalleryImageVersion extends Resource { readonly provisioningState?: GalleryProvisioningState; publishingProfile?: GalleryImageVersionPublishingProfile; readonly replicationStatus?: ReplicationStatus; + restore?: boolean; safetyProfile?: GalleryImageVersionSafetyProfile; securityProfile?: ImageVersionSecurityProfile; storageProfile?: GalleryImageVersionStorageProfile; @@ -2823,6 +2824,7 @@ export interface GalleryImageVersionUpdate extends UpdateResourceDefinition { readonly provisioningState?: GalleryProvisioningState; publishingProfile?: GalleryImageVersionPublishingProfile; readonly replicationStatus?: ReplicationStatus; + restore?: boolean; safetyProfile?: GalleryImageVersionSafetyProfile; securityProfile?: ImageVersionSecurityProfile; storageProfile?: GalleryImageVersionStorageProfile; diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index c266e72e2ce4..d447225992e1 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/22.1.1`; + const packageDetails = `azsdk-js-arm-compute/22.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 4097b9dd04c9..f8a69f742ebf 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -1709,7 +1709,7 @@ export interface DataDisk { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly diskMBpsReadWrite?: number; - /** Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview** mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. */ + /** Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview**. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. */ detachOption?: DiskDetachOptionTypes; /** Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**. */ deleteOption?: DiskDeleteOptionTypes; @@ -6003,7 +6003,7 @@ export interface GalleryImage extends Resource { readonly provisioningState?: GalleryProvisioningState; /** A list of gallery image features. */ features?: GalleryImageFeature[]; - /** The architecture of the image. Applicable to OS disks only. */ + /** CPU architecture supported by an OS disk. */ architecture?: Architecture; } @@ -6027,6 +6027,8 @@ export interface GalleryImageVersion extends Resource { readonly replicationStatus?: ReplicationStatus; /** The security profile of a gallery image version */ securityProfile?: ImageVersionSecurityProfile; + /** Indicates if this is a soft-delete resource restoration request. */ + restore?: boolean; } /** Specifies information about the gallery Application Definition that you want to create or update. */ @@ -6672,7 +6674,7 @@ export interface GalleryImageUpdate extends UpdateResourceDefinition { readonly provisioningState?: GalleryProvisioningState; /** A list of gallery image features. */ features?: GalleryImageFeature[]; - /** The architecture of the image. Applicable to OS disks only. */ + /** CPU architecture supported by an OS disk. */ architecture?: Architecture; } @@ -6696,6 +6698,8 @@ export interface GalleryImageVersionUpdate extends UpdateResourceDefinition { readonly replicationStatus?: ReplicationStatus; /** The security profile of a gallery image version */ securityProfile?: ImageVersionSecurityProfile; + /** Indicates if this is a soft-delete resource restoration request. */ + restore?: boolean; } /** Specifies information about the gallery Application Definition that you want to update. */ @@ -6857,7 +6861,7 @@ export interface CommunityGalleryImage extends PirCommunityGalleryResource { features?: GalleryImageFeature[]; /** Describes the gallery image definition purchase plan. This is used by marketplace images. */ purchasePlan?: ImagePurchasePlan; - /** The architecture of the image. Applicable to OS disks only. */ + /** CPU architecture supported by an OS disk. */ architecture?: Architecture; /** Privacy statement URI for the current community gallery image. */ privacyStatementUri?: string; @@ -6942,7 +6946,7 @@ export interface SharedGalleryImage extends PirSharedGalleryResource { features?: GalleryImageFeature[]; /** Describes the gallery image definition purchase plan. This is used by marketplace images. */ purchasePlan?: ImagePurchasePlan; - /** The architecture of the image. Applicable to OS disks only. */ + /** CPU architecture supported by an OS disk. */ architecture?: Architecture; /** Privacy statement uri for the current community gallery image. */ privacyStatementUri?: string; diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index fde041ec9ae2..19eaaa756bed 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -15553,6 +15553,12 @@ export const GalleryImageVersion: coreClient.CompositeMapper = { className: "ImageVersionSecurityProfile", }, }, + restore: { + serializedName: "properties.restore", + type: { + name: "Boolean", + }, + }, }, }, }; @@ -17301,6 +17307,12 @@ export const GalleryImageVersionUpdate: coreClient.CompositeMapper = { className: "ImageVersionSecurityProfile", }, }, + restore: { + serializedName: "properties.restore", + type: { + name: "Boolean", + }, + }, }, }, }; diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 9db43162f04a..0e01aeb63fd8 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -1169,7 +1169,7 @@ export const galleryName: OperationURLParameter = { export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-07-03", + defaultValue: "2024-03-03", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/compute/arm-compute/test/sampleTest.ts b/sdk/compute/arm-compute/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/compute/arm-compute/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/compute/arm-compute/tsconfig.json b/sdk/compute/arm-compute/tsconfig.json index b84abc8423ab..3e6ae96443f3 100644 --- a/sdk/compute/arm-compute/tsconfig.json +++ b/sdk/compute/arm-compute/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-compute": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"