Skip to content

[AutoPR @azure/arm-compute] Migrate compute latest swagger to TypeSpec #13753

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

195 changes: 195 additions & 0 deletions sdk/compute/arm-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,200 @@
# Release History

## 23.0.0 (2025-04-23)

### Features Added

- Added Interface AvailabilitySetsConvertToVirtualMachineScaleSetHeaders
- Added Interface AvailabilitySetsListAvailableSizesNextOptionalParams
- Added Interface CapacityReservationsCreateOrUpdateHeaders
- Added Interface CapacityReservationsDeleteHeaders
- Added Interface CapacityReservationsUpdateHeaders
- Added Interface DedicatedHostsCreateOrUpdateHeaders
- Added Interface DedicatedHostsDeleteHeaders
- Added Interface DedicatedHostsListAvailableSizesNextOptionalParams
- Added Interface DedicatedHostsRestartHeaders
- Added Interface DedicatedHostsUpdateHeaders
- Added Interface DiskAccessesCreateOrUpdateHeaders
- Added Interface DiskAccessesDeleteAPrivateEndpointConnectionHeaders
- Added Interface DiskAccessesDeleteHeaders
- Added Interface DiskAccessesUpdateAPrivateEndpointConnectionHeaders
- Added Interface DiskAccessesUpdateHeaders
- Added Interface DiskEncryptionSetsCreateOrUpdateHeaders
- Added Interface DiskEncryptionSetsDeleteHeaders
- Added Interface DiskEncryptionSetsUpdateHeaders
- Added Interface DiskRestorePointGrantAccessHeaders
- Added Interface DiskRestorePointRevokeAccessHeaders
- Added Interface DisksCreateOrUpdateHeaders
- Added Interface DisksDeleteHeaders
- Added Interface DisksGrantAccessHeaders
- Added Interface DisksRevokeAccessHeaders
- Added Interface DisksUpdateHeaders
- Added Interface ErrorAdditionalInfo
- Added Interface ErrorDetail
- Added Interface ErrorResponse
- Added Interface GalleriesCreateOrUpdateHeaders
- Added Interface GalleriesDeleteHeaders
- Added Interface GalleriesUpdateHeaders
- Added Interface GalleryApplicationsCreateOrUpdateHeaders
- Added Interface GalleryApplicationsDeleteHeaders
- Added Interface GalleryApplicationsUpdateHeaders
- Added Interface GalleryApplicationVersionsCreateOrUpdateHeaders
- Added Interface GalleryApplicationVersionsDeleteHeaders
- Added Interface GalleryApplicationVersionsUpdateHeaders
- Added Interface GalleryImagesCreateOrUpdateHeaders
- Added Interface GalleryImagesDeleteHeaders
- Added Interface GalleryImagesUpdateHeaders
- Added Interface GalleryImageVersionsCreateOrUpdateHeaders
- Added Interface GalleryImageVersionsDeleteHeaders
- Added Interface GalleryImageVersionsUpdateHeaders
- Added Interface GalleryInVMAccessControlProfilesCreateOrUpdateHeaders
- Added Interface GalleryInVMAccessControlProfilesUpdateHeaders
- Added Interface GalleryInVMAccessControlProfileVersionsCreateOrUpdateHeaders
- Added Interface GalleryInVMAccessControlProfileVersionsUpdateHeaders
- Added Interface GallerySharingProfileUpdateHeaders
- Added Interface ImagesCreateOrUpdateHeaders
- Added Interface ImagesDeleteHeaders
- Added Interface ImagesUpdateHeaders
- Added Interface LogAnalyticsExportRequestRateByIntervalHeaders
- Added Interface LogAnalyticsExportThrottledRequestsHeaders
- Added Interface Operation
- Added Interface OperationDisplay
- Added Interface OperationListResult
- Added Interface OperationsListNextOptionalParams
- Added Interface RestorePointCollectionsDeleteHeaders
- Added Interface RestorePointsCreateHeaders
- Added Interface RestorePointsDeleteHeaders
- Added Interface SnapshotsCreateOrUpdateHeaders
- Added Interface SnapshotsDeleteHeaders
- Added Interface SnapshotsGrantAccessHeaders
- Added Interface SnapshotsRevokeAccessHeaders
- Added Interface SnapshotsUpdateHeaders
- Added Interface TrackedResource
- Added Interface VirtualMachineExtensionsCreateOrUpdateHeaders
- Added Interface VirtualMachineExtensionsDeleteHeaders
- Added Interface VirtualMachineExtensionsUpdateHeaders
- Added Interface VirtualMachineRunCommandsCreateOrUpdateHeaders
- Added Interface VirtualMachineRunCommandsDeleteHeaders
- Added Interface VirtualMachineRunCommandsUpdateHeaders
- Added Interface VirtualMachinesAssessPatchesHeaders
- Added Interface VirtualMachineScaleSetExtensionsCreateOrUpdateHeaders
- Added Interface VirtualMachineScaleSetExtensionsDeleteHeaders
- Added Interface VirtualMachineScaleSetExtensionsUpdateHeaders
- Added Interface VirtualMachineScaleSetRollingUpgradesCancelHeaders
- Added Interface VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeHeaders
- Added Interface VirtualMachineScaleSetRollingUpgradesStartOSUpgradeHeaders
- Added Interface VirtualMachineScaleSetsCreateOrUpdateHeaders
- Added Interface VirtualMachineScaleSetsDeallocateHeaders
- Added Interface VirtualMachineScaleSetsDeleteHeaders
- Added Interface VirtualMachineScaleSetsDeleteInstancesHeaders
- Added Interface VirtualMachineScaleSetsPerformMaintenanceHeaders
- Added Interface VirtualMachineScaleSetsPowerOffHeaders
- Added Interface VirtualMachineScaleSetsRedeployHeaders
- Added Interface VirtualMachineScaleSetsReimageAllHeaders
- Added Interface VirtualMachineScaleSetsReimageHeaders
- Added Interface VirtualMachineScaleSetsRestartHeaders
- Added Interface VirtualMachineScaleSetsSetOrchestrationServiceStateHeaders
- Added Interface VirtualMachineScaleSetsStartHeaders
- Added Interface VirtualMachineScaleSetsUpdateHeaders
- Added Interface VirtualMachineScaleSetsUpdateInstancesHeaders
- Added Interface VirtualMachineScaleSetVMExtensionsCreateOrUpdateHeaders
- Added Interface VirtualMachineScaleSetVMExtensionsDeleteHeaders
- Added Interface VirtualMachineScaleSetVMExtensionsUpdateHeaders
- Added Interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdateHeaders
- Added Interface VirtualMachineScaleSetVMRunCommandsDeleteHeaders
- Added Interface VirtualMachineScaleSetVMRunCommandsUpdateHeaders
- Added Interface VirtualMachineScaleSetVMsDeallocateHeaders
- Added Interface VirtualMachineScaleSetVMsDeleteHeaders
- Added Interface VirtualMachineScaleSetVMsPerformMaintenanceHeaders
- Added Interface VirtualMachineScaleSetVMsPowerOffHeaders
- Added Interface VirtualMachineScaleSetVMsRedeployHeaders
- Added Interface VirtualMachineScaleSetVMsReimageAllHeaders
- Added Interface VirtualMachineScaleSetVMsReimageHeaders
- Added Interface VirtualMachineScaleSetVMsRestartHeaders
- Added Interface VirtualMachineScaleSetVMsRunCommandHeaders
- Added Interface VirtualMachineScaleSetVMsStartHeaders
- Added Interface VirtualMachineScaleSetVMsUpdateHeaders
- Added Interface VirtualMachinesCaptureHeaders
- Added Interface VirtualMachinesConvertToManagedDisksHeaders
- Added Interface VirtualMachinesCreateOrUpdateHeaders
- Added Interface VirtualMachinesDeallocateHeaders
- Added Interface VirtualMachinesDeleteHeaders
- Added Interface VirtualMachinesInstallPatchesHeaders
- Added Interface VirtualMachineSizesListNextOptionalParams
- Added Interface VirtualMachinesListAvailableSizesNextOptionalParams
- Added Interface VirtualMachinesMigrateToVMScaleSetHeaders
- Added Interface VirtualMachinesPerformMaintenanceHeaders
- Added Interface VirtualMachinesPowerOffHeaders
- Added Interface VirtualMachinesReapplyHeaders
- Added Interface VirtualMachinesRedeployHeaders
- Added Interface VirtualMachinesReimageHeaders
- Added Interface VirtualMachinesRestartHeaders
- Added Interface VirtualMachinesRunCommandHeaders
- Added Interface VirtualMachinesStartHeaders
- Added Interface VirtualMachinesUpdateHeaders
- Added Type Alias ActionType
- Added Type Alias AvailabilitySetsConvertToVirtualMachineScaleSetResponse
- Added Type Alias AvailabilitySetsListAvailableSizesNextResponse
- Added Type Alias CreatedByType
- Added Type Alias DedicatedHostsListAvailableSizesNextResponse
- Added Type Alias DedicatedHostsRestartResponse
- Added Type Alias ExpandAutoGenerated
- Added Type Alias OperationsListNextResponse
- Added Type Alias Origin
- Added Type Alias VirtualMachineSizesListNextResponse
- Added Type Alias VirtualMachinesListAvailableSizesNextResponse
- Added Type Alias VirtualMachinesMigrateToVMScaleSetResponse
- Interface DedicatedHostSizeListResult has a new optional parameter nextLink
- Interface DedicatedHostsRedeployHeaders has a new optional parameter retryAfter
- Interface Resource has a new optional parameter systemData
- Interface SystemData has a new optional parameter createdBy
- Interface SystemData has a new optional parameter createdByType
- Interface SystemData has a new optional parameter lastModifiedBy
- Interface SystemData has a new optional parameter lastModifiedByType
- Interface VirtualMachinesAttachDetachDataDisksHeaders has a new optional parameter retryAfter
- Interface VirtualMachineScaleSetExtension has a new optional parameter vmName
- Interface VirtualMachineScaleSetsApproveRollingUpgradeHeaders has a new optional parameter retryAfter
- Interface VirtualMachineScaleSetsReapplyHeaders has a new optional parameter retryAfter
- Interface VirtualMachineScaleSetVMExtension has a new optional parameter vmName
- Interface VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders has a new optional parameter retryAfter
- Interface VirtualMachineScaleSetVMsAttachDetachDataDisksHeaders has a new optional parameter retryAfter
- Interface VirtualMachineSizeListResult has a new optional parameter nextLink
- Add parameters of DedicatedHostsUpdateHeaders to TypeAlias DedicatedHostsUpdateResponse
- Add parameters of GalleriesUpdateHeaders to TypeAlias GalleriesUpdateResponse
- Add parameters of GalleryApplicationsUpdateHeaders to TypeAlias GalleryApplicationsUpdateResponse
- Add parameters of GalleryApplicationVersionsUpdateHeaders to TypeAlias GalleryApplicationVersionsUpdateResponse
- Add parameters of GalleryImagesUpdateHeaders to TypeAlias GalleryImagesUpdateResponse
- Add parameters of GalleryImageVersionsUpdateHeaders to TypeAlias GalleryImageVersionsUpdateResponse
- Add parameters of GalleryInVMAccessControlProfilesUpdateHeaders to TypeAlias GalleryInVMAccessControlProfilesUpdateResponse
- Add parameters of GalleryInVMAccessControlProfileVersionsUpdateHeaders to TypeAlias GalleryInVMAccessControlProfileVersionsUpdateResponse
- Add parameters of RestorePointsCreateHeaders to TypeAlias RestorePointsCreateResponse
- Add parameters of VirtualMachineExtensionsUpdateHeaders to TypeAlias VirtualMachineExtensionsUpdateResponse
- Add parameters of VirtualMachineRunCommandsUpdateHeaders to TypeAlias VirtualMachineRunCommandsUpdateResponse
- Add parameters of VirtualMachineScaleSetsUpdateHeaders to TypeAlias VirtualMachineScaleSetsUpdateResponse
- Add parameters of VirtualMachineScaleSetVMExtensionsUpdateHeaders to TypeAlias VirtualMachineScaleSetVMExtensionsUpdateResponse
- Add parameters of VirtualMachineScaleSetVMRunCommandsUpdateHeaders to TypeAlias VirtualMachineScaleSetVMRunCommandsUpdateResponse
- Add parameters of VirtualMachinesUpdateHeaders to TypeAlias VirtualMachinesUpdateResponse
- Added Enum KnownActionType
- Added Enum KnownCreatedByType
- Added Enum KnownExpandAutoGenerated
- Added Enum KnownOrigin

### Breaking Changes

- Interface PrivateEndpointConnection no longer has parameter id
- Interface PrivateEndpointConnection no longer has parameter name
- Interface PrivateEndpointConnection no longer has parameter type
- Interface Resource no longer has parameter location
- Interface Resource no longer has parameter tags
- Interface VirtualMachineScaleSetExtension no longer has parameter name
- Interface VirtualMachineScaleSetVMExtension no longer has parameter name
- Parameter value of interface PrivateEndpointConnectionListResult is now required
- Parameter value of interface RestorePointCollectionListResult is now required
- Type of parameter diskControllerType of interface VirtualMachineScaleSetStorageProfile is changed from string to DiskControllerTypes
- Type of parameter diskControllerType of interface VirtualMachineScaleSetUpdateStorageProfile is changed from string to DiskControllerTypes
- Enum KnownOrchestrationServiceNames no longer has value DummyOrchestrationServiceName


## 22.4.0 (2025-03-18)

### Features Added
Expand Down
6 changes: 3 additions & 3 deletions sdk/compute/arm-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,10 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
import { InteractiveBrowserCredential } from "@azure/identity";
import { ComputeManagementClient } from "@azure/arm-compute";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>",
});
clientId: "<YOUR_CLIENT_ID>"
});
const client = new ComputeManagementClient(credential, subscriptionId);
```

Expand Down Expand Up @@ -106,6 +105,7 @@ If you'd like to contribute to this library, please read the [contributing guide

- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)


[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
[azure_sub]: https://azure.microsoft.com/free/
Expand Down
8 changes: 4 additions & 4 deletions sdk/compute/arm-compute/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "cecb65f56ec5291e7fe88d62048bdb717e33e834",
"commit": "2504c146c24560d657445ac435b5bc4ee21c4189",
"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/[email protected].36 --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/[email protected].21",
"use": "@autorest/[email protected].36"
"release_tool": "@azure-tools/[email protected].26",
"use": "@autorest/typescript@^6.0.12"
}
6 changes: 3 additions & 3 deletions sdk/compute/arm-compute/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "dist/esm/index.d.ts",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": {
"enabled": true
},
Expand All @@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "dist/arm-compute.d.ts"
"publicTrimmedFilePath": "./types/arm-compute.d.ts"
},
"messages": {
"tsdocMessageReporting": {
Expand All @@ -28,4 +28,4 @@
}
}
}
}
}
21 changes: 6 additions & 15 deletions sdk/compute/arm-compute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ComputeManagementClient.",
"version": "22.4.0",
"version": "23.0.0",
"engines": {
"node": ">=18.0.0"
},
Expand All @@ -25,21 +25,20 @@
],
"license": "MIT",
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js",
"module": "./dist-esm/src/index.js",
"types": "./dist/commonjs/index.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^2.0.0",
"@azure-tools/test-recorder": "^4.1.0",
"@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/arm-network": "^32.2.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.8.0",
"@azure/identity": "^4.9.1",
"@azure/logger": "^1.1.4",
"@types/node": "^18.0.0",
"@vitest/browser": "^3.0.9",
"@vitest/coverage-istanbul": "^3.0.9",
"dotenv": "^16.0.0",
"playwright": "^1.51.1",
"playwright": "^1.52.0",
"typescript": "~5.8.2",
"vitest": "^3.0.9"
},
Expand Down Expand Up @@ -72,7 +71,7 @@
"integration-test:browser": "echo skipped",
"integration-test:node": "dev-tool run test:vitest --esm",
"lint": "echo skipped",
"minify": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
"prepack": "npm run build",
"test": "npm run integration-test",
Expand All @@ -94,14 +93,6 @@
},
"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://learn.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview"
},
"type": "module",
"tshy": {
"project": "./tsconfig.src.json",
Expand Down Expand Up @@ -142,4 +133,4 @@
}
}
}
}
}
Loading