From 7c0cd1ae7d12eceff19920c78bde7c994fc7e54c Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 15 May 2026 05:49:54 +0000 Subject: [PATCH] Configurations: 'specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/tspconfig.yaml', and CommitSHA: '675a8ce1a1d7489731bc8bd05d8d3e7d865434e0' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6303558 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../arm-azurestackhci/CHANGELOG.md | 46 + sdk/azurestackhci/arm-azurestackhci/README.md | 2 +- .../arm-azurestackhci/metadata.json | 149 +- .../arm-azurestackhci/package.json | 184 +- ...-azurestackhci-api-clusterJobs-node.api.md | 44 - ...arm-azurestackhci-api-clusters-node.api.md | 8 - ...-azurestackhci-api-devicePools-node.api.md | 75 - ...restackhci-api-edgeMachineJobs-node.api.md | 44 - ...azurestackhci-api-edgeMachines-node.api.md | 59 - ...tackhci-api-kubernetesVersions-node.api.md | 19 - ...arm-azurestackhci-api-osImages-node.api.md | 26 - ...stackhci-api-ownershipVouchers-node.api.md | 19 - ...restackhci-api-platformUpdates-node.api.md | 26 - ...m-azurestackhci-api-publishers-node.api.md | 26 - ...urestackhci-api-updateContents-node.api.md | 26 - .../arm-azurestackhci-models-node.api.md | 721 +- .../review/arm-azurestackhci-node.api.md | 1007 +- ...onsentAndInstallDefaultExtensionsSample.ts | 2 +- .../arcSettingsCreateIdentitySample.ts | 2 +- .../samples-dev/arcSettingsCreateSample.ts | 2 +- .../samples-dev/arcSettingsDeleteSample.ts | 2 +- .../arcSettingsGeneratePasswordSample.ts | 2 +- .../samples-dev/arcSettingsGetSample.ts | 2 +- ...cSettingsInitializeDisableProcessSample.ts | 2 +- .../arcSettingsListByClusterSample.ts | 2 +- .../samples-dev/arcSettingsReconcileSample.ts | 2 +- .../samples-dev/arcSettingsUpdateSample.ts | 2 +- .../clusterJobsCreateOrUpdateSample.ts | 57 - .../samples-dev/clusterJobsDeleteSample.ts | 24 - .../samples-dev/clusterJobsGetSample.ts | 25 - .../samples-dev/clusterJobsListSample.ts | 29 - .../samples-dev/clustersChangeRingSample.ts | 27 - .../clustersConfigureRemoteSupportSample.ts | 2 +- .../clustersCreateIdentitySample.ts | 2 +- .../samples-dev/clustersCreateSample.ts | 3 +- .../samples-dev/clustersDeleteSample.ts | 2 +- ...ersExtendSoftwareAssuranceBenefitSample.ts | 2 +- .../samples-dev/clustersGetSample.ts | 2 +- .../clustersListByResourceGroupSample.ts | 2 +- .../clustersListBySubscriptionSample.ts | 2 +- .../clustersTriggerLogCollectionSample.ts | 2 +- .../samples-dev/clustersUpdateSample.ts | 2 +- .../clustersUpdateSecretsLocationsSample.ts | 2 +- .../clustersUploadCertificateSample.ts | 2 +- .../deploymentSettingsCreateOrUpdateSample.ts | 391 +- .../deploymentSettingsDeleteSample.ts | 2 +- .../deploymentSettingsGetSample.ts | 2 +- .../deploymentSettingsListByClustersSample.ts | 2 +- .../devicePoolsClaimDevicesSample.ts | 30 - .../devicePoolsCreateOrUpdateSample.ts | 46 - .../samples-dev/devicePoolsDeleteSample.ts | 38 - .../samples-dev/devicePoolsGetSample.ts | 25 - .../devicePoolsListByResourceGroupSample.ts | 29 - .../devicePoolsListBySubscriptionSample.ts | 29 - .../devicePoolsReleaseDevicesSample.ts | 28 - .../samples-dev/devicePoolsUpdateSample.ts | 27 - .../edgeDeviceJobsCreateOrUpdateSample.ts | 4 +- .../samples-dev/edgeDeviceJobsDeleteSample.ts | 2 +- .../samples-dev/edgeDeviceJobsGetSample.ts | 2 +- .../edgeDeviceJobsListByEdgeDeviceSample.ts | 2 +- .../edgeDevicesCreateOrUpdateSample.ts | 2 +- .../samples-dev/edgeDevicesDeleteSample.ts | 2 +- .../samples-dev/edgeDevicesGetSample.ts | 2 +- .../samples-dev/edgeDevicesListSample.ts | 2 +- .../samples-dev/edgeDevicesValidateSample.ts | 2 +- .../edgeMachineJobsCreateOrUpdateSample.ts | 248 - .../edgeMachineJobsDeleteSample.ts | 24 - .../samples-dev/edgeMachineJobsGetSample.ts | 55 - .../samples-dev/edgeMachineJobsListSample.ts | 29 - .../edgeMachinesCreateOrUpdateSample.ts | 33 - .../samples-dev/edgeMachinesDeleteSample.ts | 24 - .../samples-dev/edgeMachinesGetSample.ts | 25 - .../edgeMachinesListByResourceGroupSample.ts | 29 - .../edgeMachinesListBySubscriptionSample.ts | 29 - .../samples-dev/edgeMachinesUpdateSample.ts | 27 - .../samples-dev/extensionsCreateSample.ts | 2 +- .../samples-dev/extensionsDeleteSample.ts | 2 +- .../samples-dev/extensionsGetSample.ts | 2 +- .../extensionsListByArcSettingSample.ts | 2 +- .../samples-dev/extensionsUpdateSample.ts | 2 +- .../samples-dev/extensionsUpgradeSample.ts | 2 +- ...istBySubscriptionLocationResourceSample.ts | 31 - .../samples-dev/offersGetSample.ts | 2 +- .../samples-dev/offersListByClusterSample.ts | 2 +- .../offersListByPublisherSample.ts | 2 +- .../samples-dev/operationsListSample.ts | 2 +- .../samples-dev/osImagesGetSample.ts | 25 - ...istBySubscriptionLocationResourceSample.ts | 29 - .../ownershipVouchersValidateSample.ts | 29 - .../samples-dev/platformUpdatesGetSample.ts | 25 - .../samples-dev/platformUpdatesListSample.ts | 29 - .../samples-dev/publishersGetSample.ts | 25 - .../publishersListByClusterSample.ts | 29 - .../securitySettingsCreateOrUpdateSample.ts | 2 +- .../securitySettingsDeleteSample.ts | 2 +- .../samples-dev/securitySettingsGetSample.ts | 2 +- .../securitySettingsListByClustersSample.ts | 2 +- .../samples-dev/skusGetSample.ts | 2 +- .../samples-dev/skusListByOfferSample.ts | 2 +- .../samples-dev/updateContentsGetSample.ts | 25 - .../samples-dev/updateContentsListSample.ts | 29 - .../samples-dev/updateRunsDeleteSample.ts | 2 +- .../samples-dev/updateRunsGetSample.ts | 2 +- .../samples-dev/updateRunsListSample.ts | 2 +- .../samples-dev/updateRunsPutSample.ts | 2 +- .../updateSummariesDeleteSample.ts | 2 +- .../samples-dev/updateSummariesGetSample.ts | 2 +- .../samples-dev/updateSummariesListSample.ts | 2 +- ...ummariesOperationGroupCheckHealthSample.ts | 2 +- ...mmariesOperationGroupCheckUpdatesSample.ts | 4 +- .../samples-dev/updateSummariesPutSample.ts | 2 +- .../samples-dev/updatesDeleteSample.ts | 2 +- .../samples-dev/updatesGetSample.ts | 2 +- .../samples-dev/updatesListSample.ts | 2 +- .../samples-dev/updatesPostSample.ts | 2 +- .../samples-dev/updatesPrepareSample.ts | 2 +- .../samples-dev/updatesPutSample.ts | 2 +- .../validatedSolutionRecipesGetSample.ts | 2 +- ...istBySubscriptionLocationResourceSample.ts | 2 +- .../samples/v4-beta/javascript/README.md | 252 - .../clusterJobsCreateOrUpdateSample.js | 57 - .../javascript/clusterJobsDeleteSample.js | 24 - .../javascript/clusterJobsGetSample.js | 25 - .../javascript/clusterJobsListSample.js | 29 - .../javascript/clustersChangeRingSample.js | 27 - .../deploymentSettingsCreateOrUpdateSample.js | 333 - .../devicePoolsClaimDevicesSample.js | 30 - .../devicePoolsCreateOrUpdateSample.js | 46 - .../javascript/devicePoolsDeleteSample.js | 38 - .../javascript/devicePoolsGetSample.js | 25 - .../devicePoolsListByResourceGroupSample.js | 29 - .../devicePoolsListBySubscriptionSample.js | 29 - .../devicePoolsReleaseDevicesSample.js | 28 - .../javascript/devicePoolsUpdateSample.js | 27 - .../edgeMachineJobsCreateOrUpdateSample.js | 248 - .../javascript/edgeMachineJobsDeleteSample.js | 24 - .../javascript/edgeMachineJobsGetSample.js | 55 - .../javascript/edgeMachineJobsListSample.js | 29 - .../edgeMachinesCreateOrUpdateSample.js | 33 - .../javascript/edgeMachinesDeleteSample.js | 24 - .../javascript/edgeMachinesGetSample.js | 25 - .../edgeMachinesListByResourceGroupSample.js | 29 - .../edgeMachinesListBySubscriptionSample.js | 29 - .../javascript/edgeMachinesUpdateSample.js | 27 - ...istBySubscriptionLocationResourceSample.js | 31 - .../v4-beta/javascript/osImagesGetSample.js | 25 - ...istBySubscriptionLocationResourceSample.js | 29 - .../ownershipVouchersValidateSample.js | 29 - .../javascript/platformUpdatesGetSample.js | 25 - .../javascript/platformUpdatesListSample.js | 29 - .../v4-beta/javascript/publishersGetSample.js | 25 - .../publishersListByClusterSample.js | 29 - .../javascript/updateContentsGetSample.js | 25 - .../javascript/updateContentsListSample.js | 29 - .../samples/v4-beta/typescript/README.md | 265 - .../src/clusterJobsCreateOrUpdateSample.ts | 57 - .../typescript/src/clusterJobsDeleteSample.ts | 24 - .../typescript/src/clusterJobsGetSample.ts | 25 - .../typescript/src/clusterJobsListSample.ts | 29 - .../src/clustersChangeRingSample.ts | 27 - .../deploymentSettingsCreateOrUpdateSample.ts | 333 - .../src/devicePoolsClaimDevicesSample.ts | 30 - .../src/devicePoolsCreateOrUpdateSample.ts | 46 - .../typescript/src/devicePoolsDeleteSample.ts | 38 - .../typescript/src/devicePoolsGetSample.ts | 25 - .../devicePoolsListByResourceGroupSample.ts | 29 - .../devicePoolsListBySubscriptionSample.ts | 29 - .../src/devicePoolsReleaseDevicesSample.ts | 28 - .../typescript/src/devicePoolsUpdateSample.ts | 27 - .../edgeMachineJobsCreateOrUpdateSample.ts | 248 - .../src/edgeMachineJobsDeleteSample.ts | 24 - .../src/edgeMachineJobsGetSample.ts | 55 - .../src/edgeMachineJobsListSample.ts | 29 - .../src/edgeMachinesCreateOrUpdateSample.ts | 33 - .../src/edgeMachinesDeleteSample.ts | 24 - .../typescript/src/edgeMachinesGetSample.ts | 25 - .../edgeMachinesListByResourceGroupSample.ts | 29 - .../edgeMachinesListBySubscriptionSample.ts | 29 - .../src/edgeMachinesUpdateSample.ts | 27 - ...istBySubscriptionLocationResourceSample.ts | 31 - .../typescript/src/osImagesGetSample.ts | 25 - ...istBySubscriptionLocationResourceSample.ts | 29 - .../src/ownershipVouchersValidateSample.ts | 29 - .../src/platformUpdatesGetSample.ts | 25 - .../src/platformUpdatesListSample.ts | 29 - .../typescript/src/publishersGetSample.ts | 25 - .../src/publishersListByClusterSample.ts | 29 - .../typescript/src/updateContentsGetSample.ts | 25 - .../src/updateContentsListSample.ts | 29 - .../samples/v4/javascript/README.md | 186 + ...onsentAndInstallDefaultExtensionsSample.js | 2 +- .../arcSettingsCreateIdentitySample.js | 2 +- .../javascript/arcSettingsCreateSample.js | 2 +- .../javascript/arcSettingsDeleteSample.js | 2 +- .../arcSettingsGeneratePasswordSample.js | 2 +- .../javascript/arcSettingsGetSample.js | 2 +- ...cSettingsInitializeDisableProcessSample.js | 2 +- .../arcSettingsListByClusterSample.js | 2 +- .../javascript/arcSettingsReconcileSample.js | 2 +- .../javascript/arcSettingsUpdateSample.js | 2 +- .../clustersConfigureRemoteSupportSample.js | 2 +- .../clustersCreateIdentitySample.js | 2 +- .../javascript/clustersCreateSample.js | 3 +- .../javascript/clustersDeleteSample.js | 2 +- ...ersExtendSoftwareAssuranceBenefitSample.js | 2 +- .../javascript/clustersGetSample.js | 2 +- .../clustersListByResourceGroupSample.js | 2 +- .../clustersListBySubscriptionSample.js | 2 +- .../clustersTriggerLogCollectionSample.js | 2 +- .../javascript/clustersUpdateSample.js | 2 +- .../clustersUpdateSecretsLocationsSample.js | 2 +- .../clustersUploadCertificateSample.js | 2 +- .../deploymentSettingsCreateOrUpdateSample.js | 716 ++ .../deploymentSettingsDeleteSample.js | 2 +- .../javascript/deploymentSettingsGetSample.js | 2 +- .../deploymentSettingsListByClustersSample.js | 2 +- .../edgeDeviceJobsCreateOrUpdateSample.js | 4 +- .../javascript/edgeDeviceJobsDeleteSample.js | 2 +- .../javascript/edgeDeviceJobsGetSample.js | 2 +- .../edgeDeviceJobsListByEdgeDeviceSample.js | 2 +- .../edgeDevicesCreateOrUpdateSample.js | 2 +- .../javascript/edgeDevicesDeleteSample.js | 2 +- .../javascript/edgeDevicesGetSample.js | 2 +- .../javascript/edgeDevicesListSample.js | 2 +- .../javascript/edgeDevicesValidateSample.js | 2 +- .../javascript/extensionsCreateSample.js | 2 +- .../javascript/extensionsDeleteSample.js | 2 +- .../javascript/extensionsGetSample.js | 2 +- .../extensionsListByArcSettingSample.js | 2 +- .../javascript/extensionsUpdateSample.js | 2 +- .../javascript/extensionsUpgradeSample.js | 2 +- .../javascript/offersGetSample.js | 2 +- .../javascript/offersListByClusterSample.js | 2 +- .../javascript/offersListByPublisherSample.js | 2 +- .../javascript/operationsListSample.js | 2 +- .../{v4-beta => v4}/javascript/package.json | 6 +- .../{v4-beta => v4}/javascript/sample.env | 0 .../securitySettingsCreateOrUpdateSample.js | 2 +- .../securitySettingsDeleteSample.js | 2 +- .../javascript/securitySettingsGetSample.js | 2 +- .../securitySettingsListByClustersSample.js | 2 +- .../javascript/skusGetSample.js | 2 +- .../javascript/skusListByOfferSample.js | 2 +- .../javascript/updateRunsDeleteSample.js | 2 +- .../javascript/updateRunsGetSample.js | 2 +- .../javascript/updateRunsListSample.js | 2 +- .../javascript/updateRunsPutSample.js | 2 +- .../javascript/updateSummariesDeleteSample.js | 2 +- .../javascript/updateSummariesGetSample.js | 2 +- .../javascript/updateSummariesListSample.js | 2 +- ...ummariesOperationGroupCheckHealthSample.js | 2 +- ...mmariesOperationGroupCheckUpdatesSample.js | 4 +- .../javascript/updateSummariesPutSample.js | 2 +- .../javascript/updatesDeleteSample.js | 2 +- .../javascript/updatesGetSample.js | 2 +- .../javascript/updatesListSample.js | 2 +- .../javascript/updatesPostSample.js | 2 +- .../javascript/updatesPrepareSample.js | 2 +- .../javascript/updatesPutSample.js | 2 +- .../validatedSolutionRecipesGetSample.js | 2 +- ...istBySubscriptionLocationResourceSample.js | 2 +- .../samples/v4/typescript/README.md | 199 + .../{v4-beta => v4}/typescript/package.json | 6 +- .../{v4-beta => v4}/typescript/sample.env | 0 ...onsentAndInstallDefaultExtensionsSample.ts | 2 +- .../src/arcSettingsCreateIdentitySample.ts | 2 +- .../typescript/src/arcSettingsCreateSample.ts | 2 +- .../typescript/src/arcSettingsDeleteSample.ts | 2 +- .../src/arcSettingsGeneratePasswordSample.ts | 2 +- .../typescript/src/arcSettingsGetSample.ts | 2 +- ...cSettingsInitializeDisableProcessSample.ts | 2 +- .../src/arcSettingsListByClusterSample.ts | 2 +- .../src/arcSettingsReconcileSample.ts | 2 +- .../typescript/src/arcSettingsUpdateSample.ts | 2 +- .../clustersConfigureRemoteSupportSample.ts | 2 +- .../src/clustersCreateIdentitySample.ts | 2 +- .../typescript/src/clustersCreateSample.ts | 3 +- .../typescript/src/clustersDeleteSample.ts | 2 +- ...ersExtendSoftwareAssuranceBenefitSample.ts | 2 +- .../typescript/src/clustersGetSample.ts | 2 +- .../src/clustersListByResourceGroupSample.ts | 2 +- .../src/clustersListBySubscriptionSample.ts | 2 +- .../src/clustersTriggerLogCollectionSample.ts | 2 +- .../typescript/src/clustersUpdateSample.ts | 2 +- .../clustersUpdateSecretsLocationsSample.ts | 2 +- .../src/clustersUploadCertificateSample.ts | 2 +- .../deploymentSettingsCreateOrUpdateSample.ts | 716 ++ .../src/deploymentSettingsDeleteSample.ts | 2 +- .../src/deploymentSettingsGetSample.ts | 2 +- .../deploymentSettingsListByClustersSample.ts | 2 +- .../src/edgeDeviceJobsCreateOrUpdateSample.ts | 4 +- .../src/edgeDeviceJobsDeleteSample.ts | 2 +- .../typescript/src/edgeDeviceJobsGetSample.ts | 2 +- .../edgeDeviceJobsListByEdgeDeviceSample.ts | 2 +- .../src/edgeDevicesCreateOrUpdateSample.ts | 2 +- .../typescript/src/edgeDevicesDeleteSample.ts | 2 +- .../typescript/src/edgeDevicesGetSample.ts | 2 +- .../typescript/src/edgeDevicesListSample.ts | 2 +- .../src/edgeDevicesValidateSample.ts | 2 +- .../typescript/src/extensionsCreateSample.ts | 2 +- .../typescript/src/extensionsDeleteSample.ts | 2 +- .../typescript/src/extensionsGetSample.ts | 2 +- .../src/extensionsListByArcSettingSample.ts | 2 +- .../typescript/src/extensionsUpdateSample.ts | 2 +- .../typescript/src/extensionsUpgradeSample.ts | 2 +- .../typescript/src/offersGetSample.ts | 2 +- .../src/offersListByClusterSample.ts | 2 +- .../src/offersListByPublisherSample.ts | 2 +- .../typescript/src/operationsListSample.ts | 2 +- .../securitySettingsCreateOrUpdateSample.ts | 2 +- .../src/securitySettingsDeleteSample.ts | 2 +- .../src/securitySettingsGetSample.ts | 2 +- .../securitySettingsListByClustersSample.ts | 2 +- .../typescript/src/skusGetSample.ts | 2 +- .../typescript/src/skusListByOfferSample.ts | 2 +- .../typescript/src/updateRunsDeleteSample.ts | 2 +- .../typescript/src/updateRunsGetSample.ts | 2 +- .../typescript/src/updateRunsListSample.ts | 2 +- .../typescript/src/updateRunsPutSample.ts | 2 +- .../src/updateSummariesDeleteSample.ts | 2 +- .../src/updateSummariesGetSample.ts | 2 +- .../src/updateSummariesListSample.ts | 2 +- ...ummariesOperationGroupCheckHealthSample.ts | 2 +- ...mmariesOperationGroupCheckUpdatesSample.ts | 4 +- .../src/updateSummariesPutSample.ts | 2 +- .../typescript/src/updatesDeleteSample.ts | 2 +- .../typescript/src/updatesGetSample.ts | 2 +- .../typescript/src/updatesListSample.ts | 2 +- .../typescript/src/updatesPostSample.ts | 2 +- .../typescript/src/updatesPrepareSample.ts | 2 +- .../typescript/src/updatesPutSample.ts | 2 +- .../src/validatedSolutionRecipesGetSample.ts | 2 +- ...istBySubscriptionLocationResourceSample.ts | 2 +- .../{v4-beta => v4}/typescript/tsconfig.json | 5 +- .../src/api/arcSettings/operations.ts | 39 +- .../src/api/azureStackHCIContext.ts | 2 +- .../src/api/clusterJobs/index.ts | 10 - .../src/api/clusterJobs/operations.ts | 252 - .../src/api/clusterJobs/options.ts | 22 - .../src/api/clusters/index.ts | 2 - .../src/api/clusters/operations.ts | 115 +- .../src/api/clusters/options.ts | 6 - .../src/api/deploymentSettings/operations.ts | 23 +- .../src/api/devicePools/index.ts | 23 - .../src/api/devicePools/operations.ts | 473 - .../src/api/devicePools/options.ts | 43 - .../src/api/edgeDeviceJobs/operations.ts | 23 +- .../src/api/edgeDevices/operations.ts | 27 +- .../src/api/edgeMachineJobs/index.ts | 10 - .../src/api/edgeMachineJobs/operations.ts | 252 - .../src/api/edgeMachineJobs/options.ts | 22 - .../src/api/edgeMachines/index.ts | 19 - .../src/api/edgeMachines/operations.ts | 351 - .../src/api/edgeMachines/options.ts | 31 - .../src/api/extensions/operations.ts | 31 +- .../src/api/kubernetesVersions/index.ts | 5 - .../src/api/kubernetesVersions/operations.ts | 74 - .../src/api/kubernetesVersions/options.ts | 7 - .../src/api/offers/operations.ts | 18 +- .../src/api/operations/operations.ts | 10 +- .../src/api/osImages/index.ts | 8 - .../src/api/osImages/operations.ts | 121 - .../src/api/osImages/options.ts | 10 - .../src/api/ownershipVouchers/index.ts | 5 - .../src/api/ownershipVouchers/operations.ts | 76 - .../src/api/ownershipVouchers/options.ts | 7 - .../src/api/platformUpdates/index.ts | 8 - .../src/api/platformUpdates/operations.ts | 121 - .../src/api/platformUpdates/options.ts | 10 - .../src/api/publishers/index.ts | 8 - .../src/api/publishers/operations.ts | 127 - .../src/api/publishers/options.ts | 10 - .../src/api/securitySettings/operations.ts | 23 +- .../src/api/skus/operations.ts | 10 +- .../src/api/updateContents/index.ts | 8 - .../src/api/updateContents/operations.ts | 121 - .../src/api/updateContents/options.ts | 10 - .../src/api/updateRuns/operations.ts | 21 +- .../src/api/updateSummaries/operations.ts | 21 +- .../operations.ts | 8 +- .../src/api/updates/operations.ts | 29 +- .../validatedSolutionRecipes/operations.ts | 10 +- .../src/azureStackHCIClient.ts | 50 - .../src/classic/arcSettings/index.ts | 5 - .../src/classic/clusterJobs/index.ts | 170 - .../src/classic/clusters/index.ts | 59 - .../src/classic/deploymentSettings/index.ts | 5 - .../src/classic/devicePools/index.ts | 299 - .../src/classic/edgeDeviceJobs/index.ts | 5 - .../src/classic/edgeDevices/index.ts | 5 - .../src/classic/edgeMachineJobs/index.ts | 172 - .../src/classic/edgeMachines/index.ts | 200 - .../src/classic/extensions/index.ts | 5 - .../arm-azurestackhci/src/classic/index.ts | 10 - .../src/classic/kubernetesVersions/index.ts | 34 - .../src/classic/osImages/index.ts | 43 - .../src/classic/ownershipVouchers/index.ts | 40 - .../src/classic/platformUpdates/index.ts | 46 - .../src/classic/publishers/index.ts | 50 - .../src/classic/securitySettings/index.ts | 5 - .../src/classic/updateContents/index.ts | 43 - .../src/classic/updateRuns/index.ts | 5 - .../src/classic/updateSummaries/index.ts | 5 - .../src/classic/updates/index.ts | 5 - .../arm-azurestackhci/src/index.ts | 181 +- .../arm-azurestackhci/src/models/index.ts | 122 +- .../arm-azurestackhci/src/models/models.ts | 8162 ++++++----------- .../src/restorePollerHelpers.ts | 67 +- .../arm-azurestackhci/tsp-location.yaml | 2 +- .../arm-azurestackhci/warp.config.yml | 40 +- 410 files changed, 5352 insertions(+), 17096 deletions(-) delete mode 100644 sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-clusterJobs-node.api.md delete mode 100644 sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-devicePools-node.api.md delete mode 100644 sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-edgeMachineJobs-node.api.md delete mode 100644 sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-edgeMachines-node.api.md delete mode 100644 sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-kubernetesVersions-node.api.md delete mode 100644 sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-osImages-node.api.md delete mode 100644 sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-ownershipVouchers-node.api.md delete mode 100644 sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-platformUpdates-node.api.md delete mode 100644 sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-publishers-node.api.md delete mode 100644 sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-updateContents-node.api.md delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsCreateOrUpdateSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsDeleteSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsListSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersChangeRingSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsClaimDevicesSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsCreateOrUpdateSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsDeleteSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsListByResourceGroupSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsListBySubscriptionSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsReleaseDevicesSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsUpdateSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsCreateOrUpdateSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsDeleteSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsListSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesCreateOrUpdateSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesDeleteSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesListByResourceGroupSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesListBySubscriptionSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesUpdateSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/kubernetesVersionsListBySubscriptionLocationResourceSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/osImagesGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/osImagesListBySubscriptionLocationResourceSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/ownershipVouchersValidateSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/platformUpdatesGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/platformUpdatesListSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersListByClusterSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/updateContentsGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples-dev/updateContentsListSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/README.md delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsCreateOrUpdateSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsDeleteSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsGetSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsListSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersChangeRingSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsCreateOrUpdateSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsClaimDevicesSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsCreateOrUpdateSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsDeleteSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsGetSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsListByResourceGroupSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsListBySubscriptionSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsReleaseDevicesSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsUpdateSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsCreateOrUpdateSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsDeleteSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsGetSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsListSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesCreateOrUpdateSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesDeleteSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesGetSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesListByResourceGroupSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesListBySubscriptionSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesUpdateSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/kubernetesVersionsListBySubscriptionLocationResourceSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/osImagesGetSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/osImagesListBySubscriptionLocationResourceSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/ownershipVouchersValidateSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/platformUpdatesGetSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/platformUpdatesListSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/publishersGetSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/publishersListByClusterSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateContentsGetSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateContentsListSample.js delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/README.md delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsCreateOrUpdateSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsDeleteSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsListSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersChangeRingSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsCreateOrUpdateSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsClaimDevicesSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsCreateOrUpdateSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsDeleteSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsListByResourceGroupSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsListBySubscriptionSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsReleaseDevicesSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsUpdateSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsCreateOrUpdateSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsDeleteSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsListSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesCreateOrUpdateSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesDeleteSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesListByResourceGroupSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesListBySubscriptionSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesUpdateSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/kubernetesVersionsListBySubscriptionLocationResourceSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/osImagesGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/osImagesListBySubscriptionLocationResourceSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/ownershipVouchersValidateSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/platformUpdatesGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/platformUpdatesListSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersListByClusterSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateContentsGetSample.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateContentsListSample.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/README.md rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/arcSettingsConsentAndInstallDefaultExtensionsSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/arcSettingsCreateIdentitySample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/arcSettingsCreateSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/arcSettingsDeleteSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/arcSettingsGeneratePasswordSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/arcSettingsGetSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/arcSettingsInitializeDisableProcessSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/arcSettingsListByClusterSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/arcSettingsReconcileSample.js (94%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/arcSettingsUpdateSample.js (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/clustersConfigureRemoteSupportSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/clustersCreateIdentitySample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/clustersCreateSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/clustersDeleteSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/clustersExtendSoftwareAssuranceBenefitSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/clustersGetSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/clustersListByResourceGroupSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/clustersListBySubscriptionSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/clustersTriggerLogCollectionSample.js (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/clustersUpdateSample.js (94%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/clustersUpdateSecretsLocationsSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/clustersUploadCertificateSample.js (92%) create mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsCreateOrUpdateSample.js rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/deploymentSettingsDeleteSample.js (90%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/deploymentSettingsGetSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/deploymentSettingsListByClustersSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/edgeDeviceJobsCreateOrUpdateSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/edgeDeviceJobsDeleteSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/edgeDeviceJobsGetSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/edgeDeviceJobsListByEdgeDeviceSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/edgeDevicesCreateOrUpdateSample.js (95%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/edgeDevicesDeleteSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/edgeDevicesGetSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/edgeDevicesListSample.js (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/edgeDevicesValidateSample.js (94%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/extensionsCreateSample.js (94%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/extensionsDeleteSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/extensionsGetSample.js (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/extensionsListByArcSettingSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/extensionsUpdateSample.js (94%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/extensionsUpgradeSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/offersGetSample.js (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/offersListByClusterSample.js (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/offersListByPublisherSample.js (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/operationsListSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/package.json (86%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/sample.env (100%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/securitySettingsCreateOrUpdateSample.js (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/securitySettingsDeleteSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/securitySettingsGetSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/securitySettingsListByClustersSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/skusGetSample.js (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/skusListByOfferSample.js (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updateRunsDeleteSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updateRunsGetSample.js (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updateRunsListSample.js (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updateRunsPutSample.js (96%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updateSummariesDeleteSample.js (90%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updateSummariesGetSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updateSummariesListSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updateSummariesOperationGroupCheckHealthSample.js (90%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updateSummariesOperationGroupCheckUpdatesSample.js (88%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updateSummariesPutSample.js (94%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updatesDeleteSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updatesGetSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updatesListSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updatesPostSample.js (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updatesPrepareSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/updatesPutSample.js (96%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/validatedSolutionRecipesGetSample.js (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/javascript/validatedSolutionRecipesListBySubscriptionLocationResourceSample.js (89%) create mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/README.md rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/package.json (88%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/sample.env (100%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/arcSettingsConsentAndInstallDefaultExtensionsSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/arcSettingsCreateIdentitySample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/arcSettingsCreateSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/arcSettingsDeleteSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/arcSettingsGeneratePasswordSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/arcSettingsGetSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/arcSettingsInitializeDisableProcessSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/arcSettingsListByClusterSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/arcSettingsReconcileSample.ts (94%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/arcSettingsUpdateSample.ts (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/clustersConfigureRemoteSupportSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/clustersCreateIdentitySample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/clustersCreateSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/clustersDeleteSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/clustersExtendSoftwareAssuranceBenefitSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/clustersGetSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/clustersListByResourceGroupSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/clustersListBySubscriptionSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/clustersTriggerLogCollectionSample.ts (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/clustersUpdateSample.ts (94%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/clustersUpdateSecretsLocationsSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/clustersUploadCertificateSample.ts (92%) create mode 100644 sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsCreateOrUpdateSample.ts rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/deploymentSettingsDeleteSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/deploymentSettingsGetSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/deploymentSettingsListByClustersSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/edgeDeviceJobsCreateOrUpdateSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/edgeDeviceJobsDeleteSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/edgeDeviceJobsGetSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/edgeDeviceJobsListByEdgeDeviceSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/edgeDevicesCreateOrUpdateSample.ts (95%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/edgeDevicesDeleteSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/edgeDevicesGetSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/edgeDevicesListSample.ts (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/edgeDevicesValidateSample.ts (94%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/extensionsCreateSample.ts (94%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/extensionsDeleteSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/extensionsGetSample.ts (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/extensionsListByArcSettingSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/extensionsUpdateSample.ts (94%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/extensionsUpgradeSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/offersGetSample.ts (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/offersListByClusterSample.ts (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/offersListByPublisherSample.ts (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/operationsListSample.ts (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/securitySettingsCreateOrUpdateSample.ts (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/securitySettingsDeleteSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/securitySettingsGetSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/securitySettingsListByClustersSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/skusGetSample.ts (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/skusListByOfferSample.ts (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updateRunsDeleteSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updateRunsGetSample.ts (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updateRunsListSample.ts (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updateRunsPutSample.ts (96%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updateSummariesDeleteSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updateSummariesGetSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updateSummariesListSample.ts (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updateSummariesOperationGroupCheckHealthSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updateSummariesOperationGroupCheckUpdatesSample.ts (88%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updateSummariesPutSample.ts (94%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updatesDeleteSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updatesGetSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updatesListSample.ts (93%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updatesPostSample.ts (92%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updatesPrepareSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/updatesPutSample.ts (96%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/validatedSolutionRecipesGetSample.ts (91%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/src/validatedSolutionRecipesListBySubscriptionLocationResourceSample.ts (89%) rename sdk/azurestackhci/arm-azurestackhci/samples/{v4-beta => v4}/typescript/tsconfig.json (81%) delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/clusterJobs/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/clusterJobs/operations.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/clusterJobs/options.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/devicePools/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/devicePools/operations.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/devicePools/options.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachineJobs/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachineJobs/operations.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachineJobs/options.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachines/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachines/operations.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachines/options.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/kubernetesVersions/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/kubernetesVersions/operations.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/kubernetesVersions/options.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/osImages/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/osImages/operations.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/osImages/options.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/ownershipVouchers/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/ownershipVouchers/operations.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/ownershipVouchers/options.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/platformUpdates/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/platformUpdates/operations.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/platformUpdates/options.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/publishers/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/publishers/operations.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/publishers/options.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/updateContents/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/updateContents/operations.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/api/updateContents/options.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/classic/clusterJobs/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/classic/devicePools/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/classic/edgeMachineJobs/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/classic/edgeMachines/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/classic/kubernetesVersions/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/classic/osImages/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/classic/ownershipVouchers/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/classic/platformUpdates/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/classic/publishers/index.ts delete mode 100644 sdk/azurestackhci/arm-azurestackhci/src/classic/updateContents/index.ts diff --git a/sdk/azurestackhci/arm-azurestackhci/CHANGELOG.md b/sdk/azurestackhci/arm-azurestackhci/CHANGELOG.md index 37b2d62366cc..5b21f3b81824 100644 --- a/sdk/azurestackhci/arm-azurestackhci/CHANGELOG.md +++ b/sdk/azurestackhci/arm-azurestackhci/CHANGELOG.md @@ -1,5 +1,51 @@ # Release History +## 4.1.0 (2026-05-15) + +### Features Added + - Added operation group UpdateSummariesOperationGroupOperations + - Added operation UpdatesOperations.beginPrepare + - Added operation UpdatesOperations.beginPrepareAndWait + - Added operation UpdatesOperations.prepare + - Added Interface CheckUpdatesRequest + - Added Interface ClusterBillingProperties + - Added Interface EdgeDeviceDisks + - Added Interface NextBillingModel + - Added Interface SanAdapterIPConfig + - Added Interface SanAdapterProperties + - Added Interface SanClusterNetworkConfig + - Added Interface SanNetworks + - Added Interface StorageS2DConfig + - Added Interface StorageSanConfig + - Added Interface UpdatesPrepareOptionalParams + - Added Interface UpdateSummariesOperationGroupCheckHealthOptionalParams + - Added Interface UpdateSummariesOperationGroupCheckUpdatesOptionalParams + - Interface Cluster has a new optional parameter billingProperties + - Interface Cluster has a new optional parameter kind + - Interface Cluster has a new optional parameter storageType + - Interface ClusterProperties has a new optional parameter billingProperties + - Interface ClusterProperties has a new optional parameter storageType + - Interface DeploymentSettingHostNetwork has a new optional parameter sanNetworks + - Interface HciReportedProperties has a new optional parameter lastSyncTimestamp + - Interface HciStorageProfile has a new optional parameter disks + - Interface PerNodeRemoteSupportSession has a new optional parameter transcriptLocation + - Interface RemoteSupportProperties has a new optional parameter remoteSupportProvisioningState + - Interface ReportedProperties has a new optional parameter lastSyncTimestamp + - Interface Storage has a new optional parameter s2D + - Interface Storage has a new optional parameter san + - Interface Storage has a new optional parameter storageType + - Added Type Alias OverprovisioningRatio + - Added Type Alias RemoteSupportProvisioningState + - Added Type Alias StorageType + - Added Type Alias VolumeType + - Added Enum KnownOverprovisioningRatio + - Added Enum KnownRemoteSupportProvisioningState + - Added Enum KnownStorageType + - Added Enum KnownVolumeType + - Enum KnownState has a new value HealthCheckExpired + - Enum KnownState has a new value PendingOEMValidation + - Enum KnownVersions has a new value V20260430 + ## 4.1.0-beta.1 (2026-04-13) Compared with version 4.0.0 diff --git a/sdk/azurestackhci/arm-azurestackhci/README.md b/sdk/azurestackhci/arm-azurestackhci/README.md index 4686ff64fff0..e984728c6fbf 100644 --- a/sdk/azurestackhci/arm-azurestackhci/README.md +++ b/sdk/azurestackhci/arm-azurestackhci/README.md @@ -8,7 +8,7 @@ Key links: - [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/azurestackhci/arm-azurestackhci) - [Package (NPM)](https://www.npmjs.com/package/@azure/arm-azurestackhci) -- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-azurestackhci?view=azure-node-preview) +- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-azurestackhci) - [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/azurestackhci/arm-azurestackhci/samples) ## Getting started diff --git a/sdk/azurestackhci/arm-azurestackhci/metadata.json b/sdk/azurestackhci/arm-azurestackhci/metadata.json index 5b0ac6c3967f..7285d760942d 100644 --- a/sdk/azurestackhci/arm-azurestackhci/metadata.json +++ b/sdk/azurestackhci/arm-azurestackhci/metadata.json @@ -1,41 +1,26 @@ { "apiVersions": { - "Microsoft.AzureStackHCI": "2026-04-01-preview" + "Microsoft.AzureStackHCI": "2026-04-30" }, - "emitterVersion": "0.52.1", + "emitterVersion": "0.52.3", "crossLanguageDefinitions": { "CrossLanguagePackageId": "Microsoft.AzureStackHCI", "CrossLanguageDefinitionId": { - "@azure/arm-azurestackhci!KubernetesVersionListResult:interface": "Azure.ResourceManager.ResourceListResult", - "@azure/arm-azurestackhci!KubernetesVersion:interface": "Microsoft.AzureStackHCI.KubernetesVersion", - "@azure/arm-azurestackhci!KubernetesVersionProperties:interface": "Microsoft.AzureStackHCI.KubernetesVersionProperties", - "@azure/arm-azurestackhci!ProxyResource:interface": "Azure.ResourceManager.CommonTypes.ProxyResource", - "@azure/arm-azurestackhci!Resource:interface": "Azure.ResourceManager.CommonTypes.Resource", - "@azure/arm-azurestackhci!SystemData:interface": "Azure.ResourceManager.CommonTypes.SystemData", - "@azure/arm-azurestackhci!ErrorResponse:interface": "Azure.ResourceManager.CommonTypes.ErrorResponse", - "@azure/arm-azurestackhci!ErrorDetail:interface": "Azure.ResourceManager.CommonTypes.ErrorDetail", - "@azure/arm-azurestackhci!ErrorAdditionalInfo:interface": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo", - "@azure/arm-azurestackhci!PlatformUpdate:interface": "Microsoft.AzureStackHCI.PlatformUpdate", - "@azure/arm-azurestackhci!PlatformUpdateProperties:interface": "Microsoft.AzureStackHCI.PlatformUpdateProperties", - "@azure/arm-azurestackhci!PlatformUpdateDetails:interface": "Microsoft.AzureStackHCI.PlatformUpdateDetails", - "@azure/arm-azurestackhci!PlatformPayload:interface": "Microsoft.AzureStackHCI.PlatformPayload", - "@azure/arm-azurestackhci!PlatformUpdateListResult:interface": "Azure.ResourceManager.ResourceListResult", - "@azure/arm-azurestackhci!OsImage:interface": "Microsoft.AzureStackHCI.OsImage", - "@azure/arm-azurestackhci!OsImageProperties:interface": "Microsoft.AzureStackHCI.OsImageProperties", - "@azure/arm-azurestackhci!OsImageListResult:interface": "Azure.ResourceManager.ResourceListResult", - "@azure/arm-azurestackhci!UpdateContent:interface": "Microsoft.AzureStackHCI.UpdateContent", - "@azure/arm-azurestackhci!UpdateContentProperties:interface": "Microsoft.AzureStackHCI.UpdateContentProperties", - "@azure/arm-azurestackhci!ContentPayload:interface": "Microsoft.AzureStackHCI.ContentPayload", - "@azure/arm-azurestackhci!UpdateContentListResult:interface": "Azure.ResourceManager.ResourceListResult", "@azure/arm-azurestackhci!OperationListResult:interface": "Azure.ResourceManager.CommonTypes.OperationListResult", "@azure/arm-azurestackhci!Operation:interface": "Azure.ResourceManager.CommonTypes.Operation", "@azure/arm-azurestackhci!OperationDisplay:interface": "Azure.ResourceManager.CommonTypes.OperationDisplay", + "@azure/arm-azurestackhci!ErrorResponse:interface": "Azure.ResourceManager.CommonTypes.ErrorResponse", + "@azure/arm-azurestackhci!ErrorDetail:interface": "Azure.ResourceManager.CommonTypes.ErrorDetail", + "@azure/arm-azurestackhci!ErrorAdditionalInfo:interface": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo", "@azure/arm-azurestackhci!ArcSetting:interface": "Microsoft.AzureStackHCI.ArcSetting", "@azure/arm-azurestackhci!ArcSettingProperties:interface": "Microsoft.AzureStackHCI.ArcSettingProperties", "@azure/arm-azurestackhci!PerNodeState:interface": "Microsoft.AzureStackHCI.PerNodeState", "@azure/arm-azurestackhci!ArcConnectivityProperties:interface": "Microsoft.AzureStackHCI.ArcConnectivityProperties", "@azure/arm-azurestackhci!ServiceConfiguration:interface": "Microsoft.AzureStackHCI.ServiceConfiguration", "@azure/arm-azurestackhci!DefaultExtensionDetails:interface": "Microsoft.AzureStackHCI.DefaultExtensionDetails", + "@azure/arm-azurestackhci!ProxyResource:interface": "Azure.ResourceManager.CommonTypes.ProxyResource", + "@azure/arm-azurestackhci!Resource:interface": "Azure.ResourceManager.CommonTypes.Resource", + "@azure/arm-azurestackhci!SystemData:interface": "Azure.ResourceManager.CommonTypes.SystemData", "@azure/arm-azurestackhci!ArcSettingsPatch:interface": "Microsoft.AzureStackHCI.ArcSettingsPatch", "@azure/arm-azurestackhci!ArcSettingsPatchProperties:interface": "Microsoft.AzureStackHCI.ArcSettingsPatchProperties", "@azure/arm-azurestackhci!ArmOperationStatusResourceProvisioningState:interface": "Azure.ResourceManager.ArmOperationStatus", @@ -65,9 +50,6 @@ "@azure/arm-azurestackhci!ClusterBillingProperties:interface": "Microsoft.AzureStackHCI.ClusterBillingProperties", "@azure/arm-azurestackhci!NextBillingModel:interface": "Microsoft.AzureStackHCI.NextBillingModel", "@azure/arm-azurestackhci!SecretsLocationDetails:interface": "Microsoft.AzureStackHCI.SecretsLocationDetails", - "@azure/arm-azurestackhci!ConfidentialVmProperties:interface": "Microsoft.AzureStackHCI.ConfidentialVmProperties", - "@azure/arm-azurestackhci!ClusterSdnProperties:interface": "Microsoft.AzureStackHCI.ClusterSdnProperties", - "@azure/arm-azurestackhci!SdnProperties:interface": "Microsoft.AzureStackHCI.SdnProperties", "@azure/arm-azurestackhci!LocalAvailabilityZones:interface": "Microsoft.AzureStackHCI.LocalAvailabilityZones", "@azure/arm-azurestackhci!ManagedServiceIdentity:interface": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentity", "@azure/arm-azurestackhci!UserAssignedIdentity:interface": "Azure.ResourceManager.CommonTypes.UserAssignedIdentity", @@ -82,8 +64,6 @@ "@azure/arm-azurestackhci!ClusterIdentityResponseProperties:interface": "Microsoft.AzureStackHCI.ClusterIdentityResponseProperties", "@azure/arm-azurestackhci!SoftwareAssuranceChangeRequest:interface": "Microsoft.AzureStackHCI.SoftwareAssuranceChangeRequest", "@azure/arm-azurestackhci!SoftwareAssuranceChangeRequestProperties:interface": "Microsoft.AzureStackHCI.SoftwareAssuranceChangeRequestProperties", - "@azure/arm-azurestackhci!ChangeRingRequest:interface": "Microsoft.AzureStackHCI.ChangeRingRequest", - "@azure/arm-azurestackhci!ChangeRingRequestProperties:interface": "Microsoft.AzureStackHCI.ChangeRingRequestProperties", "@azure/arm-azurestackhci!LogCollectionRequest:interface": "Microsoft.AzureStackHCI.LogCollectionRequest", "@azure/arm-azurestackhci!LogCollectionRequestProperties:interface": "Microsoft.AzureStackHCI.LogCollectionRequestProperties", "@azure/arm-azurestackhci!RemoteSupportRequest:interface": "Microsoft.AzureStackHCI.RemoteSupportRequest", @@ -163,8 +143,6 @@ "@azure/arm-azurestackhci!ExtensionProfile:interface": "Microsoft.AzureStackHCI.ExtensionProfile", "@azure/arm-azurestackhci!HciEdgeDeviceArcExtension:interface": "Microsoft.AzureStackHCI.HciEdgeDeviceArcExtension", "@azure/arm-azurestackhci!HciValidationFailureDetail:interface": "Microsoft.AzureStackHCI.HciValidationFailureDetail", - "@azure/arm-azurestackhci!ConfidentialVmProfile:interface": "Microsoft.AzureStackHCI.ConfidentialVmProfile", - "@azure/arm-azurestackhci!IgvmStatusDetail:interface": "Microsoft.AzureStackHCI.IgvmStatusDetail", "@azure/arm-azurestackhci!EdgeDeviceProperties:interface": "Microsoft.AzureStackHCI.EdgeDeviceProperties", "@azure/arm-azurestackhci!DeviceConfiguration:interface": "Microsoft.AzureStackHCI.DeviceConfiguration", "@azure/arm-azurestackhci!NicDetail:interface": "Microsoft.AzureStackHCI.NicDetail", @@ -182,9 +160,6 @@ "@azure/arm-azurestackhci!ExtensionPatchParameters:interface": "Microsoft.AzureStackHCI.ExtensionPatchParameters", "@azure/arm-azurestackhci!ExtensionList:interface": "Microsoft.AzureStackHCI.ExtensionList", "@azure/arm-azurestackhci!ExtensionUpgradeParameters:interface": "Microsoft.AzureStackHCI.ExtensionUpgradeParameters", - "@azure/arm-azurestackhci!Publisher:interface": "Microsoft.AzureStackHCI.Publisher", - "@azure/arm-azurestackhci!PublisherProperties:interface": "Microsoft.AzureStackHCI.PublisherProperties", - "@azure/arm-azurestackhci!PublisherList:interface": "Microsoft.AzureStackHCI.PublisherList", "@azure/arm-azurestackhci!SecuritySetting:interface": "Microsoft.AzureStackHCI.SecuritySetting", "@azure/arm-azurestackhci!SecurityProperties:interface": "Microsoft.AzureStackHCI.SecurityProperties", "@azure/arm-azurestackhci!SecurityComplianceStatus:interface": "Microsoft.AzureStackHCI.SecurityComplianceStatus", @@ -215,70 +190,16 @@ "@azure/arm-azurestackhci!ValidatedSolutionRecipeComponentPayload:interface": "Microsoft.AzureStackHCI.ValidatedSolutionRecipeComponentPayload", "@azure/arm-azurestackhci!ValidatedSolutionRecipeComponentMetadata:interface": "Microsoft.AzureStackHCI.ValidatedSolutionRecipeComponentMetadata", "@azure/arm-azurestackhci!ValidatedSolutionRecipeListResult:interface": "Azure.ResourceManager.ResourceListResult", - "@azure/arm-azurestackhci!EdgeMachine:interface": "Microsoft.AzureStackHCI.EdgeMachine", - "@azure/arm-azurestackhci!EdgeMachineProperties:interface": "Microsoft.AzureStackHCI.EdgeMachineProperties", - "@azure/arm-azurestackhci!SiteDetails:interface": "Microsoft.AzureStackHCI.SiteDetails", - "@azure/arm-azurestackhci!TargetDeviceConfiguration:interface": "Microsoft.AzureStackHCI.TargetDeviceConfiguration", - "@azure/arm-azurestackhci!NetworkConfiguration:interface": "Microsoft.AzureStackHCI.NetworkConfiguration", - "@azure/arm-azurestackhci!NetworkAdapter:interface": "Microsoft.AzureStackHCI.NetworkAdapter", - "@azure/arm-azurestackhci!IpAddressRange:interface": "Microsoft.AzureStackHCI.IpAddressRange", - "@azure/arm-azurestackhci!WebProxyConfiguration:interface": "Microsoft.AzureStackHCI.WebProxyConfiguration", - "@azure/arm-azurestackhci!TimeConfiguration:interface": "Microsoft.AzureStackHCI.TimeConfiguration", - "@azure/arm-azurestackhci!StorageConfiguration:interface": "Microsoft.AzureStackHCI.StorageConfiguration", - "@azure/arm-azurestackhci!OwnershipVoucherDetails:interface": "Microsoft.AzureStackHCI.OwnershipVoucherDetails", - "@azure/arm-azurestackhci!OwnershipVoucherValidationDetails:interface": "Microsoft.AzureStackHCI.OwnershipVoucherValidationDetails", - "@azure/arm-azurestackhci!ProvisioningDetails:interface": "Microsoft.AzureStackHCI.ProvisioningDetails", - "@azure/arm-azurestackhci!OsProvisionProfile:interface": "Microsoft.AzureStackHCI.OsProvisionProfile", - "@azure/arm-azurestackhci!UserDetails:interface": "Microsoft.AzureStackHCI.UserDetails", - "@azure/arm-azurestackhci!EdgeMachineReportedProperties:interface": "Microsoft.AzureStackHCI.EdgeMachineReportedProperties", - "@azure/arm-azurestackhci!EdgeMachineNetworkProfile:interface": "Microsoft.AzureStackHCI.EdgeMachineNetworkProfile", - "@azure/arm-azurestackhci!EdgeMachineNicDetail:interface": "Microsoft.AzureStackHCI.EdgeMachineNicDetail", - "@azure/arm-azurestackhci!OsProfile:interface": "Microsoft.AzureStackHCI.OsProfile", - "@azure/arm-azurestackhci!HardwareProfile:interface": "Microsoft.AzureStackHCI.HardwareProfile", - "@azure/arm-azurestackhci!StorageProfile:interface": "Microsoft.AzureStackHCI.StorageProfile", - "@azure/arm-azurestackhci!OperationDetail:interface": "Microsoft.AzureStackHCI.OperationDetail", - "@azure/arm-azurestackhci!EdgeMachinePatch:interface": "Microsoft.AzureStackHCI.EdgeMachinePatch", - "@azure/arm-azurestackhci!EdgeMachineListResult:interface": "Azure.ResourceManager.ResourceListResult", - "@azure/arm-azurestackhci!EdgeMachineJob:interface": "Microsoft.AzureStackHCI.EdgeMachineJob", - "@azure/arm-azurestackhci!EdgeMachineJobProperties:interface": "Microsoft.AzureStackHCI.EdgeMachineJobProperties", - "@azure/arm-azurestackhci!EdgeMachineRemoteSupportJobProperties:interface": "Microsoft.AzureStackHCI.EdgeMachineRemoteSupportJobProperties", - "@azure/arm-azurestackhci!EdgeMachineRemoteSupportJobReportedProperties:interface": "Microsoft.AzureStackHCI.EdgeMachineRemoteSupportJobReportedProperties", - "@azure/arm-azurestackhci!EdgeMachineRemoteSupportNodeSettings:interface": "Microsoft.AzureStackHCI.EdgeMachineRemoteSupportNodeSettings", - "@azure/arm-azurestackhci!ProvisionOsJobProperties:interface": "Microsoft.AzureStackHCI.ProvisionOsJobProperties", - "@azure/arm-azurestackhci!ProvisioningRequest:interface": "Microsoft.AzureStackHCI.ProvisioningRequest", - "@azure/arm-azurestackhci!OnboardingConfiguration:interface": "Microsoft.AzureStackHCI.OnboardingConfiguration", - "@azure/arm-azurestackhci!ProvisionOsReportedProperties:interface": "Microsoft.AzureStackHCI.ProvisionOsReportedProperties", - "@azure/arm-azurestackhci!DownloadOsJobProperties:interface": "Microsoft.AzureStackHCI.DownloadOsJobProperties", - "@azure/arm-azurestackhci!DownloadRequest:interface": "Microsoft.AzureStackHCI.DownloadRequest", - "@azure/arm-azurestackhci!DownloadOsProfile:interface": "Microsoft.AzureStackHCI.DownloadOsProfile", - "@azure/arm-azurestackhci!EdgeMachineCollectLogJobProperties:interface": "Microsoft.AzureStackHCI.EdgeMachineCollectLogJobProperties", - "@azure/arm-azurestackhci!EdgeMachineCollectLogJobReportedProperties:interface": "Microsoft.AzureStackHCI.EdgeMachineCollectLogJobReportedProperties", - "@azure/arm-azurestackhci!EdgeMachineJobListResult:interface": "Azure.ResourceManager.ResourceListResult", - "@azure/arm-azurestackhci!ValidateOwnershipVouchersRequest:interface": "Microsoft.AzureStackHCI.ValidateOwnershipVouchersRequest", - "@azure/arm-azurestackhci!ValidateOwnershipVouchersResponse:interface": "Microsoft.AzureStackHCI.ValidateOwnershipVouchersResponse", - "@azure/arm-azurestackhci!ClusterJob:interface": "Microsoft.AzureStackHCI.ClusterJob", - "@azure/arm-azurestackhci!ClusterJobProperties:interface": "Microsoft.AzureStackHCI.ClusterJobProperties", - "@azure/arm-azurestackhci!JobReportedProperties:interface": "Microsoft.AzureStackHCI.JobReportedProperties", - "@azure/arm-azurestackhci!HciConfigureSdnIntegrationJobProperties:interface": "Microsoft.AzureStackHCI.HciConfigureSdnIntegrationJobProperties", - "@azure/arm-azurestackhci!HciConfigureCvmJobProperties:interface": "Microsoft.AzureStackHCI.HciConfigureCvmJobProperties", - "@azure/arm-azurestackhci!ClusterJobListResult:interface": "Microsoft.AzureStackHCI.ClusterJobListResult", - "@azure/arm-azurestackhci!DevicePool:interface": "Microsoft.AzureStackHCI.DevicePool", - "@azure/arm-azurestackhci!DevicePoolProperties:interface": "Microsoft.AzureStackHCI.DevicePoolProperties", - "@azure/arm-azurestackhci!DeviceDetail:interface": "Microsoft.AzureStackHCI.DeviceDetail", - "@azure/arm-azurestackhci!DevicePoolPatch:interface": "Microsoft.AzureStackHCI.DevicePoolPatch", - "@azure/arm-azurestackhci!DevicePoolListResult:interface": "Azure.ResourceManager.ResourceListResult", - "@azure/arm-azurestackhci!ClaimDeviceRequest:interface": "Microsoft.AzureStackHCI.ClaimDeviceRequest", - "@azure/arm-azurestackhci!ReleaseDeviceRequest:interface": "Microsoft.AzureStackHCI.ReleaseDeviceRequest", "@azure/arm-azurestackhci!UpdateSummaries:interface": "Microsoft.AzureStackHCI.UpdateSummaries", "@azure/arm-azurestackhci!UpdateSummariesProperties:interface": "Microsoft.AzureStackHCI.UpdateSummariesProperties", "@azure/arm-azurestackhci!UpdateSummariesList:interface": "Microsoft.AzureStackHCI.UpdateSummariesList", - "@azure/arm-azurestackhci!KnowncreatedByType:enum": "Azure.ResourceManager.CommonTypes.createdByType", "@azure/arm-azurestackhci!KnownOrigin:enum": "Azure.ResourceManager.CommonTypes.Origin", "@azure/arm-azurestackhci!KnownActionType:enum": "Azure.ResourceManager.CommonTypes.ActionType", "@azure/arm-azurestackhci!KnownProvisioningState:enum": "Microsoft.AzureStackHCI.ProvisioningState", "@azure/arm-azurestackhci!KnownArcSettingAggregateState:enum": "Microsoft.AzureStackHCI.ArcSettingAggregateState", "@azure/arm-azurestackhci!KnownNodeArcState:enum": "Microsoft.AzureStackHCI.NodeArcState", "@azure/arm-azurestackhci!KnownServiceName:enum": "Microsoft.AzureStackHCI.ServiceName", + "@azure/arm-azurestackhci!KnowncreatedByType:enum": "Azure.ResourceManager.CommonTypes.createdByType", "@azure/arm-azurestackhci!KnownResourceProvisioningState:enum": "Azure.ResourceManager.ResourceProvisioningState", "@azure/arm-azurestackhci!KnownStatus:enum": "Microsoft.AzureStackHCI.Status", "@azure/arm-azurestackhci!KnownConnectivityStatus:enum": "Microsoft.AzureStackHCI.ConnectivityStatus", @@ -297,10 +218,6 @@ "@azure/arm-azurestackhci!KnownHardwareClass:enum": "Microsoft.AzureStackHCI.HardwareClass", "@azure/arm-azurestackhci!KnownSecretsType:enum": "Microsoft.AzureStackHCI.SecretsType", "@azure/arm-azurestackhci!KnownClusterPattern:enum": "Microsoft.AzureStackHCI.ClusterPattern", - "@azure/arm-azurestackhci!KnownConfidentialVmIntent:enum": "Microsoft.AzureStackHCI.ConfidentialVmIntent", - "@azure/arm-azurestackhci!KnownConfidentialVmStatus:enum": "Microsoft.AzureStackHCI.ConfidentialVmStatus", - "@azure/arm-azurestackhci!KnownSdnIntegrationIntent:enum": "Microsoft.AzureStackHCI.SdnIntegrationIntent", - "@azure/arm-azurestackhci!KnownSdnStatus:enum": "Microsoft.AzureStackHCI.SdnStatus", "@azure/arm-azurestackhci!KnownIdentityProvider:enum": "Microsoft.AzureStackHCI.IdentityProvider", "@azure/arm-azurestackhci!KnownStorageType:enum": "Microsoft.AzureStackHCI.StorageType", "@azure/arm-azurestackhci!KnownManagedServiceIdentityType:enum": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType", @@ -320,7 +237,6 @@ "@azure/arm-azurestackhci!KnownDeviceState:enum": "Microsoft.AzureStackHCI.DeviceState", "@azure/arm-azurestackhci!KnownArcExtensionState:enum": "Microsoft.AzureStackHCI.ArcExtensionState", "@azure/arm-azurestackhci!KnownExtensionManagedBy:enum": "Microsoft.AzureStackHCI.ExtensionManagedBy", - "@azure/arm-azurestackhci!KnownIgvmStatus:enum": "Microsoft.AzureStackHCI.IgvmStatus", "@azure/arm-azurestackhci!KnownExtensionAggregateState:enum": "Microsoft.AzureStackHCI.ExtensionAggregateState", "@azure/arm-azurestackhci!KnownNodeExtensionState:enum": "Microsoft.AzureStackHCI.NodeExtensionState", "@azure/arm-azurestackhci!KnownStatusLevelTypes:enum": "Microsoft.AzureStackHCI.StatusLevelTypes", @@ -332,18 +248,6 @@ "@azure/arm-azurestackhci!KnownHealthState:enum": "Microsoft.AzureStackHCI.HealthState", "@azure/arm-azurestackhci!KnownSeverity:enum": "Microsoft.AzureStackHCI.Severity", "@azure/arm-azurestackhci!KnownAvailabilityType:enum": "Microsoft.AzureStackHCI.AvailabilityType", - "@azure/arm-azurestackhci!KnownEdgeMachineKind:enum": "Microsoft.AzureStackHCI.EdgeMachineKind", - "@azure/arm-azurestackhci!KnownIpAssignmentType:enum": "Microsoft.AzureStackHCI.IpAssignmentType", - "@azure/arm-azurestackhci!KnownOwnerKeyType:enum": "Microsoft.AzureStackHCI.OwnerKeyType", - "@azure/arm-azurestackhci!KnownOwnershipVoucherValidationStatus:enum": "Microsoft.AzureStackHCI.OwnershipVoucherValidationStatus", - "@azure/arm-azurestackhci!KnownOSOperationType:enum": "Microsoft.AzureStackHCI.OSOperationType", - "@azure/arm-azurestackhci!KnownSecretType:enum": "Microsoft.AzureStackHCI.SecretType", - "@azure/arm-azurestackhci!KnownEdgeMachineState:enum": "Microsoft.AzureStackHCI.EdgeMachineState", - "@azure/arm-azurestackhci!KnownEdgeMachineConnectivityStatus:enum": "Microsoft.AzureStackHCI.EdgeMachineConnectivityStatus", - "@azure/arm-azurestackhci!KnownEdgeMachineJobType:enum": "Microsoft.AzureStackHCI.EdgeMachineJobType", - "@azure/arm-azurestackhci!KnownProvisioningOsType:enum": "Microsoft.AzureStackHCI.ProvisioningOsType", - "@azure/arm-azurestackhci!KnownOnboardingResourceType:enum": "Microsoft.AzureStackHCI.OnboardingResourceType", - "@azure/arm-azurestackhci!KnownHciJobType:enum": "Microsoft.AzureStackHCI.HciJobType", "@azure/arm-azurestackhci!KnownUpdateSummariesPropertiesState:enum": "Microsoft.AzureStackHCI.UpdateSummariesPropertiesState", "@azure/arm-azurestackhci!KnownVersions:enum": "Microsoft.AzureStackHCI.Versions", "@azure/arm-azurestackhci!ManagedServiceIdentityUserAssignedIdentity:type": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentity.userAssignedIdentity.anonymous", @@ -351,29 +255,6 @@ "@azure/arm-azurestackhci!UpdateSummariesOperations#delete:member": "Microsoft.AzureStackHCI.UpdateSummariesOperationGroup.delete", "@azure/arm-azurestackhci!UpdateSummariesOperations#put:member": "Microsoft.AzureStackHCI.UpdateSummariesOperationGroup.put", "@azure/arm-azurestackhci!UpdateSummariesOperations#get:member": "Microsoft.AzureStackHCI.UpdateSummariesOperationGroup.get", - "@azure/arm-azurestackhci!DevicePoolsOperations#releaseDevices:member": "Microsoft.AzureStackHCI.DevicePools.releaseDevices", - "@azure/arm-azurestackhci!DevicePoolsOperations#claimDevices:member": "Microsoft.AzureStackHCI.DevicePools.claimDevices", - "@azure/arm-azurestackhci!DevicePoolsOperations#listBySubscription:member": "Microsoft.AzureStackHCI.DevicePools.listBySubscription", - "@azure/arm-azurestackhci!DevicePoolsOperations#listByResourceGroup:member": "Microsoft.AzureStackHCI.DevicePools.listByResourceGroup", - "@azure/arm-azurestackhci!DevicePoolsOperations#update:member": "Microsoft.AzureStackHCI.DevicePools.update", - "@azure/arm-azurestackhci!DevicePoolsOperations#delete:member": "Microsoft.AzureStackHCI.DevicePools.delete", - "@azure/arm-azurestackhci!DevicePoolsOperations#createOrUpdate:member": "Microsoft.AzureStackHCI.DevicePools.createOrUpdate", - "@azure/arm-azurestackhci!DevicePoolsOperations#get:member": "Microsoft.AzureStackHCI.DevicePools.get", - "@azure/arm-azurestackhci!ClusterJobsOperations#list:member": "Microsoft.AzureStackHCI.ClusterJobs.list", - "@azure/arm-azurestackhci!ClusterJobsOperations#delete:member": "Microsoft.AzureStackHCI.ClusterJobs.delete", - "@azure/arm-azurestackhci!ClusterJobsOperations#createOrUpdate:member": "Microsoft.AzureStackHCI.ClusterJobs.createOrUpdate", - "@azure/arm-azurestackhci!ClusterJobsOperations#get:member": "Microsoft.AzureStackHCI.ClusterJobs.get", - "@azure/arm-azurestackhci!OwnershipVouchersOperations#validate:member": "Microsoft.AzureStackHCI.OwnershipVouchers.validate", - "@azure/arm-azurestackhci!EdgeMachineJobsOperations#list:member": "Microsoft.AzureStackHCI.EdgeMachineJobs.list", - "@azure/arm-azurestackhci!EdgeMachineJobsOperations#delete:member": "Microsoft.AzureStackHCI.EdgeMachineJobs.delete", - "@azure/arm-azurestackhci!EdgeMachineJobsOperations#createOrUpdate:member": "Microsoft.AzureStackHCI.EdgeMachineJobs.createOrUpdate", - "@azure/arm-azurestackhci!EdgeMachineJobsOperations#get:member": "Microsoft.AzureStackHCI.EdgeMachineJobs.get", - "@azure/arm-azurestackhci!EdgeMachinesOperations#listBySubscription:member": "Microsoft.AzureStackHCI.EdgeMachines.listBySubscription", - "@azure/arm-azurestackhci!EdgeMachinesOperations#listByResourceGroup:member": "Microsoft.AzureStackHCI.EdgeMachines.listByResourceGroup", - "@azure/arm-azurestackhci!EdgeMachinesOperations#delete:member": "Microsoft.AzureStackHCI.EdgeMachines.delete", - "@azure/arm-azurestackhci!EdgeMachinesOperations#update:member": "Microsoft.AzureStackHCI.EdgeMachines.update", - "@azure/arm-azurestackhci!EdgeMachinesOperations#createOrUpdate:member": "Microsoft.AzureStackHCI.EdgeMachines.createOrUpdate", - "@azure/arm-azurestackhci!EdgeMachinesOperations#get:member": "Microsoft.AzureStackHCI.EdgeMachines.get", "@azure/arm-azurestackhci!ValidatedSolutionRecipesOperations#listBySubscriptionLocationResource:member": "Microsoft.AzureStackHCI.ValidatedSolutionRecipes.listBySubscriptionLocationResource", "@azure/arm-azurestackhci!ValidatedSolutionRecipesOperations#get:member": "Microsoft.AzureStackHCI.ValidatedSolutionRecipes.get", "@azure/arm-azurestackhci!UpdateSummariesOperationGroupOperations#checkHealth:member": "Microsoft.AzureStackHCI.UpdateSummariesOperationGroup.checkHealth", @@ -394,8 +275,6 @@ "@azure/arm-azurestackhci!SecuritySettingsOperations#delete:member": "Microsoft.AzureStackHCI.SecuritySettings.delete", "@azure/arm-azurestackhci!SecuritySettingsOperations#createOrUpdate:member": "Microsoft.AzureStackHCI.SecuritySettings.createOrUpdate", "@azure/arm-azurestackhci!SecuritySettingsOperations#get:member": "Microsoft.AzureStackHCI.SecuritySettings.get", - "@azure/arm-azurestackhci!PublishersOperations#listByCluster:member": "Microsoft.AzureStackHCI.Publishers.listByCluster", - "@azure/arm-azurestackhci!PublishersOperations#get:member": "Microsoft.AzureStackHCI.Publishers.get", "@azure/arm-azurestackhci!ExtensionsOperations#upgrade:member": "Microsoft.AzureStackHCI.Extensions.upgrade", "@azure/arm-azurestackhci!ExtensionsOperations#listByArcSetting:member": "Microsoft.AzureStackHCI.Extensions.listByArcSetting", "@azure/arm-azurestackhci!ExtensionsOperations#delete:member": "Microsoft.AzureStackHCI.Extensions.delete", @@ -417,7 +296,6 @@ "@azure/arm-azurestackhci!DeploymentSettingsOperations#get:member": "Microsoft.AzureStackHCI.DeploymentSettings.get", "@azure/arm-azurestackhci!ClustersOperations#configureRemoteSupport:member": "Microsoft.AzureStackHCI.Clusters.configureRemoteSupport", "@azure/arm-azurestackhci!ClustersOperations#triggerLogCollection:member": "Microsoft.AzureStackHCI.Clusters.triggerLogCollection", - "@azure/arm-azurestackhci!ClustersOperations#changeRing:member": "Microsoft.AzureStackHCI.Clusters.changeRing", "@azure/arm-azurestackhci!ClustersOperations#extendSoftwareAssuranceBenefit:member": "Microsoft.AzureStackHCI.Clusters.extendSoftwareAssuranceBenefit", "@azure/arm-azurestackhci!ClustersOperations#createIdentity:member": "Microsoft.AzureStackHCI.Clusters.createIdentity", "@azure/arm-azurestackhci!ClustersOperations#uploadCertificate:member": "Microsoft.AzureStackHCI.Clusters.uploadCertificate", @@ -441,14 +319,7 @@ "@azure/arm-azurestackhci!ArcSettingsOperations#update:member": "Microsoft.AzureStackHCI.ArcSettings.update", "@azure/arm-azurestackhci!ArcSettingsOperations#create:member": "Microsoft.AzureStackHCI.ArcSettings.create", "@azure/arm-azurestackhci!ArcSettingsOperations#get:member": "Microsoft.AzureStackHCI.ArcSettings.get", - "@azure/arm-azurestackhci!OperationsOperations#list:member": "Azure.ResourceManager.Operations.list", - "@azure/arm-azurestackhci!UpdateContentsOperations#list:member": "Microsoft.AzureStackHCI.UpdateContents.list", - "@azure/arm-azurestackhci!UpdateContentsOperations#get:member": "Microsoft.AzureStackHCI.UpdateContents.get", - "@azure/arm-azurestackhci!OsImagesOperations#listBySubscriptionLocationResource:member": "Microsoft.AzureStackHCI.OsImages.listBySubscriptionLocationResource", - "@azure/arm-azurestackhci!OsImagesOperations#get:member": "Microsoft.AzureStackHCI.OsImages.get", - "@azure/arm-azurestackhci!PlatformUpdatesOperations#list:member": "Microsoft.AzureStackHCI.PlatformUpdates.list", - "@azure/arm-azurestackhci!PlatformUpdatesOperations#get:member": "Microsoft.AzureStackHCI.PlatformUpdates.get", - "@azure/arm-azurestackhci!KubernetesVersionsOperations#listBySubscriptionLocationResource:member": "Microsoft.AzureStackHCI.KubernetesVersions.listBySubscriptionLocationResource" + "@azure/arm-azurestackhci!OperationsOperations#list:member": "Azure.ResourceManager.Operations.list" } } } diff --git a/sdk/azurestackhci/arm-azurestackhci/package.json b/sdk/azurestackhci/arm-azurestackhci/package.json index b5b4fe11fe6c..d408560e8bc1 100644 --- a/sdk/azurestackhci/arm-azurestackhci/package.json +++ b/sdk/azurestackhci/arm-azurestackhci/package.json @@ -1,6 +1,6 @@ { "name": "@azure/arm-azurestackhci", - "version": "4.1.0-beta.1", + "version": "4.1.0", "description": "A generated SDK for AzureStackHCIClient.", "engines": { "node": ">=20.0.0" @@ -69,96 +69,6 @@ "default": "./dist/commonjs/api/updateSummaries/index.js" } }, - "./api/devicePools": { - "browser": { - "types": "./dist/browser/api/devicePools/index.d.ts", - "default": "./dist/browser/api/devicePools/index.js" - }, - "react-native": { - "types": "./dist/react-native/api/devicePools/index.d.ts", - "default": "./dist/react-native/api/devicePools/index.js" - }, - "import": { - "types": "./dist/esm/api/devicePools/index.d.ts", - "default": "./dist/esm/api/devicePools/index.js" - }, - "require": { - "types": "./dist/commonjs/api/devicePools/index.d.ts", - "default": "./dist/commonjs/api/devicePools/index.js" - } - }, - "./api/clusterJobs": { - "browser": { - "types": "./dist/browser/api/clusterJobs/index.d.ts", - "default": "./dist/browser/api/clusterJobs/index.js" - }, - "react-native": { - "types": "./dist/react-native/api/clusterJobs/index.d.ts", - "default": "./dist/react-native/api/clusterJobs/index.js" - }, - "import": { - "types": "./dist/esm/api/clusterJobs/index.d.ts", - "default": "./dist/esm/api/clusterJobs/index.js" - }, - "require": { - "types": "./dist/commonjs/api/clusterJobs/index.d.ts", - "default": "./dist/commonjs/api/clusterJobs/index.js" - } - }, - "./api/ownershipVouchers": { - "browser": { - "types": "./dist/browser/api/ownershipVouchers/index.d.ts", - "default": "./dist/browser/api/ownershipVouchers/index.js" - }, - "react-native": { - "types": "./dist/react-native/api/ownershipVouchers/index.d.ts", - "default": "./dist/react-native/api/ownershipVouchers/index.js" - }, - "import": { - "types": "./dist/esm/api/ownershipVouchers/index.d.ts", - "default": "./dist/esm/api/ownershipVouchers/index.js" - }, - "require": { - "types": "./dist/commonjs/api/ownershipVouchers/index.d.ts", - "default": "./dist/commonjs/api/ownershipVouchers/index.js" - } - }, - "./api/edgeMachineJobs": { - "browser": { - "types": "./dist/browser/api/edgeMachineJobs/index.d.ts", - "default": "./dist/browser/api/edgeMachineJobs/index.js" - }, - "react-native": { - "types": "./dist/react-native/api/edgeMachineJobs/index.d.ts", - "default": "./dist/react-native/api/edgeMachineJobs/index.js" - }, - "import": { - "types": "./dist/esm/api/edgeMachineJobs/index.d.ts", - "default": "./dist/esm/api/edgeMachineJobs/index.js" - }, - "require": { - "types": "./dist/commonjs/api/edgeMachineJobs/index.d.ts", - "default": "./dist/commonjs/api/edgeMachineJobs/index.js" - } - }, - "./api/edgeMachines": { - "browser": { - "types": "./dist/browser/api/edgeMachines/index.d.ts", - "default": "./dist/browser/api/edgeMachines/index.js" - }, - "react-native": { - "types": "./dist/react-native/api/edgeMachines/index.d.ts", - "default": "./dist/react-native/api/edgeMachines/index.js" - }, - "import": { - "types": "./dist/esm/api/edgeMachines/index.d.ts", - "default": "./dist/esm/api/edgeMachines/index.js" - }, - "require": { - "types": "./dist/commonjs/api/edgeMachines/index.d.ts", - "default": "./dist/commonjs/api/edgeMachines/index.js" - } - }, "./api/validatedSolutionRecipes": { "browser": { "types": "./dist/browser/api/validatedSolutionRecipes/index.d.ts", @@ -267,24 +177,6 @@ "default": "./dist/commonjs/api/securitySettings/index.js" } }, - "./api/publishers": { - "browser": { - "types": "./dist/browser/api/publishers/index.d.ts", - "default": "./dist/browser/api/publishers/index.js" - }, - "react-native": { - "types": "./dist/react-native/api/publishers/index.d.ts", - "default": "./dist/react-native/api/publishers/index.js" - }, - "import": { - "types": "./dist/esm/api/publishers/index.d.ts", - "default": "./dist/esm/api/publishers/index.js" - }, - "require": { - "types": "./dist/commonjs/api/publishers/index.d.ts", - "default": "./dist/commonjs/api/publishers/index.js" - } - }, "./api/extensions": { "browser": { "types": "./dist/browser/api/extensions/index.d.ts", @@ -429,78 +321,6 @@ "default": "./dist/commonjs/api/operations/index.js" } }, - "./api/updateContents": { - "browser": { - "types": "./dist/browser/api/updateContents/index.d.ts", - "default": "./dist/browser/api/updateContents/index.js" - }, - "react-native": { - "types": "./dist/react-native/api/updateContents/index.d.ts", - "default": "./dist/react-native/api/updateContents/index.js" - }, - "import": { - "types": "./dist/esm/api/updateContents/index.d.ts", - "default": "./dist/esm/api/updateContents/index.js" - }, - "require": { - "types": "./dist/commonjs/api/updateContents/index.d.ts", - "default": "./dist/commonjs/api/updateContents/index.js" - } - }, - "./api/osImages": { - "browser": { - "types": "./dist/browser/api/osImages/index.d.ts", - "default": "./dist/browser/api/osImages/index.js" - }, - "react-native": { - "types": "./dist/react-native/api/osImages/index.d.ts", - "default": "./dist/react-native/api/osImages/index.js" - }, - "import": { - "types": "./dist/esm/api/osImages/index.d.ts", - "default": "./dist/esm/api/osImages/index.js" - }, - "require": { - "types": "./dist/commonjs/api/osImages/index.d.ts", - "default": "./dist/commonjs/api/osImages/index.js" - } - }, - "./api/platformUpdates": { - "browser": { - "types": "./dist/browser/api/platformUpdates/index.d.ts", - "default": "./dist/browser/api/platformUpdates/index.js" - }, - "react-native": { - "types": "./dist/react-native/api/platformUpdates/index.d.ts", - "default": "./dist/react-native/api/platformUpdates/index.js" - }, - "import": { - "types": "./dist/esm/api/platformUpdates/index.d.ts", - "default": "./dist/esm/api/platformUpdates/index.js" - }, - "require": { - "types": "./dist/commonjs/api/platformUpdates/index.d.ts", - "default": "./dist/commonjs/api/platformUpdates/index.js" - } - }, - "./api/kubernetesVersions": { - "browser": { - "types": "./dist/browser/api/kubernetesVersions/index.d.ts", - "default": "./dist/browser/api/kubernetesVersions/index.js" - }, - "react-native": { - "types": "./dist/react-native/api/kubernetesVersions/index.d.ts", - "default": "./dist/react-native/api/kubernetesVersions/index.js" - }, - "import": { - "types": "./dist/esm/api/kubernetesVersions/index.d.ts", - "default": "./dist/esm/api/kubernetesVersions/index.js" - }, - "require": { - "types": "./dist/commonjs/api/kubernetesVersions/index.d.ts", - "default": "./dist/commonjs/api/kubernetesVersions/index.js" - } - }, "./models": { "browser": { "types": "./dist/browser/models/index.d.ts", @@ -609,7 +429,7 @@ "azure" ], "disableDocsMs": true, - "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-azurestackhci?view=azure-node-preview" + "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-azurestackhci" }, "imports": { "#platform/*": { diff --git a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-clusterJobs-node.api.md b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-clusterJobs-node.api.md deleted file mode 100644 index d5496d86b2c0..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-clusterJobs-node.api.md +++ /dev/null @@ -1,44 +0,0 @@ -## API Report File for "@azure/arm-azurestackhci" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import type { Client } from '@azure-rest/core-client'; -import type { OperationOptions } from '@azure-rest/core-client'; -import type { OperationState } from '@azure/core-lro'; -import type { PollerLike } from '@azure/core-lro'; - -// @public -export function $delete(context: AzureStackHCIContext, resourceGroupName: string, clusterName: string, jobsName: string, options?: ClusterJobsDeleteOptionalParams): PollerLike, void>; - -// @public -export interface ClusterJobsCreateOrUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface ClusterJobsDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface ClusterJobsGetOptionalParams extends OperationOptions { -} - -// @public -export interface ClusterJobsListOptionalParams extends OperationOptions { -} - -// @public -export function createOrUpdate(context: AzureStackHCIContext, resourceGroupName: string, clusterName: string, jobsName: string, resource: ClusterJob, options?: ClusterJobsCreateOrUpdateOptionalParams): PollerLike, ClusterJob>; - -// @public -export function get(context: AzureStackHCIContext, resourceGroupName: string, clusterName: string, jobsName: string, options?: ClusterJobsGetOptionalParams): Promise; - -// @public -export function list(context: AzureStackHCIContext, resourceGroupName: string, clusterName: string, options?: ClusterJobsListOptionalParams): PagedAsyncIterableIterator; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-clusters-node.api.md b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-clusters-node.api.md index 25ecb640c3a9..868b369bca21 100644 --- a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-clusters-node.api.md +++ b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-clusters-node.api.md @@ -12,14 +12,6 @@ import type { PollerLike } from '@azure/core-lro'; // @public export function $delete(context: AzureStackHCIContext, resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): PollerLike, void>; -// @public -export function changeRing(context: AzureStackHCIContext, resourceGroupName: string, clusterName: string, changeRingRequest: ChangeRingRequest, options?: ClustersChangeRingOptionalParams): PollerLike, Cluster>; - -// @public -export interface ClustersChangeRingOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - // @public export interface ClustersConfigureRemoteSupportOptionalParams extends OperationOptions { updateIntervalInMs?: number; diff --git a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-devicePools-node.api.md b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-devicePools-node.api.md deleted file mode 100644 index e6cbeb11167d..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-devicePools-node.api.md +++ /dev/null @@ -1,75 +0,0 @@ -## API Report File for "@azure/arm-azurestackhci" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import type { Client } from '@azure-rest/core-client'; -import type { OperationOptions } from '@azure-rest/core-client'; -import type { OperationState } from '@azure/core-lro'; -import type { PollerLike } from '@azure/core-lro'; - -// @public -export function $delete(context: AzureStackHCIContext, resourceGroupName: string, devicePoolName: string, options?: DevicePoolsDeleteOptionalParams): PollerLike, void>; - -// @public -export function claimDevices(context: AzureStackHCIContext, resourceGroupName: string, devicePoolName: string, body: ClaimDeviceRequest, options?: DevicePoolsClaimDevicesOptionalParams): PollerLike, void>; - -// @public -export function createOrUpdate(context: AzureStackHCIContext, resourceGroupName: string, devicePoolName: string, resource: DevicePool, options?: DevicePoolsCreateOrUpdateOptionalParams): PollerLike, DevicePool>; - -// @public -export interface DevicePoolsClaimDevicesOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface DevicePoolsCreateOrUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface DevicePoolsDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface DevicePoolsGetOptionalParams extends OperationOptions { -} - -// @public -export interface DevicePoolsListByResourceGroupOptionalParams extends OperationOptions { -} - -// @public -export interface DevicePoolsListBySubscriptionOptionalParams extends OperationOptions { -} - -// @public -export interface DevicePoolsReleaseDevicesOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface DevicePoolsUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export function get(context: AzureStackHCIContext, resourceGroupName: string, devicePoolName: string, options?: DevicePoolsGetOptionalParams): Promise; - -// @public -export function listByResourceGroup(context: AzureStackHCIContext, resourceGroupName: string, options?: DevicePoolsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - -// @public -export function listBySubscription(context: AzureStackHCIContext, options?: DevicePoolsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - -// @public -export function releaseDevices(context: AzureStackHCIContext, resourceGroupName: string, devicePoolName: string, body: ReleaseDeviceRequest, options?: DevicePoolsReleaseDevicesOptionalParams): PollerLike, void>; - -// @public -export function update(context: AzureStackHCIContext, resourceGroupName: string, devicePoolName: string, properties: DevicePoolPatch, options?: DevicePoolsUpdateOptionalParams): PollerLike, DevicePool>; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-edgeMachineJobs-node.api.md b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-edgeMachineJobs-node.api.md deleted file mode 100644 index fd06e51238a6..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-edgeMachineJobs-node.api.md +++ /dev/null @@ -1,44 +0,0 @@ -## API Report File for "@azure/arm-azurestackhci" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import type { Client } from '@azure-rest/core-client'; -import type { OperationOptions } from '@azure-rest/core-client'; -import type { OperationState } from '@azure/core-lro'; -import type { PollerLike } from '@azure/core-lro'; - -// @public -export function $delete(context: AzureStackHCIContext, resourceGroupName: string, edgeMachineName: string, jobsName: string, options?: EdgeMachineJobsDeleteOptionalParams): PollerLike, void>; - -// @public -export function createOrUpdate(context: AzureStackHCIContext, resourceGroupName: string, edgeMachineName: string, jobsName: string, resource: EdgeMachineJob, options?: EdgeMachineJobsCreateOrUpdateOptionalParams): PollerLike, EdgeMachineJob>; - -// @public -export interface EdgeMachineJobsCreateOrUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface EdgeMachineJobsDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface EdgeMachineJobsGetOptionalParams extends OperationOptions { -} - -// @public -export interface EdgeMachineJobsListOptionalParams extends OperationOptions { -} - -// @public -export function get(context: AzureStackHCIContext, resourceGroupName: string, edgeMachineName: string, jobsName: string, options?: EdgeMachineJobsGetOptionalParams): Promise; - -// @public -export function list(context: AzureStackHCIContext, resourceGroupName: string, edgeMachineName: string, options?: EdgeMachineJobsListOptionalParams): PagedAsyncIterableIterator; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-edgeMachines-node.api.md b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-edgeMachines-node.api.md deleted file mode 100644 index 9f0f7b7d199f..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-edgeMachines-node.api.md +++ /dev/null @@ -1,59 +0,0 @@ -## API Report File for "@azure/arm-azurestackhci" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import type { Client } from '@azure-rest/core-client'; -import type { OperationOptions } from '@azure-rest/core-client'; -import type { OperationState } from '@azure/core-lro'; -import type { PollerLike } from '@azure/core-lro'; - -// @public -export function $delete(context: AzureStackHCIContext, resourceGroupName: string, edgeMachineName: string, options?: EdgeMachinesDeleteOptionalParams): PollerLike, void>; - -// @public -export function createOrUpdate(context: AzureStackHCIContext, resourceGroupName: string, edgeMachineName: string, resource: EdgeMachine, options?: EdgeMachinesCreateOrUpdateOptionalParams): PollerLike, EdgeMachine>; - -// @public -export interface EdgeMachinesCreateOrUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface EdgeMachinesDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface EdgeMachinesGetOptionalParams extends OperationOptions { -} - -// @public -export interface EdgeMachinesListByResourceGroupOptionalParams extends OperationOptions { -} - -// @public -export interface EdgeMachinesListBySubscriptionOptionalParams extends OperationOptions { -} - -// @public -export interface EdgeMachinesUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export function get(context: AzureStackHCIContext, resourceGroupName: string, edgeMachineName: string, options?: EdgeMachinesGetOptionalParams): Promise; - -// @public -export function listByResourceGroup(context: AzureStackHCIContext, resourceGroupName: string, options?: EdgeMachinesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - -// @public -export function listBySubscription(context: AzureStackHCIContext, options?: EdgeMachinesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - -// @public -export function update(context: AzureStackHCIContext, resourceGroupName: string, edgeMachineName: string, properties: EdgeMachinePatch, options?: EdgeMachinesUpdateOptionalParams): PollerLike, EdgeMachine>; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-kubernetesVersions-node.api.md b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-kubernetesVersions-node.api.md deleted file mode 100644 index d2ee3b8a2891..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-kubernetesVersions-node.api.md +++ /dev/null @@ -1,19 +0,0 @@ -## API Report File for "@azure/arm-azurestackhci" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import type { Client } from '@azure-rest/core-client'; -import type { OperationOptions } from '@azure-rest/core-client'; - -// @public -export interface KubernetesVersionsListBySubscriptionLocationResourceOptionalParams extends OperationOptions { -} - -// @public -export function listBySubscriptionLocationResource(context: AzureStackHCIContext, location: string, options?: KubernetesVersionsListBySubscriptionLocationResourceOptionalParams): PagedAsyncIterableIterator; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-osImages-node.api.md b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-osImages-node.api.md deleted file mode 100644 index 6cc8de410268..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-osImages-node.api.md +++ /dev/null @@ -1,26 +0,0 @@ -## API Report File for "@azure/arm-azurestackhci" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import type { Client } from '@azure-rest/core-client'; -import type { OperationOptions } from '@azure-rest/core-client'; - -// @public -export function get(context: AzureStackHCIContext, location: string, osImageName: string, options?: OsImagesGetOptionalParams): Promise; - -// @public -export function listBySubscriptionLocationResource(context: AzureStackHCIContext, location: string, options?: OsImagesListBySubscriptionLocationResourceOptionalParams): PagedAsyncIterableIterator; - -// @public -export interface OsImagesGetOptionalParams extends OperationOptions { -} - -// @public -export interface OsImagesListBySubscriptionLocationResourceOptionalParams extends OperationOptions { -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-ownershipVouchers-node.api.md b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-ownershipVouchers-node.api.md deleted file mode 100644 index c718435c9165..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-ownershipVouchers-node.api.md +++ /dev/null @@ -1,19 +0,0 @@ -## API Report File for "@azure/arm-azurestackhci" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import type { Client } from '@azure-rest/core-client'; -import type { OperationOptions } from '@azure-rest/core-client'; - -// @public -export interface OwnershipVouchersValidateOptionalParams extends OperationOptions { -} - -// @public -export function validate(context: AzureStackHCIContext, resourceGroupName: string, location: string, validationRequest: ValidateOwnershipVouchersRequest, options?: OwnershipVouchersValidateOptionalParams): Promise; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-platformUpdates-node.api.md b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-platformUpdates-node.api.md deleted file mode 100644 index 4b353d986896..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-platformUpdates-node.api.md +++ /dev/null @@ -1,26 +0,0 @@ -## API Report File for "@azure/arm-azurestackhci" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import type { Client } from '@azure-rest/core-client'; -import type { OperationOptions } from '@azure-rest/core-client'; - -// @public -export function get(context: AzureStackHCIContext, location: string, platformUpdateName: string, options?: PlatformUpdatesGetOptionalParams): Promise; - -// @public -export function list(context: AzureStackHCIContext, location: string, options?: PlatformUpdatesListOptionalParams): PagedAsyncIterableIterator; - -// @public -export interface PlatformUpdatesGetOptionalParams extends OperationOptions { -} - -// @public -export interface PlatformUpdatesListOptionalParams extends OperationOptions { -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-publishers-node.api.md b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-publishers-node.api.md deleted file mode 100644 index 60a40ca4f8c0..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-publishers-node.api.md +++ /dev/null @@ -1,26 +0,0 @@ -## API Report File for "@azure/arm-azurestackhci" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import type { Client } from '@azure-rest/core-client'; -import type { OperationOptions } from '@azure-rest/core-client'; - -// @public -export function get(context: AzureStackHCIContext, resourceGroupName: string, clusterName: string, publisherName: string, options?: PublishersGetOptionalParams): Promise; - -// @public -export function listByCluster(context: AzureStackHCIContext, resourceGroupName: string, clusterName: string, options?: PublishersListByClusterOptionalParams): PagedAsyncIterableIterator; - -// @public -export interface PublishersGetOptionalParams extends OperationOptions { -} - -// @public -export interface PublishersListByClusterOptionalParams extends OperationOptions { -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-updateContents-node.api.md b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-updateContents-node.api.md deleted file mode 100644 index 13145a6b8d65..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-api-updateContents-node.api.md +++ /dev/null @@ -1,26 +0,0 @@ -## API Report File for "@azure/arm-azurestackhci" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import type { Client } from '@azure-rest/core-client'; -import type { OperationOptions } from '@azure-rest/core-client'; - -// @public -export function get(context: AzureStackHCIContext, location: string, updateContentName: string, options?: UpdateContentsGetOptionalParams): Promise; - -// @public -export function list(context: AzureStackHCIContext, location: string, options?: UpdateContentsListOptionalParams): PagedAsyncIterableIterator; - -// @public -export interface UpdateContentsGetOptionalParams extends OperationOptions { -} - -// @public -export interface UpdateContentsListOptionalParams extends OperationOptions { -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-models-node.api.md b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-models-node.api.md index f4575476c65f..47491cd418e2 100644 --- a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-models-node.api.md +++ b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-models-node.api.md @@ -102,28 +102,11 @@ export interface AssemblyInfoPayload { // @public export type AvailabilityType = string; -// @public -export interface ChangeRingRequest { - // (undocumented) - properties?: ChangeRingRequestProperties; -} - -// @public -export interface ChangeRingRequestProperties { - targetRing?: string; -} - // @public export interface CheckUpdatesRequest { updateName?: string; } -// @public -export interface ClaimDeviceRequest { - claimedBy?: string; - devices: string[]; -} - // @public export interface Cluster extends TrackedResource { aadApplicationObjectId?: string; @@ -135,7 +118,6 @@ export interface Cluster extends TrackedResource { readonly cloudId?: string; cloudManagementEndpoint?: string; readonly clusterPattern?: ClusterPattern; - readonly confidentialVmProperties?: ConfidentialVmProperties; readonly connectivityStatus?: ConnectivityStatus; desiredProperties?: ClusterDesiredProperties; readonly identityProvider?: IdentityProvider; @@ -152,8 +134,6 @@ export interface Cluster extends TrackedResource { remoteSupportProperties?: RemoteSupportProperties; readonly reportedProperties?: ClusterReportedProperties; readonly resourceProviderObjectId?: string; - readonly ring?: string; - readonly sdnProperties?: ClusterSdnProperties; secretsLocations?: SecretsLocationDetails[]; readonly serviceEndpoint?: string; softwareAssuranceProperties?: SoftwareAssuranceProperties; @@ -200,26 +180,6 @@ export interface ClusterIdentityResponseProperties { aadTenantId?: string; } -// @public -export interface ClusterJob extends ProxyResource { - properties?: ClusterJobPropertiesUnion; -} - -// @public -export interface ClusterJobProperties { - deploymentMode?: DeploymentMode; - readonly endTimeUtc?: Date; - readonly jobId?: string; - jobType: HciJobType; - readonly provisioningState?: ProvisioningState; - readonly reportedProperties?: JobReportedProperties; - readonly startTimeUtc?: Date; - readonly status?: JobStatus; -} - -// @public -export type ClusterJobPropertiesUnion = HciConfigureSdnIntegrationJobProperties | HciConfigureCvmJobProperties | ClusterJobProperties; - // @public export interface ClusterNode { readonly coreCount?: number; @@ -277,7 +237,6 @@ export interface ClusterProperties { readonly cloudId?: string; cloudManagementEndpoint?: string; readonly clusterPattern?: ClusterPattern; - readonly confidentialVmProperties?: ConfidentialVmProperties; readonly connectivityStatus?: ConnectivityStatus; desiredProperties?: ClusterDesiredProperties; readonly identityProvider?: IdentityProvider; @@ -292,8 +251,6 @@ export interface ClusterProperties { remoteSupportProperties?: RemoteSupportProperties; readonly reportedProperties?: ClusterReportedProperties; readonly resourceProviderObjectId?: string; - readonly ring?: string; - readonly sdnProperties?: ClusterSdnProperties; secretsLocations?: SecretsLocationDetails[]; readonly serviceEndpoint?: string; softwareAssuranceProperties?: SoftwareAssuranceProperties; @@ -319,50 +276,15 @@ export interface ClusterReportedProperties { readonly supportedCapabilities?: string[]; } -// @public -export interface ClusterSdnProperties extends SdnProperties { - readonly sdnIntegrationIntent?: SdnIntegrationIntent; -} - // @public export type ComplianceAssignmentType = string; // @public export type ComplianceStatus = string; -// @public -export type ConfidentialVmIntent = string; - -// @public -export interface ConfidentialVmProfile { - readonly igvmStatus?: IgvmStatus; - statusDetails?: IgvmStatusDetail[]; -} - -// @public -export interface ConfidentialVmProperties { - readonly confidentialVmIntent?: ConfidentialVmIntent; - readonly confidentialVmStatus?: ConfidentialVmStatus; - readonly confidentialVmStatusSummary?: string; -} - -// @public -export type ConfidentialVmStatus = string; - // @public export type ConnectivityStatus = string; -// @public -export interface ContentPayload { - fileName?: string; - group?: string; - hash?: string; - hashAlgorithm?: string; - identifier?: string; - packageSizeInBytes?: string; - url?: string; -} - // @public export type CreatedByType = string; @@ -516,41 +438,12 @@ export interface DeviceConfiguration { nicDetails?: NicDetail[]; } -// @public -export interface DeviceDetail { - readonly claimedBy?: string; - deviceResourceId?: string; -} - // @public export type DeviceKind = string; // @public export type DeviceLogCollectionStatus = string; -// @public -export interface DevicePool extends TrackedResource { - identity?: ManagedServiceIdentity; - properties?: DevicePoolProperties; -} - -// @public -export interface DevicePoolPatch { - identity?: ManagedServiceIdentity; - tags?: Record; -} - -// @public -export interface DevicePoolProperties { - readonly cloudId?: string; - customLocationName?: string; - readonly customLocationResourceId?: string; - devices?: DeviceDetail[]; - managedResourceGroup?: string; - readonly operationDetails?: OperationDetail[]; - readonly provisioningState?: ProvisioningState; -} - // @public export type DeviceState = string; @@ -566,30 +459,6 @@ export interface DnsZones { dnsZoneName?: string; } -// @public -export interface DownloadOsJobProperties extends EdgeMachineJobProperties { - downloadRequest: DownloadRequest; - jobType: "DownloadOs"; - reportedProperties?: ProvisionOsReportedProperties; -} - -// @public -export interface DownloadOsProfile { - gpgPubKey?: string; - imageHash?: string; - osImageLocation?: string; - osName?: string; - osType?: string; - osVersion?: string; - vsrVersion?: string; -} - -// @public -export interface DownloadRequest { - osProfile: DownloadOsProfile; - target: ProvisioningOsType; -} - // @public export interface EceActionStatus { readonly status?: string; @@ -620,6 +489,9 @@ export interface EdgeDevice extends ExtensionResource { // @public export interface EdgeDeviceDisks { readonly id: string; + readonly isSupported?: boolean; + readonly manufacturer?: string; + readonly model?: string; readonly sizeInBytes?: string; readonly type?: string; } @@ -644,151 +516,6 @@ export interface EdgeDeviceProperties { // @public export type EdgeDeviceUnion = HciEdgeDevice | EdgeDevice; -// @public -export interface EdgeMachine extends TrackedResource { - identity?: ManagedServiceIdentity; - properties?: EdgeMachineProperties; -} - -// @public -export interface EdgeMachineCollectLogJobProperties extends EdgeMachineJobProperties { - fromDate: Date; - jobType: "CollectLog"; - readonly lastLogGenerated?: Date; - readonly reportedProperties?: EdgeMachineCollectLogJobReportedProperties; - toDate: Date; -} - -// @public -export interface EdgeMachineCollectLogJobReportedProperties { - readonly deploymentStatus?: EceActionStatus; - readonly logCollectionSessionDetails?: LogCollectionJobSession[]; - readonly percentComplete?: number; - readonly validationStatus?: EceActionStatus; -} - -// @public -export type EdgeMachineConnectivityStatus = string; - -// @public -export interface EdgeMachineJob extends ProxyResource { - properties?: EdgeMachineJobPropertiesUnion; -} - -// @public -export interface EdgeMachineJobProperties { - deploymentMode?: DeploymentMode; - readonly endTimeUtc?: Date; - readonly error?: ErrorDetail; - readonly jobId?: string; - jobType: EdgeMachineJobType; - readonly provisioningState?: ProvisioningState; - readonly startTimeUtc?: Date; - readonly status?: JobStatus; -} - -// @public -export type EdgeMachineJobPropertiesUnion = EdgeMachineRemoteSupportJobProperties | ProvisionOsJobProperties | DownloadOsJobProperties | EdgeMachineCollectLogJobProperties | EdgeMachineJobProperties; - -// @public -export type EdgeMachineJobType = string; - -// @public -export type EdgeMachineKind = string; - -// @public -export interface EdgeMachineNetworkProfile { - readonly nicDetails?: EdgeMachineNicDetail[]; - readonly switchDetails?: SwitchDetail[]; -} - -// @public -export interface EdgeMachineNicDetail { - readonly adapterName?: string; - readonly componentId?: string; - readonly defaultGateway?: string; - readonly defaultIsolationId?: string; - readonly dnsServers?: string[]; - readonly driverVersion?: string; - readonly interfaceDescription?: string; - readonly ip4Address?: string; - readonly macAddress?: string; - readonly nicStatus?: string; - readonly nicType?: string; - readonly rdmaCapability?: RdmaCapability; - readonly slot?: string; - readonly subnetMask?: string; - readonly switchName?: string; - readonly vlanId?: string; -} - -// @public -export interface EdgeMachinePatch { - identity?: ManagedServiceIdentity; - tags?: Record; -} - -// @public -export interface EdgeMachineProperties { - arcGatewayResourceId?: string; - arcMachineResourceGroupId?: string; - arcMachineResourceId?: string; - readonly claimedBy?: string; - readonly cloudId?: string; - readonly connectivityStatus?: EdgeMachineConnectivityStatus; - readonly devicePoolResourceId?: string; - edgeMachineKind?: EdgeMachineKind; - readonly lastSyncTimestamp?: Date; - readonly machineState?: EdgeMachineState; - readonly operationDetails?: OperationDetail[]; - ownershipVoucherDetails?: OwnershipVoucherDetails; - provisioningDetails?: ProvisioningDetails; - readonly provisioningState?: ProvisioningState; - readonly reportedProperties?: EdgeMachineReportedProperties; - siteDetails?: SiteDetails; -} - -// @public -export interface EdgeMachineRemoteSupportJobProperties extends EdgeMachineJobProperties { - accessLevel: RemoteSupportAccessLevel; - expirationTimestamp: Date; - jobType: "RemoteSupport"; - readonly reportedProperties?: EdgeMachineRemoteSupportJobReportedProperties; - type: RemoteSupportType; -} - -// @public -export interface EdgeMachineRemoteSupportJobReportedProperties { - readonly deploymentStatus?: EceActionStatus; - readonly nodeSettings?: EdgeMachineRemoteSupportNodeSettings; - readonly percentComplete?: number; - readonly sessionDetails?: RemoteSupportSession[]; - readonly validationStatus?: EceActionStatus; -} - -// @public -export interface EdgeMachineRemoteSupportNodeSettings { - readonly connectionErrorMessage?: string; - readonly connectionStatus?: string; - readonly createdAt?: Date; - readonly state?: string; - readonly updatedAt?: Date; -} - -// @public -export interface EdgeMachineReportedProperties { - readonly extensionProfile?: ExtensionProfile; - readonly hardwareProfile?: HardwareProfile; - readonly lastUpdated?: Date; - readonly networkProfile?: EdgeMachineNetworkProfile; - readonly osProfile?: OsProfile; - readonly sbeDeploymentPackageInfo?: SbeDeploymentPackageInfo; - readonly storageProfile?: StorageProfile; -} - -// @public -export type EdgeMachineState = string; - // @public export interface ErrorAdditionalInfo { readonly info?: any; @@ -904,17 +631,6 @@ export interface ExtensionUpgradeParameters { // @public export type HardwareClass = string; -// @public -export interface HardwareProfile { - readonly cpuCores?: number; - readonly cpuSockets?: number; - readonly manufacturer?: string; - readonly memoryCapacityInGb?: number; - readonly model?: string; - readonly processorType?: string; - readonly serialNumber?: string; -} - // @public export interface HciCollectLogJobProperties extends HciEdgeDeviceJobProperties { fromDate: Date; @@ -924,19 +640,6 @@ export interface HciCollectLogJobProperties extends HciEdgeDeviceJobProperties { toDate: Date; } -// @public -export interface HciConfigureCvmJobProperties extends ClusterJobProperties { - confidentialVmIntent: ConfidentialVmIntent; - jobType: "ConfigureCVM"; -} - -// @public -export interface HciConfigureSdnIntegrationJobProperties extends ClusterJobProperties { - jobType: "ConfigureSdnIntegration"; - sdnIntegrationIntent: SdnIntegrationIntent; - sdnPrefix?: string; -} - // @public export interface HciEdgeDevice extends EdgeDevice { kind: "HCI"; @@ -1043,14 +746,10 @@ export interface HciHardwareProfile { readonly processorType?: string; } -// @public -export type HciJobType = string; - // @public export interface HciNetworkProfile { readonly hostNetwork?: HciEdgeDeviceHostNetwork; readonly nicDetails?: HciNicDetail[]; - readonly sdnProperties?: SdnProperties; readonly switchDetails?: SwitchDetail[]; } @@ -1115,15 +814,6 @@ export type HealthState = string; // @public export type IdentityProvider = string; -// @public -export type IgvmStatus = string; - -// @public -export interface IgvmStatusDetail { - readonly code?: string; - readonly message?: string; -} - // @public export type ImdsAttestation = string; @@ -1138,15 +828,6 @@ export interface InfrastructureNetwork { useDhcp?: boolean; } -// @public -export interface IpAddressRange { - endIp: string; - startIp: string; -} - -// @public -export type IpAssignmentType = string; - // @public export interface IpPools { endingAddress?: string; @@ -1160,13 +841,6 @@ export interface IsolatedVmAttestationConfiguration { readonly relyingPartyServiceEndpoint?: string; } -// @public -export interface JobReportedProperties { - readonly deploymentStatus?: EceActionStatus; - readonly percentComplete?: number; - readonly validationStatus?: EceActionStatus; -} - // @public export type JobStatus = string; @@ -1249,19 +923,6 @@ export enum KnownComplianceStatus { Pending = "Pending" } -// @public -export enum KnownConfidentialVmIntent { - Disable = "Disable", - Enable = "Enable" -} - -// @public -export enum KnownConfidentialVmStatus { - Disabled = "Disabled", - Enabled = "Enabled", - PartiallyEnabled = "PartiallyEnabled" -} - // @public export enum KnownConnectivityStatus { Connected = "Connected", @@ -1338,40 +999,6 @@ export enum KnownEdgeDeviceKind { HCI = "HCI" } -// @public -export enum KnownEdgeMachineConnectivityStatus { - Connected = "Connected", - Disconnected = "Disconnected", - NotSpecified = "NotSpecified" -} - -// @public -export enum KnownEdgeMachineJobType { - CollectLog = "CollectLog", - DownloadOs = "DownloadOs", - ProvisionOs = "ProvisionOs", - RemoteSupport = "RemoteSupport" -} - -// @public -export enum KnownEdgeMachineKind { - Dedicated = "Dedicated", - Standard = "Standard" -} - -// @public -export enum KnownEdgeMachineState { - Created = "Created", - Failed = "Failed", - Preparing = "Preparing", - Purposed = "Purposed", - Registering = "Registering", - Resetting = "Resetting", - Transitioning = "Transitioning", - Unpurposed = "Unpurposed", - Updating = "Updating" -} - // @public export enum KnownExtensionAggregateState { Accepted = "Accepted", @@ -1413,12 +1040,6 @@ export enum KnownHciEdgeDeviceJobType { RemoteSupport = "RemoteSupport" } -// @public -export enum KnownHciJobType { - ConfigureCVM = "ConfigureCVM", - ConfigureSdnIntegration = "ConfigureSdnIntegration" -} - // @public export enum KnownHealthState { Error = "Error", @@ -1435,25 +1056,12 @@ export enum KnownIdentityProvider { LocalIdentity = "LocalIdentity" } -// @public -export enum KnownIgvmStatus { - Disabled = "Disabled", - Enabled = "Enabled", - Unknown = "Unknown" -} - // @public export enum KnownImdsAttestation { Disabled = "Disabled", Enabled = "Enabled" } -// @public -export enum KnownIpAssignmentType { - Automatic = "Automatic", - Manual = "Manual" -} - // @public export enum KnownJobStatus { Canceled = "Canceled", @@ -1541,11 +1149,6 @@ export enum KnownOemActivation { Enabled = "Enabled" } -// @public -export enum KnownOnboardingResourceType { - HybridComputeMachine = "HybridComputeMachine" -} - // @public export enum KnownOperationType { ClusterProvisioning = "ClusterProvisioning", @@ -1559,13 +1162,6 @@ export enum KnownOrigin { UserSystem = "user,system" } -// @public -export enum KnownOSOperationType { - Provision = "Provision", - ReImage = "ReImage", - Update = "Update" -} - // @public export enum KnownOverprovisioningRatio { One = "1", @@ -1573,23 +1169,6 @@ export enum KnownOverprovisioningRatio { Zero = "0" } -// @public -export enum KnownOwnerKeyType { - MicrosoftManaged = "MicrosoftManaged" -} - -// @public -export enum KnownOwnershipVoucherValidationStatus { - Invalid = "Invalid", - Valid = "Valid" -} - -// @public -export enum KnownProvisioningOsType { - AzureLinux = "AzureLinux", - HCI = "HCI" -} - // @public export enum KnownProvisioningState { Accepted = "Accepted", @@ -1647,30 +1226,11 @@ export enum KnownRemoteSupportType { Revoke = "Revoke" } -// @public -export enum KnownSdnIntegrationIntent { - Disable = "Disable", - Enable = "Enable" -} - -// @public -export enum KnownSdnStatus { - Disabled = "Disabled", - Enabled = "Enabled", - Unknown = "Unknown" -} - // @public export enum KnownSecretsType { BackupSecrets = "BackupSecrets" } -// @public -export enum KnownSecretType { - KeyVault = "KeyVault", - SshPubKey = "SshPubKey" -} - // @public export enum KnownServiceName { WAC = "WAC" @@ -1774,7 +1334,7 @@ export enum KnownUpdateSummariesPropertiesState { // @public export enum KnownVersions { V20260201 = "2026-02-01", - V20260401Preview = "2026-04-01-preview" + V20260430 = "2026-04-30" } // @public @@ -1789,16 +1349,6 @@ export enum KnownWindowsServerSubscription { Enabled = "Enabled" } -// @public -export interface KubernetesVersion extends ProxyResource { - properties?: KubernetesVersionProperties; -} - -// @public -export interface KubernetesVersionProperties { - version: string; -} - // @public export interface LocalAvailabilityZones { localAvailabilityZoneName?: string; @@ -1879,24 +1429,6 @@ export interface ManagedServiceIdentity { // @public export type ManagedServiceIdentityType = string; -// @public -export interface NetworkAdapter { - adapterName?: string; - dnsAddressArray?: string[]; - gateway?: string; - ipAddress?: string; - ipAddressRange?: IpAddressRange; - ipAssignmentType: IpAssignmentType; - macAddress?: string; - subnetMask?: string; - vlanId?: string; -} - -// @public -export interface NetworkConfiguration { - networkAdapters?: NetworkAdapter[]; -} - // @public export interface NetworkController { macAddressPoolStart?: string; @@ -1958,18 +1490,6 @@ export interface OfferProperties { skuMappings?: SkuMappings[]; } -// @public -export interface OnboardingConfiguration { - arcVirtualMachineId?: string; - location?: string; - resourceId?: string; - tenantId?: string; - type?: OnboardingResourceType; -} - -// @public -export type OnboardingResourceType = string; - // @public export interface Operation { readonly actionType?: ActionType; @@ -1979,17 +1499,6 @@ export interface Operation { readonly origin?: Origin; } -// @public -export interface OperationDetail { - readonly description?: string; - readonly error?: ErrorDetail; - readonly id?: string; - readonly name?: string; - readonly resourceId?: string; - readonly status?: string; - readonly type?: string; -} - // @public export interface OperationDisplay { readonly description?: string; @@ -2009,74 +1518,9 @@ export interface OptionalServices { // @public export type Origin = string; -// @public -export interface OsImage extends ProxyResource { - properties?: OsImageProperties; -} - -// @public -export interface OsImageProperties { - composedImageIsoHash?: string; - composedImageIsoUrl?: string; - composedImageVersion?: string; - validatedSolutionRecipeVersion?: string; -} - -// @public -export type OSOperationType = string; - -// @public -export interface OsProfile { - readonly assemblyVersion?: string; - readonly baseImageVersion?: string; - readonly bootType?: string; - readonly buildNumber?: string; - readonly imageVersion?: string; - readonly osSku?: string; - readonly osType?: string; - readonly osVersion?: string; -} - -// @public -export interface OsProvisionProfile { - gpgPubKey?: string; - imageHash?: string; - operationType?: OSOperationType; - osImageLocation?: string; - osName?: string; - osType?: string; - osVersion?: string; - vsrVersion?: string; -} - // @public export type OverprovisioningRatio = string; -// @public -export type OwnerKeyType = string; - -// @public -export interface OwnershipVoucherDetails { - ownerKeyType: OwnerKeyType; - ownershipVoucher: string; - readonly validationDetails?: OwnershipVoucherValidationDetails; -} - -// @public -export interface OwnershipVoucherValidationDetails { - azureMachineId?: string; - error?: ErrorDetail; - id?: string; - manufacturer?: string; - modelName?: string; - serialNumber?: string; - validationStatus?: OwnershipVoucherValidationStatus; - version?: string; -} - -// @public -export type OwnershipVoucherValidationStatus = string; - // @public export interface PackageVersionInfo { lastUpdated?: Date; @@ -2129,31 +1573,6 @@ export interface PhysicalNodes { name?: string; } -// @public -export interface PlatformPayload { - payloadHash?: string; - payloadIdentifier?: string; - payloadPackageSizeInBytes?: string; - payloadUrl?: string; -} - -// @public -export interface PlatformUpdate extends ProxyResource { - properties?: PlatformUpdateProperties; -} - -// @public -export interface PlatformUpdateDetails { - platformPayloads: PlatformPayload[]; - platformVersion?: string; - validatedSolutionRecipeVersion?: string; -} - -// @public -export interface PlatformUpdateProperties { - platformUpdateDetails: PlatformUpdateDetails[]; -} - // @public export interface PrecheckResult { additionalData?: string; @@ -2179,56 +1598,13 @@ export interface PrecheckResultTags { value?: string; } -// @public -export interface ProvisioningDetails { - osProfile: OsProvisionProfile; - userDetails?: UserDetails[]; -} - -// @public -export type ProvisioningOsType = string; - -// @public -export interface ProvisioningRequest { - customConfiguration?: string; - deviceConfiguration?: TargetDeviceConfiguration; - onboardingConfiguration?: OnboardingConfiguration; - osProfile: OsProvisionProfile; - target: ProvisioningOsType; - userDetails?: UserDetails[]; -} - // @public export type ProvisioningState = string; -// @public -export interface ProvisionOsJobProperties extends EdgeMachineJobProperties { - jobType: "ProvisionOs"; - provisioningRequest: ProvisioningRequest; - reportedProperties?: ProvisionOsReportedProperties; -} - -// @public -export interface ProvisionOsReportedProperties { - readonly deploymentStatus?: EceActionStatus; - readonly percentComplete?: number; - readonly validationStatus?: EceActionStatus; -} - // @public export interface ProxyResource extends Resource { } -// @public -export interface Publisher extends ProxyResource { - readonly provisioningState?: string; -} - -// @public -export interface PublisherProperties { - readonly provisioningState?: string; -} - // @public export interface QosPolicyOverrides { bandwidthPercentageSMB?: string; @@ -2259,11 +1635,6 @@ export interface ReconcileArcSettingsRequestProperties { clusterNodes?: string[]; } -// @public -export interface ReleaseDeviceRequest { - devices: string[]; -} - // @public export type RemoteSupportAccessLevel = string; @@ -2337,7 +1708,6 @@ export type RemoteSupportType = string; // @public export interface ReportedProperties { - readonly confidentialVmProfile?: ConfidentialVmProfile; readonly deviceState?: DeviceState; readonly extensionProfile?: ExtensionProfile; readonly lastSyncTimestamp?: Date; @@ -2425,19 +1795,6 @@ export interface SdnIntegration { networkController?: NetworkController; } -// @public -export type SdnIntegrationIntent = string; - -// @public -export interface SdnProperties { - readonly sdnApiAddress?: string; - readonly sdnDomainName?: string; - readonly sdnStatus?: SdnStatus; -} - -// @public -export type SdnStatus = string; - // @public export interface SecretsLocationDetails { secretsLocation: string; @@ -2452,9 +1809,6 @@ export interface SecretsLocationsChangeRequest { // @public export type SecretsType = string; -// @public -export type SecretType = string; - // @public export interface SecurityComplianceStatus { readonly dataAtRestEncrypted?: ComplianceStatus; @@ -2494,12 +1848,6 @@ export type ServiceName = string; // @public export type Severity = string; -// @public -export interface SiteDetails { - deviceConfiguration?: TargetDeviceConfiguration; - siteResourceId: string; -} - // @public export interface Sku extends ProxyResource { content?: string; @@ -2581,16 +1929,6 @@ export interface Storage { storageType?: StorageType; } -// @public -export interface StorageConfiguration { - partitionSize?: string; -} - -// @public -export interface StorageProfile { - readonly poolableDisksCount?: number; -} - // @public export interface StorageS2DConfig { overprovisioningRatio?: OverprovisioningRatio; @@ -2630,22 +1968,6 @@ export interface SystemData { lastModifiedByType?: CreatedByType; } -// @public -export interface TargetDeviceConfiguration { - hostName?: string; - network?: NetworkConfiguration; - storage?: StorageConfiguration; - time?: TimeConfiguration; - webProxy?: WebProxyConfiguration; -} - -// @public -export interface TimeConfiguration { - primaryTimeServer?: string; - secondaryTimeServer?: string; - timeZone?: string; -} - // @public export interface TrackedResource extends Resource { location: string; @@ -2678,16 +2000,6 @@ export interface Update extends ProxyResource { version?: string; } -// @public -export interface UpdateContent extends ProxyResource { - properties?: UpdateContentProperties; -} - -// @public -export interface UpdateContentProperties { - updatePayloads: ContentPayload[]; -} - // @public export interface UpdatePrerequisite { packageName?: string; @@ -2809,14 +2121,6 @@ export interface UserAssignedIdentity { readonly principalId?: string; } -// @public -export interface UserDetails { - secretLocation?: string; - secretType: SecretType; - sshPubKey?: string[]; - userName: string; -} - // @public export interface ValidatedSolutionRecipe extends ProxyResource { properties?: ValidatedSolutionRecipeProperties; @@ -2886,16 +2190,6 @@ export interface ValidatedSolutionRecipeProperties { signature?: string; } -// @public -export interface ValidateOwnershipVouchersRequest { - ownershipVoucherDetails: OwnershipVoucherDetails[]; -} - -// @public -export interface ValidateOwnershipVouchersResponse { - ownershipVoucherValidationDetails: OwnershipVoucherValidationDetails[]; -} - // @public export interface ValidateRequest { additionalInfo?: string; @@ -2910,13 +2204,6 @@ export interface ValidateResponse { // @public export type VolumeType = string; -// @public -export interface WebProxyConfiguration { - bypassList?: string[]; - connectionUri?: string; - port?: string; -} - // @public export type WindowsServerSubscription = string; diff --git a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-node.api.md b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-node.api.md index c4ad0fbfe88d..960ce7ec6f7b 100644 --- a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-node.api.md +++ b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci-node.api.md @@ -198,26 +198,16 @@ export class AzureStackHCIClient { constructor(credential: TokenCredential, options?: AzureStackHCIClientOptionalParams); constructor(credential: TokenCredential, subscriptionId: string, options?: AzureStackHCIClientOptionalParams); readonly arcSettings: ArcSettingsOperations; - readonly clusterJobs: ClusterJobsOperations; readonly clusters: ClustersOperations; readonly deploymentSettings: DeploymentSettingsOperations; - readonly devicePools: DevicePoolsOperations; readonly edgeDeviceJobs: EdgeDeviceJobsOperations; readonly edgeDevices: EdgeDevicesOperations; - readonly edgeMachineJobs: EdgeMachineJobsOperations; - readonly edgeMachines: EdgeMachinesOperations; readonly extensions: ExtensionsOperations; - readonly kubernetesVersions: KubernetesVersionsOperations; readonly offers: OffersOperations; readonly operations: OperationsOperations; - readonly osImages: OsImagesOperations; - readonly ownershipVouchers: OwnershipVouchersOperations; readonly pipeline: Pipeline; - readonly platformUpdates: PlatformUpdatesOperations; - readonly publishers: PublishersOperations; readonly securitySettings: SecuritySettingsOperations; readonly skus: SkusOperations; - readonly updateContents: UpdateContentsOperations; readonly updateRuns: UpdateRunsOperations; readonly updates: UpdatesOperations; readonly updateSummaries: UpdateSummariesOperations; @@ -234,28 +224,11 @@ export interface AzureStackHCIClientOptionalParams extends ClientOptions { // @public export type AzureSupportedClouds = `${AzureClouds}`; -// @public -export interface ChangeRingRequest { - // (undocumented) - properties?: ChangeRingRequestProperties; -} - -// @public -export interface ChangeRingRequestProperties { - targetRing?: string; -} - // @public export interface CheckUpdatesRequest { updateName?: string; } -// @public -export interface ClaimDeviceRequest { - claimedBy?: string; - devices: string[]; -} - // @public export interface Cluster extends TrackedResource { aadApplicationObjectId?: string; @@ -267,7 +240,6 @@ export interface Cluster extends TrackedResource { readonly cloudId?: string; cloudManagementEndpoint?: string; readonly clusterPattern?: ClusterPattern; - readonly confidentialVmProperties?: ConfidentialVmProperties; readonly connectivityStatus?: ConnectivityStatus; desiredProperties?: ClusterDesiredProperties; readonly identityProvider?: IdentityProvider; @@ -284,8 +256,6 @@ export interface Cluster extends TrackedResource { remoteSupportProperties?: RemoteSupportProperties; readonly reportedProperties?: ClusterReportedProperties; readonly resourceProviderObjectId?: string; - readonly ring?: string; - readonly sdnProperties?: ClusterSdnProperties; secretsLocations?: SecretsLocationDetails[]; readonly serviceEndpoint?: string; softwareAssuranceProperties?: SoftwareAssuranceProperties; @@ -332,60 +302,6 @@ export interface ClusterIdentityResponseProperties { aadTenantId?: string; } -// @public -export interface ClusterJob extends ProxyResource { - properties?: ClusterJobPropertiesUnion; -} - -// @public -export interface ClusterJobProperties { - deploymentMode?: DeploymentMode; - readonly endTimeUtc?: Date; - readonly jobId?: string; - jobType: HciJobType; - readonly provisioningState?: ProvisioningState; - readonly reportedProperties?: JobReportedProperties; - readonly startTimeUtc?: Date; - readonly status?: JobStatus; -} - -// @public -export type ClusterJobPropertiesUnion = HciConfigureSdnIntegrationJobProperties | HciConfigureCvmJobProperties | ClusterJobProperties; - -// @public -export interface ClusterJobsCreateOrUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface ClusterJobsDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface ClusterJobsGetOptionalParams extends OperationOptions { -} - -// @public -export interface ClusterJobsListOptionalParams extends OperationOptions { -} - -// @public -export interface ClusterJobsOperations { - // @deprecated (undocumented) - beginCreateOrUpdate: (resourceGroupName: string, clusterName: string, jobsName: string, resource: ClusterJob, options?: ClusterJobsCreateOrUpdateOptionalParams) => Promise, ClusterJob>>; - // @deprecated (undocumented) - beginCreateOrUpdateAndWait: (resourceGroupName: string, clusterName: string, jobsName: string, resource: ClusterJob, options?: ClusterJobsCreateOrUpdateOptionalParams) => Promise; - // @deprecated (undocumented) - beginDelete: (resourceGroupName: string, clusterName: string, jobsName: string, options?: ClusterJobsDeleteOptionalParams) => Promise, void>>; - // @deprecated (undocumented) - beginDeleteAndWait: (resourceGroupName: string, clusterName: string, jobsName: string, options?: ClusterJobsDeleteOptionalParams) => Promise; - createOrUpdate: (resourceGroupName: string, clusterName: string, jobsName: string, resource: ClusterJob, options?: ClusterJobsCreateOrUpdateOptionalParams) => PollerLike, ClusterJob>; - delete: (resourceGroupName: string, clusterName: string, jobsName: string, options?: ClusterJobsDeleteOptionalParams) => PollerLike, void>; - get: (resourceGroupName: string, clusterName: string, jobsName: string, options?: ClusterJobsGetOptionalParams) => Promise; - list: (resourceGroupName: string, clusterName: string, options?: ClusterJobsListOptionalParams) => PagedAsyncIterableIterator; -} - // @public export interface ClusterNode { readonly coreCount?: number; @@ -443,7 +359,6 @@ export interface ClusterProperties { readonly cloudId?: string; cloudManagementEndpoint?: string; readonly clusterPattern?: ClusterPattern; - readonly confidentialVmProperties?: ConfidentialVmProperties; readonly connectivityStatus?: ConnectivityStatus; desiredProperties?: ClusterDesiredProperties; readonly identityProvider?: IdentityProvider; @@ -458,8 +373,6 @@ export interface ClusterProperties { remoteSupportProperties?: RemoteSupportProperties; readonly reportedProperties?: ClusterReportedProperties; readonly resourceProviderObjectId?: string; - readonly ring?: string; - readonly sdnProperties?: ClusterSdnProperties; secretsLocations?: SecretsLocationDetails[]; readonly serviceEndpoint?: string; softwareAssuranceProperties?: SoftwareAssuranceProperties; @@ -485,11 +398,6 @@ export interface ClusterReportedProperties { readonly supportedCapabilities?: string[]; } -// @public -export interface ClustersChangeRingOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - // @public export interface ClustersConfigureRemoteSupportOptionalParams extends OperationOptions { updateIntervalInMs?: number; @@ -509,11 +417,6 @@ export interface ClustersDeleteOptionalParams extends OperationOptions { updateIntervalInMs?: number; } -// @public -export interface ClusterSdnProperties extends SdnProperties { - readonly sdnIntegrationIntent?: SdnIntegrationIntent; -} - // @public export interface ClustersExtendSoftwareAssuranceBenefitOptionalParams extends OperationOptions { updateIntervalInMs?: number; @@ -533,10 +436,6 @@ export interface ClustersListBySubscriptionOptionalParams extends OperationOptio // @public export interface ClustersOperations { - // @deprecated (undocumented) - beginChangeRing: (resourceGroupName: string, clusterName: string, changeRingRequest: ChangeRingRequest, options?: ClustersChangeRingOptionalParams) => Promise, Cluster>>; - // @deprecated (undocumented) - beginChangeRingAndWait: (resourceGroupName: string, clusterName: string, changeRingRequest: ChangeRingRequest, options?: ClustersChangeRingOptionalParams) => Promise; // @deprecated (undocumented) beginConfigureRemoteSupport: (resourceGroupName: string, clusterName: string, remoteSupportRequest: RemoteSupportRequest, options?: ClustersConfigureRemoteSupportOptionalParams) => Promise, Cluster>>; // @deprecated (undocumented) @@ -565,7 +464,6 @@ export interface ClustersOperations { beginUploadCertificate: (resourceGroupName: string, clusterName: string, uploadCertificateRequest: UploadCertificateRequest, options?: ClustersUploadCertificateOptionalParams) => Promise, void>>; // @deprecated (undocumented) beginUploadCertificateAndWait: (resourceGroupName: string, clusterName: string, uploadCertificateRequest: UploadCertificateRequest, options?: ClustersUploadCertificateOptionalParams) => Promise; - changeRing: (resourceGroupName: string, clusterName: string, changeRingRequest: ChangeRingRequest, options?: ClustersChangeRingOptionalParams) => PollerLike, Cluster>; configureRemoteSupport: (resourceGroupName: string, clusterName: string, remoteSupportRequest: RemoteSupportRequest, options?: ClustersConfigureRemoteSupportOptionalParams) => PollerLike, Cluster>; create: (resourceGroupName: string, clusterName: string, cluster: Cluster, options?: ClustersCreateOptionalParams) => Promise; createIdentity: (resourceGroupName: string, clusterName: string, options?: ClustersCreateIdentityOptionalParams) => PollerLike, ClusterIdentityResponse>; @@ -605,39 +503,9 @@ export type ComplianceAssignmentType = string; // @public export type ComplianceStatus = string; -// @public -export type ConfidentialVmIntent = string; - -// @public -export interface ConfidentialVmProfile { - readonly igvmStatus?: IgvmStatus; - statusDetails?: IgvmStatusDetail[]; -} - -// @public -export interface ConfidentialVmProperties { - readonly confidentialVmIntent?: ConfidentialVmIntent; - readonly confidentialVmStatus?: ConfidentialVmStatus; - readonly confidentialVmStatusSummary?: string; -} - -// @public -export type ConfidentialVmStatus = string; - // @public export type ConnectivityStatus = string; -// @public -export interface ContentPayload { - fileName?: string; - group?: string; - hash?: string; - hashAlgorithm?: string; - identifier?: string; - packageSizeInBytes?: string; - url?: string; -} - // @public export type ContinuablePage = TPage & { continuationToken?: string; @@ -830,110 +698,12 @@ export interface DeviceConfiguration { nicDetails?: NicDetail[]; } -// @public -export interface DeviceDetail { - readonly claimedBy?: string; - deviceResourceId?: string; -} - // @public export type DeviceKind = string; // @public export type DeviceLogCollectionStatus = string; -// @public -export interface DevicePool extends TrackedResource { - identity?: ManagedServiceIdentity; - properties?: DevicePoolProperties; -} - -// @public -export interface DevicePoolPatch { - identity?: ManagedServiceIdentity; - tags?: Record; -} - -// @public -export interface DevicePoolProperties { - readonly cloudId?: string; - customLocationName?: string; - readonly customLocationResourceId?: string; - devices?: DeviceDetail[]; - managedResourceGroup?: string; - readonly operationDetails?: OperationDetail[]; - readonly provisioningState?: ProvisioningState; -} - -// @public -export interface DevicePoolsClaimDevicesOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface DevicePoolsCreateOrUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface DevicePoolsDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface DevicePoolsGetOptionalParams extends OperationOptions { -} - -// @public -export interface DevicePoolsListByResourceGroupOptionalParams extends OperationOptions { -} - -// @public -export interface DevicePoolsListBySubscriptionOptionalParams extends OperationOptions { -} - -// @public -export interface DevicePoolsOperations { - // @deprecated (undocumented) - beginClaimDevices: (resourceGroupName: string, devicePoolName: string, body: ClaimDeviceRequest, options?: DevicePoolsClaimDevicesOptionalParams) => Promise, void>>; - // @deprecated (undocumented) - beginClaimDevicesAndWait: (resourceGroupName: string, devicePoolName: string, body: ClaimDeviceRequest, options?: DevicePoolsClaimDevicesOptionalParams) => Promise; - // @deprecated (undocumented) - beginCreateOrUpdate: (resourceGroupName: string, devicePoolName: string, resource: DevicePool, options?: DevicePoolsCreateOrUpdateOptionalParams) => Promise, DevicePool>>; - // @deprecated (undocumented) - beginCreateOrUpdateAndWait: (resourceGroupName: string, devicePoolName: string, resource: DevicePool, options?: DevicePoolsCreateOrUpdateOptionalParams) => Promise; - // @deprecated (undocumented) - beginDelete: (resourceGroupName: string, devicePoolName: string, options?: DevicePoolsDeleteOptionalParams) => Promise, void>>; - // @deprecated (undocumented) - beginDeleteAndWait: (resourceGroupName: string, devicePoolName: string, options?: DevicePoolsDeleteOptionalParams) => Promise; - // @deprecated (undocumented) - beginReleaseDevices: (resourceGroupName: string, devicePoolName: string, body: ReleaseDeviceRequest, options?: DevicePoolsReleaseDevicesOptionalParams) => Promise, void>>; - // @deprecated (undocumented) - beginReleaseDevicesAndWait: (resourceGroupName: string, devicePoolName: string, body: ReleaseDeviceRequest, options?: DevicePoolsReleaseDevicesOptionalParams) => Promise; - // @deprecated (undocumented) - beginUpdate: (resourceGroupName: string, devicePoolName: string, properties: DevicePoolPatch, options?: DevicePoolsUpdateOptionalParams) => Promise, DevicePool>>; - // @deprecated (undocumented) - beginUpdateAndWait: (resourceGroupName: string, devicePoolName: string, properties: DevicePoolPatch, options?: DevicePoolsUpdateOptionalParams) => Promise; - claimDevices: (resourceGroupName: string, devicePoolName: string, body: ClaimDeviceRequest, options?: DevicePoolsClaimDevicesOptionalParams) => PollerLike, void>; - createOrUpdate: (resourceGroupName: string, devicePoolName: string, resource: DevicePool, options?: DevicePoolsCreateOrUpdateOptionalParams) => PollerLike, DevicePool>; - delete: (resourceGroupName: string, devicePoolName: string, options?: DevicePoolsDeleteOptionalParams) => PollerLike, void>; - get: (resourceGroupName: string, devicePoolName: string, options?: DevicePoolsGetOptionalParams) => Promise; - listByResourceGroup: (resourceGroupName: string, options?: DevicePoolsListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; - listBySubscription: (options?: DevicePoolsListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; - releaseDevices: (resourceGroupName: string, devicePoolName: string, body: ReleaseDeviceRequest, options?: DevicePoolsReleaseDevicesOptionalParams) => PollerLike, void>; - update: (resourceGroupName: string, devicePoolName: string, properties: DevicePoolPatch, options?: DevicePoolsUpdateOptionalParams) => PollerLike, DevicePool>; -} - -// @public -export interface DevicePoolsReleaseDevicesOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface DevicePoolsUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - // @public export type DeviceState = string; @@ -949,30 +719,6 @@ export interface DnsZones { dnsZoneName?: string; } -// @public -export interface DownloadOsJobProperties extends EdgeMachineJobProperties { - downloadRequest: DownloadRequest; - jobType: "DownloadOs"; - reportedProperties?: ProvisionOsReportedProperties; -} - -// @public -export interface DownloadOsProfile { - gpgPubKey?: string; - imageHash?: string; - osImageLocation?: string; - osName?: string; - osType?: string; - osVersion?: string; - vsrVersion?: string; -} - -// @public -export interface DownloadRequest { - osProfile: DownloadOsProfile; - target: ProvisioningOsType; -} - // @public export interface EceActionStatus { readonly status?: string; @@ -1003,6 +749,9 @@ export interface EdgeDevice extends ExtensionResource { // @public export interface EdgeDeviceDisks { readonly id: string; + readonly isSupported?: boolean; + readonly manufacturer?: string; + readonly model?: string; readonly sizeInBytes?: string; readonly type?: string; } @@ -1105,234 +854,6 @@ export interface EdgeDevicesValidateOptionalParams extends OperationOptions { // @public export type EdgeDeviceUnion = HciEdgeDevice | EdgeDevice; -// @public -export interface EdgeMachine extends TrackedResource { - identity?: ManagedServiceIdentity; - properties?: EdgeMachineProperties; -} - -// @public -export interface EdgeMachineCollectLogJobProperties extends EdgeMachineJobProperties { - fromDate: Date; - jobType: "CollectLog"; - readonly lastLogGenerated?: Date; - readonly reportedProperties?: EdgeMachineCollectLogJobReportedProperties; - toDate: Date; -} - -// @public -export interface EdgeMachineCollectLogJobReportedProperties { - readonly deploymentStatus?: EceActionStatus; - readonly logCollectionSessionDetails?: LogCollectionJobSession[]; - readonly percentComplete?: number; - readonly validationStatus?: EceActionStatus; -} - -// @public -export type EdgeMachineConnectivityStatus = string; - -// @public -export interface EdgeMachineJob extends ProxyResource { - properties?: EdgeMachineJobPropertiesUnion; -} - -// @public -export interface EdgeMachineJobProperties { - deploymentMode?: DeploymentMode; - readonly endTimeUtc?: Date; - readonly error?: ErrorDetail; - readonly jobId?: string; - jobType: EdgeMachineJobType; - readonly provisioningState?: ProvisioningState; - readonly startTimeUtc?: Date; - readonly status?: JobStatus; -} - -// @public -export type EdgeMachineJobPropertiesUnion = EdgeMachineRemoteSupportJobProperties | ProvisionOsJobProperties | DownloadOsJobProperties | EdgeMachineCollectLogJobProperties | EdgeMachineJobProperties; - -// @public -export interface EdgeMachineJobsCreateOrUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface EdgeMachineJobsDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface EdgeMachineJobsGetOptionalParams extends OperationOptions { -} - -// @public -export interface EdgeMachineJobsListOptionalParams extends OperationOptions { -} - -// @public -export interface EdgeMachineJobsOperations { - // @deprecated (undocumented) - beginCreateOrUpdate: (resourceGroupName: string, edgeMachineName: string, jobsName: string, resource: EdgeMachineJob, options?: EdgeMachineJobsCreateOrUpdateOptionalParams) => Promise, EdgeMachineJob>>; - // @deprecated (undocumented) - beginCreateOrUpdateAndWait: (resourceGroupName: string, edgeMachineName: string, jobsName: string, resource: EdgeMachineJob, options?: EdgeMachineJobsCreateOrUpdateOptionalParams) => Promise; - // @deprecated (undocumented) - beginDelete: (resourceGroupName: string, edgeMachineName: string, jobsName: string, options?: EdgeMachineJobsDeleteOptionalParams) => Promise, void>>; - // @deprecated (undocumented) - beginDeleteAndWait: (resourceGroupName: string, edgeMachineName: string, jobsName: string, options?: EdgeMachineJobsDeleteOptionalParams) => Promise; - createOrUpdate: (resourceGroupName: string, edgeMachineName: string, jobsName: string, resource: EdgeMachineJob, options?: EdgeMachineJobsCreateOrUpdateOptionalParams) => PollerLike, EdgeMachineJob>; - delete: (resourceGroupName: string, edgeMachineName: string, jobsName: string, options?: EdgeMachineJobsDeleteOptionalParams) => PollerLike, void>; - get: (resourceGroupName: string, edgeMachineName: string, jobsName: string, options?: EdgeMachineJobsGetOptionalParams) => Promise; - list: (resourceGroupName: string, edgeMachineName: string, options?: EdgeMachineJobsListOptionalParams) => PagedAsyncIterableIterator; -} - -// @public -export type EdgeMachineJobType = string; - -// @public -export type EdgeMachineKind = string; - -// @public -export interface EdgeMachineNetworkProfile { - readonly nicDetails?: EdgeMachineNicDetail[]; - readonly switchDetails?: SwitchDetail[]; -} - -// @public -export interface EdgeMachineNicDetail { - readonly adapterName?: string; - readonly componentId?: string; - readonly defaultGateway?: string; - readonly defaultIsolationId?: string; - readonly dnsServers?: string[]; - readonly driverVersion?: string; - readonly interfaceDescription?: string; - readonly ip4Address?: string; - readonly macAddress?: string; - readonly nicStatus?: string; - readonly nicType?: string; - readonly rdmaCapability?: RdmaCapability; - readonly slot?: string; - readonly subnetMask?: string; - readonly switchName?: string; - readonly vlanId?: string; -} - -// @public -export interface EdgeMachinePatch { - identity?: ManagedServiceIdentity; - tags?: Record; -} - -// @public -export interface EdgeMachineProperties { - arcGatewayResourceId?: string; - arcMachineResourceGroupId?: string; - arcMachineResourceId?: string; - readonly claimedBy?: string; - readonly cloudId?: string; - readonly connectivityStatus?: EdgeMachineConnectivityStatus; - readonly devicePoolResourceId?: string; - edgeMachineKind?: EdgeMachineKind; - readonly lastSyncTimestamp?: Date; - readonly machineState?: EdgeMachineState; - readonly operationDetails?: OperationDetail[]; - ownershipVoucherDetails?: OwnershipVoucherDetails; - provisioningDetails?: ProvisioningDetails; - readonly provisioningState?: ProvisioningState; - readonly reportedProperties?: EdgeMachineReportedProperties; - siteDetails?: SiteDetails; -} - -// @public -export interface EdgeMachineRemoteSupportJobProperties extends EdgeMachineJobProperties { - accessLevel: RemoteSupportAccessLevel; - expirationTimestamp: Date; - jobType: "RemoteSupport"; - readonly reportedProperties?: EdgeMachineRemoteSupportJobReportedProperties; - type: RemoteSupportType; -} - -// @public -export interface EdgeMachineRemoteSupportJobReportedProperties { - readonly deploymentStatus?: EceActionStatus; - readonly nodeSettings?: EdgeMachineRemoteSupportNodeSettings; - readonly percentComplete?: number; - readonly sessionDetails?: RemoteSupportSession[]; - readonly validationStatus?: EceActionStatus; -} - -// @public -export interface EdgeMachineRemoteSupportNodeSettings { - readonly connectionErrorMessage?: string; - readonly connectionStatus?: string; - readonly createdAt?: Date; - readonly state?: string; - readonly updatedAt?: Date; -} - -// @public -export interface EdgeMachineReportedProperties { - readonly extensionProfile?: ExtensionProfile; - readonly hardwareProfile?: HardwareProfile; - readonly lastUpdated?: Date; - readonly networkProfile?: EdgeMachineNetworkProfile; - readonly osProfile?: OsProfile; - readonly sbeDeploymentPackageInfo?: SbeDeploymentPackageInfo; - readonly storageProfile?: StorageProfile; -} - -// @public -export interface EdgeMachinesCreateOrUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface EdgeMachinesDeleteOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - -// @public -export interface EdgeMachinesGetOptionalParams extends OperationOptions { -} - -// @public -export interface EdgeMachinesListByResourceGroupOptionalParams extends OperationOptions { -} - -// @public -export interface EdgeMachinesListBySubscriptionOptionalParams extends OperationOptions { -} - -// @public -export interface EdgeMachinesOperations { - // @deprecated (undocumented) - beginCreateOrUpdate: (resourceGroupName: string, edgeMachineName: string, resource: EdgeMachine, options?: EdgeMachinesCreateOrUpdateOptionalParams) => Promise, EdgeMachine>>; - // @deprecated (undocumented) - beginCreateOrUpdateAndWait: (resourceGroupName: string, edgeMachineName: string, resource: EdgeMachine, options?: EdgeMachinesCreateOrUpdateOptionalParams) => Promise; - // @deprecated (undocumented) - beginDelete: (resourceGroupName: string, edgeMachineName: string, options?: EdgeMachinesDeleteOptionalParams) => Promise, void>>; - // @deprecated (undocumented) - beginDeleteAndWait: (resourceGroupName: string, edgeMachineName: string, options?: EdgeMachinesDeleteOptionalParams) => Promise; - // @deprecated (undocumented) - beginUpdate: (resourceGroupName: string, edgeMachineName: string, properties: EdgeMachinePatch, options?: EdgeMachinesUpdateOptionalParams) => Promise, EdgeMachine>>; - // @deprecated (undocumented) - beginUpdateAndWait: (resourceGroupName: string, edgeMachineName: string, properties: EdgeMachinePatch, options?: EdgeMachinesUpdateOptionalParams) => Promise; - createOrUpdate: (resourceGroupName: string, edgeMachineName: string, resource: EdgeMachine, options?: EdgeMachinesCreateOrUpdateOptionalParams) => PollerLike, EdgeMachine>; - delete: (resourceGroupName: string, edgeMachineName: string, options?: EdgeMachinesDeleteOptionalParams) => PollerLike, void>; - get: (resourceGroupName: string, edgeMachineName: string, options?: EdgeMachinesGetOptionalParams) => Promise; - listByResourceGroup: (resourceGroupName: string, options?: EdgeMachinesListByResourceGroupOptionalParams) => PagedAsyncIterableIterator; - listBySubscription: (options?: EdgeMachinesListBySubscriptionOptionalParams) => PagedAsyncIterableIterator; - update: (resourceGroupName: string, edgeMachineName: string, properties: EdgeMachinePatch, options?: EdgeMachinesUpdateOptionalParams) => PollerLike, EdgeMachine>; -} - -// @public -export type EdgeMachineState = string; - -// @public -export interface EdgeMachinesUpdateOptionalParams extends OperationOptions { - updateIntervalInMs?: number; -} - // @public export interface ErrorAdditionalInfo { readonly info?: any; @@ -1502,17 +1023,6 @@ export interface ExtensionUpgradeParameters { // @public export type HardwareClass = string; -// @public -export interface HardwareProfile { - readonly cpuCores?: number; - readonly cpuSockets?: number; - readonly manufacturer?: string; - readonly memoryCapacityInGb?: number; - readonly model?: string; - readonly processorType?: string; - readonly serialNumber?: string; -} - // @public export interface HciCollectLogJobProperties extends HciEdgeDeviceJobProperties { fromDate: Date; @@ -1522,19 +1032,6 @@ export interface HciCollectLogJobProperties extends HciEdgeDeviceJobProperties { toDate: Date; } -// @public -export interface HciConfigureCvmJobProperties extends ClusterJobProperties { - confidentialVmIntent: ConfidentialVmIntent; - jobType: "ConfigureCVM"; -} - -// @public -export interface HciConfigureSdnIntegrationJobProperties extends ClusterJobProperties { - jobType: "ConfigureSdnIntegration"; - sdnIntegrationIntent: SdnIntegrationIntent; - sdnPrefix?: string; -} - // @public export interface HciEdgeDevice extends EdgeDevice { kind: "HCI"; @@ -1641,14 +1138,10 @@ export interface HciHardwareProfile { readonly processorType?: string; } -// @public -export type HciJobType = string; - // @public export interface HciNetworkProfile { readonly hostNetwork?: HciEdgeDeviceHostNetwork; readonly nicDetails?: HciNicDetail[]; - readonly sdnProperties?: SdnProperties; readonly switchDetails?: SwitchDetail[]; } @@ -1713,15 +1206,6 @@ export type HealthState = string; // @public export type IdentityProvider = string; -// @public -export type IgvmStatus = string; - -// @public -export interface IgvmStatusDetail { - readonly code?: string; - readonly message?: string; -} - // @public export type ImdsAttestation = string; @@ -1736,15 +1220,6 @@ export interface InfrastructureNetwork { useDhcp?: boolean; } -// @public -export interface IpAddressRange { - endIp: string; - startIp: string; -} - -// @public -export type IpAssignmentType = string; - // @public export interface IpPools { endingAddress?: string; @@ -1758,13 +1233,6 @@ export interface IsolatedVmAttestationConfiguration { readonly relyingPartyServiceEndpoint?: string; } -// @public -export interface JobReportedProperties { - readonly deploymentStatus?: EceActionStatus; - readonly percentComplete?: number; - readonly validationStatus?: EceActionStatus; -} - // @public export type JobStatus = string; @@ -1842,22 +1310,9 @@ export enum KnownComplianceAssignmentType { // @public export enum KnownComplianceStatus { - Compliant = "Compliant", - NonCompliant = "NonCompliant", - Pending = "Pending" -} - -// @public -export enum KnownConfidentialVmIntent { - Disable = "Disable", - Enable = "Enable" -} - -// @public -export enum KnownConfidentialVmStatus { - Disabled = "Disabled", - Enabled = "Enabled", - PartiallyEnabled = "PartiallyEnabled" + Compliant = "Compliant", + NonCompliant = "NonCompliant", + Pending = "Pending" } // @public @@ -1936,40 +1391,6 @@ export enum KnownEdgeDeviceKind { HCI = "HCI" } -// @public -export enum KnownEdgeMachineConnectivityStatus { - Connected = "Connected", - Disconnected = "Disconnected", - NotSpecified = "NotSpecified" -} - -// @public -export enum KnownEdgeMachineJobType { - CollectLog = "CollectLog", - DownloadOs = "DownloadOs", - ProvisionOs = "ProvisionOs", - RemoteSupport = "RemoteSupport" -} - -// @public -export enum KnownEdgeMachineKind { - Dedicated = "Dedicated", - Standard = "Standard" -} - -// @public -export enum KnownEdgeMachineState { - Created = "Created", - Failed = "Failed", - Preparing = "Preparing", - Purposed = "Purposed", - Registering = "Registering", - Resetting = "Resetting", - Transitioning = "Transitioning", - Unpurposed = "Unpurposed", - Updating = "Updating" -} - // @public export enum KnownExtensionAggregateState { Accepted = "Accepted", @@ -2011,12 +1432,6 @@ export enum KnownHciEdgeDeviceJobType { RemoteSupport = "RemoteSupport" } -// @public -export enum KnownHciJobType { - ConfigureCVM = "ConfigureCVM", - ConfigureSdnIntegration = "ConfigureSdnIntegration" -} - // @public export enum KnownHealthState { Error = "Error", @@ -2033,25 +1448,12 @@ export enum KnownIdentityProvider { LocalIdentity = "LocalIdentity" } -// @public -export enum KnownIgvmStatus { - Disabled = "Disabled", - Enabled = "Enabled", - Unknown = "Unknown" -} - // @public export enum KnownImdsAttestation { Disabled = "Disabled", Enabled = "Enabled" } -// @public -export enum KnownIpAssignmentType { - Automatic = "Automatic", - Manual = "Manual" -} - // @public export enum KnownJobStatus { Canceled = "Canceled", @@ -2139,11 +1541,6 @@ export enum KnownOemActivation { Enabled = "Enabled" } -// @public -export enum KnownOnboardingResourceType { - HybridComputeMachine = "HybridComputeMachine" -} - // @public export enum KnownOperationType { ClusterProvisioning = "ClusterProvisioning", @@ -2157,13 +1554,6 @@ export enum KnownOrigin { UserSystem = "user,system" } -// @public -export enum KnownOSOperationType { - Provision = "Provision", - ReImage = "ReImage", - Update = "Update" -} - // @public export enum KnownOverprovisioningRatio { One = "1", @@ -2171,23 +1561,6 @@ export enum KnownOverprovisioningRatio { Zero = "0" } -// @public -export enum KnownOwnerKeyType { - MicrosoftManaged = "MicrosoftManaged" -} - -// @public -export enum KnownOwnershipVoucherValidationStatus { - Invalid = "Invalid", - Valid = "Valid" -} - -// @public -export enum KnownProvisioningOsType { - AzureLinux = "AzureLinux", - HCI = "HCI" -} - // @public export enum KnownProvisioningState { Accepted = "Accepted", @@ -2245,30 +1618,11 @@ export enum KnownRemoteSupportType { Revoke = "Revoke" } -// @public -export enum KnownSdnIntegrationIntent { - Disable = "Disable", - Enable = "Enable" -} - -// @public -export enum KnownSdnStatus { - Disabled = "Disabled", - Enabled = "Enabled", - Unknown = "Unknown" -} - // @public export enum KnownSecretsType { BackupSecrets = "BackupSecrets" } -// @public -export enum KnownSecretType { - KeyVault = "KeyVault", - SshPubKey = "SshPubKey" -} - // @public export enum KnownServiceName { WAC = "WAC" @@ -2372,7 +1726,7 @@ export enum KnownUpdateSummariesPropertiesState { // @public export enum KnownVersions { V20260201 = "2026-02-01", - V20260401Preview = "2026-04-01-preview" + V20260430 = "2026-04-30" } // @public @@ -2387,25 +1741,6 @@ export enum KnownWindowsServerSubscription { Enabled = "Enabled" } -// @public -export interface KubernetesVersion extends ProxyResource { - properties?: KubernetesVersionProperties; -} - -// @public -export interface KubernetesVersionProperties { - version: string; -} - -// @public -export interface KubernetesVersionsListBySubscriptionLocationResourceOptionalParams extends OperationOptions { -} - -// @public -export interface KubernetesVersionsOperations { - listBySubscriptionLocationResource: (location: string, options?: KubernetesVersionsListBySubscriptionLocationResourceOptionalParams) => PagedAsyncIterableIterator; -} - // @public export interface LocalAvailabilityZones { localAvailabilityZoneName?: string; @@ -2486,24 +1821,6 @@ export interface ManagedServiceIdentity { // @public export type ManagedServiceIdentityType = string; -// @public -export interface NetworkAdapter { - adapterName?: string; - dnsAddressArray?: string[]; - gateway?: string; - ipAddress?: string; - ipAddressRange?: IpAddressRange; - ipAssignmentType: IpAssignmentType; - macAddress?: string; - subnetMask?: string; - vlanId?: string; -} - -// @public -export interface NetworkConfiguration { - networkAdapters?: NetworkAdapter[]; -} - // @public export interface NetworkController { macAddressPoolStart?: string; @@ -2587,18 +1904,6 @@ export interface OffersOperations { listByPublisher: (resourceGroupName: string, clusterName: string, publisherName: string, options?: OffersListByPublisherOptionalParams) => PagedAsyncIterableIterator; } -// @public -export interface OnboardingConfiguration { - arcVirtualMachineId?: string; - location?: string; - resourceId?: string; - tenantId?: string; - type?: OnboardingResourceType; -} - -// @public -export type OnboardingResourceType = string; - // @public export interface Operation { readonly actionType?: ActionType; @@ -2608,17 +1913,6 @@ export interface Operation { readonly origin?: Origin; } -// @public -export interface OperationDetail { - readonly description?: string; - readonly error?: ErrorDetail; - readonly id?: string; - readonly name?: string; - readonly resourceId?: string; - readonly status?: string; - readonly type?: string; -} - // @public export interface OperationDisplay { readonly description?: string; @@ -2647,97 +1941,9 @@ export interface OptionalServices { // @public export type Origin = string; -// @public -export interface OsImage extends ProxyResource { - properties?: OsImageProperties; -} - -// @public -export interface OsImageProperties { - composedImageIsoHash?: string; - composedImageIsoUrl?: string; - composedImageVersion?: string; - validatedSolutionRecipeVersion?: string; -} - -// @public -export interface OsImagesGetOptionalParams extends OperationOptions { -} - -// @public -export interface OsImagesListBySubscriptionLocationResourceOptionalParams extends OperationOptions { -} - -// @public -export interface OsImagesOperations { - get: (location: string, osImageName: string, options?: OsImagesGetOptionalParams) => Promise; - listBySubscriptionLocationResource: (location: string, options?: OsImagesListBySubscriptionLocationResourceOptionalParams) => PagedAsyncIterableIterator; -} - -// @public -export type OSOperationType = string; - -// @public -export interface OsProfile { - readonly assemblyVersion?: string; - readonly baseImageVersion?: string; - readonly bootType?: string; - readonly buildNumber?: string; - readonly imageVersion?: string; - readonly osSku?: string; - readonly osType?: string; - readonly osVersion?: string; -} - -// @public -export interface OsProvisionProfile { - gpgPubKey?: string; - imageHash?: string; - operationType?: OSOperationType; - osImageLocation?: string; - osName?: string; - osType?: string; - osVersion?: string; - vsrVersion?: string; -} - // @public export type OverprovisioningRatio = string; -// @public -export type OwnerKeyType = string; - -// @public -export interface OwnershipVoucherDetails { - ownerKeyType: OwnerKeyType; - ownershipVoucher: string; - readonly validationDetails?: OwnershipVoucherValidationDetails; -} - -// @public -export interface OwnershipVouchersOperations { - validate: (resourceGroupName: string, location: string, validationRequest: ValidateOwnershipVouchersRequest, options?: OwnershipVouchersValidateOptionalParams) => Promise; -} - -// @public -export interface OwnershipVouchersValidateOptionalParams extends OperationOptions { -} - -// @public -export interface OwnershipVoucherValidationDetails { - azureMachineId?: string; - error?: ErrorDetail; - id?: string; - manufacturer?: string; - modelName?: string; - serialNumber?: string; - validationStatus?: OwnershipVoucherValidationStatus; - version?: string; -} - -// @public -export type OwnershipVoucherValidationStatus = string; - // @public export interface PackageVersionInfo { lastUpdated?: Date; @@ -2802,45 +2008,6 @@ export interface PhysicalNodes { name?: string; } -// @public -export interface PlatformPayload { - payloadHash?: string; - payloadIdentifier?: string; - payloadPackageSizeInBytes?: string; - payloadUrl?: string; -} - -// @public -export interface PlatformUpdate extends ProxyResource { - properties?: PlatformUpdateProperties; -} - -// @public -export interface PlatformUpdateDetails { - platformPayloads: PlatformPayload[]; - platformVersion?: string; - validatedSolutionRecipeVersion?: string; -} - -// @public -export interface PlatformUpdateProperties { - platformUpdateDetails: PlatformUpdateDetails[]; -} - -// @public -export interface PlatformUpdatesGetOptionalParams extends OperationOptions { -} - -// @public -export interface PlatformUpdatesListOptionalParams extends OperationOptions { -} - -// @public -export interface PlatformUpdatesOperations { - get: (location: string, platformUpdateName: string, options?: PlatformUpdatesGetOptionalParams) => Promise; - list: (location: string, options?: PlatformUpdatesListOptionalParams) => PagedAsyncIterableIterator; -} - // @public export interface PrecheckResult { additionalData?: string; @@ -2866,70 +2033,13 @@ export interface PrecheckResultTags { value?: string; } -// @public -export interface ProvisioningDetails { - osProfile: OsProvisionProfile; - userDetails?: UserDetails[]; -} - -// @public -export type ProvisioningOsType = string; - -// @public -export interface ProvisioningRequest { - customConfiguration?: string; - deviceConfiguration?: TargetDeviceConfiguration; - onboardingConfiguration?: OnboardingConfiguration; - osProfile: OsProvisionProfile; - target: ProvisioningOsType; - userDetails?: UserDetails[]; -} - // @public export type ProvisioningState = string; -// @public -export interface ProvisionOsJobProperties extends EdgeMachineJobProperties { - jobType: "ProvisionOs"; - provisioningRequest: ProvisioningRequest; - reportedProperties?: ProvisionOsReportedProperties; -} - -// @public -export interface ProvisionOsReportedProperties { - readonly deploymentStatus?: EceActionStatus; - readonly percentComplete?: number; - readonly validationStatus?: EceActionStatus; -} - // @public export interface ProxyResource extends Resource { } -// @public -export interface Publisher extends ProxyResource { - readonly provisioningState?: string; -} - -// @public -export interface PublisherProperties { - readonly provisioningState?: string; -} - -// @public -export interface PublishersGetOptionalParams extends OperationOptions { -} - -// @public -export interface PublishersListByClusterOptionalParams extends OperationOptions { -} - -// @public -export interface PublishersOperations { - get: (resourceGroupName: string, clusterName: string, publisherName: string, options?: PublishersGetOptionalParams) => Promise; - listByCluster: (resourceGroupName: string, clusterName: string, options?: PublishersListByClusterOptionalParams) => PagedAsyncIterableIterator; -} - // @public export interface QosPolicyOverrides { bandwidthPercentageSMB?: string; @@ -2960,11 +2070,6 @@ export interface ReconcileArcSettingsRequestProperties { clusterNodes?: string[]; } -// @public -export interface ReleaseDeviceRequest { - devices: string[]; -} - // @public export type RemoteSupportAccessLevel = string; @@ -3038,7 +2143,6 @@ export type RemoteSupportType = string; // @public export interface ReportedProperties { - readonly confidentialVmProfile?: ConfidentialVmProfile; readonly deviceState?: DeviceState; readonly extensionProfile?: ExtensionProfile; readonly lastSyncTimestamp?: Date; @@ -3136,19 +2240,6 @@ export interface SdnIntegration { networkController?: NetworkController; } -// @public -export type SdnIntegrationIntent = string; - -// @public -export interface SdnProperties { - readonly sdnApiAddress?: string; - readonly sdnDomainName?: string; - readonly sdnStatus?: SdnStatus; -} - -// @public -export type SdnStatus = string; - // @public export interface SecretsLocationDetails { secretsLocation: string; @@ -3163,9 +2254,6 @@ export interface SecretsLocationsChangeRequest { // @public export type SecretsType = string; -// @public -export type SecretType = string; - // @public export interface SecurityComplianceStatus { readonly dataAtRestEncrypted?: ComplianceStatus; @@ -3261,12 +2349,6 @@ export interface SimplePollerLike, TResul toString(): string; } -// @public -export interface SiteDetails { - deviceConfiguration?: TargetDeviceConfiguration; - siteResourceId: string; -} - // @public export interface Sku extends ProxyResource { content?: string; @@ -3364,16 +2446,6 @@ export interface Storage { storageType?: StorageType; } -// @public -export interface StorageConfiguration { - partitionSize?: string; -} - -// @public -export interface StorageProfile { - readonly poolableDisksCount?: number; -} - // @public export interface StorageS2DConfig { overprovisioningRatio?: OverprovisioningRatio; @@ -3413,22 +2485,6 @@ export interface SystemData { lastModifiedByType?: CreatedByType; } -// @public -export interface TargetDeviceConfiguration { - hostName?: string; - network?: NetworkConfiguration; - storage?: StorageConfiguration; - time?: TimeConfiguration; - webProxy?: WebProxyConfiguration; -} - -// @public -export interface TimeConfiguration { - primaryTimeServer?: string; - secondaryTimeServer?: string; - timeZone?: string; -} - // @public export interface TrackedResource extends Resource { location: string; @@ -3461,30 +2517,6 @@ export interface Update extends ProxyResource { version?: string; } -// @public -export interface UpdateContent extends ProxyResource { - properties?: UpdateContentProperties; -} - -// @public -export interface UpdateContentProperties { - updatePayloads: ContentPayload[]; -} - -// @public -export interface UpdateContentsGetOptionalParams extends OperationOptions { -} - -// @public -export interface UpdateContentsListOptionalParams extends OperationOptions { -} - -// @public -export interface UpdateContentsOperations { - get: (location: string, updateContentName: string, options?: UpdateContentsGetOptionalParams) => Promise; - list: (location: string, options?: UpdateContentsListOptionalParams) => PagedAsyncIterableIterator; -} - // @public export interface UpdatePrerequisite { packageName?: string; @@ -3737,14 +2769,6 @@ export interface UserAssignedIdentity { readonly principalId?: string; } -// @public -export interface UserDetails { - secretLocation?: string; - secretType: SecretType; - sshPubKey?: string[]; - userName: string; -} - // @public export interface ValidatedSolutionRecipe extends ProxyResource { properties?: ValidatedSolutionRecipeProperties; @@ -3828,16 +2852,6 @@ export interface ValidatedSolutionRecipesOperations { listBySubscriptionLocationResource: (location: string, options?: ValidatedSolutionRecipesListBySubscriptionLocationResourceOptionalParams) => PagedAsyncIterableIterator; } -// @public -export interface ValidateOwnershipVouchersRequest { - ownershipVoucherDetails: OwnershipVoucherDetails[]; -} - -// @public -export interface ValidateOwnershipVouchersResponse { - ownershipVoucherValidationDetails: OwnershipVoucherValidationDetails[]; -} - // @public export interface ValidateRequest { additionalInfo?: string; @@ -3852,13 +2866,6 @@ export interface ValidateResponse { // @public export type VolumeType = string; -// @public -export interface WebProxyConfiguration { - bypassList?: string[]; - connectionUri?: string; - port?: string; -} - // @public export type WindowsServerSubscription = string; diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsConsentAndInstallDefaultExtensionsSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsConsentAndInstallDefaultExtensionsSample.ts index 951915387ad4..03329d0687ac 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsConsentAndInstallDefaultExtensionsSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsConsentAndInstallDefaultExtensionsSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to add consent time for default extensions and initiate extensions installation * * @summary add consent time for default extensions and initiate extensions installation - * x-ms-original-file: 2026-04-01-preview/ConsentAndInstallDefaultExtensions.json + * x-ms-original-file: 2026-04-30/ConsentAndInstallDefaultExtensions.json */ async function consentAndInstallDefaultExtensions(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateIdentitySample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateIdentitySample.ts index d47eb1b06e3c..5fc89b3ee1bf 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateIdentitySample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateIdentitySample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create Aad identity for arc settings. * * @summary create Aad identity for arc settings. - * x-ms-original-file: 2026-04-01-preview/CreateArcIdentity.json + * x-ms-original-file: 2026-04-30/CreateArcIdentity.json */ async function createArcIdentity(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateSample.ts index 3604a3ae84b3..872868e7ea15 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create ArcSetting for HCI cluster. * * @summary create ArcSetting for HCI cluster. - * x-ms-original-file: 2026-04-01-preview/PutArcSetting.json + * x-ms-original-file: 2026-04-30/PutArcSetting.json */ async function createArcSetting(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsDeleteSample.ts index 6277bf7003cf..66af3adf02ee 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete ArcSetting resource details of HCI Cluster. * * @summary delete ArcSetting resource details of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/DeleteArcSetting.json + * x-ms-original-file: 2026-04-30/DeleteArcSetting.json */ async function deleteArcSetting(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGeneratePasswordSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGeneratePasswordSample.ts index f6171afebdef..caec0fc3bf8b 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGeneratePasswordSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGeneratePasswordSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to generate password for arc settings. * * @summary generate password for arc settings. - * x-ms-original-file: 2026-04-01-preview/GeneratePassword.json + * x-ms-original-file: 2026-04-30/GeneratePassword.json */ async function generatePassword(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGetSample.ts index 56e73da5fb6d..97717635cda3 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get ArcSetting resource details of HCI Cluster. * * @summary get ArcSetting resource details of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/GetArcSetting.json + * x-ms-original-file: 2026-04-30/GetArcSetting.json */ async function getArcSetting(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsInitializeDisableProcessSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsInitializeDisableProcessSample.ts index cbe3ec6709fc..dcaddbeb6731 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsInitializeDisableProcessSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsInitializeDisableProcessSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to initializes ARC Disable process on the cluster * * @summary initializes ARC Disable process on the cluster - * x-ms-original-file: 2026-04-01-preview/InitializeDisableProcess.json + * x-ms-original-file: 2026-04-30/InitializeDisableProcess.json */ async function triggerARCDisable(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsListByClusterSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsListByClusterSample.ts index 9d8d6006d5fd..1bd6821eca7a 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsListByClusterSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsListByClusterSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get ArcSetting resources of HCI Cluster. * * @summary get ArcSetting resources of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/ListArcSettingsByCluster.json + * x-ms-original-file: 2026-04-30/ListArcSettingsByCluster.json */ async function listArcSettingResourcesByHCICluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsReconcileSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsReconcileSample.ts index 65d851ff6c14..afc8a56ada1c 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsReconcileSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsReconcileSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to reconcile Arc Settings with information related to all nodes. * * @summary reconcile Arc Settings with information related to all nodes. - * x-ms-original-file: 2026-04-01-preview/reconcileArcSettings.json + * x-ms-original-file: 2026-04-30/reconcileArcSettings.json */ async function reconcileArcSettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsUpdateSample.ts index 054b301a9755..98407425973e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsUpdateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsUpdateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to update ArcSettings for HCI cluster. * * @summary update ArcSettings for HCI cluster. - * x-ms-original-file: 2026-04-01-preview/PatchArcSetting.json + * x-ms-original-file: 2026-04-30/PatchArcSetting.json */ async function patchArcSetting(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsCreateOrUpdateSample.ts deleted file mode 100644 index f2ac9e1e46c2..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsCreateOrUpdateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to create a ClusterJob - * - * @summary create a ClusterJob - * x-ms-original-file: 2026-04-01-preview/ClusterJobs_CreateOrUpdate_ConfigureCVM.json - */ -async function clusterJobsCreateOrUpdateConfigureCVMJob(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.clusterJobs.createOrUpdate("test-rg", "myCluster", "ConfigureCVM", { - properties: { - jobType: "ConfigureCVM", - deploymentMode: "Deploy", - confidentialVmIntent: "Enable", - }, - }); - console.log(result); -} - -/** - * This sample demonstrates how to create a ClusterJob - * - * @summary create a ClusterJob - * x-ms-original-file: 2026-04-01-preview/ClusterJobs_CreateOrUpdate_ConfigureSdnIntegration_Enable.json - */ -async function clusterJobsCreateOrUpdateConfigureSdnIntegrationEnable(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.clusterJobs.createOrUpdate( - "test-rg", - "myCluster", - "configureSdnIntegration", - { - properties: { - jobType: "ConfigureSdnIntegration", - deploymentMode: "Deploy", - sdnIntegrationIntent: "Enable", - }, - }, - ); - console.log(result); -} - -async function main(): Promise { - await clusterJobsCreateOrUpdateConfigureCVMJob(); - await clusterJobsCreateOrUpdateConfigureSdnIntegrationEnable(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsDeleteSample.ts deleted file mode 100644 index fd20b7d30851..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsDeleteSample.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to delete a ClusterJob - * - * @summary delete a ClusterJob - * x-ms-original-file: 2026-04-01-preview/ClusterJobs_Delete.json - */ -async function clusterJobsDelete(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "6D37FF61-4C93-4377-B06B-FC6D6D561A7D"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.clusterJobs.delete("rghci", "3-Vz3LSRO5Q6q8EV-PKs8-5E", "configureSdnIntegration"); -} - -async function main(): Promise { - await clusterJobsDelete(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsGetSample.ts deleted file mode 100644 index 571ecbef0568..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a ClusterJob - * - * @summary get a ClusterJob - * x-ms-original-file: 2026-04-01-preview/ClusterJobs_Get_ConfigureSdnIntegrationJob.json - */ -async function clusterJobsGetConfigureSdnIntegrationJob(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "6D37FF61-4C93-4377-B06B-FC6D6D561A7D"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.clusterJobs.get("rghci", "Y-k0MG", "configureSdnIntegration"); - console.log(result); -} - -async function main(): Promise { - await clusterJobsGetConfigureSdnIntegrationJob(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsListSample.ts deleted file mode 100644 index 96126e59dd3a..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clusterJobsListSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list ClusterJob resources by Clusters - * - * @summary list ClusterJob resources by Clusters - * x-ms-original-file: 2026-04-01-preview/ClusterJobs_List.json - */ -async function clusterJobsList(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "6D37FF61-4C93-4377-B06B-FC6D6D561A7D"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.clusterJobs.list("rghci", "Ql40O4-I77S")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await clusterJobsList(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersChangeRingSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersChangeRingSample.ts deleted file mode 100644 index b8e950a2cc98..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersChangeRingSample.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to changes ring of a cluster - * - * @summary changes ring of a cluster - * x-ms-original-file: 2026-04-01-preview/ChangeClusterRing.json - */ -async function changeClusterRing(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.clusters.changeRing("test-rg", "myCluster", { - properties: { targetRing: "Insider" }, - }); - console.log(result); -} - -async function main(): Promise { - await changeClusterRing(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersConfigureRemoteSupportSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersConfigureRemoteSupportSample.ts index 24e5351c8e2a..39ad291ef57d 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersConfigureRemoteSupportSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersConfigureRemoteSupportSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to configure RemoteSupport on a cluster * * @summary configure RemoteSupport on a cluster - * x-ms-original-file: 2026-04-01-preview/ConfigureRemoteSupport.json + * x-ms-original-file: 2026-04-30/ConfigureRemoteSupport.json */ async function configureRemoteSupport(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateIdentitySample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateIdentitySample.ts index d1e5dcd3f35a..48fe172722ce 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateIdentitySample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateIdentitySample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create cluster identity. * * @summary create cluster identity. - * x-ms-original-file: 2026-04-01-preview/CreateClusterIdentity.json + * x-ms-original-file: 2026-04-30/CreateClusterIdentity.json */ async function createClusterIdentity(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateSample.ts index 5d5b7649c80d..35aa4f08543e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create an HCI cluster. * * @summary create an HCI cluster. - * x-ms-original-file: 2026-04-01-preview/CreateCluster.json + * x-ms-original-file: 2026-04-30/CreateCluster.json */ async function createCluster(): Promise { const credential = new DefaultAzureCredential(); @@ -16,7 +16,6 @@ async function createCluster(): Promise { const client = new AzureStackHCIClient(credential, subscriptionId); const result = await client.clusters.create("test-rg", "myCluster", { typeIdentityType: "SystemAssigned", - kind: "AzureLocal", location: "East US", aadClientId: "24a6e53d-04e5-44d2-b7cc-1b732a847dfc", aadTenantId: "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersDeleteSample.ts index 54676f1dc3af..65d8ade296d6 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete an HCI cluster. * * @summary delete an HCI cluster. - * x-ms-original-file: 2026-04-01-preview/DeleteCluster.json + * x-ms-original-file: 2026-04-30/DeleteCluster.json */ async function deleteCluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersExtendSoftwareAssuranceBenefitSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersExtendSoftwareAssuranceBenefitSample.ts index 04e05436dc5d..d89c028a2d8c 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersExtendSoftwareAssuranceBenefitSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersExtendSoftwareAssuranceBenefitSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to extends Software Assurance Benefit to a cluster * * @summary extends Software Assurance Benefit to a cluster - * x-ms-original-file: 2026-04-01-preview/ExtendSoftwareAssuranceBenefit.json + * x-ms-original-file: 2026-04-30/ExtendSoftwareAssuranceBenefit.json */ async function createClusterIdentity(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersGetSample.ts index e2f40343e947..75bf56c1fc22 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get HCI cluster. * * @summary get HCI cluster. - * x-ms-original-file: 2026-04-01-preview/GetCluster.json + * x-ms-original-file: 2026-04-30/GetCluster.json */ async function getCluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListByResourceGroupSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListByResourceGroupSample.ts index 0f9ee2400781..80cabfbfe979 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListByResourceGroupSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListByResourceGroupSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list all HCI clusters in a resource group. * * @summary list all HCI clusters in a resource group. - * x-ms-original-file: 2026-04-01-preview/ListClustersByResourceGroup.json + * x-ms-original-file: 2026-04-30/ListClustersByResourceGroup.json */ async function listClustersInAGivenResourceGroup(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListBySubscriptionSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListBySubscriptionSample.ts index 930380169bab..0260cf3da9d2 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListBySubscriptionSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListBySubscriptionSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list all HCI clusters in a subscription. * * @summary list all HCI clusters in a subscription. - * x-ms-original-file: 2026-04-01-preview/ListClustersBySubscription.json + * x-ms-original-file: 2026-04-30/ListClustersBySubscription.json */ async function listClustersInAGivenSubscription(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersTriggerLogCollectionSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersTriggerLogCollectionSample.ts index 54d75399d56f..04ae3ee9b5fb 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersTriggerLogCollectionSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersTriggerLogCollectionSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to trigger Log Collection on a cluster * * @summary trigger Log Collection on a cluster - * x-ms-original-file: 2026-04-01-preview/TriggerLogCollection.json + * x-ms-original-file: 2026-04-30/TriggerLogCollection.json */ async function triggerLogCollection(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUpdateSample.ts index c7e4e5dae95f..f99b98fcde7e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUpdateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUpdateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to update an HCI cluster. * * @summary update an HCI cluster. - * x-ms-original-file: 2026-04-01-preview/UpdateCluster.json + * x-ms-original-file: 2026-04-30/UpdateCluster.json */ async function updateCluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUpdateSecretsLocationsSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUpdateSecretsLocationsSample.ts index 9ff94903046c..34256d52fe9d 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUpdateSecretsLocationsSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUpdateSecretsLocationsSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to update cluster secrets locations. * * @summary update cluster secrets locations. - * x-ms-original-file: 2026-04-01-preview/Clusters_UpdateSecretsLocations.json + * x-ms-original-file: 2026-04-30/Clusters_UpdateSecretsLocations.json */ async function updateSecretsLocationsForACluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUploadCertificateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUploadCertificateSample.ts index 294a0225e93e..437f6000b405 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUploadCertificateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUploadCertificateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to upload certificate. * * @summary upload certificate. - * x-ms-original-file: 2026-04-01-preview/UploadCertificate.json + * x-ms-original-file: 2026-04-30/UploadCertificate.json */ async function uploadCertificate(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsCreateOrUpdateSample.ts index 8660ee88fe71..501cff1f9348 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsCreateOrUpdateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsCreateOrUpdateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create a DeploymentSetting * * @summary create a DeploymentSetting - * x-ms-original-file: 2026-04-01-preview/PutDeploymentSettings.json + * x-ms-original-file: 2026-04-30/PutDeploymentSettings.json */ async function createDeploymentSettings(): Promise { const credential = new DefaultAzureCredential(); @@ -73,6 +73,24 @@ async function createDeploymentSettings(): Promise { vlanId: "5", }, ], + sanNetworks: { + clusterNetworkConfig: { + adapterProperties: { + bandwidthPercentageSmb: 50, + jumboPacket: 9014, + priorityValue8021ActionCluster: 7, + priorityValue8021ActionSmb: 3, + }, + adapterIPConfig: [ + { + name: "clusterNetwork-A", + networkAdapterName: "ethernet 3", + vlanId: 711, + addressPrefix: "10.10.30.0/24", + }, + ], + }, + }, }, infrastructureNetwork: [ { @@ -131,7 +149,11 @@ async function createDeploymentSettings(): Promise { smbSigningEnforced: true, wdacEnforced: true, }, - storage: { configurationMode: "Express" }, + storage: { + configurationMode: "Express", + storageType: "S2D", + s2D: { volumeType: "ThinProvisioned", overprovisioningRatio: "2" }, + }, }, sbePartnerInfo: { credentialList: [ @@ -169,7 +191,7 @@ async function createDeploymentSettings(): Promise { * This sample demonstrates how to create a DeploymentSetting * * @summary create a DeploymentSetting - * x-ms-original-file: 2026-04-01-preview/PutDeploymentSettingsWithADLess.json + * x-ms-original-file: 2026-04-30/PutDeploymentSettingsWithADLess.json */ async function createDeploymentSettingsWithoutActiveDirectoryIntegration(): Promise { const credential = new DefaultAzureCredential(); @@ -234,6 +256,24 @@ async function createDeploymentSettingsWithoutActiveDirectoryIntegration(): Prom vlanId: "5", }, ], + sanNetworks: { + clusterNetworkConfig: { + adapterProperties: { + bandwidthPercentageSmb: 50, + jumboPacket: 9014, + priorityValue8021ActionCluster: 7, + priorityValue8021ActionSmb: 3, + }, + adapterIPConfig: [ + { + name: "clusterNetwork-A", + networkAdapterName: "ethernet 3", + vlanId: 711, + addressPrefix: "10.10.30.0/24", + }, + ], + }, + }, }, identityProvider: "LocalIdentity", infrastructureNetwork: [ @@ -291,7 +331,348 @@ async function createDeploymentSettingsWithoutActiveDirectoryIntegration(): Prom smbSigningEnforced: true, wdacEnforced: true, }, - storage: { configurationMode: "Express" }, + storage: { + configurationMode: "Express", + storageType: "S2D", + s2D: { volumeType: "ThinProvisioned", overprovisioningRatio: "2" }, + }, + }, + sbePartnerInfo: { + credentialList: [ + { + eceSecretName: "DownloadConnectorCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + partnerProperties: [ + { name: "EnableBMCIpV6", value: "false" }, + { name: "PhoneHomePort", value: "1653" }, + { name: "BMCSecurityState", value: "HighSecurity" }, + ], + sbeDeploymentInfo: { + family: "Gen5", + publisher: "Contoso", + sbeManifestCreationDate: new Date("2023-07-25T02:40:33Z"), + sbeManifestSource: "default", + version: "4.0.2309.13", + }, + }, + }, + ], + version: "string", + }, + deploymentMode: "Deploy", + operationType: "ClusterProvisioning", + }); + console.log(result); +} + +/** + * This sample demonstrates how to create a DeploymentSetting + * + * @summary create a DeploymentSetting + * x-ms-original-file: 2026-04-30/PutDeploymentSettings_StorageS2D.json + */ +async function createDeploymentSettingsWithS2DStorage(): Promise { + const credential = new DefaultAzureCredential(); + const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; + const client = new AzureStackHCIClient(credential, subscriptionId); + const result = await client.deploymentSettings.createOrUpdate("test-rg", "myCluster", "default", { + arcNodeResourceIds: [ + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", + ], + deploymentConfiguration: { + scaleUnits: [ + { + deploymentData: { + adouPath: "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com", + cluster: { + name: "testHCICluster", + azureServiceEndpoint: "core.windows.net", + cloudAccountName: "myasestoragacct", + witnessPath: "Cloud", + witnessType: "Cloud", + }, + domainFqdn: "ASZ1PLab8.nttest.microsoft.com", + hostNetwork: { + enableStorageAutoIp: false, + intents: [ + { + name: "Compute_Management", + adapter: ["Port2"], + adapterPropertyOverrides: { + jumboPacket: "1514", + networkDirect: "Enabled", + networkDirectTechnology: "iWARP", + }, + overrideAdapterProperty: false, + overrideQosPolicy: false, + overrideVirtualSwitchConfiguration: false, + qosPolicyOverrides: { + bandwidthPercentageSMB: "50", + priorityValue8021ActionCluster: "7", + priorityValue8021ActionSMB: "3", + }, + trafficType: ["Compute", "Management"], + virtualSwitchConfigurationOverrides: { + enableIov: "True", + loadBalancingAlgorithm: "HyperVPort", + }, + }, + ], + storageConnectivitySwitchless: true, + storageNetworks: [ + { + name: "Storage1Network", + networkAdapterName: "Port3", + storageAdapterIPInfo: [ + { + ipv4Address: "10.57.48.60", + physicalNode: "string", + subnetMask: "255.255.248.0", + }, + ], + vlanId: "5", + }, + ], + }, + infrastructureNetwork: [ + { + dnsServerConfig: "UseDnsServer", + dnsServers: ["10.57.50.90"], + gateway: "255.255.248.0", + ipPools: [{ endingAddress: "10.57.48.66", startingAddress: "10.57.48.60" }], + subnetMask: "255.255.248.0", + }, + ], + isManagementCluster: true, + namingPrefix: "ms169", + observability: { + episodicDataUpload: true, + euLocation: false, + streamingDataClient: true, + }, + optionalServices: { customLocation: "customLocationName" }, + physicalNodes: [ + { name: "ms169host", ipv4Address: "10.57.51.224" }, + { name: "ms154host", ipv4Address: "10.57.53.236" }, + ], + secrets: [ + { + eceSecretName: "BMCAdminUserCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + { + eceSecretName: "AzureStackLCMUserCredential", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4c", + secretName: + "cluster2-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + secretsLocation: + "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123", + securitySettings: { + bitlockerBootVolume: true, + bitlockerDataVolumes: true, + credentialGuardEnforced: false, + driftControlEnforced: true, + drtmProtection: true, + hvciProtection: true, + sideChannelMitigationEnforced: true, + smbClusterEncryption: false, + smbSigningEnforced: true, + wdacEnforced: true, + }, + storage: { + configurationMode: "Express", + storageType: "S2D", + s2D: { volumeType: "ThinProvisioned", overprovisioningRatio: "2" }, + }, + }, + sbePartnerInfo: { + credentialList: [ + { + eceSecretName: "DownloadConnectorCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + partnerProperties: [ + { name: "EnableBMCIpV6", value: "false" }, + { name: "PhoneHomePort", value: "1653" }, + { name: "BMCSecurityState", value: "HighSecurity" }, + ], + sbeDeploymentInfo: { + family: "Gen5", + publisher: "Contoso", + sbeManifestCreationDate: new Date("2023-07-25T02:40:33Z"), + sbeManifestSource: "default", + version: "4.0.2309.13", + }, + }, + }, + ], + version: "string", + }, + deploymentMode: "Deploy", + operationType: "ClusterProvisioning", + }); + console.log(result); +} + +/** + * This sample demonstrates how to create a DeploymentSetting + * + * @summary create a DeploymentSetting + * x-ms-original-file: 2026-04-30/PutDeploymentSettings_StorageSAN.json + */ +async function createDeploymentSettingsWithSANStorage(): Promise { + const credential = new DefaultAzureCredential(); + const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; + const client = new AzureStackHCIClient(credential, subscriptionId); + const result = await client.deploymentSettings.createOrUpdate("test-rg", "myCluster", "default", { + arcNodeResourceIds: [ + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", + ], + deploymentConfiguration: { + scaleUnits: [ + { + deploymentData: { + adouPath: "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com", + cluster: { + name: "testHCICluster", + azureServiceEndpoint: "core.windows.net", + cloudAccountName: "myasestoragacct", + witnessPath: "Cloud", + witnessType: "Cloud", + }, + domainFqdn: "ASZ1PLab8.nttest.microsoft.com", + hostNetwork: { + enableStorageAutoIp: false, + intents: [ + { + name: "Compute_Management", + adapter: ["Port2"], + adapterPropertyOverrides: { + jumboPacket: "1514", + networkDirect: "Enabled", + networkDirectTechnology: "iWARP", + }, + overrideAdapterProperty: false, + overrideQosPolicy: false, + overrideVirtualSwitchConfiguration: false, + qosPolicyOverrides: { + bandwidthPercentageSMB: "50", + priorityValue8021ActionCluster: "7", + priorityValue8021ActionSMB: "3", + }, + trafficType: ["Compute", "Management"], + virtualSwitchConfigurationOverrides: { + enableIov: "True", + loadBalancingAlgorithm: "HyperVPort", + }, + }, + ], + storageConnectivitySwitchless: true, + storageNetworks: [ + { + name: "Storage1Network", + networkAdapterName: "Port3", + storageAdapterIPInfo: [ + { + ipv4Address: "10.57.48.60", + physicalNode: "string", + subnetMask: "255.255.248.0", + }, + ], + vlanId: "5", + }, + ], + sanNetworks: { + clusterNetworkConfig: { + adapterProperties: { + bandwidthPercentageSmb: 50, + jumboPacket: 9014, + priorityValue8021ActionCluster: 7, + priorityValue8021ActionSmb: 3, + }, + adapterIPConfig: [ + { + name: "clusterNetwork-A", + networkAdapterName: "ethernet 3", + vlanId: 711, + addressPrefix: "10.10.30.0/24", + }, + ], + }, + }, + }, + infrastructureNetwork: [ + { + dnsServerConfig: "UseDnsServer", + dnsServers: ["10.57.50.90"], + gateway: "255.255.248.0", + ipPools: [{ endingAddress: "10.57.48.66", startingAddress: "10.57.48.60" }], + subnetMask: "255.255.248.0", + }, + ], + isManagementCluster: true, + namingPrefix: "ms169", + observability: { + episodicDataUpload: true, + euLocation: false, + streamingDataClient: true, + }, + optionalServices: { customLocation: "customLocationName" }, + physicalNodes: [ + { name: "ms169host", ipv4Address: "10.57.51.224" }, + { name: "ms154host", ipv4Address: "10.57.53.236" }, + ], + secrets: [ + { + eceSecretName: "BMCAdminUserCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + { + eceSecretName: "AzureStackLCMUserCredential", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4c", + secretName: + "cluster2-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + secretsLocation: + "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123", + securitySettings: { + bitlockerBootVolume: true, + bitlockerDataVolumes: true, + credentialGuardEnforced: false, + driftControlEnforced: true, + drtmProtection: true, + hvciProtection: true, + sideChannelMitigationEnforced: true, + smbClusterEncryption: false, + smbSigningEnforced: true, + wdacEnforced: true, + }, + storage: { + configurationMode: "Express", + storageType: "SAN", + san: { + infraVolLunId: "PURE1234567890ABCDEF", + infraPerfLunId: "PURE0987654321MNOPQR", + }, + }, }, sbePartnerInfo: { credentialList: [ @@ -328,6 +709,8 @@ async function createDeploymentSettingsWithoutActiveDirectoryIntegration(): Prom async function main(): Promise { await createDeploymentSettings(); await createDeploymentSettingsWithoutActiveDirectoryIntegration(); + await createDeploymentSettingsWithS2DStorage(); + await createDeploymentSettingsWithSANStorage(); } main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsDeleteSample.ts index 7ca19c193502..d283d8f04379 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete a DeploymentSetting * * @summary delete a DeploymentSetting - * x-ms-original-file: 2026-04-01-preview/DeleteDeploymentSettings.json + * x-ms-original-file: 2026-04-30/DeleteDeploymentSettings.json */ async function deleteDeploymentSettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsGetSample.ts index 0b2e5bb7dd1a..e537e77fd759 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get a DeploymentSetting * * @summary get a DeploymentSetting - * x-ms-original-file: 2026-04-01-preview/GetDeploymentSettings.json + * x-ms-original-file: 2026-04-30/GetDeploymentSettings.json */ async function getDeploymentSettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsListByClustersSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsListByClustersSample.ts index 1ffd78989c5f..8fcabeb07344 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsListByClustersSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsListByClustersSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list DeploymentSetting resources by Clusters * * @summary list DeploymentSetting resources by Clusters - * x-ms-original-file: 2026-04-01-preview/ListDeploymentSettingsByCluster.json + * x-ms-original-file: 2026-04-30/ListDeploymentSettingsByCluster.json */ async function listDeploymentSettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsClaimDevicesSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsClaimDevicesSample.ts deleted file mode 100644 index f49738d8e1ff..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsClaimDevicesSample.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to claiming devices of the pool. - * - * @summary claiming devices of the pool. - * x-ms-original-file: 2026-04-01-preview/DevicePools_ClaimDevices_MaximumSet_Gen.json - */ -async function devicePoolsClaimDevicesMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.devicePools.claimDevices("ArcInstance-rg", "ptfebvgxxqllx", { - devices: [ - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/edgeMachines/machine-1", - ], - claimedBy: - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/clusters/cluster1", - }); -} - -async function main(): Promise { - await devicePoolsClaimDevicesMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsCreateOrUpdateSample.ts deleted file mode 100644 index bd5af35a2687..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsCreateOrUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to create a DevicePool - * - * @summary create a DevicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_CreateOrUpdate.json - */ -async function devicePoolsCreateOrUpdate(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.devicePools.createOrUpdate("ArcInstance-rg", "devicePool-1", { - properties: {}, - location: "eastus", - }); - console.log(result); -} - -/** - * This sample demonstrates how to create a DevicePool - * - * @summary create a DevicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_CreateOrUpdate_MaximumSet_Gen.json - */ -async function devicePoolsCreateOrUpdateMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.devicePools.createOrUpdate("ArcInstance-rg", "devicePool1", { - properties: {}, - location: "eastus", - }); - console.log(result); -} - -async function main(): Promise { - await devicePoolsCreateOrUpdate(); - await devicePoolsCreateOrUpdateMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsDeleteSample.ts deleted file mode 100644 index adbf60cc0e0f..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsDeleteSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to delete a DevicePool - * - * @summary delete a DevicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_Delete_MaximumSet_Gen.json - */ -async function devicePoolsDeleteMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.devicePools.delete("ArcInstance-rg", "devicePool1"); -} - -/** - * This sample demonstrates how to delete a DevicePool - * - * @summary delete a DevicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_Delete_MinimumSet_Gen.json - */ -async function devicePoolsDeleteMinimumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.devicePools.delete("ArcInstance-rg", "devicePool1"); -} - -async function main(): Promise { - await devicePoolsDeleteMaximumSet(); - await devicePoolsDeleteMinimumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsGetSample.ts deleted file mode 100644 index e07b4bb423e1..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a DevicePool - * - * @summary get a DevicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_Get_MaximumSet_Gen.json - */ -async function devicePoolsGetMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.devicePools.get("ArcInstance-rg", "fflisdaccdcoj"); - console.log(result); -} - -async function main(): Promise { - await devicePoolsGetMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsListByResourceGroupSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsListByResourceGroupSample.ts deleted file mode 100644 index d65da3c60d24..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsListByResourceGroupSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all device pools in a resource group. - * - * @summary list all device pools in a resource group. - * x-ms-original-file: 2026-04-01-preview/DevicePools_ListByResourceGroup.json - */ -async function listDevicePoolsInAGivenResourceGroup(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.devicePools.listByResourceGroup("test-rg")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await listDevicePoolsInAGivenResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsListBySubscriptionSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsListBySubscriptionSample.ts deleted file mode 100644 index 6ce12235088a..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsListBySubscriptionSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all device pools in a subscription. - * - * @summary list all device pools in a subscription. - * x-ms-original-file: 2026-04-01-preview/DevicePools_ListBySubscription.json - */ -async function listDevicePoolsInAGivenSubscription(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.devicePools.listBySubscription()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await listDevicePoolsInAGivenSubscription(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsReleaseDevicesSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsReleaseDevicesSample.ts deleted file mode 100644 index d56b22d55383..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsReleaseDevicesSample.ts +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to releasing devices of the pool. - * - * @summary releasing devices of the pool. - * x-ms-original-file: 2026-04-01-preview/DevicePools_ReleaseDevices_MaximumSet_Gen.json - */ -async function devicePoolsReleaseDevicesMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.devicePools.releaseDevices("ArcInstance-rg", "snbyzreoirqiz", { - devices: [ - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/edgeMachines/machine-1", - ], - }); -} - -async function main(): Promise { - await devicePoolsReleaseDevicesMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsUpdateSample.ts deleted file mode 100644 index 5f90ee4eb017..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/devicePoolsUpdateSample.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to update a devicePool - * - * @summary update a devicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_Update_MaximumSet_Gen.json - */ -async function devicePoolsUpdateMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.devicePools.update("ArcInstance-rg", "devicePool1", { - tags: { key2335: "beth" }, - }); - console.log(result); -} - -async function main(): Promise { - await devicePoolsUpdateMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsCreateOrUpdateSample.ts index 48657559b89f..7f86c62cd065 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsCreateOrUpdateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsCreateOrUpdateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create a EdgeDeviceJob * * @summary create a EdgeDeviceJob - * x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_CreateOrUpdate_CollectLog.json + * x-ms-original-file: 2026-04-30/EdgeDeviceJobs_CreateOrUpdate_CollectLog.json */ async function edgeDeviceJobsCreateOrUpdateCollectLog(): Promise { const credential = new DefaultAzureCredential(); @@ -33,7 +33,7 @@ async function edgeDeviceJobsCreateOrUpdateCollectLog(): Promise { * This sample demonstrates how to create a EdgeDeviceJob * * @summary create a EdgeDeviceJob - * x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_CreateOrUpdate_RemoteSupport.json + * x-ms-original-file: 2026-04-30/EdgeDeviceJobs_CreateOrUpdate_RemoteSupport.json */ async function edgeDeviceJobsCreateOrUpdateRemoteSupport(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsDeleteSample.ts index 414e68365379..a94811a5e834 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete a EdgeDeviceJob * * @summary delete a EdgeDeviceJob - * x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_Delete.json + * x-ms-original-file: 2026-04-30/EdgeDeviceJobs_Delete.json */ async function edgeDeviceJobsDelete(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsGetSample.ts index 2b25341bb6b6..8113aa60f6e0 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get a EdgeDeviceJob * * @summary get a EdgeDeviceJob - * x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_Get_RemoteSupport.json + * x-ms-original-file: 2026-04-30/EdgeDeviceJobs_Get_RemoteSupport.json */ async function edgeDeviceJobsGetRemoteSupport(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsListByEdgeDeviceSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsListByEdgeDeviceSample.ts index 271999cd734e..643f9536fc5a 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsListByEdgeDeviceSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDeviceJobsListByEdgeDeviceSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list EdgeDeviceJob resources by EdgeDevice * * @summary list EdgeDeviceJob resources by EdgeDevice - * x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_ListByEdgeDevice.json + * x-ms-original-file: 2026-04-30/EdgeDeviceJobs_ListByEdgeDevice.json */ async function edgeDeviceJobsListByEdgeDevice(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesCreateOrUpdateSample.ts index fb599542b800..636c3e972f72 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesCreateOrUpdateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesCreateOrUpdateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create a EdgeDevice * * @summary create a EdgeDevice - * x-ms-original-file: 2026-04-01-preview/CreateHciEdgeDevice.json + * x-ms-original-file: 2026-04-30/CreateHciEdgeDevice.json */ async function createHCIEdgeDevice(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesDeleteSample.ts index df16ad5a1def..a17663ae0011 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete a EdgeDevice * * @summary delete a EdgeDevice - * x-ms-original-file: 2026-04-01-preview/DeleteEdgeDevices.json + * x-ms-original-file: 2026-04-30/DeleteEdgeDevices.json */ async function deleteEdgeDevices(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesGetSample.ts index cf2747d98acc..32340cca8cab 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get a EdgeDevice * * @summary get a EdgeDevice - * x-ms-original-file: 2026-04-01-preview/GetEdgeDevices.json + * x-ms-original-file: 2026-04-30/GetEdgeDevices.json */ async function getEdgeDevice(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesListSample.ts index 4bce8209621b..dda005ac5b30 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesListSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesListSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list EdgeDevice resources by parent * * @summary list EdgeDevice resources by parent - * x-ms-original-file: 2026-04-01-preview/ListEdgeDevices.json + * x-ms-original-file: 2026-04-30/ListEdgeDevices.json */ async function listEdgeDevices(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesValidateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesValidateSample.ts index 63dcc6800c8a..9ea370507d3c 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesValidateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesValidateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to a long-running resource action. * * @summary a long-running resource action. - * x-ms-original-file: 2026-04-01-preview/ValidateEdgeDevices.json + * x-ms-original-file: 2026-04-30/ValidateEdgeDevices.json */ async function validateEdgeDevices(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsCreateOrUpdateSample.ts deleted file mode 100644 index 4b7c4c40b9d3..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsCreateOrUpdateSample.ts +++ /dev/null @@ -1,248 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to create a EdgeMachineJob - * - * @summary create a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_CollectLog.json - */ -async function edgeMachineJobsCreateOrUpdateCollectLog(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.createOrUpdate( - "ArcInstance-rg", - "machine1", - "triggerLogCollection", - { properties: { jobType: "EdgeMachineJobProperties", deploymentMode: "Validate" } }, - ); - console.log(result); -} - -/** - * This sample demonstrates how to create a EdgeMachineJob - * - * @summary create a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_DownloadOs.json - */ -async function edgeMachineJobsCreateOrUpdateDownloadOs(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.createOrUpdate( - "ArcInstance-rg", - "machine1", - "DownloadOs", - { - properties: { - jobType: "DownloadOs", - deploymentMode: "Deploy", - downloadRequest: { - target: "AzureLinux", - osProfile: { - osName: "AzureLinux", - osType: "AzureLinux", - osVersion: "3.0", - osImageLocation: "https://aka.ms/aep/azlinux3.0", - vsrVersion: "1.0.0", - imageHash: "sha256:a8b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1", - gpgPubKey: - "LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tXG5WZXJzaW9uOiBHbnVQRyB2MlxuXG5tUUVOQkZYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYXG4tLS0tLUVORCBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0t", - }, - }, - }, - }, - ); - console.log(result); -} - -/** - * This sample demonstrates how to create a EdgeMachineJob - * - * @summary create a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_ProvisionOs.json - */ -async function edgeMachineJobsCreateOrUpdateProvisionOs(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.createOrUpdate( - "ArcInstance-rg", - "machine1", - "ProvisionOs", - { - properties: { - provisioningRequest: { - osProfile: { - osName: "AzureLinux", - osType: "AzureLinux", - osVersion: "3.0", - osImageLocation: "https://aka.ms/aep/azlinux3.0", - vsrVersion: "1.0.0", - imageHash: "sha256:a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456", - gpgPubKey: - "LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tXG5WZXJzaW9uOiBHbnVQRyB2MlxuXG5tUUVOQkZYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYXG4tLS0tLUVORCBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0t", - operationType: "Provision", - }, - userDetails: [ - { - userName: "edgeuser", - secretType: "KeyVault", - secretLocation: - "https://bhukumar-test-kv.vault.azure.net/secrets/edgeuser/7b2d7db11bad4e1599cb6a0f4d2b2e00", - sshPubKey: ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7... edgeuser@example.com"], - }, - ], - onboardingConfiguration: { - resourceId: - "/subscriptions/ff0aa6da-20f8-44fe-9aee-381c8e8a4aeb/resourceGroups/bhukumar-test-rg/providers/Microsoft.HybridCompute/machines/bkumar-t1", - location: "eastus", - tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47", - arcVirtualMachineId: "634b9db8-83e1-46ed-b391-c1614e2d0097", - type: "HybridComputeMachine", - }, - deviceConfiguration: { - network: { - networkAdapters: [ - { - ipAssignmentType: "Automatic", - ipAddress: "", - ipAddressRange: { startIp: "", endIp: "" }, - gateway: "", - subnetMask: "", - dnsAddressArray: ["8.8.8.8"], - vlanId: "0", - }, - ], - }, - hostName: "634b9db8-83e1-46ed-b391-c1614e2d0097", - webProxy: { connectionUri: "https://microsoft.com/a", port: "", bypassList: [] }, - time: { primaryTimeServer: "", secondaryTimeServer: "", timeZone: "UTC" }, - storage: { partitionSize: "30GB" }, - }, - target: "AzureLinux", - customConfiguration: - "eyJjdXN0b21Db25maWciOiAiZXhhbXBsZSBiYXNlNjQgZW5jb2RlZCBjb25maWcifQ==", - }, - jobType: "ProvisionOs", - deploymentMode: "Deploy", - }, - }, - ); - console.log(result); -} - -/** - * This sample demonstrates how to create a EdgeMachineJob - * - * @summary create a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_RemoteSupport.json - */ -async function edgeMachineJobsCreateOrUpdateRemoteSupport(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.createOrUpdate( - "ArcInstance-rg", - "machine1", - "RemoteSupport", - { - properties: { - jobType: "RemoteSupport", - accessLevel: "Diagnostics", - type: "Enable", - expirationTimestamp: new Date("2024-01-29T10:43:27.9471574Z"), - }, - }, - ); - console.log(result); -} - -/** - * This sample demonstrates how to create a EdgeMachineJob - * - * @summary create a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_UpdateOs.json - */ -async function edgeMachineJobsCreateOrUpdateUpdateOs(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.createOrUpdate( - "ArcInstance-rg", - "machine1", - "UpdateOs", - { - properties: { - provisioningRequest: { - osProfile: { - osName: "AzureLinux", - osType: "AzureLinux", - osVersion: "3.1", - osImageLocation: "https://aka.ms/aep/azlinux3.1", - vsrVersion: "1.1.0", - imageHash: "sha256:b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef12345678", - gpgPubKey: - "LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tXG5WZXJzaW9uOiBHbnVQRyB2MlxuXG5tUUVOQkZYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYXG4tLS0tLUVORCBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0t", - operationType: "Update", - }, - userDetails: [ - { - userName: "edgeuser", - secretType: "KeyVault", - secretLocation: - "https://bhukumar-test-kv.vault.azure.net/secrets/edgeuser/7b2d7db11bad4e1599cb6a0f4d2b2e00", - sshPubKey: ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7... edgeuser@example.com"], - }, - ], - onboardingConfiguration: { - resourceId: - "/subscriptions/ff0aa6da-20f8-44fe-9aee-381c8e8a4aeb/resourceGroups/bhukumar-test-rg/providers/Microsoft.HybridCompute/machines/bkumar-t1", - location: "eastus", - tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47", - arcVirtualMachineId: "634b9db8-83e1-46ed-b391-c1614e2d0097", - type: "HybridComputeMachine", - }, - deviceConfiguration: { - network: { - networkAdapters: [ - { - ipAssignmentType: "Automatic", - ipAddress: "", - ipAddressRange: { startIp: "", endIp: "" }, - gateway: "", - subnetMask: "", - dnsAddressArray: ["8.8.8.8"], - vlanId: "0", - }, - ], - }, - hostName: "634b9db8-83e1-46ed-b391-c1614e2d0097", - webProxy: { connectionUri: "https://microsoft.com/a", port: "", bypassList: [] }, - time: { primaryTimeServer: "", secondaryTimeServer: "", timeZone: "UTC" }, - }, - target: "AzureLinux", - customConfiguration: - "eyJjdXN0b21Db25maWciOiAiZXhhbXBsZSBiYXNlNjQgZW5jb2RlZCBjb25maWcifQ==", - }, - jobType: "ProvisionOs", - deploymentMode: "Deploy", - }, - }, - ); - console.log(result); -} - -async function main(): Promise { - await edgeMachineJobsCreateOrUpdateCollectLog(); - await edgeMachineJobsCreateOrUpdateDownloadOs(); - await edgeMachineJobsCreateOrUpdateProvisionOs(); - await edgeMachineJobsCreateOrUpdateRemoteSupport(); - await edgeMachineJobsCreateOrUpdateUpdateOs(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsDeleteSample.ts deleted file mode 100644 index 7303effe19a2..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsDeleteSample.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to delete a EdgeMachineJob - * - * @summary delete a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Delete_MaximumSet_Gen.json - */ -async function edgeMachineJobsDeleteMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.edgeMachineJobs.delete("ArcInstance-rg", "machine1", "triggerLogCollection"); -} - -async function main(): Promise { - await edgeMachineJobsDeleteMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsGetSample.ts deleted file mode 100644 index fc08479ac9b1..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsGetSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a EdgeMachineJob - * - * @summary get a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Get_CollectLog.json - */ -async function edgeMachineJobsGetCollectLog(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.get("ArcInstance-rg", "machine1", "collectLog"); - console.log(result); -} - -/** - * This sample demonstrates how to get a EdgeMachineJob - * - * @summary get a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Get_ProvisionOs.json - */ -async function edgeMachineJobsGetProvisionOs(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.get("ArcInstance-rg", "machine1", "ProvisionOs"); - console.log(result); -} - -/** - * This sample demonstrates how to get a EdgeMachineJob - * - * @summary get a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Get_RemoteSupport.json - */ -async function edgeMachineJobsGetRemoteSupport(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.get("ArcInstance-rg", "machine1", "RemoteSupport"); - console.log(result); -} - -async function main(): Promise { - await edgeMachineJobsGetCollectLog(); - await edgeMachineJobsGetProvisionOs(); - await edgeMachineJobsGetRemoteSupport(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsListSample.ts deleted file mode 100644 index cca83abba1e1..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachineJobsListSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list EdgeMachineJob resources by EdgeMachines - * - * @summary list EdgeMachineJob resources by EdgeMachines - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_List_MaximumSet_Gen.json - */ -async function edgeMachineJobsListMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.edgeMachineJobs.list("ArcInstance-rg", "machine1")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await edgeMachineJobsListMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesCreateOrUpdateSample.ts deleted file mode 100644 index 6f9146da00b2..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesCreateOrUpdateSample.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to create or update an edge machine. - * - * @summary create or update an edge machine. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_CreateOrUpdate.json - */ -async function edgeMachinesCreateOrUpdate(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachines.createOrUpdate("ArcInstance-rg", "machine-1", { - properties: { - arcMachineResourceGroupId: - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg", - arcMachineResourceId: - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", - }, - location: "eastus", - }); - console.log(result); -} - -async function main(): Promise { - await edgeMachinesCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesDeleteSample.ts deleted file mode 100644 index 27c85256d357..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesDeleteSample.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to delete an edge machine. - * - * @summary delete an edge machine. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_Delete.json - */ -async function edgeMachinesDeleteMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.edgeMachines.delete("ArcInstance-rg", "machine-1"); -} - -async function main(): Promise { - await edgeMachinesDeleteMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesGetSample.ts deleted file mode 100644 index ecc26c05ffda..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get an edge machine. - * - * @summary get an edge machine. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_Get.json - */ -async function edgeMachinesGetMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachines.get("ArcInstance-rg", "machine-1"); - console.log(result); -} - -async function main(): Promise { - await edgeMachinesGetMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesListByResourceGroupSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesListByResourceGroupSample.ts deleted file mode 100644 index 89113cc7fe3f..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesListByResourceGroupSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all edge machines in a resource group. - * - * @summary list all edge machines in a resource group. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_ListByResourceGroup.json - */ -async function listEdgeMachinesInAGivenResourceGroup(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.edgeMachines.listByResourceGroup("ArcInstance-rg")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await listEdgeMachinesInAGivenResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesListBySubscriptionSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesListBySubscriptionSample.ts deleted file mode 100644 index 96bf54cc5a7a..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesListBySubscriptionSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all edge machines in a subscription. - * - * @summary list all edge machines in a subscription. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_ListBySubscription.json - */ -async function listEdgeMachinesInAGivenSubscription(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.edgeMachines.listBySubscription()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await listEdgeMachinesInAGivenSubscription(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesUpdateSample.ts deleted file mode 100644 index fd21db6aa8f2..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeMachinesUpdateSample.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to update an edge machine. - * - * @summary update an edge machine. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_Update.json - */ -async function edgeMachinesUpdate(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachines.update("ArcInstance-rg", "machine-1", { - tags: { key2335: "beth" }, - }); - console.log(result); -} - -async function main(): Promise { - await edgeMachinesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsCreateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsCreateSample.ts index e09aaa0aa11b..3d2b210e7a11 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsCreateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsCreateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create Extension for HCI cluster. * * @summary create Extension for HCI cluster. - * x-ms-original-file: 2026-04-01-preview/PutExtension.json + * x-ms-original-file: 2026-04-30/PutExtension.json */ async function createArcExtension(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsDeleteSample.ts index 4177b7bc3890..4d6abb142fe1 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete particular Arc Extension of HCI Cluster. * * @summary delete particular Arc Extension of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/DeleteExtension.json + * x-ms-original-file: 2026-04-30/DeleteExtension.json */ async function deleteArcExtension(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsGetSample.ts index d132744a4858..496687dcd20d 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get particular Arc Extension of HCI Cluster. * * @summary get particular Arc Extension of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/GetExtension.json + * x-ms-original-file: 2026-04-30/GetExtension.json */ async function getArcSettingsExtension(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsListByArcSettingSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsListByArcSettingSample.ts index 2cfbed263963..8e6358636242 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsListByArcSettingSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsListByArcSettingSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list all Extensions under ArcSetting resource. * * @summary list all Extensions under ArcSetting resource. - * x-ms-original-file: 2026-04-01-preview/ListExtensionsByArcSetting.json + * x-ms-original-file: 2026-04-30/ListExtensionsByArcSetting.json */ async function listExtensionsUnderArcSettingResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpdateSample.ts index f8c22d923c6e..47365ddd92d0 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpdateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpdateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to update Extension for HCI cluster. * * @summary update Extension for HCI cluster. - * x-ms-original-file: 2026-04-01-preview/PatchExtension.json + * x-ms-original-file: 2026-04-30/PatchExtension.json */ async function updateArcExtension(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpgradeSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpgradeSample.ts index b7fc61fab131..2c1b32e2ced3 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpgradeSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpgradeSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to upgrade a particular Arc Extension of HCI Cluster. * * @summary upgrade a particular Arc Extension of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/Extensions_Upgrade.json + * x-ms-original-file: 2026-04-30/Extensions_Upgrade.json */ async function upgradeMachineExtensions(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/kubernetesVersionsListBySubscriptionLocationResourceSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/kubernetesVersionsListBySubscriptionLocationResourceSample.ts deleted file mode 100644 index cd41f0bc7f5f..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/kubernetesVersionsListBySubscriptionLocationResourceSample.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all kubernetes versions. - * - * @summary list all kubernetes versions. - * x-ms-original-file: 2026-04-01-preview/KubernetesVersions_ListBySubscriptionLocationResource_MaximumSet_Gen.json - */ -async function kubernetesVersionsListBySubscriptionLocationResourceMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "ABB13722-6A68-4BFC-AE89-57B2EE91EA11"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.kubernetesVersions.listBySubscriptionLocationResource( - "westus2", - )) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await kubernetesVersionsListBySubscriptionLocationResourceMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersGetSample.ts index 746d9c869f56..34d3c25c046b 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get Offer resource details within a publisher of HCI Cluster. * * @summary get Offer resource details within a publisher of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/GetOffer.json + * x-ms-original-file: 2026-04-30/GetOffer.json */ async function getOffer(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByClusterSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByClusterSample.ts index 3d7c29a243d8..5cff5a903a6b 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByClusterSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByClusterSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list Offers available across publishers for the HCI Cluster. * * @summary list Offers available across publishers for the HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/ListOffersByCluster.json + * x-ms-original-file: 2026-04-30/ListOffersByCluster.json */ async function listOfferResourcesByHCICluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByPublisherSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByPublisherSample.ts index ed3dafc360f5..d55bbfa71bb5 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByPublisherSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByPublisherSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list Offers available for a publisher within the HCI Cluster. * * @summary list Offers available for a publisher within the HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/ListOffersByPublisher.json + * x-ms-original-file: 2026-04-30/ListOffersByPublisher.json */ async function listOfferResourcesByPublisherForTheHCICluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/operationsListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/operationsListSample.ts index 18d36c8464c0..e9d7baaab88c 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/operationsListSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/operationsListSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list the operations for the provider * * @summary list the operations for the provider - * x-ms-original-file: 2026-04-01-preview/Operations_List.json + * x-ms-original-file: 2026-04-30/Operations_List.json */ async function listTheOperationsForTheProvider(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/osImagesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/osImagesGetSample.ts deleted file mode 100644 index 508eb1ff7143..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/osImagesGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a os image. - * - * @summary get a os image. - * x-ms-original-file: 2026-04-01-preview/OsImages_Get_MaximumSet_Gen.json - */ -async function osImagesGetMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "5233F7FA-C5BA-41FD-A07F-C65BA2084316"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.osImages.get("arowdcr", "10.2408.0.1"); - console.log(result); -} - -async function main(): Promise { - await osImagesGetMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/osImagesListBySubscriptionLocationResourceSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/osImagesListBySubscriptionLocationResourceSample.ts deleted file mode 100644 index e0fbf9dd9c0c..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/osImagesListBySubscriptionLocationResourceSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all os images. - * - * @summary list all os images. - * x-ms-original-file: 2026-04-01-preview/OsImages_ListBySubscriptionLocationResource_MaximumSet_Gen.json - */ -async function osImagesListBySubscriptionLocationResourceMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "b8d594e5-51f3-4c11-9c54-a7771b81c712"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.osImages.listBySubscriptionLocationResource("westus2")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await osImagesListBySubscriptionLocationResourceMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/ownershipVouchersValidateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/ownershipVouchersValidateSample.ts deleted file mode 100644 index a2bd9e5a1d6a..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/ownershipVouchersValidateSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to validates ownership vouchers. - * - * @summary validates ownership vouchers. - * x-ms-original-file: 2026-04-01-preview/ValidateOwnershipVouchers_ByResourceGroup.json - */ -async function validateOwnershipVouchersInAGivenResourceGroup(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.ownershipVouchers.validate("ArcInstance-rg", "westus", { - ownershipVoucherDetails: [ - { ownershipVoucher: "Device Model Ownership content", ownerKeyType: "MicrosoftManaged" }, - ], - }); - console.log(result); -} - -async function main(): Promise { - await validateOwnershipVouchersInAGivenResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/platformUpdatesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/platformUpdatesGetSample.ts deleted file mode 100644 index c7cdf8e83ad3..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/platformUpdatesGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a platform update. - * - * @summary get a platform update. - * x-ms-original-file: 2026-04-01-preview/PlatformUpdates_Get_MaximumSet_Gen.json - */ -async function platformUpdatesGetMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "b8d594e5-51f3-4c11-9c54-a7771b81c712"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.platformUpdates.get("westus2", "10.2408.0.1"); - console.log(result); -} - -async function main(): Promise { - await platformUpdatesGetMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/platformUpdatesListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/platformUpdatesListSample.ts deleted file mode 100644 index 3f3f45395134..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/platformUpdatesListSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all platform updates. - * - * @summary list all platform updates. - * x-ms-original-file: 2026-04-01-preview/PlatformUpdates_ListByLocation_MaximumSet_Gen.json - */ -async function platformUpdatesListByLocationMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "b8d594e5-51f3-4c11-9c54-a7771b81c712"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.platformUpdates.list("westus2")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await platformUpdatesListByLocationMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersGetSample.ts deleted file mode 100644 index f814ab11490f..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get Publisher resource details of HCI Cluster. - * - * @summary get Publisher resource details of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/GetPublisher.json - */ -async function getPublisher(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.publishers.get("test-rg", "myCluster", "publisher1"); - console.log(result); -} - -async function main(): Promise { - await getPublisher(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersListByClusterSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersListByClusterSample.ts deleted file mode 100644 index 045a6d794aff..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersListByClusterSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list Publishers available for the HCI Cluster. - * - * @summary list Publishers available for the HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/ListPublishersByCluster.json - */ -async function listPublisherResourcesByHCICluster(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.publishers.listByCluster("test-rg", "myCluster")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await listPublisherResourcesByHCICluster(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsCreateOrUpdateSample.ts index 15e305a4d71e..5924fde91751 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsCreateOrUpdateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsCreateOrUpdateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create a security setting * * @summary create a security setting - * x-ms-original-file: 2026-04-01-preview/PutSecuritySettings.json + * x-ms-original-file: 2026-04-30/PutSecuritySettings.json */ async function createSecuritySettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsDeleteSample.ts index 2557d56c459c..5d5b815b3842 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete a SecuritySetting * * @summary delete a SecuritySetting - * x-ms-original-file: 2026-04-01-preview/DeleteSecuritySettings.json + * x-ms-original-file: 2026-04-30/DeleteSecuritySettings.json */ async function deleteSecuritySettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsGetSample.ts index cc42d1d4cf99..8b5a82f990c0 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get a SecuritySetting * * @summary get a SecuritySetting - * x-ms-original-file: 2026-04-01-preview/GetSecuritySettings.json + * x-ms-original-file: 2026-04-30/GetSecuritySettings.json */ async function getSecuritySettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsListByClustersSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsListByClustersSample.ts index 53c63e8e3ebb..3a0a05708549 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsListByClustersSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsListByClustersSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list SecuritySetting resources by Clusters * * @summary list SecuritySetting resources by Clusters - * x-ms-original-file: 2026-04-01-preview/ListSecuritySettingsByCluster.json + * x-ms-original-file: 2026-04-30/ListSecuritySettingsByCluster.json */ async function listSecuritySettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusGetSample.ts index 2cb9299015f0..2a7b78eae5cf 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get SKU resource details within a offer of HCI Cluster. * * @summary get SKU resource details within a offer of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/GetSku.json + * x-ms-original-file: 2026-04-30/GetSku.json */ async function getSku(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusListByOfferSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusListByOfferSample.ts index ba8020ab7cda..8d8beaa5c017 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusListByOfferSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusListByOfferSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list Skus available for a offer within the HCI Cluster. * * @summary list Skus available for a offer within the HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/ListSkusByOffer.json + * x-ms-original-file: 2026-04-30/ListSkusByOffer.json */ async function listSKUResourcesByOfferForTheHCICluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateContentsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateContentsGetSample.ts deleted file mode 100644 index 4d7a712ca78b..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateContentsGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to gets content for an update. - * - * @summary gets content for an update. - * x-ms-original-file: 2026-04-01-preview/UpdateContents_Get_MaximumSet_Gen.json - */ -async function updateContentsGetMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "2886575D-173A-44A0-80E2-7DBA57F18B46"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.updateContents.get("westus2", "12.2510.0.1"); - console.log(result); -} - -async function main(): Promise { - await updateContentsGetMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateContentsListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateContentsListSample.ts deleted file mode 100644 index 032f70c23d15..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateContentsListSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all update contents. - * - * @summary list all update contents. - * x-ms-original-file: 2026-04-01-preview/UpdateContents_ListByLocation_MaximumSet_Gen.json - */ -async function updateContentsListByLocationMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "2886575D-173A-44A0-80E2-7DBA57F18B46"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.updateContents.list("westus2")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await updateContentsListByLocationMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsDeleteSample.ts index 374c3a9df1ea..8a0aa0d5099f 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete specified Update Run * * @summary delete specified Update Run - * x-ms-original-file: 2026-04-01-preview/DeleteUpdateRuns.json + * x-ms-original-file: 2026-04-30/DeleteUpdateRuns.json */ async function deleteAnUpdate(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsGetSample.ts index dcbc461a2fc1..846ab1729e64 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get the Update run for a specified update * * @summary get the Update run for a specified update - * x-ms-original-file: 2026-04-01-preview/GetUpdateRuns.json + * x-ms-original-file: 2026-04-30/GetUpdateRuns.json */ async function getUpdateRunsUnderClusterResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsListSample.ts index d21d1d978541..751906ef383e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsListSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsListSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list all Update runs for a specified update * * @summary list all Update runs for a specified update - * x-ms-original-file: 2026-04-01-preview/ListUpdateRuns.json + * x-ms-original-file: 2026-04-30/ListUpdateRuns.json */ async function listUpdateRunsUnderClusterResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsPutSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsPutSample.ts index d710d7912f94..d22ae9009386 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsPutSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsPutSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to put Update runs for a specified update * * @summary put Update runs for a specified update - * x-ms-original-file: 2026-04-01-preview/PutUpdateRuns.json + * x-ms-original-file: 2026-04-30/PutUpdateRuns.json */ async function getUpdateRunsUnderClusterResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesDeleteSample.ts index 3da179bdfe9f..842d5c5a12f3 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete Update Summaries * * @summary delete Update Summaries - * x-ms-original-file: 2026-04-01-preview/DeleteUpdateSummaries.json + * x-ms-original-file: 2026-04-30/DeleteUpdateSummaries.json */ async function deleteAnUpdate(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesGetSample.ts index cabca8af780f..96cc784fae2c 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get all Update summaries under the HCI cluster * * @summary get all Update summaries under the HCI cluster - * x-ms-original-file: 2026-04-01-preview/GetUpdateSummaries.json + * x-ms-original-file: 2026-04-30/GetUpdateSummaries.json */ async function getUpdateSummariesUnderClusterResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesListSample.ts index 9c3f05b5c457..a77b4b5e7def 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesListSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesListSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list all Update summaries under the HCI cluster * * @summary list all Update summaries under the HCI cluster - * x-ms-original-file: 2026-04-01-preview/ListUpdateSummaries.json + * x-ms-original-file: 2026-04-30/ListUpdateSummaries.json */ async function getUpdateSummariesUnderClusterResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesOperationGroupCheckHealthSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesOperationGroupCheckHealthSample.ts index 8e8c9b51e23d..23db4d02201b 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesOperationGroupCheckHealthSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesOperationGroupCheckHealthSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to check health of UpdateSummaries * * @summary check health of UpdateSummaries - * x-ms-original-file: 2026-04-01-preview/UpdateSummaries_CheckHealth.json + * x-ms-original-file: 2026-04-30/UpdateSummaries_CheckHealth.json */ async function checkHealthOfUpdateSummaries(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesOperationGroupCheckUpdatesSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesOperationGroupCheckUpdatesSample.ts index 030b2c7d326f..b8c291cc0e77 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesOperationGroupCheckUpdatesSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesOperationGroupCheckUpdatesSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to check for updates * * @summary check for updates - * x-ms-original-file: 2026-04-01-preview/UpdateSummaries_CheckUpdates.json + * x-ms-original-file: 2026-04-30/UpdateSummaries_CheckUpdates.json */ async function checkForUpdates(): Promise { const credential = new DefaultAzureCredential(); @@ -21,7 +21,7 @@ async function checkForUpdates(): Promise { * This sample demonstrates how to check for updates * * @summary check for updates - * x-ms-original-file: 2026-04-01-preview/UpdateSummaries_CheckUpdates_MaximumSet.json + * x-ms-original-file: 2026-04-30/UpdateSummaries_CheckUpdates_MaximumSet.json */ async function checkForSpecificUpdateByName(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesPutSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesPutSample.ts index 2ea9fc73534a..466cb2e929cf 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesPutSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesPutSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to put Update summaries under the HCI cluster * * @summary put Update summaries under the HCI cluster - * x-ms-original-file: 2026-04-01-preview/PutUpdateSummaries.json + * x-ms-original-file: 2026-04-30/PutUpdateSummaries.json */ async function putUpdateSummariesUnderClusterResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesDeleteSample.ts index a2a78792583f..68dca85a1b25 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete specified Update * * @summary delete specified Update - * x-ms-original-file: 2026-04-01-preview/DeleteUpdates.json + * x-ms-original-file: 2026-04-30/DeleteUpdates.json */ async function deleteAnUpdate(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesGetSample.ts index aa5b548b01f1..dc45cd36ea5e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get specified Update * * @summary get specified Update - * x-ms-original-file: 2026-04-01-preview/GetUpdates.json + * x-ms-original-file: 2026-04-30/GetUpdates.json */ async function getASpecificUpdate(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesListSample.ts index fce90f221f50..49754413d4e0 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesListSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesListSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list all Updates * * @summary list all Updates - * x-ms-original-file: 2026-04-01-preview/ListUpdates.json + * x-ms-original-file: 2026-04-30/ListUpdates.json */ async function listAvailableUpdates(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPostSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPostSample.ts index 08c6797ae8f9..2f53ab7e68d0 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPostSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPostSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to apply Update * * @summary apply Update - * x-ms-original-file: 2026-04-01-preview/PostUpdates.json + * x-ms-original-file: 2026-04-30/PostUpdates.json */ async function listAvailableUpdates(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPrepareSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPrepareSample.ts index 7e08d8e0d951..814ad7fd5609 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPrepareSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPrepareSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to prepare Update * * @summary prepare Update - * x-ms-original-file: 2026-04-01-preview/Updates_Prepare.json + * x-ms-original-file: 2026-04-30/Updates_Prepare.json */ async function prepareUpdate(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPutSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPutSample.ts index 08b6417192e9..13598dafa3da 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPutSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPutSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to put specified Update * * @summary put specified Update - * x-ms-original-file: 2026-04-01-preview/PutUpdates.json + * x-ms-original-file: 2026-04-30/PutUpdates.json */ async function putASpecificUpdate(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/validatedSolutionRecipesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/validatedSolutionRecipesGetSample.ts index d2d5d49eb407..f60cf0f2fd02 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/validatedSolutionRecipesGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/validatedSolutionRecipesGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get a validated solution recipe. * * @summary get a validated solution recipe. - * x-ms-original-file: 2026-04-01-preview/ValidatedSolutionRecipes_Get.json + * x-ms-original-file: 2026-04-30/ValidatedSolutionRecipes_Get.json */ async function validatedSolutionRecipesGet(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/validatedSolutionRecipesListBySubscriptionLocationResourceSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/validatedSolutionRecipesListBySubscriptionLocationResourceSample.ts index b1608f7d326c..cee3fc5927f5 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/validatedSolutionRecipesListBySubscriptionLocationResourceSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/validatedSolutionRecipesListBySubscriptionLocationResourceSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list all validated solution recipes. * * @summary list all validated solution recipes. - * x-ms-original-file: 2026-04-01-preview/ValidatedSolutionRecipes_ListBySubscriptionLocationResource.json + * x-ms-original-file: 2026-04-30/ValidatedSolutionRecipes_ListBySubscriptionLocationResource.json */ async function validatedSolutionRecipesListBySubscriptionLocationResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/README.md b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/README.md deleted file mode 100644 index 733311d29659..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/README.md +++ /dev/null @@ -1,252 +0,0 @@ -# @azure/arm-azurestackhci client library samples for JavaScript (Beta) - -These sample programs show how to use the JavaScript client libraries for @azure/arm-azurestackhci in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [arcSettingsConsentAndInstallDefaultExtensionsSample.js][arcsettingsconsentandinstalldefaultextensionssample] | add consent time for default extensions and initiate extensions installation x-ms-original-file: 2026-04-01-preview/ConsentAndInstallDefaultExtensions.json | -| [arcSettingsCreateIdentitySample.js][arcsettingscreateidentitysample] | create Aad identity for arc settings. x-ms-original-file: 2026-04-01-preview/CreateArcIdentity.json | -| [arcSettingsCreateSample.js][arcsettingscreatesample] | create ArcSetting for HCI cluster. x-ms-original-file: 2026-04-01-preview/PutArcSetting.json | -| [arcSettingsDeleteSample.js][arcsettingsdeletesample] | delete ArcSetting resource details of HCI Cluster. x-ms-original-file: 2026-04-01-preview/DeleteArcSetting.json | -| [arcSettingsGeneratePasswordSample.js][arcsettingsgeneratepasswordsample] | generate password for arc settings. x-ms-original-file: 2026-04-01-preview/GeneratePassword.json | -| [arcSettingsGetSample.js][arcsettingsgetsample] | get ArcSetting resource details of HCI Cluster. x-ms-original-file: 2026-04-01-preview/GetArcSetting.json | -| [arcSettingsInitializeDisableProcessSample.js][arcsettingsinitializedisableprocesssample] | initializes ARC Disable process on the cluster x-ms-original-file: 2026-04-01-preview/InitializeDisableProcess.json | -| [arcSettingsListByClusterSample.js][arcsettingslistbyclustersample] | get ArcSetting resources of HCI Cluster. x-ms-original-file: 2026-04-01-preview/ListArcSettingsByCluster.json | -| [arcSettingsReconcileSample.js][arcsettingsreconcilesample] | reconcile Arc Settings with information related to all nodes. x-ms-original-file: 2026-04-01-preview/reconcileArcSettings.json | -| [arcSettingsUpdateSample.js][arcsettingsupdatesample] | update ArcSettings for HCI cluster. x-ms-original-file: 2026-04-01-preview/PatchArcSetting.json | -| [clusterJobsCreateOrUpdateSample.js][clusterjobscreateorupdatesample] | create a ClusterJob x-ms-original-file: 2026-04-01-preview/ClusterJobs_CreateOrUpdate_ConfigureCVM.json | -| [clusterJobsDeleteSample.js][clusterjobsdeletesample] | delete a ClusterJob x-ms-original-file: 2026-04-01-preview/ClusterJobs_Delete.json | -| [clusterJobsGetSample.js][clusterjobsgetsample] | get a ClusterJob x-ms-original-file: 2026-04-01-preview/ClusterJobs_Get_ConfigureSdnIntegrationJob.json | -| [clusterJobsListSample.js][clusterjobslistsample] | list ClusterJob resources by Clusters x-ms-original-file: 2026-04-01-preview/ClusterJobs_List.json | -| [clustersChangeRingSample.js][clusterschangeringsample] | changes ring of a cluster x-ms-original-file: 2026-04-01-preview/ChangeClusterRing.json | -| [clustersConfigureRemoteSupportSample.js][clustersconfigureremotesupportsample] | configure RemoteSupport on a cluster x-ms-original-file: 2026-04-01-preview/ConfigureRemoteSupport.json | -| [clustersCreateIdentitySample.js][clusterscreateidentitysample] | create cluster identity. x-ms-original-file: 2026-04-01-preview/CreateClusterIdentity.json | -| [clustersCreateSample.js][clusterscreatesample] | create an HCI cluster. x-ms-original-file: 2026-04-01-preview/CreateCluster.json | -| [clustersDeleteSample.js][clustersdeletesample] | delete an HCI cluster. x-ms-original-file: 2026-04-01-preview/DeleteCluster.json | -| [clustersExtendSoftwareAssuranceBenefitSample.js][clustersextendsoftwareassurancebenefitsample] | extends Software Assurance Benefit to a cluster x-ms-original-file: 2026-04-01-preview/ExtendSoftwareAssuranceBenefit.json | -| [clustersGetSample.js][clustersgetsample] | get HCI cluster. x-ms-original-file: 2026-04-01-preview/GetCluster.json | -| [clustersListByResourceGroupSample.js][clusterslistbyresourcegroupsample] | list all HCI clusters in a resource group. x-ms-original-file: 2026-04-01-preview/ListClustersByResourceGroup.json | -| [clustersListBySubscriptionSample.js][clusterslistbysubscriptionsample] | list all HCI clusters in a subscription. x-ms-original-file: 2026-04-01-preview/ListClustersBySubscription.json | -| [clustersTriggerLogCollectionSample.js][clusterstriggerlogcollectionsample] | trigger Log Collection on a cluster x-ms-original-file: 2026-04-01-preview/TriggerLogCollection.json | -| [clustersUpdateSample.js][clustersupdatesample] | update an HCI cluster. x-ms-original-file: 2026-04-01-preview/UpdateCluster.json | -| [clustersUpdateSecretsLocationsSample.js][clustersupdatesecretslocationssample] | update cluster secrets locations. x-ms-original-file: 2026-04-01-preview/Clusters_UpdateSecretsLocations.json | -| [clustersUploadCertificateSample.js][clustersuploadcertificatesample] | upload certificate. x-ms-original-file: 2026-04-01-preview/UploadCertificate.json | -| [deploymentSettingsCreateOrUpdateSample.js][deploymentsettingscreateorupdatesample] | create a DeploymentSetting x-ms-original-file: 2026-04-01-preview/PutDeploymentSettings.json | -| [deploymentSettingsDeleteSample.js][deploymentsettingsdeletesample] | delete a DeploymentSetting x-ms-original-file: 2026-04-01-preview/DeleteDeploymentSettings.json | -| [deploymentSettingsGetSample.js][deploymentsettingsgetsample] | get a DeploymentSetting x-ms-original-file: 2026-04-01-preview/GetDeploymentSettings.json | -| [deploymentSettingsListByClustersSample.js][deploymentsettingslistbyclusterssample] | list DeploymentSetting resources by Clusters x-ms-original-file: 2026-04-01-preview/ListDeploymentSettingsByCluster.json | -| [devicePoolsClaimDevicesSample.js][devicepoolsclaimdevicessample] | claiming devices of the pool. x-ms-original-file: 2026-04-01-preview/DevicePools_ClaimDevices_MaximumSet_Gen.json | -| [devicePoolsCreateOrUpdateSample.js][devicepoolscreateorupdatesample] | create a DevicePool x-ms-original-file: 2026-04-01-preview/DevicePools_CreateOrUpdate.json | -| [devicePoolsDeleteSample.js][devicepoolsdeletesample] | delete a DevicePool x-ms-original-file: 2026-04-01-preview/DevicePools_Delete_MaximumSet_Gen.json | -| [devicePoolsGetSample.js][devicepoolsgetsample] | get a DevicePool x-ms-original-file: 2026-04-01-preview/DevicePools_Get_MaximumSet_Gen.json | -| [devicePoolsListByResourceGroupSample.js][devicepoolslistbyresourcegroupsample] | list all device pools in a resource group. x-ms-original-file: 2026-04-01-preview/DevicePools_ListByResourceGroup.json | -| [devicePoolsListBySubscriptionSample.js][devicepoolslistbysubscriptionsample] | list all device pools in a subscription. x-ms-original-file: 2026-04-01-preview/DevicePools_ListBySubscription.json | -| [devicePoolsReleaseDevicesSample.js][devicepoolsreleasedevicessample] | releasing devices of the pool. x-ms-original-file: 2026-04-01-preview/DevicePools_ReleaseDevices_MaximumSet_Gen.json | -| [devicePoolsUpdateSample.js][devicepoolsupdatesample] | update a devicePool x-ms-original-file: 2026-04-01-preview/DevicePools_Update_MaximumSet_Gen.json | -| [edgeDeviceJobsCreateOrUpdateSample.js][edgedevicejobscreateorupdatesample] | create a EdgeDeviceJob x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_CreateOrUpdate_CollectLog.json | -| [edgeDeviceJobsDeleteSample.js][edgedevicejobsdeletesample] | delete a EdgeDeviceJob x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_Delete.json | -| [edgeDeviceJobsGetSample.js][edgedevicejobsgetsample] | get a EdgeDeviceJob x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_Get_RemoteSupport.json | -| [edgeDeviceJobsListByEdgeDeviceSample.js][edgedevicejobslistbyedgedevicesample] | list EdgeDeviceJob resources by EdgeDevice x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_ListByEdgeDevice.json | -| [edgeDevicesCreateOrUpdateSample.js][edgedevicescreateorupdatesample] | create a EdgeDevice x-ms-original-file: 2026-04-01-preview/CreateHciEdgeDevice.json | -| [edgeDevicesDeleteSample.js][edgedevicesdeletesample] | delete a EdgeDevice x-ms-original-file: 2026-04-01-preview/DeleteEdgeDevices.json | -| [edgeDevicesGetSample.js][edgedevicesgetsample] | get a EdgeDevice x-ms-original-file: 2026-04-01-preview/GetEdgeDevices.json | -| [edgeDevicesListSample.js][edgedeviceslistsample] | list EdgeDevice resources by parent x-ms-original-file: 2026-04-01-preview/ListEdgeDevices.json | -| [edgeDevicesValidateSample.js][edgedevicesvalidatesample] | a long-running resource action. x-ms-original-file: 2026-04-01-preview/ValidateEdgeDevices.json | -| [edgeMachineJobsCreateOrUpdateSample.js][edgemachinejobscreateorupdatesample] | create a EdgeMachineJob x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_CollectLog.json | -| [edgeMachineJobsDeleteSample.js][edgemachinejobsdeletesample] | delete a EdgeMachineJob x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Delete_MaximumSet_Gen.json | -| [edgeMachineJobsGetSample.js][edgemachinejobsgetsample] | get a EdgeMachineJob x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Get_CollectLog.json | -| [edgeMachineJobsListSample.js][edgemachinejobslistsample] | list EdgeMachineJob resources by EdgeMachines x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_List_MaximumSet_Gen.json | -| [edgeMachinesCreateOrUpdateSample.js][edgemachinescreateorupdatesample] | create or update an edge machine. x-ms-original-file: 2026-04-01-preview/EdgeMachines_CreateOrUpdate.json | -| [edgeMachinesDeleteSample.js][edgemachinesdeletesample] | delete an edge machine. x-ms-original-file: 2026-04-01-preview/EdgeMachines_Delete.json | -| [edgeMachinesGetSample.js][edgemachinesgetsample] | get an edge machine. x-ms-original-file: 2026-04-01-preview/EdgeMachines_Get.json | -| [edgeMachinesListByResourceGroupSample.js][edgemachineslistbyresourcegroupsample] | list all edge machines in a resource group. x-ms-original-file: 2026-04-01-preview/EdgeMachines_ListByResourceGroup.json | -| [edgeMachinesListBySubscriptionSample.js][edgemachineslistbysubscriptionsample] | list all edge machines in a subscription. x-ms-original-file: 2026-04-01-preview/EdgeMachines_ListBySubscription.json | -| [edgeMachinesUpdateSample.js][edgemachinesupdatesample] | update an edge machine. x-ms-original-file: 2026-04-01-preview/EdgeMachines_Update.json | -| [extensionsCreateSample.js][extensionscreatesample] | create Extension for HCI cluster. x-ms-original-file: 2026-04-01-preview/PutExtension.json | -| [extensionsDeleteSample.js][extensionsdeletesample] | delete particular Arc Extension of HCI Cluster. x-ms-original-file: 2026-04-01-preview/DeleteExtension.json | -| [extensionsGetSample.js][extensionsgetsample] | get particular Arc Extension of HCI Cluster. x-ms-original-file: 2026-04-01-preview/GetExtension.json | -| [extensionsListByArcSettingSample.js][extensionslistbyarcsettingsample] | list all Extensions under ArcSetting resource. x-ms-original-file: 2026-04-01-preview/ListExtensionsByArcSetting.json | -| [extensionsUpdateSample.js][extensionsupdatesample] | update Extension for HCI cluster. x-ms-original-file: 2026-04-01-preview/PatchExtension.json | -| [extensionsUpgradeSample.js][extensionsupgradesample] | upgrade a particular Arc Extension of HCI Cluster. x-ms-original-file: 2026-04-01-preview/Extensions_Upgrade.json | -| [kubernetesVersionsListBySubscriptionLocationResourceSample.js][kubernetesversionslistbysubscriptionlocationresourcesample] | list all kubernetes versions. x-ms-original-file: 2026-04-01-preview/KubernetesVersions_ListBySubscriptionLocationResource_MaximumSet_Gen.json | -| [offersGetSample.js][offersgetsample] | get Offer resource details within a publisher of HCI Cluster. x-ms-original-file: 2026-04-01-preview/GetOffer.json | -| [offersListByClusterSample.js][offerslistbyclustersample] | list Offers available across publishers for the HCI Cluster. x-ms-original-file: 2026-04-01-preview/ListOffersByCluster.json | -| [offersListByPublisherSample.js][offerslistbypublishersample] | list Offers available for a publisher within the HCI Cluster. x-ms-original-file: 2026-04-01-preview/ListOffersByPublisher.json | -| [operationsListSample.js][operationslistsample] | list the operations for the provider x-ms-original-file: 2026-04-01-preview/Operations_List.json | -| [osImagesGetSample.js][osimagesgetsample] | get a os image. x-ms-original-file: 2026-04-01-preview/OsImages_Get_MaximumSet_Gen.json | -| [osImagesListBySubscriptionLocationResourceSample.js][osimageslistbysubscriptionlocationresourcesample] | list all os images. x-ms-original-file: 2026-04-01-preview/OsImages_ListBySubscriptionLocationResource_MaximumSet_Gen.json | -| [ownershipVouchersValidateSample.js][ownershipvouchersvalidatesample] | validates ownership vouchers. x-ms-original-file: 2026-04-01-preview/ValidateOwnershipVouchers_ByResourceGroup.json | -| [platformUpdatesGetSample.js][platformupdatesgetsample] | get a platform update. x-ms-original-file: 2026-04-01-preview/PlatformUpdates_Get_MaximumSet_Gen.json | -| [platformUpdatesListSample.js][platformupdateslistsample] | list all platform updates. x-ms-original-file: 2026-04-01-preview/PlatformUpdates_ListByLocation_MaximumSet_Gen.json | -| [publishersGetSample.js][publishersgetsample] | get Publisher resource details of HCI Cluster. x-ms-original-file: 2026-04-01-preview/GetPublisher.json | -| [publishersListByClusterSample.js][publisherslistbyclustersample] | list Publishers available for the HCI Cluster. x-ms-original-file: 2026-04-01-preview/ListPublishersByCluster.json | -| [securitySettingsCreateOrUpdateSample.js][securitysettingscreateorupdatesample] | create a security setting x-ms-original-file: 2026-04-01-preview/PutSecuritySettings.json | -| [securitySettingsDeleteSample.js][securitysettingsdeletesample] | delete a SecuritySetting x-ms-original-file: 2026-04-01-preview/DeleteSecuritySettings.json | -| [securitySettingsGetSample.js][securitysettingsgetsample] | get a SecuritySetting x-ms-original-file: 2026-04-01-preview/GetSecuritySettings.json | -| [securitySettingsListByClustersSample.js][securitysettingslistbyclusterssample] | list SecuritySetting resources by Clusters x-ms-original-file: 2026-04-01-preview/ListSecuritySettingsByCluster.json | -| [skusGetSample.js][skusgetsample] | get SKU resource details within a offer of HCI Cluster. x-ms-original-file: 2026-04-01-preview/GetSku.json | -| [skusListByOfferSample.js][skuslistbyoffersample] | list Skus available for a offer within the HCI Cluster. x-ms-original-file: 2026-04-01-preview/ListSkusByOffer.json | -| [updateContentsGetSample.js][updatecontentsgetsample] | gets content for an update. x-ms-original-file: 2026-04-01-preview/UpdateContents_Get_MaximumSet_Gen.json | -| [updateContentsListSample.js][updatecontentslistsample] | list all update contents. x-ms-original-file: 2026-04-01-preview/UpdateContents_ListByLocation_MaximumSet_Gen.json | -| [updateRunsDeleteSample.js][updaterunsdeletesample] | delete specified Update Run x-ms-original-file: 2026-04-01-preview/DeleteUpdateRuns.json | -| [updateRunsGetSample.js][updaterunsgetsample] | get the Update run for a specified update x-ms-original-file: 2026-04-01-preview/GetUpdateRuns.json | -| [updateRunsListSample.js][updaterunslistsample] | list all Update runs for a specified update x-ms-original-file: 2026-04-01-preview/ListUpdateRuns.json | -| [updateRunsPutSample.js][updaterunsputsample] | put Update runs for a specified update x-ms-original-file: 2026-04-01-preview/PutUpdateRuns.json | -| [updateSummariesDeleteSample.js][updatesummariesdeletesample] | delete Update Summaries x-ms-original-file: 2026-04-01-preview/DeleteUpdateSummaries.json | -| [updateSummariesGetSample.js][updatesummariesgetsample] | get all Update summaries under the HCI cluster x-ms-original-file: 2026-04-01-preview/GetUpdateSummaries.json | -| [updateSummariesListSample.js][updatesummarieslistsample] | list all Update summaries under the HCI cluster x-ms-original-file: 2026-04-01-preview/ListUpdateSummaries.json | -| [updateSummariesOperationGroupCheckHealthSample.js][updatesummariesoperationgroupcheckhealthsample] | check health of UpdateSummaries x-ms-original-file: 2026-04-01-preview/UpdateSummaries_CheckHealth.json | -| [updateSummariesOperationGroupCheckUpdatesSample.js][updatesummariesoperationgroupcheckupdatessample] | check for updates x-ms-original-file: 2026-04-01-preview/UpdateSummaries_CheckUpdates.json | -| [updateSummariesPutSample.js][updatesummariesputsample] | put Update summaries under the HCI cluster x-ms-original-file: 2026-04-01-preview/PutUpdateSummaries.json | -| [updatesDeleteSample.js][updatesdeletesample] | delete specified Update x-ms-original-file: 2026-04-01-preview/DeleteUpdates.json | -| [updatesGetSample.js][updatesgetsample] | get specified Update x-ms-original-file: 2026-04-01-preview/GetUpdates.json | -| [updatesListSample.js][updateslistsample] | list all Updates x-ms-original-file: 2026-04-01-preview/ListUpdates.json | -| [updatesPostSample.js][updatespostsample] | apply Update x-ms-original-file: 2026-04-01-preview/PostUpdates.json | -| [updatesPrepareSample.js][updatespreparesample] | prepare Update x-ms-original-file: 2026-04-01-preview/Updates_Prepare.json | -| [updatesPutSample.js][updatesputsample] | put specified Update x-ms-original-file: 2026-04-01-preview/PutUpdates.json | -| [validatedSolutionRecipesGetSample.js][validatedsolutionrecipesgetsample] | get a validated solution recipe. x-ms-original-file: 2026-04-01-preview/ValidatedSolutionRecipes_Get.json | -| [validatedSolutionRecipesListBySubscriptionLocationResourceSample.js][validatedsolutionrecipeslistbysubscriptionlocationresourcesample] | list all validated solution recipes. x-ms-original-file: 2026-04-01-preview/ValidatedSolutionRecipes_ListBySubscriptionLocationResource.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node arcSettingsConsentAndInstallDefaultExtensionsSample.js -``` - -Alternatively, run a single sample with the required environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -node arcSettingsConsentAndInstallDefaultExtensionsSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[arcsettingsconsentandinstalldefaultextensionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsConsentAndInstallDefaultExtensionsSample.js -[arcsettingscreateidentitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsCreateIdentitySample.js -[arcsettingscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsCreateSample.js -[arcsettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsDeleteSample.js -[arcsettingsgeneratepasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsGeneratePasswordSample.js -[arcsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsGetSample.js -[arcsettingsinitializedisableprocesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsInitializeDisableProcessSample.js -[arcsettingslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsListByClusterSample.js -[arcsettingsreconcilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsReconcileSample.js -[arcsettingsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsUpdateSample.js -[clusterjobscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsCreateOrUpdateSample.js -[clusterjobsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsDeleteSample.js -[clusterjobsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsGetSample.js -[clusterjobslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsListSample.js -[clusterschangeringsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersChangeRingSample.js -[clustersconfigureremotesupportsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersConfigureRemoteSupportSample.js -[clusterscreateidentitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersCreateIdentitySample.js -[clusterscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersCreateSample.js -[clustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersDeleteSample.js -[clustersextendsoftwareassurancebenefitsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersExtendSoftwareAssuranceBenefitSample.js -[clustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersGetSample.js -[clusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersListByResourceGroupSample.js -[clusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersListBySubscriptionSample.js -[clusterstriggerlogcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersTriggerLogCollectionSample.js -[clustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersUpdateSample.js -[clustersupdatesecretslocationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersUpdateSecretsLocationsSample.js -[clustersuploadcertificatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersUploadCertificateSample.js -[deploymentsettingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsCreateOrUpdateSample.js -[deploymentsettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsDeleteSample.js -[deploymentsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsGetSample.js -[deploymentsettingslistbyclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsListByClustersSample.js -[devicepoolsclaimdevicessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsClaimDevicesSample.js -[devicepoolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsCreateOrUpdateSample.js -[devicepoolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsDeleteSample.js -[devicepoolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsGetSample.js -[devicepoolslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsListByResourceGroupSample.js -[devicepoolslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsListBySubscriptionSample.js -[devicepoolsreleasedevicessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsReleaseDevicesSample.js -[devicepoolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsUpdateSample.js -[edgedevicejobscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsCreateOrUpdateSample.js -[edgedevicejobsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsDeleteSample.js -[edgedevicejobsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsGetSample.js -[edgedevicejobslistbyedgedevicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsListByEdgeDeviceSample.js -[edgedevicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesCreateOrUpdateSample.js -[edgedevicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesDeleteSample.js -[edgedevicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesGetSample.js -[edgedeviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesListSample.js -[edgedevicesvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesValidateSample.js -[edgemachinejobscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsCreateOrUpdateSample.js -[edgemachinejobsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsDeleteSample.js -[edgemachinejobsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsGetSample.js -[edgemachinejobslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsListSample.js -[edgemachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesCreateOrUpdateSample.js -[edgemachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesDeleteSample.js -[edgemachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesGetSample.js -[edgemachineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesListByResourceGroupSample.js -[edgemachineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesListBySubscriptionSample.js -[edgemachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesUpdateSample.js -[extensionscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsCreateSample.js -[extensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsDeleteSample.js -[extensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsGetSample.js -[extensionslistbyarcsettingsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsListByArcSettingSample.js -[extensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsUpdateSample.js -[extensionsupgradesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsUpgradeSample.js -[kubernetesversionslistbysubscriptionlocationresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/kubernetesVersionsListBySubscriptionLocationResourceSample.js -[offersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/offersGetSample.js -[offerslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/offersListByClusterSample.js -[offerslistbypublishersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/offersListByPublisherSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/operationsListSample.js -[osimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/osImagesGetSample.js -[osimageslistbysubscriptionlocationresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/osImagesListBySubscriptionLocationResourceSample.js -[ownershipvouchersvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/ownershipVouchersValidateSample.js -[platformupdatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/platformUpdatesGetSample.js -[platformupdateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/platformUpdatesListSample.js -[publishersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/publishersGetSample.js -[publisherslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/publishersListByClusterSample.js -[securitysettingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsCreateOrUpdateSample.js -[securitysettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsDeleteSample.js -[securitysettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsGetSample.js -[securitysettingslistbyclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsListByClustersSample.js -[skusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/skusGetSample.js -[skuslistbyoffersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/skusListByOfferSample.js -[updatecontentsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateContentsGetSample.js -[updatecontentslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateContentsListSample.js -[updaterunsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsDeleteSample.js -[updaterunsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsGetSample.js -[updaterunslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsListSample.js -[updaterunsputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsPutSample.js -[updatesummariesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesDeleteSample.js -[updatesummariesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesGetSample.js -[updatesummarieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesListSample.js -[updatesummariesoperationgroupcheckhealthsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesOperationGroupCheckHealthSample.js -[updatesummariesoperationgroupcheckupdatessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesOperationGroupCheckUpdatesSample.js -[updatesummariesputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesPutSample.js -[updatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesDeleteSample.js -[updatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesGetSample.js -[updateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesListSample.js -[updatespostsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesPostSample.js -[updatespreparesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesPrepareSample.js -[updatesputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesPutSample.js -[validatedsolutionrecipesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/validatedSolutionRecipesGetSample.js -[validatedsolutionrecipeslistbysubscriptionlocationresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/validatedSolutionRecipesListBySubscriptionLocationResourceSample.js -[apiref]: https://learn.microsoft.com/javascript/api/@azure/arm-azurestackhci?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/azurestackhci/arm-azurestackhci/README.md diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsCreateOrUpdateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsCreateOrUpdateSample.js deleted file mode 100644 index 8cf7d7988e98..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsCreateOrUpdateSample.js +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to create a ClusterJob - * - * @summary create a ClusterJob - * x-ms-original-file: 2026-04-01-preview/ClusterJobs_CreateOrUpdate_ConfigureCVM.json - */ -async function clusterJobsCreateOrUpdateConfigureCVMJob() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.clusterJobs.createOrUpdate("test-rg", "myCluster", "ConfigureCVM", { - properties: { - jobType: "ConfigureCVM", - deploymentMode: "Deploy", - confidentialVmIntent: "Enable", - }, - }); - console.log(result); -} - -/** - * This sample demonstrates how to create a ClusterJob - * - * @summary create a ClusterJob - * x-ms-original-file: 2026-04-01-preview/ClusterJobs_CreateOrUpdate_ConfigureSdnIntegration_Enable.json - */ -async function clusterJobsCreateOrUpdateConfigureSdnIntegrationEnable() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.clusterJobs.createOrUpdate( - "test-rg", - "myCluster", - "configureSdnIntegration", - { - properties: { - jobType: "ConfigureSdnIntegration", - deploymentMode: "Deploy", - sdnIntegrationIntent: "Enable", - }, - }, - ); - console.log(result); -} - -async function main() { - await clusterJobsCreateOrUpdateConfigureCVMJob(); - await clusterJobsCreateOrUpdateConfigureSdnIntegrationEnable(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsDeleteSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsDeleteSample.js deleted file mode 100644 index 358916bfc0ad..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsDeleteSample.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to delete a ClusterJob - * - * @summary delete a ClusterJob - * x-ms-original-file: 2026-04-01-preview/ClusterJobs_Delete.json - */ -async function clusterJobsDelete() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "6D37FF61-4C93-4377-B06B-FC6D6D561A7D"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.clusterJobs.delete("rghci", "3-Vz3LSRO5Q6q8EV-PKs8-5E", "configureSdnIntegration"); -} - -async function main() { - await clusterJobsDelete(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsGetSample.js deleted file mode 100644 index d78cee8941e9..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsGetSample.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to get a ClusterJob - * - * @summary get a ClusterJob - * x-ms-original-file: 2026-04-01-preview/ClusterJobs_Get_ConfigureSdnIntegrationJob.json - */ -async function clusterJobsGetConfigureSdnIntegrationJob() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "6D37FF61-4C93-4377-B06B-FC6D6D561A7D"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.clusterJobs.get("rghci", "Y-k0MG", "configureSdnIntegration"); - console.log(result); -} - -async function main() { - await clusterJobsGetConfigureSdnIntegrationJob(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsListSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsListSample.js deleted file mode 100644 index bec73872e0e7..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clusterJobsListSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list ClusterJob resources by Clusters - * - * @summary list ClusterJob resources by Clusters - * x-ms-original-file: 2026-04-01-preview/ClusterJobs_List.json - */ -async function clusterJobsList() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "6D37FF61-4C93-4377-B06B-FC6D6D561A7D"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.clusterJobs.list("rghci", "Ql40O4-I77S")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - await clusterJobsList(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersChangeRingSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersChangeRingSample.js deleted file mode 100644 index 02bcea7b7001..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersChangeRingSample.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to changes ring of a cluster - * - * @summary changes ring of a cluster - * x-ms-original-file: 2026-04-01-preview/ChangeClusterRing.json - */ -async function changeClusterRing() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.clusters.changeRing("test-rg", "myCluster", { - properties: { targetRing: "Insider" }, - }); - console.log(result); -} - -async function main() { - await changeClusterRing(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsCreateOrUpdateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsCreateOrUpdateSample.js deleted file mode 100644 index 7d61889c0e8d..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsCreateOrUpdateSample.js +++ /dev/null @@ -1,333 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to create a DeploymentSetting - * - * @summary create a DeploymentSetting - * x-ms-original-file: 2026-04-01-preview/PutDeploymentSettings.json - */ -async function createDeploymentSettings() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.deploymentSettings.createOrUpdate("test-rg", "myCluster", "default", { - arcNodeResourceIds: [ - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", - ], - deploymentConfiguration: { - scaleUnits: [ - { - deploymentData: { - adouPath: "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com", - cluster: { - name: "testHCICluster", - azureServiceEndpoint: "core.windows.net", - cloudAccountName: "myasestoragacct", - witnessPath: "Cloud", - witnessType: "Cloud", - }, - domainFqdn: "ASZ1PLab8.nttest.microsoft.com", - hostNetwork: { - enableStorageAutoIp: false, - intents: [ - { - name: "Compute_Management", - adapter: ["Port2"], - adapterPropertyOverrides: { - jumboPacket: "1514", - networkDirect: "Enabled", - networkDirectTechnology: "iWARP", - }, - overrideAdapterProperty: false, - overrideQosPolicy: false, - overrideVirtualSwitchConfiguration: false, - qosPolicyOverrides: { - bandwidthPercentageSMB: "50", - priorityValue8021ActionCluster: "7", - priorityValue8021ActionSMB: "3", - }, - trafficType: ["Compute", "Management"], - virtualSwitchConfigurationOverrides: { - enableIov: "True", - loadBalancingAlgorithm: "HyperVPort", - }, - }, - ], - storageConnectivitySwitchless: true, - storageNetworks: [ - { - name: "Storage1Network", - networkAdapterName: "Port3", - storageAdapterIPInfo: [ - { - ipv4Address: "10.57.48.60", - physicalNode: "string", - subnetMask: "255.255.248.0", - }, - ], - vlanId: "5", - }, - ], - }, - infrastructureNetwork: [ - { - dnsServerConfig: "UseDnsServer", - dnsServers: ["10.57.50.90"], - gateway: "255.255.248.0", - ipPools: [{ endingAddress: "10.57.48.66", startingAddress: "10.57.48.60" }], - subnetMask: "255.255.248.0", - }, - ], - isManagementCluster: true, - namingPrefix: "ms169", - observability: { - episodicDataUpload: true, - euLocation: false, - streamingDataClient: true, - }, - optionalServices: { customLocation: "customLocationName" }, - physicalNodes: [ - { name: "ms169host", ipv4Address: "10.57.51.224" }, - { name: "ms154host", ipv4Address: "10.57.53.236" }, - ], - sdnIntegration: { - networkController: { - macAddressPoolStart: "00-0D-3A-1B-C7-21", - macAddressPoolStop: "00-0D-3A-1B-C7-29", - networkVirtualizationEnabled: true, - }, - }, - secrets: [ - { - eceSecretName: "BMCAdminUserCred", - secretLocation: - "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", - secretName: "cluster1-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", - }, - { - eceSecretName: "AzureStackLCMUserCredential", - secretLocation: - "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4c", - secretName: - "cluster2-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", - }, - ], - secretsLocation: - "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123", - securitySettings: { - bitlockerBootVolume: true, - bitlockerDataVolumes: true, - credentialGuardEnforced: false, - driftControlEnforced: true, - drtmProtection: true, - hvciProtection: true, - sideChannelMitigationEnforced: true, - smbClusterEncryption: false, - smbSigningEnforced: true, - wdacEnforced: true, - }, - storage: { configurationMode: "Express" }, - }, - sbePartnerInfo: { - credentialList: [ - { - eceSecretName: "DownloadConnectorCred", - secretLocation: - "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", - secretName: "cluster1-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", - }, - ], - partnerProperties: [ - { name: "EnableBMCIpV6", value: "false" }, - { name: "PhoneHomePort", value: "1653" }, - { name: "BMCSecurityState", value: "HighSecurity" }, - ], - sbeDeploymentInfo: { - family: "Gen5", - publisher: "Contoso", - sbeManifestCreationDate: new Date("2023-07-25T02:40:33Z"), - sbeManifestSource: "default", - version: "4.0.2309.13", - }, - }, - }, - ], - version: "string", - }, - deploymentMode: "Deploy", - operationType: "ClusterProvisioning", - }); - console.log(result); -} - -/** - * This sample demonstrates how to create a DeploymentSetting - * - * @summary create a DeploymentSetting - * x-ms-original-file: 2026-04-01-preview/PutDeploymentSettingsWithADLess.json - */ -async function createDeploymentSettingsWithoutActiveDirectoryIntegration() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.deploymentSettings.createOrUpdate("test-rg", "myCluster", "default", { - arcNodeResourceIds: [ - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", - ], - deploymentConfiguration: { - scaleUnits: [ - { - deploymentData: { - adouPath: "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com", - cluster: { - name: "testHCICluster", - azureServiceEndpoint: "core.windows.net", - cloudAccountName: "myasestoragacct", - witnessPath: "Cloud", - witnessType: "Cloud", - }, - domainFqdn: "ASZ1PLab8.nttest.microsoft.com", - hostNetwork: { - enableStorageAutoIp: false, - intents: [ - { - name: "Compute_Management", - adapter: ["Port2"], - adapterPropertyOverrides: { - jumboPacket: "1514", - networkDirect: "Enabled", - networkDirectTechnology: "iWARP", - }, - overrideAdapterProperty: false, - overrideQosPolicy: false, - overrideVirtualSwitchConfiguration: false, - qosPolicyOverrides: { - bandwidthPercentageSMB: "50", - priorityValue8021ActionCluster: "7", - priorityValue8021ActionSMB: "3", - }, - trafficType: ["Compute", "Management"], - virtualSwitchConfigurationOverrides: { - enableIov: "True", - loadBalancingAlgorithm: "HyperVPort", - }, - }, - ], - storageConnectivitySwitchless: true, - storageNetworks: [ - { - name: "Storage1Network", - networkAdapterName: "Port3", - storageAdapterIPInfo: [ - { - ipv4Address: "10.57.48.60", - physicalNode: "string", - subnetMask: "255.255.248.0", - }, - ], - vlanId: "5", - }, - ], - }, - identityProvider: "LocalIdentity", - infrastructureNetwork: [ - { - dnsZones: [{ dnsForwarder: ["192.168.1.1"], dnsZoneName: "contoso.com" }], - gateway: "255.255.248.0", - ipPools: [{ endingAddress: "10.57.48.66", startingAddress: "10.57.48.60" }], - subnetMask: "255.255.248.0", - }, - ], - namingPrefix: "ms169", - observability: { - episodicDataUpload: true, - euLocation: false, - streamingDataClient: true, - }, - optionalServices: { customLocation: "customLocationName" }, - physicalNodes: [ - { name: "ms169host", ipv4Address: "10.57.51.224" }, - { name: "ms154host", ipv4Address: "10.57.53.236" }, - ], - sdnIntegration: { - networkController: { - macAddressPoolStart: "00-0D-3A-1B-C7-21", - macAddressPoolStop: "00-0D-3A-1B-C7-29", - networkVirtualizationEnabled: true, - }, - }, - secrets: [ - { - eceSecretName: "BMCAdminUserCred", - secretLocation: - "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", - secretName: "cluster1-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", - }, - { - eceSecretName: "AzureStackLCMUserCredential", - secretLocation: - "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4c", - secretName: - "cluster2-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", - }, - ], - secretsLocation: - "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123", - securitySettings: { - bitlockerBootVolume: true, - bitlockerDataVolumes: true, - credentialGuardEnforced: false, - driftControlEnforced: true, - drtmProtection: true, - hvciProtection: true, - sideChannelMitigationEnforced: true, - smbClusterEncryption: false, - smbSigningEnforced: true, - wdacEnforced: true, - }, - storage: { configurationMode: "Express" }, - }, - sbePartnerInfo: { - credentialList: [ - { - eceSecretName: "DownloadConnectorCred", - secretLocation: - "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", - secretName: "cluster1-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", - }, - ], - partnerProperties: [ - { name: "EnableBMCIpV6", value: "false" }, - { name: "PhoneHomePort", value: "1653" }, - { name: "BMCSecurityState", value: "HighSecurity" }, - ], - sbeDeploymentInfo: { - family: "Gen5", - publisher: "Contoso", - sbeManifestCreationDate: new Date("2023-07-25T02:40:33Z"), - sbeManifestSource: "default", - version: "4.0.2309.13", - }, - }, - }, - ], - version: "string", - }, - deploymentMode: "Deploy", - operationType: "ClusterProvisioning", - }); - console.log(result); -} - -async function main() { - await createDeploymentSettings(); - await createDeploymentSettingsWithoutActiveDirectoryIntegration(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsClaimDevicesSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsClaimDevicesSample.js deleted file mode 100644 index c1b2d6c896d6..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsClaimDevicesSample.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to claiming devices of the pool. - * - * @summary claiming devices of the pool. - * x-ms-original-file: 2026-04-01-preview/DevicePools_ClaimDevices_MaximumSet_Gen.json - */ -async function devicePoolsClaimDevicesMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.devicePools.claimDevices("ArcInstance-rg", "ptfebvgxxqllx", { - devices: [ - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/edgeMachines/machine-1", - ], - claimedBy: - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/clusters/cluster1", - }); -} - -async function main() { - await devicePoolsClaimDevicesMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsCreateOrUpdateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsCreateOrUpdateSample.js deleted file mode 100644 index fa462c0ce3a0..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsCreateOrUpdateSample.js +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to create a DevicePool - * - * @summary create a DevicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_CreateOrUpdate.json - */ -async function devicePoolsCreateOrUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.devicePools.createOrUpdate("ArcInstance-rg", "devicePool-1", { - properties: {}, - location: "eastus", - }); - console.log(result); -} - -/** - * This sample demonstrates how to create a DevicePool - * - * @summary create a DevicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_CreateOrUpdate_MaximumSet_Gen.json - */ -async function devicePoolsCreateOrUpdateMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.devicePools.createOrUpdate("ArcInstance-rg", "devicePool1", { - properties: {}, - location: "eastus", - }); - console.log(result); -} - -async function main() { - await devicePoolsCreateOrUpdate(); - await devicePoolsCreateOrUpdateMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsDeleteSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsDeleteSample.js deleted file mode 100644 index 399a765a0f93..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsDeleteSample.js +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to delete a DevicePool - * - * @summary delete a DevicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_Delete_MaximumSet_Gen.json - */ -async function devicePoolsDeleteMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.devicePools.delete("ArcInstance-rg", "devicePool1"); -} - -/** - * This sample demonstrates how to delete a DevicePool - * - * @summary delete a DevicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_Delete_MinimumSet_Gen.json - */ -async function devicePoolsDeleteMinimumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.devicePools.delete("ArcInstance-rg", "devicePool1"); -} - -async function main() { - await devicePoolsDeleteMaximumSet(); - await devicePoolsDeleteMinimumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsGetSample.js deleted file mode 100644 index b16cb24b7b4b..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsGetSample.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to get a DevicePool - * - * @summary get a DevicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_Get_MaximumSet_Gen.json - */ -async function devicePoolsGetMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.devicePools.get("ArcInstance-rg", "fflisdaccdcoj"); - console.log(result); -} - -async function main() { - await devicePoolsGetMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsListByResourceGroupSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsListByResourceGroupSample.js deleted file mode 100644 index 9e991bc2e5e5..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsListByResourceGroupSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list all device pools in a resource group. - * - * @summary list all device pools in a resource group. - * x-ms-original-file: 2026-04-01-preview/DevicePools_ListByResourceGroup.json - */ -async function listDevicePoolsInAGivenResourceGroup() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.devicePools.listByResourceGroup("test-rg")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - await listDevicePoolsInAGivenResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsListBySubscriptionSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsListBySubscriptionSample.js deleted file mode 100644 index d71c9afddf19..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsListBySubscriptionSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list all device pools in a subscription. - * - * @summary list all device pools in a subscription. - * x-ms-original-file: 2026-04-01-preview/DevicePools_ListBySubscription.json - */ -async function listDevicePoolsInAGivenSubscription() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.devicePools.listBySubscription()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - await listDevicePoolsInAGivenSubscription(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsReleaseDevicesSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsReleaseDevicesSample.js deleted file mode 100644 index 733762f90333..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsReleaseDevicesSample.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to releasing devices of the pool. - * - * @summary releasing devices of the pool. - * x-ms-original-file: 2026-04-01-preview/DevicePools_ReleaseDevices_MaximumSet_Gen.json - */ -async function devicePoolsReleaseDevicesMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.devicePools.releaseDevices("ArcInstance-rg", "snbyzreoirqiz", { - devices: [ - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/edgeMachines/machine-1", - ], - }); -} - -async function main() { - await devicePoolsReleaseDevicesMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsUpdateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsUpdateSample.js deleted file mode 100644 index 447957bee339..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/devicePoolsUpdateSample.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to update a devicePool - * - * @summary update a devicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_Update_MaximumSet_Gen.json - */ -async function devicePoolsUpdateMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.devicePools.update("ArcInstance-rg", "devicePool1", { - tags: { key2335: "beth" }, - }); - console.log(result); -} - -async function main() { - await devicePoolsUpdateMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsCreateOrUpdateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsCreateOrUpdateSample.js deleted file mode 100644 index 327a4c866cd2..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsCreateOrUpdateSample.js +++ /dev/null @@ -1,248 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to create a EdgeMachineJob - * - * @summary create a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_CollectLog.json - */ -async function edgeMachineJobsCreateOrUpdateCollectLog() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.createOrUpdate( - "ArcInstance-rg", - "machine1", - "triggerLogCollection", - { properties: { jobType: "EdgeMachineJobProperties", deploymentMode: "Validate" } }, - ); - console.log(result); -} - -/** - * This sample demonstrates how to create a EdgeMachineJob - * - * @summary create a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_DownloadOs.json - */ -async function edgeMachineJobsCreateOrUpdateDownloadOs() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.createOrUpdate( - "ArcInstance-rg", - "machine1", - "DownloadOs", - { - properties: { - jobType: "DownloadOs", - deploymentMode: "Deploy", - downloadRequest: { - target: "AzureLinux", - osProfile: { - osName: "AzureLinux", - osType: "AzureLinux", - osVersion: "3.0", - osImageLocation: "https://aka.ms/aep/azlinux3.0", - vsrVersion: "1.0.0", - imageHash: "sha256:a8b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1", - gpgPubKey: - "LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tXG5WZXJzaW9uOiBHbnVQRyB2MlxuXG5tUUVOQkZYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYXG4tLS0tLUVORCBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0t", - }, - }, - }, - }, - ); - console.log(result); -} - -/** - * This sample demonstrates how to create a EdgeMachineJob - * - * @summary create a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_ProvisionOs.json - */ -async function edgeMachineJobsCreateOrUpdateProvisionOs() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.createOrUpdate( - "ArcInstance-rg", - "machine1", - "ProvisionOs", - { - properties: { - provisioningRequest: { - osProfile: { - osName: "AzureLinux", - osType: "AzureLinux", - osVersion: "3.0", - osImageLocation: "https://aka.ms/aep/azlinux3.0", - vsrVersion: "1.0.0", - imageHash: "sha256:a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456", - gpgPubKey: - "LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tXG5WZXJzaW9uOiBHbnVQRyB2MlxuXG5tUUVOQkZYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYXG4tLS0tLUVORCBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0t", - operationType: "Provision", - }, - userDetails: [ - { - userName: "edgeuser", - secretType: "KeyVault", - secretLocation: - "https://bhukumar-test-kv.vault.azure.net/secrets/edgeuser/7b2d7db11bad4e1599cb6a0f4d2b2e00", - sshPubKey: ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7... edgeuser@example.com"], - }, - ], - onboardingConfiguration: { - resourceId: - "/subscriptions/ff0aa6da-20f8-44fe-9aee-381c8e8a4aeb/resourceGroups/bhukumar-test-rg/providers/Microsoft.HybridCompute/machines/bkumar-t1", - location: "eastus", - tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47", - arcVirtualMachineId: "634b9db8-83e1-46ed-b391-c1614e2d0097", - type: "HybridComputeMachine", - }, - deviceConfiguration: { - network: { - networkAdapters: [ - { - ipAssignmentType: "Automatic", - ipAddress: "", - ipAddressRange: { startIp: "", endIp: "" }, - gateway: "", - subnetMask: "", - dnsAddressArray: ["8.8.8.8"], - vlanId: "0", - }, - ], - }, - hostName: "634b9db8-83e1-46ed-b391-c1614e2d0097", - webProxy: { connectionUri: "https://microsoft.com/a", port: "", bypassList: [] }, - time: { primaryTimeServer: "", secondaryTimeServer: "", timeZone: "UTC" }, - storage: { partitionSize: "30GB" }, - }, - target: "AzureLinux", - customConfiguration: - "eyJjdXN0b21Db25maWciOiAiZXhhbXBsZSBiYXNlNjQgZW5jb2RlZCBjb25maWcifQ==", - }, - jobType: "ProvisionOs", - deploymentMode: "Deploy", - }, - }, - ); - console.log(result); -} - -/** - * This sample demonstrates how to create a EdgeMachineJob - * - * @summary create a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_RemoteSupport.json - */ -async function edgeMachineJobsCreateOrUpdateRemoteSupport() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.createOrUpdate( - "ArcInstance-rg", - "machine1", - "RemoteSupport", - { - properties: { - jobType: "RemoteSupport", - accessLevel: "Diagnostics", - type: "Enable", - expirationTimestamp: new Date("2024-01-29T10:43:27.9471574Z"), - }, - }, - ); - console.log(result); -} - -/** - * This sample demonstrates how to create a EdgeMachineJob - * - * @summary create a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_UpdateOs.json - */ -async function edgeMachineJobsCreateOrUpdateUpdateOs() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.createOrUpdate( - "ArcInstance-rg", - "machine1", - "UpdateOs", - { - properties: { - provisioningRequest: { - osProfile: { - osName: "AzureLinux", - osType: "AzureLinux", - osVersion: "3.1", - osImageLocation: "https://aka.ms/aep/azlinux3.1", - vsrVersion: "1.1.0", - imageHash: "sha256:b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef12345678", - gpgPubKey: - "LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tXG5WZXJzaW9uOiBHbnVQRyB2MlxuXG5tUUVOQkZYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYXG4tLS0tLUVORCBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0t", - operationType: "Update", - }, - userDetails: [ - { - userName: "edgeuser", - secretType: "KeyVault", - secretLocation: - "https://bhukumar-test-kv.vault.azure.net/secrets/edgeuser/7b2d7db11bad4e1599cb6a0f4d2b2e00", - sshPubKey: ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7... edgeuser@example.com"], - }, - ], - onboardingConfiguration: { - resourceId: - "/subscriptions/ff0aa6da-20f8-44fe-9aee-381c8e8a4aeb/resourceGroups/bhukumar-test-rg/providers/Microsoft.HybridCompute/machines/bkumar-t1", - location: "eastus", - tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47", - arcVirtualMachineId: "634b9db8-83e1-46ed-b391-c1614e2d0097", - type: "HybridComputeMachine", - }, - deviceConfiguration: { - network: { - networkAdapters: [ - { - ipAssignmentType: "Automatic", - ipAddress: "", - ipAddressRange: { startIp: "", endIp: "" }, - gateway: "", - subnetMask: "", - dnsAddressArray: ["8.8.8.8"], - vlanId: "0", - }, - ], - }, - hostName: "634b9db8-83e1-46ed-b391-c1614e2d0097", - webProxy: { connectionUri: "https://microsoft.com/a", port: "", bypassList: [] }, - time: { primaryTimeServer: "", secondaryTimeServer: "", timeZone: "UTC" }, - }, - target: "AzureLinux", - customConfiguration: - "eyJjdXN0b21Db25maWciOiAiZXhhbXBsZSBiYXNlNjQgZW5jb2RlZCBjb25maWcifQ==", - }, - jobType: "ProvisionOs", - deploymentMode: "Deploy", - }, - }, - ); - console.log(result); -} - -async function main() { - await edgeMachineJobsCreateOrUpdateCollectLog(); - await edgeMachineJobsCreateOrUpdateDownloadOs(); - await edgeMachineJobsCreateOrUpdateProvisionOs(); - await edgeMachineJobsCreateOrUpdateRemoteSupport(); - await edgeMachineJobsCreateOrUpdateUpdateOs(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsDeleteSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsDeleteSample.js deleted file mode 100644 index e796e7ef8e89..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsDeleteSample.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to delete a EdgeMachineJob - * - * @summary delete a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Delete_MaximumSet_Gen.json - */ -async function edgeMachineJobsDeleteMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.edgeMachineJobs.delete("ArcInstance-rg", "machine1", "triggerLogCollection"); -} - -async function main() { - await edgeMachineJobsDeleteMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsGetSample.js deleted file mode 100644 index ccbc4ed1a08c..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsGetSample.js +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to get a EdgeMachineJob - * - * @summary get a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Get_CollectLog.json - */ -async function edgeMachineJobsGetCollectLog() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.get("ArcInstance-rg", "machine1", "collectLog"); - console.log(result); -} - -/** - * This sample demonstrates how to get a EdgeMachineJob - * - * @summary get a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Get_ProvisionOs.json - */ -async function edgeMachineJobsGetProvisionOs() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.get("ArcInstance-rg", "machine1", "ProvisionOs"); - console.log(result); -} - -/** - * This sample demonstrates how to get a EdgeMachineJob - * - * @summary get a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Get_RemoteSupport.json - */ -async function edgeMachineJobsGetRemoteSupport() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.get("ArcInstance-rg", "machine1", "RemoteSupport"); - console.log(result); -} - -async function main() { - await edgeMachineJobsGetCollectLog(); - await edgeMachineJobsGetProvisionOs(); - await edgeMachineJobsGetRemoteSupport(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsListSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsListSample.js deleted file mode 100644 index 86e6cca20d4c..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachineJobsListSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list EdgeMachineJob resources by EdgeMachines - * - * @summary list EdgeMachineJob resources by EdgeMachines - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_List_MaximumSet_Gen.json - */ -async function edgeMachineJobsListMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.edgeMachineJobs.list("ArcInstance-rg", "machine1")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - await edgeMachineJobsListMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesCreateOrUpdateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesCreateOrUpdateSample.js deleted file mode 100644 index fe29ac197027..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesCreateOrUpdateSample.js +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to create or update an edge machine. - * - * @summary create or update an edge machine. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_CreateOrUpdate.json - */ -async function edgeMachinesCreateOrUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachines.createOrUpdate("ArcInstance-rg", "machine-1", { - properties: { - arcMachineResourceGroupId: - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg", - arcMachineResourceId: - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", - }, - location: "eastus", - }); - console.log(result); -} - -async function main() { - await edgeMachinesCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesDeleteSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesDeleteSample.js deleted file mode 100644 index 98bf5df6bdd8..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesDeleteSample.js +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to delete an edge machine. - * - * @summary delete an edge machine. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_Delete.json - */ -async function edgeMachinesDeleteMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.edgeMachines.delete("ArcInstance-rg", "machine-1"); -} - -async function main() { - await edgeMachinesDeleteMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesGetSample.js deleted file mode 100644 index 240612f61a72..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesGetSample.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to get an edge machine. - * - * @summary get an edge machine. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_Get.json - */ -async function edgeMachinesGetMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachines.get("ArcInstance-rg", "machine-1"); - console.log(result); -} - -async function main() { - await edgeMachinesGetMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesListByResourceGroupSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesListByResourceGroupSample.js deleted file mode 100644 index 417b586048a2..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesListByResourceGroupSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list all edge machines in a resource group. - * - * @summary list all edge machines in a resource group. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_ListByResourceGroup.json - */ -async function listEdgeMachinesInAGivenResourceGroup() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.edgeMachines.listByResourceGroup("ArcInstance-rg")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - await listEdgeMachinesInAGivenResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesListBySubscriptionSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesListBySubscriptionSample.js deleted file mode 100644 index 6628e8bc2853..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesListBySubscriptionSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list all edge machines in a subscription. - * - * @summary list all edge machines in a subscription. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_ListBySubscription.json - */ -async function listEdgeMachinesInAGivenSubscription() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.edgeMachines.listBySubscription()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - await listEdgeMachinesInAGivenSubscription(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesUpdateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesUpdateSample.js deleted file mode 100644 index 14032e116c41..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeMachinesUpdateSample.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to update an edge machine. - * - * @summary update an edge machine. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_Update.json - */ -async function edgeMachinesUpdate() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachines.update("ArcInstance-rg", "machine-1", { - tags: { key2335: "beth" }, - }); - console.log(result); -} - -async function main() { - await edgeMachinesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/kubernetesVersionsListBySubscriptionLocationResourceSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/kubernetesVersionsListBySubscriptionLocationResourceSample.js deleted file mode 100644 index f2d389f3bd22..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/kubernetesVersionsListBySubscriptionLocationResourceSample.js +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list all kubernetes versions. - * - * @summary list all kubernetes versions. - * x-ms-original-file: 2026-04-01-preview/KubernetesVersions_ListBySubscriptionLocationResource_MaximumSet_Gen.json - */ -async function kubernetesVersionsListBySubscriptionLocationResourceMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "ABB13722-6A68-4BFC-AE89-57B2EE91EA11"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.kubernetesVersions.listBySubscriptionLocationResource( - "westus2", - )) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - await kubernetesVersionsListBySubscriptionLocationResourceMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/osImagesGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/osImagesGetSample.js deleted file mode 100644 index 607996f244fd..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/osImagesGetSample.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to get a os image. - * - * @summary get a os image. - * x-ms-original-file: 2026-04-01-preview/OsImages_Get_MaximumSet_Gen.json - */ -async function osImagesGetMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "5233F7FA-C5BA-41FD-A07F-C65BA2084316"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.osImages.get("arowdcr", "10.2408.0.1"); - console.log(result); -} - -async function main() { - await osImagesGetMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/osImagesListBySubscriptionLocationResourceSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/osImagesListBySubscriptionLocationResourceSample.js deleted file mode 100644 index c4b0c07baa11..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/osImagesListBySubscriptionLocationResourceSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list all os images. - * - * @summary list all os images. - * x-ms-original-file: 2026-04-01-preview/OsImages_ListBySubscriptionLocationResource_MaximumSet_Gen.json - */ -async function osImagesListBySubscriptionLocationResourceMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "b8d594e5-51f3-4c11-9c54-a7771b81c712"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.osImages.listBySubscriptionLocationResource("westus2")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - await osImagesListBySubscriptionLocationResourceMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/ownershipVouchersValidateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/ownershipVouchersValidateSample.js deleted file mode 100644 index 02e775bff1f0..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/ownershipVouchersValidateSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to validates ownership vouchers. - * - * @summary validates ownership vouchers. - * x-ms-original-file: 2026-04-01-preview/ValidateOwnershipVouchers_ByResourceGroup.json - */ -async function validateOwnershipVouchersInAGivenResourceGroup() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.ownershipVouchers.validate("ArcInstance-rg", "westus", { - ownershipVoucherDetails: [ - { ownershipVoucher: "Device Model Ownership content", ownerKeyType: "MicrosoftManaged" }, - ], - }); - console.log(result); -} - -async function main() { - await validateOwnershipVouchersInAGivenResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/platformUpdatesGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/platformUpdatesGetSample.js deleted file mode 100644 index 3d00027f12b2..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/platformUpdatesGetSample.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to get a platform update. - * - * @summary get a platform update. - * x-ms-original-file: 2026-04-01-preview/PlatformUpdates_Get_MaximumSet_Gen.json - */ -async function platformUpdatesGetMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "b8d594e5-51f3-4c11-9c54-a7771b81c712"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.platformUpdates.get("westus2", "10.2408.0.1"); - console.log(result); -} - -async function main() { - await platformUpdatesGetMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/platformUpdatesListSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/platformUpdatesListSample.js deleted file mode 100644 index b1c29d2fe855..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/platformUpdatesListSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list all platform updates. - * - * @summary list all platform updates. - * x-ms-original-file: 2026-04-01-preview/PlatformUpdates_ListByLocation_MaximumSet_Gen.json - */ -async function platformUpdatesListByLocationMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "b8d594e5-51f3-4c11-9c54-a7771b81c712"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.platformUpdates.list("westus2")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - await platformUpdatesListByLocationMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/publishersGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/publishersGetSample.js deleted file mode 100644 index 067b2726efbf..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/publishersGetSample.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to get Publisher resource details of HCI Cluster. - * - * @summary get Publisher resource details of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/GetPublisher.json - */ -async function getPublisher() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.publishers.get("test-rg", "myCluster", "publisher1"); - console.log(result); -} - -async function main() { - await getPublisher(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/publishersListByClusterSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/publishersListByClusterSample.js deleted file mode 100644 index 53e2248dd542..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/publishersListByClusterSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list Publishers available for the HCI Cluster. - * - * @summary list Publishers available for the HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/ListPublishersByCluster.json - */ -async function listPublisherResourcesByHCICluster() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.publishers.listByCluster("test-rg", "myCluster")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - await listPublisherResourcesByHCICluster(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateContentsGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateContentsGetSample.js deleted file mode 100644 index e4515d65bcf3..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateContentsGetSample.js +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to gets content for an update. - * - * @summary gets content for an update. - * x-ms-original-file: 2026-04-01-preview/UpdateContents_Get_MaximumSet_Gen.json - */ -async function updateContentsGetMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "2886575D-173A-44A0-80E2-7DBA57F18B46"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.updateContents.get("westus2", "12.2510.0.1"); - console.log(result); -} - -async function main() { - await updateContentsGetMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateContentsListSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateContentsListSample.js deleted file mode 100644 index 07c3261cc143..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateContentsListSample.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to list all update contents. - * - * @summary list all update contents. - * x-ms-original-file: 2026-04-01-preview/UpdateContents_ListByLocation_MaximumSet_Gen.json - */ -async function updateContentsListByLocationMaximumSet() { - const credential = new DefaultAzureCredential(); - const subscriptionId = "2886575D-173A-44A0-80E2-7DBA57F18B46"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.updateContents.list("westus2")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main() { - await updateContentsListByLocationMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/README.md b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/README.md deleted file mode 100644 index cbbed3e227ed..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/README.md +++ /dev/null @@ -1,265 +0,0 @@ -# @azure/arm-azurestackhci client library samples for TypeScript (Beta) - -These sample programs show how to use the TypeScript client libraries for @azure/arm-azurestackhci in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [arcSettingsConsentAndInstallDefaultExtensionsSample.ts][arcsettingsconsentandinstalldefaultextensionssample] | add consent time for default extensions and initiate extensions installation x-ms-original-file: 2026-04-01-preview/ConsentAndInstallDefaultExtensions.json | -| [arcSettingsCreateIdentitySample.ts][arcsettingscreateidentitysample] | create Aad identity for arc settings. x-ms-original-file: 2026-04-01-preview/CreateArcIdentity.json | -| [arcSettingsCreateSample.ts][arcsettingscreatesample] | create ArcSetting for HCI cluster. x-ms-original-file: 2026-04-01-preview/PutArcSetting.json | -| [arcSettingsDeleteSample.ts][arcsettingsdeletesample] | delete ArcSetting resource details of HCI Cluster. x-ms-original-file: 2026-04-01-preview/DeleteArcSetting.json | -| [arcSettingsGeneratePasswordSample.ts][arcsettingsgeneratepasswordsample] | generate password for arc settings. x-ms-original-file: 2026-04-01-preview/GeneratePassword.json | -| [arcSettingsGetSample.ts][arcsettingsgetsample] | get ArcSetting resource details of HCI Cluster. x-ms-original-file: 2026-04-01-preview/GetArcSetting.json | -| [arcSettingsInitializeDisableProcessSample.ts][arcsettingsinitializedisableprocesssample] | initializes ARC Disable process on the cluster x-ms-original-file: 2026-04-01-preview/InitializeDisableProcess.json | -| [arcSettingsListByClusterSample.ts][arcsettingslistbyclustersample] | get ArcSetting resources of HCI Cluster. x-ms-original-file: 2026-04-01-preview/ListArcSettingsByCluster.json | -| [arcSettingsReconcileSample.ts][arcsettingsreconcilesample] | reconcile Arc Settings with information related to all nodes. x-ms-original-file: 2026-04-01-preview/reconcileArcSettings.json | -| [arcSettingsUpdateSample.ts][arcsettingsupdatesample] | update ArcSettings for HCI cluster. x-ms-original-file: 2026-04-01-preview/PatchArcSetting.json | -| [clusterJobsCreateOrUpdateSample.ts][clusterjobscreateorupdatesample] | create a ClusterJob x-ms-original-file: 2026-04-01-preview/ClusterJobs_CreateOrUpdate_ConfigureCVM.json | -| [clusterJobsDeleteSample.ts][clusterjobsdeletesample] | delete a ClusterJob x-ms-original-file: 2026-04-01-preview/ClusterJobs_Delete.json | -| [clusterJobsGetSample.ts][clusterjobsgetsample] | get a ClusterJob x-ms-original-file: 2026-04-01-preview/ClusterJobs_Get_ConfigureSdnIntegrationJob.json | -| [clusterJobsListSample.ts][clusterjobslistsample] | list ClusterJob resources by Clusters x-ms-original-file: 2026-04-01-preview/ClusterJobs_List.json | -| [clustersChangeRingSample.ts][clusterschangeringsample] | changes ring of a cluster x-ms-original-file: 2026-04-01-preview/ChangeClusterRing.json | -| [clustersConfigureRemoteSupportSample.ts][clustersconfigureremotesupportsample] | configure RemoteSupport on a cluster x-ms-original-file: 2026-04-01-preview/ConfigureRemoteSupport.json | -| [clustersCreateIdentitySample.ts][clusterscreateidentitysample] | create cluster identity. x-ms-original-file: 2026-04-01-preview/CreateClusterIdentity.json | -| [clustersCreateSample.ts][clusterscreatesample] | create an HCI cluster. x-ms-original-file: 2026-04-01-preview/CreateCluster.json | -| [clustersDeleteSample.ts][clustersdeletesample] | delete an HCI cluster. x-ms-original-file: 2026-04-01-preview/DeleteCluster.json | -| [clustersExtendSoftwareAssuranceBenefitSample.ts][clustersextendsoftwareassurancebenefitsample] | extends Software Assurance Benefit to a cluster x-ms-original-file: 2026-04-01-preview/ExtendSoftwareAssuranceBenefit.json | -| [clustersGetSample.ts][clustersgetsample] | get HCI cluster. x-ms-original-file: 2026-04-01-preview/GetCluster.json | -| [clustersListByResourceGroupSample.ts][clusterslistbyresourcegroupsample] | list all HCI clusters in a resource group. x-ms-original-file: 2026-04-01-preview/ListClustersByResourceGroup.json | -| [clustersListBySubscriptionSample.ts][clusterslistbysubscriptionsample] | list all HCI clusters in a subscription. x-ms-original-file: 2026-04-01-preview/ListClustersBySubscription.json | -| [clustersTriggerLogCollectionSample.ts][clusterstriggerlogcollectionsample] | trigger Log Collection on a cluster x-ms-original-file: 2026-04-01-preview/TriggerLogCollection.json | -| [clustersUpdateSample.ts][clustersupdatesample] | update an HCI cluster. x-ms-original-file: 2026-04-01-preview/UpdateCluster.json | -| [clustersUpdateSecretsLocationsSample.ts][clustersupdatesecretslocationssample] | update cluster secrets locations. x-ms-original-file: 2026-04-01-preview/Clusters_UpdateSecretsLocations.json | -| [clustersUploadCertificateSample.ts][clustersuploadcertificatesample] | upload certificate. x-ms-original-file: 2026-04-01-preview/UploadCertificate.json | -| [deploymentSettingsCreateOrUpdateSample.ts][deploymentsettingscreateorupdatesample] | create a DeploymentSetting x-ms-original-file: 2026-04-01-preview/PutDeploymentSettings.json | -| [deploymentSettingsDeleteSample.ts][deploymentsettingsdeletesample] | delete a DeploymentSetting x-ms-original-file: 2026-04-01-preview/DeleteDeploymentSettings.json | -| [deploymentSettingsGetSample.ts][deploymentsettingsgetsample] | get a DeploymentSetting x-ms-original-file: 2026-04-01-preview/GetDeploymentSettings.json | -| [deploymentSettingsListByClustersSample.ts][deploymentsettingslistbyclusterssample] | list DeploymentSetting resources by Clusters x-ms-original-file: 2026-04-01-preview/ListDeploymentSettingsByCluster.json | -| [devicePoolsClaimDevicesSample.ts][devicepoolsclaimdevicessample] | claiming devices of the pool. x-ms-original-file: 2026-04-01-preview/DevicePools_ClaimDevices_MaximumSet_Gen.json | -| [devicePoolsCreateOrUpdateSample.ts][devicepoolscreateorupdatesample] | create a DevicePool x-ms-original-file: 2026-04-01-preview/DevicePools_CreateOrUpdate.json | -| [devicePoolsDeleteSample.ts][devicepoolsdeletesample] | delete a DevicePool x-ms-original-file: 2026-04-01-preview/DevicePools_Delete_MaximumSet_Gen.json | -| [devicePoolsGetSample.ts][devicepoolsgetsample] | get a DevicePool x-ms-original-file: 2026-04-01-preview/DevicePools_Get_MaximumSet_Gen.json | -| [devicePoolsListByResourceGroupSample.ts][devicepoolslistbyresourcegroupsample] | list all device pools in a resource group. x-ms-original-file: 2026-04-01-preview/DevicePools_ListByResourceGroup.json | -| [devicePoolsListBySubscriptionSample.ts][devicepoolslistbysubscriptionsample] | list all device pools in a subscription. x-ms-original-file: 2026-04-01-preview/DevicePools_ListBySubscription.json | -| [devicePoolsReleaseDevicesSample.ts][devicepoolsreleasedevicessample] | releasing devices of the pool. x-ms-original-file: 2026-04-01-preview/DevicePools_ReleaseDevices_MaximumSet_Gen.json | -| [devicePoolsUpdateSample.ts][devicepoolsupdatesample] | update a devicePool x-ms-original-file: 2026-04-01-preview/DevicePools_Update_MaximumSet_Gen.json | -| [edgeDeviceJobsCreateOrUpdateSample.ts][edgedevicejobscreateorupdatesample] | create a EdgeDeviceJob x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_CreateOrUpdate_CollectLog.json | -| [edgeDeviceJobsDeleteSample.ts][edgedevicejobsdeletesample] | delete a EdgeDeviceJob x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_Delete.json | -| [edgeDeviceJobsGetSample.ts][edgedevicejobsgetsample] | get a EdgeDeviceJob x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_Get_RemoteSupport.json | -| [edgeDeviceJobsListByEdgeDeviceSample.ts][edgedevicejobslistbyedgedevicesample] | list EdgeDeviceJob resources by EdgeDevice x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_ListByEdgeDevice.json | -| [edgeDevicesCreateOrUpdateSample.ts][edgedevicescreateorupdatesample] | create a EdgeDevice x-ms-original-file: 2026-04-01-preview/CreateHciEdgeDevice.json | -| [edgeDevicesDeleteSample.ts][edgedevicesdeletesample] | delete a EdgeDevice x-ms-original-file: 2026-04-01-preview/DeleteEdgeDevices.json | -| [edgeDevicesGetSample.ts][edgedevicesgetsample] | get a EdgeDevice x-ms-original-file: 2026-04-01-preview/GetEdgeDevices.json | -| [edgeDevicesListSample.ts][edgedeviceslistsample] | list EdgeDevice resources by parent x-ms-original-file: 2026-04-01-preview/ListEdgeDevices.json | -| [edgeDevicesValidateSample.ts][edgedevicesvalidatesample] | a long-running resource action. x-ms-original-file: 2026-04-01-preview/ValidateEdgeDevices.json | -| [edgeMachineJobsCreateOrUpdateSample.ts][edgemachinejobscreateorupdatesample] | create a EdgeMachineJob x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_CollectLog.json | -| [edgeMachineJobsDeleteSample.ts][edgemachinejobsdeletesample] | delete a EdgeMachineJob x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Delete_MaximumSet_Gen.json | -| [edgeMachineJobsGetSample.ts][edgemachinejobsgetsample] | get a EdgeMachineJob x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Get_CollectLog.json | -| [edgeMachineJobsListSample.ts][edgemachinejobslistsample] | list EdgeMachineJob resources by EdgeMachines x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_List_MaximumSet_Gen.json | -| [edgeMachinesCreateOrUpdateSample.ts][edgemachinescreateorupdatesample] | create or update an edge machine. x-ms-original-file: 2026-04-01-preview/EdgeMachines_CreateOrUpdate.json | -| [edgeMachinesDeleteSample.ts][edgemachinesdeletesample] | delete an edge machine. x-ms-original-file: 2026-04-01-preview/EdgeMachines_Delete.json | -| [edgeMachinesGetSample.ts][edgemachinesgetsample] | get an edge machine. x-ms-original-file: 2026-04-01-preview/EdgeMachines_Get.json | -| [edgeMachinesListByResourceGroupSample.ts][edgemachineslistbyresourcegroupsample] | list all edge machines in a resource group. x-ms-original-file: 2026-04-01-preview/EdgeMachines_ListByResourceGroup.json | -| [edgeMachinesListBySubscriptionSample.ts][edgemachineslistbysubscriptionsample] | list all edge machines in a subscription. x-ms-original-file: 2026-04-01-preview/EdgeMachines_ListBySubscription.json | -| [edgeMachinesUpdateSample.ts][edgemachinesupdatesample] | update an edge machine. x-ms-original-file: 2026-04-01-preview/EdgeMachines_Update.json | -| [extensionsCreateSample.ts][extensionscreatesample] | create Extension for HCI cluster. x-ms-original-file: 2026-04-01-preview/PutExtension.json | -| [extensionsDeleteSample.ts][extensionsdeletesample] | delete particular Arc Extension of HCI Cluster. x-ms-original-file: 2026-04-01-preview/DeleteExtension.json | -| [extensionsGetSample.ts][extensionsgetsample] | get particular Arc Extension of HCI Cluster. x-ms-original-file: 2026-04-01-preview/GetExtension.json | -| [extensionsListByArcSettingSample.ts][extensionslistbyarcsettingsample] | list all Extensions under ArcSetting resource. x-ms-original-file: 2026-04-01-preview/ListExtensionsByArcSetting.json | -| [extensionsUpdateSample.ts][extensionsupdatesample] | update Extension for HCI cluster. x-ms-original-file: 2026-04-01-preview/PatchExtension.json | -| [extensionsUpgradeSample.ts][extensionsupgradesample] | upgrade a particular Arc Extension of HCI Cluster. x-ms-original-file: 2026-04-01-preview/Extensions_Upgrade.json | -| [kubernetesVersionsListBySubscriptionLocationResourceSample.ts][kubernetesversionslistbysubscriptionlocationresourcesample] | list all kubernetes versions. x-ms-original-file: 2026-04-01-preview/KubernetesVersions_ListBySubscriptionLocationResource_MaximumSet_Gen.json | -| [offersGetSample.ts][offersgetsample] | get Offer resource details within a publisher of HCI Cluster. x-ms-original-file: 2026-04-01-preview/GetOffer.json | -| [offersListByClusterSample.ts][offerslistbyclustersample] | list Offers available across publishers for the HCI Cluster. x-ms-original-file: 2026-04-01-preview/ListOffersByCluster.json | -| [offersListByPublisherSample.ts][offerslistbypublishersample] | list Offers available for a publisher within the HCI Cluster. x-ms-original-file: 2026-04-01-preview/ListOffersByPublisher.json | -| [operationsListSample.ts][operationslistsample] | list the operations for the provider x-ms-original-file: 2026-04-01-preview/Operations_List.json | -| [osImagesGetSample.ts][osimagesgetsample] | get a os image. x-ms-original-file: 2026-04-01-preview/OsImages_Get_MaximumSet_Gen.json | -| [osImagesListBySubscriptionLocationResourceSample.ts][osimageslistbysubscriptionlocationresourcesample] | list all os images. x-ms-original-file: 2026-04-01-preview/OsImages_ListBySubscriptionLocationResource_MaximumSet_Gen.json | -| [ownershipVouchersValidateSample.ts][ownershipvouchersvalidatesample] | validates ownership vouchers. x-ms-original-file: 2026-04-01-preview/ValidateOwnershipVouchers_ByResourceGroup.json | -| [platformUpdatesGetSample.ts][platformupdatesgetsample] | get a platform update. x-ms-original-file: 2026-04-01-preview/PlatformUpdates_Get_MaximumSet_Gen.json | -| [platformUpdatesListSample.ts][platformupdateslistsample] | list all platform updates. x-ms-original-file: 2026-04-01-preview/PlatformUpdates_ListByLocation_MaximumSet_Gen.json | -| [publishersGetSample.ts][publishersgetsample] | get Publisher resource details of HCI Cluster. x-ms-original-file: 2026-04-01-preview/GetPublisher.json | -| [publishersListByClusterSample.ts][publisherslistbyclustersample] | list Publishers available for the HCI Cluster. x-ms-original-file: 2026-04-01-preview/ListPublishersByCluster.json | -| [securitySettingsCreateOrUpdateSample.ts][securitysettingscreateorupdatesample] | create a security setting x-ms-original-file: 2026-04-01-preview/PutSecuritySettings.json | -| [securitySettingsDeleteSample.ts][securitysettingsdeletesample] | delete a SecuritySetting x-ms-original-file: 2026-04-01-preview/DeleteSecuritySettings.json | -| [securitySettingsGetSample.ts][securitysettingsgetsample] | get a SecuritySetting x-ms-original-file: 2026-04-01-preview/GetSecuritySettings.json | -| [securitySettingsListByClustersSample.ts][securitysettingslistbyclusterssample] | list SecuritySetting resources by Clusters x-ms-original-file: 2026-04-01-preview/ListSecuritySettingsByCluster.json | -| [skusGetSample.ts][skusgetsample] | get SKU resource details within a offer of HCI Cluster. x-ms-original-file: 2026-04-01-preview/GetSku.json | -| [skusListByOfferSample.ts][skuslistbyoffersample] | list Skus available for a offer within the HCI Cluster. x-ms-original-file: 2026-04-01-preview/ListSkusByOffer.json | -| [updateContentsGetSample.ts][updatecontentsgetsample] | gets content for an update. x-ms-original-file: 2026-04-01-preview/UpdateContents_Get_MaximumSet_Gen.json | -| [updateContentsListSample.ts][updatecontentslistsample] | list all update contents. x-ms-original-file: 2026-04-01-preview/UpdateContents_ListByLocation_MaximumSet_Gen.json | -| [updateRunsDeleteSample.ts][updaterunsdeletesample] | delete specified Update Run x-ms-original-file: 2026-04-01-preview/DeleteUpdateRuns.json | -| [updateRunsGetSample.ts][updaterunsgetsample] | get the Update run for a specified update x-ms-original-file: 2026-04-01-preview/GetUpdateRuns.json | -| [updateRunsListSample.ts][updaterunslistsample] | list all Update runs for a specified update x-ms-original-file: 2026-04-01-preview/ListUpdateRuns.json | -| [updateRunsPutSample.ts][updaterunsputsample] | put Update runs for a specified update x-ms-original-file: 2026-04-01-preview/PutUpdateRuns.json | -| [updateSummariesDeleteSample.ts][updatesummariesdeletesample] | delete Update Summaries x-ms-original-file: 2026-04-01-preview/DeleteUpdateSummaries.json | -| [updateSummariesGetSample.ts][updatesummariesgetsample] | get all Update summaries under the HCI cluster x-ms-original-file: 2026-04-01-preview/GetUpdateSummaries.json | -| [updateSummariesListSample.ts][updatesummarieslistsample] | list all Update summaries under the HCI cluster x-ms-original-file: 2026-04-01-preview/ListUpdateSummaries.json | -| [updateSummariesOperationGroupCheckHealthSample.ts][updatesummariesoperationgroupcheckhealthsample] | check health of UpdateSummaries x-ms-original-file: 2026-04-01-preview/UpdateSummaries_CheckHealth.json | -| [updateSummariesOperationGroupCheckUpdatesSample.ts][updatesummariesoperationgroupcheckupdatessample] | check for updates x-ms-original-file: 2026-04-01-preview/UpdateSummaries_CheckUpdates.json | -| [updateSummariesPutSample.ts][updatesummariesputsample] | put Update summaries under the HCI cluster x-ms-original-file: 2026-04-01-preview/PutUpdateSummaries.json | -| [updatesDeleteSample.ts][updatesdeletesample] | delete specified Update x-ms-original-file: 2026-04-01-preview/DeleteUpdates.json | -| [updatesGetSample.ts][updatesgetsample] | get specified Update x-ms-original-file: 2026-04-01-preview/GetUpdates.json | -| [updatesListSample.ts][updateslistsample] | list all Updates x-ms-original-file: 2026-04-01-preview/ListUpdates.json | -| [updatesPostSample.ts][updatespostsample] | apply Update x-ms-original-file: 2026-04-01-preview/PostUpdates.json | -| [updatesPrepareSample.ts][updatespreparesample] | prepare Update x-ms-original-file: 2026-04-01-preview/Updates_Prepare.json | -| [updatesPutSample.ts][updatesputsample] | put specified Update x-ms-original-file: 2026-04-01-preview/PutUpdates.json | -| [validatedSolutionRecipesGetSample.ts][validatedsolutionrecipesgetsample] | get a validated solution recipe. x-ms-original-file: 2026-04-01-preview/ValidatedSolutionRecipes_Get.json | -| [validatedSolutionRecipesListBySubscriptionLocationResourceSample.ts][validatedsolutionrecipeslistbysubscriptionlocationresourcesample] | list all validated solution recipes. x-ms-original-file: 2026-04-01-preview/ValidatedSolutionRecipes_ListBySubscriptionLocationResource.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/arcSettingsConsentAndInstallDefaultExtensionsSample.js -``` - -Alternatively, run a single sample with the required environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -node dist/arcSettingsConsentAndInstallDefaultExtensionsSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[arcsettingsconsentandinstalldefaultextensionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsConsentAndInstallDefaultExtensionsSample.ts -[arcsettingscreateidentitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateIdentitySample.ts -[arcsettingscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateSample.ts -[arcsettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsDeleteSample.ts -[arcsettingsgeneratepasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGeneratePasswordSample.ts -[arcsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGetSample.ts -[arcsettingsinitializedisableprocesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsInitializeDisableProcessSample.ts -[arcsettingslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsListByClusterSample.ts -[arcsettingsreconcilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsReconcileSample.ts -[arcsettingsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsUpdateSample.ts -[clusterjobscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsCreateOrUpdateSample.ts -[clusterjobsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsDeleteSample.ts -[clusterjobsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsGetSample.ts -[clusterjobslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsListSample.ts -[clusterschangeringsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersChangeRingSample.ts -[clustersconfigureremotesupportsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersConfigureRemoteSupportSample.ts -[clusterscreateidentitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateIdentitySample.ts -[clusterscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateSample.ts -[clustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersDeleteSample.ts -[clustersextendsoftwareassurancebenefitsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersExtendSoftwareAssuranceBenefitSample.ts -[clustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersGetSample.ts -[clusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListByResourceGroupSample.ts -[clusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListBySubscriptionSample.ts -[clusterstriggerlogcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersTriggerLogCollectionSample.ts -[clustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUpdateSample.ts -[clustersupdatesecretslocationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUpdateSecretsLocationsSample.ts -[clustersuploadcertificatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUploadCertificateSample.ts -[deploymentsettingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsCreateOrUpdateSample.ts -[deploymentsettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsDeleteSample.ts -[deploymentsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsGetSample.ts -[deploymentsettingslistbyclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsListByClustersSample.ts -[devicepoolsclaimdevicessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsClaimDevicesSample.ts -[devicepoolscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsCreateOrUpdateSample.ts -[devicepoolsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsDeleteSample.ts -[devicepoolsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsGetSample.ts -[devicepoolslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsListByResourceGroupSample.ts -[devicepoolslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsListBySubscriptionSample.ts -[devicepoolsreleasedevicessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsReleaseDevicesSample.ts -[devicepoolsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsUpdateSample.ts -[edgedevicejobscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsCreateOrUpdateSample.ts -[edgedevicejobsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsDeleteSample.ts -[edgedevicejobsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsGetSample.ts -[edgedevicejobslistbyedgedevicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsListByEdgeDeviceSample.ts -[edgedevicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesCreateOrUpdateSample.ts -[edgedevicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesDeleteSample.ts -[edgedevicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesGetSample.ts -[edgedeviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesListSample.ts -[edgedevicesvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesValidateSample.ts -[edgemachinejobscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsCreateOrUpdateSample.ts -[edgemachinejobsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsDeleteSample.ts -[edgemachinejobsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsGetSample.ts -[edgemachinejobslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsListSample.ts -[edgemachinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesCreateOrUpdateSample.ts -[edgemachinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesDeleteSample.ts -[edgemachinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesGetSample.ts -[edgemachineslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesListByResourceGroupSample.ts -[edgemachineslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesListBySubscriptionSample.ts -[edgemachinesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesUpdateSample.ts -[extensionscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsCreateSample.ts -[extensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsDeleteSample.ts -[extensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsGetSample.ts -[extensionslistbyarcsettingsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsListByArcSettingSample.ts -[extensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpdateSample.ts -[extensionsupgradesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpgradeSample.ts -[kubernetesversionslistbysubscriptionlocationresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/kubernetesVersionsListBySubscriptionLocationResourceSample.ts -[offersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersGetSample.ts -[offerslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByClusterSample.ts -[offerslistbypublishersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByPublisherSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/operationsListSample.ts -[osimagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/osImagesGetSample.ts -[osimageslistbysubscriptionlocationresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/osImagesListBySubscriptionLocationResourceSample.ts -[ownershipvouchersvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/ownershipVouchersValidateSample.ts -[platformupdatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/platformUpdatesGetSample.ts -[platformupdateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/platformUpdatesListSample.ts -[publishersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersGetSample.ts -[publisherslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersListByClusterSample.ts -[securitysettingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsCreateOrUpdateSample.ts -[securitysettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsDeleteSample.ts -[securitysettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsGetSample.ts -[securitysettingslistbyclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsListByClustersSample.ts -[skusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusGetSample.ts -[skuslistbyoffersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusListByOfferSample.ts -[updatecontentsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateContentsGetSample.ts -[updatecontentslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateContentsListSample.ts -[updaterunsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsDeleteSample.ts -[updaterunsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsGetSample.ts -[updaterunslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsListSample.ts -[updaterunsputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsPutSample.ts -[updatesummariesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesDeleteSample.ts -[updatesummariesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesGetSample.ts -[updatesummarieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesListSample.ts -[updatesummariesoperationgroupcheckhealthsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesOperationGroupCheckHealthSample.ts -[updatesummariesoperationgroupcheckupdatessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesOperationGroupCheckUpdatesSample.ts -[updatesummariesputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesPutSample.ts -[updatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesDeleteSample.ts -[updatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesGetSample.ts -[updateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesListSample.ts -[updatespostsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPostSample.ts -[updatespreparesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPrepareSample.ts -[updatesputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPutSample.ts -[validatedsolutionrecipesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/validatedSolutionRecipesGetSample.ts -[validatedsolutionrecipeslistbysubscriptionlocationresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/validatedSolutionRecipesListBySubscriptionLocationResourceSample.ts -[apiref]: https://learn.microsoft.com/javascript/api/@azure/arm-azurestackhci?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/azurestackhci/arm-azurestackhci/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsCreateOrUpdateSample.ts deleted file mode 100644 index f2ac9e1e46c2..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsCreateOrUpdateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to create a ClusterJob - * - * @summary create a ClusterJob - * x-ms-original-file: 2026-04-01-preview/ClusterJobs_CreateOrUpdate_ConfigureCVM.json - */ -async function clusterJobsCreateOrUpdateConfigureCVMJob(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.clusterJobs.createOrUpdate("test-rg", "myCluster", "ConfigureCVM", { - properties: { - jobType: "ConfigureCVM", - deploymentMode: "Deploy", - confidentialVmIntent: "Enable", - }, - }); - console.log(result); -} - -/** - * This sample demonstrates how to create a ClusterJob - * - * @summary create a ClusterJob - * x-ms-original-file: 2026-04-01-preview/ClusterJobs_CreateOrUpdate_ConfigureSdnIntegration_Enable.json - */ -async function clusterJobsCreateOrUpdateConfigureSdnIntegrationEnable(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.clusterJobs.createOrUpdate( - "test-rg", - "myCluster", - "configureSdnIntegration", - { - properties: { - jobType: "ConfigureSdnIntegration", - deploymentMode: "Deploy", - sdnIntegrationIntent: "Enable", - }, - }, - ); - console.log(result); -} - -async function main(): Promise { - await clusterJobsCreateOrUpdateConfigureCVMJob(); - await clusterJobsCreateOrUpdateConfigureSdnIntegrationEnable(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsDeleteSample.ts deleted file mode 100644 index fd20b7d30851..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsDeleteSample.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to delete a ClusterJob - * - * @summary delete a ClusterJob - * x-ms-original-file: 2026-04-01-preview/ClusterJobs_Delete.json - */ -async function clusterJobsDelete(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "6D37FF61-4C93-4377-B06B-FC6D6D561A7D"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.clusterJobs.delete("rghci", "3-Vz3LSRO5Q6q8EV-PKs8-5E", "configureSdnIntegration"); -} - -async function main(): Promise { - await clusterJobsDelete(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsGetSample.ts deleted file mode 100644 index 571ecbef0568..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a ClusterJob - * - * @summary get a ClusterJob - * x-ms-original-file: 2026-04-01-preview/ClusterJobs_Get_ConfigureSdnIntegrationJob.json - */ -async function clusterJobsGetConfigureSdnIntegrationJob(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "6D37FF61-4C93-4377-B06B-FC6D6D561A7D"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.clusterJobs.get("rghci", "Y-k0MG", "configureSdnIntegration"); - console.log(result); -} - -async function main(): Promise { - await clusterJobsGetConfigureSdnIntegrationJob(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsListSample.ts deleted file mode 100644 index 96126e59dd3a..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clusterJobsListSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list ClusterJob resources by Clusters - * - * @summary list ClusterJob resources by Clusters - * x-ms-original-file: 2026-04-01-preview/ClusterJobs_List.json - */ -async function clusterJobsList(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "6D37FF61-4C93-4377-B06B-FC6D6D561A7D"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.clusterJobs.list("rghci", "Ql40O4-I77S")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await clusterJobsList(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersChangeRingSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersChangeRingSample.ts deleted file mode 100644 index b8e950a2cc98..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersChangeRingSample.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to changes ring of a cluster - * - * @summary changes ring of a cluster - * x-ms-original-file: 2026-04-01-preview/ChangeClusterRing.json - */ -async function changeClusterRing(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.clusters.changeRing("test-rg", "myCluster", { - properties: { targetRing: "Insider" }, - }); - console.log(result); -} - -async function main(): Promise { - await changeClusterRing(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsCreateOrUpdateSample.ts deleted file mode 100644 index 8660ee88fe71..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsCreateOrUpdateSample.ts +++ /dev/null @@ -1,333 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to create a DeploymentSetting - * - * @summary create a DeploymentSetting - * x-ms-original-file: 2026-04-01-preview/PutDeploymentSettings.json - */ -async function createDeploymentSettings(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.deploymentSettings.createOrUpdate("test-rg", "myCluster", "default", { - arcNodeResourceIds: [ - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", - ], - deploymentConfiguration: { - scaleUnits: [ - { - deploymentData: { - adouPath: "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com", - cluster: { - name: "testHCICluster", - azureServiceEndpoint: "core.windows.net", - cloudAccountName: "myasestoragacct", - witnessPath: "Cloud", - witnessType: "Cloud", - }, - domainFqdn: "ASZ1PLab8.nttest.microsoft.com", - hostNetwork: { - enableStorageAutoIp: false, - intents: [ - { - name: "Compute_Management", - adapter: ["Port2"], - adapterPropertyOverrides: { - jumboPacket: "1514", - networkDirect: "Enabled", - networkDirectTechnology: "iWARP", - }, - overrideAdapterProperty: false, - overrideQosPolicy: false, - overrideVirtualSwitchConfiguration: false, - qosPolicyOverrides: { - bandwidthPercentageSMB: "50", - priorityValue8021ActionCluster: "7", - priorityValue8021ActionSMB: "3", - }, - trafficType: ["Compute", "Management"], - virtualSwitchConfigurationOverrides: { - enableIov: "True", - loadBalancingAlgorithm: "HyperVPort", - }, - }, - ], - storageConnectivitySwitchless: true, - storageNetworks: [ - { - name: "Storage1Network", - networkAdapterName: "Port3", - storageAdapterIPInfo: [ - { - ipv4Address: "10.57.48.60", - physicalNode: "string", - subnetMask: "255.255.248.0", - }, - ], - vlanId: "5", - }, - ], - }, - infrastructureNetwork: [ - { - dnsServerConfig: "UseDnsServer", - dnsServers: ["10.57.50.90"], - gateway: "255.255.248.0", - ipPools: [{ endingAddress: "10.57.48.66", startingAddress: "10.57.48.60" }], - subnetMask: "255.255.248.0", - }, - ], - isManagementCluster: true, - namingPrefix: "ms169", - observability: { - episodicDataUpload: true, - euLocation: false, - streamingDataClient: true, - }, - optionalServices: { customLocation: "customLocationName" }, - physicalNodes: [ - { name: "ms169host", ipv4Address: "10.57.51.224" }, - { name: "ms154host", ipv4Address: "10.57.53.236" }, - ], - sdnIntegration: { - networkController: { - macAddressPoolStart: "00-0D-3A-1B-C7-21", - macAddressPoolStop: "00-0D-3A-1B-C7-29", - networkVirtualizationEnabled: true, - }, - }, - secrets: [ - { - eceSecretName: "BMCAdminUserCred", - secretLocation: - "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", - secretName: "cluster1-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", - }, - { - eceSecretName: "AzureStackLCMUserCredential", - secretLocation: - "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4c", - secretName: - "cluster2-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", - }, - ], - secretsLocation: - "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123", - securitySettings: { - bitlockerBootVolume: true, - bitlockerDataVolumes: true, - credentialGuardEnforced: false, - driftControlEnforced: true, - drtmProtection: true, - hvciProtection: true, - sideChannelMitigationEnforced: true, - smbClusterEncryption: false, - smbSigningEnforced: true, - wdacEnforced: true, - }, - storage: { configurationMode: "Express" }, - }, - sbePartnerInfo: { - credentialList: [ - { - eceSecretName: "DownloadConnectorCred", - secretLocation: - "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", - secretName: "cluster1-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", - }, - ], - partnerProperties: [ - { name: "EnableBMCIpV6", value: "false" }, - { name: "PhoneHomePort", value: "1653" }, - { name: "BMCSecurityState", value: "HighSecurity" }, - ], - sbeDeploymentInfo: { - family: "Gen5", - publisher: "Contoso", - sbeManifestCreationDate: new Date("2023-07-25T02:40:33Z"), - sbeManifestSource: "default", - version: "4.0.2309.13", - }, - }, - }, - ], - version: "string", - }, - deploymentMode: "Deploy", - operationType: "ClusterProvisioning", - }); - console.log(result); -} - -/** - * This sample demonstrates how to create a DeploymentSetting - * - * @summary create a DeploymentSetting - * x-ms-original-file: 2026-04-01-preview/PutDeploymentSettingsWithADLess.json - */ -async function createDeploymentSettingsWithoutActiveDirectoryIntegration(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.deploymentSettings.createOrUpdate("test-rg", "myCluster", "default", { - arcNodeResourceIds: [ - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", - ], - deploymentConfiguration: { - scaleUnits: [ - { - deploymentData: { - adouPath: "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com", - cluster: { - name: "testHCICluster", - azureServiceEndpoint: "core.windows.net", - cloudAccountName: "myasestoragacct", - witnessPath: "Cloud", - witnessType: "Cloud", - }, - domainFqdn: "ASZ1PLab8.nttest.microsoft.com", - hostNetwork: { - enableStorageAutoIp: false, - intents: [ - { - name: "Compute_Management", - adapter: ["Port2"], - adapterPropertyOverrides: { - jumboPacket: "1514", - networkDirect: "Enabled", - networkDirectTechnology: "iWARP", - }, - overrideAdapterProperty: false, - overrideQosPolicy: false, - overrideVirtualSwitchConfiguration: false, - qosPolicyOverrides: { - bandwidthPercentageSMB: "50", - priorityValue8021ActionCluster: "7", - priorityValue8021ActionSMB: "3", - }, - trafficType: ["Compute", "Management"], - virtualSwitchConfigurationOverrides: { - enableIov: "True", - loadBalancingAlgorithm: "HyperVPort", - }, - }, - ], - storageConnectivitySwitchless: true, - storageNetworks: [ - { - name: "Storage1Network", - networkAdapterName: "Port3", - storageAdapterIPInfo: [ - { - ipv4Address: "10.57.48.60", - physicalNode: "string", - subnetMask: "255.255.248.0", - }, - ], - vlanId: "5", - }, - ], - }, - identityProvider: "LocalIdentity", - infrastructureNetwork: [ - { - dnsZones: [{ dnsForwarder: ["192.168.1.1"], dnsZoneName: "contoso.com" }], - gateway: "255.255.248.0", - ipPools: [{ endingAddress: "10.57.48.66", startingAddress: "10.57.48.60" }], - subnetMask: "255.255.248.0", - }, - ], - namingPrefix: "ms169", - observability: { - episodicDataUpload: true, - euLocation: false, - streamingDataClient: true, - }, - optionalServices: { customLocation: "customLocationName" }, - physicalNodes: [ - { name: "ms169host", ipv4Address: "10.57.51.224" }, - { name: "ms154host", ipv4Address: "10.57.53.236" }, - ], - sdnIntegration: { - networkController: { - macAddressPoolStart: "00-0D-3A-1B-C7-21", - macAddressPoolStop: "00-0D-3A-1B-C7-29", - networkVirtualizationEnabled: true, - }, - }, - secrets: [ - { - eceSecretName: "BMCAdminUserCred", - secretLocation: - "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", - secretName: "cluster1-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", - }, - { - eceSecretName: "AzureStackLCMUserCredential", - secretLocation: - "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4c", - secretName: - "cluster2-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", - }, - ], - secretsLocation: - "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123", - securitySettings: { - bitlockerBootVolume: true, - bitlockerDataVolumes: true, - credentialGuardEnforced: false, - driftControlEnforced: true, - drtmProtection: true, - hvciProtection: true, - sideChannelMitigationEnforced: true, - smbClusterEncryption: false, - smbSigningEnforced: true, - wdacEnforced: true, - }, - storage: { configurationMode: "Express" }, - }, - sbePartnerInfo: { - credentialList: [ - { - eceSecretName: "DownloadConnectorCred", - secretLocation: - "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", - secretName: "cluster1-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", - }, - ], - partnerProperties: [ - { name: "EnableBMCIpV6", value: "false" }, - { name: "PhoneHomePort", value: "1653" }, - { name: "BMCSecurityState", value: "HighSecurity" }, - ], - sbeDeploymentInfo: { - family: "Gen5", - publisher: "Contoso", - sbeManifestCreationDate: new Date("2023-07-25T02:40:33Z"), - sbeManifestSource: "default", - version: "4.0.2309.13", - }, - }, - }, - ], - version: "string", - }, - deploymentMode: "Deploy", - operationType: "ClusterProvisioning", - }); - console.log(result); -} - -async function main(): Promise { - await createDeploymentSettings(); - await createDeploymentSettingsWithoutActiveDirectoryIntegration(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsClaimDevicesSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsClaimDevicesSample.ts deleted file mode 100644 index f49738d8e1ff..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsClaimDevicesSample.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to claiming devices of the pool. - * - * @summary claiming devices of the pool. - * x-ms-original-file: 2026-04-01-preview/DevicePools_ClaimDevices_MaximumSet_Gen.json - */ -async function devicePoolsClaimDevicesMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.devicePools.claimDevices("ArcInstance-rg", "ptfebvgxxqllx", { - devices: [ - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/edgeMachines/machine-1", - ], - claimedBy: - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/clusters/cluster1", - }); -} - -async function main(): Promise { - await devicePoolsClaimDevicesMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsCreateOrUpdateSample.ts deleted file mode 100644 index bd5af35a2687..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsCreateOrUpdateSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to create a DevicePool - * - * @summary create a DevicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_CreateOrUpdate.json - */ -async function devicePoolsCreateOrUpdate(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.devicePools.createOrUpdate("ArcInstance-rg", "devicePool-1", { - properties: {}, - location: "eastus", - }); - console.log(result); -} - -/** - * This sample demonstrates how to create a DevicePool - * - * @summary create a DevicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_CreateOrUpdate_MaximumSet_Gen.json - */ -async function devicePoolsCreateOrUpdateMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.devicePools.createOrUpdate("ArcInstance-rg", "devicePool1", { - properties: {}, - location: "eastus", - }); - console.log(result); -} - -async function main(): Promise { - await devicePoolsCreateOrUpdate(); - await devicePoolsCreateOrUpdateMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsDeleteSample.ts deleted file mode 100644 index adbf60cc0e0f..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsDeleteSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to delete a DevicePool - * - * @summary delete a DevicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_Delete_MaximumSet_Gen.json - */ -async function devicePoolsDeleteMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.devicePools.delete("ArcInstance-rg", "devicePool1"); -} - -/** - * This sample demonstrates how to delete a DevicePool - * - * @summary delete a DevicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_Delete_MinimumSet_Gen.json - */ -async function devicePoolsDeleteMinimumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.devicePools.delete("ArcInstance-rg", "devicePool1"); -} - -async function main(): Promise { - await devicePoolsDeleteMaximumSet(); - await devicePoolsDeleteMinimumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsGetSample.ts deleted file mode 100644 index e07b4bb423e1..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a DevicePool - * - * @summary get a DevicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_Get_MaximumSet_Gen.json - */ -async function devicePoolsGetMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.devicePools.get("ArcInstance-rg", "fflisdaccdcoj"); - console.log(result); -} - -async function main(): Promise { - await devicePoolsGetMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsListByResourceGroupSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsListByResourceGroupSample.ts deleted file mode 100644 index d65da3c60d24..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsListByResourceGroupSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all device pools in a resource group. - * - * @summary list all device pools in a resource group. - * x-ms-original-file: 2026-04-01-preview/DevicePools_ListByResourceGroup.json - */ -async function listDevicePoolsInAGivenResourceGroup(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.devicePools.listByResourceGroup("test-rg")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await listDevicePoolsInAGivenResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsListBySubscriptionSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsListBySubscriptionSample.ts deleted file mode 100644 index 6ce12235088a..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsListBySubscriptionSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all device pools in a subscription. - * - * @summary list all device pools in a subscription. - * x-ms-original-file: 2026-04-01-preview/DevicePools_ListBySubscription.json - */ -async function listDevicePoolsInAGivenSubscription(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.devicePools.listBySubscription()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await listDevicePoolsInAGivenSubscription(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsReleaseDevicesSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsReleaseDevicesSample.ts deleted file mode 100644 index d56b22d55383..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsReleaseDevicesSample.ts +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to releasing devices of the pool. - * - * @summary releasing devices of the pool. - * x-ms-original-file: 2026-04-01-preview/DevicePools_ReleaseDevices_MaximumSet_Gen.json - */ -async function devicePoolsReleaseDevicesMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.devicePools.releaseDevices("ArcInstance-rg", "snbyzreoirqiz", { - devices: [ - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.AzureStackHCI/edgeMachines/machine-1", - ], - }); -} - -async function main(): Promise { - await devicePoolsReleaseDevicesMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsUpdateSample.ts deleted file mode 100644 index 5f90ee4eb017..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/devicePoolsUpdateSample.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to update a devicePool - * - * @summary update a devicePool - * x-ms-original-file: 2026-04-01-preview/DevicePools_Update_MaximumSet_Gen.json - */ -async function devicePoolsUpdateMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.devicePools.update("ArcInstance-rg", "devicePool1", { - tags: { key2335: "beth" }, - }); - console.log(result); -} - -async function main(): Promise { - await devicePoolsUpdateMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsCreateOrUpdateSample.ts deleted file mode 100644 index 4b7c4c40b9d3..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsCreateOrUpdateSample.ts +++ /dev/null @@ -1,248 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to create a EdgeMachineJob - * - * @summary create a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_CollectLog.json - */ -async function edgeMachineJobsCreateOrUpdateCollectLog(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.createOrUpdate( - "ArcInstance-rg", - "machine1", - "triggerLogCollection", - { properties: { jobType: "EdgeMachineJobProperties", deploymentMode: "Validate" } }, - ); - console.log(result); -} - -/** - * This sample demonstrates how to create a EdgeMachineJob - * - * @summary create a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_DownloadOs.json - */ -async function edgeMachineJobsCreateOrUpdateDownloadOs(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.createOrUpdate( - "ArcInstance-rg", - "machine1", - "DownloadOs", - { - properties: { - jobType: "DownloadOs", - deploymentMode: "Deploy", - downloadRequest: { - target: "AzureLinux", - osProfile: { - osName: "AzureLinux", - osType: "AzureLinux", - osVersion: "3.0", - osImageLocation: "https://aka.ms/aep/azlinux3.0", - vsrVersion: "1.0.0", - imageHash: "sha256:a8b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1", - gpgPubKey: - "LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tXG5WZXJzaW9uOiBHbnVQRyB2MlxuXG5tUUVOQkZYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYXG4tLS0tLUVORCBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0t", - }, - }, - }, - }, - ); - console.log(result); -} - -/** - * This sample demonstrates how to create a EdgeMachineJob - * - * @summary create a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_ProvisionOs.json - */ -async function edgeMachineJobsCreateOrUpdateProvisionOs(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.createOrUpdate( - "ArcInstance-rg", - "machine1", - "ProvisionOs", - { - properties: { - provisioningRequest: { - osProfile: { - osName: "AzureLinux", - osType: "AzureLinux", - osVersion: "3.0", - osImageLocation: "https://aka.ms/aep/azlinux3.0", - vsrVersion: "1.0.0", - imageHash: "sha256:a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456", - gpgPubKey: - "LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tXG5WZXJzaW9uOiBHbnVQRyB2MlxuXG5tUUVOQkZYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYXG4tLS0tLUVORCBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0t", - operationType: "Provision", - }, - userDetails: [ - { - userName: "edgeuser", - secretType: "KeyVault", - secretLocation: - "https://bhukumar-test-kv.vault.azure.net/secrets/edgeuser/7b2d7db11bad4e1599cb6a0f4d2b2e00", - sshPubKey: ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7... edgeuser@example.com"], - }, - ], - onboardingConfiguration: { - resourceId: - "/subscriptions/ff0aa6da-20f8-44fe-9aee-381c8e8a4aeb/resourceGroups/bhukumar-test-rg/providers/Microsoft.HybridCompute/machines/bkumar-t1", - location: "eastus", - tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47", - arcVirtualMachineId: "634b9db8-83e1-46ed-b391-c1614e2d0097", - type: "HybridComputeMachine", - }, - deviceConfiguration: { - network: { - networkAdapters: [ - { - ipAssignmentType: "Automatic", - ipAddress: "", - ipAddressRange: { startIp: "", endIp: "" }, - gateway: "", - subnetMask: "", - dnsAddressArray: ["8.8.8.8"], - vlanId: "0", - }, - ], - }, - hostName: "634b9db8-83e1-46ed-b391-c1614e2d0097", - webProxy: { connectionUri: "https://microsoft.com/a", port: "", bypassList: [] }, - time: { primaryTimeServer: "", secondaryTimeServer: "", timeZone: "UTC" }, - storage: { partitionSize: "30GB" }, - }, - target: "AzureLinux", - customConfiguration: - "eyJjdXN0b21Db25maWciOiAiZXhhbXBsZSBiYXNlNjQgZW5jb2RlZCBjb25maWcifQ==", - }, - jobType: "ProvisionOs", - deploymentMode: "Deploy", - }, - }, - ); - console.log(result); -} - -/** - * This sample demonstrates how to create a EdgeMachineJob - * - * @summary create a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_RemoteSupport.json - */ -async function edgeMachineJobsCreateOrUpdateRemoteSupport(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.createOrUpdate( - "ArcInstance-rg", - "machine1", - "RemoteSupport", - { - properties: { - jobType: "RemoteSupport", - accessLevel: "Diagnostics", - type: "Enable", - expirationTimestamp: new Date("2024-01-29T10:43:27.9471574Z"), - }, - }, - ); - console.log(result); -} - -/** - * This sample demonstrates how to create a EdgeMachineJob - * - * @summary create a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_CreateOrUpdate_UpdateOs.json - */ -async function edgeMachineJobsCreateOrUpdateUpdateOs(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.createOrUpdate( - "ArcInstance-rg", - "machine1", - "UpdateOs", - { - properties: { - provisioningRequest: { - osProfile: { - osName: "AzureLinux", - osType: "AzureLinux", - osVersion: "3.1", - osImageLocation: "https://aka.ms/aep/azlinux3.1", - vsrVersion: "1.1.0", - imageHash: "sha256:b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef12345678", - gpgPubKey: - "LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tXG5WZXJzaW9uOiBHbnVQRyB2MlxuXG5tUUVOQkZYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYXG4tLS0tLUVORCBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0t", - operationType: "Update", - }, - userDetails: [ - { - userName: "edgeuser", - secretType: "KeyVault", - secretLocation: - "https://bhukumar-test-kv.vault.azure.net/secrets/edgeuser/7b2d7db11bad4e1599cb6a0f4d2b2e00", - sshPubKey: ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7... edgeuser@example.com"], - }, - ], - onboardingConfiguration: { - resourceId: - "/subscriptions/ff0aa6da-20f8-44fe-9aee-381c8e8a4aeb/resourceGroups/bhukumar-test-rg/providers/Microsoft.HybridCompute/machines/bkumar-t1", - location: "eastus", - tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47", - arcVirtualMachineId: "634b9db8-83e1-46ed-b391-c1614e2d0097", - type: "HybridComputeMachine", - }, - deviceConfiguration: { - network: { - networkAdapters: [ - { - ipAssignmentType: "Automatic", - ipAddress: "", - ipAddressRange: { startIp: "", endIp: "" }, - gateway: "", - subnetMask: "", - dnsAddressArray: ["8.8.8.8"], - vlanId: "0", - }, - ], - }, - hostName: "634b9db8-83e1-46ed-b391-c1614e2d0097", - webProxy: { connectionUri: "https://microsoft.com/a", port: "", bypassList: [] }, - time: { primaryTimeServer: "", secondaryTimeServer: "", timeZone: "UTC" }, - }, - target: "AzureLinux", - customConfiguration: - "eyJjdXN0b21Db25maWciOiAiZXhhbXBsZSBiYXNlNjQgZW5jb2RlZCBjb25maWcifQ==", - }, - jobType: "ProvisionOs", - deploymentMode: "Deploy", - }, - }, - ); - console.log(result); -} - -async function main(): Promise { - await edgeMachineJobsCreateOrUpdateCollectLog(); - await edgeMachineJobsCreateOrUpdateDownloadOs(); - await edgeMachineJobsCreateOrUpdateProvisionOs(); - await edgeMachineJobsCreateOrUpdateRemoteSupport(); - await edgeMachineJobsCreateOrUpdateUpdateOs(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsDeleteSample.ts deleted file mode 100644 index 7303effe19a2..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsDeleteSample.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to delete a EdgeMachineJob - * - * @summary delete a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Delete_MaximumSet_Gen.json - */ -async function edgeMachineJobsDeleteMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.edgeMachineJobs.delete("ArcInstance-rg", "machine1", "triggerLogCollection"); -} - -async function main(): Promise { - await edgeMachineJobsDeleteMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsGetSample.ts deleted file mode 100644 index fc08479ac9b1..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsGetSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a EdgeMachineJob - * - * @summary get a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Get_CollectLog.json - */ -async function edgeMachineJobsGetCollectLog(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.get("ArcInstance-rg", "machine1", "collectLog"); - console.log(result); -} - -/** - * This sample demonstrates how to get a EdgeMachineJob - * - * @summary get a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Get_ProvisionOs.json - */ -async function edgeMachineJobsGetProvisionOs(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.get("ArcInstance-rg", "machine1", "ProvisionOs"); - console.log(result); -} - -/** - * This sample demonstrates how to get a EdgeMachineJob - * - * @summary get a EdgeMachineJob - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_Get_RemoteSupport.json - */ -async function edgeMachineJobsGetRemoteSupport(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachineJobs.get("ArcInstance-rg", "machine1", "RemoteSupport"); - console.log(result); -} - -async function main(): Promise { - await edgeMachineJobsGetCollectLog(); - await edgeMachineJobsGetProvisionOs(); - await edgeMachineJobsGetRemoteSupport(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsListSample.ts deleted file mode 100644 index cca83abba1e1..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachineJobsListSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list EdgeMachineJob resources by EdgeMachines - * - * @summary list EdgeMachineJob resources by EdgeMachines - * x-ms-original-file: 2026-04-01-preview/EdgeMachineJobs_List_MaximumSet_Gen.json - */ -async function edgeMachineJobsListMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.edgeMachineJobs.list("ArcInstance-rg", "machine1")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await edgeMachineJobsListMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesCreateOrUpdateSample.ts deleted file mode 100644 index 6f9146da00b2..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesCreateOrUpdateSample.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to create or update an edge machine. - * - * @summary create or update an edge machine. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_CreateOrUpdate.json - */ -async function edgeMachinesCreateOrUpdate(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachines.createOrUpdate("ArcInstance-rg", "machine-1", { - properties: { - arcMachineResourceGroupId: - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg", - arcMachineResourceId: - "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", - }, - location: "eastus", - }); - console.log(result); -} - -async function main(): Promise { - await edgeMachinesCreateOrUpdate(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesDeleteSample.ts deleted file mode 100644 index 27c85256d357..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesDeleteSample.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to delete an edge machine. - * - * @summary delete an edge machine. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_Delete.json - */ -async function edgeMachinesDeleteMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - await client.edgeMachines.delete("ArcInstance-rg", "machine-1"); -} - -async function main(): Promise { - await edgeMachinesDeleteMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesGetSample.ts deleted file mode 100644 index ecc26c05ffda..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get an edge machine. - * - * @summary get an edge machine. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_Get.json - */ -async function edgeMachinesGetMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachines.get("ArcInstance-rg", "machine-1"); - console.log(result); -} - -async function main(): Promise { - await edgeMachinesGetMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesListByResourceGroupSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesListByResourceGroupSample.ts deleted file mode 100644 index 89113cc7fe3f..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesListByResourceGroupSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all edge machines in a resource group. - * - * @summary list all edge machines in a resource group. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_ListByResourceGroup.json - */ -async function listEdgeMachinesInAGivenResourceGroup(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.edgeMachines.listByResourceGroup("ArcInstance-rg")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await listEdgeMachinesInAGivenResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesListBySubscriptionSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesListBySubscriptionSample.ts deleted file mode 100644 index 96bf54cc5a7a..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesListBySubscriptionSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all edge machines in a subscription. - * - * @summary list all edge machines in a subscription. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_ListBySubscription.json - */ -async function listEdgeMachinesInAGivenSubscription(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.edgeMachines.listBySubscription()) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await listEdgeMachinesInAGivenSubscription(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesUpdateSample.ts deleted file mode 100644 index fd21db6aa8f2..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeMachinesUpdateSample.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to update an edge machine. - * - * @summary update an edge machine. - * x-ms-original-file: 2026-04-01-preview/EdgeMachines_Update.json - */ -async function edgeMachinesUpdate(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.edgeMachines.update("ArcInstance-rg", "machine-1", { - tags: { key2335: "beth" }, - }); - console.log(result); -} - -async function main(): Promise { - await edgeMachinesUpdate(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/kubernetesVersionsListBySubscriptionLocationResourceSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/kubernetesVersionsListBySubscriptionLocationResourceSample.ts deleted file mode 100644 index cd41f0bc7f5f..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/kubernetesVersionsListBySubscriptionLocationResourceSample.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all kubernetes versions. - * - * @summary list all kubernetes versions. - * x-ms-original-file: 2026-04-01-preview/KubernetesVersions_ListBySubscriptionLocationResource_MaximumSet_Gen.json - */ -async function kubernetesVersionsListBySubscriptionLocationResourceMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "ABB13722-6A68-4BFC-AE89-57B2EE91EA11"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.kubernetesVersions.listBySubscriptionLocationResource( - "westus2", - )) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await kubernetesVersionsListBySubscriptionLocationResourceMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/osImagesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/osImagesGetSample.ts deleted file mode 100644 index 508eb1ff7143..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/osImagesGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a os image. - * - * @summary get a os image. - * x-ms-original-file: 2026-04-01-preview/OsImages_Get_MaximumSet_Gen.json - */ -async function osImagesGetMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "5233F7FA-C5BA-41FD-A07F-C65BA2084316"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.osImages.get("arowdcr", "10.2408.0.1"); - console.log(result); -} - -async function main(): Promise { - await osImagesGetMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/osImagesListBySubscriptionLocationResourceSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/osImagesListBySubscriptionLocationResourceSample.ts deleted file mode 100644 index e0fbf9dd9c0c..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/osImagesListBySubscriptionLocationResourceSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all os images. - * - * @summary list all os images. - * x-ms-original-file: 2026-04-01-preview/OsImages_ListBySubscriptionLocationResource_MaximumSet_Gen.json - */ -async function osImagesListBySubscriptionLocationResourceMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "b8d594e5-51f3-4c11-9c54-a7771b81c712"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.osImages.listBySubscriptionLocationResource("westus2")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await osImagesListBySubscriptionLocationResourceMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/ownershipVouchersValidateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/ownershipVouchersValidateSample.ts deleted file mode 100644 index a2bd9e5a1d6a..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/ownershipVouchersValidateSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to validates ownership vouchers. - * - * @summary validates ownership vouchers. - * x-ms-original-file: 2026-04-01-preview/ValidateOwnershipVouchers_ByResourceGroup.json - */ -async function validateOwnershipVouchersInAGivenResourceGroup(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.ownershipVouchers.validate("ArcInstance-rg", "westus", { - ownershipVoucherDetails: [ - { ownershipVoucher: "Device Model Ownership content", ownerKeyType: "MicrosoftManaged" }, - ], - }); - console.log(result); -} - -async function main(): Promise { - await validateOwnershipVouchersInAGivenResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/platformUpdatesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/platformUpdatesGetSample.ts deleted file mode 100644 index c7cdf8e83ad3..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/platformUpdatesGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get a platform update. - * - * @summary get a platform update. - * x-ms-original-file: 2026-04-01-preview/PlatformUpdates_Get_MaximumSet_Gen.json - */ -async function platformUpdatesGetMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "b8d594e5-51f3-4c11-9c54-a7771b81c712"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.platformUpdates.get("westus2", "10.2408.0.1"); - console.log(result); -} - -async function main(): Promise { - await platformUpdatesGetMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/platformUpdatesListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/platformUpdatesListSample.ts deleted file mode 100644 index 3f3f45395134..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/platformUpdatesListSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all platform updates. - * - * @summary list all platform updates. - * x-ms-original-file: 2026-04-01-preview/PlatformUpdates_ListByLocation_MaximumSet_Gen.json - */ -async function platformUpdatesListByLocationMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "b8d594e5-51f3-4c11-9c54-a7771b81c712"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.platformUpdates.list("westus2")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await platformUpdatesListByLocationMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersGetSample.ts deleted file mode 100644 index f814ab11490f..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to get Publisher resource details of HCI Cluster. - * - * @summary get Publisher resource details of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/GetPublisher.json - */ -async function getPublisher(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.publishers.get("test-rg", "myCluster", "publisher1"); - console.log(result); -} - -async function main(): Promise { - await getPublisher(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersListByClusterSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersListByClusterSample.ts deleted file mode 100644 index 045a6d794aff..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersListByClusterSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list Publishers available for the HCI Cluster. - * - * @summary list Publishers available for the HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/ListPublishersByCluster.json - */ -async function listPublisherResourcesByHCICluster(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.publishers.listByCluster("test-rg", "myCluster")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await listPublisherResourcesByHCICluster(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateContentsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateContentsGetSample.ts deleted file mode 100644 index 4d7a712ca78b..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateContentsGetSample.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to gets content for an update. - * - * @summary gets content for an update. - * x-ms-original-file: 2026-04-01-preview/UpdateContents_Get_MaximumSet_Gen.json - */ -async function updateContentsGetMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "2886575D-173A-44A0-80E2-7DBA57F18B46"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const result = await client.updateContents.get("westus2", "12.2510.0.1"); - console.log(result); -} - -async function main(): Promise { - await updateContentsGetMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateContentsListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateContentsListSample.ts deleted file mode 100644 index 032f70c23d15..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateContentsListSample.ts +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to list all update contents. - * - * @summary list all update contents. - * x-ms-original-file: 2026-04-01-preview/UpdateContents_ListByLocation_MaximumSet_Gen.json - */ -async function updateContentsListByLocationMaximumSet(): Promise { - const credential = new DefaultAzureCredential(); - const subscriptionId = "2886575D-173A-44A0-80E2-7DBA57F18B46"; - const client = new AzureStackHCIClient(credential, subscriptionId); - const resArray = new Array(); - for await (const item of client.updateContents.list("westus2")) { - resArray.push(item); - } - - console.log(resArray); -} - -async function main(): Promise { - await updateContentsListByLocationMaximumSet(); -} - -main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/README.md b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/README.md new file mode 100644 index 000000000000..853f2fb29ced --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/README.md @@ -0,0 +1,186 @@ +# @azure/arm-azurestackhci client library samples for JavaScript + +These sample programs show how to use the JavaScript client libraries for @azure/arm-azurestackhci in some common scenarios. + +| **File Name** | **Description** | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | +| [arcSettingsConsentAndInstallDefaultExtensionsSample.js][arcsettingsconsentandinstalldefaultextensionssample] | add consent time for default extensions and initiate extensions installation x-ms-original-file: 2026-04-30/ConsentAndInstallDefaultExtensions.json | +| [arcSettingsCreateIdentitySample.js][arcsettingscreateidentitysample] | create Aad identity for arc settings. x-ms-original-file: 2026-04-30/CreateArcIdentity.json | +| [arcSettingsCreateSample.js][arcsettingscreatesample] | create ArcSetting for HCI cluster. x-ms-original-file: 2026-04-30/PutArcSetting.json | +| [arcSettingsDeleteSample.js][arcsettingsdeletesample] | delete ArcSetting resource details of HCI Cluster. x-ms-original-file: 2026-04-30/DeleteArcSetting.json | +| [arcSettingsGeneratePasswordSample.js][arcsettingsgeneratepasswordsample] | generate password for arc settings. x-ms-original-file: 2026-04-30/GeneratePassword.json | +| [arcSettingsGetSample.js][arcsettingsgetsample] | get ArcSetting resource details of HCI Cluster. x-ms-original-file: 2026-04-30/GetArcSetting.json | +| [arcSettingsInitializeDisableProcessSample.js][arcsettingsinitializedisableprocesssample] | initializes ARC Disable process on the cluster x-ms-original-file: 2026-04-30/InitializeDisableProcess.json | +| [arcSettingsListByClusterSample.js][arcsettingslistbyclustersample] | get ArcSetting resources of HCI Cluster. x-ms-original-file: 2026-04-30/ListArcSettingsByCluster.json | +| [arcSettingsReconcileSample.js][arcsettingsreconcilesample] | reconcile Arc Settings with information related to all nodes. x-ms-original-file: 2026-04-30/reconcileArcSettings.json | +| [arcSettingsUpdateSample.js][arcsettingsupdatesample] | update ArcSettings for HCI cluster. x-ms-original-file: 2026-04-30/PatchArcSetting.json | +| [clustersConfigureRemoteSupportSample.js][clustersconfigureremotesupportsample] | configure RemoteSupport on a cluster x-ms-original-file: 2026-04-30/ConfigureRemoteSupport.json | +| [clustersCreateIdentitySample.js][clusterscreateidentitysample] | create cluster identity. x-ms-original-file: 2026-04-30/CreateClusterIdentity.json | +| [clustersCreateSample.js][clusterscreatesample] | create an HCI cluster. x-ms-original-file: 2026-04-30/CreateCluster.json | +| [clustersDeleteSample.js][clustersdeletesample] | delete an HCI cluster. x-ms-original-file: 2026-04-30/DeleteCluster.json | +| [clustersExtendSoftwareAssuranceBenefitSample.js][clustersextendsoftwareassurancebenefitsample] | extends Software Assurance Benefit to a cluster x-ms-original-file: 2026-04-30/ExtendSoftwareAssuranceBenefit.json | +| [clustersGetSample.js][clustersgetsample] | get HCI cluster. x-ms-original-file: 2026-04-30/GetCluster.json | +| [clustersListByResourceGroupSample.js][clusterslistbyresourcegroupsample] | list all HCI clusters in a resource group. x-ms-original-file: 2026-04-30/ListClustersByResourceGroup.json | +| [clustersListBySubscriptionSample.js][clusterslistbysubscriptionsample] | list all HCI clusters in a subscription. x-ms-original-file: 2026-04-30/ListClustersBySubscription.json | +| [clustersTriggerLogCollectionSample.js][clusterstriggerlogcollectionsample] | trigger Log Collection on a cluster x-ms-original-file: 2026-04-30/TriggerLogCollection.json | +| [clustersUpdateSample.js][clustersupdatesample] | update an HCI cluster. x-ms-original-file: 2026-04-30/UpdateCluster.json | +| [clustersUpdateSecretsLocationsSample.js][clustersupdatesecretslocationssample] | update cluster secrets locations. x-ms-original-file: 2026-04-30/Clusters_UpdateSecretsLocations.json | +| [clustersUploadCertificateSample.js][clustersuploadcertificatesample] | upload certificate. x-ms-original-file: 2026-04-30/UploadCertificate.json | +| [deploymentSettingsCreateOrUpdateSample.js][deploymentsettingscreateorupdatesample] | create a DeploymentSetting x-ms-original-file: 2026-04-30/PutDeploymentSettings.json | +| [deploymentSettingsDeleteSample.js][deploymentsettingsdeletesample] | delete a DeploymentSetting x-ms-original-file: 2026-04-30/DeleteDeploymentSettings.json | +| [deploymentSettingsGetSample.js][deploymentsettingsgetsample] | get a DeploymentSetting x-ms-original-file: 2026-04-30/GetDeploymentSettings.json | +| [deploymentSettingsListByClustersSample.js][deploymentsettingslistbyclusterssample] | list DeploymentSetting resources by Clusters x-ms-original-file: 2026-04-30/ListDeploymentSettingsByCluster.json | +| [edgeDeviceJobsCreateOrUpdateSample.js][edgedevicejobscreateorupdatesample] | create a EdgeDeviceJob x-ms-original-file: 2026-04-30/EdgeDeviceJobs_CreateOrUpdate_CollectLog.json | +| [edgeDeviceJobsDeleteSample.js][edgedevicejobsdeletesample] | delete a EdgeDeviceJob x-ms-original-file: 2026-04-30/EdgeDeviceJobs_Delete.json | +| [edgeDeviceJobsGetSample.js][edgedevicejobsgetsample] | get a EdgeDeviceJob x-ms-original-file: 2026-04-30/EdgeDeviceJobs_Get_RemoteSupport.json | +| [edgeDeviceJobsListByEdgeDeviceSample.js][edgedevicejobslistbyedgedevicesample] | list EdgeDeviceJob resources by EdgeDevice x-ms-original-file: 2026-04-30/EdgeDeviceJobs_ListByEdgeDevice.json | +| [edgeDevicesCreateOrUpdateSample.js][edgedevicescreateorupdatesample] | create a EdgeDevice x-ms-original-file: 2026-04-30/CreateHciEdgeDevice.json | +| [edgeDevicesDeleteSample.js][edgedevicesdeletesample] | delete a EdgeDevice x-ms-original-file: 2026-04-30/DeleteEdgeDevices.json | +| [edgeDevicesGetSample.js][edgedevicesgetsample] | get a EdgeDevice x-ms-original-file: 2026-04-30/GetEdgeDevices.json | +| [edgeDevicesListSample.js][edgedeviceslistsample] | list EdgeDevice resources by parent x-ms-original-file: 2026-04-30/ListEdgeDevices.json | +| [edgeDevicesValidateSample.js][edgedevicesvalidatesample] | a long-running resource action. x-ms-original-file: 2026-04-30/ValidateEdgeDevices.json | +| [extensionsCreateSample.js][extensionscreatesample] | create Extension for HCI cluster. x-ms-original-file: 2026-04-30/PutExtension.json | +| [extensionsDeleteSample.js][extensionsdeletesample] | delete particular Arc Extension of HCI Cluster. x-ms-original-file: 2026-04-30/DeleteExtension.json | +| [extensionsGetSample.js][extensionsgetsample] | get particular Arc Extension of HCI Cluster. x-ms-original-file: 2026-04-30/GetExtension.json | +| [extensionsListByArcSettingSample.js][extensionslistbyarcsettingsample] | list all Extensions under ArcSetting resource. x-ms-original-file: 2026-04-30/ListExtensionsByArcSetting.json | +| [extensionsUpdateSample.js][extensionsupdatesample] | update Extension for HCI cluster. x-ms-original-file: 2026-04-30/PatchExtension.json | +| [extensionsUpgradeSample.js][extensionsupgradesample] | upgrade a particular Arc Extension of HCI Cluster. x-ms-original-file: 2026-04-30/Extensions_Upgrade.json | +| [offersGetSample.js][offersgetsample] | get Offer resource details within a publisher of HCI Cluster. x-ms-original-file: 2026-04-30/GetOffer.json | +| [offersListByClusterSample.js][offerslistbyclustersample] | list Offers available across publishers for the HCI Cluster. x-ms-original-file: 2026-04-30/ListOffersByCluster.json | +| [offersListByPublisherSample.js][offerslistbypublishersample] | list Offers available for a publisher within the HCI Cluster. x-ms-original-file: 2026-04-30/ListOffersByPublisher.json | +| [operationsListSample.js][operationslistsample] | list the operations for the provider x-ms-original-file: 2026-04-30/Operations_List.json | +| [securitySettingsCreateOrUpdateSample.js][securitysettingscreateorupdatesample] | create a security setting x-ms-original-file: 2026-04-30/PutSecuritySettings.json | +| [securitySettingsDeleteSample.js][securitysettingsdeletesample] | delete a SecuritySetting x-ms-original-file: 2026-04-30/DeleteSecuritySettings.json | +| [securitySettingsGetSample.js][securitysettingsgetsample] | get a SecuritySetting x-ms-original-file: 2026-04-30/GetSecuritySettings.json | +| [securitySettingsListByClustersSample.js][securitysettingslistbyclusterssample] | list SecuritySetting resources by Clusters x-ms-original-file: 2026-04-30/ListSecuritySettingsByCluster.json | +| [skusGetSample.js][skusgetsample] | get SKU resource details within a offer of HCI Cluster. x-ms-original-file: 2026-04-30/GetSku.json | +| [skusListByOfferSample.js][skuslistbyoffersample] | list Skus available for a offer within the HCI Cluster. x-ms-original-file: 2026-04-30/ListSkusByOffer.json | +| [updateRunsDeleteSample.js][updaterunsdeletesample] | delete specified Update Run x-ms-original-file: 2026-04-30/DeleteUpdateRuns.json | +| [updateRunsGetSample.js][updaterunsgetsample] | get the Update run for a specified update x-ms-original-file: 2026-04-30/GetUpdateRuns.json | +| [updateRunsListSample.js][updaterunslistsample] | list all Update runs for a specified update x-ms-original-file: 2026-04-30/ListUpdateRuns.json | +| [updateRunsPutSample.js][updaterunsputsample] | put Update runs for a specified update x-ms-original-file: 2026-04-30/PutUpdateRuns.json | +| [updateSummariesDeleteSample.js][updatesummariesdeletesample] | delete Update Summaries x-ms-original-file: 2026-04-30/DeleteUpdateSummaries.json | +| [updateSummariesGetSample.js][updatesummariesgetsample] | get all Update summaries under the HCI cluster x-ms-original-file: 2026-04-30/GetUpdateSummaries.json | +| [updateSummariesListSample.js][updatesummarieslistsample] | list all Update summaries under the HCI cluster x-ms-original-file: 2026-04-30/ListUpdateSummaries.json | +| [updateSummariesOperationGroupCheckHealthSample.js][updatesummariesoperationgroupcheckhealthsample] | check health of UpdateSummaries x-ms-original-file: 2026-04-30/UpdateSummaries_CheckHealth.json | +| [updateSummariesOperationGroupCheckUpdatesSample.js][updatesummariesoperationgroupcheckupdatessample] | check for updates x-ms-original-file: 2026-04-30/UpdateSummaries_CheckUpdates.json | +| [updateSummariesPutSample.js][updatesummariesputsample] | put Update summaries under the HCI cluster x-ms-original-file: 2026-04-30/PutUpdateSummaries.json | +| [updatesDeleteSample.js][updatesdeletesample] | delete specified Update x-ms-original-file: 2026-04-30/DeleteUpdates.json | +| [updatesGetSample.js][updatesgetsample] | get specified Update x-ms-original-file: 2026-04-30/GetUpdates.json | +| [updatesListSample.js][updateslistsample] | list all Updates x-ms-original-file: 2026-04-30/ListUpdates.json | +| [updatesPostSample.js][updatespostsample] | apply Update x-ms-original-file: 2026-04-30/PostUpdates.json | +| [updatesPrepareSample.js][updatespreparesample] | prepare Update x-ms-original-file: 2026-04-30/Updates_Prepare.json | +| [updatesPutSample.js][updatesputsample] | put specified Update x-ms-original-file: 2026-04-30/PutUpdates.json | +| [validatedSolutionRecipesGetSample.js][validatedsolutionrecipesgetsample] | get a validated solution recipe. x-ms-original-file: 2026-04-30/ValidatedSolutionRecipes_Get.json | +| [validatedSolutionRecipesListBySubscriptionLocationResourceSample.js][validatedsolutionrecipeslistbysubscriptionlocationresourcesample] | list all validated solution recipes. x-ms-original-file: 2026-04-30/ValidatedSolutionRecipes_ListBySubscriptionLocationResource.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node arcSettingsConsentAndInstallDefaultExtensionsSample.js +``` + +Alternatively, run a single sample with the required environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +node arcSettingsConsentAndInstallDefaultExtensionsSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[arcsettingsconsentandinstalldefaultextensionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsConsentAndInstallDefaultExtensionsSample.js +[arcsettingscreateidentitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsCreateIdentitySample.js +[arcsettingscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsCreateSample.js +[arcsettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsDeleteSample.js +[arcsettingsgeneratepasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsGeneratePasswordSample.js +[arcsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsGetSample.js +[arcsettingsinitializedisableprocesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsInitializeDisableProcessSample.js +[arcsettingslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsListByClusterSample.js +[arcsettingsreconcilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsReconcileSample.js +[arcsettingsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsUpdateSample.js +[clustersconfigureremotesupportsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersConfigureRemoteSupportSample.js +[clusterscreateidentitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersCreateIdentitySample.js +[clusterscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersCreateSample.js +[clustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersDeleteSample.js +[clustersextendsoftwareassurancebenefitsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersExtendSoftwareAssuranceBenefitSample.js +[clustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersGetSample.js +[clusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersListByResourceGroupSample.js +[clusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersListBySubscriptionSample.js +[clusterstriggerlogcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersTriggerLogCollectionSample.js +[clustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersUpdateSample.js +[clustersupdatesecretslocationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersUpdateSecretsLocationsSample.js +[clustersuploadcertificatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersUploadCertificateSample.js +[deploymentsettingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsCreateOrUpdateSample.js +[deploymentsettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsDeleteSample.js +[deploymentsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsGetSample.js +[deploymentsettingslistbyclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsListByClustersSample.js +[edgedevicejobscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsCreateOrUpdateSample.js +[edgedevicejobsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsDeleteSample.js +[edgedevicejobsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsGetSample.js +[edgedevicejobslistbyedgedevicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsListByEdgeDeviceSample.js +[edgedevicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesCreateOrUpdateSample.js +[edgedevicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesDeleteSample.js +[edgedevicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesGetSample.js +[edgedeviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesListSample.js +[edgedevicesvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesValidateSample.js +[extensionscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsCreateSample.js +[extensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsDeleteSample.js +[extensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsGetSample.js +[extensionslistbyarcsettingsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsListByArcSettingSample.js +[extensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsUpdateSample.js +[extensionsupgradesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsUpgradeSample.js +[offersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/offersGetSample.js +[offerslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/offersListByClusterSample.js +[offerslistbypublishersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/offersListByPublisherSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/operationsListSample.js +[securitysettingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsCreateOrUpdateSample.js +[securitysettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsDeleteSample.js +[securitysettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsGetSample.js +[securitysettingslistbyclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsListByClustersSample.js +[skusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/skusGetSample.js +[skuslistbyoffersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/skusListByOfferSample.js +[updaterunsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsDeleteSample.js +[updaterunsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsGetSample.js +[updaterunslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsListSample.js +[updaterunsputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsPutSample.js +[updatesummariesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesDeleteSample.js +[updatesummariesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesGetSample.js +[updatesummarieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesListSample.js +[updatesummariesoperationgroupcheckhealthsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesOperationGroupCheckHealthSample.js +[updatesummariesoperationgroupcheckupdatessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesOperationGroupCheckUpdatesSample.js +[updatesummariesputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesPutSample.js +[updatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesDeleteSample.js +[updatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesGetSample.js +[updateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesListSample.js +[updatespostsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesPostSample.js +[updatespreparesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesPrepareSample.js +[updatesputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesPutSample.js +[validatedsolutionrecipesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/validatedSolutionRecipesGetSample.js +[validatedsolutionrecipeslistbysubscriptionlocationresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/validatedSolutionRecipesListBySubscriptionLocationResourceSample.js +[apiref]: https://learn.microsoft.com/javascript/api/@azure/arm-azurestackhci +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/azurestackhci/arm-azurestackhci/README.md diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsConsentAndInstallDefaultExtensionsSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsConsentAndInstallDefaultExtensionsSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsConsentAndInstallDefaultExtensionsSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsConsentAndInstallDefaultExtensionsSample.js index ec7c5bae0bbc..70eae424750e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsConsentAndInstallDefaultExtensionsSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsConsentAndInstallDefaultExtensionsSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to add consent time for default extensions and initiate extensions installation * * @summary add consent time for default extensions and initiate extensions installation - * x-ms-original-file: 2026-04-01-preview/ConsentAndInstallDefaultExtensions.json + * x-ms-original-file: 2026-04-30/ConsentAndInstallDefaultExtensions.json */ async function consentAndInstallDefaultExtensions() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsCreateIdentitySample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsCreateIdentitySample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsCreateIdentitySample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsCreateIdentitySample.js index 855b8fdb0a0a..edb2530a38a9 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsCreateIdentitySample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsCreateIdentitySample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to create Aad identity for arc settings. * * @summary create Aad identity for arc settings. - * x-ms-original-file: 2026-04-01-preview/CreateArcIdentity.json + * x-ms-original-file: 2026-04-30/CreateArcIdentity.json */ async function createArcIdentity() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsCreateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsCreateSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsCreateSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsCreateSample.js index b1cb71ebc927..c5e7ce15876f 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsCreateSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsCreateSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to create ArcSetting for HCI cluster. * * @summary create ArcSetting for HCI cluster. - * x-ms-original-file: 2026-04-01-preview/PutArcSetting.json + * x-ms-original-file: 2026-04-30/PutArcSetting.json */ async function createArcSetting() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsDeleteSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsDeleteSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsDeleteSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsDeleteSample.js index 1dfc4ecc2d30..55543541e8e7 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsDeleteSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsDeleteSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to delete ArcSetting resource details of HCI Cluster. * * @summary delete ArcSetting resource details of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/DeleteArcSetting.json + * x-ms-original-file: 2026-04-30/DeleteArcSetting.json */ async function deleteArcSetting() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsGeneratePasswordSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsGeneratePasswordSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsGeneratePasswordSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsGeneratePasswordSample.js index ead953729259..a4a79ee01274 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsGeneratePasswordSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsGeneratePasswordSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to generate password for arc settings. * * @summary generate password for arc settings. - * x-ms-original-file: 2026-04-01-preview/GeneratePassword.json + * x-ms-original-file: 2026-04-30/GeneratePassword.json */ async function generatePassword() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsGetSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsGetSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsGetSample.js index 4d9926527fca..9905dce5a57e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsGetSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsGetSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to get ArcSetting resource details of HCI Cluster. * * @summary get ArcSetting resource details of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/GetArcSetting.json + * x-ms-original-file: 2026-04-30/GetArcSetting.json */ async function getArcSetting() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsInitializeDisableProcessSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsInitializeDisableProcessSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsInitializeDisableProcessSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsInitializeDisableProcessSample.js index 24b5bece9731..e25a8e32914f 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsInitializeDisableProcessSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsInitializeDisableProcessSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to initializes ARC Disable process on the cluster * * @summary initializes ARC Disable process on the cluster - * x-ms-original-file: 2026-04-01-preview/InitializeDisableProcess.json + * x-ms-original-file: 2026-04-30/InitializeDisableProcess.json */ async function triggerARCDisable() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsListByClusterSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsListByClusterSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsListByClusterSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsListByClusterSample.js index f64ba07d7955..c5cb8cb00b78 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsListByClusterSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsListByClusterSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to get ArcSetting resources of HCI Cluster. * * @summary get ArcSetting resources of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/ListArcSettingsByCluster.json + * x-ms-original-file: 2026-04-30/ListArcSettingsByCluster.json */ async function listArcSettingResourcesByHCICluster() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsReconcileSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsReconcileSample.js similarity index 94% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsReconcileSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsReconcileSample.js index 50ec8806ce0f..df355f5cb77c 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsReconcileSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsReconcileSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to reconcile Arc Settings with information related to all nodes. * * @summary reconcile Arc Settings with information related to all nodes. - * x-ms-original-file: 2026-04-01-preview/reconcileArcSettings.json + * x-ms-original-file: 2026-04-30/reconcileArcSettings.json */ async function reconcileArcSettings() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsUpdateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsUpdateSample.js similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsUpdateSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsUpdateSample.js index 55ac5d711973..ed93ba411c8b 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/arcSettingsUpdateSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/arcSettingsUpdateSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to update ArcSettings for HCI cluster. * * @summary update ArcSettings for HCI cluster. - * x-ms-original-file: 2026-04-01-preview/PatchArcSetting.json + * x-ms-original-file: 2026-04-30/PatchArcSetting.json */ async function patchArcSetting() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersConfigureRemoteSupportSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersConfigureRemoteSupportSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersConfigureRemoteSupportSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersConfigureRemoteSupportSample.js index a91ac289b4c6..17e99d119007 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersConfigureRemoteSupportSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersConfigureRemoteSupportSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to configure RemoteSupport on a cluster * * @summary configure RemoteSupport on a cluster - * x-ms-original-file: 2026-04-01-preview/ConfigureRemoteSupport.json + * x-ms-original-file: 2026-04-30/ConfigureRemoteSupport.json */ async function configureRemoteSupport() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersCreateIdentitySample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersCreateIdentitySample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersCreateIdentitySample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersCreateIdentitySample.js index 40397c84a424..addfdd61f989 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersCreateIdentitySample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersCreateIdentitySample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to create cluster identity. * * @summary create cluster identity. - * x-ms-original-file: 2026-04-01-preview/CreateClusterIdentity.json + * x-ms-original-file: 2026-04-30/CreateClusterIdentity.json */ async function createClusterIdentity() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersCreateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersCreateSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersCreateSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersCreateSample.js index b2e5412165bc..59294460ed83 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersCreateSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersCreateSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to create an HCI cluster. * * @summary create an HCI cluster. - * x-ms-original-file: 2026-04-01-preview/CreateCluster.json + * x-ms-original-file: 2026-04-30/CreateCluster.json */ async function createCluster() { const credential = new DefaultAzureCredential(); @@ -16,7 +16,6 @@ async function createCluster() { const client = new AzureStackHCIClient(credential, subscriptionId); const result = await client.clusters.create("test-rg", "myCluster", { typeIdentityType: "SystemAssigned", - kind: "AzureLocal", location: "East US", aadClientId: "24a6e53d-04e5-44d2-b7cc-1b732a847dfc", aadTenantId: "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersDeleteSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersDeleteSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersDeleteSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersDeleteSample.js index 250648591a40..0a8a45608609 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersDeleteSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersDeleteSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to delete an HCI cluster. * * @summary delete an HCI cluster. - * x-ms-original-file: 2026-04-01-preview/DeleteCluster.json + * x-ms-original-file: 2026-04-30/DeleteCluster.json */ async function deleteCluster() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersExtendSoftwareAssuranceBenefitSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersExtendSoftwareAssuranceBenefitSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersExtendSoftwareAssuranceBenefitSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersExtendSoftwareAssuranceBenefitSample.js index 01be8c5c355f..311eb36a1322 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersExtendSoftwareAssuranceBenefitSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersExtendSoftwareAssuranceBenefitSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to extends Software Assurance Benefit to a cluster * * @summary extends Software Assurance Benefit to a cluster - * x-ms-original-file: 2026-04-01-preview/ExtendSoftwareAssuranceBenefit.json + * x-ms-original-file: 2026-04-30/ExtendSoftwareAssuranceBenefit.json */ async function createClusterIdentity() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersGetSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersGetSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersGetSample.js index 203761a6e6bc..1078aa938f69 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersGetSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersGetSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to get HCI cluster. * * @summary get HCI cluster. - * x-ms-original-file: 2026-04-01-preview/GetCluster.json + * x-ms-original-file: 2026-04-30/GetCluster.json */ async function getCluster() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersListByResourceGroupSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersListByResourceGroupSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersListByResourceGroupSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersListByResourceGroupSample.js index 54f1a0efe7bb..7fb21f2cfe5e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersListByResourceGroupSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersListByResourceGroupSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to list all HCI clusters in a resource group. * * @summary list all HCI clusters in a resource group. - * x-ms-original-file: 2026-04-01-preview/ListClustersByResourceGroup.json + * x-ms-original-file: 2026-04-30/ListClustersByResourceGroup.json */ async function listClustersInAGivenResourceGroup() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersListBySubscriptionSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersListBySubscriptionSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersListBySubscriptionSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersListBySubscriptionSample.js index 6b59341c25f1..0784e4f66d15 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersListBySubscriptionSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersListBySubscriptionSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to list all HCI clusters in a subscription. * * @summary list all HCI clusters in a subscription. - * x-ms-original-file: 2026-04-01-preview/ListClustersBySubscription.json + * x-ms-original-file: 2026-04-30/ListClustersBySubscription.json */ async function listClustersInAGivenSubscription() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersTriggerLogCollectionSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersTriggerLogCollectionSample.js similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersTriggerLogCollectionSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersTriggerLogCollectionSample.js index da53d6c45992..774c1d126e3e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersTriggerLogCollectionSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersTriggerLogCollectionSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to trigger Log Collection on a cluster * * @summary trigger Log Collection on a cluster - * x-ms-original-file: 2026-04-01-preview/TriggerLogCollection.json + * x-ms-original-file: 2026-04-30/TriggerLogCollection.json */ async function triggerLogCollection() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersUpdateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersUpdateSample.js similarity index 94% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersUpdateSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersUpdateSample.js index 853f9c9f0629..f1906a72abdd 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersUpdateSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersUpdateSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to update an HCI cluster. * * @summary update an HCI cluster. - * x-ms-original-file: 2026-04-01-preview/UpdateCluster.json + * x-ms-original-file: 2026-04-30/UpdateCluster.json */ async function updateCluster() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersUpdateSecretsLocationsSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersUpdateSecretsLocationsSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersUpdateSecretsLocationsSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersUpdateSecretsLocationsSample.js index 62aa7d2efbb9..c17e370e7c21 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersUpdateSecretsLocationsSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersUpdateSecretsLocationsSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to update cluster secrets locations. * * @summary update cluster secrets locations. - * x-ms-original-file: 2026-04-01-preview/Clusters_UpdateSecretsLocations.json + * x-ms-original-file: 2026-04-30/Clusters_UpdateSecretsLocations.json */ async function updateSecretsLocationsForACluster() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersUploadCertificateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersUploadCertificateSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersUploadCertificateSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersUploadCertificateSample.js index 6b1053809ba2..7cacf1d8f1b8 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/clustersUploadCertificateSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/clustersUploadCertificateSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to upload certificate. * * @summary upload certificate. - * x-ms-original-file: 2026-04-01-preview/UploadCertificate.json + * x-ms-original-file: 2026-04-30/UploadCertificate.json */ async function uploadCertificate() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsCreateOrUpdateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsCreateOrUpdateSample.js new file mode 100644 index 000000000000..ada6ebd04460 --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsCreateOrUpdateSample.js @@ -0,0 +1,716 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +const { AzureStackHCIClient } = require("@azure/arm-azurestackhci"); +const { DefaultAzureCredential } = require("@azure/identity"); + +/** + * This sample demonstrates how to create a DeploymentSetting + * + * @summary create a DeploymentSetting + * x-ms-original-file: 2026-04-30/PutDeploymentSettings.json + */ +async function createDeploymentSettings() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; + const client = new AzureStackHCIClient(credential, subscriptionId); + const result = await client.deploymentSettings.createOrUpdate("test-rg", "myCluster", "default", { + arcNodeResourceIds: [ + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", + ], + deploymentConfiguration: { + scaleUnits: [ + { + deploymentData: { + adouPath: "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com", + cluster: { + name: "testHCICluster", + azureServiceEndpoint: "core.windows.net", + cloudAccountName: "myasestoragacct", + witnessPath: "Cloud", + witnessType: "Cloud", + }, + domainFqdn: "ASZ1PLab8.nttest.microsoft.com", + hostNetwork: { + enableStorageAutoIp: false, + intents: [ + { + name: "Compute_Management", + adapter: ["Port2"], + adapterPropertyOverrides: { + jumboPacket: "1514", + networkDirect: "Enabled", + networkDirectTechnology: "iWARP", + }, + overrideAdapterProperty: false, + overrideQosPolicy: false, + overrideVirtualSwitchConfiguration: false, + qosPolicyOverrides: { + bandwidthPercentageSMB: "50", + priorityValue8021ActionCluster: "7", + priorityValue8021ActionSMB: "3", + }, + trafficType: ["Compute", "Management"], + virtualSwitchConfigurationOverrides: { + enableIov: "True", + loadBalancingAlgorithm: "HyperVPort", + }, + }, + ], + storageConnectivitySwitchless: true, + storageNetworks: [ + { + name: "Storage1Network", + networkAdapterName: "Port3", + storageAdapterIPInfo: [ + { + ipv4Address: "10.57.48.60", + physicalNode: "string", + subnetMask: "255.255.248.0", + }, + ], + vlanId: "5", + }, + ], + sanNetworks: { + clusterNetworkConfig: { + adapterProperties: { + bandwidthPercentageSmb: 50, + jumboPacket: 9014, + priorityValue8021ActionCluster: 7, + priorityValue8021ActionSmb: 3, + }, + adapterIPConfig: [ + { + name: "clusterNetwork-A", + networkAdapterName: "ethernet 3", + vlanId: 711, + addressPrefix: "10.10.30.0/24", + }, + ], + }, + }, + }, + infrastructureNetwork: [ + { + dnsServerConfig: "UseDnsServer", + dnsServers: ["10.57.50.90"], + gateway: "255.255.248.0", + ipPools: [{ endingAddress: "10.57.48.66", startingAddress: "10.57.48.60" }], + subnetMask: "255.255.248.0", + }, + ], + isManagementCluster: true, + namingPrefix: "ms169", + observability: { + episodicDataUpload: true, + euLocation: false, + streamingDataClient: true, + }, + optionalServices: { customLocation: "customLocationName" }, + physicalNodes: [ + { name: "ms169host", ipv4Address: "10.57.51.224" }, + { name: "ms154host", ipv4Address: "10.57.53.236" }, + ], + sdnIntegration: { + networkController: { + macAddressPoolStart: "00-0D-3A-1B-C7-21", + macAddressPoolStop: "00-0D-3A-1B-C7-29", + networkVirtualizationEnabled: true, + }, + }, + secrets: [ + { + eceSecretName: "BMCAdminUserCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + { + eceSecretName: "AzureStackLCMUserCredential", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4c", + secretName: + "cluster2-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + secretsLocation: + "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123", + securitySettings: { + bitlockerBootVolume: true, + bitlockerDataVolumes: true, + credentialGuardEnforced: false, + driftControlEnforced: true, + drtmProtection: true, + hvciProtection: true, + sideChannelMitigationEnforced: true, + smbClusterEncryption: false, + smbSigningEnforced: true, + wdacEnforced: true, + }, + storage: { + configurationMode: "Express", + storageType: "S2D", + s2D: { volumeType: "ThinProvisioned", overprovisioningRatio: "2" }, + }, + }, + sbePartnerInfo: { + credentialList: [ + { + eceSecretName: "DownloadConnectorCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + partnerProperties: [ + { name: "EnableBMCIpV6", value: "false" }, + { name: "PhoneHomePort", value: "1653" }, + { name: "BMCSecurityState", value: "HighSecurity" }, + ], + sbeDeploymentInfo: { + family: "Gen5", + publisher: "Contoso", + sbeManifestCreationDate: new Date("2023-07-25T02:40:33Z"), + sbeManifestSource: "default", + version: "4.0.2309.13", + }, + }, + }, + ], + version: "string", + }, + deploymentMode: "Deploy", + operationType: "ClusterProvisioning", + }); + console.log(result); +} + +/** + * This sample demonstrates how to create a DeploymentSetting + * + * @summary create a DeploymentSetting + * x-ms-original-file: 2026-04-30/PutDeploymentSettingsWithADLess.json + */ +async function createDeploymentSettingsWithoutActiveDirectoryIntegration() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; + const client = new AzureStackHCIClient(credential, subscriptionId); + const result = await client.deploymentSettings.createOrUpdate("test-rg", "myCluster", "default", { + arcNodeResourceIds: [ + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", + ], + deploymentConfiguration: { + scaleUnits: [ + { + deploymentData: { + adouPath: "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com", + cluster: { + name: "testHCICluster", + azureServiceEndpoint: "core.windows.net", + cloudAccountName: "myasestoragacct", + witnessPath: "Cloud", + witnessType: "Cloud", + }, + domainFqdn: "ASZ1PLab8.nttest.microsoft.com", + hostNetwork: { + enableStorageAutoIp: false, + intents: [ + { + name: "Compute_Management", + adapter: ["Port2"], + adapterPropertyOverrides: { + jumboPacket: "1514", + networkDirect: "Enabled", + networkDirectTechnology: "iWARP", + }, + overrideAdapterProperty: false, + overrideQosPolicy: false, + overrideVirtualSwitchConfiguration: false, + qosPolicyOverrides: { + bandwidthPercentageSMB: "50", + priorityValue8021ActionCluster: "7", + priorityValue8021ActionSMB: "3", + }, + trafficType: ["Compute", "Management"], + virtualSwitchConfigurationOverrides: { + enableIov: "True", + loadBalancingAlgorithm: "HyperVPort", + }, + }, + ], + storageConnectivitySwitchless: true, + storageNetworks: [ + { + name: "Storage1Network", + networkAdapterName: "Port3", + storageAdapterIPInfo: [ + { + ipv4Address: "10.57.48.60", + physicalNode: "string", + subnetMask: "255.255.248.0", + }, + ], + vlanId: "5", + }, + ], + sanNetworks: { + clusterNetworkConfig: { + adapterProperties: { + bandwidthPercentageSmb: 50, + jumboPacket: 9014, + priorityValue8021ActionCluster: 7, + priorityValue8021ActionSmb: 3, + }, + adapterIPConfig: [ + { + name: "clusterNetwork-A", + networkAdapterName: "ethernet 3", + vlanId: 711, + addressPrefix: "10.10.30.0/24", + }, + ], + }, + }, + }, + identityProvider: "LocalIdentity", + infrastructureNetwork: [ + { + dnsZones: [{ dnsForwarder: ["192.168.1.1"], dnsZoneName: "contoso.com" }], + gateway: "255.255.248.0", + ipPools: [{ endingAddress: "10.57.48.66", startingAddress: "10.57.48.60" }], + subnetMask: "255.255.248.0", + }, + ], + namingPrefix: "ms169", + observability: { + episodicDataUpload: true, + euLocation: false, + streamingDataClient: true, + }, + optionalServices: { customLocation: "customLocationName" }, + physicalNodes: [ + { name: "ms169host", ipv4Address: "10.57.51.224" }, + { name: "ms154host", ipv4Address: "10.57.53.236" }, + ], + sdnIntegration: { + networkController: { + macAddressPoolStart: "00-0D-3A-1B-C7-21", + macAddressPoolStop: "00-0D-3A-1B-C7-29", + networkVirtualizationEnabled: true, + }, + }, + secrets: [ + { + eceSecretName: "BMCAdminUserCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + { + eceSecretName: "AzureStackLCMUserCredential", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4c", + secretName: + "cluster2-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + secretsLocation: + "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123", + securitySettings: { + bitlockerBootVolume: true, + bitlockerDataVolumes: true, + credentialGuardEnforced: false, + driftControlEnforced: true, + drtmProtection: true, + hvciProtection: true, + sideChannelMitigationEnforced: true, + smbClusterEncryption: false, + smbSigningEnforced: true, + wdacEnforced: true, + }, + storage: { + configurationMode: "Express", + storageType: "S2D", + s2D: { volumeType: "ThinProvisioned", overprovisioningRatio: "2" }, + }, + }, + sbePartnerInfo: { + credentialList: [ + { + eceSecretName: "DownloadConnectorCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + partnerProperties: [ + { name: "EnableBMCIpV6", value: "false" }, + { name: "PhoneHomePort", value: "1653" }, + { name: "BMCSecurityState", value: "HighSecurity" }, + ], + sbeDeploymentInfo: { + family: "Gen5", + publisher: "Contoso", + sbeManifestCreationDate: new Date("2023-07-25T02:40:33Z"), + sbeManifestSource: "default", + version: "4.0.2309.13", + }, + }, + }, + ], + version: "string", + }, + deploymentMode: "Deploy", + operationType: "ClusterProvisioning", + }); + console.log(result); +} + +/** + * This sample demonstrates how to create a DeploymentSetting + * + * @summary create a DeploymentSetting + * x-ms-original-file: 2026-04-30/PutDeploymentSettings_StorageS2D.json + */ +async function createDeploymentSettingsWithS2DStorage() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; + const client = new AzureStackHCIClient(credential, subscriptionId); + const result = await client.deploymentSettings.createOrUpdate("test-rg", "myCluster", "default", { + arcNodeResourceIds: [ + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", + ], + deploymentConfiguration: { + scaleUnits: [ + { + deploymentData: { + adouPath: "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com", + cluster: { + name: "testHCICluster", + azureServiceEndpoint: "core.windows.net", + cloudAccountName: "myasestoragacct", + witnessPath: "Cloud", + witnessType: "Cloud", + }, + domainFqdn: "ASZ1PLab8.nttest.microsoft.com", + hostNetwork: { + enableStorageAutoIp: false, + intents: [ + { + name: "Compute_Management", + adapter: ["Port2"], + adapterPropertyOverrides: { + jumboPacket: "1514", + networkDirect: "Enabled", + networkDirectTechnology: "iWARP", + }, + overrideAdapterProperty: false, + overrideQosPolicy: false, + overrideVirtualSwitchConfiguration: false, + qosPolicyOverrides: { + bandwidthPercentageSMB: "50", + priorityValue8021ActionCluster: "7", + priorityValue8021ActionSMB: "3", + }, + trafficType: ["Compute", "Management"], + virtualSwitchConfigurationOverrides: { + enableIov: "True", + loadBalancingAlgorithm: "HyperVPort", + }, + }, + ], + storageConnectivitySwitchless: true, + storageNetworks: [ + { + name: "Storage1Network", + networkAdapterName: "Port3", + storageAdapterIPInfo: [ + { + ipv4Address: "10.57.48.60", + physicalNode: "string", + subnetMask: "255.255.248.0", + }, + ], + vlanId: "5", + }, + ], + }, + infrastructureNetwork: [ + { + dnsServerConfig: "UseDnsServer", + dnsServers: ["10.57.50.90"], + gateway: "255.255.248.0", + ipPools: [{ endingAddress: "10.57.48.66", startingAddress: "10.57.48.60" }], + subnetMask: "255.255.248.0", + }, + ], + isManagementCluster: true, + namingPrefix: "ms169", + observability: { + episodicDataUpload: true, + euLocation: false, + streamingDataClient: true, + }, + optionalServices: { customLocation: "customLocationName" }, + physicalNodes: [ + { name: "ms169host", ipv4Address: "10.57.51.224" }, + { name: "ms154host", ipv4Address: "10.57.53.236" }, + ], + secrets: [ + { + eceSecretName: "BMCAdminUserCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + { + eceSecretName: "AzureStackLCMUserCredential", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4c", + secretName: + "cluster2-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + secretsLocation: + "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123", + securitySettings: { + bitlockerBootVolume: true, + bitlockerDataVolumes: true, + credentialGuardEnforced: false, + driftControlEnforced: true, + drtmProtection: true, + hvciProtection: true, + sideChannelMitigationEnforced: true, + smbClusterEncryption: false, + smbSigningEnforced: true, + wdacEnforced: true, + }, + storage: { + configurationMode: "Express", + storageType: "S2D", + s2D: { volumeType: "ThinProvisioned", overprovisioningRatio: "2" }, + }, + }, + sbePartnerInfo: { + credentialList: [ + { + eceSecretName: "DownloadConnectorCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + partnerProperties: [ + { name: "EnableBMCIpV6", value: "false" }, + { name: "PhoneHomePort", value: "1653" }, + { name: "BMCSecurityState", value: "HighSecurity" }, + ], + sbeDeploymentInfo: { + family: "Gen5", + publisher: "Contoso", + sbeManifestCreationDate: new Date("2023-07-25T02:40:33Z"), + sbeManifestSource: "default", + version: "4.0.2309.13", + }, + }, + }, + ], + version: "string", + }, + deploymentMode: "Deploy", + operationType: "ClusterProvisioning", + }); + console.log(result); +} + +/** + * This sample demonstrates how to create a DeploymentSetting + * + * @summary create a DeploymentSetting + * x-ms-original-file: 2026-04-30/PutDeploymentSettings_StorageSAN.json + */ +async function createDeploymentSettingsWithSANStorage() { + const credential = new DefaultAzureCredential(); + const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; + const client = new AzureStackHCIClient(credential, subscriptionId); + const result = await client.deploymentSettings.createOrUpdate("test-rg", "myCluster", "default", { + arcNodeResourceIds: [ + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", + ], + deploymentConfiguration: { + scaleUnits: [ + { + deploymentData: { + adouPath: "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com", + cluster: { + name: "testHCICluster", + azureServiceEndpoint: "core.windows.net", + cloudAccountName: "myasestoragacct", + witnessPath: "Cloud", + witnessType: "Cloud", + }, + domainFqdn: "ASZ1PLab8.nttest.microsoft.com", + hostNetwork: { + enableStorageAutoIp: false, + intents: [ + { + name: "Compute_Management", + adapter: ["Port2"], + adapterPropertyOverrides: { + jumboPacket: "1514", + networkDirect: "Enabled", + networkDirectTechnology: "iWARP", + }, + overrideAdapterProperty: false, + overrideQosPolicy: false, + overrideVirtualSwitchConfiguration: false, + qosPolicyOverrides: { + bandwidthPercentageSMB: "50", + priorityValue8021ActionCluster: "7", + priorityValue8021ActionSMB: "3", + }, + trafficType: ["Compute", "Management"], + virtualSwitchConfigurationOverrides: { + enableIov: "True", + loadBalancingAlgorithm: "HyperVPort", + }, + }, + ], + storageConnectivitySwitchless: true, + storageNetworks: [ + { + name: "Storage1Network", + networkAdapterName: "Port3", + storageAdapterIPInfo: [ + { + ipv4Address: "10.57.48.60", + physicalNode: "string", + subnetMask: "255.255.248.0", + }, + ], + vlanId: "5", + }, + ], + sanNetworks: { + clusterNetworkConfig: { + adapterProperties: { + bandwidthPercentageSmb: 50, + jumboPacket: 9014, + priorityValue8021ActionCluster: 7, + priorityValue8021ActionSmb: 3, + }, + adapterIPConfig: [ + { + name: "clusterNetwork-A", + networkAdapterName: "ethernet 3", + vlanId: 711, + addressPrefix: "10.10.30.0/24", + }, + ], + }, + }, + }, + infrastructureNetwork: [ + { + dnsServerConfig: "UseDnsServer", + dnsServers: ["10.57.50.90"], + gateway: "255.255.248.0", + ipPools: [{ endingAddress: "10.57.48.66", startingAddress: "10.57.48.60" }], + subnetMask: "255.255.248.0", + }, + ], + isManagementCluster: true, + namingPrefix: "ms169", + observability: { + episodicDataUpload: true, + euLocation: false, + streamingDataClient: true, + }, + optionalServices: { customLocation: "customLocationName" }, + physicalNodes: [ + { name: "ms169host", ipv4Address: "10.57.51.224" }, + { name: "ms154host", ipv4Address: "10.57.53.236" }, + ], + secrets: [ + { + eceSecretName: "BMCAdminUserCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + { + eceSecretName: "AzureStackLCMUserCredential", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4c", + secretName: + "cluster2-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + secretsLocation: + "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123", + securitySettings: { + bitlockerBootVolume: true, + bitlockerDataVolumes: true, + credentialGuardEnforced: false, + driftControlEnforced: true, + drtmProtection: true, + hvciProtection: true, + sideChannelMitigationEnforced: true, + smbClusterEncryption: false, + smbSigningEnforced: true, + wdacEnforced: true, + }, + storage: { + configurationMode: "Express", + storageType: "SAN", + san: { + infraVolLunId: "PURE1234567890ABCDEF", + infraPerfLunId: "PURE0987654321MNOPQR", + }, + }, + }, + sbePartnerInfo: { + credentialList: [ + { + eceSecretName: "DownloadConnectorCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + partnerProperties: [ + { name: "EnableBMCIpV6", value: "false" }, + { name: "PhoneHomePort", value: "1653" }, + { name: "BMCSecurityState", value: "HighSecurity" }, + ], + sbeDeploymentInfo: { + family: "Gen5", + publisher: "Contoso", + sbeManifestCreationDate: new Date("2023-07-25T02:40:33Z"), + sbeManifestSource: "default", + version: "4.0.2309.13", + }, + }, + }, + ], + version: "string", + }, + deploymentMode: "Deploy", + operationType: "ClusterProvisioning", + }); + console.log(result); +} + +async function main() { + await createDeploymentSettings(); + await createDeploymentSettingsWithoutActiveDirectoryIntegration(); + await createDeploymentSettingsWithS2DStorage(); + await createDeploymentSettingsWithSANStorage(); +} + +main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsDeleteSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsDeleteSample.js similarity index 90% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsDeleteSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsDeleteSample.js index 7f2b68280454..74df8a74f9ee 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsDeleteSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsDeleteSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to delete a DeploymentSetting * * @summary delete a DeploymentSetting - * x-ms-original-file: 2026-04-01-preview/DeleteDeploymentSettings.json + * x-ms-original-file: 2026-04-30/DeleteDeploymentSettings.json */ async function deleteDeploymentSettings() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsGetSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsGetSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsGetSample.js index a53b5ec25e7b..fc70c6884874 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsGetSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsGetSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to get a DeploymentSetting * * @summary get a DeploymentSetting - * x-ms-original-file: 2026-04-01-preview/GetDeploymentSettings.json + * x-ms-original-file: 2026-04-30/GetDeploymentSettings.json */ async function getDeploymentSettings() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsListByClustersSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsListByClustersSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsListByClustersSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsListByClustersSample.js index fec5ed02089e..0564b06b8fa7 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/deploymentSettingsListByClustersSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/deploymentSettingsListByClustersSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to list DeploymentSetting resources by Clusters * * @summary list DeploymentSetting resources by Clusters - * x-ms-original-file: 2026-04-01-preview/ListDeploymentSettingsByCluster.json + * x-ms-original-file: 2026-04-30/ListDeploymentSettingsByCluster.json */ async function listDeploymentSettings() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsCreateOrUpdateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsCreateOrUpdateSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsCreateOrUpdateSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsCreateOrUpdateSample.js index 22ac968affd4..0d721e8e36aa 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsCreateOrUpdateSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsCreateOrUpdateSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to create a EdgeDeviceJob * * @summary create a EdgeDeviceJob - * x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_CreateOrUpdate_CollectLog.json + * x-ms-original-file: 2026-04-30/EdgeDeviceJobs_CreateOrUpdate_CollectLog.json */ async function edgeDeviceJobsCreateOrUpdateCollectLog() { const credential = new DefaultAzureCredential(); @@ -33,7 +33,7 @@ async function edgeDeviceJobsCreateOrUpdateCollectLog() { * This sample demonstrates how to create a EdgeDeviceJob * * @summary create a EdgeDeviceJob - * x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_CreateOrUpdate_RemoteSupport.json + * x-ms-original-file: 2026-04-30/EdgeDeviceJobs_CreateOrUpdate_RemoteSupport.json */ async function edgeDeviceJobsCreateOrUpdateRemoteSupport() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsDeleteSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsDeleteSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsDeleteSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsDeleteSample.js index 4c9afc3a9b1a..d6decd904090 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsDeleteSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsDeleteSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to delete a EdgeDeviceJob * * @summary delete a EdgeDeviceJob - * x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_Delete.json + * x-ms-original-file: 2026-04-30/EdgeDeviceJobs_Delete.json */ async function edgeDeviceJobsDelete() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsGetSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsGetSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsGetSample.js index 0c536561ed99..dd293a105c3d 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsGetSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsGetSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to get a EdgeDeviceJob * * @summary get a EdgeDeviceJob - * x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_Get_RemoteSupport.json + * x-ms-original-file: 2026-04-30/EdgeDeviceJobs_Get_RemoteSupport.json */ async function edgeDeviceJobsGetRemoteSupport() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsListByEdgeDeviceSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsListByEdgeDeviceSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsListByEdgeDeviceSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsListByEdgeDeviceSample.js index ff22f038462b..628c149ce2e4 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDeviceJobsListByEdgeDeviceSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDeviceJobsListByEdgeDeviceSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to list EdgeDeviceJob resources by EdgeDevice * * @summary list EdgeDeviceJob resources by EdgeDevice - * x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_ListByEdgeDevice.json + * x-ms-original-file: 2026-04-30/EdgeDeviceJobs_ListByEdgeDevice.json */ async function edgeDeviceJobsListByEdgeDevice() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesCreateOrUpdateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesCreateOrUpdateSample.js similarity index 95% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesCreateOrUpdateSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesCreateOrUpdateSample.js index cc7375fa70fb..ec4c011b4b51 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesCreateOrUpdateSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesCreateOrUpdateSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to create a EdgeDevice * * @summary create a EdgeDevice - * x-ms-original-file: 2026-04-01-preview/CreateHciEdgeDevice.json + * x-ms-original-file: 2026-04-30/CreateHciEdgeDevice.json */ async function createHCIEdgeDevice() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesDeleteSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesDeleteSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesDeleteSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesDeleteSample.js index 85b5ca81afe6..9669236bb34c 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesDeleteSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesDeleteSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to delete a EdgeDevice * * @summary delete a EdgeDevice - * x-ms-original-file: 2026-04-01-preview/DeleteEdgeDevices.json + * x-ms-original-file: 2026-04-30/DeleteEdgeDevices.json */ async function deleteEdgeDevices() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesGetSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesGetSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesGetSample.js index 593b8ee9aeb4..d2361f876065 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesGetSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesGetSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to get a EdgeDevice * * @summary get a EdgeDevice - * x-ms-original-file: 2026-04-01-preview/GetEdgeDevices.json + * x-ms-original-file: 2026-04-30/GetEdgeDevices.json */ async function getEdgeDevice() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesListSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesListSample.js similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesListSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesListSample.js index 56b732707453..8a76d6178693 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesListSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesListSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to list EdgeDevice resources by parent * * @summary list EdgeDevice resources by parent - * x-ms-original-file: 2026-04-01-preview/ListEdgeDevices.json + * x-ms-original-file: 2026-04-30/ListEdgeDevices.json */ async function listEdgeDevices() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesValidateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesValidateSample.js similarity index 94% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesValidateSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesValidateSample.js index e6422195f084..99cabb61c983 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/edgeDevicesValidateSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/edgeDevicesValidateSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to a long-running resource action. * * @summary a long-running resource action. - * x-ms-original-file: 2026-04-01-preview/ValidateEdgeDevices.json + * x-ms-original-file: 2026-04-30/ValidateEdgeDevices.json */ async function validateEdgeDevices() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsCreateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsCreateSample.js similarity index 94% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsCreateSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsCreateSample.js index 9ebc12d52331..ed31c0bd16ca 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsCreateSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsCreateSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to create Extension for HCI cluster. * * @summary create Extension for HCI cluster. - * x-ms-original-file: 2026-04-01-preview/PutExtension.json + * x-ms-original-file: 2026-04-30/PutExtension.json */ async function createArcExtension() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsDeleteSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsDeleteSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsDeleteSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsDeleteSample.js index 5120afb5730d..4b4c73518082 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsDeleteSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsDeleteSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to delete particular Arc Extension of HCI Cluster. * * @summary delete particular Arc Extension of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/DeleteExtension.json + * x-ms-original-file: 2026-04-30/DeleteExtension.json */ async function deleteArcExtension() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsGetSample.js similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsGetSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsGetSample.js index f515eca20362..59d887bb23e2 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsGetSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsGetSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to get particular Arc Extension of HCI Cluster. * * @summary get particular Arc Extension of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/GetExtension.json + * x-ms-original-file: 2026-04-30/GetExtension.json */ async function getArcSettingsExtension() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsListByArcSettingSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsListByArcSettingSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsListByArcSettingSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsListByArcSettingSample.js index 103dacb4a296..68be54903b61 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsListByArcSettingSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsListByArcSettingSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to list all Extensions under ArcSetting resource. * * @summary list all Extensions under ArcSetting resource. - * x-ms-original-file: 2026-04-01-preview/ListExtensionsByArcSetting.json + * x-ms-original-file: 2026-04-30/ListExtensionsByArcSetting.json */ async function listExtensionsUnderArcSettingResource() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsUpdateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsUpdateSample.js similarity index 94% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsUpdateSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsUpdateSample.js index bf2b8d72ef05..19e2a49b8a7a 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsUpdateSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsUpdateSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to update Extension for HCI cluster. * * @summary update Extension for HCI cluster. - * x-ms-original-file: 2026-04-01-preview/PatchExtension.json + * x-ms-original-file: 2026-04-30/PatchExtension.json */ async function updateArcExtension() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsUpgradeSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsUpgradeSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsUpgradeSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsUpgradeSample.js index f8a1fe5f2f4d..81647c4a2446 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/extensionsUpgradeSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/extensionsUpgradeSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to upgrade a particular Arc Extension of HCI Cluster. * * @summary upgrade a particular Arc Extension of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/Extensions_Upgrade.json + * x-ms-original-file: 2026-04-30/Extensions_Upgrade.json */ async function upgradeMachineExtensions() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/offersGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/offersGetSample.js similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/offersGetSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/offersGetSample.js index 74bcdef465bb..302b29fbdfd0 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/offersGetSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/offersGetSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to get Offer resource details within a publisher of HCI Cluster. * * @summary get Offer resource details within a publisher of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/GetOffer.json + * x-ms-original-file: 2026-04-30/GetOffer.json */ async function getOffer() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/offersListByClusterSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/offersListByClusterSample.js similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/offersListByClusterSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/offersListByClusterSample.js index 445fa750808b..61ad60bbd2cb 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/offersListByClusterSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/offersListByClusterSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to list Offers available across publishers for the HCI Cluster. * * @summary list Offers available across publishers for the HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/ListOffersByCluster.json + * x-ms-original-file: 2026-04-30/ListOffersByCluster.json */ async function listOfferResourcesByHCICluster() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/offersListByPublisherSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/offersListByPublisherSample.js similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/offersListByPublisherSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/offersListByPublisherSample.js index ad9409ffb66d..3249acaabb59 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/offersListByPublisherSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/offersListByPublisherSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to list Offers available for a publisher within the HCI Cluster. * * @summary list Offers available for a publisher within the HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/ListOffersByPublisher.json + * x-ms-original-file: 2026-04-30/ListOffersByPublisher.json */ async function listOfferResourcesByPublisherForTheHCICluster() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/operationsListSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/operationsListSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/operationsListSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/operationsListSample.js index 036d76180821..40f621447378 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/operationsListSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/operationsListSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to list the operations for the provider * * @summary list the operations for the provider - * x-ms-original-file: 2026-04-01-preview/Operations_List.json + * x-ms-original-file: 2026-04-30/Operations_List.json */ async function listTheOperationsForTheProvider() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/package.json b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/package.json similarity index 86% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/package.json rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/package.json index dd53f0e20e3d..fe84134b19b4 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/package.json +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-azurestackhci-js-beta", + "name": "@azure-samples/arm-azurestackhci-js", "private": true, "version": "1.0.0", - "description": "@azure/arm-azurestackhci client library samples for JavaScript (Beta)", + "description": "@azure/arm-azurestackhci client library samples for JavaScript", "engines": { "node": ">=20.0.0" }, @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/azurestackhci/arm-azurestackhci", "dependencies": { - "@azure/arm-azurestackhci": "next", + "@azure/arm-azurestackhci": "latest", "dotenv": "latest", "@azure/identity": "^4.13.0" }, diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/sample.env b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/sample.env similarity index 100% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/sample.env rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/sample.env diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsCreateOrUpdateSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsCreateOrUpdateSample.js similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsCreateOrUpdateSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsCreateOrUpdateSample.js index 2f17d9a1fc47..93d88d05acb7 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsCreateOrUpdateSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsCreateOrUpdateSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to create a security setting * * @summary create a security setting - * x-ms-original-file: 2026-04-01-preview/PutSecuritySettings.json + * x-ms-original-file: 2026-04-30/PutSecuritySettings.json */ async function createSecuritySettings() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsDeleteSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsDeleteSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsDeleteSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsDeleteSample.js index 211f80c2da40..13f6b6c7c550 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsDeleteSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsDeleteSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to delete a SecuritySetting * * @summary delete a SecuritySetting - * x-ms-original-file: 2026-04-01-preview/DeleteSecuritySettings.json + * x-ms-original-file: 2026-04-30/DeleteSecuritySettings.json */ async function deleteSecuritySettings() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsGetSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsGetSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsGetSample.js index 0f893f2056a2..ee52dfe26f1e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsGetSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsGetSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to get a SecuritySetting * * @summary get a SecuritySetting - * x-ms-original-file: 2026-04-01-preview/GetSecuritySettings.json + * x-ms-original-file: 2026-04-30/GetSecuritySettings.json */ async function getSecuritySettings() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsListByClustersSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsListByClustersSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsListByClustersSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsListByClustersSample.js index 9cd4e228db43..65bef52db358 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/securitySettingsListByClustersSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/securitySettingsListByClustersSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to list SecuritySetting resources by Clusters * * @summary list SecuritySetting resources by Clusters - * x-ms-original-file: 2026-04-01-preview/ListSecuritySettingsByCluster.json + * x-ms-original-file: 2026-04-30/ListSecuritySettingsByCluster.json */ async function listSecuritySettings() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/skusGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/skusGetSample.js similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/skusGetSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/skusGetSample.js index 669e88928f19..59f51baa1d82 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/skusGetSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/skusGetSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to get SKU resource details within a offer of HCI Cluster. * * @summary get SKU resource details within a offer of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/GetSku.json + * x-ms-original-file: 2026-04-30/GetSku.json */ async function getSku() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/skusListByOfferSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/skusListByOfferSample.js similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/skusListByOfferSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/skusListByOfferSample.js index 68a6d09cb81c..85699359e08f 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/skusListByOfferSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/skusListByOfferSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to list Skus available for a offer within the HCI Cluster. * * @summary list Skus available for a offer within the HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/ListSkusByOffer.json + * x-ms-original-file: 2026-04-30/ListSkusByOffer.json */ async function listSKUResourcesByOfferForTheHCICluster() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsDeleteSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsDeleteSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsDeleteSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsDeleteSample.js index cda2fa64671d..02e8d1620000 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsDeleteSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsDeleteSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to delete specified Update Run * * @summary delete specified Update Run - * x-ms-original-file: 2026-04-01-preview/DeleteUpdateRuns.json + * x-ms-original-file: 2026-04-30/DeleteUpdateRuns.json */ async function deleteAnUpdate() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsGetSample.js similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsGetSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsGetSample.js index 13c336071a85..bca2f6df067f 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsGetSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsGetSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to get the Update run for a specified update * * @summary get the Update run for a specified update - * x-ms-original-file: 2026-04-01-preview/GetUpdateRuns.json + * x-ms-original-file: 2026-04-30/GetUpdateRuns.json */ async function getUpdateRunsUnderClusterResource() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsListSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsListSample.js similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsListSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsListSample.js index 1051e5dcc662..4738836aa734 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsListSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsListSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to list all Update runs for a specified update * * @summary list all Update runs for a specified update - * x-ms-original-file: 2026-04-01-preview/ListUpdateRuns.json + * x-ms-original-file: 2026-04-30/ListUpdateRuns.json */ async function listUpdateRunsUnderClusterResource() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsPutSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsPutSample.js similarity index 96% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsPutSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsPutSample.js index 818e39709f58..453b605320a3 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateRunsPutSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateRunsPutSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to put Update runs for a specified update * * @summary put Update runs for a specified update - * x-ms-original-file: 2026-04-01-preview/PutUpdateRuns.json + * x-ms-original-file: 2026-04-30/PutUpdateRuns.json */ async function getUpdateRunsUnderClusterResource() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesDeleteSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesDeleteSample.js similarity index 90% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesDeleteSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesDeleteSample.js index ff327678db58..b71aeab57a22 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesDeleteSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesDeleteSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to delete Update Summaries * * @summary delete Update Summaries - * x-ms-original-file: 2026-04-01-preview/DeleteUpdateSummaries.json + * x-ms-original-file: 2026-04-30/DeleteUpdateSummaries.json */ async function deleteAnUpdate() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesGetSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesGetSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesGetSample.js index b36c9983c33e..96343ace23c5 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesGetSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesGetSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to get all Update summaries under the HCI cluster * * @summary get all Update summaries under the HCI cluster - * x-ms-original-file: 2026-04-01-preview/GetUpdateSummaries.json + * x-ms-original-file: 2026-04-30/GetUpdateSummaries.json */ async function getUpdateSummariesUnderClusterResource() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesListSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesListSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesListSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesListSample.js index 2c8dfe1de680..6479ff41f2f3 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesListSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesListSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to list all Update summaries under the HCI cluster * * @summary list all Update summaries under the HCI cluster - * x-ms-original-file: 2026-04-01-preview/ListUpdateSummaries.json + * x-ms-original-file: 2026-04-30/ListUpdateSummaries.json */ async function getUpdateSummariesUnderClusterResource() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesOperationGroupCheckHealthSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesOperationGroupCheckHealthSample.js similarity index 90% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesOperationGroupCheckHealthSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesOperationGroupCheckHealthSample.js index d4a18a3d8f8f..97455e7c75e2 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesOperationGroupCheckHealthSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesOperationGroupCheckHealthSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to check health of UpdateSummaries * * @summary check health of UpdateSummaries - * x-ms-original-file: 2026-04-01-preview/UpdateSummaries_CheckHealth.json + * x-ms-original-file: 2026-04-30/UpdateSummaries_CheckHealth.json */ async function checkHealthOfUpdateSummaries() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesOperationGroupCheckUpdatesSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesOperationGroupCheckUpdatesSample.js similarity index 88% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesOperationGroupCheckUpdatesSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesOperationGroupCheckUpdatesSample.js index e6d306a63fa6..18080742afc1 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesOperationGroupCheckUpdatesSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesOperationGroupCheckUpdatesSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to check for updates * * @summary check for updates - * x-ms-original-file: 2026-04-01-preview/UpdateSummaries_CheckUpdates.json + * x-ms-original-file: 2026-04-30/UpdateSummaries_CheckUpdates.json */ async function checkForUpdates() { const credential = new DefaultAzureCredential(); @@ -21,7 +21,7 @@ async function checkForUpdates() { * This sample demonstrates how to check for updates * * @summary check for updates - * x-ms-original-file: 2026-04-01-preview/UpdateSummaries_CheckUpdates_MaximumSet.json + * x-ms-original-file: 2026-04-30/UpdateSummaries_CheckUpdates_MaximumSet.json */ async function checkForSpecificUpdateByName() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesPutSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesPutSample.js similarity index 94% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesPutSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesPutSample.js index 1826654b1ca4..17bf0d869f80 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updateSummariesPutSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updateSummariesPutSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to put Update summaries under the HCI cluster * * @summary put Update summaries under the HCI cluster - * x-ms-original-file: 2026-04-01-preview/PutUpdateSummaries.json + * x-ms-original-file: 2026-04-30/PutUpdateSummaries.json */ async function putUpdateSummariesUnderClusterResource() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesDeleteSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesDeleteSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesDeleteSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesDeleteSample.js index 18dcd8afe849..02b86917d0e0 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesDeleteSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesDeleteSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to delete specified Update * * @summary delete specified Update - * x-ms-original-file: 2026-04-01-preview/DeleteUpdates.json + * x-ms-original-file: 2026-04-30/DeleteUpdates.json */ async function deleteAnUpdate() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesGetSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesGetSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesGetSample.js index 3159153a8e02..d5d23d5094b0 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesGetSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesGetSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to get specified Update * * @summary get specified Update - * x-ms-original-file: 2026-04-01-preview/GetUpdates.json + * x-ms-original-file: 2026-04-30/GetUpdates.json */ async function getASpecificUpdate() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesListSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesListSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesListSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesListSample.js index 0b4b6f38679f..9174cce7a6bd 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesListSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesListSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to list all Updates * * @summary list all Updates - * x-ms-original-file: 2026-04-01-preview/ListUpdates.json + * x-ms-original-file: 2026-04-30/ListUpdates.json */ async function listAvailableUpdates() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesPostSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesPostSample.js similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesPostSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesPostSample.js index 32f8d892aad6..d892e5c2ed0d 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesPostSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesPostSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to apply Update * * @summary apply Update - * x-ms-original-file: 2026-04-01-preview/PostUpdates.json + * x-ms-original-file: 2026-04-30/PostUpdates.json */ async function listAvailableUpdates() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesPrepareSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesPrepareSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesPrepareSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesPrepareSample.js index e30e38f90c7f..e8c55d097525 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesPrepareSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesPrepareSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to prepare Update * * @summary prepare Update - * x-ms-original-file: 2026-04-01-preview/Updates_Prepare.json + * x-ms-original-file: 2026-04-30/Updates_Prepare.json */ async function prepareUpdate() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesPutSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesPutSample.js similarity index 96% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesPutSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesPutSample.js index ca458e125fa5..d2d6069eb539 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/updatesPutSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/updatesPutSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to put specified Update * * @summary put specified Update - * x-ms-original-file: 2026-04-01-preview/PutUpdates.json + * x-ms-original-file: 2026-04-30/PutUpdates.json */ async function putASpecificUpdate() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/validatedSolutionRecipesGetSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/validatedSolutionRecipesGetSample.js similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/validatedSolutionRecipesGetSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/validatedSolutionRecipesGetSample.js index 57feb80e8750..a568a8b130a7 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/validatedSolutionRecipesGetSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/validatedSolutionRecipesGetSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to get a validated solution recipe. * * @summary get a validated solution recipe. - * x-ms-original-file: 2026-04-01-preview/ValidatedSolutionRecipes_Get.json + * x-ms-original-file: 2026-04-30/ValidatedSolutionRecipes_Get.json */ async function validatedSolutionRecipesGet() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/validatedSolutionRecipesListBySubscriptionLocationResourceSample.js b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/validatedSolutionRecipesListBySubscriptionLocationResourceSample.js similarity index 89% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/validatedSolutionRecipesListBySubscriptionLocationResourceSample.js rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/validatedSolutionRecipesListBySubscriptionLocationResourceSample.js index 8fa4c3e4ace1..94bffacc7672 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/javascript/validatedSolutionRecipesListBySubscriptionLocationResourceSample.js +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/javascript/validatedSolutionRecipesListBySubscriptionLocationResourceSample.js @@ -8,7 +8,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to list all validated solution recipes. * * @summary list all validated solution recipes. - * x-ms-original-file: 2026-04-01-preview/ValidatedSolutionRecipes_ListBySubscriptionLocationResource.json + * x-ms-original-file: 2026-04-30/ValidatedSolutionRecipes_ListBySubscriptionLocationResource.json */ async function validatedSolutionRecipesListBySubscriptionLocationResource() { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/README.md b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/README.md new file mode 100644 index 000000000000..27323e024667 --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/README.md @@ -0,0 +1,199 @@ +# @azure/arm-azurestackhci client library samples for TypeScript + +These sample programs show how to use the TypeScript client libraries for @azure/arm-azurestackhci in some common scenarios. + +| **File Name** | **Description** | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | +| [arcSettingsConsentAndInstallDefaultExtensionsSample.ts][arcsettingsconsentandinstalldefaultextensionssample] | add consent time for default extensions and initiate extensions installation x-ms-original-file: 2026-04-30/ConsentAndInstallDefaultExtensions.json | +| [arcSettingsCreateIdentitySample.ts][arcsettingscreateidentitysample] | create Aad identity for arc settings. x-ms-original-file: 2026-04-30/CreateArcIdentity.json | +| [arcSettingsCreateSample.ts][arcsettingscreatesample] | create ArcSetting for HCI cluster. x-ms-original-file: 2026-04-30/PutArcSetting.json | +| [arcSettingsDeleteSample.ts][arcsettingsdeletesample] | delete ArcSetting resource details of HCI Cluster. x-ms-original-file: 2026-04-30/DeleteArcSetting.json | +| [arcSettingsGeneratePasswordSample.ts][arcsettingsgeneratepasswordsample] | generate password for arc settings. x-ms-original-file: 2026-04-30/GeneratePassword.json | +| [arcSettingsGetSample.ts][arcsettingsgetsample] | get ArcSetting resource details of HCI Cluster. x-ms-original-file: 2026-04-30/GetArcSetting.json | +| [arcSettingsInitializeDisableProcessSample.ts][arcsettingsinitializedisableprocesssample] | initializes ARC Disable process on the cluster x-ms-original-file: 2026-04-30/InitializeDisableProcess.json | +| [arcSettingsListByClusterSample.ts][arcsettingslistbyclustersample] | get ArcSetting resources of HCI Cluster. x-ms-original-file: 2026-04-30/ListArcSettingsByCluster.json | +| [arcSettingsReconcileSample.ts][arcsettingsreconcilesample] | reconcile Arc Settings with information related to all nodes. x-ms-original-file: 2026-04-30/reconcileArcSettings.json | +| [arcSettingsUpdateSample.ts][arcsettingsupdatesample] | update ArcSettings for HCI cluster. x-ms-original-file: 2026-04-30/PatchArcSetting.json | +| [clustersConfigureRemoteSupportSample.ts][clustersconfigureremotesupportsample] | configure RemoteSupport on a cluster x-ms-original-file: 2026-04-30/ConfigureRemoteSupport.json | +| [clustersCreateIdentitySample.ts][clusterscreateidentitysample] | create cluster identity. x-ms-original-file: 2026-04-30/CreateClusterIdentity.json | +| [clustersCreateSample.ts][clusterscreatesample] | create an HCI cluster. x-ms-original-file: 2026-04-30/CreateCluster.json | +| [clustersDeleteSample.ts][clustersdeletesample] | delete an HCI cluster. x-ms-original-file: 2026-04-30/DeleteCluster.json | +| [clustersExtendSoftwareAssuranceBenefitSample.ts][clustersextendsoftwareassurancebenefitsample] | extends Software Assurance Benefit to a cluster x-ms-original-file: 2026-04-30/ExtendSoftwareAssuranceBenefit.json | +| [clustersGetSample.ts][clustersgetsample] | get HCI cluster. x-ms-original-file: 2026-04-30/GetCluster.json | +| [clustersListByResourceGroupSample.ts][clusterslistbyresourcegroupsample] | list all HCI clusters in a resource group. x-ms-original-file: 2026-04-30/ListClustersByResourceGroup.json | +| [clustersListBySubscriptionSample.ts][clusterslistbysubscriptionsample] | list all HCI clusters in a subscription. x-ms-original-file: 2026-04-30/ListClustersBySubscription.json | +| [clustersTriggerLogCollectionSample.ts][clusterstriggerlogcollectionsample] | trigger Log Collection on a cluster x-ms-original-file: 2026-04-30/TriggerLogCollection.json | +| [clustersUpdateSample.ts][clustersupdatesample] | update an HCI cluster. x-ms-original-file: 2026-04-30/UpdateCluster.json | +| [clustersUpdateSecretsLocationsSample.ts][clustersupdatesecretslocationssample] | update cluster secrets locations. x-ms-original-file: 2026-04-30/Clusters_UpdateSecretsLocations.json | +| [clustersUploadCertificateSample.ts][clustersuploadcertificatesample] | upload certificate. x-ms-original-file: 2026-04-30/UploadCertificate.json | +| [deploymentSettingsCreateOrUpdateSample.ts][deploymentsettingscreateorupdatesample] | create a DeploymentSetting x-ms-original-file: 2026-04-30/PutDeploymentSettings.json | +| [deploymentSettingsDeleteSample.ts][deploymentsettingsdeletesample] | delete a DeploymentSetting x-ms-original-file: 2026-04-30/DeleteDeploymentSettings.json | +| [deploymentSettingsGetSample.ts][deploymentsettingsgetsample] | get a DeploymentSetting x-ms-original-file: 2026-04-30/GetDeploymentSettings.json | +| [deploymentSettingsListByClustersSample.ts][deploymentsettingslistbyclusterssample] | list DeploymentSetting resources by Clusters x-ms-original-file: 2026-04-30/ListDeploymentSettingsByCluster.json | +| [edgeDeviceJobsCreateOrUpdateSample.ts][edgedevicejobscreateorupdatesample] | create a EdgeDeviceJob x-ms-original-file: 2026-04-30/EdgeDeviceJobs_CreateOrUpdate_CollectLog.json | +| [edgeDeviceJobsDeleteSample.ts][edgedevicejobsdeletesample] | delete a EdgeDeviceJob x-ms-original-file: 2026-04-30/EdgeDeviceJobs_Delete.json | +| [edgeDeviceJobsGetSample.ts][edgedevicejobsgetsample] | get a EdgeDeviceJob x-ms-original-file: 2026-04-30/EdgeDeviceJobs_Get_RemoteSupport.json | +| [edgeDeviceJobsListByEdgeDeviceSample.ts][edgedevicejobslistbyedgedevicesample] | list EdgeDeviceJob resources by EdgeDevice x-ms-original-file: 2026-04-30/EdgeDeviceJobs_ListByEdgeDevice.json | +| [edgeDevicesCreateOrUpdateSample.ts][edgedevicescreateorupdatesample] | create a EdgeDevice x-ms-original-file: 2026-04-30/CreateHciEdgeDevice.json | +| [edgeDevicesDeleteSample.ts][edgedevicesdeletesample] | delete a EdgeDevice x-ms-original-file: 2026-04-30/DeleteEdgeDevices.json | +| [edgeDevicesGetSample.ts][edgedevicesgetsample] | get a EdgeDevice x-ms-original-file: 2026-04-30/GetEdgeDevices.json | +| [edgeDevicesListSample.ts][edgedeviceslistsample] | list EdgeDevice resources by parent x-ms-original-file: 2026-04-30/ListEdgeDevices.json | +| [edgeDevicesValidateSample.ts][edgedevicesvalidatesample] | a long-running resource action. x-ms-original-file: 2026-04-30/ValidateEdgeDevices.json | +| [extensionsCreateSample.ts][extensionscreatesample] | create Extension for HCI cluster. x-ms-original-file: 2026-04-30/PutExtension.json | +| [extensionsDeleteSample.ts][extensionsdeletesample] | delete particular Arc Extension of HCI Cluster. x-ms-original-file: 2026-04-30/DeleteExtension.json | +| [extensionsGetSample.ts][extensionsgetsample] | get particular Arc Extension of HCI Cluster. x-ms-original-file: 2026-04-30/GetExtension.json | +| [extensionsListByArcSettingSample.ts][extensionslistbyarcsettingsample] | list all Extensions under ArcSetting resource. x-ms-original-file: 2026-04-30/ListExtensionsByArcSetting.json | +| [extensionsUpdateSample.ts][extensionsupdatesample] | update Extension for HCI cluster. x-ms-original-file: 2026-04-30/PatchExtension.json | +| [extensionsUpgradeSample.ts][extensionsupgradesample] | upgrade a particular Arc Extension of HCI Cluster. x-ms-original-file: 2026-04-30/Extensions_Upgrade.json | +| [offersGetSample.ts][offersgetsample] | get Offer resource details within a publisher of HCI Cluster. x-ms-original-file: 2026-04-30/GetOffer.json | +| [offersListByClusterSample.ts][offerslistbyclustersample] | list Offers available across publishers for the HCI Cluster. x-ms-original-file: 2026-04-30/ListOffersByCluster.json | +| [offersListByPublisherSample.ts][offerslistbypublishersample] | list Offers available for a publisher within the HCI Cluster. x-ms-original-file: 2026-04-30/ListOffersByPublisher.json | +| [operationsListSample.ts][operationslistsample] | list the operations for the provider x-ms-original-file: 2026-04-30/Operations_List.json | +| [securitySettingsCreateOrUpdateSample.ts][securitysettingscreateorupdatesample] | create a security setting x-ms-original-file: 2026-04-30/PutSecuritySettings.json | +| [securitySettingsDeleteSample.ts][securitysettingsdeletesample] | delete a SecuritySetting x-ms-original-file: 2026-04-30/DeleteSecuritySettings.json | +| [securitySettingsGetSample.ts][securitysettingsgetsample] | get a SecuritySetting x-ms-original-file: 2026-04-30/GetSecuritySettings.json | +| [securitySettingsListByClustersSample.ts][securitysettingslistbyclusterssample] | list SecuritySetting resources by Clusters x-ms-original-file: 2026-04-30/ListSecuritySettingsByCluster.json | +| [skusGetSample.ts][skusgetsample] | get SKU resource details within a offer of HCI Cluster. x-ms-original-file: 2026-04-30/GetSku.json | +| [skusListByOfferSample.ts][skuslistbyoffersample] | list Skus available for a offer within the HCI Cluster. x-ms-original-file: 2026-04-30/ListSkusByOffer.json | +| [updateRunsDeleteSample.ts][updaterunsdeletesample] | delete specified Update Run x-ms-original-file: 2026-04-30/DeleteUpdateRuns.json | +| [updateRunsGetSample.ts][updaterunsgetsample] | get the Update run for a specified update x-ms-original-file: 2026-04-30/GetUpdateRuns.json | +| [updateRunsListSample.ts][updaterunslistsample] | list all Update runs for a specified update x-ms-original-file: 2026-04-30/ListUpdateRuns.json | +| [updateRunsPutSample.ts][updaterunsputsample] | put Update runs for a specified update x-ms-original-file: 2026-04-30/PutUpdateRuns.json | +| [updateSummariesDeleteSample.ts][updatesummariesdeletesample] | delete Update Summaries x-ms-original-file: 2026-04-30/DeleteUpdateSummaries.json | +| [updateSummariesGetSample.ts][updatesummariesgetsample] | get all Update summaries under the HCI cluster x-ms-original-file: 2026-04-30/GetUpdateSummaries.json | +| [updateSummariesListSample.ts][updatesummarieslistsample] | list all Update summaries under the HCI cluster x-ms-original-file: 2026-04-30/ListUpdateSummaries.json | +| [updateSummariesOperationGroupCheckHealthSample.ts][updatesummariesoperationgroupcheckhealthsample] | check health of UpdateSummaries x-ms-original-file: 2026-04-30/UpdateSummaries_CheckHealth.json | +| [updateSummariesOperationGroupCheckUpdatesSample.ts][updatesummariesoperationgroupcheckupdatessample] | check for updates x-ms-original-file: 2026-04-30/UpdateSummaries_CheckUpdates.json | +| [updateSummariesPutSample.ts][updatesummariesputsample] | put Update summaries under the HCI cluster x-ms-original-file: 2026-04-30/PutUpdateSummaries.json | +| [updatesDeleteSample.ts][updatesdeletesample] | delete specified Update x-ms-original-file: 2026-04-30/DeleteUpdates.json | +| [updatesGetSample.ts][updatesgetsample] | get specified Update x-ms-original-file: 2026-04-30/GetUpdates.json | +| [updatesListSample.ts][updateslistsample] | list all Updates x-ms-original-file: 2026-04-30/ListUpdates.json | +| [updatesPostSample.ts][updatespostsample] | apply Update x-ms-original-file: 2026-04-30/PostUpdates.json | +| [updatesPrepareSample.ts][updatespreparesample] | prepare Update x-ms-original-file: 2026-04-30/Updates_Prepare.json | +| [updatesPutSample.ts][updatesputsample] | put specified Update x-ms-original-file: 2026-04-30/PutUpdates.json | +| [validatedSolutionRecipesGetSample.ts][validatedsolutionrecipesgetsample] | get a validated solution recipe. x-ms-original-file: 2026-04-30/ValidatedSolutionRecipes_Get.json | +| [validatedSolutionRecipesListBySubscriptionLocationResourceSample.ts][validatedsolutionrecipeslistbysubscriptionlocationresourcesample] | list all validated solution recipes. x-ms-original-file: 2026-04-30/ValidatedSolutionRecipes_ListBySubscriptionLocationResource.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/arcSettingsConsentAndInstallDefaultExtensionsSample.js +``` + +Alternatively, run a single sample with the required environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +node dist/arcSettingsConsentAndInstallDefaultExtensionsSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[arcsettingsconsentandinstalldefaultextensionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsConsentAndInstallDefaultExtensionsSample.ts +[arcsettingscreateidentitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsCreateIdentitySample.ts +[arcsettingscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsCreateSample.ts +[arcsettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsDeleteSample.ts +[arcsettingsgeneratepasswordsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsGeneratePasswordSample.ts +[arcsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsGetSample.ts +[arcsettingsinitializedisableprocesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsInitializeDisableProcessSample.ts +[arcsettingslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsListByClusterSample.ts +[arcsettingsreconcilesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsReconcileSample.ts +[arcsettingsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsUpdateSample.ts +[clustersconfigureremotesupportsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersConfigureRemoteSupportSample.ts +[clusterscreateidentitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersCreateIdentitySample.ts +[clusterscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersCreateSample.ts +[clustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersDeleteSample.ts +[clustersextendsoftwareassurancebenefitsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersExtendSoftwareAssuranceBenefitSample.ts +[clustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersGetSample.ts +[clusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersListByResourceGroupSample.ts +[clusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersListBySubscriptionSample.ts +[clusterstriggerlogcollectionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersTriggerLogCollectionSample.ts +[clustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersUpdateSample.ts +[clustersupdatesecretslocationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersUpdateSecretsLocationsSample.ts +[clustersuploadcertificatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersUploadCertificateSample.ts +[deploymentsettingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsCreateOrUpdateSample.ts +[deploymentsettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsDeleteSample.ts +[deploymentsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsGetSample.ts +[deploymentsettingslistbyclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsListByClustersSample.ts +[edgedevicejobscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsCreateOrUpdateSample.ts +[edgedevicejobsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsDeleteSample.ts +[edgedevicejobsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsGetSample.ts +[edgedevicejobslistbyedgedevicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsListByEdgeDeviceSample.ts +[edgedevicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesCreateOrUpdateSample.ts +[edgedevicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesDeleteSample.ts +[edgedevicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesGetSample.ts +[edgedeviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesListSample.ts +[edgedevicesvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesValidateSample.ts +[extensionscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsCreateSample.ts +[extensionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsDeleteSample.ts +[extensionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsGetSample.ts +[extensionslistbyarcsettingsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsListByArcSettingSample.ts +[extensionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsUpdateSample.ts +[extensionsupgradesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsUpgradeSample.ts +[offersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/offersGetSample.ts +[offerslistbyclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/offersListByClusterSample.ts +[offerslistbypublishersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/offersListByPublisherSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/operationsListSample.ts +[securitysettingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsCreateOrUpdateSample.ts +[securitysettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsDeleteSample.ts +[securitysettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsGetSample.ts +[securitysettingslistbyclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsListByClustersSample.ts +[skusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/skusGetSample.ts +[skuslistbyoffersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/skusListByOfferSample.ts +[updaterunsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsDeleteSample.ts +[updaterunsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsGetSample.ts +[updaterunslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsListSample.ts +[updaterunsputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsPutSample.ts +[updatesummariesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesDeleteSample.ts +[updatesummariesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesGetSample.ts +[updatesummarieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesListSample.ts +[updatesummariesoperationgroupcheckhealthsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesOperationGroupCheckHealthSample.ts +[updatesummariesoperationgroupcheckupdatessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesOperationGroupCheckUpdatesSample.ts +[updatesummariesputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesPutSample.ts +[updatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesDeleteSample.ts +[updatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesGetSample.ts +[updateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesListSample.ts +[updatespostsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesPostSample.ts +[updatespreparesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesPrepareSample.ts +[updatesputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesPutSample.ts +[validatedsolutionrecipesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/validatedSolutionRecipesGetSample.ts +[validatedsolutionrecipeslistbysubscriptionlocationresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/validatedSolutionRecipesListBySubscriptionLocationResourceSample.ts +[apiref]: https://learn.microsoft.com/javascript/api/@azure/arm-azurestackhci +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/azurestackhci/arm-azurestackhci/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/package.json b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/package.json similarity index 88% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/package.json rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/package.json index 7adb16a4c7a5..1e1175409ae0 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/package.json +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-azurestackhci-ts-beta", + "name": "@azure-samples/arm-azurestackhci-ts", "private": true, "version": "1.0.0", - "description": "@azure/arm-azurestackhci client library samples for TypeScript (Beta)", + "description": "@azure/arm-azurestackhci client library samples for TypeScript", "engines": { "node": ">=20.0.0" }, @@ -30,7 +30,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/azurestackhci/arm-azurestackhci", "dependencies": { - "@azure/arm-azurestackhci": "next", + "@azure/arm-azurestackhci": "latest", "dotenv": "latest", "@azure/identity": "^4.13.0" }, diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/sample.env b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/sample.env similarity index 100% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/sample.env rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/sample.env diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsConsentAndInstallDefaultExtensionsSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsConsentAndInstallDefaultExtensionsSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsConsentAndInstallDefaultExtensionsSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsConsentAndInstallDefaultExtensionsSample.ts index 951915387ad4..03329d0687ac 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsConsentAndInstallDefaultExtensionsSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsConsentAndInstallDefaultExtensionsSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to add consent time for default extensions and initiate extensions installation * * @summary add consent time for default extensions and initiate extensions installation - * x-ms-original-file: 2026-04-01-preview/ConsentAndInstallDefaultExtensions.json + * x-ms-original-file: 2026-04-30/ConsentAndInstallDefaultExtensions.json */ async function consentAndInstallDefaultExtensions(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateIdentitySample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsCreateIdentitySample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateIdentitySample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsCreateIdentitySample.ts index d47eb1b06e3c..5fc89b3ee1bf 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateIdentitySample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsCreateIdentitySample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create Aad identity for arc settings. * * @summary create Aad identity for arc settings. - * x-ms-original-file: 2026-04-01-preview/CreateArcIdentity.json + * x-ms-original-file: 2026-04-30/CreateArcIdentity.json */ async function createArcIdentity(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsCreateSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsCreateSample.ts index 3604a3ae84b3..872868e7ea15 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsCreateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create ArcSetting for HCI cluster. * * @summary create ArcSetting for HCI cluster. - * x-ms-original-file: 2026-04-01-preview/PutArcSetting.json + * x-ms-original-file: 2026-04-30/PutArcSetting.json */ async function createArcSetting(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsDeleteSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsDeleteSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsDeleteSample.ts index 6277bf7003cf..66af3adf02ee 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete ArcSetting resource details of HCI Cluster. * * @summary delete ArcSetting resource details of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/DeleteArcSetting.json + * x-ms-original-file: 2026-04-30/DeleteArcSetting.json */ async function deleteArcSetting(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGeneratePasswordSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsGeneratePasswordSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGeneratePasswordSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsGeneratePasswordSample.ts index f6171afebdef..caec0fc3bf8b 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGeneratePasswordSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsGeneratePasswordSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to generate password for arc settings. * * @summary generate password for arc settings. - * x-ms-original-file: 2026-04-01-preview/GeneratePassword.json + * x-ms-original-file: 2026-04-30/GeneratePassword.json */ async function generatePassword(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsGetSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGetSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsGetSample.ts index 56e73da5fb6d..97717635cda3 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get ArcSetting resource details of HCI Cluster. * * @summary get ArcSetting resource details of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/GetArcSetting.json + * x-ms-original-file: 2026-04-30/GetArcSetting.json */ async function getArcSetting(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsInitializeDisableProcessSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsInitializeDisableProcessSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsInitializeDisableProcessSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsInitializeDisableProcessSample.ts index cbe3ec6709fc..dcaddbeb6731 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsInitializeDisableProcessSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsInitializeDisableProcessSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to initializes ARC Disable process on the cluster * * @summary initializes ARC Disable process on the cluster - * x-ms-original-file: 2026-04-01-preview/InitializeDisableProcess.json + * x-ms-original-file: 2026-04-30/InitializeDisableProcess.json */ async function triggerARCDisable(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsListByClusterSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsListByClusterSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsListByClusterSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsListByClusterSample.ts index 9d8d6006d5fd..1bd6821eca7a 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsListByClusterSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsListByClusterSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get ArcSetting resources of HCI Cluster. * * @summary get ArcSetting resources of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/ListArcSettingsByCluster.json + * x-ms-original-file: 2026-04-30/ListArcSettingsByCluster.json */ async function listArcSettingResourcesByHCICluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsReconcileSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsReconcileSample.ts similarity index 94% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsReconcileSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsReconcileSample.ts index 65d851ff6c14..afc8a56ada1c 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsReconcileSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsReconcileSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to reconcile Arc Settings with information related to all nodes. * * @summary reconcile Arc Settings with information related to all nodes. - * x-ms-original-file: 2026-04-01-preview/reconcileArcSettings.json + * x-ms-original-file: 2026-04-30/reconcileArcSettings.json */ async function reconcileArcSettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsUpdateSample.ts similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsUpdateSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsUpdateSample.ts index 054b301a9755..98407425973e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsUpdateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/arcSettingsUpdateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to update ArcSettings for HCI cluster. * * @summary update ArcSettings for HCI cluster. - * x-ms-original-file: 2026-04-01-preview/PatchArcSetting.json + * x-ms-original-file: 2026-04-30/PatchArcSetting.json */ async function patchArcSetting(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersConfigureRemoteSupportSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersConfigureRemoteSupportSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersConfigureRemoteSupportSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersConfigureRemoteSupportSample.ts index 24e5351c8e2a..39ad291ef57d 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersConfigureRemoteSupportSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersConfigureRemoteSupportSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to configure RemoteSupport on a cluster * * @summary configure RemoteSupport on a cluster - * x-ms-original-file: 2026-04-01-preview/ConfigureRemoteSupport.json + * x-ms-original-file: 2026-04-30/ConfigureRemoteSupport.json */ async function configureRemoteSupport(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateIdentitySample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersCreateIdentitySample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateIdentitySample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersCreateIdentitySample.ts index d1e5dcd3f35a..48fe172722ce 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateIdentitySample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersCreateIdentitySample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create cluster identity. * * @summary create cluster identity. - * x-ms-original-file: 2026-04-01-preview/CreateClusterIdentity.json + * x-ms-original-file: 2026-04-30/CreateClusterIdentity.json */ async function createClusterIdentity(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersCreateSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersCreateSample.ts index 5d5b7649c80d..35aa4f08543e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersCreateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create an HCI cluster. * * @summary create an HCI cluster. - * x-ms-original-file: 2026-04-01-preview/CreateCluster.json + * x-ms-original-file: 2026-04-30/CreateCluster.json */ async function createCluster(): Promise { const credential = new DefaultAzureCredential(); @@ -16,7 +16,6 @@ async function createCluster(): Promise { const client = new AzureStackHCIClient(credential, subscriptionId); const result = await client.clusters.create("test-rg", "myCluster", { typeIdentityType: "SystemAssigned", - kind: "AzureLocal", location: "East US", aadClientId: "24a6e53d-04e5-44d2-b7cc-1b732a847dfc", aadTenantId: "7e589cc1-a8b6-4dff-91bd-5ec0fa18db94", diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersDeleteSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersDeleteSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersDeleteSample.ts index 54676f1dc3af..65d8ade296d6 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete an HCI cluster. * * @summary delete an HCI cluster. - * x-ms-original-file: 2026-04-01-preview/DeleteCluster.json + * x-ms-original-file: 2026-04-30/DeleteCluster.json */ async function deleteCluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersExtendSoftwareAssuranceBenefitSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersExtendSoftwareAssuranceBenefitSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersExtendSoftwareAssuranceBenefitSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersExtendSoftwareAssuranceBenefitSample.ts index 04e05436dc5d..d89c028a2d8c 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersExtendSoftwareAssuranceBenefitSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersExtendSoftwareAssuranceBenefitSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to extends Software Assurance Benefit to a cluster * * @summary extends Software Assurance Benefit to a cluster - * x-ms-original-file: 2026-04-01-preview/ExtendSoftwareAssuranceBenefit.json + * x-ms-original-file: 2026-04-30/ExtendSoftwareAssuranceBenefit.json */ async function createClusterIdentity(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersGetSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersGetSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersGetSample.ts index e2f40343e947..75bf56c1fc22 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get HCI cluster. * * @summary get HCI cluster. - * x-ms-original-file: 2026-04-01-preview/GetCluster.json + * x-ms-original-file: 2026-04-30/GetCluster.json */ async function getCluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListByResourceGroupSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersListByResourceGroupSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListByResourceGroupSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersListByResourceGroupSample.ts index 0f9ee2400781..80cabfbfe979 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListByResourceGroupSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersListByResourceGroupSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list all HCI clusters in a resource group. * * @summary list all HCI clusters in a resource group. - * x-ms-original-file: 2026-04-01-preview/ListClustersByResourceGroup.json + * x-ms-original-file: 2026-04-30/ListClustersByResourceGroup.json */ async function listClustersInAGivenResourceGroup(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListBySubscriptionSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersListBySubscriptionSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListBySubscriptionSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersListBySubscriptionSample.ts index 930380169bab..0260cf3da9d2 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListBySubscriptionSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersListBySubscriptionSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list all HCI clusters in a subscription. * * @summary list all HCI clusters in a subscription. - * x-ms-original-file: 2026-04-01-preview/ListClustersBySubscription.json + * x-ms-original-file: 2026-04-30/ListClustersBySubscription.json */ async function listClustersInAGivenSubscription(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersTriggerLogCollectionSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersTriggerLogCollectionSample.ts similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersTriggerLogCollectionSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersTriggerLogCollectionSample.ts index 54d75399d56f..04ae3ee9b5fb 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersTriggerLogCollectionSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersTriggerLogCollectionSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to trigger Log Collection on a cluster * * @summary trigger Log Collection on a cluster - * x-ms-original-file: 2026-04-01-preview/TriggerLogCollection.json + * x-ms-original-file: 2026-04-30/TriggerLogCollection.json */ async function triggerLogCollection(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersUpdateSample.ts similarity index 94% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUpdateSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersUpdateSample.ts index c7e4e5dae95f..f99b98fcde7e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUpdateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersUpdateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to update an HCI cluster. * * @summary update an HCI cluster. - * x-ms-original-file: 2026-04-01-preview/UpdateCluster.json + * x-ms-original-file: 2026-04-30/UpdateCluster.json */ async function updateCluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUpdateSecretsLocationsSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersUpdateSecretsLocationsSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUpdateSecretsLocationsSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersUpdateSecretsLocationsSample.ts index 9ff94903046c..34256d52fe9d 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUpdateSecretsLocationsSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersUpdateSecretsLocationsSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to update cluster secrets locations. * * @summary update cluster secrets locations. - * x-ms-original-file: 2026-04-01-preview/Clusters_UpdateSecretsLocations.json + * x-ms-original-file: 2026-04-30/Clusters_UpdateSecretsLocations.json */ async function updateSecretsLocationsForACluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUploadCertificateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersUploadCertificateSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUploadCertificateSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersUploadCertificateSample.ts index 294a0225e93e..437f6000b405 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUploadCertificateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/clustersUploadCertificateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to upload certificate. * * @summary upload certificate. - * x-ms-original-file: 2026-04-01-preview/UploadCertificate.json + * x-ms-original-file: 2026-04-30/UploadCertificate.json */ async function uploadCertificate(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..501cff1f9348 --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsCreateOrUpdateSample.ts @@ -0,0 +1,716 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { AzureStackHCIClient } from "@azure/arm-azurestackhci"; +import { DefaultAzureCredential } from "@azure/identity"; + +/** + * This sample demonstrates how to create a DeploymentSetting + * + * @summary create a DeploymentSetting + * x-ms-original-file: 2026-04-30/PutDeploymentSettings.json + */ +async function createDeploymentSettings(): Promise { + const credential = new DefaultAzureCredential(); + const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; + const client = new AzureStackHCIClient(credential, subscriptionId); + const result = await client.deploymentSettings.createOrUpdate("test-rg", "myCluster", "default", { + arcNodeResourceIds: [ + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", + ], + deploymentConfiguration: { + scaleUnits: [ + { + deploymentData: { + adouPath: "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com", + cluster: { + name: "testHCICluster", + azureServiceEndpoint: "core.windows.net", + cloudAccountName: "myasestoragacct", + witnessPath: "Cloud", + witnessType: "Cloud", + }, + domainFqdn: "ASZ1PLab8.nttest.microsoft.com", + hostNetwork: { + enableStorageAutoIp: false, + intents: [ + { + name: "Compute_Management", + adapter: ["Port2"], + adapterPropertyOverrides: { + jumboPacket: "1514", + networkDirect: "Enabled", + networkDirectTechnology: "iWARP", + }, + overrideAdapterProperty: false, + overrideQosPolicy: false, + overrideVirtualSwitchConfiguration: false, + qosPolicyOverrides: { + bandwidthPercentageSMB: "50", + priorityValue8021ActionCluster: "7", + priorityValue8021ActionSMB: "3", + }, + trafficType: ["Compute", "Management"], + virtualSwitchConfigurationOverrides: { + enableIov: "True", + loadBalancingAlgorithm: "HyperVPort", + }, + }, + ], + storageConnectivitySwitchless: true, + storageNetworks: [ + { + name: "Storage1Network", + networkAdapterName: "Port3", + storageAdapterIPInfo: [ + { + ipv4Address: "10.57.48.60", + physicalNode: "string", + subnetMask: "255.255.248.0", + }, + ], + vlanId: "5", + }, + ], + sanNetworks: { + clusterNetworkConfig: { + adapterProperties: { + bandwidthPercentageSmb: 50, + jumboPacket: 9014, + priorityValue8021ActionCluster: 7, + priorityValue8021ActionSmb: 3, + }, + adapterIPConfig: [ + { + name: "clusterNetwork-A", + networkAdapterName: "ethernet 3", + vlanId: 711, + addressPrefix: "10.10.30.0/24", + }, + ], + }, + }, + }, + infrastructureNetwork: [ + { + dnsServerConfig: "UseDnsServer", + dnsServers: ["10.57.50.90"], + gateway: "255.255.248.0", + ipPools: [{ endingAddress: "10.57.48.66", startingAddress: "10.57.48.60" }], + subnetMask: "255.255.248.0", + }, + ], + isManagementCluster: true, + namingPrefix: "ms169", + observability: { + episodicDataUpload: true, + euLocation: false, + streamingDataClient: true, + }, + optionalServices: { customLocation: "customLocationName" }, + physicalNodes: [ + { name: "ms169host", ipv4Address: "10.57.51.224" }, + { name: "ms154host", ipv4Address: "10.57.53.236" }, + ], + sdnIntegration: { + networkController: { + macAddressPoolStart: "00-0D-3A-1B-C7-21", + macAddressPoolStop: "00-0D-3A-1B-C7-29", + networkVirtualizationEnabled: true, + }, + }, + secrets: [ + { + eceSecretName: "BMCAdminUserCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + { + eceSecretName: "AzureStackLCMUserCredential", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4c", + secretName: + "cluster2-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + secretsLocation: + "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123", + securitySettings: { + bitlockerBootVolume: true, + bitlockerDataVolumes: true, + credentialGuardEnforced: false, + driftControlEnforced: true, + drtmProtection: true, + hvciProtection: true, + sideChannelMitigationEnforced: true, + smbClusterEncryption: false, + smbSigningEnforced: true, + wdacEnforced: true, + }, + storage: { + configurationMode: "Express", + storageType: "S2D", + s2D: { volumeType: "ThinProvisioned", overprovisioningRatio: "2" }, + }, + }, + sbePartnerInfo: { + credentialList: [ + { + eceSecretName: "DownloadConnectorCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + partnerProperties: [ + { name: "EnableBMCIpV6", value: "false" }, + { name: "PhoneHomePort", value: "1653" }, + { name: "BMCSecurityState", value: "HighSecurity" }, + ], + sbeDeploymentInfo: { + family: "Gen5", + publisher: "Contoso", + sbeManifestCreationDate: new Date("2023-07-25T02:40:33Z"), + sbeManifestSource: "default", + version: "4.0.2309.13", + }, + }, + }, + ], + version: "string", + }, + deploymentMode: "Deploy", + operationType: "ClusterProvisioning", + }); + console.log(result); +} + +/** + * This sample demonstrates how to create a DeploymentSetting + * + * @summary create a DeploymentSetting + * x-ms-original-file: 2026-04-30/PutDeploymentSettingsWithADLess.json + */ +async function createDeploymentSettingsWithoutActiveDirectoryIntegration(): Promise { + const credential = new DefaultAzureCredential(); + const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; + const client = new AzureStackHCIClient(credential, subscriptionId); + const result = await client.deploymentSettings.createOrUpdate("test-rg", "myCluster", "default", { + arcNodeResourceIds: [ + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", + ], + deploymentConfiguration: { + scaleUnits: [ + { + deploymentData: { + adouPath: "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com", + cluster: { + name: "testHCICluster", + azureServiceEndpoint: "core.windows.net", + cloudAccountName: "myasestoragacct", + witnessPath: "Cloud", + witnessType: "Cloud", + }, + domainFqdn: "ASZ1PLab8.nttest.microsoft.com", + hostNetwork: { + enableStorageAutoIp: false, + intents: [ + { + name: "Compute_Management", + adapter: ["Port2"], + adapterPropertyOverrides: { + jumboPacket: "1514", + networkDirect: "Enabled", + networkDirectTechnology: "iWARP", + }, + overrideAdapterProperty: false, + overrideQosPolicy: false, + overrideVirtualSwitchConfiguration: false, + qosPolicyOverrides: { + bandwidthPercentageSMB: "50", + priorityValue8021ActionCluster: "7", + priorityValue8021ActionSMB: "3", + }, + trafficType: ["Compute", "Management"], + virtualSwitchConfigurationOverrides: { + enableIov: "True", + loadBalancingAlgorithm: "HyperVPort", + }, + }, + ], + storageConnectivitySwitchless: true, + storageNetworks: [ + { + name: "Storage1Network", + networkAdapterName: "Port3", + storageAdapterIPInfo: [ + { + ipv4Address: "10.57.48.60", + physicalNode: "string", + subnetMask: "255.255.248.0", + }, + ], + vlanId: "5", + }, + ], + sanNetworks: { + clusterNetworkConfig: { + adapterProperties: { + bandwidthPercentageSmb: 50, + jumboPacket: 9014, + priorityValue8021ActionCluster: 7, + priorityValue8021ActionSmb: 3, + }, + adapterIPConfig: [ + { + name: "clusterNetwork-A", + networkAdapterName: "ethernet 3", + vlanId: 711, + addressPrefix: "10.10.30.0/24", + }, + ], + }, + }, + }, + identityProvider: "LocalIdentity", + infrastructureNetwork: [ + { + dnsZones: [{ dnsForwarder: ["192.168.1.1"], dnsZoneName: "contoso.com" }], + gateway: "255.255.248.0", + ipPools: [{ endingAddress: "10.57.48.66", startingAddress: "10.57.48.60" }], + subnetMask: "255.255.248.0", + }, + ], + namingPrefix: "ms169", + observability: { + episodicDataUpload: true, + euLocation: false, + streamingDataClient: true, + }, + optionalServices: { customLocation: "customLocationName" }, + physicalNodes: [ + { name: "ms169host", ipv4Address: "10.57.51.224" }, + { name: "ms154host", ipv4Address: "10.57.53.236" }, + ], + sdnIntegration: { + networkController: { + macAddressPoolStart: "00-0D-3A-1B-C7-21", + macAddressPoolStop: "00-0D-3A-1B-C7-29", + networkVirtualizationEnabled: true, + }, + }, + secrets: [ + { + eceSecretName: "BMCAdminUserCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + { + eceSecretName: "AzureStackLCMUserCredential", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4c", + secretName: + "cluster2-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + secretsLocation: + "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123", + securitySettings: { + bitlockerBootVolume: true, + bitlockerDataVolumes: true, + credentialGuardEnforced: false, + driftControlEnforced: true, + drtmProtection: true, + hvciProtection: true, + sideChannelMitigationEnforced: true, + smbClusterEncryption: false, + smbSigningEnforced: true, + wdacEnforced: true, + }, + storage: { + configurationMode: "Express", + storageType: "S2D", + s2D: { volumeType: "ThinProvisioned", overprovisioningRatio: "2" }, + }, + }, + sbePartnerInfo: { + credentialList: [ + { + eceSecretName: "DownloadConnectorCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + partnerProperties: [ + { name: "EnableBMCIpV6", value: "false" }, + { name: "PhoneHomePort", value: "1653" }, + { name: "BMCSecurityState", value: "HighSecurity" }, + ], + sbeDeploymentInfo: { + family: "Gen5", + publisher: "Contoso", + sbeManifestCreationDate: new Date("2023-07-25T02:40:33Z"), + sbeManifestSource: "default", + version: "4.0.2309.13", + }, + }, + }, + ], + version: "string", + }, + deploymentMode: "Deploy", + operationType: "ClusterProvisioning", + }); + console.log(result); +} + +/** + * This sample demonstrates how to create a DeploymentSetting + * + * @summary create a DeploymentSetting + * x-ms-original-file: 2026-04-30/PutDeploymentSettings_StorageS2D.json + */ +async function createDeploymentSettingsWithS2DStorage(): Promise { + const credential = new DefaultAzureCredential(); + const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; + const client = new AzureStackHCIClient(credential, subscriptionId); + const result = await client.deploymentSettings.createOrUpdate("test-rg", "myCluster", "default", { + arcNodeResourceIds: [ + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", + ], + deploymentConfiguration: { + scaleUnits: [ + { + deploymentData: { + adouPath: "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com", + cluster: { + name: "testHCICluster", + azureServiceEndpoint: "core.windows.net", + cloudAccountName: "myasestoragacct", + witnessPath: "Cloud", + witnessType: "Cloud", + }, + domainFqdn: "ASZ1PLab8.nttest.microsoft.com", + hostNetwork: { + enableStorageAutoIp: false, + intents: [ + { + name: "Compute_Management", + adapter: ["Port2"], + adapterPropertyOverrides: { + jumboPacket: "1514", + networkDirect: "Enabled", + networkDirectTechnology: "iWARP", + }, + overrideAdapterProperty: false, + overrideQosPolicy: false, + overrideVirtualSwitchConfiguration: false, + qosPolicyOverrides: { + bandwidthPercentageSMB: "50", + priorityValue8021ActionCluster: "7", + priorityValue8021ActionSMB: "3", + }, + trafficType: ["Compute", "Management"], + virtualSwitchConfigurationOverrides: { + enableIov: "True", + loadBalancingAlgorithm: "HyperVPort", + }, + }, + ], + storageConnectivitySwitchless: true, + storageNetworks: [ + { + name: "Storage1Network", + networkAdapterName: "Port3", + storageAdapterIPInfo: [ + { + ipv4Address: "10.57.48.60", + physicalNode: "string", + subnetMask: "255.255.248.0", + }, + ], + vlanId: "5", + }, + ], + }, + infrastructureNetwork: [ + { + dnsServerConfig: "UseDnsServer", + dnsServers: ["10.57.50.90"], + gateway: "255.255.248.0", + ipPools: [{ endingAddress: "10.57.48.66", startingAddress: "10.57.48.60" }], + subnetMask: "255.255.248.0", + }, + ], + isManagementCluster: true, + namingPrefix: "ms169", + observability: { + episodicDataUpload: true, + euLocation: false, + streamingDataClient: true, + }, + optionalServices: { customLocation: "customLocationName" }, + physicalNodes: [ + { name: "ms169host", ipv4Address: "10.57.51.224" }, + { name: "ms154host", ipv4Address: "10.57.53.236" }, + ], + secrets: [ + { + eceSecretName: "BMCAdminUserCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + { + eceSecretName: "AzureStackLCMUserCredential", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4c", + secretName: + "cluster2-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + secretsLocation: + "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123", + securitySettings: { + bitlockerBootVolume: true, + bitlockerDataVolumes: true, + credentialGuardEnforced: false, + driftControlEnforced: true, + drtmProtection: true, + hvciProtection: true, + sideChannelMitigationEnforced: true, + smbClusterEncryption: false, + smbSigningEnforced: true, + wdacEnforced: true, + }, + storage: { + configurationMode: "Express", + storageType: "S2D", + s2D: { volumeType: "ThinProvisioned", overprovisioningRatio: "2" }, + }, + }, + sbePartnerInfo: { + credentialList: [ + { + eceSecretName: "DownloadConnectorCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + partnerProperties: [ + { name: "EnableBMCIpV6", value: "false" }, + { name: "PhoneHomePort", value: "1653" }, + { name: "BMCSecurityState", value: "HighSecurity" }, + ], + sbeDeploymentInfo: { + family: "Gen5", + publisher: "Contoso", + sbeManifestCreationDate: new Date("2023-07-25T02:40:33Z"), + sbeManifestSource: "default", + version: "4.0.2309.13", + }, + }, + }, + ], + version: "string", + }, + deploymentMode: "Deploy", + operationType: "ClusterProvisioning", + }); + console.log(result); +} + +/** + * This sample demonstrates how to create a DeploymentSetting + * + * @summary create a DeploymentSetting + * x-ms-original-file: 2026-04-30/PutDeploymentSettings_StorageSAN.json + */ +async function createDeploymentSettingsWithSANStorage(): Promise { + const credential = new DefaultAzureCredential(); + const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b"; + const client = new AzureStackHCIClient(credential, subscriptionId); + const result = await client.deploymentSettings.createOrUpdate("test-rg", "myCluster", "default", { + arcNodeResourceIds: [ + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1", + "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2", + ], + deploymentConfiguration: { + scaleUnits: [ + { + deploymentData: { + adouPath: "OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com", + cluster: { + name: "testHCICluster", + azureServiceEndpoint: "core.windows.net", + cloudAccountName: "myasestoragacct", + witnessPath: "Cloud", + witnessType: "Cloud", + }, + domainFqdn: "ASZ1PLab8.nttest.microsoft.com", + hostNetwork: { + enableStorageAutoIp: false, + intents: [ + { + name: "Compute_Management", + adapter: ["Port2"], + adapterPropertyOverrides: { + jumboPacket: "1514", + networkDirect: "Enabled", + networkDirectTechnology: "iWARP", + }, + overrideAdapterProperty: false, + overrideQosPolicy: false, + overrideVirtualSwitchConfiguration: false, + qosPolicyOverrides: { + bandwidthPercentageSMB: "50", + priorityValue8021ActionCluster: "7", + priorityValue8021ActionSMB: "3", + }, + trafficType: ["Compute", "Management"], + virtualSwitchConfigurationOverrides: { + enableIov: "True", + loadBalancingAlgorithm: "HyperVPort", + }, + }, + ], + storageConnectivitySwitchless: true, + storageNetworks: [ + { + name: "Storage1Network", + networkAdapterName: "Port3", + storageAdapterIPInfo: [ + { + ipv4Address: "10.57.48.60", + physicalNode: "string", + subnetMask: "255.255.248.0", + }, + ], + vlanId: "5", + }, + ], + sanNetworks: { + clusterNetworkConfig: { + adapterProperties: { + bandwidthPercentageSmb: 50, + jumboPacket: 9014, + priorityValue8021ActionCluster: 7, + priorityValue8021ActionSmb: 3, + }, + adapterIPConfig: [ + { + name: "clusterNetwork-A", + networkAdapterName: "ethernet 3", + vlanId: 711, + addressPrefix: "10.10.30.0/24", + }, + ], + }, + }, + }, + infrastructureNetwork: [ + { + dnsServerConfig: "UseDnsServer", + dnsServers: ["10.57.50.90"], + gateway: "255.255.248.0", + ipPools: [{ endingAddress: "10.57.48.66", startingAddress: "10.57.48.60" }], + subnetMask: "255.255.248.0", + }, + ], + isManagementCluster: true, + namingPrefix: "ms169", + observability: { + episodicDataUpload: true, + euLocation: false, + streamingDataClient: true, + }, + optionalServices: { customLocation: "customLocationName" }, + physicalNodes: [ + { name: "ms169host", ipv4Address: "10.57.51.224" }, + { name: "ms154host", ipv4Address: "10.57.53.236" }, + ], + secrets: [ + { + eceSecretName: "BMCAdminUserCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-BmcAdminUser-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + { + eceSecretName: "AzureStackLCMUserCredential", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4c", + secretName: + "cluster2-AzureStackLCMUserCredential-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + secretsLocation: + "/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123", + securitySettings: { + bitlockerBootVolume: true, + bitlockerDataVolumes: true, + credentialGuardEnforced: false, + driftControlEnforced: true, + drtmProtection: true, + hvciProtection: true, + sideChannelMitigationEnforced: true, + smbClusterEncryption: false, + smbSigningEnforced: true, + wdacEnforced: true, + }, + storage: { + configurationMode: "Express", + storageType: "SAN", + san: { + infraVolLunId: "PURE1234567890ABCDEF", + infraPerfLunId: "PURE0987654321MNOPQR", + }, + }, + }, + sbePartnerInfo: { + credentialList: [ + { + eceSecretName: "DownloadConnectorCred", + secretLocation: + "https://sclusterkvnirhci35.vault.azure.net/secrets/cluster-34232342-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63/9276354aabfc492fa9b2cdbefb54ae4b", + secretName: "cluster1-DownloadConnectorCred-f5bcc1d9-23af-4ae9-aca1-041d0f593a63", + }, + ], + partnerProperties: [ + { name: "EnableBMCIpV6", value: "false" }, + { name: "PhoneHomePort", value: "1653" }, + { name: "BMCSecurityState", value: "HighSecurity" }, + ], + sbeDeploymentInfo: { + family: "Gen5", + publisher: "Contoso", + sbeManifestCreationDate: new Date("2023-07-25T02:40:33Z"), + sbeManifestSource: "default", + version: "4.0.2309.13", + }, + }, + }, + ], + version: "string", + }, + deploymentMode: "Deploy", + operationType: "ClusterProvisioning", + }); + console.log(result); +} + +async function main(): Promise { + await createDeploymentSettings(); + await createDeploymentSettingsWithoutActiveDirectoryIntegration(); + await createDeploymentSettingsWithS2DStorage(); + await createDeploymentSettingsWithSANStorage(); +} + +main().catch(console.error); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsDeleteSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsDeleteSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsDeleteSample.ts index 7ca19c193502..d283d8f04379 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete a DeploymentSetting * * @summary delete a DeploymentSetting - * x-ms-original-file: 2026-04-01-preview/DeleteDeploymentSettings.json + * x-ms-original-file: 2026-04-30/DeleteDeploymentSettings.json */ async function deleteDeploymentSettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsGetSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsGetSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsGetSample.ts index 0b2e5bb7dd1a..e537e77fd759 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get a DeploymentSetting * * @summary get a DeploymentSetting - * x-ms-original-file: 2026-04-01-preview/GetDeploymentSettings.json + * x-ms-original-file: 2026-04-30/GetDeploymentSettings.json */ async function getDeploymentSettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsListByClustersSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsListByClustersSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsListByClustersSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsListByClustersSample.ts index 1ffd78989c5f..8fcabeb07344 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsListByClustersSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/deploymentSettingsListByClustersSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list DeploymentSetting resources by Clusters * * @summary list DeploymentSetting resources by Clusters - * x-ms-original-file: 2026-04-01-preview/ListDeploymentSettingsByCluster.json + * x-ms-original-file: 2026-04-30/ListDeploymentSettingsByCluster.json */ async function listDeploymentSettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsCreateOrUpdateSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsCreateOrUpdateSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsCreateOrUpdateSample.ts index 48657559b89f..7f86c62cd065 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsCreateOrUpdateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsCreateOrUpdateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create a EdgeDeviceJob * * @summary create a EdgeDeviceJob - * x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_CreateOrUpdate_CollectLog.json + * x-ms-original-file: 2026-04-30/EdgeDeviceJobs_CreateOrUpdate_CollectLog.json */ async function edgeDeviceJobsCreateOrUpdateCollectLog(): Promise { const credential = new DefaultAzureCredential(); @@ -33,7 +33,7 @@ async function edgeDeviceJobsCreateOrUpdateCollectLog(): Promise { * This sample demonstrates how to create a EdgeDeviceJob * * @summary create a EdgeDeviceJob - * x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_CreateOrUpdate_RemoteSupport.json + * x-ms-original-file: 2026-04-30/EdgeDeviceJobs_CreateOrUpdate_RemoteSupport.json */ async function edgeDeviceJobsCreateOrUpdateRemoteSupport(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsDeleteSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsDeleteSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsDeleteSample.ts index 414e68365379..a94811a5e834 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete a EdgeDeviceJob * * @summary delete a EdgeDeviceJob - * x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_Delete.json + * x-ms-original-file: 2026-04-30/EdgeDeviceJobs_Delete.json */ async function edgeDeviceJobsDelete(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsGetSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsGetSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsGetSample.ts index 2b25341bb6b6..8113aa60f6e0 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get a EdgeDeviceJob * * @summary get a EdgeDeviceJob - * x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_Get_RemoteSupport.json + * x-ms-original-file: 2026-04-30/EdgeDeviceJobs_Get_RemoteSupport.json */ async function edgeDeviceJobsGetRemoteSupport(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsListByEdgeDeviceSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsListByEdgeDeviceSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsListByEdgeDeviceSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsListByEdgeDeviceSample.ts index 271999cd734e..643f9536fc5a 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDeviceJobsListByEdgeDeviceSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDeviceJobsListByEdgeDeviceSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list EdgeDeviceJob resources by EdgeDevice * * @summary list EdgeDeviceJob resources by EdgeDevice - * x-ms-original-file: 2026-04-01-preview/EdgeDeviceJobs_ListByEdgeDevice.json + * x-ms-original-file: 2026-04-30/EdgeDeviceJobs_ListByEdgeDevice.json */ async function edgeDeviceJobsListByEdgeDevice(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesCreateOrUpdateSample.ts similarity index 95% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesCreateOrUpdateSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesCreateOrUpdateSample.ts index fb599542b800..636c3e972f72 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesCreateOrUpdateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesCreateOrUpdateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create a EdgeDevice * * @summary create a EdgeDevice - * x-ms-original-file: 2026-04-01-preview/CreateHciEdgeDevice.json + * x-ms-original-file: 2026-04-30/CreateHciEdgeDevice.json */ async function createHCIEdgeDevice(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesDeleteSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesDeleteSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesDeleteSample.ts index df16ad5a1def..a17663ae0011 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete a EdgeDevice * * @summary delete a EdgeDevice - * x-ms-original-file: 2026-04-01-preview/DeleteEdgeDevices.json + * x-ms-original-file: 2026-04-30/DeleteEdgeDevices.json */ async function deleteEdgeDevices(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesGetSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesGetSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesGetSample.ts index cf2747d98acc..32340cca8cab 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get a EdgeDevice * * @summary get a EdgeDevice - * x-ms-original-file: 2026-04-01-preview/GetEdgeDevices.json + * x-ms-original-file: 2026-04-30/GetEdgeDevices.json */ async function getEdgeDevice(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesListSample.ts similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesListSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesListSample.ts index 4bce8209621b..dda005ac5b30 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesListSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesListSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list EdgeDevice resources by parent * * @summary list EdgeDevice resources by parent - * x-ms-original-file: 2026-04-01-preview/ListEdgeDevices.json + * x-ms-original-file: 2026-04-30/ListEdgeDevices.json */ async function listEdgeDevices(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesValidateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesValidateSample.ts similarity index 94% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesValidateSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesValidateSample.ts index 63dcc6800c8a..9ea370507d3c 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesValidateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/edgeDevicesValidateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to a long-running resource action. * * @summary a long-running resource action. - * x-ms-original-file: 2026-04-01-preview/ValidateEdgeDevices.json + * x-ms-original-file: 2026-04-30/ValidateEdgeDevices.json */ async function validateEdgeDevices(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsCreateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsCreateSample.ts similarity index 94% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsCreateSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsCreateSample.ts index e09aaa0aa11b..3d2b210e7a11 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsCreateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsCreateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create Extension for HCI cluster. * * @summary create Extension for HCI cluster. - * x-ms-original-file: 2026-04-01-preview/PutExtension.json + * x-ms-original-file: 2026-04-30/PutExtension.json */ async function createArcExtension(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsDeleteSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsDeleteSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsDeleteSample.ts index 4177b7bc3890..4d6abb142fe1 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete particular Arc Extension of HCI Cluster. * * @summary delete particular Arc Extension of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/DeleteExtension.json + * x-ms-original-file: 2026-04-30/DeleteExtension.json */ async function deleteArcExtension(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsGetSample.ts similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsGetSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsGetSample.ts index d132744a4858..496687dcd20d 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get particular Arc Extension of HCI Cluster. * * @summary get particular Arc Extension of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/GetExtension.json + * x-ms-original-file: 2026-04-30/GetExtension.json */ async function getArcSettingsExtension(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsListByArcSettingSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsListByArcSettingSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsListByArcSettingSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsListByArcSettingSample.ts index 2cfbed263963..8e6358636242 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsListByArcSettingSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsListByArcSettingSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list all Extensions under ArcSetting resource. * * @summary list all Extensions under ArcSetting resource. - * x-ms-original-file: 2026-04-01-preview/ListExtensionsByArcSetting.json + * x-ms-original-file: 2026-04-30/ListExtensionsByArcSetting.json */ async function listExtensionsUnderArcSettingResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsUpdateSample.ts similarity index 94% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpdateSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsUpdateSample.ts index f8c22d923c6e..47365ddd92d0 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpdateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsUpdateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to update Extension for HCI cluster. * * @summary update Extension for HCI cluster. - * x-ms-original-file: 2026-04-01-preview/PatchExtension.json + * x-ms-original-file: 2026-04-30/PatchExtension.json */ async function updateArcExtension(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpgradeSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsUpgradeSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpgradeSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsUpgradeSample.ts index b7fc61fab131..2c1b32e2ced3 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpgradeSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/extensionsUpgradeSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to upgrade a particular Arc Extension of HCI Cluster. * * @summary upgrade a particular Arc Extension of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/Extensions_Upgrade.json + * x-ms-original-file: 2026-04-30/Extensions_Upgrade.json */ async function upgradeMachineExtensions(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/offersGetSample.ts similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersGetSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/offersGetSample.ts index 746d9c869f56..34d3c25c046b 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/offersGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get Offer resource details within a publisher of HCI Cluster. * * @summary get Offer resource details within a publisher of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/GetOffer.json + * x-ms-original-file: 2026-04-30/GetOffer.json */ async function getOffer(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByClusterSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/offersListByClusterSample.ts similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByClusterSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/offersListByClusterSample.ts index 3d7c29a243d8..5cff5a903a6b 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByClusterSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/offersListByClusterSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list Offers available across publishers for the HCI Cluster. * * @summary list Offers available across publishers for the HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/ListOffersByCluster.json + * x-ms-original-file: 2026-04-30/ListOffersByCluster.json */ async function listOfferResourcesByHCICluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByPublisherSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/offersListByPublisherSample.ts similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByPublisherSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/offersListByPublisherSample.ts index ed3dafc360f5..d55bbfa71bb5 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByPublisherSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/offersListByPublisherSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list Offers available for a publisher within the HCI Cluster. * * @summary list Offers available for a publisher within the HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/ListOffersByPublisher.json + * x-ms-original-file: 2026-04-30/ListOffersByPublisher.json */ async function listOfferResourcesByPublisherForTheHCICluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/operationsListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/operationsListSample.ts similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/operationsListSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/operationsListSample.ts index 18d36c8464c0..e9d7baaab88c 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/operationsListSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/operationsListSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list the operations for the provider * * @summary list the operations for the provider - * x-ms-original-file: 2026-04-01-preview/Operations_List.json + * x-ms-original-file: 2026-04-30/Operations_List.json */ async function listTheOperationsForTheProvider(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsCreateOrUpdateSample.ts similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsCreateOrUpdateSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsCreateOrUpdateSample.ts index 15e305a4d71e..5924fde91751 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsCreateOrUpdateSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsCreateOrUpdateSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to create a security setting * * @summary create a security setting - * x-ms-original-file: 2026-04-01-preview/PutSecuritySettings.json + * x-ms-original-file: 2026-04-30/PutSecuritySettings.json */ async function createSecuritySettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsDeleteSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsDeleteSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsDeleteSample.ts index 2557d56c459c..5d5b815b3842 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete a SecuritySetting * * @summary delete a SecuritySetting - * x-ms-original-file: 2026-04-01-preview/DeleteSecuritySettings.json + * x-ms-original-file: 2026-04-30/DeleteSecuritySettings.json */ async function deleteSecuritySettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsGetSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsGetSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsGetSample.ts index cc42d1d4cf99..8b5a82f990c0 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get a SecuritySetting * * @summary get a SecuritySetting - * x-ms-original-file: 2026-04-01-preview/GetSecuritySettings.json + * x-ms-original-file: 2026-04-30/GetSecuritySettings.json */ async function getSecuritySettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsListByClustersSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsListByClustersSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsListByClustersSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsListByClustersSample.ts index 53c63e8e3ebb..3a0a05708549 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsListByClustersSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/securitySettingsListByClustersSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list SecuritySetting resources by Clusters * * @summary list SecuritySetting resources by Clusters - * x-ms-original-file: 2026-04-01-preview/ListSecuritySettingsByCluster.json + * x-ms-original-file: 2026-04-30/ListSecuritySettingsByCluster.json */ async function listSecuritySettings(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/skusGetSample.ts similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusGetSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/skusGetSample.ts index 2cb9299015f0..2a7b78eae5cf 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/skusGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get SKU resource details within a offer of HCI Cluster. * * @summary get SKU resource details within a offer of HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/GetSku.json + * x-ms-original-file: 2026-04-30/GetSku.json */ async function getSku(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusListByOfferSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/skusListByOfferSample.ts similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusListByOfferSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/skusListByOfferSample.ts index ba8020ab7cda..8d8beaa5c017 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusListByOfferSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/skusListByOfferSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list Skus available for a offer within the HCI Cluster. * * @summary list Skus available for a offer within the HCI Cluster. - * x-ms-original-file: 2026-04-01-preview/ListSkusByOffer.json + * x-ms-original-file: 2026-04-30/ListSkusByOffer.json */ async function listSKUResourcesByOfferForTheHCICluster(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsDeleteSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsDeleteSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsDeleteSample.ts index 374c3a9df1ea..8a0aa0d5099f 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete specified Update Run * * @summary delete specified Update Run - * x-ms-original-file: 2026-04-01-preview/DeleteUpdateRuns.json + * x-ms-original-file: 2026-04-30/DeleteUpdateRuns.json */ async function deleteAnUpdate(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsGetSample.ts similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsGetSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsGetSample.ts index dcbc461a2fc1..846ab1729e64 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get the Update run for a specified update * * @summary get the Update run for a specified update - * x-ms-original-file: 2026-04-01-preview/GetUpdateRuns.json + * x-ms-original-file: 2026-04-30/GetUpdateRuns.json */ async function getUpdateRunsUnderClusterResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsListSample.ts similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsListSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsListSample.ts index d21d1d978541..751906ef383e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsListSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsListSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list all Update runs for a specified update * * @summary list all Update runs for a specified update - * x-ms-original-file: 2026-04-01-preview/ListUpdateRuns.json + * x-ms-original-file: 2026-04-30/ListUpdateRuns.json */ async function listUpdateRunsUnderClusterResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsPutSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsPutSample.ts similarity index 96% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsPutSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsPutSample.ts index d710d7912f94..d22ae9009386 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsPutSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateRunsPutSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to put Update runs for a specified update * * @summary put Update runs for a specified update - * x-ms-original-file: 2026-04-01-preview/PutUpdateRuns.json + * x-ms-original-file: 2026-04-30/PutUpdateRuns.json */ async function getUpdateRunsUnderClusterResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesDeleteSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesDeleteSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesDeleteSample.ts index 3da179bdfe9f..842d5c5a12f3 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete Update Summaries * * @summary delete Update Summaries - * x-ms-original-file: 2026-04-01-preview/DeleteUpdateSummaries.json + * x-ms-original-file: 2026-04-30/DeleteUpdateSummaries.json */ async function deleteAnUpdate(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesGetSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesGetSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesGetSample.ts index cabca8af780f..96cc784fae2c 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get all Update summaries under the HCI cluster * * @summary get all Update summaries under the HCI cluster - * x-ms-original-file: 2026-04-01-preview/GetUpdateSummaries.json + * x-ms-original-file: 2026-04-30/GetUpdateSummaries.json */ async function getUpdateSummariesUnderClusterResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesListSample.ts similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesListSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesListSample.ts index 9c3f05b5c457..a77b4b5e7def 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesListSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesListSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list all Update summaries under the HCI cluster * * @summary list all Update summaries under the HCI cluster - * x-ms-original-file: 2026-04-01-preview/ListUpdateSummaries.json + * x-ms-original-file: 2026-04-30/ListUpdateSummaries.json */ async function getUpdateSummariesUnderClusterResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesOperationGroupCheckHealthSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesOperationGroupCheckHealthSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesOperationGroupCheckHealthSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesOperationGroupCheckHealthSample.ts index 8e8c9b51e23d..23db4d02201b 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesOperationGroupCheckHealthSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesOperationGroupCheckHealthSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to check health of UpdateSummaries * * @summary check health of UpdateSummaries - * x-ms-original-file: 2026-04-01-preview/UpdateSummaries_CheckHealth.json + * x-ms-original-file: 2026-04-30/UpdateSummaries_CheckHealth.json */ async function checkHealthOfUpdateSummaries(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesOperationGroupCheckUpdatesSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesOperationGroupCheckUpdatesSample.ts similarity index 88% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesOperationGroupCheckUpdatesSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesOperationGroupCheckUpdatesSample.ts index 030b2c7d326f..b8c291cc0e77 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesOperationGroupCheckUpdatesSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesOperationGroupCheckUpdatesSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to check for updates * * @summary check for updates - * x-ms-original-file: 2026-04-01-preview/UpdateSummaries_CheckUpdates.json + * x-ms-original-file: 2026-04-30/UpdateSummaries_CheckUpdates.json */ async function checkForUpdates(): Promise { const credential = new DefaultAzureCredential(); @@ -21,7 +21,7 @@ async function checkForUpdates(): Promise { * This sample demonstrates how to check for updates * * @summary check for updates - * x-ms-original-file: 2026-04-01-preview/UpdateSummaries_CheckUpdates_MaximumSet.json + * x-ms-original-file: 2026-04-30/UpdateSummaries_CheckUpdates_MaximumSet.json */ async function checkForSpecificUpdateByName(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesPutSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesPutSample.ts similarity index 94% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesPutSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesPutSample.ts index 2ea9fc73534a..466cb2e929cf 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesPutSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updateSummariesPutSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to put Update summaries under the HCI cluster * * @summary put Update summaries under the HCI cluster - * x-ms-original-file: 2026-04-01-preview/PutUpdateSummaries.json + * x-ms-original-file: 2026-04-30/PutUpdateSummaries.json */ async function putUpdateSummariesUnderClusterResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesDeleteSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesDeleteSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesDeleteSample.ts index a2a78792583f..68dca85a1b25 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesDeleteSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesDeleteSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to delete specified Update * * @summary delete specified Update - * x-ms-original-file: 2026-04-01-preview/DeleteUpdates.json + * x-ms-original-file: 2026-04-30/DeleteUpdates.json */ async function deleteAnUpdate(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesGetSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesGetSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesGetSample.ts index aa5b548b01f1..dc45cd36ea5e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get specified Update * * @summary get specified Update - * x-ms-original-file: 2026-04-01-preview/GetUpdates.json + * x-ms-original-file: 2026-04-30/GetUpdates.json */ async function getASpecificUpdate(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesListSample.ts similarity index 93% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesListSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesListSample.ts index fce90f221f50..49754413d4e0 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesListSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesListSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list all Updates * * @summary list all Updates - * x-ms-original-file: 2026-04-01-preview/ListUpdates.json + * x-ms-original-file: 2026-04-30/ListUpdates.json */ async function listAvailableUpdates(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPostSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesPostSample.ts similarity index 92% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPostSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesPostSample.ts index 08c6797ae8f9..2f53ab7e68d0 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPostSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesPostSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to apply Update * * @summary apply Update - * x-ms-original-file: 2026-04-01-preview/PostUpdates.json + * x-ms-original-file: 2026-04-30/PostUpdates.json */ async function listAvailableUpdates(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPrepareSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesPrepareSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPrepareSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesPrepareSample.ts index 7e08d8e0d951..814ad7fd5609 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPrepareSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesPrepareSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to prepare Update * * @summary prepare Update - * x-ms-original-file: 2026-04-01-preview/Updates_Prepare.json + * x-ms-original-file: 2026-04-30/Updates_Prepare.json */ async function prepareUpdate(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPutSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesPutSample.ts similarity index 96% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPutSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesPutSample.ts index 08b6417192e9..13598dafa3da 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPutSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/updatesPutSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to put specified Update * * @summary put specified Update - * x-ms-original-file: 2026-04-01-preview/PutUpdates.json + * x-ms-original-file: 2026-04-30/PutUpdates.json */ async function putASpecificUpdate(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/validatedSolutionRecipesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/validatedSolutionRecipesGetSample.ts similarity index 91% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/validatedSolutionRecipesGetSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/validatedSolutionRecipesGetSample.ts index d2d5d49eb407..f60cf0f2fd02 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/validatedSolutionRecipesGetSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/validatedSolutionRecipesGetSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to get a validated solution recipe. * * @summary get a validated solution recipe. - * x-ms-original-file: 2026-04-01-preview/ValidatedSolutionRecipes_Get.json + * x-ms-original-file: 2026-04-30/ValidatedSolutionRecipes_Get.json */ async function validatedSolutionRecipesGet(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/validatedSolutionRecipesListBySubscriptionLocationResourceSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/validatedSolutionRecipesListBySubscriptionLocationResourceSample.ts similarity index 89% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/validatedSolutionRecipesListBySubscriptionLocationResourceSample.ts rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/validatedSolutionRecipesListBySubscriptionLocationResourceSample.ts index b1608f7d326c..cee3fc5927f5 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/validatedSolutionRecipesListBySubscriptionLocationResourceSample.ts +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/src/validatedSolutionRecipesListBySubscriptionLocationResourceSample.ts @@ -8,7 +8,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to list all validated solution recipes. * * @summary list all validated solution recipes. - * x-ms-original-file: 2026-04-01-preview/ValidatedSolutionRecipes_ListBySubscriptionLocationResource.json + * x-ms-original-file: 2026-04-30/ValidatedSolutionRecipes_ListBySubscriptionLocationResource.json */ async function validatedSolutionRecipesListBySubscriptionLocationResource(): Promise { const credential = new DefaultAzureCredential(); diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/tsconfig.json b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/tsconfig.json similarity index 81% rename from sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/tsconfig.json rename to sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/tsconfig.json index 9827716ed8f9..4f7c3f6e72dc 100644 --- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/tsconfig.json +++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4/typescript/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "ES2023", - "module": "commonjs", + "module": "nodenext", "lib": [ "ESNext" ], @@ -14,8 +14,9 @@ "node" ], "outDir": "./dist", + "rootDir": "./src", "resolveJsonModule": true, - "moduleResolution": "node10" + "moduleResolution": "nodenext" }, "include": [ "./src" diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/arcSettings/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/arcSettings/operations.ts index e91c33f3625f..ca9a2ca2d12a 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/arcSettings/operations.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/arcSettings/operations.ts @@ -54,7 +54,7 @@ export function _initializeDisableProcessSend( resourceGroupName: resourceGroupName, clusterName: clusterName, arcSettingName: arcSettingName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -101,7 +101,7 @@ export function initializeDisableProcess( options, ), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }, ) as PollerLike, void>; } @@ -120,7 +120,7 @@ export function _consentAndInstallDefaultExtensionsSend( resourceGroupName: resourceGroupName, clusterName: clusterName, arcSettingName: arcSettingName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -179,7 +179,7 @@ export function _reconcileSend( resourceGroupName: resourceGroupName, clusterName: clusterName, arcSettingName: arcSettingName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -227,7 +227,7 @@ export function reconcile( options, ), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, ArcSetting>; } @@ -245,7 +245,7 @@ export function _createIdentitySend( resourceGroupName: resourceGroupName, clusterName: clusterName, arcSettingName: arcSettingName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -285,7 +285,7 @@ export function createIdentity( getInitialResponse: () => _createIdentitySend(context, resourceGroupName, clusterName, arcSettingName, options), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, ArcIdentityResponse>; } @@ -303,7 +303,7 @@ export function _generatePasswordSend( resourceGroupName: resourceGroupName, clusterName: clusterName, arcSettingName: arcSettingName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -359,7 +359,7 @@ export function _listByClusterSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -397,11 +397,7 @@ export function listByCluster( () => _listByClusterSend(context, resourceGroupName, clusterName, options), _listByClusterDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } @@ -419,7 +415,7 @@ export function _$deleteSend( resourceGroupName: resourceGroupName, clusterName: clusterName, arcSettingName: arcSettingName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -441,11 +437,6 @@ export async function _$deleteDeserialize(result: PathUncheckedResponse): Promis } /** Delete ArcSetting resource details of HCI Cluster. */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ export function $delete( context: Client, resourceGroupName: string, @@ -459,7 +450,7 @@ export function $delete( getInitialResponse: () => _$deleteSend(context, resourceGroupName, clusterName, arcSettingName, options), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } @@ -478,7 +469,7 @@ export function _updateSend( resourceGroupName: resourceGroupName, clusterName: clusterName, arcSettingName: arcSettingName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -539,7 +530,7 @@ export function _createSend( resourceGroupName: resourceGroupName, clusterName: clusterName, arcSettingName: arcSettingName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -599,7 +590,7 @@ export function _getSend( resourceGroupName: resourceGroupName, clusterName: clusterName, arcSettingName: arcSettingName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/azureStackHCIContext.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/azureStackHCIContext.ts index fde08b7bdb62..d368bbb1cab2 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/azureStackHCIContext.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/azureStackHCIContext.ts @@ -36,7 +36,7 @@ export function createAzureStackHCI( const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com"; const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix; - const userAgentInfo = `azsdk-js-arm-azurestackhci/4.1.0-beta.1`; + const userAgentInfo = `azsdk-js-arm-azurestackhci/4.1.0`; const userAgentPrefix = prefixFromOptions ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}` : `azsdk-js-api ${userAgentInfo}`; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/clusterJobs/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/clusterJobs/index.ts deleted file mode 100644 index ec9cd5b6d816..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/clusterJobs/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -export { list, $delete, createOrUpdate, get } from "./operations.js"; -export type { - ClusterJobsListOptionalParams, - ClusterJobsDeleteOptionalParams, - ClusterJobsCreateOrUpdateOptionalParams, - ClusterJobsGetOptionalParams, -} from "./options.js"; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/clusterJobs/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/clusterJobs/operations.ts deleted file mode 100644 index 934130783414..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/clusterJobs/operations.ts +++ /dev/null @@ -1,252 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext as Client } from "../index.js"; -import type { ClusterJob, _ClusterJobListResult } from "../../models/models.js"; -import { - errorResponseDeserializer, - clusterJobSerializer, - clusterJobDeserializer, - _clusterJobListResultDeserializer, -} from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js"; -import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; -import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js"; -import type { - ClusterJobsListOptionalParams, - ClusterJobsDeleteOptionalParams, - ClusterJobsCreateOrUpdateOptionalParams, - ClusterJobsGetOptionalParams, -} from "./options.js"; -import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client"; -import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client"; -import type { PollerLike, OperationState } from "@azure/core-lro"; - -export function _listSend( - context: Client, - resourceGroupName: string, - clusterName: string, - options: ClusterJobsListOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/jobs{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _listDeserialize( - result: PathUncheckedResponse, -): Promise<_ClusterJobListResult> { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return _clusterJobListResultDeserializer(result.body); -} - -/** List ClusterJob resources by Clusters */ -export function list( - context: Client, - resourceGroupName: string, - clusterName: string, - options: ClusterJobsListOptionalParams = { requestOptions: {} }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => _listSend(context, resourceGroupName, clusterName, options), - _listDeserialize, - ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, - ); -} - -export function _$deleteSend( - context: Client, - resourceGroupName: string, - clusterName: string, - jobsName: string, - options: ClusterJobsDeleteOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/jobs/{jobsName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - clusterName: clusterName, - jobsName: jobsName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).delete({ ...operationOptionsToRequestParameters(options) }); -} - -export async function _$deleteDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["202", "204", "200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return; -} - -/** Delete a ClusterJob */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ -export function $delete( - context: Client, - resourceGroupName: string, - clusterName: string, - jobsName: string, - options: ClusterJobsDeleteOptionalParams = { requestOptions: {} }, -): PollerLike, void> { - return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _$deleteSend(context, resourceGroupName, clusterName, jobsName, options), - resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }) as PollerLike, void>; -} - -export function _createOrUpdateSend( - context: Client, - resourceGroupName: string, - clusterName: string, - jobsName: string, - resource: ClusterJob, - options: ClusterJobsCreateOrUpdateOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/jobs/{jobsName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - clusterName: clusterName, - jobsName: jobsName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).put({ - ...operationOptionsToRequestParameters(options), - contentType: "application/json", - headers: { accept: "application/json", ...options.requestOptions?.headers }, - body: clusterJobSerializer(resource), - }); -} - -export async function _createOrUpdateDeserialize( - result: PathUncheckedResponse, -): Promise { - const expectedStatuses = ["200", "201", "202"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return clusterJobDeserializer(result.body); -} - -/** Create a ClusterJob */ -export function createOrUpdate( - context: Client, - resourceGroupName: string, - clusterName: string, - jobsName: string, - resource: ClusterJob, - options: ClusterJobsCreateOrUpdateOptionalParams = { requestOptions: {} }, -): PollerLike, ClusterJob> { - return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _createOrUpdateSend(context, resourceGroupName, clusterName, jobsName, resource, options), - resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }) as PollerLike, ClusterJob>; -} - -export function _getSend( - context: Client, - resourceGroupName: string, - clusterName: string, - jobsName: string, - options: ClusterJobsGetOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/jobs/{jobsName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - clusterName: clusterName, - jobsName: jobsName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _getDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return clusterJobDeserializer(result.body); -} - -/** Get a ClusterJob */ -export async function get( - context: Client, - resourceGroupName: string, - clusterName: string, - jobsName: string, - options: ClusterJobsGetOptionalParams = { requestOptions: {} }, -): Promise { - const result = await _getSend(context, resourceGroupName, clusterName, jobsName, options); - return _getDeserialize(result); -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/clusterJobs/options.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/clusterJobs/options.ts deleted file mode 100644 index f2fee266eed5..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/clusterJobs/options.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { OperationOptions } from "@azure-rest/core-client"; - -/** Optional parameters. */ -export interface ClusterJobsListOptionalParams extends OperationOptions {} - -/** Optional parameters. */ -export interface ClusterJobsDeleteOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -/** Optional parameters. */ -export interface ClusterJobsCreateOrUpdateOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -/** Optional parameters. */ -export interface ClusterJobsGetOptionalParams extends OperationOptions {} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/clusters/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/clusters/index.ts index d625dd34571d..4af6cdf9d426 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/clusters/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/clusters/index.ts @@ -4,7 +4,6 @@ export { configureRemoteSupport, triggerLogCollection, - changeRing, extendSoftwareAssuranceBenefit, createIdentity, uploadCertificate, @@ -19,7 +18,6 @@ export { export type { ClustersConfigureRemoteSupportOptionalParams, ClustersTriggerLogCollectionOptionalParams, - ClustersChangeRingOptionalParams, ClustersExtendSoftwareAssuranceBenefitOptionalParams, ClustersCreateIdentityOptionalParams, ClustersUploadCertificateOptionalParams, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/clusters/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/clusters/operations.ts index 5df786d55abb..d0f0626e76a9 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/clusters/operations.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/clusters/operations.ts @@ -10,7 +10,6 @@ import type { UploadCertificateRequest, ClusterIdentityResponse, SoftwareAssuranceChangeRequest, - ChangeRingRequest, LogCollectionRequest, RemoteSupportRequest, } from "../../models/models.js"; @@ -24,7 +23,6 @@ import { uploadCertificateRequestSerializer, clusterIdentityResponseDeserializer, softwareAssuranceChangeRequestSerializer, - changeRingRequestSerializer, logCollectionRequestSerializer, remoteSupportRequestSerializer, } from "../../models/models.js"; @@ -35,7 +33,6 @@ import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js"; import type { ClustersConfigureRemoteSupportOptionalParams, ClustersTriggerLogCollectionOptionalParams, - ClustersChangeRingOptionalParams, ClustersExtendSoftwareAssuranceBenefitOptionalParams, ClustersCreateIdentityOptionalParams, ClustersUploadCertificateOptionalParams, @@ -64,7 +61,7 @@ export function _configureRemoteSupportSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -112,7 +109,7 @@ export function configureRemoteSupport( options, ), resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, Cluster>; } @@ -129,7 +126,7 @@ export function _triggerLogCollectionSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -177,64 +174,7 @@ export function triggerLogCollection( options, ), resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }) as PollerLike, Cluster>; -} - -export function _changeRingSend( - context: Client, - resourceGroupName: string, - clusterName: string, - changeRingRequest: ChangeRingRequest, - options: ClustersChangeRingOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/changeRing{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).post({ - ...operationOptionsToRequestParameters(options), - contentType: "application/json", - headers: { accept: "application/json", ...options.requestOptions?.headers }, - body: changeRingRequestSerializer(changeRingRequest), - }); -} - -export async function _changeRingDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["202", "200", "201"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return clusterDeserializer(result.body); -} - -/** Changes ring of a cluster */ -export function changeRing( - context: Client, - resourceGroupName: string, - clusterName: string, - changeRingRequest: ChangeRingRequest, - options: ClustersChangeRingOptionalParams = { requestOptions: {} }, -): PollerLike, Cluster> { - return getLongRunningPoller(context, _changeRingDeserialize, ["202", "200", "201"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _changeRingSend(context, resourceGroupName, clusterName, changeRingRequest, options), - resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, Cluster>; } @@ -251,7 +191,7 @@ export function _extendSoftwareAssuranceBenefitSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -303,7 +243,7 @@ export function extendSoftwareAssuranceBenefit( options, ), resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }, ) as PollerLike, Cluster>; } @@ -320,7 +260,7 @@ export function _createIdentitySend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -358,7 +298,7 @@ export function createIdentity( abortSignal: options?.abortSignal, getInitialResponse: () => _createIdentitySend(context, resourceGroupName, clusterName, options), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, ClusterIdentityResponse>; } @@ -375,7 +315,7 @@ export function _uploadCertificateSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -420,7 +360,7 @@ export function uploadCertificate( options, ), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } @@ -437,7 +377,7 @@ export function _updateSecretsLocationsSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -479,7 +419,7 @@ export function updateSecretsLocations( getInitialResponse: () => _updateSecretsLocationsSend(context, resourceGroupName, clusterName, body, options), resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, Cluster>; } @@ -491,7 +431,7 @@ export function _listBySubscriptionSend( "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/clusters{?api%2Dversion}", { subscriptionId: context.subscriptionId, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -527,11 +467,7 @@ export function listBySubscription( () => _listBySubscriptionSend(context, options), _listBySubscriptionDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } @@ -545,7 +481,7 @@ export function _listByResourceGroupSend( { subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -582,11 +518,7 @@ export function listByResourceGroup( () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } @@ -602,7 +534,7 @@ export function _$deleteSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -624,11 +556,6 @@ export async function _$deleteDeserialize(result: PathUncheckedResponse): Promis } /** Delete an HCI cluster. */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ export function $delete( context: Client, resourceGroupName: string, @@ -640,7 +567,7 @@ export function $delete( abortSignal: options?.abortSignal, getInitialResponse: () => _$deleteSend(context, resourceGroupName, clusterName, options), resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } @@ -657,7 +584,7 @@ export function _updateSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -708,7 +635,7 @@ export function _createSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -758,7 +685,7 @@ export function _getSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/clusters/options.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/clusters/options.ts index 70bfd67d3f8d..045bbb7ff091 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/clusters/options.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/clusters/options.ts @@ -15,12 +15,6 @@ export interface ClustersTriggerLogCollectionOptionalParams extends OperationOpt updateIntervalInMs?: number; } -/** Optional parameters. */ -export interface ClustersChangeRingOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - /** Optional parameters. */ export interface ClustersExtendSoftwareAssuranceBenefitOptionalParams extends OperationOptions { /** Delay to wait until next poll, in milliseconds. */ diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/deploymentSettings/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/deploymentSettings/operations.ts index ae818c60b620..5f1ebd22333e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/deploymentSettings/operations.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/deploymentSettings/operations.ts @@ -35,7 +35,7 @@ export function _listByClustersSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -73,11 +73,7 @@ export function listByClusters( () => _listByClustersSend(context, resourceGroupName, clusterName, options), _listByClustersDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } @@ -95,7 +91,7 @@ export function _$deleteSend( resourceGroupName: resourceGroupName, clusterName: clusterName, deploymentSettingsName: deploymentSettingsName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -117,11 +113,6 @@ export async function _$deleteDeserialize(result: PathUncheckedResponse): Promis } /** Delete a DeploymentSetting */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ export function $delete( context: Client, resourceGroupName: string, @@ -135,7 +126,7 @@ export function $delete( getInitialResponse: () => _$deleteSend(context, resourceGroupName, clusterName, deploymentSettingsName, options), resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } @@ -154,7 +145,7 @@ export function _createOrUpdateSend( resourceGroupName: resourceGroupName, clusterName: clusterName, deploymentSettingsName: deploymentSettingsName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -204,7 +195,7 @@ export function createOrUpdate( options, ), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, DeploymentSetting>; } @@ -222,7 +213,7 @@ export function _getSend( resourceGroupName: resourceGroupName, clusterName: clusterName, deploymentSettingsName: deploymentSettingsName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/devicePools/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/devicePools/index.ts deleted file mode 100644 index cafc2b1eaecf..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/devicePools/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -export { - releaseDevices, - claimDevices, - listBySubscription, - listByResourceGroup, - update, - $delete, - createOrUpdate, - get, -} from "./operations.js"; -export type { - DevicePoolsReleaseDevicesOptionalParams, - DevicePoolsClaimDevicesOptionalParams, - DevicePoolsListBySubscriptionOptionalParams, - DevicePoolsListByResourceGroupOptionalParams, - DevicePoolsUpdateOptionalParams, - DevicePoolsDeleteOptionalParams, - DevicePoolsCreateOrUpdateOptionalParams, - DevicePoolsGetOptionalParams, -} from "./options.js"; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/devicePools/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/devicePools/operations.ts deleted file mode 100644 index f45e0bef9537..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/devicePools/operations.ts +++ /dev/null @@ -1,473 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext as Client } from "../index.js"; -import type { - DevicePool, - DevicePoolPatch, - _DevicePoolListResult, - ClaimDeviceRequest, - ReleaseDeviceRequest, -} from "../../models/models.js"; -import { - errorResponseDeserializer, - devicePoolSerializer, - devicePoolDeserializer, - devicePoolPatchSerializer, - _devicePoolListResultDeserializer, - claimDeviceRequestSerializer, - releaseDeviceRequestSerializer, -} from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js"; -import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; -import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js"; -import type { - DevicePoolsReleaseDevicesOptionalParams, - DevicePoolsClaimDevicesOptionalParams, - DevicePoolsListBySubscriptionOptionalParams, - DevicePoolsListByResourceGroupOptionalParams, - DevicePoolsUpdateOptionalParams, - DevicePoolsDeleteOptionalParams, - DevicePoolsCreateOrUpdateOptionalParams, - DevicePoolsGetOptionalParams, -} from "./options.js"; -import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client"; -import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client"; -import type { PollerLike, OperationState } from "@azure/core-lro"; - -export function _releaseDevicesSend( - context: Client, - resourceGroupName: string, - devicePoolName: string, - body: ReleaseDeviceRequest, - options: DevicePoolsReleaseDevicesOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/devicePools/{devicePoolName}/releaseDevices{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - devicePoolName: devicePoolName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).post({ - ...operationOptionsToRequestParameters(options), - contentType: "application/json", - body: releaseDeviceRequestSerializer(body), - }); -} - -export async function _releaseDevicesDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["202", "204", "200", "201"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return; -} - -/** Releasing devices of the pool. */ -export function releaseDevices( - context: Client, - resourceGroupName: string, - devicePoolName: string, - body: ReleaseDeviceRequest, - options: DevicePoolsReleaseDevicesOptionalParams = { requestOptions: {} }, -): PollerLike, void> { - return getLongRunningPoller(context, _releaseDevicesDeserialize, ["202", "204", "200", "201"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _releaseDevicesSend(context, resourceGroupName, devicePoolName, body, options), - resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }) as PollerLike, void>; -} - -export function _claimDevicesSend( - context: Client, - resourceGroupName: string, - devicePoolName: string, - body: ClaimDeviceRequest, - options: DevicePoolsClaimDevicesOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/devicePools/{devicePoolName}/claimDevices{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - devicePoolName: devicePoolName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).post({ - ...operationOptionsToRequestParameters(options), - contentType: "application/json", - body: claimDeviceRequestSerializer(body), - }); -} - -export async function _claimDevicesDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["202", "204", "200", "201"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return; -} - -/** Claiming devices of the pool. */ -export function claimDevices( - context: Client, - resourceGroupName: string, - devicePoolName: string, - body: ClaimDeviceRequest, - options: DevicePoolsClaimDevicesOptionalParams = { requestOptions: {} }, -): PollerLike, void> { - return getLongRunningPoller(context, _claimDevicesDeserialize, ["202", "204", "200", "201"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _claimDevicesSend(context, resourceGroupName, devicePoolName, body, options), - resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }) as PollerLike, void>; -} - -export function _listBySubscriptionSend( - context: Client, - options: DevicePoolsListBySubscriptionOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/devicePools{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _listBySubscriptionDeserialize( - result: PathUncheckedResponse, -): Promise<_DevicePoolListResult> { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return _devicePoolListResultDeserializer(result.body); -} - -/** List all device pools in a subscription. */ -export function listBySubscription( - context: Client, - options: DevicePoolsListBySubscriptionOptionalParams = { requestOptions: {} }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => _listBySubscriptionSend(context, options), - _listBySubscriptionDeserialize, - ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, - ); -} - -export function _listByResourceGroupSend( - context: Client, - resourceGroupName: string, - options: DevicePoolsListByResourceGroupOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/devicePools{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _listByResourceGroupDeserialize( - result: PathUncheckedResponse, -): Promise<_DevicePoolListResult> { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return _devicePoolListResultDeserializer(result.body); -} - -/** List all device pools in a resource group. */ -export function listByResourceGroup( - context: Client, - resourceGroupName: string, - options: DevicePoolsListByResourceGroupOptionalParams = { requestOptions: {} }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => _listByResourceGroupSend(context, resourceGroupName, options), - _listByResourceGroupDeserialize, - ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, - ); -} - -export function _updateSend( - context: Client, - resourceGroupName: string, - devicePoolName: string, - properties: DevicePoolPatch, - options: DevicePoolsUpdateOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/devicePools/{devicePoolName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - devicePoolName: devicePoolName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).patch({ - ...operationOptionsToRequestParameters(options), - contentType: "application/json", - headers: { accept: "application/json", ...options.requestOptions?.headers }, - body: devicePoolPatchSerializer(properties), - }); -} - -export async function _updateDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["200", "202", "201"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return devicePoolDeserializer(result.body); -} - -/** Update a devicePool */ -export function update( - context: Client, - resourceGroupName: string, - devicePoolName: string, - properties: DevicePoolPatch, - options: DevicePoolsUpdateOptionalParams = { requestOptions: {} }, -): PollerLike, DevicePool> { - return getLongRunningPoller(context, _updateDeserialize, ["200", "202", "201"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _updateSend(context, resourceGroupName, devicePoolName, properties, options), - resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }) as PollerLike, DevicePool>; -} - -export function _$deleteSend( - context: Client, - resourceGroupName: string, - devicePoolName: string, - options: DevicePoolsDeleteOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/devicePools/{devicePoolName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - devicePoolName: devicePoolName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).delete({ ...operationOptionsToRequestParameters(options) }); -} - -export async function _$deleteDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["202", "204", "200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return; -} - -/** Delete a DevicePool */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ -export function $delete( - context: Client, - resourceGroupName: string, - devicePoolName: string, - options: DevicePoolsDeleteOptionalParams = { requestOptions: {} }, -): PollerLike, void> { - return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => _$deleteSend(context, resourceGroupName, devicePoolName, options), - resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }) as PollerLike, void>; -} - -export function _createOrUpdateSend( - context: Client, - resourceGroupName: string, - devicePoolName: string, - resource: DevicePool, - options: DevicePoolsCreateOrUpdateOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/devicePools/{devicePoolName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - devicePoolName: devicePoolName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).put({ - ...operationOptionsToRequestParameters(options), - contentType: "application/json", - headers: { accept: "application/json", ...options.requestOptions?.headers }, - body: devicePoolSerializer(resource), - }); -} - -export async function _createOrUpdateDeserialize( - result: PathUncheckedResponse, -): Promise { - const expectedStatuses = ["200", "201", "202"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return devicePoolDeserializer(result.body); -} - -/** Create a DevicePool */ -export function createOrUpdate( - context: Client, - resourceGroupName: string, - devicePoolName: string, - resource: DevicePool, - options: DevicePoolsCreateOrUpdateOptionalParams = { requestOptions: {} }, -): PollerLike, DevicePool> { - return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _createOrUpdateSend(context, resourceGroupName, devicePoolName, resource, options), - resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }) as PollerLike, DevicePool>; -} - -export function _getSend( - context: Client, - resourceGroupName: string, - devicePoolName: string, - options: DevicePoolsGetOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/devicePools/{devicePoolName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - devicePoolName: devicePoolName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _getDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return devicePoolDeserializer(result.body); -} - -/** Get a DevicePool */ -export async function get( - context: Client, - resourceGroupName: string, - devicePoolName: string, - options: DevicePoolsGetOptionalParams = { requestOptions: {} }, -): Promise { - const result = await _getSend(context, resourceGroupName, devicePoolName, options); - return _getDeserialize(result); -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/devicePools/options.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/devicePools/options.ts deleted file mode 100644 index 9da8c9afed92..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/devicePools/options.ts +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { OperationOptions } from "@azure-rest/core-client"; - -/** Optional parameters. */ -export interface DevicePoolsReleaseDevicesOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -/** Optional parameters. */ -export interface DevicePoolsClaimDevicesOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -/** Optional parameters. */ -export interface DevicePoolsListBySubscriptionOptionalParams extends OperationOptions {} - -/** Optional parameters. */ -export interface DevicePoolsListByResourceGroupOptionalParams extends OperationOptions {} - -/** Optional parameters. */ -export interface DevicePoolsUpdateOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -/** Optional parameters. */ -export interface DevicePoolsDeleteOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -/** Optional parameters. */ -export interface DevicePoolsCreateOrUpdateOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -/** Optional parameters. */ -export interface DevicePoolsGetOptionalParams extends OperationOptions {} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeDeviceJobs/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/edgeDeviceJobs/operations.ts index 72608e24c19b..3e2f4c3f05b8 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeDeviceJobs/operations.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/edgeDeviceJobs/operations.ts @@ -34,7 +34,7 @@ export function _listByEdgeDeviceSend( { resourceUri: resourceUri, edgeDeviceName: edgeDeviceName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -72,11 +72,7 @@ export function listByEdgeDevice( () => _listByEdgeDeviceSend(context, resourceUri, edgeDeviceName, options), _listByEdgeDeviceDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } @@ -93,7 +89,7 @@ export function _$deleteSend( resourceUri: resourceUri, edgeDeviceName: edgeDeviceName, jobsName: jobsName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -115,11 +111,6 @@ export async function _$deleteDeserialize(result: PathUncheckedResponse): Promis } /** Delete a EdgeDeviceJob */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ export function $delete( context: Client, resourceUri: string, @@ -132,7 +123,7 @@ export function $delete( abortSignal: options?.abortSignal, getInitialResponse: () => _$deleteSend(context, resourceUri, edgeDeviceName, jobsName, options), resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } @@ -150,7 +141,7 @@ export function _createOrUpdateSend( resourceUri: resourceUri, edgeDeviceName: edgeDeviceName, jobsName: jobsName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -193,7 +184,7 @@ export function createOrUpdate( getInitialResponse: () => _createOrUpdateSend(context, resourceUri, edgeDeviceName, jobsName, resource, options), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, EdgeDeviceJobUnion>; } @@ -210,7 +201,7 @@ export function _getSend( resourceUri: resourceUri, edgeDeviceName: edgeDeviceName, jobsName: jobsName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeDevices/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/edgeDevices/operations.ts index dc0d27422a02..c58d2b2a5e81 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeDevices/operations.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/edgeDevices/operations.ts @@ -43,7 +43,7 @@ export function _validateSend( { resourceUri: resourceUri, edgeDeviceName: edgeDeviceName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -85,7 +85,7 @@ export function validate( getInitialResponse: () => _validateSend(context, resourceUri, edgeDeviceName, validateRequest, options), resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, ValidateResponse>; } @@ -98,7 +98,7 @@ export function _listSend( "/{+resourceUri}/providers/Microsoft.AzureStackHCI/edgeDevices{?api%2Dversion}", { resourceUri: resourceUri, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -135,11 +135,7 @@ export function list( () => _listSend(context, resourceUri, options), _listDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } @@ -154,7 +150,7 @@ export function _$deleteSend( { resourceUri: resourceUri, edgeDeviceName: edgeDeviceName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -176,11 +172,6 @@ export async function _$deleteDeserialize(result: PathUncheckedResponse): Promis } /** Delete a EdgeDevice */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ export function $delete( context: Client, resourceUri: string, @@ -192,7 +183,7 @@ export function $delete( abortSignal: options?.abortSignal, getInitialResponse: () => _$deleteSend(context, resourceUri, edgeDeviceName, options), resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } @@ -208,7 +199,7 @@ export function _createOrUpdateSend( { resourceUri: resourceUri, edgeDeviceName: edgeDeviceName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -250,7 +241,7 @@ export function createOrUpdate( getInitialResponse: () => _createOrUpdateSend(context, resourceUri, edgeDeviceName, resource, options), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, EdgeDeviceUnion>; } @@ -265,7 +256,7 @@ export function _getSend( { resourceUri: resourceUri, edgeDeviceName: edgeDeviceName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachineJobs/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachineJobs/index.ts deleted file mode 100644 index 791d973011cc..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachineJobs/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -export { list, $delete, createOrUpdate, get } from "./operations.js"; -export type { - EdgeMachineJobsListOptionalParams, - EdgeMachineJobsDeleteOptionalParams, - EdgeMachineJobsCreateOrUpdateOptionalParams, - EdgeMachineJobsGetOptionalParams, -} from "./options.js"; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachineJobs/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachineJobs/operations.ts deleted file mode 100644 index 38036ab5ed3c..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachineJobs/operations.ts +++ /dev/null @@ -1,252 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext as Client } from "../index.js"; -import type { EdgeMachineJob, _EdgeMachineJobListResult } from "../../models/models.js"; -import { - errorResponseDeserializer, - edgeMachineJobSerializer, - edgeMachineJobDeserializer, - _edgeMachineJobListResultDeserializer, -} from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js"; -import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; -import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js"; -import type { - EdgeMachineJobsListOptionalParams, - EdgeMachineJobsDeleteOptionalParams, - EdgeMachineJobsCreateOrUpdateOptionalParams, - EdgeMachineJobsGetOptionalParams, -} from "./options.js"; -import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client"; -import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client"; -import type { PollerLike, OperationState } from "@azure/core-lro"; - -export function _listSend( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - options: EdgeMachineJobsListOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/edgeMachines/{edgeMachineName}/jobs{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - edgeMachineName: edgeMachineName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _listDeserialize( - result: PathUncheckedResponse, -): Promise<_EdgeMachineJobListResult> { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return _edgeMachineJobListResultDeserializer(result.body); -} - -/** List EdgeMachineJob resources by EdgeMachines */ -export function list( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - options: EdgeMachineJobsListOptionalParams = { requestOptions: {} }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => _listSend(context, resourceGroupName, edgeMachineName, options), - _listDeserialize, - ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, - ); -} - -export function _$deleteSend( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - options: EdgeMachineJobsDeleteOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/edgeMachines/{edgeMachineName}/jobs/{jobsName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - edgeMachineName: edgeMachineName, - jobsName: jobsName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).delete({ ...operationOptionsToRequestParameters(options) }); -} - -export async function _$deleteDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["202", "204", "200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return; -} - -/** Delete a EdgeMachineJob */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ -export function $delete( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - options: EdgeMachineJobsDeleteOptionalParams = { requestOptions: {} }, -): PollerLike, void> { - return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _$deleteSend(context, resourceGroupName, edgeMachineName, jobsName, options), - resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }) as PollerLike, void>; -} - -export function _createOrUpdateSend( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - resource: EdgeMachineJob, - options: EdgeMachineJobsCreateOrUpdateOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/edgeMachines/{edgeMachineName}/jobs/{jobsName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - edgeMachineName: edgeMachineName, - jobsName: jobsName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).put({ - ...operationOptionsToRequestParameters(options), - contentType: "application/json", - headers: { accept: "application/json", ...options.requestOptions?.headers }, - body: edgeMachineJobSerializer(resource), - }); -} - -export async function _createOrUpdateDeserialize( - result: PathUncheckedResponse, -): Promise { - const expectedStatuses = ["200", "201", "202"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return edgeMachineJobDeserializer(result.body); -} - -/** Create a EdgeMachineJob */ -export function createOrUpdate( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - resource: EdgeMachineJob, - options: EdgeMachineJobsCreateOrUpdateOptionalParams = { requestOptions: {} }, -): PollerLike, EdgeMachineJob> { - return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _createOrUpdateSend(context, resourceGroupName, edgeMachineName, jobsName, resource, options), - resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }) as PollerLike, EdgeMachineJob>; -} - -export function _getSend( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - options: EdgeMachineJobsGetOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/edgeMachines/{edgeMachineName}/jobs/{jobsName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - edgeMachineName: edgeMachineName, - jobsName: jobsName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _getDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return edgeMachineJobDeserializer(result.body); -} - -/** Get a EdgeMachineJob */ -export async function get( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - options: EdgeMachineJobsGetOptionalParams = { requestOptions: {} }, -): Promise { - const result = await _getSend(context, resourceGroupName, edgeMachineName, jobsName, options); - return _getDeserialize(result); -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachineJobs/options.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachineJobs/options.ts deleted file mode 100644 index 34a033ce7903..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachineJobs/options.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { OperationOptions } from "@azure-rest/core-client"; - -/** Optional parameters. */ -export interface EdgeMachineJobsListOptionalParams extends OperationOptions {} - -/** Optional parameters. */ -export interface EdgeMachineJobsDeleteOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -/** Optional parameters. */ -export interface EdgeMachineJobsCreateOrUpdateOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -/** Optional parameters. */ -export interface EdgeMachineJobsGetOptionalParams extends OperationOptions {} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachines/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachines/index.ts deleted file mode 100644 index 6ec3219056e8..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachines/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -export { - listBySubscription, - listByResourceGroup, - $delete, - update, - createOrUpdate, - get, -} from "./operations.js"; -export type { - EdgeMachinesListBySubscriptionOptionalParams, - EdgeMachinesListByResourceGroupOptionalParams, - EdgeMachinesDeleteOptionalParams, - EdgeMachinesUpdateOptionalParams, - EdgeMachinesCreateOrUpdateOptionalParams, - EdgeMachinesGetOptionalParams, -} from "./options.js"; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachines/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachines/operations.ts deleted file mode 100644 index 11ef4e1131d6..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachines/operations.ts +++ /dev/null @@ -1,351 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext as Client } from "../index.js"; -import type { EdgeMachine, EdgeMachinePatch, _EdgeMachineListResult } from "../../models/models.js"; -import { - errorResponseDeserializer, - edgeMachineSerializer, - edgeMachineDeserializer, - edgeMachinePatchSerializer, - _edgeMachineListResultDeserializer, -} from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js"; -import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js"; -import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js"; -import type { - EdgeMachinesListBySubscriptionOptionalParams, - EdgeMachinesListByResourceGroupOptionalParams, - EdgeMachinesDeleteOptionalParams, - EdgeMachinesUpdateOptionalParams, - EdgeMachinesCreateOrUpdateOptionalParams, - EdgeMachinesGetOptionalParams, -} from "./options.js"; -import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client"; -import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client"; -import type { PollerLike, OperationState } from "@azure/core-lro"; - -export function _listBySubscriptionSend( - context: Client, - options: EdgeMachinesListBySubscriptionOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/edgeMachines{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _listBySubscriptionDeserialize( - result: PathUncheckedResponse, -): Promise<_EdgeMachineListResult> { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return _edgeMachineListResultDeserializer(result.body); -} - -/** List all edge machines in a subscription. */ -export function listBySubscription( - context: Client, - options: EdgeMachinesListBySubscriptionOptionalParams = { requestOptions: {} }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => _listBySubscriptionSend(context, options), - _listBySubscriptionDeserialize, - ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, - ); -} - -export function _listByResourceGroupSend( - context: Client, - resourceGroupName: string, - options: EdgeMachinesListByResourceGroupOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/edgeMachines{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _listByResourceGroupDeserialize( - result: PathUncheckedResponse, -): Promise<_EdgeMachineListResult> { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return _edgeMachineListResultDeserializer(result.body); -} - -/** List all edge machines in a resource group. */ -export function listByResourceGroup( - context: Client, - resourceGroupName: string, - options: EdgeMachinesListByResourceGroupOptionalParams = { requestOptions: {} }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => _listByResourceGroupSend(context, resourceGroupName, options), - _listByResourceGroupDeserialize, - ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, - ); -} - -export function _$deleteSend( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - options: EdgeMachinesDeleteOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/edgeMachines/{edgeMachineName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - edgeMachineName: edgeMachineName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).delete({ ...operationOptionsToRequestParameters(options) }); -} - -export async function _$deleteDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["202", "204", "200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return; -} - -/** Delete an edge machine. */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ -export function $delete( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - options: EdgeMachinesDeleteOptionalParams = { requestOptions: {} }, -): PollerLike, void> { - return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => _$deleteSend(context, resourceGroupName, edgeMachineName, options), - resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }) as PollerLike, void>; -} - -export function _updateSend( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - properties: EdgeMachinePatch, - options: EdgeMachinesUpdateOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/edgeMachines/{edgeMachineName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - edgeMachineName: edgeMachineName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).patch({ - ...operationOptionsToRequestParameters(options), - contentType: "application/json", - headers: { accept: "application/json", ...options.requestOptions?.headers }, - body: edgeMachinePatchSerializer(properties), - }); -} - -export async function _updateDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["200", "202", "201"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return edgeMachineDeserializer(result.body); -} - -/** Update an edge machine. */ -export function update( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - properties: EdgeMachinePatch, - options: EdgeMachinesUpdateOptionalParams = { requestOptions: {} }, -): PollerLike, EdgeMachine> { - return getLongRunningPoller(context, _updateDeserialize, ["200", "202", "201"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _updateSend(context, resourceGroupName, edgeMachineName, properties, options), - resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }) as PollerLike, EdgeMachine>; -} - -export function _createOrUpdateSend( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - resource: EdgeMachine, - options: EdgeMachinesCreateOrUpdateOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/edgeMachines/{edgeMachineName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - edgeMachineName: edgeMachineName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).put({ - ...operationOptionsToRequestParameters(options), - contentType: "application/json", - headers: { accept: "application/json", ...options.requestOptions?.headers }, - body: edgeMachineSerializer(resource), - }); -} - -export async function _createOrUpdateDeserialize( - result: PathUncheckedResponse, -): Promise { - const expectedStatuses = ["200", "201", "202"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return edgeMachineDeserializer(result.body); -} - -/** Create or update an edge machine. */ -export function createOrUpdate( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - resource: EdgeMachine, - options: EdgeMachinesCreateOrUpdateOptionalParams = { requestOptions: {} }, -): PollerLike, EdgeMachine> { - return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], { - updateIntervalInMs: options?.updateIntervalInMs, - abortSignal: options?.abortSignal, - getInitialResponse: () => - _createOrUpdateSend(context, resourceGroupName, edgeMachineName, resource, options), - resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }) as PollerLike, EdgeMachine>; -} - -export function _getSend( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - options: EdgeMachinesGetOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/edgeMachines/{edgeMachineName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - edgeMachineName: edgeMachineName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _getDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return edgeMachineDeserializer(result.body); -} - -/** Get an edge machine. */ -export async function get( - context: Client, - resourceGroupName: string, - edgeMachineName: string, - options: EdgeMachinesGetOptionalParams = { requestOptions: {} }, -): Promise { - const result = await _getSend(context, resourceGroupName, edgeMachineName, options); - return _getDeserialize(result); -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachines/options.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachines/options.ts deleted file mode 100644 index 22307883e16a..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/edgeMachines/options.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { OperationOptions } from "@azure-rest/core-client"; - -/** Optional parameters. */ -export interface EdgeMachinesListBySubscriptionOptionalParams extends OperationOptions {} - -/** Optional parameters. */ -export interface EdgeMachinesListByResourceGroupOptionalParams extends OperationOptions {} - -/** Optional parameters. */ -export interface EdgeMachinesDeleteOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -/** Optional parameters. */ -export interface EdgeMachinesUpdateOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -/** Optional parameters. */ -export interface EdgeMachinesCreateOrUpdateOptionalParams extends OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; -} - -/** Optional parameters. */ -export interface EdgeMachinesGetOptionalParams extends OperationOptions {} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/extensions/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/extensions/operations.ts index 6eafb40f8f94..53a1576c8313 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/extensions/operations.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/extensions/operations.ts @@ -49,7 +49,7 @@ export function _upgradeSend( clusterName: clusterName, arcSettingName: arcSettingName, extensionName: extensionName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -98,7 +98,7 @@ export function upgrade( options, ), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } @@ -116,7 +116,7 @@ export function _listByArcSettingSend( resourceGroupName: resourceGroupName, clusterName: clusterName, arcSettingName: arcSettingName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -155,11 +155,7 @@ export function listByArcSetting( () => _listByArcSettingSend(context, resourceGroupName, clusterName, arcSettingName, options), _listByArcSettingDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } @@ -179,7 +175,7 @@ export function _$deleteSend( clusterName: clusterName, arcSettingName: arcSettingName, extensionName: extensionName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -201,11 +197,6 @@ export async function _$deleteDeserialize(result: PathUncheckedResponse): Promis } /** Delete particular Arc Extension of HCI Cluster. */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ export function $delete( context: Client, resourceGroupName: string, @@ -220,7 +211,7 @@ export function $delete( getInitialResponse: () => _$deleteSend(context, resourceGroupName, clusterName, arcSettingName, extensionName, options), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } @@ -241,7 +232,7 @@ export function _updateSend( clusterName: clusterName, arcSettingName: arcSettingName, extensionName: extensionName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -291,7 +282,7 @@ export function update( options, ), resourceLocationConfig: "original-uri", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, Extension>; } @@ -312,7 +303,7 @@ export function _createSend( clusterName: clusterName, arcSettingName: arcSettingName, extensionName: extensionName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -362,7 +353,7 @@ export function create( options, ), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, Extension>; } @@ -382,7 +373,7 @@ export function _getSend( clusterName: clusterName, arcSettingName: arcSettingName, extensionName: extensionName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/kubernetesVersions/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/kubernetesVersions/index.ts deleted file mode 100644 index 135ba603c766..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/kubernetesVersions/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -export { listBySubscriptionLocationResource } from "./operations.js"; -export type { KubernetesVersionsListBySubscriptionLocationResourceOptionalParams } from "./options.js"; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/kubernetesVersions/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/kubernetesVersions/operations.ts deleted file mode 100644 index 140583a533e2..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/kubernetesVersions/operations.ts +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext as Client } from "../index.js"; -import type { _KubernetesVersionListResult, KubernetesVersion } from "../../models/models.js"; -import { - _kubernetesVersionListResultDeserializer, - errorResponseDeserializer, -} from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js"; -import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js"; -import type { KubernetesVersionsListBySubscriptionLocationResourceOptionalParams } from "./options.js"; -import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client"; -import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client"; - -export function _listBySubscriptionLocationResourceSend( - context: Client, - location: string, - options: KubernetesVersionsListBySubscriptionLocationResourceOptionalParams = { - requestOptions: {}, - }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/locations/{location}/kubernetesVersions{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - location: location, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _listBySubscriptionLocationResourceDeserialize( - result: PathUncheckedResponse, -): Promise<_KubernetesVersionListResult> { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return _kubernetesVersionListResultDeserializer(result.body); -} - -/** List all kubernetes versions. */ -export function listBySubscriptionLocationResource( - context: Client, - location: string, - options: KubernetesVersionsListBySubscriptionLocationResourceOptionalParams = { - requestOptions: {}, - }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => _listBySubscriptionLocationResourceSend(context, location, options), - _listBySubscriptionLocationResourceDeserialize, - ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, - ); -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/kubernetesVersions/options.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/kubernetesVersions/options.ts deleted file mode 100644 index c2072283a176..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/kubernetesVersions/options.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { OperationOptions } from "@azure-rest/core-client"; - -/** Optional parameters. */ -export interface KubernetesVersionsListBySubscriptionLocationResourceOptionalParams extends OperationOptions {} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/offers/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/offers/operations.ts index 67ba569893c4..6de75f5fc85c 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/offers/operations.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/offers/operations.ts @@ -31,7 +31,7 @@ export function _listByClusterSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", "%24expand": options?.expand, }, { @@ -70,11 +70,7 @@ export function listByCluster( () => _listByClusterSend(context, resourceGroupName, clusterName, options), _listByClusterDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } @@ -92,7 +88,7 @@ export function _listByPublisherSend( resourceGroupName: resourceGroupName, clusterName: clusterName, publisherName: publisherName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", "%24expand": options?.expand, }, { @@ -132,11 +128,7 @@ export function listByPublisher( () => _listByPublisherSend(context, resourceGroupName, clusterName, publisherName, options), _listByPublisherDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } @@ -156,7 +148,7 @@ export function _getSend( clusterName: clusterName, publisherName: publisherName, offerName: offerName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", "%24expand": options?.expand, }, { diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/operations/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/operations/operations.ts index 185d73680363..07cb554fcbf3 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/operations/operations.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/operations/operations.ts @@ -4,8 +4,8 @@ import type { AzureStackHCIContext as Client } from "../index.js"; import type { _OperationListResult, Operation } from "../../models/models.js"; import { - errorResponseDeserializer, _operationListResultDeserializer, + errorResponseDeserializer, } from "../../models/models.js"; import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js"; @@ -21,7 +21,7 @@ export function _listSend( const path = expandUrlTemplate( "/providers/Microsoft.AzureStackHCI/operations{?api%2Dversion}", { - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -57,10 +57,6 @@ export function list( () => _listSend(context, options), _listDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/osImages/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/osImages/index.ts deleted file mode 100644 index c522f06e9d84..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/osImages/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -export { listBySubscriptionLocationResource, get } from "./operations.js"; -export type { - OsImagesListBySubscriptionLocationResourceOptionalParams, - OsImagesGetOptionalParams, -} from "./options.js"; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/osImages/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/osImages/operations.ts deleted file mode 100644 index b128f7776cb7..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/osImages/operations.ts +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext as Client } from "../index.js"; -import type { OsImage, _OsImageListResult } from "../../models/models.js"; -import { - errorResponseDeserializer, - osImageDeserializer, - _osImageListResultDeserializer, -} from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js"; -import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js"; -import type { - OsImagesListBySubscriptionLocationResourceOptionalParams, - OsImagesGetOptionalParams, -} from "./options.js"; -import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client"; -import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client"; - -export function _listBySubscriptionLocationResourceSend( - context: Client, - location: string, - options: OsImagesListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/locations/{location}/osImages{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - location: location, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _listBySubscriptionLocationResourceDeserialize( - result: PathUncheckedResponse, -): Promise<_OsImageListResult> { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return _osImageListResultDeserializer(result.body); -} - -/** List all os images. */ -export function listBySubscriptionLocationResource( - context: Client, - location: string, - options: OsImagesListBySubscriptionLocationResourceOptionalParams = { requestOptions: {} }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => _listBySubscriptionLocationResourceSend(context, location, options), - _listBySubscriptionLocationResourceDeserialize, - ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, - ); -} - -export function _getSend( - context: Client, - location: string, - osImageName: string, - options: OsImagesGetOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/locations/{location}/osImages/{osImageName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - location: location, - osImageName: osImageName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _getDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return osImageDeserializer(result.body); -} - -/** Get a os image. */ -export async function get( - context: Client, - location: string, - osImageName: string, - options: OsImagesGetOptionalParams = { requestOptions: {} }, -): Promise { - const result = await _getSend(context, location, osImageName, options); - return _getDeserialize(result); -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/osImages/options.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/osImages/options.ts deleted file mode 100644 index eb000a86f9e6..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/osImages/options.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { OperationOptions } from "@azure-rest/core-client"; - -/** Optional parameters. */ -export interface OsImagesListBySubscriptionLocationResourceOptionalParams extends OperationOptions {} - -/** Optional parameters. */ -export interface OsImagesGetOptionalParams extends OperationOptions {} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/ownershipVouchers/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/ownershipVouchers/index.ts deleted file mode 100644 index 7cd4f940397a..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/ownershipVouchers/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -export { validate } from "./operations.js"; -export type { OwnershipVouchersValidateOptionalParams } from "./options.js"; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/ownershipVouchers/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/ownershipVouchers/operations.ts deleted file mode 100644 index 0d2936836f51..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/ownershipVouchers/operations.ts +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext as Client } from "../index.js"; -import type { - ValidateOwnershipVouchersRequest, - ValidateOwnershipVouchersResponse, -} from "../../models/models.js"; -import { - errorResponseDeserializer, - validateOwnershipVouchersRequestSerializer, - validateOwnershipVouchersResponseDeserializer, -} from "../../models/models.js"; -import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js"; -import type { OwnershipVouchersValidateOptionalParams } from "./options.js"; -import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client"; -import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client"; - -export function _validateSend( - context: Client, - resourceGroupName: string, - location: string, - validationRequest: ValidateOwnershipVouchersRequest, - options: OwnershipVouchersValidateOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/locations/{location}/validateOwnershipVouchers{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - location: location, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).post({ - ...operationOptionsToRequestParameters(options), - contentType: "application/json", - headers: { accept: "application/json", ...options.requestOptions?.headers }, - body: validateOwnershipVouchersRequestSerializer(validationRequest), - }); -} - -export async function _validateDeserialize( - result: PathUncheckedResponse, -): Promise { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return validateOwnershipVouchersResponseDeserializer(result.body); -} - -/** Validates ownership vouchers. */ -export async function validate( - context: Client, - resourceGroupName: string, - location: string, - validationRequest: ValidateOwnershipVouchersRequest, - options: OwnershipVouchersValidateOptionalParams = { requestOptions: {} }, -): Promise { - const result = await _validateSend( - context, - resourceGroupName, - location, - validationRequest, - options, - ); - return _validateDeserialize(result); -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/ownershipVouchers/options.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/ownershipVouchers/options.ts deleted file mode 100644 index 7db8369cd139..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/ownershipVouchers/options.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { OperationOptions } from "@azure-rest/core-client"; - -/** Optional parameters. */ -export interface OwnershipVouchersValidateOptionalParams extends OperationOptions {} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/platformUpdates/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/platformUpdates/index.ts deleted file mode 100644 index ecf53e4e36cc..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/platformUpdates/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -export { list, get } from "./operations.js"; -export type { - PlatformUpdatesListOptionalParams, - PlatformUpdatesGetOptionalParams, -} from "./options.js"; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/platformUpdates/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/platformUpdates/operations.ts deleted file mode 100644 index 1b26a3847157..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/platformUpdates/operations.ts +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext as Client } from "../index.js"; -import type { PlatformUpdate, _PlatformUpdateListResult } from "../../models/models.js"; -import { - errorResponseDeserializer, - platformUpdateDeserializer, - _platformUpdateListResultDeserializer, -} from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js"; -import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js"; -import type { - PlatformUpdatesListOptionalParams, - PlatformUpdatesGetOptionalParams, -} from "./options.js"; -import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client"; -import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client"; - -export function _listSend( - context: Client, - location: string, - options: PlatformUpdatesListOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/locations/{location}/platformUpdates{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - location: location, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _listDeserialize( - result: PathUncheckedResponse, -): Promise<_PlatformUpdateListResult> { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return _platformUpdateListResultDeserializer(result.body); -} - -/** List all platform updates. */ -export function list( - context: Client, - location: string, - options: PlatformUpdatesListOptionalParams = { requestOptions: {} }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => _listSend(context, location, options), - _listDeserialize, - ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, - ); -} - -export function _getSend( - context: Client, - location: string, - platformUpdateName: string, - options: PlatformUpdatesGetOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/locations/{location}/platformUpdates/{platformUpdateName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - location: location, - platformUpdateName: platformUpdateName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _getDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return platformUpdateDeserializer(result.body); -} - -/** Get a platform update. */ -export async function get( - context: Client, - location: string, - platformUpdateName: string, - options: PlatformUpdatesGetOptionalParams = { requestOptions: {} }, -): Promise { - const result = await _getSend(context, location, platformUpdateName, options); - return _getDeserialize(result); -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/platformUpdates/options.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/platformUpdates/options.ts deleted file mode 100644 index 17af99add3b6..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/platformUpdates/options.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { OperationOptions } from "@azure-rest/core-client"; - -/** Optional parameters. */ -export interface PlatformUpdatesListOptionalParams extends OperationOptions {} - -/** Optional parameters. */ -export interface PlatformUpdatesGetOptionalParams extends OperationOptions {} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/publishers/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/publishers/index.ts deleted file mode 100644 index b626976ac7b3..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/publishers/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -export { listByCluster, get } from "./operations.js"; -export type { - PublishersListByClusterOptionalParams, - PublishersGetOptionalParams, -} from "./options.js"; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/publishers/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/publishers/operations.ts deleted file mode 100644 index bca89863c3fc..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/publishers/operations.ts +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext as Client } from "../index.js"; -import type { Publisher, _PublisherList } from "../../models/models.js"; -import { - errorResponseDeserializer, - publisherDeserializer, - _publisherListDeserializer, -} from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js"; -import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js"; -import type { - PublishersListByClusterOptionalParams, - PublishersGetOptionalParams, -} from "./options.js"; -import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client"; -import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client"; - -export function _listByClusterSend( - context: Client, - resourceGroupName: string, - clusterName: string, - options: PublishersListByClusterOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/publishers{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _listByClusterDeserialize( - result: PathUncheckedResponse, -): Promise<_PublisherList> { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return _publisherListDeserializer(result.body); -} - -/** List Publishers available for the HCI Cluster. */ -export function listByCluster( - context: Client, - resourceGroupName: string, - clusterName: string, - options: PublishersListByClusterOptionalParams = { requestOptions: {} }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => _listByClusterSend(context, resourceGroupName, clusterName, options), - _listByClusterDeserialize, - ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, - ); -} - -export function _getSend( - context: Client, - resourceGroupName: string, - clusterName: string, - publisherName: string, - options: PublishersGetOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/publishers/{publisherName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - resourceGroupName: resourceGroupName, - clusterName: clusterName, - publisherName: publisherName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _getDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return publisherDeserializer(result.body); -} - -/** Get Publisher resource details of HCI Cluster. */ -export async function get( - context: Client, - resourceGroupName: string, - clusterName: string, - publisherName: string, - options: PublishersGetOptionalParams = { requestOptions: {} }, -): Promise { - const result = await _getSend(context, resourceGroupName, clusterName, publisherName, options); - return _getDeserialize(result); -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/publishers/options.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/publishers/options.ts deleted file mode 100644 index d92b9b26e166..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/publishers/options.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { OperationOptions } from "@azure-rest/core-client"; - -/** Optional parameters. */ -export interface PublishersListByClusterOptionalParams extends OperationOptions {} - -/** Optional parameters. */ -export interface PublishersGetOptionalParams extends OperationOptions {} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/securitySettings/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/securitySettings/operations.ts index fa39796dffd7..6fcf7889a549 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/securitySettings/operations.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/securitySettings/operations.ts @@ -35,7 +35,7 @@ export function _listByClustersSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -73,11 +73,7 @@ export function listByClusters( () => _listByClustersSend(context, resourceGroupName, clusterName, options), _listByClustersDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } @@ -95,7 +91,7 @@ export function _$deleteSend( resourceGroupName: resourceGroupName, clusterName: clusterName, securitySettingsName: securitySettingsName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -117,11 +113,6 @@ export async function _$deleteDeserialize(result: PathUncheckedResponse): Promis } /** Delete a SecuritySetting */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ export function $delete( context: Client, resourceGroupName: string, @@ -135,7 +126,7 @@ export function $delete( getInitialResponse: () => _$deleteSend(context, resourceGroupName, clusterName, securitySettingsName, options), resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } @@ -154,7 +145,7 @@ export function _createOrUpdateSend( resourceGroupName: resourceGroupName, clusterName: clusterName, securitySettingsName: securitySettingsName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -204,7 +195,7 @@ export function createOrUpdate( options, ), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, SecuritySetting>; } @@ -222,7 +213,7 @@ export function _getSend( resourceGroupName: resourceGroupName, clusterName: clusterName, securitySettingsName: securitySettingsName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/skus/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/skus/operations.ts index 4387b827de66..df21d6ec121a 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/skus/operations.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/skus/operations.ts @@ -31,7 +31,7 @@ export function _listByOfferSend( clusterName: clusterName, publisherName: publisherName, offerName: offerName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", "%24expand": options?.expand, }, { @@ -71,11 +71,7 @@ export function listByOffer( _listByOfferSend(context, resourceGroupName, clusterName, publisherName, offerName, options), _listByOfferDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } @@ -97,7 +93,7 @@ export function _getSend( publisherName: publisherName, offerName: offerName, skuName: skuName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", "%24expand": options?.expand, }, { diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/updateContents/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/updateContents/index.ts deleted file mode 100644 index e9ad7ef31b11..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/updateContents/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -export { list, get } from "./operations.js"; -export type { - UpdateContentsListOptionalParams, - UpdateContentsGetOptionalParams, -} from "./options.js"; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/updateContents/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/updateContents/operations.ts deleted file mode 100644 index 62c29cafc8a0..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/updateContents/operations.ts +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext as Client } from "../index.js"; -import type { UpdateContent, _UpdateContentListResult } from "../../models/models.js"; -import { - errorResponseDeserializer, - updateContentDeserializer, - _updateContentListResultDeserializer, -} from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js"; -import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js"; -import type { - UpdateContentsListOptionalParams, - UpdateContentsGetOptionalParams, -} from "./options.js"; -import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client"; -import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client"; - -export function _listSend( - context: Client, - location: string, - options: UpdateContentsListOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/locations/{location}/updateContents{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - location: location, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _listDeserialize( - result: PathUncheckedResponse, -): Promise<_UpdateContentListResult> { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return _updateContentListResultDeserializer(result.body); -} - -/** List all update contents. */ -export function list( - context: Client, - location: string, - options: UpdateContentsListOptionalParams = { requestOptions: {} }, -): PagedAsyncIterableIterator { - return buildPagedAsyncIterator( - context, - () => _listSend(context, location, options), - _listDeserialize, - ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, - ); -} - -export function _getSend( - context: Client, - location: string, - updateContentName: string, - options: UpdateContentsGetOptionalParams = { requestOptions: {} }, -): StreamableMethod { - const path = expandUrlTemplate( - "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/locations/{location}/updateContents/{updateContentName}{?api%2Dversion}", - { - subscriptionId: context.subscriptionId, - location: location, - updateContentName: updateContentName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", - }, - { - allowReserved: options?.requestOptions?.skipUrlEncoding, - }, - ); - return context.path(path).get({ - ...operationOptionsToRequestParameters(options), - headers: { accept: "application/json", ...options.requestOptions?.headers }, - }); -} - -export async function _getDeserialize(result: PathUncheckedResponse): Promise { - const expectedStatuses = ["200"]; - if (!expectedStatuses.includes(result.status)) { - const error = createRestError(result); - error.details = errorResponseDeserializer(result.body); - - throw error; - } - - return updateContentDeserializer(result.body); -} - -/** Gets content for an update. */ -export async function get( - context: Client, - location: string, - updateContentName: string, - options: UpdateContentsGetOptionalParams = { requestOptions: {} }, -): Promise { - const result = await _getSend(context, location, updateContentName, options); - return _getDeserialize(result); -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/updateContents/options.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/updateContents/options.ts deleted file mode 100644 index 97843b774391..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/updateContents/options.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { OperationOptions } from "@azure-rest/core-client"; - -/** Optional parameters. */ -export interface UpdateContentsListOptionalParams extends OperationOptions {} - -/** Optional parameters. */ -export interface UpdateContentsGetOptionalParams extends OperationOptions {} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/updateRuns/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/updateRuns/operations.ts index 9d726b52b9b2..9b33dda406ef 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/updateRuns/operations.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/updateRuns/operations.ts @@ -37,7 +37,7 @@ export function _listSend( resourceGroupName: resourceGroupName, clusterName: clusterName, updateName: updateName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -74,11 +74,7 @@ export function list( () => _listSend(context, resourceGroupName, clusterName, updateName, options), _listDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } @@ -98,7 +94,7 @@ export function _$deleteSend( clusterName: clusterName, updateName: updateName, updateRunName: updateRunName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -120,11 +116,6 @@ export async function _$deleteDeserialize(result: PathUncheckedResponse): Promis } /** Delete specified Update Run */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ export function $delete( context: Client, resourceGroupName: string, @@ -139,7 +130,7 @@ export function $delete( getInitialResponse: () => _$deleteSend(context, resourceGroupName, clusterName, updateName, updateRunName, options), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } @@ -160,7 +151,7 @@ export function _putSend( clusterName: clusterName, updateName: updateName, updateRunName: updateRunName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -224,7 +215,7 @@ export function _getSend( clusterName: clusterName, updateName: updateName, updateRunName: updateRunName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/updateSummaries/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/updateSummaries/operations.ts index 8ab6c5a57467..d36733426f91 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/updateSummaries/operations.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/updateSummaries/operations.ts @@ -35,7 +35,7 @@ export function _listSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -73,11 +73,7 @@ export function list( () => _listSend(context, resourceGroupName, clusterName, options), _listDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } @@ -93,7 +89,7 @@ export function _$deleteSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -115,11 +111,6 @@ export async function _$deleteDeserialize(result: PathUncheckedResponse): Promis } /** Delete Update Summaries */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ export function $delete( context: Client, resourceGroupName: string, @@ -131,7 +122,7 @@ export function $delete( abortSignal: options?.abortSignal, getInitialResponse: () => _$deleteSend(context, resourceGroupName, clusterName, options), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } @@ -148,7 +139,7 @@ export function _putSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -204,7 +195,7 @@ export function _getSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/updateSummariesOperationGroup/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/updateSummariesOperationGroup/operations.ts index 08ba52d7c8b9..a50a05685e25 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/updateSummariesOperationGroup/operations.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/updateSummariesOperationGroup/operations.ts @@ -26,7 +26,7 @@ export function _checkHealthSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -59,7 +59,7 @@ export function checkHealth( abortSignal: options?.abortSignal, getInitialResponse: () => _checkHealthSend(context, resourceGroupName, clusterName, options), resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } @@ -76,7 +76,7 @@ export function _checkUpdatesSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -115,6 +115,6 @@ export function checkUpdates( getInitialResponse: () => _checkUpdatesSend(context, resourceGroupName, clusterName, body, options), resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/updates/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/updates/operations.ts index 2d399f2bf54a..5cb9308d0f5a 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/updates/operations.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/updates/operations.ts @@ -39,7 +39,7 @@ export function _prepareSend( resourceGroupName: resourceGroupName, clusterName: clusterName, updateName: updateName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -74,7 +74,7 @@ export function prepare( getInitialResponse: () => _prepareSend(context, resourceGroupName, clusterName, updateName, options), resourceLocationConfig: "location", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } @@ -92,7 +92,7 @@ export function _postSend( resourceGroupName: resourceGroupName, clusterName: clusterName, updateName: updateName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -127,7 +127,7 @@ export function post( getInitialResponse: () => _postSend(context, resourceGroupName, clusterName, updateName, options), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } @@ -143,7 +143,7 @@ export function _listSend( subscriptionId: context.subscriptionId, resourceGroupName: resourceGroupName, clusterName: clusterName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -179,11 +179,7 @@ export function list( () => _listSend(context, resourceGroupName, clusterName, options), _listDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } @@ -201,7 +197,7 @@ export function _$deleteSend( resourceGroupName: resourceGroupName, clusterName: clusterName, updateName: updateName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -223,11 +219,6 @@ export async function _$deleteDeserialize(result: PathUncheckedResponse): Promis } /** Delete specified Update */ -/** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ export function $delete( context: Client, resourceGroupName: string, @@ -241,7 +232,7 @@ export function $delete( getInitialResponse: () => _$deleteSend(context, resourceGroupName, clusterName, updateName, options), resourceLocationConfig: "azure-async-operation", - apiVersion: context.apiVersion ?? "2026-04-01-preview", + apiVersion: context.apiVersion ?? "2026-04-30", }) as PollerLike, void>; } @@ -260,7 +251,7 @@ export function _putSend( resourceGroupName: resourceGroupName, clusterName: clusterName, updateName: updateName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -320,7 +311,7 @@ export function _getSend( resourceGroupName: resourceGroupName, clusterName: clusterName, updateName: updateName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/api/validatedSolutionRecipes/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/api/validatedSolutionRecipes/operations.ts index 8d9980d96686..6a46420eb219 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/api/validatedSolutionRecipes/operations.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/api/validatedSolutionRecipes/operations.ts @@ -33,7 +33,7 @@ export function _listBySubscriptionLocationResourceSend( { subscriptionId: context.subscriptionId, location: location, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, @@ -72,11 +72,7 @@ export function listBySubscriptionLocationResource( () => _listBySubscriptionLocationResourceSend(context, location, options), _listBySubscriptionLocationResourceDeserialize, ["200"], - { - itemName: "value", - nextLinkName: "nextLink", - apiVersion: context.apiVersion ?? "2026-04-01-preview", - }, + { itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-04-30" }, ); } @@ -92,7 +88,7 @@ export function _getSend( subscriptionId: context.subscriptionId, location: location, validatedSolutionRecipeName: validatedSolutionRecipeName, - "api%2Dversion": context.apiVersion ?? "2026-04-01-preview", + "api%2Dversion": context.apiVersion ?? "2026-04-30", }, { allowReserved: options?.requestOptions?.skipUrlEncoding, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/azureStackHCIClient.ts b/sdk/azurestackhci/arm-azurestackhci/src/azureStackHCIClient.ts index 6e19c36953a3..3c44fb673cd8 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/azureStackHCIClient.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/azureStackHCIClient.ts @@ -5,44 +5,24 @@ import type { AzureStackHCIContext, AzureStackHCIClientOptionalParams } from "./ import { createAzureStackHCI } from "./api/index.js"; import type { ArcSettingsOperations } from "./classic/arcSettings/index.js"; import { _getArcSettingsOperations } from "./classic/arcSettings/index.js"; -import type { ClusterJobsOperations } from "./classic/clusterJobs/index.js"; -import { _getClusterJobsOperations } from "./classic/clusterJobs/index.js"; import type { ClustersOperations } from "./classic/clusters/index.js"; import { _getClustersOperations } from "./classic/clusters/index.js"; import type { DeploymentSettingsOperations } from "./classic/deploymentSettings/index.js"; import { _getDeploymentSettingsOperations } from "./classic/deploymentSettings/index.js"; -import type { DevicePoolsOperations } from "./classic/devicePools/index.js"; -import { _getDevicePoolsOperations } from "./classic/devicePools/index.js"; import type { EdgeDeviceJobsOperations } from "./classic/edgeDeviceJobs/index.js"; import { _getEdgeDeviceJobsOperations } from "./classic/edgeDeviceJobs/index.js"; import type { EdgeDevicesOperations } from "./classic/edgeDevices/index.js"; import { _getEdgeDevicesOperations } from "./classic/edgeDevices/index.js"; -import type { EdgeMachineJobsOperations } from "./classic/edgeMachineJobs/index.js"; -import { _getEdgeMachineJobsOperations } from "./classic/edgeMachineJobs/index.js"; -import type { EdgeMachinesOperations } from "./classic/edgeMachines/index.js"; -import { _getEdgeMachinesOperations } from "./classic/edgeMachines/index.js"; import type { ExtensionsOperations } from "./classic/extensions/index.js"; import { _getExtensionsOperations } from "./classic/extensions/index.js"; -import type { KubernetesVersionsOperations } from "./classic/kubernetesVersions/index.js"; -import { _getKubernetesVersionsOperations } from "./classic/kubernetesVersions/index.js"; import type { OffersOperations } from "./classic/offers/index.js"; import { _getOffersOperations } from "./classic/offers/index.js"; import type { OperationsOperations } from "./classic/operations/index.js"; import { _getOperationsOperations } from "./classic/operations/index.js"; -import type { OsImagesOperations } from "./classic/osImages/index.js"; -import { _getOsImagesOperations } from "./classic/osImages/index.js"; -import type { OwnershipVouchersOperations } from "./classic/ownershipVouchers/index.js"; -import { _getOwnershipVouchersOperations } from "./classic/ownershipVouchers/index.js"; -import type { PlatformUpdatesOperations } from "./classic/platformUpdates/index.js"; -import { _getPlatformUpdatesOperations } from "./classic/platformUpdates/index.js"; -import type { PublishersOperations } from "./classic/publishers/index.js"; -import { _getPublishersOperations } from "./classic/publishers/index.js"; import type { SecuritySettingsOperations } from "./classic/securitySettings/index.js"; import { _getSecuritySettingsOperations } from "./classic/securitySettings/index.js"; import type { SkusOperations } from "./classic/skus/index.js"; import { _getSkusOperations } from "./classic/skus/index.js"; -import type { UpdateContentsOperations } from "./classic/updateContents/index.js"; -import { _getUpdateContentsOperations } from "./classic/updateContents/index.js"; import type { UpdateRunsOperations } from "./classic/updateRuns/index.js"; import { _getUpdateRunsOperations } from "./classic/updateRuns/index.js"; import type { UpdateSummariesOperations } from "./classic/updateSummaries/index.js"; @@ -94,18 +74,12 @@ export class AzureStackHCIClient { }); this.pipeline = this._client.pipeline; this.updateSummaries = _getUpdateSummariesOperations(this._client); - this.devicePools = _getDevicePoolsOperations(this._client); - this.clusterJobs = _getClusterJobsOperations(this._client); - this.ownershipVouchers = _getOwnershipVouchersOperations(this._client); - this.edgeMachineJobs = _getEdgeMachineJobsOperations(this._client); - this.edgeMachines = _getEdgeMachinesOperations(this._client); this.validatedSolutionRecipes = _getValidatedSolutionRecipesOperations(this._client); this.updateSummariesOperationGroup = _getUpdateSummariesOperationGroupOperations(this._client); this.updates = _getUpdatesOperations(this._client); this.updateRuns = _getUpdateRunsOperations(this._client); this.skus = _getSkusOperations(this._client); this.securitySettings = _getSecuritySettingsOperations(this._client); - this.publishers = _getPublishersOperations(this._client); this.extensions = _getExtensionsOperations(this._client); this.edgeDevices = _getEdgeDevicesOperations(this._client); this.edgeDeviceJobs = _getEdgeDeviceJobsOperations(this._client); @@ -114,24 +88,10 @@ export class AzureStackHCIClient { this.offers = _getOffersOperations(this._client); this.arcSettings = _getArcSettingsOperations(this._client); this.operations = _getOperationsOperations(this._client); - this.updateContents = _getUpdateContentsOperations(this._client); - this.osImages = _getOsImagesOperations(this._client); - this.platformUpdates = _getPlatformUpdatesOperations(this._client); - this.kubernetesVersions = _getKubernetesVersionsOperations(this._client); } /** The operation groups for updateSummaries */ public readonly updateSummaries: UpdateSummariesOperations; - /** The operation groups for devicePools */ - public readonly devicePools: DevicePoolsOperations; - /** The operation groups for clusterJobs */ - public readonly clusterJobs: ClusterJobsOperations; - /** The operation groups for ownershipVouchers */ - public readonly ownershipVouchers: OwnershipVouchersOperations; - /** The operation groups for edgeMachineJobs */ - public readonly edgeMachineJobs: EdgeMachineJobsOperations; - /** The operation groups for edgeMachines */ - public readonly edgeMachines: EdgeMachinesOperations; /** The operation groups for validatedSolutionRecipes */ public readonly validatedSolutionRecipes: ValidatedSolutionRecipesOperations; /** The operation groups for updateSummariesOperationGroup */ @@ -144,8 +104,6 @@ export class AzureStackHCIClient { public readonly skus: SkusOperations; /** The operation groups for securitySettings */ public readonly securitySettings: SecuritySettingsOperations; - /** The operation groups for publishers */ - public readonly publishers: PublishersOperations; /** The operation groups for extensions */ public readonly extensions: ExtensionsOperations; /** The operation groups for edgeDevices */ @@ -162,12 +120,4 @@ export class AzureStackHCIClient { public readonly arcSettings: ArcSettingsOperations; /** The operation groups for operations */ public readonly operations: OperationsOperations; - /** The operation groups for updateContents */ - public readonly updateContents: UpdateContentsOperations; - /** The operation groups for osImages */ - public readonly osImages: OsImagesOperations; - /** The operation groups for platformUpdates */ - public readonly platformUpdates: PlatformUpdatesOperations; - /** The operation groups for kubernetesVersions */ - public readonly kubernetesVersions: KubernetesVersionsOperations; } diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/arcSettings/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/arcSettings/index.ts index c3685bbcfbf4..93e4b2bf6fa2 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/arcSettings/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/classic/arcSettings/index.ts @@ -127,11 +127,6 @@ export interface ArcSettingsOperations { options?: ArcSettingsListByClusterOptionalParams, ) => PagedAsyncIterableIterator; /** Delete ArcSetting resource details of HCI Cluster. */ - /** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ delete: ( resourceGroupName: string, clusterName: string, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/clusterJobs/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/clusterJobs/index.ts deleted file mode 100644 index 734d3f64a3ea..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/clusterJobs/index.ts +++ /dev/null @@ -1,170 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext } from "../../api/azureStackHCIContext.js"; -import { list, $delete, createOrUpdate, get } from "../../api/clusterJobs/operations.js"; -import type { - ClusterJobsListOptionalParams, - ClusterJobsDeleteOptionalParams, - ClusterJobsCreateOrUpdateOptionalParams, - ClusterJobsGetOptionalParams, -} from "../../api/clusterJobs/options.js"; -import type { ClusterJob } from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import type { SimplePollerLike } from "../../static-helpers/simplePollerHelpers.js"; -import { getSimplePoller } from "../../static-helpers/simplePollerHelpers.js"; -import type { PollerLike, OperationState } from "@azure/core-lro"; - -/** Interface representing a ClusterJobs operations. */ -export interface ClusterJobsOperations { - /** List ClusterJob resources by Clusters */ - list: ( - resourceGroupName: string, - clusterName: string, - options?: ClusterJobsListOptionalParams, - ) => PagedAsyncIterableIterator; - /** Delete a ClusterJob */ - /** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ - delete: ( - resourceGroupName: string, - clusterName: string, - jobsName: string, - options?: ClusterJobsDeleteOptionalParams, - ) => PollerLike, void>; - /** @deprecated use delete instead */ - beginDelete: ( - resourceGroupName: string, - clusterName: string, - jobsName: string, - options?: ClusterJobsDeleteOptionalParams, - ) => Promise, void>>; - /** @deprecated use delete instead */ - beginDeleteAndWait: ( - resourceGroupName: string, - clusterName: string, - jobsName: string, - options?: ClusterJobsDeleteOptionalParams, - ) => Promise; - /** Create a ClusterJob */ - createOrUpdate: ( - resourceGroupName: string, - clusterName: string, - jobsName: string, - resource: ClusterJob, - options?: ClusterJobsCreateOrUpdateOptionalParams, - ) => PollerLike, ClusterJob>; - /** @deprecated use createOrUpdate instead */ - beginCreateOrUpdate: ( - resourceGroupName: string, - clusterName: string, - jobsName: string, - resource: ClusterJob, - options?: ClusterJobsCreateOrUpdateOptionalParams, - ) => Promise, ClusterJob>>; - /** @deprecated use createOrUpdate instead */ - beginCreateOrUpdateAndWait: ( - resourceGroupName: string, - clusterName: string, - jobsName: string, - resource: ClusterJob, - options?: ClusterJobsCreateOrUpdateOptionalParams, - ) => Promise; - /** Get a ClusterJob */ - get: ( - resourceGroupName: string, - clusterName: string, - jobsName: string, - options?: ClusterJobsGetOptionalParams, - ) => Promise; -} - -function _getClusterJobs(context: AzureStackHCIContext) { - return { - list: ( - resourceGroupName: string, - clusterName: string, - options?: ClusterJobsListOptionalParams, - ) => list(context, resourceGroupName, clusterName, options), - delete: ( - resourceGroupName: string, - clusterName: string, - jobsName: string, - options?: ClusterJobsDeleteOptionalParams, - ) => $delete(context, resourceGroupName, clusterName, jobsName, options), - beginDelete: async ( - resourceGroupName: string, - clusterName: string, - jobsName: string, - options?: ClusterJobsDeleteOptionalParams, - ) => { - const poller = $delete(context, resourceGroupName, clusterName, jobsName, options); - await poller.submitted(); - return getSimplePoller(poller); - }, - beginDeleteAndWait: async ( - resourceGroupName: string, - clusterName: string, - jobsName: string, - options?: ClusterJobsDeleteOptionalParams, - ) => { - return await $delete(context, resourceGroupName, clusterName, jobsName, options); - }, - createOrUpdate: ( - resourceGroupName: string, - clusterName: string, - jobsName: string, - resource: ClusterJob, - options?: ClusterJobsCreateOrUpdateOptionalParams, - ) => createOrUpdate(context, resourceGroupName, clusterName, jobsName, resource, options), - beginCreateOrUpdate: async ( - resourceGroupName: string, - clusterName: string, - jobsName: string, - resource: ClusterJob, - options?: ClusterJobsCreateOrUpdateOptionalParams, - ) => { - const poller = createOrUpdate( - context, - resourceGroupName, - clusterName, - jobsName, - resource, - options, - ); - await poller.submitted(); - return getSimplePoller(poller); - }, - beginCreateOrUpdateAndWait: async ( - resourceGroupName: string, - clusterName: string, - jobsName: string, - resource: ClusterJob, - options?: ClusterJobsCreateOrUpdateOptionalParams, - ) => { - return await createOrUpdate( - context, - resourceGroupName, - clusterName, - jobsName, - resource, - options, - ); - }, - get: ( - resourceGroupName: string, - clusterName: string, - jobsName: string, - options?: ClusterJobsGetOptionalParams, - ) => get(context, resourceGroupName, clusterName, jobsName, options), - }; -} - -export function _getClusterJobsOperations(context: AzureStackHCIContext): ClusterJobsOperations { - return { - ..._getClusterJobs(context), - }; -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/clusters/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/clusters/index.ts index 381758ae9dd6..b3dfb3fd37eb 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/clusters/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/classic/clusters/index.ts @@ -5,7 +5,6 @@ import type { AzureStackHCIContext } from "../../api/azureStackHCIContext.js"; import { configureRemoteSupport, triggerLogCollection, - changeRing, extendSoftwareAssuranceBenefit, createIdentity, uploadCertificate, @@ -20,7 +19,6 @@ import { import type { ClustersConfigureRemoteSupportOptionalParams, ClustersTriggerLogCollectionOptionalParams, - ClustersChangeRingOptionalParams, ClustersExtendSoftwareAssuranceBenefitOptionalParams, ClustersCreateIdentityOptionalParams, ClustersUploadCertificateOptionalParams, @@ -39,7 +37,6 @@ import type { UploadCertificateRequest, ClusterIdentityResponse, SoftwareAssuranceChangeRequest, - ChangeRingRequest, LogCollectionRequest, RemoteSupportRequest, } from "../../models/models.js"; @@ -92,27 +89,6 @@ export interface ClustersOperations { logCollectionRequest: LogCollectionRequest, options?: ClustersTriggerLogCollectionOptionalParams, ) => Promise; - /** Changes ring of a cluster */ - changeRing: ( - resourceGroupName: string, - clusterName: string, - changeRingRequest: ChangeRingRequest, - options?: ClustersChangeRingOptionalParams, - ) => PollerLike, Cluster>; - /** @deprecated use changeRing instead */ - beginChangeRing: ( - resourceGroupName: string, - clusterName: string, - changeRingRequest: ChangeRingRequest, - options?: ClustersChangeRingOptionalParams, - ) => Promise, Cluster>>; - /** @deprecated use changeRing instead */ - beginChangeRingAndWait: ( - resourceGroupName: string, - clusterName: string, - changeRingRequest: ChangeRingRequest, - options?: ClustersChangeRingOptionalParams, - ) => Promise; /** Extends Software Assurance Benefit to a cluster */ extendSoftwareAssuranceBenefit: ( resourceGroupName: string, @@ -204,11 +180,6 @@ export interface ClustersOperations { options?: ClustersListByResourceGroupOptionalParams, ) => PagedAsyncIterableIterator; /** Delete an HCI cluster. */ - /** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ delete: ( resourceGroupName: string, clusterName: string, @@ -330,36 +301,6 @@ function _getClusters(context: AzureStackHCIContext) { options, ); }, - changeRing: ( - resourceGroupName: string, - clusterName: string, - changeRingRequest: ChangeRingRequest, - options?: ClustersChangeRingOptionalParams, - ) => changeRing(context, resourceGroupName, clusterName, changeRingRequest, options), - beginChangeRing: async ( - resourceGroupName: string, - clusterName: string, - changeRingRequest: ChangeRingRequest, - options?: ClustersChangeRingOptionalParams, - ) => { - const poller = changeRing( - context, - resourceGroupName, - clusterName, - changeRingRequest, - options, - ); - await poller.submitted(); - return getSimplePoller(poller); - }, - beginChangeRingAndWait: async ( - resourceGroupName: string, - clusterName: string, - changeRingRequest: ChangeRingRequest, - options?: ClustersChangeRingOptionalParams, - ) => { - return await changeRing(context, resourceGroupName, clusterName, changeRingRequest, options); - }, extendSoftwareAssuranceBenefit: ( resourceGroupName: string, clusterName: string, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/deploymentSettings/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/deploymentSettings/index.ts index d09bd0d04e03..00d82c9d9d9e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/deploymentSettings/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/classic/deploymentSettings/index.ts @@ -29,11 +29,6 @@ export interface DeploymentSettingsOperations { options?: DeploymentSettingsListByClustersOptionalParams, ) => PagedAsyncIterableIterator; /** Delete a DeploymentSetting */ - /** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ delete: ( resourceGroupName: string, clusterName: string, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/devicePools/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/devicePools/index.ts deleted file mode 100644 index 09e1b62f3776..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/devicePools/index.ts +++ /dev/null @@ -1,299 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext } from "../../api/azureStackHCIContext.js"; -import { - releaseDevices, - claimDevices, - listBySubscription, - listByResourceGroup, - update, - $delete, - createOrUpdate, - get, -} from "../../api/devicePools/operations.js"; -import type { - DevicePoolsReleaseDevicesOptionalParams, - DevicePoolsClaimDevicesOptionalParams, - DevicePoolsListBySubscriptionOptionalParams, - DevicePoolsListByResourceGroupOptionalParams, - DevicePoolsUpdateOptionalParams, - DevicePoolsDeleteOptionalParams, - DevicePoolsCreateOrUpdateOptionalParams, - DevicePoolsGetOptionalParams, -} from "../../api/devicePools/options.js"; -import type { - DevicePool, - DevicePoolPatch, - ClaimDeviceRequest, - ReleaseDeviceRequest, -} from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import type { SimplePollerLike } from "../../static-helpers/simplePollerHelpers.js"; -import { getSimplePoller } from "../../static-helpers/simplePollerHelpers.js"; -import type { PollerLike, OperationState } from "@azure/core-lro"; - -/** Interface representing a DevicePools operations. */ -export interface DevicePoolsOperations { - /** Releasing devices of the pool. */ - releaseDevices: ( - resourceGroupName: string, - devicePoolName: string, - body: ReleaseDeviceRequest, - options?: DevicePoolsReleaseDevicesOptionalParams, - ) => PollerLike, void>; - /** @deprecated use releaseDevices instead */ - beginReleaseDevices: ( - resourceGroupName: string, - devicePoolName: string, - body: ReleaseDeviceRequest, - options?: DevicePoolsReleaseDevicesOptionalParams, - ) => Promise, void>>; - /** @deprecated use releaseDevices instead */ - beginReleaseDevicesAndWait: ( - resourceGroupName: string, - devicePoolName: string, - body: ReleaseDeviceRequest, - options?: DevicePoolsReleaseDevicesOptionalParams, - ) => Promise; - /** Claiming devices of the pool. */ - claimDevices: ( - resourceGroupName: string, - devicePoolName: string, - body: ClaimDeviceRequest, - options?: DevicePoolsClaimDevicesOptionalParams, - ) => PollerLike, void>; - /** @deprecated use claimDevices instead */ - beginClaimDevices: ( - resourceGroupName: string, - devicePoolName: string, - body: ClaimDeviceRequest, - options?: DevicePoolsClaimDevicesOptionalParams, - ) => Promise, void>>; - /** @deprecated use claimDevices instead */ - beginClaimDevicesAndWait: ( - resourceGroupName: string, - devicePoolName: string, - body: ClaimDeviceRequest, - options?: DevicePoolsClaimDevicesOptionalParams, - ) => Promise; - /** List all device pools in a subscription. */ - listBySubscription: ( - options?: DevicePoolsListBySubscriptionOptionalParams, - ) => PagedAsyncIterableIterator; - /** List all device pools in a resource group. */ - listByResourceGroup: ( - resourceGroupName: string, - options?: DevicePoolsListByResourceGroupOptionalParams, - ) => PagedAsyncIterableIterator; - /** Update a devicePool */ - update: ( - resourceGroupName: string, - devicePoolName: string, - properties: DevicePoolPatch, - options?: DevicePoolsUpdateOptionalParams, - ) => PollerLike, DevicePool>; - /** @deprecated use update instead */ - beginUpdate: ( - resourceGroupName: string, - devicePoolName: string, - properties: DevicePoolPatch, - options?: DevicePoolsUpdateOptionalParams, - ) => Promise, DevicePool>>; - /** @deprecated use update instead */ - beginUpdateAndWait: ( - resourceGroupName: string, - devicePoolName: string, - properties: DevicePoolPatch, - options?: DevicePoolsUpdateOptionalParams, - ) => Promise; - /** Delete a DevicePool */ - /** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ - delete: ( - resourceGroupName: string, - devicePoolName: string, - options?: DevicePoolsDeleteOptionalParams, - ) => PollerLike, void>; - /** @deprecated use delete instead */ - beginDelete: ( - resourceGroupName: string, - devicePoolName: string, - options?: DevicePoolsDeleteOptionalParams, - ) => Promise, void>>; - /** @deprecated use delete instead */ - beginDeleteAndWait: ( - resourceGroupName: string, - devicePoolName: string, - options?: DevicePoolsDeleteOptionalParams, - ) => Promise; - /** Create a DevicePool */ - createOrUpdate: ( - resourceGroupName: string, - devicePoolName: string, - resource: DevicePool, - options?: DevicePoolsCreateOrUpdateOptionalParams, - ) => PollerLike, DevicePool>; - /** @deprecated use createOrUpdate instead */ - beginCreateOrUpdate: ( - resourceGroupName: string, - devicePoolName: string, - resource: DevicePool, - options?: DevicePoolsCreateOrUpdateOptionalParams, - ) => Promise, DevicePool>>; - /** @deprecated use createOrUpdate instead */ - beginCreateOrUpdateAndWait: ( - resourceGroupName: string, - devicePoolName: string, - resource: DevicePool, - options?: DevicePoolsCreateOrUpdateOptionalParams, - ) => Promise; - /** Get a DevicePool */ - get: ( - resourceGroupName: string, - devicePoolName: string, - options?: DevicePoolsGetOptionalParams, - ) => Promise; -} - -function _getDevicePools(context: AzureStackHCIContext) { - return { - releaseDevices: ( - resourceGroupName: string, - devicePoolName: string, - body: ReleaseDeviceRequest, - options?: DevicePoolsReleaseDevicesOptionalParams, - ) => releaseDevices(context, resourceGroupName, devicePoolName, body, options), - beginReleaseDevices: async ( - resourceGroupName: string, - devicePoolName: string, - body: ReleaseDeviceRequest, - options?: DevicePoolsReleaseDevicesOptionalParams, - ) => { - const poller = releaseDevices(context, resourceGroupName, devicePoolName, body, options); - await poller.submitted(); - return getSimplePoller(poller); - }, - beginReleaseDevicesAndWait: async ( - resourceGroupName: string, - devicePoolName: string, - body: ReleaseDeviceRequest, - options?: DevicePoolsReleaseDevicesOptionalParams, - ) => { - return await releaseDevices(context, resourceGroupName, devicePoolName, body, options); - }, - claimDevices: ( - resourceGroupName: string, - devicePoolName: string, - body: ClaimDeviceRequest, - options?: DevicePoolsClaimDevicesOptionalParams, - ) => claimDevices(context, resourceGroupName, devicePoolName, body, options), - beginClaimDevices: async ( - resourceGroupName: string, - devicePoolName: string, - body: ClaimDeviceRequest, - options?: DevicePoolsClaimDevicesOptionalParams, - ) => { - const poller = claimDevices(context, resourceGroupName, devicePoolName, body, options); - await poller.submitted(); - return getSimplePoller(poller); - }, - beginClaimDevicesAndWait: async ( - resourceGroupName: string, - devicePoolName: string, - body: ClaimDeviceRequest, - options?: DevicePoolsClaimDevicesOptionalParams, - ) => { - return await claimDevices(context, resourceGroupName, devicePoolName, body, options); - }, - listBySubscription: (options?: DevicePoolsListBySubscriptionOptionalParams) => - listBySubscription(context, options), - listByResourceGroup: ( - resourceGroupName: string, - options?: DevicePoolsListByResourceGroupOptionalParams, - ) => listByResourceGroup(context, resourceGroupName, options), - update: ( - resourceGroupName: string, - devicePoolName: string, - properties: DevicePoolPatch, - options?: DevicePoolsUpdateOptionalParams, - ) => update(context, resourceGroupName, devicePoolName, properties, options), - beginUpdate: async ( - resourceGroupName: string, - devicePoolName: string, - properties: DevicePoolPatch, - options?: DevicePoolsUpdateOptionalParams, - ) => { - const poller = update(context, resourceGroupName, devicePoolName, properties, options); - await poller.submitted(); - return getSimplePoller(poller); - }, - beginUpdateAndWait: async ( - resourceGroupName: string, - devicePoolName: string, - properties: DevicePoolPatch, - options?: DevicePoolsUpdateOptionalParams, - ) => { - return await update(context, resourceGroupName, devicePoolName, properties, options); - }, - delete: ( - resourceGroupName: string, - devicePoolName: string, - options?: DevicePoolsDeleteOptionalParams, - ) => $delete(context, resourceGroupName, devicePoolName, options), - beginDelete: async ( - resourceGroupName: string, - devicePoolName: string, - options?: DevicePoolsDeleteOptionalParams, - ) => { - const poller = $delete(context, resourceGroupName, devicePoolName, options); - await poller.submitted(); - return getSimplePoller(poller); - }, - beginDeleteAndWait: async ( - resourceGroupName: string, - devicePoolName: string, - options?: DevicePoolsDeleteOptionalParams, - ) => { - return await $delete(context, resourceGroupName, devicePoolName, options); - }, - createOrUpdate: ( - resourceGroupName: string, - devicePoolName: string, - resource: DevicePool, - options?: DevicePoolsCreateOrUpdateOptionalParams, - ) => createOrUpdate(context, resourceGroupName, devicePoolName, resource, options), - beginCreateOrUpdate: async ( - resourceGroupName: string, - devicePoolName: string, - resource: DevicePool, - options?: DevicePoolsCreateOrUpdateOptionalParams, - ) => { - const poller = createOrUpdate(context, resourceGroupName, devicePoolName, resource, options); - await poller.submitted(); - return getSimplePoller(poller); - }, - beginCreateOrUpdateAndWait: async ( - resourceGroupName: string, - devicePoolName: string, - resource: DevicePool, - options?: DevicePoolsCreateOrUpdateOptionalParams, - ) => { - return await createOrUpdate(context, resourceGroupName, devicePoolName, resource, options); - }, - get: ( - resourceGroupName: string, - devicePoolName: string, - options?: DevicePoolsGetOptionalParams, - ) => get(context, resourceGroupName, devicePoolName, options), - }; -} - -export function _getDevicePoolsOperations(context: AzureStackHCIContext): DevicePoolsOperations { - return { - ..._getDevicePools(context), - }; -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/edgeDeviceJobs/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/edgeDeviceJobs/index.ts index 84146a11086e..aa7a9eec8693 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/edgeDeviceJobs/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/classic/edgeDeviceJobs/index.ts @@ -29,11 +29,6 @@ export interface EdgeDeviceJobsOperations { options?: EdgeDeviceJobsListByEdgeDeviceOptionalParams, ) => PagedAsyncIterableIterator; /** Delete a EdgeDeviceJob */ - /** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ delete: ( resourceUri: string, edgeDeviceName: string, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/edgeDevices/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/edgeDevices/index.ts index 13370ed43a42..0bd479208c95 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/edgeDevices/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/classic/edgeDevices/index.ts @@ -45,11 +45,6 @@ export interface EdgeDevicesOperations { options?: EdgeDevicesListOptionalParams, ) => PagedAsyncIterableIterator; /** Delete a EdgeDevice */ - /** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ delete: ( resourceUri: string, edgeDeviceName: string, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/edgeMachineJobs/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/edgeMachineJobs/index.ts deleted file mode 100644 index d4e4613b6d9a..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/edgeMachineJobs/index.ts +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext } from "../../api/azureStackHCIContext.js"; -import { list, $delete, createOrUpdate, get } from "../../api/edgeMachineJobs/operations.js"; -import type { - EdgeMachineJobsListOptionalParams, - EdgeMachineJobsDeleteOptionalParams, - EdgeMachineJobsCreateOrUpdateOptionalParams, - EdgeMachineJobsGetOptionalParams, -} from "../../api/edgeMachineJobs/options.js"; -import type { EdgeMachineJob } from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import type { SimplePollerLike } from "../../static-helpers/simplePollerHelpers.js"; -import { getSimplePoller } from "../../static-helpers/simplePollerHelpers.js"; -import type { PollerLike, OperationState } from "@azure/core-lro"; - -/** Interface representing a EdgeMachineJobs operations. */ -export interface EdgeMachineJobsOperations { - /** List EdgeMachineJob resources by EdgeMachines */ - list: ( - resourceGroupName: string, - edgeMachineName: string, - options?: EdgeMachineJobsListOptionalParams, - ) => PagedAsyncIterableIterator; - /** Delete a EdgeMachineJob */ - /** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ - delete: ( - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - options?: EdgeMachineJobsDeleteOptionalParams, - ) => PollerLike, void>; - /** @deprecated use delete instead */ - beginDelete: ( - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - options?: EdgeMachineJobsDeleteOptionalParams, - ) => Promise, void>>; - /** @deprecated use delete instead */ - beginDeleteAndWait: ( - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - options?: EdgeMachineJobsDeleteOptionalParams, - ) => Promise; - /** Create a EdgeMachineJob */ - createOrUpdate: ( - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - resource: EdgeMachineJob, - options?: EdgeMachineJobsCreateOrUpdateOptionalParams, - ) => PollerLike, EdgeMachineJob>; - /** @deprecated use createOrUpdate instead */ - beginCreateOrUpdate: ( - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - resource: EdgeMachineJob, - options?: EdgeMachineJobsCreateOrUpdateOptionalParams, - ) => Promise, EdgeMachineJob>>; - /** @deprecated use createOrUpdate instead */ - beginCreateOrUpdateAndWait: ( - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - resource: EdgeMachineJob, - options?: EdgeMachineJobsCreateOrUpdateOptionalParams, - ) => Promise; - /** Get a EdgeMachineJob */ - get: ( - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - options?: EdgeMachineJobsGetOptionalParams, - ) => Promise; -} - -function _getEdgeMachineJobs(context: AzureStackHCIContext) { - return { - list: ( - resourceGroupName: string, - edgeMachineName: string, - options?: EdgeMachineJobsListOptionalParams, - ) => list(context, resourceGroupName, edgeMachineName, options), - delete: ( - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - options?: EdgeMachineJobsDeleteOptionalParams, - ) => $delete(context, resourceGroupName, edgeMachineName, jobsName, options), - beginDelete: async ( - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - options?: EdgeMachineJobsDeleteOptionalParams, - ) => { - const poller = $delete(context, resourceGroupName, edgeMachineName, jobsName, options); - await poller.submitted(); - return getSimplePoller(poller); - }, - beginDeleteAndWait: async ( - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - options?: EdgeMachineJobsDeleteOptionalParams, - ) => { - return await $delete(context, resourceGroupName, edgeMachineName, jobsName, options); - }, - createOrUpdate: ( - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - resource: EdgeMachineJob, - options?: EdgeMachineJobsCreateOrUpdateOptionalParams, - ) => createOrUpdate(context, resourceGroupName, edgeMachineName, jobsName, resource, options), - beginCreateOrUpdate: async ( - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - resource: EdgeMachineJob, - options?: EdgeMachineJobsCreateOrUpdateOptionalParams, - ) => { - const poller = createOrUpdate( - context, - resourceGroupName, - edgeMachineName, - jobsName, - resource, - options, - ); - await poller.submitted(); - return getSimplePoller(poller); - }, - beginCreateOrUpdateAndWait: async ( - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - resource: EdgeMachineJob, - options?: EdgeMachineJobsCreateOrUpdateOptionalParams, - ) => { - return await createOrUpdate( - context, - resourceGroupName, - edgeMachineName, - jobsName, - resource, - options, - ); - }, - get: ( - resourceGroupName: string, - edgeMachineName: string, - jobsName: string, - options?: EdgeMachineJobsGetOptionalParams, - ) => get(context, resourceGroupName, edgeMachineName, jobsName, options), - }; -} - -export function _getEdgeMachineJobsOperations( - context: AzureStackHCIContext, -): EdgeMachineJobsOperations { - return { - ..._getEdgeMachineJobs(context), - }; -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/edgeMachines/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/edgeMachines/index.ts deleted file mode 100644 index 6c0e67077602..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/edgeMachines/index.ts +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext } from "../../api/azureStackHCIContext.js"; -import { - listBySubscription, - listByResourceGroup, - $delete, - update, - createOrUpdate, - get, -} from "../../api/edgeMachines/operations.js"; -import type { - EdgeMachinesListBySubscriptionOptionalParams, - EdgeMachinesListByResourceGroupOptionalParams, - EdgeMachinesDeleteOptionalParams, - EdgeMachinesUpdateOptionalParams, - EdgeMachinesCreateOrUpdateOptionalParams, - EdgeMachinesGetOptionalParams, -} from "../../api/edgeMachines/options.js"; -import type { EdgeMachine, EdgeMachinePatch } from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; -import type { SimplePollerLike } from "../../static-helpers/simplePollerHelpers.js"; -import { getSimplePoller } from "../../static-helpers/simplePollerHelpers.js"; -import type { PollerLike, OperationState } from "@azure/core-lro"; - -/** Interface representing a EdgeMachines operations. */ -export interface EdgeMachinesOperations { - /** List all edge machines in a subscription. */ - listBySubscription: ( - options?: EdgeMachinesListBySubscriptionOptionalParams, - ) => PagedAsyncIterableIterator; - /** List all edge machines in a resource group. */ - listByResourceGroup: ( - resourceGroupName: string, - options?: EdgeMachinesListByResourceGroupOptionalParams, - ) => PagedAsyncIterableIterator; - /** Delete an edge machine. */ - /** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ - delete: ( - resourceGroupName: string, - edgeMachineName: string, - options?: EdgeMachinesDeleteOptionalParams, - ) => PollerLike, void>; - /** @deprecated use delete instead */ - beginDelete: ( - resourceGroupName: string, - edgeMachineName: string, - options?: EdgeMachinesDeleteOptionalParams, - ) => Promise, void>>; - /** @deprecated use delete instead */ - beginDeleteAndWait: ( - resourceGroupName: string, - edgeMachineName: string, - options?: EdgeMachinesDeleteOptionalParams, - ) => Promise; - /** Update an edge machine. */ - update: ( - resourceGroupName: string, - edgeMachineName: string, - properties: EdgeMachinePatch, - options?: EdgeMachinesUpdateOptionalParams, - ) => PollerLike, EdgeMachine>; - /** @deprecated use update instead */ - beginUpdate: ( - resourceGroupName: string, - edgeMachineName: string, - properties: EdgeMachinePatch, - options?: EdgeMachinesUpdateOptionalParams, - ) => Promise, EdgeMachine>>; - /** @deprecated use update instead */ - beginUpdateAndWait: ( - resourceGroupName: string, - edgeMachineName: string, - properties: EdgeMachinePatch, - options?: EdgeMachinesUpdateOptionalParams, - ) => Promise; - /** Create or update an edge machine. */ - createOrUpdate: ( - resourceGroupName: string, - edgeMachineName: string, - resource: EdgeMachine, - options?: EdgeMachinesCreateOrUpdateOptionalParams, - ) => PollerLike, EdgeMachine>; - /** @deprecated use createOrUpdate instead */ - beginCreateOrUpdate: ( - resourceGroupName: string, - edgeMachineName: string, - resource: EdgeMachine, - options?: EdgeMachinesCreateOrUpdateOptionalParams, - ) => Promise, EdgeMachine>>; - /** @deprecated use createOrUpdate instead */ - beginCreateOrUpdateAndWait: ( - resourceGroupName: string, - edgeMachineName: string, - resource: EdgeMachine, - options?: EdgeMachinesCreateOrUpdateOptionalParams, - ) => Promise; - /** Get an edge machine. */ - get: ( - resourceGroupName: string, - edgeMachineName: string, - options?: EdgeMachinesGetOptionalParams, - ) => Promise; -} - -function _getEdgeMachines(context: AzureStackHCIContext) { - return { - listBySubscription: (options?: EdgeMachinesListBySubscriptionOptionalParams) => - listBySubscription(context, options), - listByResourceGroup: ( - resourceGroupName: string, - options?: EdgeMachinesListByResourceGroupOptionalParams, - ) => listByResourceGroup(context, resourceGroupName, options), - delete: ( - resourceGroupName: string, - edgeMachineName: string, - options?: EdgeMachinesDeleteOptionalParams, - ) => $delete(context, resourceGroupName, edgeMachineName, options), - beginDelete: async ( - resourceGroupName: string, - edgeMachineName: string, - options?: EdgeMachinesDeleteOptionalParams, - ) => { - const poller = $delete(context, resourceGroupName, edgeMachineName, options); - await poller.submitted(); - return getSimplePoller(poller); - }, - beginDeleteAndWait: async ( - resourceGroupName: string, - edgeMachineName: string, - options?: EdgeMachinesDeleteOptionalParams, - ) => { - return await $delete(context, resourceGroupName, edgeMachineName, options); - }, - update: ( - resourceGroupName: string, - edgeMachineName: string, - properties: EdgeMachinePatch, - options?: EdgeMachinesUpdateOptionalParams, - ) => update(context, resourceGroupName, edgeMachineName, properties, options), - beginUpdate: async ( - resourceGroupName: string, - edgeMachineName: string, - properties: EdgeMachinePatch, - options?: EdgeMachinesUpdateOptionalParams, - ) => { - const poller = update(context, resourceGroupName, edgeMachineName, properties, options); - await poller.submitted(); - return getSimplePoller(poller); - }, - beginUpdateAndWait: async ( - resourceGroupName: string, - edgeMachineName: string, - properties: EdgeMachinePatch, - options?: EdgeMachinesUpdateOptionalParams, - ) => { - return await update(context, resourceGroupName, edgeMachineName, properties, options); - }, - createOrUpdate: ( - resourceGroupName: string, - edgeMachineName: string, - resource: EdgeMachine, - options?: EdgeMachinesCreateOrUpdateOptionalParams, - ) => createOrUpdate(context, resourceGroupName, edgeMachineName, resource, options), - beginCreateOrUpdate: async ( - resourceGroupName: string, - edgeMachineName: string, - resource: EdgeMachine, - options?: EdgeMachinesCreateOrUpdateOptionalParams, - ) => { - const poller = createOrUpdate(context, resourceGroupName, edgeMachineName, resource, options); - await poller.submitted(); - return getSimplePoller(poller); - }, - beginCreateOrUpdateAndWait: async ( - resourceGroupName: string, - edgeMachineName: string, - resource: EdgeMachine, - options?: EdgeMachinesCreateOrUpdateOptionalParams, - ) => { - return await createOrUpdate(context, resourceGroupName, edgeMachineName, resource, options); - }, - get: ( - resourceGroupName: string, - edgeMachineName: string, - options?: EdgeMachinesGetOptionalParams, - ) => get(context, resourceGroupName, edgeMachineName, options), - }; -} - -export function _getEdgeMachinesOperations(context: AzureStackHCIContext): EdgeMachinesOperations { - return { - ..._getEdgeMachines(context), - }; -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/extensions/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/extensions/index.ts index 94cf019917be..e14fec8c63ef 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/extensions/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/classic/extensions/index.ts @@ -61,11 +61,6 @@ export interface ExtensionsOperations { options?: ExtensionsListByArcSettingOptionalParams, ) => PagedAsyncIterableIterator; /** Delete particular Arc Extension of HCI Cluster. */ - /** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ delete: ( resourceGroupName: string, clusterName: string, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/index.ts index ac77b812e47c..db36105c5131 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/classic/index.ts @@ -2,25 +2,15 @@ // Licensed under the MIT License. export type { ArcSettingsOperations } from "./arcSettings/index.js"; -export type { ClusterJobsOperations } from "./clusterJobs/index.js"; export type { ClustersOperations } from "./clusters/index.js"; export type { DeploymentSettingsOperations } from "./deploymentSettings/index.js"; -export type { DevicePoolsOperations } from "./devicePools/index.js"; export type { EdgeDeviceJobsOperations } from "./edgeDeviceJobs/index.js"; export type { EdgeDevicesOperations } from "./edgeDevices/index.js"; -export type { EdgeMachineJobsOperations } from "./edgeMachineJobs/index.js"; -export type { EdgeMachinesOperations } from "./edgeMachines/index.js"; export type { ExtensionsOperations } from "./extensions/index.js"; -export type { KubernetesVersionsOperations } from "./kubernetesVersions/index.js"; export type { OffersOperations } from "./offers/index.js"; export type { OperationsOperations } from "./operations/index.js"; -export type { OsImagesOperations } from "./osImages/index.js"; -export type { OwnershipVouchersOperations } from "./ownershipVouchers/index.js"; -export type { PlatformUpdatesOperations } from "./platformUpdates/index.js"; -export type { PublishersOperations } from "./publishers/index.js"; export type { SecuritySettingsOperations } from "./securitySettings/index.js"; export type { SkusOperations } from "./skus/index.js"; -export type { UpdateContentsOperations } from "./updateContents/index.js"; export type { UpdateRunsOperations } from "./updateRuns/index.js"; export type { UpdatesOperations } from "./updates/index.js"; export type { UpdateSummariesOperations } from "./updateSummaries/index.js"; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/kubernetesVersions/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/kubernetesVersions/index.ts deleted file mode 100644 index 7b8d0433876d..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/kubernetesVersions/index.ts +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext } from "../../api/azureStackHCIContext.js"; -import { listBySubscriptionLocationResource } from "../../api/kubernetesVersions/operations.js"; -import type { KubernetesVersionsListBySubscriptionLocationResourceOptionalParams } from "../../api/kubernetesVersions/options.js"; -import type { KubernetesVersion } from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; - -/** Interface representing a KubernetesVersions operations. */ -export interface KubernetesVersionsOperations { - /** List all kubernetes versions. */ - listBySubscriptionLocationResource: ( - location: string, - options?: KubernetesVersionsListBySubscriptionLocationResourceOptionalParams, - ) => PagedAsyncIterableIterator; -} - -function _getKubernetesVersions(context: AzureStackHCIContext) { - return { - listBySubscriptionLocationResource: ( - location: string, - options?: KubernetesVersionsListBySubscriptionLocationResourceOptionalParams, - ) => listBySubscriptionLocationResource(context, location, options), - }; -} - -export function _getKubernetesVersionsOperations( - context: AzureStackHCIContext, -): KubernetesVersionsOperations { - return { - ..._getKubernetesVersions(context), - }; -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/osImages/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/osImages/index.ts deleted file mode 100644 index b069f2280084..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/osImages/index.ts +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext } from "../../api/azureStackHCIContext.js"; -import { listBySubscriptionLocationResource, get } from "../../api/osImages/operations.js"; -import type { - OsImagesListBySubscriptionLocationResourceOptionalParams, - OsImagesGetOptionalParams, -} from "../../api/osImages/options.js"; -import type { OsImage } from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; - -/** Interface representing a OsImages operations. */ -export interface OsImagesOperations { - /** List all os images. */ - listBySubscriptionLocationResource: ( - location: string, - options?: OsImagesListBySubscriptionLocationResourceOptionalParams, - ) => PagedAsyncIterableIterator; - /** Get a os image. */ - get: ( - location: string, - osImageName: string, - options?: OsImagesGetOptionalParams, - ) => Promise; -} - -function _getOsImages(context: AzureStackHCIContext) { - return { - listBySubscriptionLocationResource: ( - location: string, - options?: OsImagesListBySubscriptionLocationResourceOptionalParams, - ) => listBySubscriptionLocationResource(context, location, options), - get: (location: string, osImageName: string, options?: OsImagesGetOptionalParams) => - get(context, location, osImageName, options), - }; -} - -export function _getOsImagesOperations(context: AzureStackHCIContext): OsImagesOperations { - return { - ..._getOsImages(context), - }; -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/ownershipVouchers/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/ownershipVouchers/index.ts deleted file mode 100644 index 705c4d68b679..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/ownershipVouchers/index.ts +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext } from "../../api/azureStackHCIContext.js"; -import { validate } from "../../api/ownershipVouchers/operations.js"; -import type { OwnershipVouchersValidateOptionalParams } from "../../api/ownershipVouchers/options.js"; -import type { - ValidateOwnershipVouchersRequest, - ValidateOwnershipVouchersResponse, -} from "../../models/models.js"; - -/** Interface representing a OwnershipVouchers operations. */ -export interface OwnershipVouchersOperations { - /** Validates ownership vouchers. */ - validate: ( - resourceGroupName: string, - location: string, - validationRequest: ValidateOwnershipVouchersRequest, - options?: OwnershipVouchersValidateOptionalParams, - ) => Promise; -} - -function _getOwnershipVouchers(context: AzureStackHCIContext) { - return { - validate: ( - resourceGroupName: string, - location: string, - validationRequest: ValidateOwnershipVouchersRequest, - options?: OwnershipVouchersValidateOptionalParams, - ) => validate(context, resourceGroupName, location, validationRequest, options), - }; -} - -export function _getOwnershipVouchersOperations( - context: AzureStackHCIContext, -): OwnershipVouchersOperations { - return { - ..._getOwnershipVouchers(context), - }; -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/platformUpdates/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/platformUpdates/index.ts deleted file mode 100644 index 2fb498de63e6..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/platformUpdates/index.ts +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext } from "../../api/azureStackHCIContext.js"; -import { list, get } from "../../api/platformUpdates/operations.js"; -import type { - PlatformUpdatesListOptionalParams, - PlatformUpdatesGetOptionalParams, -} from "../../api/platformUpdates/options.js"; -import type { PlatformUpdate } from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; - -/** Interface representing a PlatformUpdates operations. */ -export interface PlatformUpdatesOperations { - /** List all platform updates. */ - list: ( - location: string, - options?: PlatformUpdatesListOptionalParams, - ) => PagedAsyncIterableIterator; - /** Get a platform update. */ - get: ( - location: string, - platformUpdateName: string, - options?: PlatformUpdatesGetOptionalParams, - ) => Promise; -} - -function _getPlatformUpdates(context: AzureStackHCIContext) { - return { - list: (location: string, options?: PlatformUpdatesListOptionalParams) => - list(context, location, options), - get: ( - location: string, - platformUpdateName: string, - options?: PlatformUpdatesGetOptionalParams, - ) => get(context, location, platformUpdateName, options), - }; -} - -export function _getPlatformUpdatesOperations( - context: AzureStackHCIContext, -): PlatformUpdatesOperations { - return { - ..._getPlatformUpdates(context), - }; -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/publishers/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/publishers/index.ts deleted file mode 100644 index da3e062c52ff..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/publishers/index.ts +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext } from "../../api/azureStackHCIContext.js"; -import { listByCluster, get } from "../../api/publishers/operations.js"; -import type { - PublishersListByClusterOptionalParams, - PublishersGetOptionalParams, -} from "../../api/publishers/options.js"; -import type { Publisher } from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; - -/** Interface representing a Publishers operations. */ -export interface PublishersOperations { - /** List Publishers available for the HCI Cluster. */ - listByCluster: ( - resourceGroupName: string, - clusterName: string, - options?: PublishersListByClusterOptionalParams, - ) => PagedAsyncIterableIterator; - /** Get Publisher resource details of HCI Cluster. */ - get: ( - resourceGroupName: string, - clusterName: string, - publisherName: string, - options?: PublishersGetOptionalParams, - ) => Promise; -} - -function _getPublishers(context: AzureStackHCIContext) { - return { - listByCluster: ( - resourceGroupName: string, - clusterName: string, - options?: PublishersListByClusterOptionalParams, - ) => listByCluster(context, resourceGroupName, clusterName, options), - get: ( - resourceGroupName: string, - clusterName: string, - publisherName: string, - options?: PublishersGetOptionalParams, - ) => get(context, resourceGroupName, clusterName, publisherName, options), - }; -} - -export function _getPublishersOperations(context: AzureStackHCIContext): PublishersOperations { - return { - ..._getPublishers(context), - }; -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/securitySettings/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/securitySettings/index.ts index a636108fadc4..29966f0cd92a 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/securitySettings/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/classic/securitySettings/index.ts @@ -29,11 +29,6 @@ export interface SecuritySettingsOperations { options?: SecuritySettingsListByClustersOptionalParams, ) => PagedAsyncIterableIterator; /** Delete a SecuritySetting */ - /** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ delete: ( resourceGroupName: string, clusterName: string, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/updateContents/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/updateContents/index.ts deleted file mode 100644 index 8ec416e7db05..000000000000 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/updateContents/index.ts +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import type { AzureStackHCIContext } from "../../api/azureStackHCIContext.js"; -import { list, get } from "../../api/updateContents/operations.js"; -import type { - UpdateContentsListOptionalParams, - UpdateContentsGetOptionalParams, -} from "../../api/updateContents/options.js"; -import type { UpdateContent } from "../../models/models.js"; -import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js"; - -/** Interface representing a UpdateContents operations. */ -export interface UpdateContentsOperations { - /** List all update contents. */ - list: ( - location: string, - options?: UpdateContentsListOptionalParams, - ) => PagedAsyncIterableIterator; - /** Gets content for an update. */ - get: ( - location: string, - updateContentName: string, - options?: UpdateContentsGetOptionalParams, - ) => Promise; -} - -function _getUpdateContents(context: AzureStackHCIContext) { - return { - list: (location: string, options?: UpdateContentsListOptionalParams) => - list(context, location, options), - get: (location: string, updateContentName: string, options?: UpdateContentsGetOptionalParams) => - get(context, location, updateContentName, options), - }; -} - -export function _getUpdateContentsOperations( - context: AzureStackHCIContext, -): UpdateContentsOperations { - return { - ..._getUpdateContents(context), - }; -} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/updateRuns/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/updateRuns/index.ts index f49df0fa8022..c7032491949e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/updateRuns/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/classic/updateRuns/index.ts @@ -25,11 +25,6 @@ export interface UpdateRunsOperations { options?: UpdateRunsListOptionalParams, ) => PagedAsyncIterableIterator; /** Delete specified Update Run */ - /** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ delete: ( resourceGroupName: string, clusterName: string, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/updateSummaries/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/updateSummaries/index.ts index eb029472c315..5577411dfb57 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/updateSummaries/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/classic/updateSummaries/index.ts @@ -24,11 +24,6 @@ export interface UpdateSummariesOperations { options?: UpdateSummariesListOptionalParams, ) => PagedAsyncIterableIterator; /** Delete Update Summaries */ - /** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ delete: ( resourceGroupName: string, clusterName: string, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/classic/updates/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/classic/updates/index.ts index 16994068cc55..e018390b0f45 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/classic/updates/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/classic/updates/index.ts @@ -68,11 +68,6 @@ export interface UpdatesOperations { options?: UpdatesListOptionalParams, ) => PagedAsyncIterableIterator; /** Delete specified Update */ - /** - * @fixme delete is a reserved word that cannot be used as an operation name. - * Please add @clientName("clientName") or @clientName("", "javascript") - * to the operation to override the generated name. - */ delete: ( resourceGroupName: string, clusterName: string, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/index.ts index c4e5ef1496d4..746b9c69bc04 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/index.ts @@ -14,28 +14,13 @@ export type { SimplePollerLike } from "./static-helpers/simplePollerHelpers.js"; export type { RestorePollerOptions } from "./restorePollerHelpers.js"; export { restorePoller } from "./restorePollerHelpers.js"; export type { - KubernetesVersion, - KubernetesVersionProperties, - ProxyResource, - Resource, - SystemData, - CreatedByType, - ErrorResponse, - ErrorDetail, - ErrorAdditionalInfo, - PlatformUpdate, - PlatformUpdateProperties, - PlatformUpdateDetails, - PlatformPayload, - OsImage, - OsImageProperties, - UpdateContent, - UpdateContentProperties, - ContentPayload, Operation, OperationDisplay, Origin, ActionType, + ErrorResponse, + ErrorDetail, + ErrorAdditionalInfo, ArcSetting, ArcSettingProperties, ProvisioningState, @@ -46,6 +31,10 @@ export type { ServiceConfiguration, ServiceName, DefaultExtensionDetails, + ProxyResource, + Resource, + SystemData, + CreatedByType, ArcSettingsPatch, ArcSettingsPatchProperties, PasswordCredential, @@ -89,19 +78,12 @@ export type { SecretsLocationDetails, SecretsType, ClusterPattern, - ConfidentialVmProperties, - ConfidentialVmIntent, - ConfidentialVmStatus, - ClusterSdnProperties, - SdnIntegrationIntent, LocalAvailabilityZones, IdentityProvider, StorageType, ManagedServiceIdentity, ManagedServiceIdentityType, UserAssignedIdentity, - SdnProperties, - SdnStatus, TrackedResource, ClusterPatch, ClusterPatchProperties, @@ -112,8 +94,6 @@ export type { ClusterIdentityResponseProperties, SoftwareAssuranceChangeRequest, SoftwareAssuranceChangeRequestProperties, - ChangeRingRequest, - ChangeRingRequestProperties, LogCollectionRequest, LogCollectionRequestProperties, RemoteSupportRequest, @@ -210,9 +190,6 @@ export type { ArcExtensionState, HciValidationFailureDetail, ExtensionManagedBy, - ConfidentialVmProfile, - IgvmStatus, - IgvmStatusDetail, EdgeDeviceProperties, DeviceConfiguration, NicDetail, @@ -231,8 +208,6 @@ export type { ExtensionPatchProperties, ExtensionPatchParameters, ExtensionUpgradeParameters, - Publisher, - PublisherProperties, SecuritySetting, SecurityProperties, ComplianceAssignmentType, @@ -266,82 +241,18 @@ export type { ValidatedSolutionRecipeComponent, ValidatedSolutionRecipeComponentPayload, ValidatedSolutionRecipeComponentMetadata, - EdgeMachine, - EdgeMachineProperties, - EdgeMachineKind, - SiteDetails, - TargetDeviceConfiguration, - NetworkConfiguration, - NetworkAdapter, - IpAssignmentType, - IpAddressRange, - WebProxyConfiguration, - TimeConfiguration, - StorageConfiguration, - OwnershipVoucherDetails, - OwnerKeyType, - OwnershipVoucherValidationDetails, - OwnershipVoucherValidationStatus, - ProvisioningDetails, - OsProvisionProfile, - OSOperationType, - UserDetails, - SecretType, - EdgeMachineState, - EdgeMachineConnectivityStatus, - EdgeMachineReportedProperties, - EdgeMachineNetworkProfile, - EdgeMachineNicDetail, - OsProfile, - HardwareProfile, - StorageProfile, - OperationDetail, - EdgeMachinePatch, - EdgeMachineJob, - EdgeMachineJobProperties, - EdgeMachineJobPropertiesUnion, - EdgeMachineJobType, - EdgeMachineRemoteSupportJobProperties, - EdgeMachineRemoteSupportJobReportedProperties, - EdgeMachineRemoteSupportNodeSettings, - ProvisionOsJobProperties, - ProvisioningRequest, - ProvisioningOsType, - OnboardingConfiguration, - OnboardingResourceType, - ProvisionOsReportedProperties, - DownloadOsJobProperties, - DownloadRequest, - DownloadOsProfile, - EdgeMachineCollectLogJobProperties, - EdgeMachineCollectLogJobReportedProperties, - ValidateOwnershipVouchersRequest, - ValidateOwnershipVouchersResponse, - ClusterJob, - ClusterJobProperties, - ClusterJobPropertiesUnion, - HciJobType, - JobReportedProperties, - HciConfigureSdnIntegrationJobProperties, - HciConfigureCvmJobProperties, - DevicePool, - DevicePoolProperties, - DeviceDetail, - DevicePoolPatch, - ClaimDeviceRequest, - ReleaseDeviceRequest, UpdateSummaries, UpdateSummariesProperties, UpdateSummariesPropertiesState, } from "./models/index.js"; export { - KnownCreatedByType, KnownOrigin, KnownActionType, KnownProvisioningState, KnownArcSettingAggregateState, KnownNodeArcState, KnownServiceName, + KnownCreatedByType, KnownStatus, KnownConnectivityStatus, KnownSoftwareAssuranceStatus, @@ -359,13 +270,9 @@ export { KnownHardwareClass, KnownSecretsType, KnownClusterPattern, - KnownConfidentialVmIntent, - KnownConfidentialVmStatus, - KnownSdnIntegrationIntent, KnownIdentityProvider, KnownStorageType, KnownManagedServiceIdentityType, - KnownSdnStatus, KnownDeploymentMode, KnownOperationType, KnownVolumeType, @@ -382,7 +289,6 @@ export { KnownDeviceState, KnownArcExtensionState, KnownExtensionManagedBy, - KnownIgvmStatus, KnownExtensionAggregateState, KnownNodeExtensionState, KnownStatusLevelTypes, @@ -394,18 +300,6 @@ export { KnownHealthState, KnownSeverity, KnownAvailabilityType, - KnownEdgeMachineKind, - KnownIpAssignmentType, - KnownOwnerKeyType, - KnownOwnershipVoucherValidationStatus, - KnownOSOperationType, - KnownSecretType, - KnownEdgeMachineState, - KnownEdgeMachineConnectivityStatus, - KnownEdgeMachineJobType, - KnownProvisioningOsType, - KnownOnboardingResourceType, - KnownHciJobType, KnownUpdateSummariesPropertiesState, KnownVersions, } from "./models/index.js"; @@ -422,16 +316,9 @@ export type { ArcSettingsCreateOptionalParams, ArcSettingsGetOptionalParams, } from "./api/arcSettings/index.js"; -export type { - ClusterJobsListOptionalParams, - ClusterJobsDeleteOptionalParams, - ClusterJobsCreateOrUpdateOptionalParams, - ClusterJobsGetOptionalParams, -} from "./api/clusterJobs/index.js"; export type { ClustersConfigureRemoteSupportOptionalParams, ClustersTriggerLogCollectionOptionalParams, - ClustersChangeRingOptionalParams, ClustersExtendSoftwareAssuranceBenefitOptionalParams, ClustersCreateIdentityOptionalParams, ClustersUploadCertificateOptionalParams, @@ -449,16 +336,6 @@ export type { DeploymentSettingsCreateOrUpdateOptionalParams, DeploymentSettingsGetOptionalParams, } from "./api/deploymentSettings/index.js"; -export type { - DevicePoolsReleaseDevicesOptionalParams, - DevicePoolsClaimDevicesOptionalParams, - DevicePoolsListBySubscriptionOptionalParams, - DevicePoolsListByResourceGroupOptionalParams, - DevicePoolsUpdateOptionalParams, - DevicePoolsDeleteOptionalParams, - DevicePoolsCreateOrUpdateOptionalParams, - DevicePoolsGetOptionalParams, -} from "./api/devicePools/index.js"; export type { EdgeDeviceJobsListByEdgeDeviceOptionalParams, EdgeDeviceJobsDeleteOptionalParams, @@ -472,20 +349,6 @@ export type { EdgeDevicesCreateOrUpdateOptionalParams, EdgeDevicesGetOptionalParams, } from "./api/edgeDevices/index.js"; -export type { - EdgeMachineJobsListOptionalParams, - EdgeMachineJobsDeleteOptionalParams, - EdgeMachineJobsCreateOrUpdateOptionalParams, - EdgeMachineJobsGetOptionalParams, -} from "./api/edgeMachineJobs/index.js"; -export type { - EdgeMachinesListBySubscriptionOptionalParams, - EdgeMachinesListByResourceGroupOptionalParams, - EdgeMachinesDeleteOptionalParams, - EdgeMachinesUpdateOptionalParams, - EdgeMachinesCreateOrUpdateOptionalParams, - EdgeMachinesGetOptionalParams, -} from "./api/edgeMachines/index.js"; export type { ExtensionsUpgradeOptionalParams, ExtensionsListByArcSettingOptionalParams, @@ -494,26 +357,12 @@ export type { ExtensionsCreateOptionalParams, ExtensionsGetOptionalParams, } from "./api/extensions/index.js"; -export type { KubernetesVersionsListBySubscriptionLocationResourceOptionalParams } from "./api/kubernetesVersions/index.js"; export type { OffersListByClusterOptionalParams, OffersListByPublisherOptionalParams, OffersGetOptionalParams, } from "./api/offers/index.js"; export type { OperationsListOptionalParams } from "./api/operations/index.js"; -export type { - OsImagesListBySubscriptionLocationResourceOptionalParams, - OsImagesGetOptionalParams, -} from "./api/osImages/index.js"; -export type { OwnershipVouchersValidateOptionalParams } from "./api/ownershipVouchers/index.js"; -export type { - PlatformUpdatesListOptionalParams, - PlatformUpdatesGetOptionalParams, -} from "./api/platformUpdates/index.js"; -export type { - PublishersListByClusterOptionalParams, - PublishersGetOptionalParams, -} from "./api/publishers/index.js"; export type { SecuritySettingsListByClustersOptionalParams, SecuritySettingsDeleteOptionalParams, @@ -521,10 +370,6 @@ export type { SecuritySettingsGetOptionalParams, } from "./api/securitySettings/index.js"; export type { SkusListByOfferOptionalParams, SkusGetOptionalParams } from "./api/skus/index.js"; -export type { - UpdateContentsListOptionalParams, - UpdateContentsGetOptionalParams, -} from "./api/updateContents/index.js"; export type { UpdateRunsListOptionalParams, UpdateRunsDeleteOptionalParams, @@ -555,25 +400,15 @@ export type { } from "./api/validatedSolutionRecipes/index.js"; export type { ArcSettingsOperations, - ClusterJobsOperations, ClustersOperations, DeploymentSettingsOperations, - DevicePoolsOperations, EdgeDeviceJobsOperations, EdgeDevicesOperations, - EdgeMachineJobsOperations, - EdgeMachinesOperations, ExtensionsOperations, - KubernetesVersionsOperations, OffersOperations, OperationsOperations, - OsImagesOperations, - OwnershipVouchersOperations, - PlatformUpdatesOperations, - PublishersOperations, SecuritySettingsOperations, SkusOperations, - UpdateContentsOperations, UpdateRunsOperations, UpdatesOperations, UpdateSummariesOperations, diff --git a/sdk/azurestackhci/arm-azurestackhci/src/models/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/models/index.ts index c75a49c49d68..1ebc5c4cb830 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/models/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/models/index.ts @@ -2,28 +2,13 @@ // Licensed under the MIT License. export type { - KubernetesVersion, - KubernetesVersionProperties, - ProxyResource, - Resource, - SystemData, - CreatedByType, - ErrorResponse, - ErrorDetail, - ErrorAdditionalInfo, - PlatformUpdate, - PlatformUpdateProperties, - PlatformUpdateDetails, - PlatformPayload, - OsImage, - OsImageProperties, - UpdateContent, - UpdateContentProperties, - ContentPayload, Operation, OperationDisplay, Origin, ActionType, + ErrorResponse, + ErrorDetail, + ErrorAdditionalInfo, ArcSetting, ArcSettingProperties, ProvisioningState, @@ -34,6 +19,10 @@ export type { ServiceConfiguration, ServiceName, DefaultExtensionDetails, + ProxyResource, + Resource, + SystemData, + CreatedByType, ArcSettingsPatch, ArcSettingsPatchProperties, PasswordCredential, @@ -77,19 +66,12 @@ export type { SecretsLocationDetails, SecretsType, ClusterPattern, - ConfidentialVmProperties, - ConfidentialVmIntent, - ConfidentialVmStatus, - ClusterSdnProperties, - SdnIntegrationIntent, LocalAvailabilityZones, IdentityProvider, StorageType, ManagedServiceIdentity, ManagedServiceIdentityType, UserAssignedIdentity, - SdnProperties, - SdnStatus, TrackedResource, ClusterPatch, ClusterPatchProperties, @@ -100,8 +82,6 @@ export type { ClusterIdentityResponseProperties, SoftwareAssuranceChangeRequest, SoftwareAssuranceChangeRequestProperties, - ChangeRingRequest, - ChangeRingRequestProperties, LogCollectionRequest, LogCollectionRequestProperties, RemoteSupportRequest, @@ -198,9 +178,6 @@ export type { ArcExtensionState, HciValidationFailureDetail, ExtensionManagedBy, - ConfidentialVmProfile, - IgvmStatus, - IgvmStatusDetail, EdgeDeviceProperties, DeviceConfiguration, NicDetail, @@ -219,8 +196,6 @@ export type { ExtensionPatchProperties, ExtensionPatchParameters, ExtensionUpgradeParameters, - Publisher, - PublisherProperties, SecuritySetting, SecurityProperties, ComplianceAssignmentType, @@ -254,82 +229,18 @@ export type { ValidatedSolutionRecipeComponent, ValidatedSolutionRecipeComponentPayload, ValidatedSolutionRecipeComponentMetadata, - EdgeMachine, - EdgeMachineProperties, - EdgeMachineKind, - SiteDetails, - TargetDeviceConfiguration, - NetworkConfiguration, - NetworkAdapter, - IpAssignmentType, - IpAddressRange, - WebProxyConfiguration, - TimeConfiguration, - StorageConfiguration, - OwnershipVoucherDetails, - OwnerKeyType, - OwnershipVoucherValidationDetails, - OwnershipVoucherValidationStatus, - ProvisioningDetails, - OsProvisionProfile, - OSOperationType, - UserDetails, - SecretType, - EdgeMachineState, - EdgeMachineConnectivityStatus, - EdgeMachineReportedProperties, - EdgeMachineNetworkProfile, - EdgeMachineNicDetail, - OsProfile, - HardwareProfile, - StorageProfile, - OperationDetail, - EdgeMachinePatch, - EdgeMachineJob, - EdgeMachineJobProperties, - EdgeMachineJobPropertiesUnion, - EdgeMachineJobType, - EdgeMachineRemoteSupportJobProperties, - EdgeMachineRemoteSupportJobReportedProperties, - EdgeMachineRemoteSupportNodeSettings, - ProvisionOsJobProperties, - ProvisioningRequest, - ProvisioningOsType, - OnboardingConfiguration, - OnboardingResourceType, - ProvisionOsReportedProperties, - DownloadOsJobProperties, - DownloadRequest, - DownloadOsProfile, - EdgeMachineCollectLogJobProperties, - EdgeMachineCollectLogJobReportedProperties, - ValidateOwnershipVouchersRequest, - ValidateOwnershipVouchersResponse, - ClusterJob, - ClusterJobProperties, - ClusterJobPropertiesUnion, - HciJobType, - JobReportedProperties, - HciConfigureSdnIntegrationJobProperties, - HciConfigureCvmJobProperties, - DevicePool, - DevicePoolProperties, - DeviceDetail, - DevicePoolPatch, - ClaimDeviceRequest, - ReleaseDeviceRequest, UpdateSummaries, UpdateSummariesProperties, UpdateSummariesPropertiesState, } from "./models.js"; export { - KnownCreatedByType, KnownOrigin, KnownActionType, KnownProvisioningState, KnownArcSettingAggregateState, KnownNodeArcState, KnownServiceName, + KnownCreatedByType, KnownStatus, KnownConnectivityStatus, KnownSoftwareAssuranceStatus, @@ -347,13 +258,9 @@ export { KnownHardwareClass, KnownSecretsType, KnownClusterPattern, - KnownConfidentialVmIntent, - KnownConfidentialVmStatus, - KnownSdnIntegrationIntent, KnownIdentityProvider, KnownStorageType, KnownManagedServiceIdentityType, - KnownSdnStatus, KnownDeploymentMode, KnownOperationType, KnownVolumeType, @@ -370,7 +277,6 @@ export { KnownDeviceState, KnownArcExtensionState, KnownExtensionManagedBy, - KnownIgvmStatus, KnownExtensionAggregateState, KnownNodeExtensionState, KnownStatusLevelTypes, @@ -382,18 +288,6 @@ export { KnownHealthState, KnownSeverity, KnownAvailabilityType, - KnownEdgeMachineKind, - KnownIpAssignmentType, - KnownOwnerKeyType, - KnownOwnershipVoucherValidationStatus, - KnownOSOperationType, - KnownSecretType, - KnownEdgeMachineState, - KnownEdgeMachineConnectivityStatus, - KnownEdgeMachineJobType, - KnownProvisioningOsType, - KnownOnboardingResourceType, - KnownHciJobType, KnownUpdateSummariesPropertiesState, KnownVersions, } from "./models.js"; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/models/models.ts b/sdk/azurestackhci/arm-azurestackhci/src/models/models.ts index d40927b8cf79..56481ff3883e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/models/models.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/models/models.ts @@ -9,156 +9,107 @@ import { areAllPropsUndefined } from "../static-helpers/serialization/check-prop */ /* eslint-disable @typescript-eslint/naming-convention */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ -/** The response of a KubernetesVersion list operation. */ -export interface _KubernetesVersionListResult { - /** The KubernetesVersion items on this page */ - value: KubernetesVersion[]; +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export interface _OperationListResult { + /** The Operation items on this page */ + value: Operation[]; /** The link to the next page of items */ nextLink?: string; } -export function _kubernetesVersionListResultDeserializer(item: any): _KubernetesVersionListResult { +export function _operationListResultDeserializer(item: any): _OperationListResult { return { - value: kubernetesVersionArrayDeserializer(item["value"]), + value: operationArrayDeserializer(item["value"]), nextLink: item["nextLink"], }; } -export function kubernetesVersionArrayDeserializer(result: Array): any[] { +export function operationArrayDeserializer(result: Array): any[] { return result.map((item) => { - return kubernetesVersionDeserializer(item); + return operationDeserializer(item); }); } -/** Represents a kubernetes version resource. */ -export interface KubernetesVersion extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: KubernetesVersionProperties; -} - -export function kubernetesVersionDeserializer(item: any): KubernetesVersion { - return { - id: item["id"], - name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), - properties: !item["properties"] - ? item["properties"] - : kubernetesVersionPropertiesDeserializer(item["properties"]), - }; -} - -/** Represents properties of a kubernetes version. */ -export interface KubernetesVersionProperties { - /** Represents kubernetes version. */ - version: string; -} - -export function kubernetesVersionPropertiesDeserializer(item: any): KubernetesVersionProperties { - return { - version: item["version"], - }; -} - -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} - -export function proxyResourceSerializer(_item: ProxyResource): any { - return {}; +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { + /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ + readonly name?: string; + /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */ + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + display?: OperationDisplay; + /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ + readonly origin?: Origin; + /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ + readonly actionType?: ActionType; } -export function proxyResourceDeserializer(item: any): ProxyResource { +export function operationDeserializer(item: any): Operation { return { - id: item["id"], name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), + isDataAction: item["isDataAction"], + display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]), + origin: item["origin"], + actionType: item["actionType"], }; } -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ - readonly id?: string; - /** The name of the resource */ - readonly name?: string; - /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - readonly type?: string; - /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - readonly systemData?: SystemData; -} - -export function resourceSerializer(_item: Resource): any { - return {}; +/** Localized display information for an operation. */ +export interface OperationDisplay { + /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ + readonly provider?: string; + /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */ + readonly resource?: string; + /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */ + readonly operation?: string; + /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ + readonly description?: string; } -export function resourceDeserializer(item: any): Resource { +export function operationDisplayDeserializer(item: any): OperationDisplay { return { - id: item["id"], - name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), + provider: item["provider"], + resource: item["resource"], + operation: item["operation"], + description: item["description"], }; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; +/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ +export enum KnownOrigin { + /** Indicates the operation is initiated by a user. */ + User = "user", + /** Indicates the operation is initiated by a system. */ + System = "system", + /** Indicates the operation is initiated by a user or system. */ + UserSystem = "user,system", } -export function systemDataDeserializer(item: any): SystemData { - return { - createdBy: item["createdBy"], - createdByType: item["createdByType"], - createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]), - lastModifiedBy: item["lastModifiedBy"], - lastModifiedByType: item["lastModifiedByType"], - lastModifiedAt: !item["lastModifiedAt"] - ? item["lastModifiedAt"] - : new Date(item["lastModifiedAt"]), - }; -} +/** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" \ + * {@link KnownOrigin} can be used interchangeably with Origin, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **user**: Indicates the operation is initiated by a user. \ + * **system**: Indicates the operation is initiated by a system. \ + * **user,system**: Indicates the operation is initiated by a user or system. + */ +export type Origin = string; -/** The kind of entity that created the resource. */ -export enum KnownCreatedByType { - /** The entity was created by a user. */ - User = "User", - /** The entity was created by an application. */ - Application = "Application", - /** The entity was created by a managed identity. */ - ManagedIdentity = "ManagedIdentity", - /** The entity was created by a key. */ - Key = "Key", +/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ +export enum KnownActionType { + /** Actions are for internal-only APIs. */ + Internal = "Internal", } /** - * The kind of entity that created the resource. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. \ + * {@link KnownActionType} can be used interchangeably with ActionType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **User**: The entity was created by a user. \ - * **Application**: The entity was created by an application. \ - * **ManagedIdentity**: The entity was created by a managed identity. \ - * **Key**: The entity was created by a key. + * **Internal**: Actions are for internal-only APIs. */ -export type CreatedByType = string; +export type ActionType = string; /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */ export interface ErrorResponse { @@ -225,13 +176,46 @@ export function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo }; } -/** Represents a platform update resource. */ -export interface PlatformUpdate extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: PlatformUpdateProperties; +/** ArcSetting details. */ +export interface ArcSetting extends ProxyResource { + /** Provisioning state of the ArcSetting proxy resource. */ + readonly provisioningState?: ProvisioningState; + /** The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources. */ + arcInstanceResourceGroup?: string; + /** App id of arc AAD identity. */ + arcApplicationClientId?: string; + /** Tenant id of arc AAD identity. */ + arcApplicationTenantId?: string; + /** Object id of arc AAD service principal. */ + arcServicePrincipalObjectId?: string; + /** Object id of arc AAD identity. */ + arcApplicationObjectId?: string; + /** Aggregate state of Arc agent across the nodes in this HCI cluster. */ + readonly aggregateState?: ArcSettingAggregateState; + /** State of Arc agent in each of the nodes. */ + readonly perNodeDetails?: PerNodeState[]; + /** contains connectivity related configuration for ARC resources */ + connectivityProperties?: ArcConnectivityProperties; + /** Properties for each of the default extensions category */ + readonly defaultExtensions?: DefaultExtensionDetails[]; +} + +export function arcSettingSerializer(item: ArcSetting): any { + return { + properties: areAllPropsUndefined(item, [ + "arcInstanceResourceGroup", + "arcApplicationClientId", + "arcApplicationTenantId", + "arcServicePrincipalObjectId", + "arcApplicationObjectId", + "connectivityProperties", + ]) + ? undefined + : _arcSettingPropertiesSerializer(item), + }; } -export function platformUpdateDeserializer(item: any): PlatformUpdate { +export function arcSettingDeserializer(item: any): ArcSetting { return { id: item["id"], name: item["name"], @@ -239,870 +223,576 @@ export function platformUpdateDeserializer(item: any): PlatformUpdate { systemData: !item["systemData"] ? item["systemData"] : systemDataDeserializer(item["systemData"]), - properties: !item["properties"] + ...(!item["properties"] ? item["properties"] - : platformUpdatePropertiesDeserializer(item["properties"]), - }; -} - -/** Represents properties of a platform update resource. */ -export interface PlatformUpdateProperties { - /** Represents applicable platform updates. */ - platformUpdateDetails: PlatformUpdateDetails[]; -} - -export function platformUpdatePropertiesDeserializer(item: any): PlatformUpdateProperties { - return { - platformUpdateDetails: platformUpdateDetailsArrayDeserializer(item["platformUpdateDetails"]), + : _arcSettingPropertiesDeserializer(item["properties"])), }; } -export function platformUpdateDetailsArrayDeserializer( - result: Array, -): any[] { - return result.map((item) => { - return platformUpdateDetailsDeserializer(item); - }); -} - -/** Represents details of a specific platform update. */ -export interface PlatformUpdateDetails { - /** Represents validated solution recipe version of a platform update. */ - validatedSolutionRecipeVersion?: string; - /** Represents version of a platform update. */ - platformVersion?: string; - /** Represents the platform payloads of a platform update. */ - platformPayloads: PlatformPayload[]; +/** ArcSetting properties. */ +export interface ArcSettingProperties { + /** Provisioning state of the ArcSetting proxy resource. */ + readonly provisioningState?: ProvisioningState; + /** The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources. */ + arcInstanceResourceGroup?: string; + /** App id of arc AAD identity. */ + arcApplicationClientId?: string; + /** Tenant id of arc AAD identity. */ + arcApplicationTenantId?: string; + /** Object id of arc AAD service principal. */ + arcServicePrincipalObjectId?: string; + /** Object id of arc AAD identity. */ + arcApplicationObjectId?: string; + /** Aggregate state of Arc agent across the nodes in this HCI cluster. */ + readonly aggregateState?: ArcSettingAggregateState; + /** State of Arc agent in each of the nodes. */ + readonly perNodeDetails?: PerNodeState[]; + /** contains connectivity related configuration for ARC resources */ + connectivityProperties?: ArcConnectivityProperties; + /** Properties for each of the default extensions category */ + readonly defaultExtensions?: DefaultExtensionDetails[]; } -export function platformUpdateDetailsDeserializer(item: any): PlatformUpdateDetails { +export function arcSettingPropertiesSerializer(item: ArcSettingProperties): any { return { - validatedSolutionRecipeVersion: item["validatedSolutionRecipeVersion"], - platformVersion: item["platformVersion"], - platformPayloads: platformPayloadArrayDeserializer(item["platformPayloads"]), + arcInstanceResourceGroup: item["arcInstanceResourceGroup"], + arcApplicationClientId: item["arcApplicationClientId"], + arcApplicationTenantId: item["arcApplicationTenantId"], + arcServicePrincipalObjectId: item["arcServicePrincipalObjectId"], + arcApplicationObjectId: item["arcApplicationObjectId"], + connectivityProperties: !item["connectivityProperties"] + ? item["connectivityProperties"] + : arcConnectivityPropertiesSerializer(item["connectivityProperties"]), }; } -export function platformPayloadArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return platformPayloadDeserializer(item); - }); -} - -/** Represents details of a specific platform update payload. */ -export interface PlatformPayload { - /** Represents url of a platform update payload. */ - payloadUrl?: string; - /** Represents hash of a platform update payload. */ - payloadHash?: string; - /** Represents size in bytes of a platform update payload. */ - payloadPackageSizeInBytes?: string; - /** Represents identifier of a platform update payload. */ - payloadIdentifier?: string; -} - -export function platformPayloadDeserializer(item: any): PlatformPayload { +export function arcSettingPropertiesDeserializer(item: any): ArcSettingProperties { return { - payloadUrl: item["payloadUrl"], - payloadHash: item["payloadHash"], - payloadPackageSizeInBytes: item["payloadPackageSizeInBytes"], - payloadIdentifier: item["payloadIdentifier"], - }; + provisioningState: item["provisioningState"], + arcInstanceResourceGroup: item["arcInstanceResourceGroup"], + arcApplicationClientId: item["arcApplicationClientId"], + arcApplicationTenantId: item["arcApplicationTenantId"], + arcServicePrincipalObjectId: item["arcServicePrincipalObjectId"], + arcApplicationObjectId: item["arcApplicationObjectId"], + aggregateState: item["aggregateState"], + perNodeDetails: !item["perNodeDetails"] + ? item["perNodeDetails"] + : perNodeStateArrayDeserializer(item["perNodeDetails"]), + connectivityProperties: !item["connectivityProperties"] + ? item["connectivityProperties"] + : arcConnectivityPropertiesDeserializer(item["connectivityProperties"]), + defaultExtensions: !item["defaultExtensions"] + ? item["defaultExtensions"] + : defaultExtensionDetailsArrayDeserializer(item["defaultExtensions"]), + }; } -/** The response of a PlatformUpdate list operation. */ -export interface _PlatformUpdateListResult { - /** The PlatformUpdate items on this page */ - value: PlatformUpdate[]; - /** The link to the next page of items */ - nextLink?: string; +/** Provisioning state of the ArcSetting proxy resource. */ +export enum KnownProvisioningState { + /** The provisioning state is not specified. */ + NotSpecified = "NotSpecified", + /** An error occurred during provisioning. */ + Error = "Error", + /** Provisioning completed successfully. */ + Succeeded = "Succeeded", + /** Provisioning failed. */ + Failed = "Failed", + /** Provisioning was canceled. */ + Canceled = "Canceled", + /** The resource is connected. */ + Connected = "Connected", + /** The resource is disconnected. */ + Disconnected = "Disconnected", + /** The resource has been deleted. */ + Deleted = "Deleted", + /** The resource is being created. */ + Creating = "Creating", + /** The resource is being updated. */ + Updating = "Updating", + /** The resource is being deleted. */ + Deleting = "Deleting", + /** The resource is being moved. */ + Moving = "Moving", + /** Provisioning partially succeeded. */ + PartiallySucceeded = "PartiallySucceeded", + /** The resource is partially connected. */ + PartiallyConnected = "PartiallyConnected", + /** Provisioning is in progress. */ + InProgress = "InProgress", + /** Provisioning request has been accepted. */ + Accepted = "Accepted", + /** The resource is currently provisioning. */ + Provisioning = "Provisioning", + /** The resource is being disabled. */ + DisableInProgress = "DisableInProgress", } -export function _platformUpdateListResultDeserializer(item: any): _PlatformUpdateListResult { - return { - value: platformUpdateArrayDeserializer(item["value"]), - nextLink: item["nextLink"], - }; +/** + * Provisioning state of the ArcSetting proxy resource. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotSpecified**: The provisioning state is not specified. \ + * **Error**: An error occurred during provisioning. \ + * **Succeeded**: Provisioning completed successfully. \ + * **Failed**: Provisioning failed. \ + * **Canceled**: Provisioning was canceled. \ + * **Connected**: The resource is connected. \ + * **Disconnected**: The resource is disconnected. \ + * **Deleted**: The resource has been deleted. \ + * **Creating**: The resource is being created. \ + * **Updating**: The resource is being updated. \ + * **Deleting**: The resource is being deleted. \ + * **Moving**: The resource is being moved. \ + * **PartiallySucceeded**: Provisioning partially succeeded. \ + * **PartiallyConnected**: The resource is partially connected. \ + * **InProgress**: Provisioning is in progress. \ + * **Accepted**: Provisioning request has been accepted. \ + * **Provisioning**: The resource is currently provisioning. \ + * **DisableInProgress**: The resource is being disabled. + */ +export type ProvisioningState = string; + +/** Aggregate state of Arc agent across the nodes in this HCI cluster. */ +export enum KnownArcSettingAggregateState { + /** The aggregate state is not specified. */ + NotSpecified = "NotSpecified", + /** An error occurred in the aggregate state. */ + Error = "Error", + /** The operation successfully completed across all nodes. */ + Succeeded = "Succeeded", + /** The operation was canceled across the nodes. */ + Canceled = "Canceled", + /** The operation failed on all or most nodes. */ + Failed = "Failed", + /** All nodes are connected. */ + Connected = "Connected", + /** All nodes are disconnected. */ + Disconnected = "Disconnected", + /** The Arc agent has been deleted from all nodes. */ + Deleted = "Deleted", + /** The Arc agent is being created across the nodes. */ + Creating = "Creating", + /** The Arc agent is being updated across the nodes. */ + Updating = "Updating", + /** The Arc agent is being deleted across the nodes. */ + Deleting = "Deleting", + /** The Arc agent is being moved across the nodes. */ + Moving = "Moving", + /** The operation succeeded on some nodes. */ + PartiallySucceeded = "PartiallySucceeded", + /** Some nodes are connected, others are not. */ + PartiallyConnected = "PartiallyConnected", + /** The operation is currently in progress across the nodes. */ + InProgress = "InProgress", + /** The operation has been accepted and is pending execution. */ + Accepted = "Accepted", + /** The Arc agent is being provisioned across the nodes. */ + Provisioning = "Provisioning", + /** The Arc agent is being disabled across the nodes. */ + DisableInProgress = "DisableInProgress", } -export function platformUpdateArrayDeserializer(result: Array): any[] { +/** + * Aggregate state of Arc agent across the nodes in this HCI cluster. \ + * {@link KnownArcSettingAggregateState} can be used interchangeably with ArcSettingAggregateState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotSpecified**: The aggregate state is not specified. \ + * **Error**: An error occurred in the aggregate state. \ + * **Succeeded**: The operation successfully completed across all nodes. \ + * **Canceled**: The operation was canceled across the nodes. \ + * **Failed**: The operation failed on all or most nodes. \ + * **Connected**: All nodes are connected. \ + * **Disconnected**: All nodes are disconnected. \ + * **Deleted**: The Arc agent has been deleted from all nodes. \ + * **Creating**: The Arc agent is being created across the nodes. \ + * **Updating**: The Arc agent is being updated across the nodes. \ + * **Deleting**: The Arc agent is being deleted across the nodes. \ + * **Moving**: The Arc agent is being moved across the nodes. \ + * **PartiallySucceeded**: The operation succeeded on some nodes. \ + * **PartiallyConnected**: Some nodes are connected, others are not. \ + * **InProgress**: The operation is currently in progress across the nodes. \ + * **Accepted**: The operation has been accepted and is pending execution. \ + * **Provisioning**: The Arc agent is being provisioned across the nodes. \ + * **DisableInProgress**: The Arc agent is being disabled across the nodes. + */ +export type ArcSettingAggregateState = string; + +export function perNodeStateArrayDeserializer(result: Array): any[] { return result.map((item) => { - return platformUpdateDeserializer(item); + return perNodeStateDeserializer(item); }); } -/** Represents a os image resource. */ -export interface OsImage extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: OsImageProperties; +/** Status of Arc agent for a particular node in HCI Cluster. */ +export interface PerNodeState { + /** Name of the Node in HCI Cluster */ + readonly name?: string; + /** Fully qualified resource ID for the Arc agent of this node. */ + readonly arcInstance?: string; + /** The service principal id of the arc for server node */ + readonly arcNodeServicePrincipalObjectId?: string; + /** State of the Arc agent in this node. Indicates the current lifecycle status of the agent, such as whether it's being provisioned, connected, updated, or has encountered an error. */ + readonly state?: NodeArcState; } -export function osImageDeserializer(item: any): OsImage { +export function perNodeStateDeserializer(item: any): PerNodeState { return { - id: item["id"], name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), - properties: !item["properties"] - ? item["properties"] - : osImagePropertiesDeserializer(item["properties"]), + arcInstance: item["arcInstance"], + arcNodeServicePrincipalObjectId: item["arcNodeServicePrincipalObjectId"], + state: item["state"], }; } -/** Represents properties of a os image resource. */ -export interface OsImageProperties { - /** Represents validated solution recipe version of a os image. */ - validatedSolutionRecipeVersion?: string; - /** Represents composed image version of a os image. */ - composedImageVersion?: string; - /** Represents composed image iso download url of a os image. */ - composedImageIsoUrl?: string; - /** Represents composed image iso hash of a os image. */ - composedImageIsoHash?: string; +/** State of the Arc agent in this node. Indicates the current lifecycle status of the agent, such as whether it's being provisioned, connected, updated, or has encountered an error. */ +export enum KnownNodeArcState { + /** The state is not specified. */ + NotSpecified = "NotSpecified", + /** An error occurred during the agent's lifecycle. */ + Error = "Error", + /** The operation completed successfully. */ + Succeeded = "Succeeded", + /** The operation was canceled before completion. */ + Canceled = "Canceled", + /** The operation failed. */ + Failed = "Failed", + /** The Arc agent is connected on this node. */ + Connected = "Connected", + /** The Arc agent is disconnected on this node. */ + Disconnected = "Disconnected", + /** The Arc agent has been deleted from this node. */ + Deleted = "Deleted", + /** The Arc agent is being created on this node. */ + Creating = "Creating", + /** The Arc agent is being updated on this node. */ + Updating = "Updating", + /** The Arc agent is being deleted from this node. */ + Deleting = "Deleting", + /** The Arc agent is being moved on this node. */ + Moving = "Moving", + /** The operation partially succeeded. */ + PartiallySucceeded = "PartiallySucceeded", + /** The Arc agent is partially connected on this node. */ + PartiallyConnected = "PartiallyConnected", + /** The operation is currently in progress. */ + InProgress = "InProgress", + /** The operation has been accepted and is pending execution. */ + Accepted = "Accepted", + /** The Arc agent is currently being provisioned on this node. */ + Provisioning = "Provisioning", + /** The Arc agent is in the process of being disabled on this node. */ + DisableInProgress = "DisableInProgress", } -export function osImagePropertiesDeserializer(item: any): OsImageProperties { - return { - validatedSolutionRecipeVersion: item["validatedSolutionRecipeVersion"], - composedImageVersion: item["composedImageVersion"], - composedImageIsoUrl: item["composedImageIsoUrl"], - composedImageIsoHash: item["composedImageIsoHash"], - }; -} +/** + * State of the Arc agent in this node. Indicates the current lifecycle status of the agent, such as whether it's being provisioned, connected, updated, or has encountered an error. \ + * {@link KnownNodeArcState} can be used interchangeably with NodeArcState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotSpecified**: The state is not specified. \ + * **Error**: An error occurred during the agent's lifecycle. \ + * **Succeeded**: The operation completed successfully. \ + * **Canceled**: The operation was canceled before completion. \ + * **Failed**: The operation failed. \ + * **Connected**: The Arc agent is connected on this node. \ + * **Disconnected**: The Arc agent is disconnected on this node. \ + * **Deleted**: The Arc agent has been deleted from this node. \ + * **Creating**: The Arc agent is being created on this node. \ + * **Updating**: The Arc agent is being updated on this node. \ + * **Deleting**: The Arc agent is being deleted from this node. \ + * **Moving**: The Arc agent is being moved on this node. \ + * **PartiallySucceeded**: The operation partially succeeded. \ + * **PartiallyConnected**: The Arc agent is partially connected on this node. \ + * **InProgress**: The operation is currently in progress. \ + * **Accepted**: The operation has been accepted and is pending execution. \ + * **Provisioning**: The Arc agent is currently being provisioned on this node. \ + * **DisableInProgress**: The Arc agent is in the process of being disabled on this node. + */ +export type NodeArcState = string; -/** The response of a OsImage list operation. */ -export interface _OsImageListResult { - /** The OsImage items on this page */ - value: OsImage[]; - /** The link to the next page of items */ - nextLink?: string; +/** Connectivity related configuration required by arc server. */ +export interface ArcConnectivityProperties { + /** True indicates ARC connectivity is enabled */ + enabled?: boolean; + /** Service configurations associated with the connectivity resource. They are only processed by the server if 'enabled' property is set to 'true'. */ + serviceConfigurations?: ServiceConfiguration[]; } -export function _osImageListResultDeserializer(item: any): _OsImageListResult { +export function arcConnectivityPropertiesSerializer(item: ArcConnectivityProperties): any { return { - value: osImageArrayDeserializer(item["value"]), - nextLink: item["nextLink"], + enabled: item["enabled"], + serviceConfigurations: !item["serviceConfigurations"] + ? item["serviceConfigurations"] + : serviceConfigurationArraySerializer(item["serviceConfigurations"]), }; } -export function osImageArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return osImageDeserializer(item); - }); -} - -/** Represents a update content. */ -export interface UpdateContent extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: UpdateContentProperties; -} - -export function updateContentDeserializer(item: any): UpdateContent { +export function arcConnectivityPropertiesDeserializer(item: any): ArcConnectivityProperties { return { - id: item["id"], - name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), - properties: !item["properties"] - ? item["properties"] - : updateContentPropertiesDeserializer(item["properties"]), + enabled: item["enabled"], + serviceConfigurations: !item["serviceConfigurations"] + ? item["serviceConfigurations"] + : serviceConfigurationArrayDeserializer(item["serviceConfigurations"]), }; } -/** Represents properties of a update content resource. */ -export interface UpdateContentProperties { - /** Represents the payloads of a update content resource. */ - updatePayloads: ContentPayload[]; -} - -export function updateContentPropertiesDeserializer(item: any): UpdateContentProperties { - return { - updatePayloads: contentPayloadArrayDeserializer(item["updatePayloads"]), - }; +export function serviceConfigurationArraySerializer(result: Array): any[] { + return result.map((item) => { + return serviceConfigurationSerializer(item); + }); } -export function contentPayloadArrayDeserializer(result: Array): any[] { +export function serviceConfigurationArrayDeserializer(result: Array): any[] { return result.map((item) => { - return contentPayloadDeserializer(item); + return serviceConfigurationDeserializer(item); }); } -/** Represents details of a specific update content payload. */ -export interface ContentPayload { - /** Represents url of a update payload. */ - url?: string; - /** Represents hash of a update payload. */ - hash?: string; - /** Represents hash algorithm of a update payload. */ - hashAlgorithm?: string; - /** Represents identifier of a update payload. */ - identifier?: string; - /** Represents size in bytes of a update payload. */ - packageSizeInBytes?: string; - /** Represents the group of a update payload. */ - group?: string; - /** Represents the file name of a update payload. */ - fileName?: string; +/** Service configuration details */ +export interface ServiceConfiguration { + /** Specifies the name of the service associated with the update or operation. This helps identify which system component or tool is involved. */ + serviceName: ServiceName; + /** The port on which service is enabled. */ + port: number; +} + +export function serviceConfigurationSerializer(item: ServiceConfiguration): any { + return { serviceName: item["serviceName"], port: item["port"] }; } -export function contentPayloadDeserializer(item: any): ContentPayload { +export function serviceConfigurationDeserializer(item: any): ServiceConfiguration { return { - url: item["url"], - hash: item["hash"], - hashAlgorithm: item["hashAlgorithm"], - identifier: item["identifier"], - packageSizeInBytes: item["packageSizeInBytes"], - group: item["group"], - fileName: item["fileName"], + serviceName: item["serviceName"], + port: item["port"], }; } -/** The response of a UpdateContent list operation. */ -export interface _UpdateContentListResult { - /** The UpdateContent items on this page */ - value: UpdateContent[]; - /** The link to the next page of items */ - nextLink?: string; +/** Specifies the name of the service associated with the update or operation. This helps identify which system component or tool is involved. */ +export enum KnownServiceName { + /** Windows Admin Center (WAC) is the service associated with this operation. */ + WAC = "WAC", } -export function _updateContentListResultDeserializer(item: any): _UpdateContentListResult { - return { - value: updateContentArrayDeserializer(item["value"]), - nextLink: item["nextLink"], - }; -} +/** + * Specifies the name of the service associated with the update or operation. This helps identify which system component or tool is involved. \ + * {@link KnownServiceName} can be used interchangeably with ServiceName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **WAC**: Windows Admin Center (WAC) is the service associated with this operation. + */ +export type ServiceName = string; -export function updateContentArrayDeserializer(result: Array): any[] { +export function defaultExtensionDetailsArrayDeserializer( + result: Array, +): any[] { return result.map((item) => { - return updateContentDeserializer(item); + return defaultExtensionDetailsDeserializer(item); }); } -/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ -export interface _OperationListResult { - /** The Operation items on this page */ - value: Operation[]; - /** The link to the next page of items */ - nextLink?: string; +/** Properties for a particular default extension category. */ +export interface DefaultExtensionDetails { + /** Default extension category */ + readonly category?: string; + /** Consent time for extension category */ + readonly consentTime?: Date; } -export function _operationListResultDeserializer(item: any): _OperationListResult { +export function defaultExtensionDetailsDeserializer(item: any): DefaultExtensionDetails { return { - value: operationArrayDeserializer(item["value"]), - nextLink: item["nextLink"], + category: item["category"], + consentTime: !item["consentTime"] ? item["consentTime"] : new Date(item["consentTime"]), }; } -export function operationArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return operationDeserializer(item); - }); -} +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} -/** Details of a REST API operation, returned from the Resource Provider Operations API */ -export interface Operation { - /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ - readonly name?: string; - /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */ - readonly isDataAction?: boolean; - /** Localized display information for this particular operation. */ - display?: OperationDisplay; - /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ - readonly origin?: Origin; - /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ - readonly actionType?: ActionType; +export function proxyResourceSerializer(_item: ProxyResource): any { + return {}; } -export function operationDeserializer(item: any): Operation { +export function proxyResourceDeserializer(item: any): ProxyResource { return { + id: item["id"], name: item["name"], - isDataAction: item["isDataAction"], - display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]), - origin: item["origin"], - actionType: item["actionType"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), }; } -/** Localized display information for an operation. */ -export interface OperationDisplay { - /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */ - readonly provider?: string; - /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */ - readonly resource?: string; - /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */ - readonly operation?: string; - /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ - readonly description?: string; +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ + readonly id?: string; + /** The name of the resource */ + readonly name?: string; + /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ + readonly type?: string; + /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */ + readonly systemData?: SystemData; } -export function operationDisplayDeserializer(item: any): OperationDisplay { +export function resourceSerializer(_item: Resource): any { + return {}; +} + +export function resourceDeserializer(item: any): Resource { return { - provider: item["provider"], - resource: item["resource"], - operation: item["operation"], - description: item["description"], + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), }; } -/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */ -export enum KnownOrigin { - /** Indicates the operation is initiated by a user. */ - User = "user", - /** Indicates the operation is initiated by a system. */ - System = "system", - /** Indicates the operation is initiated by a user or system. */ - UserSystem = "user,system", +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; } -/** - * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" \ - * {@link KnownOrigin} can be used interchangeably with Origin, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **user**: Indicates the operation is initiated by a user. \ - * **system**: Indicates the operation is initiated by a system. \ - * **user,system**: Indicates the operation is initiated by a user or system. - */ -export type Origin = string; +export function systemDataDeserializer(item: any): SystemData { + return { + createdBy: item["createdBy"], + createdByType: item["createdByType"], + createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]), + lastModifiedBy: item["lastModifiedBy"], + lastModifiedByType: item["lastModifiedByType"], + lastModifiedAt: !item["lastModifiedAt"] + ? item["lastModifiedAt"] + : new Date(item["lastModifiedAt"]), + }; +} -/** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ -export enum KnownActionType { - /** Actions are for internal-only APIs. */ - Internal = "Internal", +/** The kind of entity that created the resource. */ +export enum KnownCreatedByType { + /** The entity was created by a user. */ + User = "User", + /** The entity was created by an application. */ + Application = "Application", + /** The entity was created by a managed identity. */ + ManagedIdentity = "ManagedIdentity", + /** The entity was created by a key. */ + Key = "Key", } /** - * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. \ - * {@link KnownActionType} can be used interchangeably with ActionType, + * The kind of entity that created the resource. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Internal**: Actions are for internal-only APIs. + * **User**: The entity was created by a user. \ + * **Application**: The entity was created by an application. \ + * **ManagedIdentity**: The entity was created by a managed identity. \ + * **Key**: The entity was created by a key. */ -export type ActionType = string; +export type CreatedByType = string; -/** ArcSetting details. */ -export interface ArcSetting extends ProxyResource { - /** Provisioning state of the ArcSetting proxy resource. */ - readonly provisioningState?: ProvisioningState; - /** The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources. */ - arcInstanceResourceGroup?: string; - /** App id of arc AAD identity. */ - arcApplicationClientId?: string; - /** Tenant id of arc AAD identity. */ - arcApplicationTenantId?: string; - /** Object id of arc AAD service principal. */ - arcServicePrincipalObjectId?: string; - /** Object id of arc AAD identity. */ - arcApplicationObjectId?: string; - /** Aggregate state of Arc agent across the nodes in this HCI cluster. */ - readonly aggregateState?: ArcSettingAggregateState; - /** State of Arc agent in each of the nodes. */ - readonly perNodeDetails?: PerNodeState[]; +/** ArcSetting details to update. */ +export interface ArcSettingsPatch { + /** Resource tags. */ + tags?: Record; /** contains connectivity related configuration for ARC resources */ connectivityProperties?: ArcConnectivityProperties; - /** Properties for each of the default extensions category */ - readonly defaultExtensions?: DefaultExtensionDetails[]; } -export function arcSettingSerializer(item: ArcSetting): any { +export function arcSettingsPatchSerializer(item: ArcSettingsPatch): any { return { - properties: areAllPropsUndefined(item, [ - "arcInstanceResourceGroup", - "arcApplicationClientId", - "arcApplicationTenantId", - "arcServicePrincipalObjectId", - "arcApplicationObjectId", - "connectivityProperties", - ]) + tags: item["tags"], + properties: areAllPropsUndefined(item, ["connectivityProperties"]) ? undefined - : _arcSettingPropertiesSerializer(item), - }; -} - -export function arcSettingDeserializer(item: any): ArcSetting { - return { - id: item["id"], - name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), - ...(!item["properties"] - ? item["properties"] - : _arcSettingPropertiesDeserializer(item["properties"])), + : _arcSettingsPatchPropertiesSerializer(item), }; } -/** ArcSetting properties. */ -export interface ArcSettingProperties { - /** Provisioning state of the ArcSetting proxy resource. */ - readonly provisioningState?: ProvisioningState; - /** The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources. */ - arcInstanceResourceGroup?: string; - /** App id of arc AAD identity. */ - arcApplicationClientId?: string; - /** Tenant id of arc AAD identity. */ - arcApplicationTenantId?: string; - /** Object id of arc AAD service principal. */ - arcServicePrincipalObjectId?: string; - /** Object id of arc AAD identity. */ - arcApplicationObjectId?: string; - /** Aggregate state of Arc agent across the nodes in this HCI cluster. */ - readonly aggregateState?: ArcSettingAggregateState; - /** State of Arc agent in each of the nodes. */ - readonly perNodeDetails?: PerNodeState[]; +/** ArcSettings properties. */ +export interface ArcSettingsPatchProperties { /** contains connectivity related configuration for ARC resources */ connectivityProperties?: ArcConnectivityProperties; - /** Properties for each of the default extensions category */ - readonly defaultExtensions?: DefaultExtensionDetails[]; } -export function arcSettingPropertiesSerializer(item: ArcSettingProperties): any { +export function arcSettingsPatchPropertiesSerializer(item: ArcSettingsPatchProperties): any { return { - arcInstanceResourceGroup: item["arcInstanceResourceGroup"], - arcApplicationClientId: item["arcApplicationClientId"], - arcApplicationTenantId: item["arcApplicationTenantId"], - arcServicePrincipalObjectId: item["arcServicePrincipalObjectId"], - arcApplicationObjectId: item["arcApplicationObjectId"], connectivityProperties: !item["connectivityProperties"] ? item["connectivityProperties"] : arcConnectivityPropertiesSerializer(item["connectivityProperties"]), }; } -export function arcSettingPropertiesDeserializer(item: any): ArcSettingProperties { +/** List of ArcSetting proxy resources for the HCI cluster. */ +export interface _ArcSettingList { + /** The ArcSetting items on this page */ + value: ArcSetting[]; + /** The link to the next page of items */ + nextLink?: string; +} + +export function _arcSettingListDeserializer(item: any): _ArcSettingList { return { - provisioningState: item["provisioningState"], - arcInstanceResourceGroup: item["arcInstanceResourceGroup"], - arcApplicationClientId: item["arcApplicationClientId"], - arcApplicationTenantId: item["arcApplicationTenantId"], - arcServicePrincipalObjectId: item["arcServicePrincipalObjectId"], - arcApplicationObjectId: item["arcApplicationObjectId"], - aggregateState: item["aggregateState"], - perNodeDetails: !item["perNodeDetails"] - ? item["perNodeDetails"] - : perNodeStateArrayDeserializer(item["perNodeDetails"]), - connectivityProperties: !item["connectivityProperties"] - ? item["connectivityProperties"] - : arcConnectivityPropertiesDeserializer(item["connectivityProperties"]), - defaultExtensions: !item["defaultExtensions"] - ? item["defaultExtensions"] - : defaultExtensionDetailsArrayDeserializer(item["defaultExtensions"]), + value: arcSettingArrayDeserializer(item["value"]), + nextLink: item["nextLink"], }; } -/** Provisioning state of the ArcSetting proxy resource. */ -export enum KnownProvisioningState { - /** The provisioning state is not specified. */ - NotSpecified = "NotSpecified", - /** An error occurred during provisioning. */ - Error = "Error", - /** Provisioning completed successfully. */ - Succeeded = "Succeeded", - /** Provisioning failed. */ - Failed = "Failed", - /** Provisioning was canceled. */ - Canceled = "Canceled", - /** The resource is connected. */ - Connected = "Connected", - /** The resource is disconnected. */ - Disconnected = "Disconnected", - /** The resource has been deleted. */ - Deleted = "Deleted", - /** The resource is being created. */ - Creating = "Creating", - /** The resource is being updated. */ - Updating = "Updating", - /** The resource is being deleted. */ - Deleting = "Deleting", - /** The resource is being moved. */ - Moving = "Moving", - /** Provisioning partially succeeded. */ - PartiallySucceeded = "PartiallySucceeded", - /** The resource is partially connected. */ - PartiallyConnected = "PartiallyConnected", - /** Provisioning is in progress. */ - InProgress = "InProgress", - /** Provisioning request has been accepted. */ - Accepted = "Accepted", - /** The resource is currently provisioning. */ - Provisioning = "Provisioning", - /** The resource is being disabled. */ - DisableInProgress = "DisableInProgress", +export function arcSettingArraySerializer(result: Array): any[] { + return result.map((item) => { + return arcSettingSerializer(item); + }); } -/** - * Provisioning state of the ArcSetting proxy resource. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified**: The provisioning state is not specified. \ - * **Error**: An error occurred during provisioning. \ - * **Succeeded**: Provisioning completed successfully. \ - * **Failed**: Provisioning failed. \ - * **Canceled**: Provisioning was canceled. \ - * **Connected**: The resource is connected. \ - * **Disconnected**: The resource is disconnected. \ - * **Deleted**: The resource has been deleted. \ - * **Creating**: The resource is being created. \ - * **Updating**: The resource is being updated. \ - * **Deleting**: The resource is being deleted. \ - * **Moving**: The resource is being moved. \ - * **PartiallySucceeded**: Provisioning partially succeeded. \ - * **PartiallyConnected**: The resource is partially connected. \ - * **InProgress**: Provisioning is in progress. \ - * **Accepted**: Provisioning request has been accepted. \ - * **Provisioning**: The resource is currently provisioning. \ - * **DisableInProgress**: The resource is being disabled. - */ -export type ProvisioningState = string; - -/** Aggregate state of Arc agent across the nodes in this HCI cluster. */ -export enum KnownArcSettingAggregateState { - /** The aggregate state is not specified. */ - NotSpecified = "NotSpecified", - /** An error occurred in the aggregate state. */ - Error = "Error", - /** The operation successfully completed across all nodes. */ - Succeeded = "Succeeded", - /** The operation was canceled across the nodes. */ - Canceled = "Canceled", - /** The operation failed on all or most nodes. */ - Failed = "Failed", - /** All nodes are connected. */ - Connected = "Connected", - /** All nodes are disconnected. */ - Disconnected = "Disconnected", - /** The Arc agent has been deleted from all nodes. */ - Deleted = "Deleted", - /** The Arc agent is being created across the nodes. */ - Creating = "Creating", - /** The Arc agent is being updated across the nodes. */ - Updating = "Updating", - /** The Arc agent is being deleted across the nodes. */ - Deleting = "Deleting", - /** The Arc agent is being moved across the nodes. */ - Moving = "Moving", - /** The operation succeeded on some nodes. */ - PartiallySucceeded = "PartiallySucceeded", - /** Some nodes are connected, others are not. */ - PartiallyConnected = "PartiallyConnected", - /** The operation is currently in progress across the nodes. */ - InProgress = "InProgress", - /** The operation has been accepted and is pending execution. */ - Accepted = "Accepted", - /** The Arc agent is being provisioned across the nodes. */ - Provisioning = "Provisioning", - /** The Arc agent is being disabled across the nodes. */ - DisableInProgress = "DisableInProgress", +export function arcSettingArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return arcSettingDeserializer(item); + }); } -/** - * Aggregate state of Arc agent across the nodes in this HCI cluster. \ - * {@link KnownArcSettingAggregateState} can be used interchangeably with ArcSettingAggregateState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified**: The aggregate state is not specified. \ - * **Error**: An error occurred in the aggregate state. \ - * **Succeeded**: The operation successfully completed across all nodes. \ - * **Canceled**: The operation was canceled across the nodes. \ - * **Failed**: The operation failed on all or most nodes. \ - * **Connected**: All nodes are connected. \ - * **Disconnected**: All nodes are disconnected. \ - * **Deleted**: The Arc agent has been deleted from all nodes. \ - * **Creating**: The Arc agent is being created across the nodes. \ - * **Updating**: The Arc agent is being updated across the nodes. \ - * **Deleting**: The Arc agent is being deleted across the nodes. \ - * **Moving**: The Arc agent is being moved across the nodes. \ - * **PartiallySucceeded**: The operation succeeded on some nodes. \ - * **PartiallyConnected**: Some nodes are connected, others are not. \ - * **InProgress**: The operation is currently in progress across the nodes. \ - * **Accepted**: The operation has been accepted and is pending execution. \ - * **Provisioning**: The Arc agent is being provisioned across the nodes. \ - * **DisableInProgress**: The Arc agent is being disabled across the nodes. - */ -export type ArcSettingAggregateState = string; +/** model interface PasswordCredential */ +export interface PasswordCredential { + secretText?: string; + keyId?: string; + startDateTime?: Date; + endDateTime?: Date; +} -export function perNodeStateArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return perNodeStateDeserializer(item); - }); +export function passwordCredentialDeserializer(item: any): PasswordCredential { + return { + secretText: item["secretText"], + keyId: item["keyId"], + startDateTime: !item["startDateTime"] ? item["startDateTime"] : new Date(item["startDateTime"]), + endDateTime: !item["endDateTime"] ? item["endDateTime"] : new Date(item["endDateTime"]), + }; } -/** Status of Arc agent for a particular node in HCI Cluster. */ -export interface PerNodeState { - /** Name of the Node in HCI Cluster */ - readonly name?: string; - /** Fully qualified resource ID for the Arc agent of this node. */ - readonly arcInstance?: string; - /** The service principal id of the arc for server node */ - readonly arcNodeServicePrincipalObjectId?: string; - /** State of the Arc agent in this node. Indicates the current lifecycle status of the agent, such as whether it's being provisioned, connected, updated, or has encountered an error. */ - readonly state?: NodeArcState; +/** ArcIdentity details. */ +export interface ArcIdentityResponse { + arcApplicationClientId?: string; + arcApplicationTenantId?: string; + arcServicePrincipalObjectId?: string; + arcApplicationObjectId?: string; } -export function perNodeStateDeserializer(item: any): PerNodeState { +export function arcIdentityResponseDeserializer(item: any): ArcIdentityResponse { return { - name: item["name"], - arcInstance: item["arcInstance"], - arcNodeServicePrincipalObjectId: item["arcNodeServicePrincipalObjectId"], - state: item["state"], - }; -} - -/** State of the Arc agent in this node. Indicates the current lifecycle status of the agent, such as whether it's being provisioned, connected, updated, or has encountered an error. */ -export enum KnownNodeArcState { - /** The state is not specified. */ - NotSpecified = "NotSpecified", - /** An error occurred during the agent's lifecycle. */ - Error = "Error", - /** The operation completed successfully. */ - Succeeded = "Succeeded", - /** The operation was canceled before completion. */ - Canceled = "Canceled", - /** The operation failed. */ - Failed = "Failed", - /** The Arc agent is connected on this node. */ - Connected = "Connected", - /** The Arc agent is disconnected on this node. */ - Disconnected = "Disconnected", - /** The Arc agent has been deleted from this node. */ - Deleted = "Deleted", - /** The Arc agent is being created on this node. */ - Creating = "Creating", - /** The Arc agent is being updated on this node. */ - Updating = "Updating", - /** The Arc agent is being deleted from this node. */ - Deleting = "Deleting", - /** The Arc agent is being moved on this node. */ - Moving = "Moving", - /** The operation partially succeeded. */ - PartiallySucceeded = "PartiallySucceeded", - /** The Arc agent is partially connected on this node. */ - PartiallyConnected = "PartiallyConnected", - /** The operation is currently in progress. */ - InProgress = "InProgress", - /** The operation has been accepted and is pending execution. */ - Accepted = "Accepted", - /** The Arc agent is currently being provisioned on this node. */ - Provisioning = "Provisioning", - /** The Arc agent is in the process of being disabled on this node. */ - DisableInProgress = "DisableInProgress", -} - -/** - * State of the Arc agent in this node. Indicates the current lifecycle status of the agent, such as whether it's being provisioned, connected, updated, or has encountered an error. \ - * {@link KnownNodeArcState} can be used interchangeably with NodeArcState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified**: The state is not specified. \ - * **Error**: An error occurred during the agent's lifecycle. \ - * **Succeeded**: The operation completed successfully. \ - * **Canceled**: The operation was canceled before completion. \ - * **Failed**: The operation failed. \ - * **Connected**: The Arc agent is connected on this node. \ - * **Disconnected**: The Arc agent is disconnected on this node. \ - * **Deleted**: The Arc agent has been deleted from this node. \ - * **Creating**: The Arc agent is being created on this node. \ - * **Updating**: The Arc agent is being updated on this node. \ - * **Deleting**: The Arc agent is being deleted from this node. \ - * **Moving**: The Arc agent is being moved on this node. \ - * **PartiallySucceeded**: The operation partially succeeded. \ - * **PartiallyConnected**: The Arc agent is partially connected on this node. \ - * **InProgress**: The operation is currently in progress. \ - * **Accepted**: The operation has been accepted and is pending execution. \ - * **Provisioning**: The Arc agent is currently being provisioned on this node. \ - * **DisableInProgress**: The Arc agent is in the process of being disabled on this node. - */ -export type NodeArcState = string; - -/** Connectivity related configuration required by arc server. */ -export interface ArcConnectivityProperties { - /** True indicates ARC connectivity is enabled */ - enabled?: boolean; - /** Service configurations associated with the connectivity resource. They are only processed by the server if 'enabled' property is set to 'true'. */ - serviceConfigurations?: ServiceConfiguration[]; -} - -export function arcConnectivityPropertiesSerializer(item: ArcConnectivityProperties): any { - return { - enabled: item["enabled"], - serviceConfigurations: !item["serviceConfigurations"] - ? item["serviceConfigurations"] - : serviceConfigurationArraySerializer(item["serviceConfigurations"]), - }; -} - -export function arcConnectivityPropertiesDeserializer(item: any): ArcConnectivityProperties { - return { - enabled: item["enabled"], - serviceConfigurations: !item["serviceConfigurations"] - ? item["serviceConfigurations"] - : serviceConfigurationArrayDeserializer(item["serviceConfigurations"]), - }; -} - -export function serviceConfigurationArraySerializer(result: Array): any[] { - return result.map((item) => { - return serviceConfigurationSerializer(item); - }); -} - -export function serviceConfigurationArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return serviceConfigurationDeserializer(item); - }); -} - -/** Service configuration details */ -export interface ServiceConfiguration { - /** Specifies the name of the service associated with the update or operation. This helps identify which system component or tool is involved. */ - serviceName: ServiceName; - /** The port on which service is enabled. */ - port: number; -} - -export function serviceConfigurationSerializer(item: ServiceConfiguration): any { - return { serviceName: item["serviceName"], port: item["port"] }; -} - -export function serviceConfigurationDeserializer(item: any): ServiceConfiguration { - return { - serviceName: item["serviceName"], - port: item["port"], - }; -} - -/** Specifies the name of the service associated with the update or operation. This helps identify which system component or tool is involved. */ -export enum KnownServiceName { - /** Windows Admin Center (WAC) is the service associated with this operation. */ - WAC = "WAC", -} - -/** - * Specifies the name of the service associated with the update or operation. This helps identify which system component or tool is involved. \ - * {@link KnownServiceName} can be used interchangeably with ServiceName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **WAC**: Windows Admin Center (WAC) is the service associated with this operation. - */ -export type ServiceName = string; - -export function defaultExtensionDetailsArrayDeserializer( - result: Array, -): any[] { - return result.map((item) => { - return defaultExtensionDetailsDeserializer(item); - }); -} - -/** Properties for a particular default extension category. */ -export interface DefaultExtensionDetails { - /** Default extension category */ - readonly category?: string; - /** Consent time for extension category */ - readonly consentTime?: Date; -} - -export function defaultExtensionDetailsDeserializer(item: any): DefaultExtensionDetails { - return { - category: item["category"], - consentTime: !item["consentTime"] ? item["consentTime"] : new Date(item["consentTime"]), - }; -} - -/** ArcSetting details to update. */ -export interface ArcSettingsPatch { - /** Resource tags. */ - tags?: Record; - /** contains connectivity related configuration for ARC resources */ - connectivityProperties?: ArcConnectivityProperties; -} - -export function arcSettingsPatchSerializer(item: ArcSettingsPatch): any { - return { - tags: item["tags"], - properties: areAllPropsUndefined(item, ["connectivityProperties"]) - ? undefined - : _arcSettingsPatchPropertiesSerializer(item), - }; -} - -/** ArcSettings properties. */ -export interface ArcSettingsPatchProperties { - /** contains connectivity related configuration for ARC resources */ - connectivityProperties?: ArcConnectivityProperties; -} - -export function arcSettingsPatchPropertiesSerializer(item: ArcSettingsPatchProperties): any { - return { - connectivityProperties: !item["connectivityProperties"] - ? item["connectivityProperties"] - : arcConnectivityPropertiesSerializer(item["connectivityProperties"]), - }; -} - -/** List of ArcSetting proxy resources for the HCI cluster. */ -export interface _ArcSettingList { - /** The ArcSetting items on this page */ - value: ArcSetting[]; - /** The link to the next page of items */ - nextLink?: string; -} - -export function _arcSettingListDeserializer(item: any): _ArcSettingList { - return { - value: arcSettingArrayDeserializer(item["value"]), - nextLink: item["nextLink"], - }; -} - -export function arcSettingArraySerializer(result: Array): any[] { - return result.map((item) => { - return arcSettingSerializer(item); - }); -} - -export function arcSettingArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return arcSettingDeserializer(item); - }); -} - -/** model interface PasswordCredential */ -export interface PasswordCredential { - secretText?: string; - keyId?: string; - startDateTime?: Date; - endDateTime?: Date; -} - -export function passwordCredentialDeserializer(item: any): PasswordCredential { - return { - secretText: item["secretText"], - keyId: item["keyId"], - startDateTime: !item["startDateTime"] ? item["startDateTime"] : new Date(item["startDateTime"]), - endDateTime: !item["endDateTime"] ? item["endDateTime"] : new Date(item["endDateTime"]), - }; -} - -/** ArcIdentity details. */ -export interface ArcIdentityResponse { - arcApplicationClientId?: string; - arcApplicationTenantId?: string; - arcServicePrincipalObjectId?: string; - arcApplicationObjectId?: string; -} - -export function arcIdentityResponseDeserializer(item: any): ArcIdentityResponse { - return { - ...(!item["properties"] - ? item["properties"] - : _arcIdentityResponsePropertiesDeserializer(item["properties"])), + ...(!item["properties"] + ? item["properties"] + : _arcIdentityResponsePropertiesDeserializer(item["properties"])), }; } @@ -1271,8 +961,6 @@ export interface Cluster extends TrackedResource { readonly connectivityStatus?: ConnectivityStatus; /** Unique, immutable resource id. */ readonly cloudId?: string; - /** The ring to which this cluster belongs to. */ - readonly ring?: string; /** Endpoint configured for management from the Azure portal. */ cloudManagementEndpoint?: string; /** App id of cluster AAD identity. */ @@ -1317,10 +1005,6 @@ export interface Cluster extends TrackedResource { secretsLocations?: SecretsLocationDetails[]; /** Supported Storage Type for HCI Cluster */ readonly clusterPattern?: ClusterPattern; - /** Represents the Confidential Virtual Machine (CVM) support intent and current status for the cluster resource. */ - readonly confidentialVmProperties?: ConfidentialVmProperties; - /** Software Defined Networking Properties of the cluster */ - readonly sdnProperties?: ClusterSdnProperties; /** Local Availability Zone information for HCI cluster */ localAvailabilityZones?: LocalAvailabilityZones[]; /** Identity Provider for the cluster */ @@ -1393,8 +1077,6 @@ export interface ClusterProperties { readonly connectivityStatus?: ConnectivityStatus; /** Unique, immutable resource id. */ readonly cloudId?: string; - /** The ring to which this cluster belongs to. */ - readonly ring?: string; /** Endpoint configured for management from the Azure portal. */ cloudManagementEndpoint?: string; /** App id of cluster AAD identity. */ @@ -1439,10 +1121,6 @@ export interface ClusterProperties { secretsLocations?: SecretsLocationDetails[]; /** Supported Storage Type for HCI Cluster */ readonly clusterPattern?: ClusterPattern; - /** Represents the Confidential Virtual Machine (CVM) support intent and current status for the cluster resource. */ - readonly confidentialVmProperties?: ConfidentialVmProperties; - /** Software Defined Networking Properties of the cluster */ - readonly sdnProperties?: ClusterSdnProperties; /** Local Availability Zone information for HCI cluster */ localAvailabilityZones?: LocalAvailabilityZones[]; /** Identity Provider for the cluster */ @@ -1485,7 +1163,6 @@ export function clusterPropertiesDeserializer(item: any): ClusterProperties { status: item["status"], connectivityStatus: item["connectivityStatus"], cloudId: item["cloudId"], - ring: item["ring"], cloudManagementEndpoint: item["cloudManagementEndpoint"], aadClientId: item["aadClientId"], aadTenantId: item["aadTenantId"], @@ -1530,12 +1207,6 @@ export function clusterPropertiesDeserializer(item: any): ClusterProperties { ? item["secretsLocations"] : secretsLocationDetailsArrayDeserializer(item["secretsLocations"]), clusterPattern: item["clusterPattern"], - confidentialVmProperties: !item["confidentialVmProperties"] - ? item["confidentialVmProperties"] - : confidentialVmPropertiesDeserializer(item["confidentialVmProperties"]), - sdnProperties: !item["sdnProperties"] - ? item["sdnProperties"] - : clusterSdnPropertiesDeserializer(item["sdnProperties"]), localAvailabilityZones: !item["localAvailabilityZones"] ? item["localAvailabilityZones"] : localAvailabilityZonesArrayDeserializer(item["localAvailabilityZones"]), @@ -2362,102 +2033,12 @@ export enum KnownClusterPattern { */ export type ClusterPattern = string; -/** Represents the Confidential Virtual Machine (CVM) support intent and current status for the cluster resource. */ -export interface ConfidentialVmProperties { - /** Captures the customer's intent to enable or disable CVM support on the cluster, either during initial deployment (Day-0) or at a later stage (Day-N). */ - readonly confidentialVmIntent?: ConfidentialVmIntent; - /** Captures the current status of CVM support on the cluster. */ - readonly confidentialVmStatus?: ConfidentialVmStatus; - /** Additional context about CVM support on the cluster, such as reasons for partial enablement or hardware constraints. */ - readonly confidentialVmStatusSummary?: string; -} - -export function confidentialVmPropertiesDeserializer(item: any): ConfidentialVmProperties { - return { - confidentialVmIntent: item["confidentialVmIntent"], - confidentialVmStatus: item["confidentialVmStatus"], - confidentialVmStatusSummary: item["confidentialVmStatusSummary"], - }; -} - -/** Captures the customer's intent to enable or disable Confidential Virtual Machine (CVM) support on the cluster, either during initial deployment (Day-0) or at a later stage (Day-N). */ -export enum KnownConfidentialVmIntent { - /** Indicates that the customer intends to enable CVM support on the cluster. */ - Enable = "Enable", - /** Indicates that the customer intends to disable CVM support on the cluster. */ - Disable = "Disable", -} - -/** - * Captures the customer's intent to enable or disable Confidential Virtual Machine (CVM) support on the cluster, either during initial deployment (Day-0) or at a later stage (Day-N). \ - * {@link KnownConfidentialVmIntent} can be used interchangeably with ConfidentialVmIntent, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enable**: Indicates that the customer intends to enable CVM support on the cluster. \ - * **Disable**: Indicates that the customer intends to disable CVM support on the cluster. - */ -export type ConfidentialVmIntent = string; - -/** Captures the current status of Confidential Virtual Machine (CVM) support on the cluster. */ -export enum KnownConfidentialVmStatus { - /** CVM support is fully enabled on the cluster. All nodes are CVM capable. */ - Enabled = "Enabled", - /** CVM support is partially enabled. At least one node in the cluster is CVM capable. */ - PartiallyEnabled = "PartiallyEnabled", - /** CVM support is disabled. None of the nodes in the cluster are CVM capable. */ - Disabled = "Disabled", -} - -/** - * Captures the current status of Confidential Virtual Machine (CVM) support on the cluster. \ - * {@link KnownConfidentialVmStatus} can be used interchangeably with ConfidentialVmStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled**: CVM support is fully enabled on the cluster. All nodes are CVM capable. \ - * **PartiallyEnabled**: CVM support is partially enabled. At least one node in the cluster is CVM capable. \ - * **Disabled**: CVM support is disabled. None of the nodes in the cluster are CVM capable. - */ -export type ConfidentialVmStatus = string; - -/** Represents the Software Defined Networking (SDN) configuration state of the Azure Stack HCI cluster. */ -export interface ClusterSdnProperties extends SdnProperties { - /** Indicates whether Software Defined Networking (SDN) integration should be enabled or disabled for this deployment. */ - readonly sdnIntegrationIntent?: SdnIntegrationIntent; -} - -export function clusterSdnPropertiesDeserializer(item: any): ClusterSdnProperties { - return { - sdnStatus: item["sdnStatus"], - sdnDomainName: item["sdnDomainName"], - sdnApiAddress: item["sdnApiAddress"], - sdnIntegrationIntent: item["sdnIntegrationIntent"], - }; -} - -/** Indicates whether Software Defined Networking (SDN) integration should be enabled or disabled for this deployment. */ -export enum KnownSdnIntegrationIntent { - /** Enable SDN integration for the deployment. */ - Enable = "Enable", - /** Disable SDN integration for the deployment. */ - Disable = "Disable", -} - -/** - * Indicates whether Software Defined Networking (SDN) integration should be enabled or disabled for this deployment. \ - * {@link KnownSdnIntegrationIntent} can be used interchangeably with SdnIntegrationIntent, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enable**: Enable SDN integration for the deployment. \ - * **Disable**: Disable SDN integration for the deployment. - */ -export type SdnIntegrationIntent = string; - -export function localAvailabilityZonesArraySerializer( - result: Array, -): any[] { - return result.map((item) => { - return localAvailabilityZonesSerializer(item); - }); +export function localAvailabilityZonesArraySerializer( + result: Array, +): any[] { + return result.map((item) => { + return localAvailabilityZonesSerializer(item); + }); } export function localAvailabilityZonesArrayDeserializer( @@ -2612,45 +2193,6 @@ export function userAssignedIdentityDeserializer(item: any): UserAssignedIdentit }; } -/** Represents the Software Defined Networking (SDN) configuration state. */ -export interface SdnProperties { - /** Indicates the current Software Defined Networking (SDN) status of the resource, which may be an individual device or a cluster. */ - readonly sdnStatus?: SdnStatus; - /** The fully qualified domain name (FQDN) associated with the SDN deployment. This value is propagated from the Device Management Extension to the cluster resource. It is typically in the format `-nc.` when SDN is enabled. May be null or absent in unsupported or disabled states. */ - readonly sdnDomainName?: string; - /** Represents the API address for the SDN deployment. */ - readonly sdnApiAddress?: string; -} - -export function sdnPropertiesDeserializer(item: any): SdnProperties { - return { - sdnStatus: item["sdnStatus"], - sdnDomainName: item["sdnDomainName"], - sdnApiAddress: item["sdnApiAddress"], - }; -} - -/** Indicates the current Software Defined Networking (SDN) status of the resource, which may be an individual device or a cluster. */ -export enum KnownSdnStatus { - /** The SDN status could not be determined due to a failure in querying the SDN API service. This may occur if the query script fails or if the system is in an inconsistent state. The domain name will be null in this case. */ - Unknown = "Unknown", - /** SDN is not enabled on the resource. The domain name will be null. This is the default state when SDN has not been configured. */ - Disabled = "Disabled", - /** SDN is successfully enabled on the resource. The domain name will be populated in the format `-nc.`. Customers may need to manage DNS settings to ensure proper resolution. */ - Enabled = "Enabled", -} - -/** - * Indicates the current Software Defined Networking (SDN) status of the resource, which may be an individual device or a cluster. \ - * {@link KnownSdnStatus} can be used interchangeably with SdnStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unknown**: The SDN status could not be determined due to a failure in querying the SDN API service. This may occur if the query script fails or if the system is in an inconsistent state. The domain name will be null in this case. \ - * **Disabled**: SDN is not enabled on the resource. The domain name will be null. This is the default state when SDN has not been configured. \ - * **Enabled**: SDN is successfully enabled on the resource. The domain name will be populated in the format `-nc.`. Customers may need to manage DNS settings to ensure proper resolution. - */ -export type SdnStatus = string; - /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ export interface TrackedResource extends Resource { /** Resource tags. */ @@ -2871,29 +2413,6 @@ export function softwareAssuranceChangeRequestPropertiesSerializer( return { softwareAssuranceIntent: item["softwareAssuranceIntent"] }; } -/** model interface ChangeRingRequest */ -export interface ChangeRingRequest { - properties?: ChangeRingRequestProperties; -} - -export function changeRingRequestSerializer(item: ChangeRingRequest): any { - return { - properties: !item["properties"] - ? item["properties"] - : changeRingRequestPropertiesSerializer(item["properties"]), - }; -} - -/** model interface ChangeRingRequestProperties */ -export interface ChangeRingRequestProperties { - /** The target ring for the cluster. */ - targetRing?: string; -} - -export function changeRingRequestPropertiesSerializer(item: ChangeRingRequestProperties): any { - return { targetRing: item["targetRing"] }; -} - /** Log Collection Request */ export interface LogCollectionRequest { /** Properties for Log Collection Request */ @@ -5145,3911 +4664,1428 @@ export function edgeDeviceUnionSerializer(item: EdgeDeviceUnion): any { export function edgeDeviceUnionDeserializer(item: any): EdgeDeviceUnion { switch (item["kind"]) { - case "HCI": - return hciEdgeDeviceDeserializer(item as HciEdgeDevice); - - default: - return edgeDeviceDeserializer(item); - } -} - -/** Edge device kind. */ -export enum KnownDeviceKind { - /** Arc-enabled edge device with HCI OS. */ - HCI = "HCI", -} - -/** - * Edge device kind. \ - * {@link KnownDeviceKind} can be used interchangeably with DeviceKind, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **HCI**: Arc-enabled edge device with HCI OS. - */ -export type DeviceKind = string; - -/** Arc-enabled edge device with HCI OS. */ -export interface HciEdgeDevice extends EdgeDevice { - /** properties for Arc-enabled edge device with HCI OS. */ - properties?: HciEdgeDeviceProperties; - /** Device kind to support polymorphic resource. */ - kind: "HCI"; -} - -export function hciEdgeDeviceSerializer(item: HciEdgeDevice): any { - return { - kind: item["kind"], - properties: !item["properties"] - ? item["properties"] - : hciEdgeDevicePropertiesSerializer(item["properties"]), - }; -} - -export function hciEdgeDeviceDeserializer(item: any): HciEdgeDevice { - return { - kind: item["kind"], - id: item["id"], - name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), - properties: !item["properties"] - ? item["properties"] - : hciEdgeDevicePropertiesDeserializer(item["properties"]), - }; -} - -/** properties for Arc-enabled edge device with HCI OS. */ -export interface HciEdgeDeviceProperties extends EdgeDeviceProperties { - /** The instance view of all current configurations on HCI device. */ - readonly reportedProperties?: HciReportedProperties; -} - -export function hciEdgeDevicePropertiesSerializer(item: HciEdgeDeviceProperties): any { - return { - deviceConfiguration: !item["deviceConfiguration"] - ? item["deviceConfiguration"] - : deviceConfigurationSerializer(item["deviceConfiguration"]), - }; -} - -export function hciEdgeDevicePropertiesDeserializer(item: any): HciEdgeDeviceProperties { - return { - deviceConfiguration: !item["deviceConfiguration"] - ? item["deviceConfiguration"] - : deviceConfigurationDeserializer(item["deviceConfiguration"]), - provisioningState: item["provisioningState"], - reportedProperties: !item["reportedProperties"] - ? item["reportedProperties"] - : hciReportedPropertiesDeserializer(item["reportedProperties"]), - }; -} - -/** The device Configuration for HCI device. */ -export interface HciReportedProperties extends ReportedProperties { - /** HCI device network information. */ - readonly networkProfile?: HciNetworkProfile; - /** HCI device OS specific information. */ - readonly osProfile?: HciOsProfile; - /** Solution builder extension (SBE) deployment package information. */ - readonly sbeDeploymentPackageInfo?: SbeDeploymentPackageInfo; - /** Hci device storage specific information. */ - readonly storageProfile?: HciStorageProfile; - /** Hci device hardware specific information. */ - readonly hardwareProfile?: HciHardwareProfile; -} - -export function hciReportedPropertiesDeserializer(item: any): HciReportedProperties { - return { - deviceState: item["deviceState"], - extensionProfile: !item["extensionProfile"] - ? item["extensionProfile"] - : extensionProfileDeserializer(item["extensionProfile"]), - lastSyncTimestamp: !item["lastSyncTimestamp"] - ? item["lastSyncTimestamp"] - : new Date(item["lastSyncTimestamp"]), - confidentialVmProfile: !item["confidentialVmProfile"] - ? item["confidentialVmProfile"] - : confidentialVmProfileDeserializer(item["confidentialVmProfile"]), - networkProfile: !item["networkProfile"] - ? item["networkProfile"] - : hciNetworkProfileDeserializer(item["networkProfile"]), - osProfile: !item["osProfile"] ? item["osProfile"] : hciOsProfileDeserializer(item["osProfile"]), - sbeDeploymentPackageInfo: !item["sbeDeploymentPackageInfo"] - ? item["sbeDeploymentPackageInfo"] - : sbeDeploymentPackageInfoDeserializer(item["sbeDeploymentPackageInfo"]), - storageProfile: !item["storageProfile"] - ? item["storageProfile"] - : hciStorageProfileDeserializer(item["storageProfile"]), - hardwareProfile: !item["hardwareProfile"] - ? item["hardwareProfile"] - : hciHardwareProfileDeserializer(item["hardwareProfile"]), - }; -} - -/** The network profile of a device. */ -export interface HciNetworkProfile { - /** List of NIC Details of device. */ - readonly nicDetails?: HciNicDetail[]; - /** List of switch details for edge device. */ - readonly switchDetails?: SwitchDetail[]; - /** HostNetwork config to deploy AzureStackHCI Cluster. */ - readonly hostNetwork?: HciEdgeDeviceHostNetwork; - /** oftware Defined Networking Properties of the cluster */ - readonly sdnProperties?: SdnProperties; -} - -export function hciNetworkProfileDeserializer(item: any): HciNetworkProfile { - return { - nicDetails: !item["nicDetails"] - ? item["nicDetails"] - : hciNicDetailArrayDeserializer(item["nicDetails"]), - switchDetails: !item["switchDetails"] - ? item["switchDetails"] - : switchDetailArrayDeserializer(item["switchDetails"]), - hostNetwork: !item["hostNetwork"] - ? item["hostNetwork"] - : hciEdgeDeviceHostNetworkDeserializer(item["hostNetwork"]), - sdnProperties: !item["sdnProperties"] - ? item["sdnProperties"] - : sdnPropertiesDeserializer(item["sdnProperties"]), - }; -} - -export function hciNicDetailArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return hciNicDetailDeserializer(item); - }); -} - -/** The NIC Detail of a device. */ -export interface HciNicDetail { - /** Adapter Name of NIC */ - readonly adapterName?: string; - /** Interface Description of NIC */ - readonly interfaceDescription?: string; - /** Component Id of NIC */ - readonly componentId?: string; - /** Driver Version of NIC */ - readonly driverVersion?: string; - /** Subnet Mask of NIC */ - readonly ip4Address?: string; - /** Subnet Mask of NIC */ - readonly subnetMask?: string; - /** Default Gateway of NIC */ - readonly defaultGateway?: string; - /** DNS Servers for NIC */ - readonly dnsServers?: string[]; - /** Default Isolation of Management NIC */ - readonly defaultIsolationId?: string; - /** MAC address information of NIC. */ - readonly macAddress?: string; - /** The slot attached to the NIC. */ - readonly slot?: string; - /** The switch attached to the NIC, if any. */ - readonly switchName?: string; - /** The type of NIC, physical, virtual, management. */ - readonly nicType?: string; - /** The VLAN ID of the physical NIC. */ - readonly vlanId?: string; - /** The status of NIC, up, disconnected. */ - readonly nicStatus?: string; - /** Describes the RDMA capability of the network adapter. */ - readonly rdmaCapability?: RdmaCapability; -} - -export function hciNicDetailDeserializer(item: any): HciNicDetail { - return { - adapterName: item["adapterName"], - interfaceDescription: item["interfaceDescription"], - componentId: item["componentId"], - driverVersion: item["driverVersion"], - ip4Address: item["ip4Address"], - subnetMask: item["subnetMask"], - defaultGateway: item["defaultGateway"], - dnsServers: !item["dnsServers"] - ? item["dnsServers"] - : item["dnsServers"].map((p: any) => { - return p; - }), - defaultIsolationId: item["defaultIsolationId"], - macAddress: item["macAddress"], - slot: item["slot"], - switchName: item["switchName"], - nicType: item["nicType"], - vlanId: item["vlanId"], - nicStatus: item["nicStatus"], - rdmaCapability: item["rdmaCapability"], - }; -} - -/** Describes the RDMA capability of the network adapter. */ -export enum KnownRdmaCapability { - /** Network Adapter on the device is RDMA Capable */ - Enabled = "Enabled", - /** Network Adapter on the device is RDMA Capable */ - Disabled = "Disabled", -} - -/** - * Describes the RDMA capability of the network adapter. \ - * {@link KnownRdmaCapability} can be used interchangeably with RdmaCapability, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled**: Network Adapter on the device is RDMA Capable \ - * **Disabled**: Network Adapter on the device is RDMA Capable - */ -export type RdmaCapability = string; - -export function switchDetailArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return switchDetailDeserializer(item); - }); -} - -/** List of switch details for edge device. */ -export interface SwitchDetail { - /** The name of the switch. */ - readonly switchName?: string; - /** The type of the switch. e.g. external, internal. */ - readonly switchType?: string; - /** This represents extensions installed on virtualSwitch. */ - readonly extensions?: SwitchExtension[]; -} - -export function switchDetailDeserializer(item: any): SwitchDetail { - return { - switchName: item["switchName"], - switchType: item["switchType"], - extensions: !item["extensions"] - ? item["extensions"] - : switchExtensionArrayDeserializer(item["extensions"]), - }; -} - -export function switchExtensionArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return switchExtensionDeserializer(item); - }); -} - -/** This represents extensions installed on virtualSwitch. */ -export interface SwitchExtension { - /** Unique identifier for virtualSwitch. */ - readonly switchId?: string; - /** This will show extension name for virtualSwitch. */ - readonly extensionName?: string; - /** This represents whether extension is enabled on virtualSwitch. */ - readonly extensionEnabled?: boolean; -} - -export function switchExtensionDeserializer(item: any): SwitchExtension { - return { - switchId: item["switchId"], - extensionName: item["extensionName"], - extensionEnabled: item["extensionEnabled"], - }; -} - -/** The HostNetwork of a cluster. */ -export interface HciEdgeDeviceHostNetwork { - /** The network intents assigned to the network reference pattern used for the deployment. Each intent will define its own name, traffic type, adapter names, and overrides as recommended by your OEM. */ - readonly intents?: HciEdgeDeviceIntents[]; - /** List of StorageNetworks config to deploy AzureStackHCI Cluster. */ - readonly storageNetworks?: HciEdgeDeviceStorageNetworks[]; - /** Defines how the storage adapters between nodes are connected either switch or switch less. */ - readonly storageConnectivitySwitchless?: boolean; - /** Optional parameter required only for 3 Nodes Switchless deployments. This allows users to specify IPs and Mask for Storage NICs when Network ATC is not assigning the IPs for storage automatically. */ - readonly enableStorageAutoIp?: boolean; -} - -export function hciEdgeDeviceHostNetworkDeserializer(item: any): HciEdgeDeviceHostNetwork { - return { - intents: !item["intents"] - ? item["intents"] - : hciEdgeDeviceIntentsArrayDeserializer(item["intents"]), - storageNetworks: !item["storageNetworks"] - ? item["storageNetworks"] - : hciEdgeDeviceStorageNetworksArrayDeserializer(item["storageNetworks"]), - storageConnectivitySwitchless: item["storageConnectivitySwitchless"], - enableStorageAutoIp: item["enableStorageAutoIp"], - }; -} - -export function hciEdgeDeviceIntentsArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return hciEdgeDeviceIntentsDeserializer(item); - }); -} - -/** The Intents of a cluster. */ -export interface HciEdgeDeviceIntents { - /** Scope for host network intent. */ - readonly scope?: number; - /** IntentType for host network intent. */ - readonly intentType?: number; - /** IsComputeIntentSet for host network intent. */ - readonly isComputeIntentSet?: boolean; - /** IsStorageIntentSet for host network intent. */ - readonly isStorageIntentSet?: boolean; - /** IntentType for host network intent. */ - readonly isOnlyStorage?: boolean; - /** IsManagementIntentSet for host network intent. */ - readonly isManagementIntentSet?: boolean; - /** IsStretchIntentSet for host network intent. */ - readonly isStretchIntentSet?: boolean; - /** IsOnlyStretch for host network intent. */ - readonly isOnlyStretch?: boolean; - /** IsNetworkIntentType for host network intent. */ - readonly isNetworkIntentType?: boolean; - /** Name of the network intent you wish to create. */ - readonly intentName?: string; - /** Array of adapters used for the network intent. */ - readonly intentAdapters?: string[]; - /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. */ - readonly overrideVirtualSwitchConfiguration?: boolean; - /** Set virtualSwitch ConfigurationOverrides for cluster. */ - readonly virtualSwitchConfigurationOverrides?: HciEdgeDeviceVirtualSwitchConfigurationOverrides; - /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. */ - readonly overrideQosPolicy?: boolean; - /** Set QoS PolicyOverrides for cluster. */ - readonly qosPolicyOverrides?: QosPolicyOverrides; - /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. */ - readonly overrideAdapterProperty?: boolean; - /** Set Adapter PropertyOverrides for cluster. */ - readonly adapterPropertyOverrides?: HciEdgeDeviceAdapterPropertyOverrides; -} - -export function hciEdgeDeviceIntentsDeserializer(item: any): HciEdgeDeviceIntents { - return { - scope: item["scope"], - intentType: item["intentType"], - isComputeIntentSet: item["isComputeIntentSet"], - isStorageIntentSet: item["isStorageIntentSet"], - isOnlyStorage: item["isOnlyStorage"], - isManagementIntentSet: item["isManagementIntentSet"], - isStretchIntentSet: item["isStretchIntentSet"], - isOnlyStretch: item["isOnlyStretch"], - isNetworkIntentType: item["isNetworkIntentType"], - intentName: item["intentName"], - intentAdapters: !item["intentAdapters"] - ? item["intentAdapters"] - : item["intentAdapters"].map((p: any) => { - return p; - }), - overrideVirtualSwitchConfiguration: item["overrideVirtualSwitchConfiguration"], - virtualSwitchConfigurationOverrides: !item["virtualSwitchConfigurationOverrides"] - ? item["virtualSwitchConfigurationOverrides"] - : hciEdgeDeviceVirtualSwitchConfigurationOverridesDeserializer( - item["virtualSwitchConfigurationOverrides"], - ), - overrideQosPolicy: item["overrideQosPolicy"], - qosPolicyOverrides: !item["qosPolicyOverrides"] - ? item["qosPolicyOverrides"] - : qosPolicyOverridesDeserializer(item["qosPolicyOverrides"]), - overrideAdapterProperty: item["overrideAdapterProperty"], - adapterPropertyOverrides: !item["adapterPropertyOverrides"] - ? item["adapterPropertyOverrides"] - : hciEdgeDeviceAdapterPropertyOverridesDeserializer(item["adapterPropertyOverrides"]), - }; -} - -/** The VirtualSwitchConfigurationOverrides of a cluster. */ -export interface HciEdgeDeviceVirtualSwitchConfigurationOverrides { - /** Enable IoV for Virtual Switch */ - readonly enableIov?: string; - /** Load Balancing Algorithm for Virtual Switch */ - readonly loadBalancingAlgorithm?: string; -} - -export function hciEdgeDeviceVirtualSwitchConfigurationOverridesDeserializer( - item: any, -): HciEdgeDeviceVirtualSwitchConfigurationOverrides { - return { - enableIov: item["enableIov"], - loadBalancingAlgorithm: item["loadBalancingAlgorithm"], - }; -} - -/** The AdapterPropertyOverrides of a cluster. */ -export interface HciEdgeDeviceAdapterPropertyOverrides { - /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. */ - readonly jumboPacket?: string; - /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. */ - readonly networkDirect?: string; - /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. Expected values are 'iWARP', 'RoCEv2', 'RoCE' */ - readonly networkDirectTechnology?: string; -} - -export function hciEdgeDeviceAdapterPropertyOverridesDeserializer( - item: any, -): HciEdgeDeviceAdapterPropertyOverrides { - return { - jumboPacket: item["jumboPacket"], - networkDirect: item["networkDirect"], - networkDirectTechnology: item["networkDirectTechnology"], - }; -} - -export function hciEdgeDeviceStorageNetworksArrayDeserializer( - result: Array, -): any[] { - return result.map((item) => { - return hciEdgeDeviceStorageNetworksDeserializer(item); - }); -} - -/** The StorageNetworks of a cluster. */ -export interface HciEdgeDeviceStorageNetworks { - /** Name of the storage network. */ - readonly name?: string; - /** Name of the storage network adapter. */ - readonly networkAdapterName?: string; - /** ID specified for the VLAN storage network. This setting is applied to the network interfaces that route the storage and VM migration traffic. */ - readonly storageVlanId?: string; - /** List of Storage adapter physical nodes config to deploy AzureStackHCI Cluster. */ - readonly storageAdapterIPInfo?: HciEdgeDeviceStorageAdapterIPInfo[]; -} - -export function hciEdgeDeviceStorageNetworksDeserializer(item: any): HciEdgeDeviceStorageNetworks { - return { - name: item["name"], - networkAdapterName: item["networkAdapterName"], - storageVlanId: item["storageVlanId"], - storageAdapterIPInfo: !item["storageAdapterIPInfo"] - ? item["storageAdapterIPInfo"] - : hciEdgeDeviceStorageAdapterIPInfoArrayDeserializer(item["storageAdapterIPInfo"]), - }; -} - -export function hciEdgeDeviceStorageAdapterIPInfoArrayDeserializer( - result: Array, -): any[] { - return result.map((item) => { - return hciEdgeDeviceStorageAdapterIPInfoDeserializer(item); - }); -} - -/** The StorageAdapter physical nodes of a cluster. */ -export interface HciEdgeDeviceStorageAdapterIPInfo { - /** storage adapter physical node name. */ - readonly physicalNode?: string; - /** The IPv4 address assigned to each storage adapter physical node on your Azure Stack HCI cluster. */ - readonly ipv4Address?: string; - /** The SubnetMask address assigned to each storage adapter physical node on your Azure Stack HCI cluster. */ - readonly subnetMask?: string; -} - -export function hciEdgeDeviceStorageAdapterIPInfoDeserializer( - item: any, -): HciEdgeDeviceStorageAdapterIPInfo { - return { - physicalNode: item["physicalNode"], - ipv4Address: item["ipv4Address"], - subnetMask: item["subnetMask"], - }; -} - -/** OS configurations for HCI device. */ -export interface HciOsProfile { - /** The boot type of the device. e.g. UEFI, Legacy etc */ - readonly bootType?: string; - /** Version of assembly present on device */ - readonly assemblyVersion?: string; -} - -export function hciOsProfileDeserializer(item: any): HciOsProfile { - return { - bootType: item["bootType"], - assemblyVersion: item["assemblyVersion"], - }; -} - -/** Solution builder extension (SBE) deployment package information. */ -export interface SbeDeploymentPackageInfo { - /** SBE deployment validation code. */ - readonly code?: string; - /** A detailed message that explains the SBE package validation result. */ - readonly message?: string; - /** This represents discovered update results for matching updates and store it as SBE manifest. */ - readonly sbeManifest?: string; -} - -export function sbeDeploymentPackageInfoDeserializer(item: any): SbeDeploymentPackageInfo { - return { - code: item["code"], - message: item["message"], - sbeManifest: item["sbeManifest"], - }; -} - -/** Storage configurations for HCI device. */ -export interface HciStorageProfile { - /** Number of storage disks in the device with $CanPool as true. */ - readonly poolableDisksCount?: number; - /** List of storage disks on the device. */ - readonly disks?: EdgeDeviceDisks[]; -} - -export function hciStorageProfileDeserializer(item: any): HciStorageProfile { - return { - poolableDisksCount: item["poolableDisksCount"], - disks: !item["disks"] ? item["disks"] : edgeDeviceDisksArrayDeserializer(item["disks"]), - }; -} - -export function edgeDeviceDisksArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return edgeDeviceDisksDeserializer(item); - }); -} - -/** Represents a storage disk on the device. */ -export interface EdgeDeviceDisks { - /** The unique identifier of the disk. */ - readonly id: string; - /** The size of the disk in bytes. */ - readonly sizeInBytes?: string; - /** The type of the disk. For example, S2D or SAN. */ - readonly type?: string; -} - -export function edgeDeviceDisksDeserializer(item: any): EdgeDeviceDisks { - return { - id: item["id"], - sizeInBytes: item["sizeInBytes"], - type: item["type"], - }; -} - -/** Hardware configurations for HCI device. */ -export interface HciHardwareProfile { - /** Process type of the device */ - readonly processorType?: string; -} - -export function hciHardwareProfileDeserializer(item: any): HciHardwareProfile { - return { - processorType: item["processorType"], - }; -} - -/** Reported properties pushed from edge device. */ -export interface ReportedProperties { - /** edge device state. */ - readonly deviceState?: DeviceState; - /** Extensions details for edge device. */ - readonly extensionProfile?: ExtensionProfile; - /** Most recent edge device sync timestamp in UTC. */ - readonly lastSyncTimestamp?: Date; - /** CVM support details for edge device. */ - readonly confidentialVmProfile?: ConfidentialVmProfile; -} - -export function reportedPropertiesDeserializer(item: any): ReportedProperties { - return { - deviceState: item["deviceState"], - extensionProfile: !item["extensionProfile"] - ? item["extensionProfile"] - : extensionProfileDeserializer(item["extensionProfile"]), - lastSyncTimestamp: !item["lastSyncTimestamp"] - ? item["lastSyncTimestamp"] - : new Date(item["lastSyncTimestamp"]), - confidentialVmProfile: !item["confidentialVmProfile"] - ? item["confidentialVmProfile"] - : confidentialVmProfileDeserializer(item["confidentialVmProfile"]), - }; -} - -/** The edge device state. */ -export enum KnownDeviceState { - /** The edge device state is not specified. */ - NotSpecified = "NotSpecified", - /** The edge device state is in connected state. */ - Connected = "Connected", - /** The edge device state is in disconnected state. */ - Disconnected = "Disconnected", - /** The edge device state is in repairing state. */ - Repairing = "Repairing", - /** The edge device state is in draining state. */ - Draining = "Draining", - /** The edge device state is in maintenance state. */ - InMaintenance = "InMaintenance", - /** The edge device state is in resuming state. */ - Resuming = "Resuming", - /** The edge device state is in processing state. */ - Processing = "Processing", -} - -/** - * The edge device state. \ - * {@link KnownDeviceState} can be used interchangeably with DeviceState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified**: The edge device state is not specified. \ - * **Connected**: The edge device state is in connected state. \ - * **Disconnected**: The edge device state is in disconnected state. \ - * **Repairing**: The edge device state is in repairing state. \ - * **Draining**: The edge device state is in draining state. \ - * **InMaintenance**: The edge device state is in maintenance state. \ - * **Resuming**: The edge device state is in resuming state. \ - * **Processing**: The edge device state is in processing state. - */ -export type DeviceState = string; - -/** Extensions details for edge device. */ -export interface ExtensionProfile { - /** List of Arc extensions installed on edge device. */ - readonly extensions?: HciEdgeDeviceArcExtension[]; -} - -export function extensionProfileDeserializer(item: any): ExtensionProfile { - return { - extensions: !item["extensions"] - ? item["extensions"] - : hciEdgeDeviceArcExtensionArrayDeserializer(item["extensions"]), - }; -} - -export function hciEdgeDeviceArcExtensionArrayDeserializer( - result: Array, -): any[] { - return result.map((item) => { - return hciEdgeDeviceArcExtensionDeserializer(item); - }); -} - -/** Arc extension installed on edge device. */ -export interface HciEdgeDeviceArcExtension { - /** Arc extension name installed on edge device. */ - readonly extensionName?: string; - /** Arc extension state from arc machine extension. */ - readonly state?: ArcExtensionState; - /** Error details while installing Arc extension. */ - readonly errorDetails?: HciValidationFailureDetail[]; - /** Arc Extension Azure resource id. */ - readonly extensionResourceId?: string; - /** Extension version installed. */ - readonly typeHandlerVersion?: string; - /** Indicates whether the extension is managed by the user or by Azure. */ - readonly managedBy?: ExtensionManagedBy; -} - -export function hciEdgeDeviceArcExtensionDeserializer(item: any): HciEdgeDeviceArcExtension { - return { - extensionName: item["extensionName"], - state: item["state"], - errorDetails: !item["errorDetails"] - ? item["errorDetails"] - : hciValidationFailureDetailArrayDeserializer(item["errorDetails"]), - extensionResourceId: item["extensionResourceId"], - typeHandlerVersion: item["typeHandlerVersion"], - managedBy: item["managedBy"], - }; -} - -/** Arc extension installation state. */ -export enum KnownArcExtensionState { - /** Arc extension state is not specified. */ - NotSpecified = "NotSpecified", - /** Arc extension state is Succeeded. */ - Succeeded = "Succeeded", - /** Arc extension state is Failed. */ - Failed = "Failed", - /** Arc extension state is Canceled. */ - Canceled = "Canceled", - /** Arc extension state is Accepted when extension installation triggered. */ - Accepted = "Accepted", - /** Arc extension is in Creating State. */ - Creating = "Creating", - /** Arc extension is in Updating State. */ - Updating = "Updating", - /** Arc extension is in Moving State. */ - Moving = "Moving", - /** Arc extension is in Deleting State. */ - Deleting = "Deleting", - /** Arc extension is in Deleted State. */ - Deleted = "Deleted", -} - -/** - * Arc extension installation state. \ - * {@link KnownArcExtensionState} can be used interchangeably with ArcExtensionState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified**: Arc extension state is not specified. \ - * **Succeeded**: Arc extension state is Succeeded. \ - * **Failed**: Arc extension state is Failed. \ - * **Canceled**: Arc extension state is Canceled. \ - * **Accepted**: Arc extension state is Accepted when extension installation triggered. \ - * **Creating**: Arc extension is in Creating State. \ - * **Updating**: Arc extension is in Updating State. \ - * **Moving**: Arc extension is in Moving State. \ - * **Deleting**: Arc extension is in Deleting State. \ - * **Deleted**: Arc extension is in Deleted State. - */ -export type ArcExtensionState = string; - -export function hciValidationFailureDetailArrayDeserializer( - result: Array, -): any[] { - return result.map((item) => { - return hciValidationFailureDetailDeserializer(item); - }); -} - -/** details of validation failure */ -export interface HciValidationFailureDetail { - /** Exception details while installing extension. */ - readonly exception?: string; -} - -export function hciValidationFailureDetailDeserializer(item: any): HciValidationFailureDetail { - return { - exception: item["exception"], - }; -} - -/** Indicates whether the extension is managed by the user or by Azure. */ -export enum KnownExtensionManagedBy { - /** The extension is managed by the user. */ - User = "User", - /** The extension is managed by Azure. */ - Azure = "Azure", -} - -/** - * Indicates whether the extension is managed by the user or by Azure. \ - * {@link KnownExtensionManagedBy} can be used interchangeably with ExtensionManagedBy, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User**: The extension is managed by the user. \ - * **Azure**: The extension is managed by Azure. - */ -export type ExtensionManagedBy = string; - -/** Represents the Confidential Virtual Machine (CVM) configuration status for an edge device. It includes the current IGVM support state and detailed component-level status information. */ -export interface ConfidentialVmProfile { - /** Indicates whether Independent Guest Virtual Machine (IGVM) support is available on the device. This will be 'Enabled' if the device supports CVMs, 'Disabled' if not, and 'Unknown' if the status cannot be determined. */ - readonly igvmStatus?: IgvmStatus; - /** Provides detailed status entries for IGVM-related components, including deployment status, compatibility checks, and error diagnostics. */ - statusDetails?: IgvmStatusDetail[]; -} - -export function confidentialVmProfileDeserializer(item: any): ConfidentialVmProfile { - return { - igvmStatus: item["igvmStatus"], - statusDetails: !item["statusDetails"] - ? item["statusDetails"] - : igvmStatusDetailArrayDeserializer(item["statusDetails"]), - }; -} - -/** Represents the IGVM support status for the device. */ -export enum KnownIgvmStatus { - /** The IGVM status could not be determined due to a query failure or inconsistent system state. */ - Unknown = "Unknown", - /** IGVM support is enabled, indicating that confidential VM features are available on this device. */ - Enabled = "Enabled", - /** IGVM status is disabled, indicating that confidential VM features are not supported on this device. */ - Disabled = "Disabled", -} - -/** - * Represents the IGVM support status for the device. \ - * {@link KnownIgvmStatus} can be used interchangeably with IgvmStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unknown**: The IGVM status could not be determined due to a query failure or inconsistent system state. \ - * **Enabled**: IGVM support is enabled, indicating that confidential VM features are available on this device. \ - * **Disabled**: IGVM status is disabled, indicating that confidential VM features are not supported on this device. - */ -export type IgvmStatus = string; - -export function igvmStatusDetailArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return igvmStatusDetailDeserializer(item); - }); -} - -/** Provides component-level status information related to IGVM enablement on the device. */ -export interface IgvmStatusDetail { - /** A machine-readable status code indicating the result or condition of a specific IGVM-related check or operation. */ - readonly code?: string; - /** A human-readable message providing context or explanation for the associated status code. */ - readonly message?: string; -} - -export function igvmStatusDetailDeserializer(item: any): IgvmStatusDetail { - return { - code: item["code"], - message: item["message"], - }; -} - -/** Edge Device properties */ -export interface EdgeDeviceProperties { - /** Device Configuration */ - deviceConfiguration?: DeviceConfiguration; - /** Provisioning state of edgeDevice resource */ - readonly provisioningState?: ProvisioningState; -} - -export function edgeDevicePropertiesSerializer(item: EdgeDeviceProperties): any { - return { - deviceConfiguration: !item["deviceConfiguration"] - ? item["deviceConfiguration"] - : deviceConfigurationSerializer(item["deviceConfiguration"]), - }; -} - -export function edgeDevicePropertiesDeserializer(item: any): EdgeDeviceProperties { - return { - deviceConfiguration: !item["deviceConfiguration"] - ? item["deviceConfiguration"] - : deviceConfigurationDeserializer(item["deviceConfiguration"]), - provisioningState: item["provisioningState"], - }; -} - -/** The device Configuration for edge device. */ -export interface DeviceConfiguration { - /** NIC Details of device */ - nicDetails?: NicDetail[]; - /** Device metadata details. */ - deviceMetadata?: string; -} - -export function deviceConfigurationSerializer(item: DeviceConfiguration): any { - return { - nicDetails: !item["nicDetails"] - ? item["nicDetails"] - : nicDetailArraySerializer(item["nicDetails"]), - deviceMetadata: item["deviceMetadata"], - }; -} - -export function deviceConfigurationDeserializer(item: any): DeviceConfiguration { - return { - nicDetails: !item["nicDetails"] - ? item["nicDetails"] - : nicDetailArrayDeserializer(item["nicDetails"]), - deviceMetadata: item["deviceMetadata"], - }; -} - -export function nicDetailArraySerializer(result: Array): any[] { - return result.map((item) => { - return nicDetailSerializer(item); - }); -} - -export function nicDetailArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return nicDetailDeserializer(item); - }); -} - -/** The NIC Detail of a device. */ -export interface NicDetail { - /** Adapter Name of NIC */ - adapterName?: string; - /** Interface Description of NIC */ - interfaceDescription?: string; - /** Component Id of NIC */ - componentId?: string; - /** Driver Version of NIC */ - driverVersion?: string; - /** Subnet Mask of NIC */ - ip4Address?: string; - /** Subnet Mask of NIC */ - subnetMask?: string; - /** Default Gateway of NIC */ - defaultGateway?: string; - /** DNS Servers for NIC */ - dnsServers?: string[]; - /** Default Isolation of Management NIC */ - defaultIsolationId?: string; -} - -export function nicDetailSerializer(item: NicDetail): any { - return { - adapterName: item["adapterName"], - interfaceDescription: item["interfaceDescription"], - componentId: item["componentId"], - driverVersion: item["driverVersion"], - ip4Address: item["ip4Address"], - subnetMask: item["subnetMask"], - defaultGateway: item["defaultGateway"], - dnsServers: !item["dnsServers"] - ? item["dnsServers"] - : item["dnsServers"].map((p: any) => { - return p; - }), - defaultIsolationId: item["defaultIsolationId"], - }; -} - -export function nicDetailDeserializer(item: any): NicDetail { - return { - adapterName: item["adapterName"], - interfaceDescription: item["interfaceDescription"], - componentId: item["componentId"], - driverVersion: item["driverVersion"], - ip4Address: item["ip4Address"], - subnetMask: item["subnetMask"], - defaultGateway: item["defaultGateway"], - dnsServers: !item["dnsServers"] - ? item["dnsServers"] - : item["dnsServers"].map((p: any) => { - return p; - }), - defaultIsolationId: item["defaultIsolationId"], - }; -} - -/** The response of a EdgeDevice list operation. */ -export interface _EdgeDeviceListResult { - /** The EdgeDevice items on this page */ - value: EdgeDeviceUnion[]; - /** The link to the next page of items */ - nextLink?: string; -} - -export function _edgeDeviceListResultDeserializer(item: any): _EdgeDeviceListResult { - return { - value: edgeDeviceUnionArrayDeserializer(item["value"]), - nextLink: item["nextLink"], - }; -} - -export function edgeDeviceUnionArraySerializer(result: Array): any[] { - return result.map((item) => { - return edgeDeviceUnionSerializer(item); - }); -} - -export function edgeDeviceUnionArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return edgeDeviceUnionDeserializer(item); - }); -} - -/** The validate request for Edge Device. */ -export interface ValidateRequest { - /** Node Ids against which, current node has to be validated. */ - edgeDeviceIds: string[]; - /** Additional info required for validation. */ - additionalInfo?: string; -} - -export function validateRequestSerializer(item: ValidateRequest): any { - return { - edgeDeviceIds: item["edgeDeviceIds"].map((p: any) => { - return p; - }), - additionalInfo: item["additionalInfo"], - }; -} - -/** An Accepted response with an Operation-Location header. */ -export interface ValidateResponse { - /** edge device validation status */ - readonly status?: string; -} - -export function validateResponseDeserializer(item: any): ValidateResponse { - return { - status: item["status"], - }; -} - -/** Details of a particular extension in HCI Cluster. */ -export interface Extension extends ProxyResource { - /** Provisioning state of the Extension proxy resource. Indicates the current lifecycle status of the resource, such as whether it's being created, updated, deleted, or has encountered an error. */ - readonly provisioningState?: ProvisioningState; - /** Parameters specific to this extension type. */ - extensionParameters?: ExtensionParameters; - /** Aggregate state of Arc Extensions across the nodes in this HCI cluster. This reflects the overall status of the extension deployment and operation across all nodes. */ - readonly aggregateState?: ExtensionAggregateState; - /** State of Arc Extension in each of the nodes. */ - readonly perNodeExtensionDetails?: PerNodeExtensionState[]; - /** Indicates if the extension is managed by Azure or the user. This determines who controls the deployment and lifecycle of the extension. */ - readonly managedBy?: ExtensionManagedBy; -} - -export function extensionSerializer(item: Extension): any { - return { - properties: areAllPropsUndefined(item, ["extensionParameters"]) - ? undefined - : _extensionPropertiesSerializer(item), - }; -} - -export function extensionDeserializer(item: any): Extension { - return { - id: item["id"], - name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), - ...(!item["properties"] - ? item["properties"] - : _extensionPropertiesDeserializer(item["properties"])), - }; -} - -/** Status of Arc Extension for a particular node in HCI Cluster. */ -export interface ExtensionProperties { - /** Provisioning state of the Extension proxy resource. Indicates the current lifecycle status of the resource, such as whether it's being created, updated, deleted, or has encountered an error. */ - readonly provisioningState?: ProvisioningState; - /** Aggregate state of Arc Extensions across the nodes in this HCI cluster. This reflects the overall status of the extension deployment and operation across all nodes. */ - readonly aggregateState?: ExtensionAggregateState; - /** State of Arc Extension in each of the nodes. */ - readonly perNodeExtensionDetails?: PerNodeExtensionState[]; - /** Indicates if the extension is managed by Azure or the user. This determines who controls the deployment and lifecycle of the extension. */ - readonly managedBy?: ExtensionManagedBy; - /** How the extension handler should be forced to update even if the extension configuration has not changed. */ - forceUpdateTag?: string; - /** The name of the extension handler publisher. */ - publisher?: string; - /** Specifies the type of the extension; an example is "CustomScriptExtension". */ - type?: string; - /** Specifies the version of the script handler. Latest version would be used if not specified. */ - typeHandlerVersion?: string; - /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ - autoUpgradeMinorVersion?: boolean; - /** Json formatted public settings for the extension. */ - settings?: any; - /** Protected settings (may contain secrets). */ - protectedSettings?: any; - /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. */ - enableAutomaticUpgrade?: boolean; -} - -export function extensionPropertiesSerializer(item: ExtensionProperties): any { - return { - extensionParameters: areAllPropsUndefined(item, [ - "forceUpdateTag", - "publisher", - "type", - "typeHandlerVersion", - "autoUpgradeMinorVersion", - "settings", - "protectedSettings", - "enableAutomaticUpgrade", - ]) - ? undefined - : _extensionPropertiesExtensionParametersSerializer(item), - }; -} - -export function extensionPropertiesDeserializer(item: any): ExtensionProperties { - return { - provisioningState: item["provisioningState"], - ...(!item["extensionParameters"] - ? item["extensionParameters"] - : _extensionPropertiesExtensionParametersDeserializer(item["extensionParameters"])), - aggregateState: item["aggregateState"], - perNodeExtensionDetails: !item["perNodeExtensionDetails"] - ? item["perNodeExtensionDetails"] - : perNodeExtensionStateArrayDeserializer(item["perNodeExtensionDetails"]), - managedBy: item["managedBy"], - }; -} - -/** Describes the properties of a Machine Extension. This object mirrors the definition in HybridCompute. */ -export interface ExtensionParameters { - /** How the extension handler should be forced to update even if the extension configuration has not changed. */ - forceUpdateTag?: string; - /** The name of the extension handler publisher. */ - publisher?: string; - /** Specifies the type of the extension; an example is "CustomScriptExtension". */ - type?: string; - /** Specifies the version of the script handler. Latest version would be used if not specified. */ - typeHandlerVersion?: string; - /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ - autoUpgradeMinorVersion?: boolean; - /** Json formatted public settings for the extension. */ - settings?: any; - /** Protected settings (may contain secrets). */ - protectedSettings?: any; - /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. */ - enableAutomaticUpgrade?: boolean; -} - -export function extensionParametersSerializer(item: ExtensionParameters): any { - return { - forceUpdateTag: item["forceUpdateTag"], - publisher: item["publisher"], - type: item["type"], - typeHandlerVersion: item["typeHandlerVersion"], - autoUpgradeMinorVersion: item["autoUpgradeMinorVersion"], - settings: item["settings"], - protectedSettings: item["protectedSettings"], - enableAutomaticUpgrade: item["enableAutomaticUpgrade"], - }; -} - -export function extensionParametersDeserializer(item: any): ExtensionParameters { - return { - forceUpdateTag: item["forceUpdateTag"], - publisher: item["publisher"], - type: item["type"], - typeHandlerVersion: item["typeHandlerVersion"], - autoUpgradeMinorVersion: item["autoUpgradeMinorVersion"], - settings: item["settings"], - protectedSettings: item["protectedSettings"], - enableAutomaticUpgrade: item["enableAutomaticUpgrade"], - }; -} - -/** Aggregate state of Arc Extensions across the nodes in this HCI cluster. This reflects the overall status of the extension deployment and operation across all nodes. */ -export enum KnownExtensionAggregateState { - /** The aggregate state is not specified. */ - NotSpecified = "NotSpecified", - /** An error occurred in the aggregate state. */ - Error = "Error", - /** The operation succeeded across all nodes. */ - Succeeded = "Succeeded", - /** The operation was canceled across the nodes. */ - Canceled = "Canceled", - /** The operation failed on all or most nodes. */ - Failed = "Failed", - /** All nodes are connected. */ - Connected = "Connected", - /** All nodes are disconnected. */ - Disconnected = "Disconnected", - /** The extension has been deleted from all nodes. */ - Deleted = "Deleted", - /** The extension is being created across the nodes. */ - Creating = "Creating", - /** The extension is being updated across the nodes. */ - Updating = "Updating", - /** The extension is being deleted across the nodes. */ - Deleting = "Deleting", - /** The extension is being moved across the nodes. */ - Moving = "Moving", - /** The operation succeeded on some nodes. */ - PartiallySucceeded = "PartiallySucceeded", - /** Some nodes are connected, others are not. */ - PartiallyConnected = "PartiallyConnected", - /** The operation is currently in progress across the nodes. */ - InProgress = "InProgress", - /** The operation has been accepted and is pending execution. */ - Accepted = "Accepted", - /** The extension is currently being provisioned across the nodes. */ - Provisioning = "Provisioning", - /** Extension upgrade failed, but rollback succeeded across the nodes. */ - UpgradeFailedRollbackSucceeded = "UpgradeFailedRollbackSucceeded", -} - -/** - * Aggregate state of Arc Extensions across the nodes in this HCI cluster. This reflects the overall status of the extension deployment and operation across all nodes. \ - * {@link KnownExtensionAggregateState} can be used interchangeably with ExtensionAggregateState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified**: The aggregate state is not specified. \ - * **Error**: An error occurred in the aggregate state. \ - * **Succeeded**: The operation succeeded across all nodes. \ - * **Canceled**: The operation was canceled across the nodes. \ - * **Failed**: The operation failed on all or most nodes. \ - * **Connected**: All nodes are connected. \ - * **Disconnected**: All nodes are disconnected. \ - * **Deleted**: The extension has been deleted from all nodes. \ - * **Creating**: The extension is being created across the nodes. \ - * **Updating**: The extension is being updated across the nodes. \ - * **Deleting**: The extension is being deleted across the nodes. \ - * **Moving**: The extension is being moved across the nodes. \ - * **PartiallySucceeded**: The operation succeeded on some nodes. \ - * **PartiallyConnected**: Some nodes are connected, others are not. \ - * **InProgress**: The operation is currently in progress across the nodes. \ - * **Accepted**: The operation has been accepted and is pending execution. \ - * **Provisioning**: The extension is currently being provisioned across the nodes. \ - * **UpgradeFailedRollbackSucceeded**: Extension upgrade failed, but rollback succeeded across the nodes. - */ -export type ExtensionAggregateState = string; - -export function perNodeExtensionStateArrayDeserializer( - result: Array, -): any[] { - return result.map((item) => { - return perNodeExtensionStateDeserializer(item); - }); -} - -/** Status of Arc Extension for a particular node in HCI Cluster. */ -export interface PerNodeExtensionState { - /** Name of the node in HCI Cluster. */ - readonly name?: string; - /** Fully qualified resource ID for the particular Arc Extension on this node. */ - readonly extension?: string; - /** Specifies the version of the script handler. */ - readonly typeHandlerVersion?: string; - /** State of Arc Extension in this node. Reflects the current lifecycle status of the extension on the individual node, such as whether it's being created, updated, deleted, or has encountered an error. */ - readonly state?: NodeExtensionState; - /** The extension instance view. */ - readonly instanceView?: ExtensionInstanceView; -} - -export function perNodeExtensionStateDeserializer(item: any): PerNodeExtensionState { - return { - name: item["name"], - extension: item["extension"], - typeHandlerVersion: item["typeHandlerVersion"], - state: item["state"], - instanceView: !item["instanceView"] - ? item["instanceView"] - : extensionInstanceViewDeserializer(item["instanceView"]), - }; -} - -/** State of Arc Extension in this node. Reflects the current lifecycle status of the extension on the individual node, such as whether it's being created, updated, deleted, or has encountered an error. */ -export enum KnownNodeExtensionState { - /** The state is not specified. */ - NotSpecified = "NotSpecified", - /** An error occurred during the extension lifecycle. */ - Error = "Error", - /** The extension operation completed successfully. */ - Succeeded = "Succeeded", - /** The extension operation was canceled. */ - Canceled = "Canceled", - /** The extension operation failed. */ - Failed = "Failed", - /** The extension is connected on the node. */ - Connected = "Connected", - /** The extension is disconnected on the node. */ - Disconnected = "Disconnected", - /** The extension has been deleted from the node. */ - Deleted = "Deleted", - /** The extension is being created on the node. */ - Creating = "Creating", - /** The extension is being updated on the node. */ - Updating = "Updating", - /** The extension is being deleted from the node. */ - Deleting = "Deleting", - /** The extension is being moved on the node. */ - Moving = "Moving", - /** The extension operation partially succeeded. */ - PartiallySucceeded = "PartiallySucceeded", - /** The extension is partially connected on the node. */ - PartiallyConnected = "PartiallyConnected", - /** The extension operation is currently in progress. */ - InProgress = "InProgress", - /** The extension operation has been accepted and is pending execution. */ - Accepted = "Accepted", - /** The extension is currently being provisioned on the node. */ - Provisioning = "Provisioning", -} - -/** - * State of Arc Extension in this node. Reflects the current lifecycle status of the extension on the individual node, such as whether it's being created, updated, deleted, or has encountered an error. \ - * {@link KnownNodeExtensionState} can be used interchangeably with NodeExtensionState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSpecified**: The state is not specified. \ - * **Error**: An error occurred during the extension lifecycle. \ - * **Succeeded**: The extension operation completed successfully. \ - * **Canceled**: The extension operation was canceled. \ - * **Failed**: The extension operation failed. \ - * **Connected**: The extension is connected on the node. \ - * **Disconnected**: The extension is disconnected on the node. \ - * **Deleted**: The extension has been deleted from the node. \ - * **Creating**: The extension is being created on the node. \ - * **Updating**: The extension is being updated on the node. \ - * **Deleting**: The extension is being deleted from the node. \ - * **Moving**: The extension is being moved on the node. \ - * **PartiallySucceeded**: The extension operation partially succeeded. \ - * **PartiallyConnected**: The extension is partially connected on the node. \ - * **InProgress**: The extension operation is currently in progress. \ - * **Accepted**: The extension operation has been accepted and is pending execution. \ - * **Provisioning**: The extension is currently being provisioned on the node. - */ -export type NodeExtensionState = string; - -/** Describes the Extension Instance View. */ -export interface ExtensionInstanceView { - /** The extension name. */ - name?: string; - /** Specifies the type of the extension; an example is "MicrosoftMonitoringAgent". */ - type?: string; - /** Specifies the version of the script handler. */ - typeHandlerVersion?: string; - /** Instance view status. */ - status?: ExtensionInstanceViewStatus; -} - -export function extensionInstanceViewDeserializer(item: any): ExtensionInstanceView { - return { - name: item["name"], - type: item["type"], - typeHandlerVersion: item["typeHandlerVersion"], - status: !item["status"] - ? item["status"] - : extensionInstanceViewStatusDeserializer(item["status"]), - }; -} - -/** Instance view status. */ -export interface ExtensionInstanceViewStatus { - /** The status code. */ - code?: string; - /** The level code. Indicates the severity or importance of the status message. */ - level?: StatusLevelTypes; - /** The short localizable label for the status. */ - displayStatus?: string; - /** The detailed status message, including for alerts and error messages. */ - message?: string; - /** The time of the status. */ - time?: Date; -} - -export function extensionInstanceViewStatusDeserializer(item: any): ExtensionInstanceViewStatus { - return { - code: item["code"], - level: item["level"], - displayStatus: item["displayStatus"], - message: item["message"], - time: !item["time"] ? item["time"] : new Date(item["time"]), - }; -} - -/** The level code. Indicates the severity or importance of the status message. */ -export enum KnownStatusLevelTypes { - /** Informational message indicating normal operation. */ - Info = "Info", - /** Warning message indicating a potential issue or non-critical problem. */ - Warning = "Warning", - /** Error message indicating a failure or critical issue. */ - Error = "Error", -} - -/** - * The level code. Indicates the severity or importance of the status message. \ - * {@link KnownStatusLevelTypes} can be used interchangeably with StatusLevelTypes, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Info**: Informational message indicating normal operation. \ - * **Warning**: Warning message indicating a potential issue or non-critical problem. \ - * **Error**: Error message indicating a failure or critical issue. - */ -export type StatusLevelTypes = string; - -/** Extension Details to update */ -export interface ExtensionPatch { - /** Describes the properties of a Machine Extension that can be updated. */ - extensionParameters?: ExtensionPatchParameters; -} - -export function extensionPatchSerializer(item: ExtensionPatch): any { - return { - properties: areAllPropsUndefined(item, ["extensionParameters"]) - ? undefined - : _extensionPatchPropertiesSerializer(item), - }; -} - -/** Describes Machine Extension Properties that can be updated. */ -export interface ExtensionPatchProperties { - /** Describes the properties of a Machine Extension that can be updated. */ - extensionParameters?: ExtensionPatchParameters; -} - -export function extensionPatchPropertiesSerializer(item: ExtensionPatchProperties): any { - return { - extensionParameters: !item["extensionParameters"] - ? item["extensionParameters"] - : extensionPatchParametersSerializer(item["extensionParameters"]), - }; -} - -/** Describes the properties of a Machine Extension that can be updated. */ -export interface ExtensionPatchParameters { - /** Specifies the version of the script handler. Latest version would be used if not specified. */ - typeHandlerVersion?: string; - /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. */ - enableAutomaticUpgrade?: boolean; - /** Json formatted public settings for the extension. */ - settings?: any; - /** Protected settings (may contain secrets). */ - protectedSettings?: any; -} - -export function extensionPatchParametersSerializer(item: ExtensionPatchParameters): any { - return { - typeHandlerVersion: item["typeHandlerVersion"], - enableAutomaticUpgrade: item["enableAutomaticUpgrade"], - settings: item["settings"], - protectedSettings: item["protectedSettings"], - }; -} - -/** List of Extensions in HCI cluster. */ -export interface _ExtensionList { - /** The Extension items on this page */ - value: Extension[]; - /** The link to the next page of items */ - nextLink?: string; -} - -export function _extensionListDeserializer(item: any): _ExtensionList { - return { - value: extensionArrayDeserializer(item["value"]), - nextLink: item["nextLink"], - }; -} - -export function extensionArraySerializer(result: Array): any[] { - return result.map((item) => { - return extensionSerializer(item); - }); -} - -export function extensionArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return extensionDeserializer(item); - }); -} - -/** Describes the parameters for Extension upgrade. */ -export interface ExtensionUpgradeParameters { - /** Extension Upgrade Target Version. */ - targetVersion?: string; -} - -export function extensionUpgradeParametersSerializer(item: ExtensionUpgradeParameters): any { - return { targetVersion: item["targetVersion"] }; -} - -/** Publisher details. */ -export interface Publisher extends ProxyResource { - /** Provisioning State */ - readonly provisioningState?: string; -} - -export function publisherDeserializer(item: any): Publisher { - return { - id: item["id"], - name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), - ...(!item["properties"] - ? item["properties"] - : _publisherPropertiesDeserializer(item["properties"])), - }; -} - -/** Publisher properties. */ -export interface PublisherProperties { - /** Provisioning State */ - readonly provisioningState?: string; -} - -export function publisherPropertiesDeserializer(item: any): PublisherProperties { - return { - provisioningState: item["provisioningState"], - }; -} - -/** List of Publisher proxy resources for the HCI cluster. */ -export interface _PublisherList { - /** The Publisher items on this page */ - value: Publisher[]; - /** The link to the next page of items */ - nextLink?: string; -} - -export function _publisherListDeserializer(item: any): _PublisherList { - return { - value: publisherArrayDeserializer(item["value"]), - nextLink: item["nextLink"], - }; -} - -export function publisherArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return publisherDeserializer(item); - }); -} - -/** Security settings proxy resource */ -export interface SecuritySetting extends ProxyResource { - /** Secured Core Compliance Assignment */ - securedCoreComplianceAssignment?: ComplianceAssignmentType; - /** WDAC Compliance Assignment */ - wdacComplianceAssignment?: ComplianceAssignmentType; - /** SMB encryption for intra-cluster traffic Compliance Assignment */ - smbEncryptionForIntraClusterTrafficComplianceAssignment?: ComplianceAssignmentType; - /** Security Compliance Status */ - readonly securityComplianceStatus?: SecurityComplianceStatus; - /** The status of the last operation. */ - readonly provisioningState?: ProvisioningState; -} - -export function securitySettingSerializer(item: SecuritySetting): any { - return { - properties: areAllPropsUndefined(item, [ - "securedCoreComplianceAssignment", - "wdacComplianceAssignment", - "smbEncryptionForIntraClusterTrafficComplianceAssignment", - ]) - ? undefined - : _securitySettingPropertiesSerializer(item), - }; -} - -export function securitySettingDeserializer(item: any): SecuritySetting { - return { - id: item["id"], - name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), - ...(!item["properties"] - ? item["properties"] - : _securitySettingPropertiesDeserializer(item["properties"])), - }; -} - -/** Security properties of the resource */ -export interface SecurityProperties { - /** Secured Core Compliance Assignment */ - securedCoreComplianceAssignment?: ComplianceAssignmentType; - /** WDAC Compliance Assignment */ - wdacComplianceAssignment?: ComplianceAssignmentType; - /** SMB encryption for intra-cluster traffic Compliance Assignment */ - smbEncryptionForIntraClusterTrafficComplianceAssignment?: ComplianceAssignmentType; - /** Security Compliance Status */ - readonly securityComplianceStatus?: SecurityComplianceStatus; - /** The status of the last operation. */ - readonly provisioningState?: ProvisioningState; -} - -export function securityPropertiesSerializer(item: SecurityProperties): any { - return { - securedCoreComplianceAssignment: item["securedCoreComplianceAssignment"], - wdacComplianceAssignment: item["wdacComplianceAssignment"], - smbEncryptionForIntraClusterTrafficComplianceAssignment: - item["smbEncryptionForIntraClusterTrafficComplianceAssignment"], - }; -} - -export function securityPropertiesDeserializer(item: any): SecurityProperties { - return { - securedCoreComplianceAssignment: item["securedCoreComplianceAssignment"], - wdacComplianceAssignment: item["wdacComplianceAssignment"], - smbEncryptionForIntraClusterTrafficComplianceAssignment: - item["smbEncryptionForIntraClusterTrafficComplianceAssignment"], - securityComplianceStatus: !item["securityComplianceStatus"] - ? item["securityComplianceStatus"] - : securityComplianceStatusDeserializer(item["securityComplianceStatus"]), - provisioningState: item["provisioningState"], - }; -} - -/** Represents the compliance assignment type of a resource. */ -export enum KnownComplianceAssignmentType { - /** Report on the state of the machine, but don't make changes. */ - Audit = "Audit", - /** Applied to the machine. If it drifts, the local service inside the machine makes a correction at the next evaluation. */ - ApplyAndAutoCorrect = "ApplyAndAutoCorrect", -} - -/** - * Represents the compliance assignment type of a resource. \ - * {@link KnownComplianceAssignmentType} can be used interchangeably with ComplianceAssignmentType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Audit**: Report on the state of the machine, but don't make changes. \ - * **ApplyAndAutoCorrect**: Applied to the machine. If it drifts, the local service inside the machine makes a correction at the next evaluation. - */ -export type ComplianceAssignmentType = string; - -/** Security compliance properties of the resource */ -export interface SecurityComplianceStatus { - /** Indicates whether HCI hosts meets secured-core server requirements. */ - readonly securedCoreCompliance?: ComplianceStatus; - /** Indicates whether HCI hosts have enforced consistent Windows Defender Application Control. */ - readonly wdacCompliance?: ComplianceStatus; - /** Indicates whether data at-rest encryption is enabled on Azure Stack HCI clustered volumes. */ - readonly dataAtRestEncrypted?: ComplianceStatus; - /** Indicates whether HCI cluster has data in-transit protection. */ - readonly dataInTransitProtected?: ComplianceStatus; - /** Time in UTC when compliance status was last updated. */ - readonly lastUpdated?: Date; -} - -export function securityComplianceStatusDeserializer(item: any): SecurityComplianceStatus { - return { - securedCoreCompliance: item["securedCoreCompliance"], - wdacCompliance: item["wdacCompliance"], - dataAtRestEncrypted: item["dataAtRestEncrypted"], - dataInTransitProtected: item["dataInTransitProtected"], - lastUpdated: !item["lastUpdated"] ? item["lastUpdated"] : new Date(item["lastUpdated"]), - }; -} - -/** Represents the compliance status of a resource. */ -export enum KnownComplianceStatus { - /** The resource is compliant */ - Compliant = "Compliant", - /** The resource is non-compliant */ - NonCompliant = "NonCompliant", - /** The resource compliance status is pending */ - Pending = "Pending", -} - -/** - * Represents the compliance status of a resource. \ - * {@link KnownComplianceStatus} can be used interchangeably with ComplianceStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Compliant**: The resource is compliant \ - * **NonCompliant**: The resource is non-compliant \ - * **Pending**: The resource compliance status is pending - */ -export type ComplianceStatus = string; - -/** The response of a SecuritySetting list operation. */ -export interface _SecuritySettingListResult { - /** The SecuritySetting items on this page */ - value: SecuritySetting[]; - /** The link to the next page of items */ - nextLink?: string; -} - -export function _securitySettingListResultDeserializer(item: any): _SecuritySettingListResult { - return { - value: securitySettingArrayDeserializer(item["value"]), - nextLink: item["nextLink"], - }; -} - -export function securitySettingArraySerializer(result: Array): any[] { - return result.map((item) => { - return securitySettingSerializer(item); - }); -} - -export function securitySettingArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return securitySettingDeserializer(item); - }); -} - -/** Sku details. */ -export interface Sku extends ProxyResource { - /** Provisioning State */ - readonly provisioningState?: string; - /** Identifier of the Publisher for the offer */ - publisherId?: string; - /** Identifier of the Offer for the sku */ - offerId?: string; - /** JSON serialized catalog content of the sku offer */ - content?: string; - /** The API version of the catalog service used to serve the catalog content */ - contentVersion?: string; - /** Array of SKU mappings */ - skuMappings?: SkuMappings[]; -} - -export function skuDeserializer(item: any): Sku { - return { - id: item["id"], - name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), - ...(!item["properties"] ? item["properties"] : _skuPropertiesDeserializer(item["properties"])), - }; -} - -/** SKU properties. */ -export interface SkuProperties { - /** Provisioning State */ - readonly provisioningState?: string; - /** Identifier of the Publisher for the offer */ - publisherId?: string; - /** Identifier of the Offer for the sku */ - offerId?: string; - /** JSON serialized catalog content of the sku offer */ - content?: string; - /** The API version of the catalog service used to serve the catalog content */ - contentVersion?: string; - /** Array of SKU mappings */ - skuMappings?: SkuMappings[]; -} - -export function skuPropertiesDeserializer(item: any): SkuProperties { - return { - provisioningState: item["provisioningState"], - publisherId: item["publisherId"], - offerId: item["offerId"], - content: item["content"], - contentVersion: item["contentVersion"], - skuMappings: !item["skuMappings"] - ? item["skuMappings"] - : skuMappingsArrayDeserializer(item["skuMappings"]), - }; -} - -/** List of SKU proxy resources for the HCI cluster. */ -export interface _SkuList { - /** The Sku items on this page */ - value: Sku[]; - /** The link to the next page of items */ - nextLink?: string; -} - -export function _skuListDeserializer(item: any): _SkuList { - return { - value: skuArrayDeserializer(item["value"]), - nextLink: item["nextLink"], - }; -} - -export function skuArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return skuDeserializer(item); - }); -} - -/** Details of an Update run */ -export interface UpdateRun extends ProxyResource { - /** The geo-location where the resource lives */ - location?: string; - /** Provisioning state of the UpdateRuns proxy resource. Indicates the current lifecycle status of the update operation, such as whether it has been accepted, is in progress, or has completed. */ - readonly provisioningState?: ProvisioningState; - /** Timestamp of the update run was started. */ - timeStarted?: Date; - /** Timestamp of the most recently completed step in the update run. */ - lastUpdatedTime?: Date; - /** Duration of the update run. */ - duration?: string; - /** Represents the current state of the update run. Indicates whether the update is in progress, has completed successfully, failed, or is in an unknown state. */ - state?: UpdateRunPropertiesState; - /** Progress representation of the update run steps. */ - progress?: Step; -} - -export function updateRunSerializer(item: UpdateRun): any { - return { - properties: areAllPropsUndefined(item, [ - "timeStarted", - "lastUpdatedTime", - "duration", - "state", - "progress", - ]) - ? undefined - : _updateRunPropertiesSerializer(item), - location: item["location"], - }; -} - -export function updateRunDeserializer(item: any): UpdateRun { - return { - id: item["id"], - name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), - ...(!item["properties"] - ? item["properties"] - : _updateRunPropertiesDeserializer(item["properties"])), - location: item["location"], - }; -} - -/** Details of an Update run */ -export interface UpdateRunProperties { - /** Provisioning state of the UpdateRuns proxy resource. Indicates the current lifecycle status of the update operation, such as whether it has been accepted, is in progress, or has completed. */ - readonly provisioningState?: ProvisioningState; - /** Timestamp of the update run was started. */ - timeStarted?: Date; - /** Timestamp of the most recently completed step in the update run. */ - lastUpdatedTime?: Date; - /** Duration of the update run. */ - duration?: string; - /** Represents the current state of the update run. Indicates whether the update is in progress, has completed successfully, failed, or is in an unknown state. */ - state?: UpdateRunPropertiesState; - /** Name of the step. */ - name?: string; - /** More detailed description of the step. */ - description?: string; - /** Error message, specified if the step is in a failed state. */ - errorMessage?: string; - /** Status of the step, bubbled up from the ECE action plan for installation attempts. Values are: 'Success', 'Error', 'InProgress', and 'Unknown status'. */ - status?: string; - /** When the step started, or empty if it has not started executing. */ - startTimeUtc?: Date; - /** When the step reached a terminal state. */ - endTimeUtc?: Date; - /** Completion time of this step or the last completed sub-step. */ - lastUpdatedTimeUtc?: Date; - /** Expected execution time of a given step. This is optionally authored in the update action plan and can be empty. */ - expectedExecutionTime?: string; - /** Recursive model for child steps of this step. */ - steps?: Step[]; -} - -export function updateRunPropertiesSerializer(item: UpdateRunProperties): any { - return { - timeStarted: !item["timeStarted"] ? item["timeStarted"] : item["timeStarted"].toISOString(), - lastUpdatedTime: !item["lastUpdatedTime"] - ? item["lastUpdatedTime"] - : item["lastUpdatedTime"].toISOString(), - duration: item["duration"], - state: item["state"], - progress: areAllPropsUndefined(item, [ - "name", - "description", - "errorMessage", - "status", - "startTimeUtc", - "endTimeUtc", - "lastUpdatedTimeUtc", - "expectedExecutionTime", - "steps", - ]) - ? undefined - : _updateRunPropertiesProgressSerializer(item), - }; -} - -export function updateRunPropertiesDeserializer(item: any): UpdateRunProperties { - return { - provisioningState: item["provisioningState"], - timeStarted: !item["timeStarted"] ? item["timeStarted"] : new Date(item["timeStarted"]), - lastUpdatedTime: !item["lastUpdatedTime"] - ? item["lastUpdatedTime"] - : new Date(item["lastUpdatedTime"]), - duration: item["duration"], - state: item["state"], - ...(!item["progress"] - ? item["progress"] - : _updateRunPropertiesProgressDeserializer(item["progress"])), - }; -} - -/** Represents the current state of the update run. Indicates whether the update is in progress, has completed successfully, failed, or is in an unknown state. */ -export enum KnownUpdateRunPropertiesState { - /** The state of the update run is not known. */ - Unknown = "Unknown", - /** The update run completed successfully. */ - Succeeded = "Succeeded", - /** The update run is currently in progress. */ - InProgress = "InProgress", - /** The update run failed to complete successfully. */ - Failed = "Failed", -} - -/** - * Represents the current state of the update run. Indicates whether the update is in progress, has completed successfully, failed, or is in an unknown state. \ - * {@link KnownUpdateRunPropertiesState} can be used interchangeably with UpdateRunPropertiesState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unknown**: The state of the update run is not known. \ - * **Succeeded**: The update run completed successfully. \ - * **InProgress**: The update run is currently in progress. \ - * **Failed**: The update run failed to complete successfully. - */ -export type UpdateRunPropertiesState = string; - -/** Progress representation of the update run steps. */ -export interface Step { - /** Name of the step. */ - name?: string; - /** More detailed description of the step. */ - description?: string; - /** Error message, specified if the step is in a failed state. */ - errorMessage?: string; - /** Status of the step, bubbled up from the ECE action plan for installation attempts. Values are: 'Success', 'Error', 'InProgress', and 'Unknown status'. */ - status?: string; - /** When the step started, or empty if it has not started executing. */ - startTimeUtc?: Date; - /** When the step reached a terminal state. */ - endTimeUtc?: Date; - /** Completion time of this step or the last completed sub-step. */ - lastUpdatedTimeUtc?: Date; - /** Expected execution time of a given step. This is optionally authored in the update action plan and can be empty. */ - expectedExecutionTime?: string; - /** Recursive model for child steps of this step. */ - steps?: Step[]; -} - -export function stepSerializer(item: Step): any { - return { - name: item["name"], - description: item["description"], - errorMessage: item["errorMessage"], - status: item["status"], - startTimeUtc: !item["startTimeUtc"] ? item["startTimeUtc"] : item["startTimeUtc"].toISOString(), - endTimeUtc: !item["endTimeUtc"] ? item["endTimeUtc"] : item["endTimeUtc"].toISOString(), - lastUpdatedTimeUtc: !item["lastUpdatedTimeUtc"] - ? item["lastUpdatedTimeUtc"] - : item["lastUpdatedTimeUtc"].toISOString(), - expectedExecutionTime: item["expectedExecutionTime"], - steps: !item["steps"] ? item["steps"] : stepArraySerializer(item["steps"]), - }; -} - -export function stepDeserializer(item: any): Step { - return { - name: item["name"], - description: item["description"], - errorMessage: item["errorMessage"], - status: item["status"], - startTimeUtc: !item["startTimeUtc"] ? item["startTimeUtc"] : new Date(item["startTimeUtc"]), - endTimeUtc: !item["endTimeUtc"] ? item["endTimeUtc"] : new Date(item["endTimeUtc"]), - lastUpdatedTimeUtc: !item["lastUpdatedTimeUtc"] - ? item["lastUpdatedTimeUtc"] - : new Date(item["lastUpdatedTimeUtc"]), - expectedExecutionTime: item["expectedExecutionTime"], - steps: !item["steps"] ? item["steps"] : stepArrayDeserializer(item["steps"]), - }; -} - -export function stepArraySerializer(result: Array): any[] { - return result.map((item) => { - return stepSerializer(item); - }); -} - -export function stepArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return stepDeserializer(item); - }); -} - -/** List of Update runs */ -export interface _UpdateRunList { - /** The UpdateRun items on this page */ - value: UpdateRun[]; - /** The link to the next page of items */ - nextLink?: string; -} - -export function _updateRunListDeserializer(item: any): _UpdateRunList { - return { - value: updateRunArrayDeserializer(item["value"]), - nextLink: item["nextLink"], - }; -} - -export function updateRunArraySerializer(result: Array): any[] { - return result.map((item) => { - return updateRunSerializer(item); - }); -} - -export function updateRunArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return updateRunDeserializer(item); - }); -} - -/** Update details */ -export interface Update extends ProxyResource { - /** The geo-location where the resource lives */ - location?: string; - /** Provisioning state of the Updates proxy resource. Indicates the current lifecycle status of the update operation, such as whether it has been accepted, is in progress, or has completed. */ - readonly provisioningState?: ProvisioningState; - /** Date that the update was installed. */ - installedDate?: Date; - /** Description of the update. */ - description?: string; - /** Minimum Sbe Version of the update. */ - minSbeVersionRequired?: string; - /** Represents the current state of the update as it relates to this stamp. This includes phases such as preparation, installation, scanning, and error handling, providing insight into the update's progress and any issues encountered. */ - state?: State; - /** If update State is HasPrerequisite, this property contains an array of objects describing prerequisite updates before installing this update. Otherwise, it is empty. */ - prerequisites?: UpdatePrerequisite[]; - /** An array of component versions for a Solution Bundle update, and an empty array otherwise. */ - componentVersions?: PackageVersionInfo[]; - /** Indicates whether a reboot is required after the update or operation. Helps determine if a system restart is necessary to complete the process. */ - rebootRequired?: RebootRequirement; - /** Overall health state for update-specific health checks. */ - healthState?: HealthState; - /** An array of PrecheckResult objects. */ - healthCheckResult?: PrecheckResult[]; - /** Last time the package-specific checks were run. */ - healthCheckDate?: Date; - /** Path where the update package is available. */ - packagePath?: string; - /** Size of the package. This value is a combination of the size from update metadata and size of the payload that results from the live scan operation for OS update content. */ - packageSizeInMb?: number; - /** Display name of the Update */ - displayName?: string; - /** Version of the update. */ - version?: string; - /** Publisher of the update package. */ - publisher?: string; - /** Link to release notes for the update. */ - releaseLink?: string; - /** Indicates how the update content is made available for download. This determines whether the update is sourced locally, from an online repository, or requires user notification. */ - availabilityType?: AvailabilityType; - /** Customer-visible type of the update. */ - packageType?: string; - /** Extensible KV pairs serialized as a string. This is currently used to report the stamp OEM family and hardware model information when an update is flagged as Invalid for the stamp based on OEM type. */ - additionalProperties?: string; - /** Additional information regarding the state of the update. See definition of UpdateStateProperties type below for more details on this property. */ - updateStateProperties?: UpdateStateProperties; -} - -export function updateSerializer(item: Update): any { - return { - properties: areAllPropsUndefined(item, [ - "installedDate", - "description", - "minSbeVersionRequired", - "state", - "prerequisites", - "componentVersions", - "rebootRequired", - "healthState", - "healthCheckResult", - "healthCheckDate", - "packagePath", - "packageSizeInMb", - "displayName", - "version", - "publisher", - "releaseLink", - "availabilityType", - "packageType", - "additionalProperties", - "updateStateProperties", - ]) - ? undefined - : _updatePropertiesSerializer(item), - location: item["location"], - }; -} - -export function updateDeserializer(item: any): Update { - return { - id: item["id"], - name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), - ...(!item["properties"] - ? item["properties"] - : _updatePropertiesDeserializer(item["properties"])), - location: item["location"], - }; -} - -/** Details of a singular Update in HCI Cluster */ -export interface UpdateProperties { - /** Provisioning state of the Updates proxy resource. Indicates the current lifecycle status of the update operation, such as whether it has been accepted, is in progress, or has completed. */ - readonly provisioningState?: ProvisioningState; - /** Date that the update was installed. */ - installedDate?: Date; - /** Description of the update. */ - description?: string; - /** Minimum Sbe Version of the update. */ - minSbeVersionRequired?: string; - /** Represents the current state of the update as it relates to this stamp. This includes phases such as preparation, installation, scanning, and error handling, providing insight into the update's progress and any issues encountered. */ - state?: State; - /** If update State is HasPrerequisite, this property contains an array of objects describing prerequisite updates before installing this update. Otherwise, it is empty. */ - prerequisites?: UpdatePrerequisite[]; - /** An array of component versions for a Solution Bundle update, and an empty array otherwise. */ - componentVersions?: PackageVersionInfo[]; - /** Indicates whether a reboot is required after the update or operation. Helps determine if a system restart is necessary to complete the process. */ - rebootRequired?: RebootRequirement; - /** Overall health state for update-specific health checks. */ - healthState?: HealthState; - /** An array of PrecheckResult objects. */ - healthCheckResult?: PrecheckResult[]; - /** Last time the package-specific checks were run. */ - healthCheckDate?: Date; - /** Path where the update package is available. */ - packagePath?: string; - /** Size of the package. This value is a combination of the size from update metadata and size of the payload that results from the live scan operation for OS update content. */ - packageSizeInMb?: number; - /** Display name of the Update */ - displayName?: string; - /** Version of the update. */ - version?: string; - /** Publisher of the update package. */ - publisher?: string; - /** Link to release notes for the update. */ - releaseLink?: string; - /** Indicates how the update content is made available for download. This determines whether the update is sourced locally, from an online repository, or requires user notification. */ - availabilityType?: AvailabilityType; - /** Customer-visible type of the update. */ - packageType?: string; - /** Extensible KV pairs serialized as a string. This is currently used to report the stamp OEM family and hardware model information when an update is flagged as Invalid for the stamp based on OEM type. */ - additionalProperties?: string; - /** Progress percentage of ongoing operation. Currently this property is only valid when the update is in the Downloading state, where it maps to how much of the update content has been downloaded. */ - progressPercentage?: number; - /** Brief message with instructions for updates of AvailabilityType Notify. */ - notifyMessage?: string; -} - -export function updatePropertiesSerializer(item: UpdateProperties): any { - return { - installedDate: !item["installedDate"] - ? item["installedDate"] - : item["installedDate"].toISOString(), - description: item["description"], - minSbeVersionRequired: item["minSbeVersionRequired"], - state: item["state"], - prerequisites: !item["prerequisites"] - ? item["prerequisites"] - : updatePrerequisiteArraySerializer(item["prerequisites"]), - componentVersions: !item["componentVersions"] - ? item["componentVersions"] - : packageVersionInfoArraySerializer(item["componentVersions"]), - rebootRequired: item["rebootRequired"], - healthState: item["healthState"], - healthCheckResult: !item["healthCheckResult"] - ? item["healthCheckResult"] - : precheckResultArraySerializer(item["healthCheckResult"]), - healthCheckDate: !item["healthCheckDate"] - ? item["healthCheckDate"] - : item["healthCheckDate"].toISOString(), - packagePath: item["packagePath"], - packageSizeInMb: item["packageSizeInMb"], - displayName: item["displayName"], - version: item["version"], - publisher: item["publisher"], - releaseLink: item["releaseLink"], - availabilityType: item["availabilityType"], - packageType: item["packageType"], - additionalProperties: item["additionalProperties"], - updateStateProperties: areAllPropsUndefined(item, ["progressPercentage", "notifyMessage"]) - ? undefined - : _updatePropertiesUpdateStatePropertiesSerializer(item), - }; -} - -export function updatePropertiesDeserializer(item: any): UpdateProperties { - return { - provisioningState: item["provisioningState"], - installedDate: !item["installedDate"] ? item["installedDate"] : new Date(item["installedDate"]), - description: item["description"], - minSbeVersionRequired: item["minSbeVersionRequired"], - state: item["state"], - prerequisites: !item["prerequisites"] - ? item["prerequisites"] - : updatePrerequisiteArrayDeserializer(item["prerequisites"]), - componentVersions: !item["componentVersions"] - ? item["componentVersions"] - : packageVersionInfoArrayDeserializer(item["componentVersions"]), - rebootRequired: item["rebootRequired"], - healthState: item["healthState"], - healthCheckResult: !item["healthCheckResult"] - ? item["healthCheckResult"] - : precheckResultArrayDeserializer(item["healthCheckResult"]), - healthCheckDate: !item["healthCheckDate"] - ? item["healthCheckDate"] - : new Date(item["healthCheckDate"]), - packagePath: item["packagePath"], - packageSizeInMb: item["packageSizeInMb"], - displayName: item["displayName"], - version: item["version"], - publisher: item["publisher"], - releaseLink: item["releaseLink"], - availabilityType: item["availabilityType"], - packageType: item["packageType"], - additionalProperties: item["additionalProperties"], - ...(!item["updateStateProperties"] - ? item["updateStateProperties"] - : _updatePropertiesUpdateStatePropertiesDeserializer(item["updateStateProperties"])), - }; -} - -/** Represents the current state of the update as it relates to this stamp. This includes phases such as preparation, installation, scanning, and error handling, providing insight into the update's progress and any issues encountered. */ -export enum KnownState { - /** The update has prerequisites that must be fulfilled before it can proceed. */ - HasPrerequisite = "HasPrerequisite", - /** The update is obsolete and no longer applicable. */ - Obsolete = "Obsolete", - /** The update is ready to be installed. */ - Ready = "Ready", - /** The update cannot be applied because another update is currently in progress. */ - NotApplicableBecauseAnotherUpdateIsInProgress = "NotApplicableBecauseAnotherUpdateIsInProgress", - /** The update is currently in the preparation phase. */ - Preparing = "Preparing", - /** The update is currently being installed. */ - Installing = "Installing", - /** The update has been successfully installed. */ - Installed = "Installed", - /** The update preparation phase failed. */ - PreparationFailed = "PreparationFailed", - /** The update installation failed. */ - InstallationFailed = "InstallationFailed", - /** The update is invalid and cannot be applied. */ - Invalid = "Invalid", - /** The update has been recalled and should not be applied. */ - Recalled = "Recalled", - /** The update is currently being downloaded. */ - Downloading = "Downloading", - /** The update download failed. */ - DownloadFailed = "DownloadFailed", - /** A health check is being performed before applying the update. */ - HealthChecking = "HealthChecking", - /** The health check failed, preventing the update from proceeding. */ - HealthCheckFailed = "HealthCheckFailed", - /** The update is ready to be installed after successful preparation and checks. */ - ReadyToInstall = "ReadyToInstall", - /** The system is scanning for updates. */ - ScanInProgress = "ScanInProgress", - /** The scan for updates failed. */ - ScanFailed = "ScanFailed", - /** Additional content is required to proceed with the update. */ - AdditionalContentRequired = "AdditionalContentRequired", - /** The health check has expired and needs to be redone. */ - HealthCheckExpired = "HealthCheckExpired", - /** The update is pending OEM validation before it can proceed. */ - PendingOEMValidation = "PendingOEMValidation", + case "HCI": + return hciEdgeDeviceDeserializer(item as HciEdgeDevice); + + default: + return edgeDeviceDeserializer(item); + } +} + +/** Edge device kind. */ +export enum KnownDeviceKind { + /** Arc-enabled edge device with HCI OS. */ + HCI = "HCI", } /** - * Represents the current state of the update as it relates to this stamp. This includes phases such as preparation, installation, scanning, and error handling, providing insight into the update's progress and any issues encountered. \ - * {@link KnownState} can be used interchangeably with State, + * Edge device kind. \ + * {@link KnownDeviceKind} can be used interchangeably with DeviceKind, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **HasPrerequisite**: The update has prerequisites that must be fulfilled before it can proceed. \ - * **Obsolete**: The update is obsolete and no longer applicable. \ - * **Ready**: The update is ready to be installed. \ - * **NotApplicableBecauseAnotherUpdateIsInProgress**: The update cannot be applied because another update is currently in progress. \ - * **Preparing**: The update is currently in the preparation phase. \ - * **Installing**: The update is currently being installed. \ - * **Installed**: The update has been successfully installed. \ - * **PreparationFailed**: The update preparation phase failed. \ - * **InstallationFailed**: The update installation failed. \ - * **Invalid**: The update is invalid and cannot be applied. \ - * **Recalled**: The update has been recalled and should not be applied. \ - * **Downloading**: The update is currently being downloaded. \ - * **DownloadFailed**: The update download failed. \ - * **HealthChecking**: A health check is being performed before applying the update. \ - * **HealthCheckFailed**: The health check failed, preventing the update from proceeding. \ - * **ReadyToInstall**: The update is ready to be installed after successful preparation and checks. \ - * **ScanInProgress**: The system is scanning for updates. \ - * **ScanFailed**: The scan for updates failed. \ - * **AdditionalContentRequired**: Additional content is required to proceed with the update. \ - * **HealthCheckExpired**: The health check has expired and needs to be redone. \ - * **PendingOEMValidation**: The update is pending OEM validation before it can proceed. + * **HCI**: Arc-enabled edge device with HCI OS. */ -export type State = string; +export type DeviceKind = string; -export function updatePrerequisiteArraySerializer(result: Array): any[] { - return result.map((item) => { - return updatePrerequisiteSerializer(item); - }); +/** Arc-enabled edge device with HCI OS. */ +export interface HciEdgeDevice extends EdgeDevice { + /** properties for Arc-enabled edge device with HCI OS. */ + properties?: HciEdgeDeviceProperties; + /** Device kind to support polymorphic resource. */ + kind: "HCI"; } -export function updatePrerequisiteArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return updatePrerequisiteDeserializer(item); - }); +export function hciEdgeDeviceSerializer(item: HciEdgeDevice): any { + return { + kind: item["kind"], + properties: !item["properties"] + ? item["properties"] + : hciEdgeDevicePropertiesSerializer(item["properties"]), + }; } -/** If update State is HasPrerequisite, this property contains an array of objects describing prerequisite updates before installing this update. Otherwise, it is empty. */ -export interface UpdatePrerequisite { - /** Updatable component type. */ - updateType?: string; - /** Version of the prerequisite. */ - version?: string; - /** Friendly name of the prerequisite. */ - packageName?: string; +export function hciEdgeDeviceDeserializer(item: any): HciEdgeDevice { + return { + kind: item["kind"], + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + properties: !item["properties"] + ? item["properties"] + : hciEdgeDevicePropertiesDeserializer(item["properties"]), + }; } -export function updatePrerequisiteSerializer(item: UpdatePrerequisite): any { +/** properties for Arc-enabled edge device with HCI OS. */ +export interface HciEdgeDeviceProperties extends EdgeDeviceProperties { + /** The instance view of all current configurations on HCI device. */ + readonly reportedProperties?: HciReportedProperties; +} + +export function hciEdgeDevicePropertiesSerializer(item: HciEdgeDeviceProperties): any { return { - updateType: item["updateType"], - version: item["version"], - packageName: item["packageName"], + deviceConfiguration: !item["deviceConfiguration"] + ? item["deviceConfiguration"] + : deviceConfigurationSerializer(item["deviceConfiguration"]), }; } -export function updatePrerequisiteDeserializer(item: any): UpdatePrerequisite { +export function hciEdgeDevicePropertiesDeserializer(item: any): HciEdgeDeviceProperties { return { - updateType: item["updateType"], - version: item["version"], - packageName: item["packageName"], + deviceConfiguration: !item["deviceConfiguration"] + ? item["deviceConfiguration"] + : deviceConfigurationDeserializer(item["deviceConfiguration"]), + provisioningState: item["provisioningState"], + reportedProperties: !item["reportedProperties"] + ? item["reportedProperties"] + : hciReportedPropertiesDeserializer(item["reportedProperties"]), }; } -export function packageVersionInfoArraySerializer(result: Array): any[] { - return result.map((item) => { - return packageVersionInfoSerializer(item); - }); +/** The device Configuration for HCI device. */ +export interface HciReportedProperties extends ReportedProperties { + /** HCI device network information. */ + readonly networkProfile?: HciNetworkProfile; + /** HCI device OS specific information. */ + readonly osProfile?: HciOsProfile; + /** Solution builder extension (SBE) deployment package information. */ + readonly sbeDeploymentPackageInfo?: SbeDeploymentPackageInfo; + /** Hci device storage specific information. */ + readonly storageProfile?: HciStorageProfile; + /** Hci device hardware specific information. */ + readonly hardwareProfile?: HciHardwareProfile; } -export function packageVersionInfoArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return packageVersionInfoDeserializer(item); - }); +export function hciReportedPropertiesDeserializer(item: any): HciReportedProperties { + return { + deviceState: item["deviceState"], + extensionProfile: !item["extensionProfile"] + ? item["extensionProfile"] + : extensionProfileDeserializer(item["extensionProfile"]), + lastSyncTimestamp: !item["lastSyncTimestamp"] + ? item["lastSyncTimestamp"] + : new Date(item["lastSyncTimestamp"]), + networkProfile: !item["networkProfile"] + ? item["networkProfile"] + : hciNetworkProfileDeserializer(item["networkProfile"]), + osProfile: !item["osProfile"] ? item["osProfile"] : hciOsProfileDeserializer(item["osProfile"]), + sbeDeploymentPackageInfo: !item["sbeDeploymentPackageInfo"] + ? item["sbeDeploymentPackageInfo"] + : sbeDeploymentPackageInfoDeserializer(item["sbeDeploymentPackageInfo"]), + storageProfile: !item["storageProfile"] + ? item["storageProfile"] + : hciStorageProfileDeserializer(item["storageProfile"]), + hardwareProfile: !item["hardwareProfile"] + ? item["hardwareProfile"] + : hciHardwareProfileDeserializer(item["hardwareProfile"]), + }; } -/** Current version of each updatable component. */ -export interface PackageVersionInfo { - /** Package type */ - packageType?: string; - /** Package version */ - version?: string; - /** Last time this component was updated. */ - lastUpdated?: Date; +/** The network profile of a device. */ +export interface HciNetworkProfile { + /** List of NIC Details of device. */ + readonly nicDetails?: HciNicDetail[]; + /** List of switch details for edge device. */ + readonly switchDetails?: SwitchDetail[]; + /** HostNetwork config to deploy AzureStackHCI Cluster. */ + readonly hostNetwork?: HciEdgeDeviceHostNetwork; } -export function packageVersionInfoSerializer(item: PackageVersionInfo): any { +export function hciNetworkProfileDeserializer(item: any): HciNetworkProfile { return { - packageType: item["packageType"], - version: item["version"], - lastUpdated: !item["lastUpdated"] ? item["lastUpdated"] : item["lastUpdated"].toISOString(), + nicDetails: !item["nicDetails"] + ? item["nicDetails"] + : hciNicDetailArrayDeserializer(item["nicDetails"]), + switchDetails: !item["switchDetails"] + ? item["switchDetails"] + : switchDetailArrayDeserializer(item["switchDetails"]), + hostNetwork: !item["hostNetwork"] + ? item["hostNetwork"] + : hciEdgeDeviceHostNetworkDeserializer(item["hostNetwork"]), }; } -export function packageVersionInfoDeserializer(item: any): PackageVersionInfo { - return { - packageType: item["packageType"], - version: item["version"], - lastUpdated: !item["lastUpdated"] ? item["lastUpdated"] : new Date(item["lastUpdated"]), - }; +export function hciNicDetailArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return hciNicDetailDeserializer(item); + }); } -/** Indicates whether a reboot is required after the update or operation. Helps determine if a system restart is necessary to complete the process. */ -export enum KnownRebootRequirement { - /** It is not known whether a reboot is required. */ - Unknown = "Unknown", - /** A reboot is required to complete the operation. */ - True = "True", - /** No reboot is required after the operation. */ - False = "False", +/** The NIC Detail of a device. */ +export interface HciNicDetail { + /** Adapter Name of NIC */ + readonly adapterName?: string; + /** Interface Description of NIC */ + readonly interfaceDescription?: string; + /** Component Id of NIC */ + readonly componentId?: string; + /** Driver Version of NIC */ + readonly driverVersion?: string; + /** Subnet Mask of NIC */ + readonly ip4Address?: string; + /** Subnet Mask of NIC */ + readonly subnetMask?: string; + /** Default Gateway of NIC */ + readonly defaultGateway?: string; + /** DNS Servers for NIC */ + readonly dnsServers?: string[]; + /** Default Isolation of Management NIC */ + readonly defaultIsolationId?: string; + /** MAC address information of NIC. */ + readonly macAddress?: string; + /** The slot attached to the NIC. */ + readonly slot?: string; + /** The switch attached to the NIC, if any. */ + readonly switchName?: string; + /** The type of NIC, physical, virtual, management. */ + readonly nicType?: string; + /** The VLAN ID of the physical NIC. */ + readonly vlanId?: string; + /** The status of NIC, up, disconnected. */ + readonly nicStatus?: string; + /** Describes the RDMA capability of the network adapter. */ + readonly rdmaCapability?: RdmaCapability; +} + +export function hciNicDetailDeserializer(item: any): HciNicDetail { + return { + adapterName: item["adapterName"], + interfaceDescription: item["interfaceDescription"], + componentId: item["componentId"], + driverVersion: item["driverVersion"], + ip4Address: item["ip4Address"], + subnetMask: item["subnetMask"], + defaultGateway: item["defaultGateway"], + dnsServers: !item["dnsServers"] + ? item["dnsServers"] + : item["dnsServers"].map((p: any) => { + return p; + }), + defaultIsolationId: item["defaultIsolationId"], + macAddress: item["macAddress"], + slot: item["slot"], + switchName: item["switchName"], + nicType: item["nicType"], + vlanId: item["vlanId"], + nicStatus: item["nicStatus"], + rdmaCapability: item["rdmaCapability"], + }; } -/** - * Indicates whether a reboot is required after the update or operation. Helps determine if a system restart is necessary to complete the process. \ - * {@link KnownRebootRequirement} can be used interchangeably with RebootRequirement, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unknown**: It is not known whether a reboot is required. \ - * **True**: A reboot is required to complete the operation. \ - * **False**: No reboot is required after the operation. - */ -export type RebootRequirement = string; - -/** Overall health state for update-specific health checks. Indicates whether the system is functioning correctly, has warnings or errors, or is undergoing a health evaluation. */ -export enum KnownHealthState { - /** The health state is not known or cannot be determined. */ - Unknown = "Unknown", - /** The health check completed successfully and the system is healthy. */ - Success = "Success", - /** The health check failed, indicating a critical issue. */ - Failure = "Failure", - /** The health check detected a non-critical issue that may require attention. */ - Warning = "Warning", - /** An error occurred during the health check process. */ - Error = "Error", - /** The health check is currently in progress. */ - InProgress = "InProgress", +/** Describes the RDMA capability of the network adapter. */ +export enum KnownRdmaCapability { + /** Network Adapter on the device is RDMA Capable */ + Enabled = "Enabled", + /** Network Adapter on the device is RDMA Capable */ + Disabled = "Disabled", } /** - * Overall health state for update-specific health checks. Indicates whether the system is functioning correctly, has warnings or errors, or is undergoing a health evaluation. \ - * {@link KnownHealthState} can be used interchangeably with HealthState, + * Describes the RDMA capability of the network adapter. \ + * {@link KnownRdmaCapability} can be used interchangeably with RdmaCapability, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown**: The health state is not known or cannot be determined. \ - * **Success**: The health check completed successfully and the system is healthy. \ - * **Failure**: The health check failed, indicating a critical issue. \ - * **Warning**: The health check detected a non-critical issue that may require attention. \ - * **Error**: An error occurred during the health check process. \ - * **InProgress**: The health check is currently in progress. + * **Enabled**: Network Adapter on the device is RDMA Capable \ + * **Disabled**: Network Adapter on the device is RDMA Capable */ -export type HealthState = string; - -export function precheckResultArraySerializer(result: Array): any[] { - return result.map((item) => { - return precheckResultSerializer(item); - }); -} +export type RdmaCapability = string; -export function precheckResultArrayDeserializer(result: Array): any[] { +export function switchDetailArrayDeserializer(result: Array): any[] { return result.map((item) => { - return precheckResultDeserializer(item); + return switchDetailDeserializer(item); }); } -/** model interface PrecheckResult */ -export interface PrecheckResult { - /** Name of the individual test/rule/alert that was executed. Unique, not exposed to the customer. */ - name?: string; - /** The health check DisplayName localized of the individual test executed. */ - displayName?: string; - /** Key-value pairs that allow grouping/filtering individual tests. */ - tags?: PrecheckResultTags; - /** Key-value pairs that allow grouping/filtering individual tests. */ - healthCheckTags?: any; - /** User-facing name; one or more sentences indicating the direct issue. */ - title?: string; - /** Represents the current status of the check being performed. Indicates whether the check has completed successfully, failed, or is still in progress. */ - status?: Status; - /** Indicates the importance or impact level of the result. Determines whether the result is informational, a warning, or a critical issue that may block updates. */ - severity?: Severity; - /** Detailed overview of the issue and what impact the issue has on the stamp. */ - description?: string; - /** Set of steps that can be taken to resolve the issue found. */ - remediation?: string; - /** The unique identifier for the affected resource (such as a node or drive). */ - targetResourceID?: string; - /** The name of the affected resource. */ - targetResourceName?: string; - /** The type of resource being referred to (well-known set of nouns in infrastructure, aligning with Monitoring). */ - targetResourceType?: string; - /** The time in which the HealthCheck was called. */ - timestamp?: Date; - /** Property bag of key value pairs for additional information. */ - additionalData?: string; - /** The name of the services called for the HealthCheck (I.E. Test-AzureStack, Test-Cluster). */ - healthCheckSource?: string; +/** List of switch details for edge device. */ +export interface SwitchDetail { + /** The name of the switch. */ + readonly switchName?: string; + /** The type of the switch. e.g. external, internal. */ + readonly switchType?: string; + /** This represents extensions installed on virtualSwitch. */ + readonly extensions?: SwitchExtension[]; } -export function precheckResultSerializer(item: PrecheckResult): any { +export function switchDetailDeserializer(item: any): SwitchDetail { return { - name: item["name"], - displayName: item["displayName"], - tags: !item["tags"] ? item["tags"] : precheckResultTagsSerializer(item["tags"]), - healthCheckTags: item["healthCheckTags"], - title: item["title"], - status: item["status"], - severity: item["severity"], - description: item["description"], - remediation: item["remediation"], - targetResourceID: item["targetResourceID"], - targetResourceName: item["targetResourceName"], - targetResourceType: item["targetResourceType"], - timestamp: !item["timestamp"] ? item["timestamp"] : item["timestamp"].toISOString(), - additionalData: item["additionalData"], - healthCheckSource: item["healthCheckSource"], + switchName: item["switchName"], + switchType: item["switchType"], + extensions: !item["extensions"] + ? item["extensions"] + : switchExtensionArrayDeserializer(item["extensions"]), }; } -export function precheckResultDeserializer(item: any): PrecheckResult { - return { - name: item["name"], - displayName: item["displayName"], - tags: !item["tags"] ? item["tags"] : precheckResultTagsDeserializer(item["tags"]), - healthCheckTags: item["healthCheckTags"], - title: item["title"], - status: item["status"], - severity: item["severity"], - description: item["description"], - remediation: item["remediation"], - targetResourceID: item["targetResourceID"], - targetResourceName: item["targetResourceName"], - targetResourceType: item["targetResourceType"], - timestamp: !item["timestamp"] ? item["timestamp"] : new Date(item["timestamp"]), - additionalData: item["additionalData"], - healthCheckSource: item["healthCheckSource"], - }; +export function switchExtensionArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return switchExtensionDeserializer(item); + }); } -/** Key-value pairs that allow grouping/filtering individual tests. */ -export interface PrecheckResultTags { - /** Key that allow grouping/filtering individual tests. */ - key?: string; - /** Value of the key that allow grouping/filtering individual tests. */ - value?: string; +/** This represents extensions installed on virtualSwitch. */ +export interface SwitchExtension { + /** Unique identifier for virtualSwitch. */ + readonly switchId?: string; + /** This will show extension name for virtualSwitch. */ + readonly extensionName?: string; + /** This represents whether extension is enabled on virtualSwitch. */ + readonly extensionEnabled?: boolean; } -export function precheckResultTagsSerializer(item: PrecheckResultTags): any { - return { key: item["key"], value: item["value"] }; +export function switchExtensionDeserializer(item: any): SwitchExtension { + return { + switchId: item["switchId"], + extensionName: item["extensionName"], + extensionEnabled: item["extensionEnabled"], + }; } -export function precheckResultTagsDeserializer(item: any): PrecheckResultTags { +/** The HostNetwork of a cluster. */ +export interface HciEdgeDeviceHostNetwork { + /** The network intents assigned to the network reference pattern used for the deployment. Each intent will define its own name, traffic type, adapter names, and overrides as recommended by your OEM. */ + readonly intents?: HciEdgeDeviceIntents[]; + /** List of StorageNetworks config to deploy AzureStackHCI Cluster. */ + readonly storageNetworks?: HciEdgeDeviceStorageNetworks[]; + /** Defines how the storage adapters between nodes are connected either switch or switch less. */ + readonly storageConnectivitySwitchless?: boolean; + /** Optional parameter required only for 3 Nodes Switchless deployments. This allows users to specify IPs and Mask for Storage NICs when Network ATC is not assigning the IPs for storage automatically. */ + readonly enableStorageAutoIp?: boolean; +} + +export function hciEdgeDeviceHostNetworkDeserializer(item: any): HciEdgeDeviceHostNetwork { return { - key: item["key"], - value: item["value"], + intents: !item["intents"] + ? item["intents"] + : hciEdgeDeviceIntentsArrayDeserializer(item["intents"]), + storageNetworks: !item["storageNetworks"] + ? item["storageNetworks"] + : hciEdgeDeviceStorageNetworksArrayDeserializer(item["storageNetworks"]), + storageConnectivitySwitchless: item["storageConnectivitySwitchless"], + enableStorageAutoIp: item["enableStorageAutoIp"], }; } -/** Indicates the importance or impact level of the result. Determines whether the result is informational, a warning, or a critical issue that may block updates. */ -export enum KnownSeverity { - /** A critical issue that blocks updates and requires immediate attention. */ - Critical = "Critical", - /** A warning that may indicate a potential issue but does not block updates. */ - Warning = "Warning", - /** General information that does not indicate any issue. */ - Informational = "Informational", - /** The result is hidden and not shown in the output. */ - Hidden = "Hidden", +export function hciEdgeDeviceIntentsArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return hciEdgeDeviceIntentsDeserializer(item); + }); } -/** - * Indicates the importance or impact level of the result. Determines whether the result is informational, a warning, or a critical issue that may block updates. \ - * {@link KnownSeverity} can be used interchangeably with Severity, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Critical**: A critical issue that blocks updates and requires immediate attention. \ - * **Warning**: A warning that may indicate a potential issue but does not block updates. \ - * **Informational**: General information that does not indicate any issue. \ - * **Hidden**: The result is hidden and not shown in the output. - */ -export type Severity = string; - -/** Indicates how the update content is made available for download. This determines whether the update is sourced locally, from an online repository, or requires user notification. */ -export enum KnownAvailabilityType { - /** The update content is available locally within the environment. */ - Local = "Local", - /** The update content is available from an online source. */ - Online = "Online", - /** The system will notify the user when update content becomes available. */ - Notify = "Notify", +/** The Intents of a cluster. */ +export interface HciEdgeDeviceIntents { + /** Scope for host network intent. */ + readonly scope?: number; + /** IntentType for host network intent. */ + readonly intentType?: number; + /** IsComputeIntentSet for host network intent. */ + readonly isComputeIntentSet?: boolean; + /** IsStorageIntentSet for host network intent. */ + readonly isStorageIntentSet?: boolean; + /** IntentType for host network intent. */ + readonly isOnlyStorage?: boolean; + /** IsManagementIntentSet for host network intent. */ + readonly isManagementIntentSet?: boolean; + /** IsStretchIntentSet for host network intent. */ + readonly isStretchIntentSet?: boolean; + /** IsOnlyStretch for host network intent. */ + readonly isOnlyStretch?: boolean; + /** IsNetworkIntentType for host network intent. */ + readonly isNetworkIntentType?: boolean; + /** Name of the network intent you wish to create. */ + readonly intentName?: string; + /** Array of adapters used for the network intent. */ + readonly intentAdapters?: string[]; + /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. */ + readonly overrideVirtualSwitchConfiguration?: boolean; + /** Set virtualSwitch ConfigurationOverrides for cluster. */ + readonly virtualSwitchConfigurationOverrides?: HciEdgeDeviceVirtualSwitchConfigurationOverrides; + /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. */ + readonly overrideQosPolicy?: boolean; + /** Set QoS PolicyOverrides for cluster. */ + readonly qosPolicyOverrides?: QosPolicyOverrides; + /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. */ + readonly overrideAdapterProperty?: boolean; + /** Set Adapter PropertyOverrides for cluster. */ + readonly adapterPropertyOverrides?: HciEdgeDeviceAdapterPropertyOverrides; } -/** - * Indicates how the update content is made available for download. This determines whether the update is sourced locally, from an online repository, or requires user notification. \ - * {@link KnownAvailabilityType} can be used interchangeably with AvailabilityType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Local**: The update content is available locally within the environment. \ - * **Online**: The update content is available from an online source. \ - * **Notify**: The system will notify the user when update content becomes available. - */ -export type AvailabilityType = string; - -/** Additional information regarding the state of the update. See definition of UpdateStateProperties type below for more details on this property. */ -export interface UpdateStateProperties { - /** Progress percentage of ongoing operation. Currently this property is only valid when the update is in the Downloading state, where it maps to how much of the update content has been downloaded. */ - progressPercentage?: number; - /** Brief message with instructions for updates of AvailabilityType Notify. */ - notifyMessage?: string; +export function hciEdgeDeviceIntentsDeserializer(item: any): HciEdgeDeviceIntents { + return { + scope: item["scope"], + intentType: item["intentType"], + isComputeIntentSet: item["isComputeIntentSet"], + isStorageIntentSet: item["isStorageIntentSet"], + isOnlyStorage: item["isOnlyStorage"], + isManagementIntentSet: item["isManagementIntentSet"], + isStretchIntentSet: item["isStretchIntentSet"], + isOnlyStretch: item["isOnlyStretch"], + isNetworkIntentType: item["isNetworkIntentType"], + intentName: item["intentName"], + intentAdapters: !item["intentAdapters"] + ? item["intentAdapters"] + : item["intentAdapters"].map((p: any) => { + return p; + }), + overrideVirtualSwitchConfiguration: item["overrideVirtualSwitchConfiguration"], + virtualSwitchConfigurationOverrides: !item["virtualSwitchConfigurationOverrides"] + ? item["virtualSwitchConfigurationOverrides"] + : hciEdgeDeviceVirtualSwitchConfigurationOverridesDeserializer( + item["virtualSwitchConfigurationOverrides"], + ), + overrideQosPolicy: item["overrideQosPolicy"], + qosPolicyOverrides: !item["qosPolicyOverrides"] + ? item["qosPolicyOverrides"] + : qosPolicyOverridesDeserializer(item["qosPolicyOverrides"]), + overrideAdapterProperty: item["overrideAdapterProperty"], + adapterPropertyOverrides: !item["adapterPropertyOverrides"] + ? item["adapterPropertyOverrides"] + : hciEdgeDeviceAdapterPropertyOverridesDeserializer(item["adapterPropertyOverrides"]), + }; } -export function updateStatePropertiesSerializer(item: UpdateStateProperties): any { - return { progressPercentage: item["progressPercentage"], notifyMessage: item["notifyMessage"] }; +/** The VirtualSwitchConfigurationOverrides of a cluster. */ +export interface HciEdgeDeviceVirtualSwitchConfigurationOverrides { + /** Enable IoV for Virtual Switch */ + readonly enableIov?: string; + /** Load Balancing Algorithm for Virtual Switch */ + readonly loadBalancingAlgorithm?: string; } -export function updateStatePropertiesDeserializer(item: any): UpdateStateProperties { +export function hciEdgeDeviceVirtualSwitchConfigurationOverridesDeserializer( + item: any, +): HciEdgeDeviceVirtualSwitchConfigurationOverrides { return { - progressPercentage: item["progressPercentage"], - notifyMessage: item["notifyMessage"], + enableIov: item["enableIov"], + loadBalancingAlgorithm: item["loadBalancingAlgorithm"], }; } -/** List of Updates */ -export interface _UpdateList { - /** The Update items on this page */ - value: Update[]; - /** The link to the next page of items */ - nextLink?: string; +/** The AdapterPropertyOverrides of a cluster. */ +export interface HciEdgeDeviceAdapterPropertyOverrides { + /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. */ + readonly jumboPacket?: string; + /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. */ + readonly networkDirect?: string; + /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. Expected values are 'iWARP', 'RoCEv2', 'RoCE' */ + readonly networkDirectTechnology?: string; } -export function _updateListDeserializer(item: any): _UpdateList { +export function hciEdgeDeviceAdapterPropertyOverridesDeserializer( + item: any, +): HciEdgeDeviceAdapterPropertyOverrides { return { - value: updateArrayDeserializer(item["value"]), - nextLink: item["nextLink"], + jumboPacket: item["jumboPacket"], + networkDirect: item["networkDirect"], + networkDirectTechnology: item["networkDirectTechnology"], }; } -export function updateArraySerializer(result: Array): any[] { - return result.map((item) => { - return updateSerializer(item); - }); -} - -export function updateArrayDeserializer(result: Array): any[] { +export function hciEdgeDeviceStorageNetworksArrayDeserializer( + result: Array, +): any[] { return result.map((item) => { - return updateDeserializer(item); + return hciEdgeDeviceStorageNetworksDeserializer(item); }); } -/** Request body for the check updates action on update summaries. */ -export interface CheckUpdatesRequest { - /** Name of update */ - updateName?: string; -} - -export function checkUpdatesRequestSerializer(item: CheckUpdatesRequest): any { - return { updateName: item["updateName"] }; -} - -/** Represents a validated solution recipe resource. */ -export interface ValidatedSolutionRecipe extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: ValidatedSolutionRecipeProperties; +/** The StorageNetworks of a cluster. */ +export interface HciEdgeDeviceStorageNetworks { + /** Name of the storage network. */ + readonly name?: string; + /** Name of the storage network adapter. */ + readonly networkAdapterName?: string; + /** ID specified for the VLAN storage network. This setting is applied to the network interfaces that route the storage and VM migration traffic. */ + readonly storageVlanId?: string; + /** List of Storage adapter physical nodes config to deploy AzureStackHCI Cluster. */ + readonly storageAdapterIPInfo?: HciEdgeDeviceStorageAdapterIPInfo[]; } -export function validatedSolutionRecipeDeserializer(item: any): ValidatedSolutionRecipe { +export function hciEdgeDeviceStorageNetworksDeserializer(item: any): HciEdgeDeviceStorageNetworks { return { - id: item["id"], name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), - properties: !item["properties"] - ? item["properties"] - : validatedSolutionRecipePropertiesDeserializer(item["properties"]), + networkAdapterName: item["networkAdapterName"], + storageVlanId: item["storageVlanId"], + storageAdapterIPInfo: !item["storageAdapterIPInfo"] + ? item["storageAdapterIPInfo"] + : hciEdgeDeviceStorageAdapterIPInfoArrayDeserializer(item["storageAdapterIPInfo"]), }; } -/** Represents properties of a validated solution recipe resource. */ -export interface ValidatedSolutionRecipeProperties { - /** Represents contents of a validated solution recipe. */ - recipeContent: ValidatedSolutionRecipeContent; - /** Represents the signature of the recipe, to be used for ensuring its integrity. */ - signature?: string; -} - -export function validatedSolutionRecipePropertiesDeserializer( - item: any, -): ValidatedSolutionRecipeProperties { - return { - recipeContent: validatedSolutionRecipeContentDeserializer(item["recipeContent"]), - signature: item["signature"], - }; +export function hciEdgeDeviceStorageAdapterIPInfoArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return hciEdgeDeviceStorageAdapterIPInfoDeserializer(item); + }); } -/** Represents contents of a validated solution recipe resource. */ -export interface ValidatedSolutionRecipeContent { - /** Represents information about a validated solution recipe. */ - info: ValidatedSolutionRecipeInfo; - /** Represents capabilities available in a validated solution recipe. */ - capabilities?: ValidatedSolutionRecipeCapabilities; - /** Represents components available in a validated solution recipe. */ - components: ValidatedSolutionRecipeComponent[]; +/** The StorageAdapter physical nodes of a cluster. */ +export interface HciEdgeDeviceStorageAdapterIPInfo { + /** storage adapter physical node name. */ + readonly physicalNode?: string; + /** The IPv4 address assigned to each storage adapter physical node on your Azure Stack HCI cluster. */ + readonly ipv4Address?: string; + /** The SubnetMask address assigned to each storage adapter physical node on your Azure Stack HCI cluster. */ + readonly subnetMask?: string; } -export function validatedSolutionRecipeContentDeserializer( +export function hciEdgeDeviceStorageAdapterIPInfoDeserializer( item: any, -): ValidatedSolutionRecipeContent { +): HciEdgeDeviceStorageAdapterIPInfo { return { - info: validatedSolutionRecipeInfoDeserializer(item["info"]), - capabilities: !item["capabilities"] - ? item["capabilities"] - : validatedSolutionRecipeCapabilitiesDeserializer(item["capabilities"]), - components: validatedSolutionRecipeComponentArrayDeserializer(item["components"]), + physicalNode: item["physicalNode"], + ipv4Address: item["ipv4Address"], + subnetMask: item["subnetMask"], }; } -/** Represents information about a validated solution recipe. */ -export interface ValidatedSolutionRecipeInfo { - /** Represents the solution type for which this validated solution recipe is applicable. */ - solutionType: string; - /** Represents the version for which this validated solution recipe is applicable. */ - version: string; +/** OS configurations for HCI device. */ +export interface HciOsProfile { + /** The boot type of the device. e.g. UEFI, Legacy etc */ + readonly bootType?: string; + /** Version of assembly present on device */ + readonly assemblyVersion?: string; } -export function validatedSolutionRecipeInfoDeserializer(item: any): ValidatedSolutionRecipeInfo { +export function hciOsProfileDeserializer(item: any): HciOsProfile { return { - solutionType: item["solutionType"], - version: item["version"], + bootType: item["bootType"], + assemblyVersion: item["assemblyVersion"], }; } -/** Represents capabilities available in a validated solution recipe. */ -export interface ValidatedSolutionRecipeCapabilities { - /** Represents the cluster capabilities. */ - clusterCapabilities: ValidatedSolutionRecipeCapability[]; - /** Represents the node capabilities. */ - nodeCapabilities: ValidatedSolutionRecipeCapability[]; +/** Solution builder extension (SBE) deployment package information. */ +export interface SbeDeploymentPackageInfo { + /** SBE deployment validation code. */ + readonly code?: string; + /** A detailed message that explains the SBE package validation result. */ + readonly message?: string; + /** This represents discovered update results for matching updates and store it as SBE manifest. */ + readonly sbeManifest?: string; } -export function validatedSolutionRecipeCapabilitiesDeserializer( - item: any, -): ValidatedSolutionRecipeCapabilities { +export function sbeDeploymentPackageInfoDeserializer(item: any): SbeDeploymentPackageInfo { return { - clusterCapabilities: validatedSolutionRecipeCapabilityArrayDeserializer( - item["clusterCapabilities"], - ), - nodeCapabilities: validatedSolutionRecipeCapabilityArrayDeserializer(item["nodeCapabilities"]), + code: item["code"], + message: item["message"], + sbeManifest: item["sbeManifest"], }; } -export function validatedSolutionRecipeCapabilityArrayDeserializer( - result: Array, -): any[] { - return result.map((item) => { - return validatedSolutionRecipeCapabilityDeserializer(item); - }); -} - -/** Represents capability available in a validated solution recipe. */ -export interface ValidatedSolutionRecipeCapability { - /** Represents the capability name. */ - capabilityName: string; +/** Storage configurations for HCI device. */ +export interface HciStorageProfile { + /** Number of storage disks in the device with $CanPool as true. */ + readonly poolableDisksCount?: number; + /** List of storage disks on the device. */ + readonly disks?: EdgeDeviceDisks[]; } -export function validatedSolutionRecipeCapabilityDeserializer( - item: any, -): ValidatedSolutionRecipeCapability { +export function hciStorageProfileDeserializer(item: any): HciStorageProfile { return { - capabilityName: item["capabilityName"], + poolableDisksCount: item["poolableDisksCount"], + disks: !item["disks"] ? item["disks"] : edgeDeviceDisksArrayDeserializer(item["disks"]), }; } -export function validatedSolutionRecipeComponentArrayDeserializer( - result: Array, -): any[] { +export function edgeDeviceDisksArrayDeserializer(result: Array): any[] { return result.map((item) => { - return validatedSolutionRecipeComponentDeserializer(item); + return edgeDeviceDisksDeserializer(item); }); } -/** Represents component available in a validated solution recipe. */ -export interface ValidatedSolutionRecipeComponent { - /** Represents the component's name. */ - name: string; - /** Represents the component's type. */ - type: string; - /** Represents the component's required version. */ - requiredVersion?: string; - /** Represents the component's install order. */ - installOrder?: number; - /** Represents the component's tags. */ - tags: string[]; - /** Represents the component's payloads. */ - payloads?: ValidatedSolutionRecipeComponentPayload[]; - /** Represents the component's metadata. */ - metadata?: ValidatedSolutionRecipeComponentMetadata; +/** Represents a storage disk on the device. */ +export interface EdgeDeviceDisks { + /** The unique identifier of the disk. */ + readonly id: string; + /** The size of the disk in bytes. */ + readonly sizeInBytes?: string; + /** The type of the disk. For example, S2D or SAN. */ + readonly type?: string; + /** Model number of the hardware. */ + readonly model?: string; + /** The manufacturer of the disk. */ + readonly manufacturer?: string; + /** Indicates whether the manufacturer is supported. */ + readonly isSupported?: boolean; } -export function validatedSolutionRecipeComponentDeserializer( - item: any, -): ValidatedSolutionRecipeComponent { +export function edgeDeviceDisksDeserializer(item: any): EdgeDeviceDisks { return { - name: item["name"], + id: item["id"], + sizeInBytes: item["sizeInBytes"], type: item["type"], - requiredVersion: item["requiredVersion"], - installOrder: item["installOrder"], - tags: item["tags"].map((p: any) => { - return p; - }), - payloads: !item["payloads"] - ? item["payloads"] - : validatedSolutionRecipeComponentPayloadArrayDeserializer(item["payloads"]), - metadata: !item["metadata"] - ? item["metadata"] - : validatedSolutionRecipeComponentMetadataDeserializer(item["metadata"]), + model: item["model"], + manufacturer: item["manufacturer"], + isSupported: item["isSupported"], }; } -export function validatedSolutionRecipeComponentPayloadArrayDeserializer( - result: Array, -): any[] { - return result.map((item) => { - return validatedSolutionRecipeComponentPayloadDeserializer(item); - }); +/** Hardware configurations for HCI device. */ +export interface HciHardwareProfile { + /** Process type of the device */ + readonly processorType?: string; } -/** Represents payloads associated with a component available in a validated solution recipe. */ -export interface ValidatedSolutionRecipeComponentPayload { - /** Represents the unique identifier of the payload used to query the URL. */ - identifier: string; - /** Represents the cryptographic hash of the payload, ensuring data integrity. */ - hash: string; - /** Represents the name of the file associated with the payload. */ - fileName: string; - /** Represents the URL from which the payload can be downloaded. */ - url: string; +export function hciHardwareProfileDeserializer(item: any): HciHardwareProfile { + return { + processorType: item["processorType"], + }; } -export function validatedSolutionRecipeComponentPayloadDeserializer( - item: any, -): ValidatedSolutionRecipeComponentPayload { +/** Reported properties pushed from edge device. */ +export interface ReportedProperties { + /** edge device state. */ + readonly deviceState?: DeviceState; + /** Extensions details for edge device. */ + readonly extensionProfile?: ExtensionProfile; + /** Most recent edge device sync timestamp in UTC. */ + readonly lastSyncTimestamp?: Date; +} + +export function reportedPropertiesDeserializer(item: any): ReportedProperties { return { - identifier: item["identifier"], - hash: item["hash"], - fileName: item["fileName"], - url: item["url"], + deviceState: item["deviceState"], + extensionProfile: !item["extensionProfile"] + ? item["extensionProfile"] + : extensionProfileDeserializer(item["extensionProfile"]), + lastSyncTimestamp: !item["lastSyncTimestamp"] + ? item["lastSyncTimestamp"] + : new Date(item["lastSyncTimestamp"]), }; } -/** Represents metadata associated with a component available in a validated solution recipe. */ -export interface ValidatedSolutionRecipeComponentMetadata { - /** Represents the type of extension. */ - extensionType?: string; - /** Represents the publisher of the extension. */ - publisher?: string; - /** Indicates whether automatic upgrades of the extension are enabled. */ - enableAutomaticUpgrade?: boolean; - /** Indicates whether the LCM (Lifecycle Management) update of the extension is enabled. */ - lcmUpdate?: boolean; - /** Specifies the catalog to which the extension belongs. */ - catalog?: string; - /** Specifies the ring to which the extension belongs, internally used by component. */ - ring?: string; - /** Specifies the release train to which given component belongs. */ - releaseTrain?: string; - /** Specifies the link associated with the extension. */ - link?: string; - /** Specifies the name of the extension. */ - name?: string; - /** Specifies the expected hash of the extension. */ - expectedHash?: string; - /** Specifies the preview source of the extension. */ - previewSource?: string; +/** The edge device state. */ +export enum KnownDeviceState { + /** The edge device state is not specified. */ + NotSpecified = "NotSpecified", + /** The edge device state is in connected state. */ + Connected = "Connected", + /** The edge device state is in disconnected state. */ + Disconnected = "Disconnected", + /** The edge device state is in repairing state. */ + Repairing = "Repairing", + /** The edge device state is in draining state. */ + Draining = "Draining", + /** The edge device state is in maintenance state. */ + InMaintenance = "InMaintenance", + /** The edge device state is in resuming state. */ + Resuming = "Resuming", + /** The edge device state is in processing state. */ + Processing = "Processing", } -export function validatedSolutionRecipeComponentMetadataDeserializer( - item: any, -): ValidatedSolutionRecipeComponentMetadata { +/** + * The edge device state. \ + * {@link KnownDeviceState} can be used interchangeably with DeviceState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotSpecified**: The edge device state is not specified. \ + * **Connected**: The edge device state is in connected state. \ + * **Disconnected**: The edge device state is in disconnected state. \ + * **Repairing**: The edge device state is in repairing state. \ + * **Draining**: The edge device state is in draining state. \ + * **InMaintenance**: The edge device state is in maintenance state. \ + * **Resuming**: The edge device state is in resuming state. \ + * **Processing**: The edge device state is in processing state. + */ +export type DeviceState = string; + +/** Extensions details for edge device. */ +export interface ExtensionProfile { + /** List of Arc extensions installed on edge device. */ + readonly extensions?: HciEdgeDeviceArcExtension[]; +} + +export function extensionProfileDeserializer(item: any): ExtensionProfile { return { - extensionType: item["extensionType"], - publisher: item["publisher"], - enableAutomaticUpgrade: item["enableAutomaticUpgrade"], - lcmUpdate: item["lcmUpdate"], - catalog: item["catalog"], - ring: item["ring"], - releaseTrain: item["releaseTrain"], - link: item["link"], - name: item["name"], - expectedHash: item["expectedHash"], - previewSource: item["previewSource"], + extensions: !item["extensions"] + ? item["extensions"] + : hciEdgeDeviceArcExtensionArrayDeserializer(item["extensions"]), }; } -/** The response of a ValidatedSolutionRecipe list operation. */ -export interface _ValidatedSolutionRecipeListResult { - /** The ValidatedSolutionRecipe items on this page */ - value: ValidatedSolutionRecipe[]; - /** The link to the next page of items */ - nextLink?: string; +export function hciEdgeDeviceArcExtensionArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return hciEdgeDeviceArcExtensionDeserializer(item); + }); } -export function _validatedSolutionRecipeListResultDeserializer( - item: any, -): _ValidatedSolutionRecipeListResult { +/** Arc extension installed on edge device. */ +export interface HciEdgeDeviceArcExtension { + /** Arc extension name installed on edge device. */ + readonly extensionName?: string; + /** Arc extension state from arc machine extension. */ + readonly state?: ArcExtensionState; + /** Error details while installing Arc extension. */ + readonly errorDetails?: HciValidationFailureDetail[]; + /** Arc Extension Azure resource id. */ + readonly extensionResourceId?: string; + /** Extension version installed. */ + readonly typeHandlerVersion?: string; + /** Indicates whether the extension is managed by the user or by Azure. */ + readonly managedBy?: ExtensionManagedBy; +} + +export function hciEdgeDeviceArcExtensionDeserializer(item: any): HciEdgeDeviceArcExtension { return { - value: validatedSolutionRecipeArrayDeserializer(item["value"]), - nextLink: item["nextLink"], + extensionName: item["extensionName"], + state: item["state"], + errorDetails: !item["errorDetails"] + ? item["errorDetails"] + : hciValidationFailureDetailArrayDeserializer(item["errorDetails"]), + extensionResourceId: item["extensionResourceId"], + typeHandlerVersion: item["typeHandlerVersion"], + managedBy: item["managedBy"], }; } -export function validatedSolutionRecipeArrayDeserializer( - result: Array, +/** Arc extension installation state. */ +export enum KnownArcExtensionState { + /** Arc extension state is not specified. */ + NotSpecified = "NotSpecified", + /** Arc extension state is Succeeded. */ + Succeeded = "Succeeded", + /** Arc extension state is Failed. */ + Failed = "Failed", + /** Arc extension state is Canceled. */ + Canceled = "Canceled", + /** Arc extension state is Accepted when extension installation triggered. */ + Accepted = "Accepted", + /** Arc extension is in Creating State. */ + Creating = "Creating", + /** Arc extension is in Updating State. */ + Updating = "Updating", + /** Arc extension is in Moving State. */ + Moving = "Moving", + /** Arc extension is in Deleting State. */ + Deleting = "Deleting", + /** Arc extension is in Deleted State. */ + Deleted = "Deleted", +} + +/** + * Arc extension installation state. \ + * {@link KnownArcExtensionState} can be used interchangeably with ArcExtensionState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotSpecified**: Arc extension state is not specified. \ + * **Succeeded**: Arc extension state is Succeeded. \ + * **Failed**: Arc extension state is Failed. \ + * **Canceled**: Arc extension state is Canceled. \ + * **Accepted**: Arc extension state is Accepted when extension installation triggered. \ + * **Creating**: Arc extension is in Creating State. \ + * **Updating**: Arc extension is in Updating State. \ + * **Moving**: Arc extension is in Moving State. \ + * **Deleting**: Arc extension is in Deleting State. \ + * **Deleted**: Arc extension is in Deleted State. + */ +export type ArcExtensionState = string; + +export function hciValidationFailureDetailArrayDeserializer( + result: Array, ): any[] { return result.map((item) => { - return validatedSolutionRecipeDeserializer(item); + return hciValidationFailureDetailDeserializer(item); }); } -/** EdgeMachine details. */ -export interface EdgeMachine extends TrackedResource { - /** The resource-specific properties for this resource. */ - properties?: EdgeMachineProperties; - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; -} - -export function edgeMachineSerializer(item: EdgeMachine): any { - return { - tags: item["tags"], - location: item["location"], - properties: !item["properties"] - ? item["properties"] - : edgeMachinePropertiesSerializer(item["properties"]), - identity: !item["identity"] - ? item["identity"] - : managedServiceIdentitySerializer(item["identity"]), - }; -} - -export function edgeMachineDeserializer(item: any): EdgeMachine { - return { - tags: !item["tags"] - ? item["tags"] - : Object.fromEntries(Object.entries(item["tags"]).map(([k, p]: [string, any]) => [k, p])), - location: item["location"], - id: item["id"], - name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), - properties: !item["properties"] - ? item["properties"] - : edgeMachinePropertiesDeserializer(item["properties"]), - identity: !item["identity"] - ? item["identity"] - : managedServiceIdentityDeserializer(item["identity"]), - }; -} - -/** Properties for edge machine. */ -export interface EdgeMachineProperties { - /** Edge Machine type. */ - edgeMachineKind?: EdgeMachineKind; - /** The provisioning state of a resource. */ - readonly provisioningState?: ProvisioningState; - /** Unique, immutable resource id. */ - readonly cloudId?: string; - /** Optional property to create arc machine in custom resource group. */ - arcMachineResourceGroupId?: string; - /** Arc machine instance resource id. */ - arcMachineResourceId?: string; - /** Link to Arc Gateway ARM resource Id */ - arcGatewayResourceId?: string; - /** Service fetches common configuration from site. */ - siteDetails?: SiteDetails; - /** Ownership voucher details for provisioned machine. */ - ownershipVoucherDetails?: OwnershipVoucherDetails; - /** Details for device provisioning. */ - provisioningDetails?: ProvisioningDetails; - /** A machine can only be assigned to single device pool */ - readonly devicePoolResourceId?: string; - /** OS configuration status details */ - readonly machineState?: EdgeMachineState; - /** machine connectivity status */ - readonly connectivityStatus?: EdgeMachineConnectivityStatus; - /** Tracks the ID of the consuming resource, setting the machine as in-use. */ - readonly claimedBy?: string; - /** Reported properties for edge machine. */ - readonly reportedProperties?: EdgeMachineReportedProperties; - /** operation status details for edge machine. */ - readonly operationDetails?: OperationDetail[]; - /** Last time data updated to service. */ - readonly lastSyncTimestamp?: Date; -} - -export function edgeMachinePropertiesSerializer(item: EdgeMachineProperties): any { - return { - edgeMachineKind: item["edgeMachineKind"], - arcMachineResourceGroupId: item["arcMachineResourceGroupId"], - arcMachineResourceId: item["arcMachineResourceId"], - arcGatewayResourceId: item["arcGatewayResourceId"], - siteDetails: !item["siteDetails"] - ? item["siteDetails"] - : siteDetailsSerializer(item["siteDetails"]), - ownershipVoucherDetails: !item["ownershipVoucherDetails"] - ? item["ownershipVoucherDetails"] - : ownershipVoucherDetailsSerializer(item["ownershipVoucherDetails"]), - provisioningDetails: !item["provisioningDetails"] - ? item["provisioningDetails"] - : provisioningDetailsSerializer(item["provisioningDetails"]), - }; +/** details of validation failure */ +export interface HciValidationFailureDetail { + /** Exception details while installing extension. */ + readonly exception?: string; } -export function edgeMachinePropertiesDeserializer(item: any): EdgeMachineProperties { +export function hciValidationFailureDetailDeserializer(item: any): HciValidationFailureDetail { return { - edgeMachineKind: item["edgeMachineKind"], - provisioningState: item["provisioningState"], - cloudId: item["cloudId"], - arcMachineResourceGroupId: item["arcMachineResourceGroupId"], - arcMachineResourceId: item["arcMachineResourceId"], - arcGatewayResourceId: item["arcGatewayResourceId"], - siteDetails: !item["siteDetails"] - ? item["siteDetails"] - : siteDetailsDeserializer(item["siteDetails"]), - ownershipVoucherDetails: !item["ownershipVoucherDetails"] - ? item["ownershipVoucherDetails"] - : ownershipVoucherDetailsDeserializer(item["ownershipVoucherDetails"]), - provisioningDetails: !item["provisioningDetails"] - ? item["provisioningDetails"] - : provisioningDetailsDeserializer(item["provisioningDetails"]), - devicePoolResourceId: item["devicePoolResourceId"], - machineState: item["machineState"], - connectivityStatus: item["connectivityStatus"], - claimedBy: item["claimedBy"], - reportedProperties: !item["reportedProperties"] - ? item["reportedProperties"] - : edgeMachineReportedPropertiesDeserializer(item["reportedProperties"]), - operationDetails: !item["operationDetails"] - ? item["operationDetails"] - : operationDetailArrayDeserializer(item["operationDetails"]), - lastSyncTimestamp: !item["lastSyncTimestamp"] - ? item["lastSyncTimestamp"] - : new Date(item["lastSyncTimestamp"]), + exception: item["exception"], }; } -/** Edge Machine Kind. */ -export enum KnownEdgeMachineKind { - /** EdgeMachine resource created using Zero-touch provisioning. */ - Standard = "Standard", - /** EdgeMachine resource created for brownfield HCI customers without zero touch provisioning. */ - Dedicated = "Dedicated", +/** Indicates whether the extension is managed by the user or by Azure. */ +export enum KnownExtensionManagedBy { + /** The extension is managed by the user. */ + User = "User", + /** The extension is managed by Azure. */ + Azure = "Azure", } /** - * Edge Machine Kind. \ - * {@link KnownEdgeMachineKind} can be used interchangeably with EdgeMachineKind, + * Indicates whether the extension is managed by the user or by Azure. \ + * {@link KnownExtensionManagedBy} can be used interchangeably with ExtensionManagedBy, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Standard**: EdgeMachine resource created using Zero-touch provisioning. \ - * **Dedicated**: EdgeMachine resource created for brownfield HCI customers without zero touch provisioning. + * **User**: The extension is managed by the user. \ + * **Azure**: The extension is managed by Azure. */ -export type EdgeMachineKind = string; +export type ExtensionManagedBy = string; -/** Site Details consists of common configurations. */ -export interface SiteDetails { - /** Site resource Id to be set during Edge Machine resource creation. */ - siteResourceId: string; - /** Edge Device configuration received from site common configuration. */ - deviceConfiguration?: TargetDeviceConfiguration; +/** Edge Device properties */ +export interface EdgeDeviceProperties { + /** Device Configuration */ + deviceConfiguration?: DeviceConfiguration; + /** Provisioning state of edgeDevice resource */ + readonly provisioningState?: ProvisioningState; } -export function siteDetailsSerializer(item: SiteDetails): any { +export function edgeDevicePropertiesSerializer(item: EdgeDeviceProperties): any { return { - siteResourceId: item["siteResourceId"], deviceConfiguration: !item["deviceConfiguration"] ? item["deviceConfiguration"] - : targetDeviceConfigurationSerializer(item["deviceConfiguration"]), + : deviceConfigurationSerializer(item["deviceConfiguration"]), }; } -export function siteDetailsDeserializer(item: any): SiteDetails { +export function edgeDevicePropertiesDeserializer(item: any): EdgeDeviceProperties { return { - siteResourceId: item["siteResourceId"], deviceConfiguration: !item["deviceConfiguration"] ? item["deviceConfiguration"] - : targetDeviceConfigurationDeserializer(item["deviceConfiguration"]), - }; -} - -/** Device configuration. */ -export interface TargetDeviceConfiguration { - /** Network configuration. */ - network?: NetworkConfiguration; - /** Hostname of the device. */ - hostName?: string; - /** Web proxy configuration. */ - webProxy?: WebProxyConfiguration; - /** Time configuration. */ - time?: TimeConfiguration; - /** Storage configuration. */ - storage?: StorageConfiguration; -} - -export function targetDeviceConfigurationSerializer(item: TargetDeviceConfiguration): any { - return { - network: !item["network"] ? item["network"] : networkConfigurationSerializer(item["network"]), - hostName: item["hostName"], - webProxy: !item["webProxy"] - ? item["webProxy"] - : webProxyConfigurationSerializer(item["webProxy"]), - time: !item["time"] ? item["time"] : timeConfigurationSerializer(item["time"]), - storage: !item["storage"] ? item["storage"] : storageConfigurationSerializer(item["storage"]), - }; -} - -export function targetDeviceConfigurationDeserializer(item: any): TargetDeviceConfiguration { - return { - network: !item["network"] ? item["network"] : networkConfigurationDeserializer(item["network"]), - hostName: item["hostName"], - webProxy: !item["webProxy"] - ? item["webProxy"] - : webProxyConfigurationDeserializer(item["webProxy"]), - time: !item["time"] ? item["time"] : timeConfigurationDeserializer(item["time"]), - storage: !item["storage"] ? item["storage"] : storageConfigurationDeserializer(item["storage"]), + : deviceConfigurationDeserializer(item["deviceConfiguration"]), + provisioningState: item["provisioningState"], }; } -/** Network configuration. */ -export interface NetworkConfiguration { - /** List of network adapters. */ - networkAdapters?: NetworkAdapter[]; +/** The device Configuration for edge device. */ +export interface DeviceConfiguration { + /** NIC Details of device */ + nicDetails?: NicDetail[]; + /** Device metadata details. */ + deviceMetadata?: string; } -export function networkConfigurationSerializer(item: NetworkConfiguration): any { +export function deviceConfigurationSerializer(item: DeviceConfiguration): any { return { - networkAdapters: !item["networkAdapters"] - ? item["networkAdapters"] - : networkAdapterArraySerializer(item["networkAdapters"]), + nicDetails: !item["nicDetails"] + ? item["nicDetails"] + : nicDetailArraySerializer(item["nicDetails"]), + deviceMetadata: item["deviceMetadata"], }; } -export function networkConfigurationDeserializer(item: any): NetworkConfiguration { +export function deviceConfigurationDeserializer(item: any): DeviceConfiguration { return { - networkAdapters: !item["networkAdapters"] - ? item["networkAdapters"] - : networkAdapterArrayDeserializer(item["networkAdapters"]), + nicDetails: !item["nicDetails"] + ? item["nicDetails"] + : nicDetailArrayDeserializer(item["nicDetails"]), + deviceMetadata: item["deviceMetadata"], }; } -export function networkAdapterArraySerializer(result: Array): any[] { +export function nicDetailArraySerializer(result: Array): any[] { return result.map((item) => { - return networkAdapterSerializer(item); + return nicDetailSerializer(item); }); } -export function networkAdapterArrayDeserializer(result: Array): any[] { +export function nicDetailArrayDeserializer(result: Array): any[] { return result.map((item) => { - return networkAdapterDeserializer(item); + return nicDetailDeserializer(item); }); } -/** Network adapter configuration. */ -export interface NetworkAdapter { - /** Type of IP assignment. */ - ipAssignmentType: IpAssignmentType; - /** IP address. */ - ipAddress?: string; - /** Adapter Name. */ +/** The NIC Detail of a device. */ +export interface NicDetail { + /** Adapter Name of NIC */ adapterName?: string; - /** MAC address. */ - macAddress?: string; - /** IP address range. */ - ipAddressRange?: IpAddressRange; - /** Gateway id. */ - gateway?: string; - /** Subnet mask. */ + /** Interface Description of NIC */ + interfaceDescription?: string; + /** Component Id of NIC */ + componentId?: string; + /** Driver Version of NIC */ + driverVersion?: string; + /** Subnet Mask of NIC */ + ip4Address?: string; + /** Subnet Mask of NIC */ subnetMask?: string; - /** Array of DNS addresses. */ - dnsAddressArray?: string[]; - /** VLAN ID for the network setup. */ - vlanId?: string; + /** Default Gateway of NIC */ + defaultGateway?: string; + /** DNS Servers for NIC */ + dnsServers?: string[]; + /** Default Isolation of Management NIC */ + defaultIsolationId?: string; } -export function networkAdapterSerializer(item: NetworkAdapter): any { +export function nicDetailSerializer(item: NicDetail): any { return { - ipAssignmentType: item["ipAssignmentType"], - ipAddress: item["ipAddress"], adapterName: item["adapterName"], - macAddress: item["macAddress"], - ipAddressRange: !item["ipAddressRange"] - ? item["ipAddressRange"] - : ipAddressRangeSerializer(item["ipAddressRange"]), - gateway: item["gateway"], + interfaceDescription: item["interfaceDescription"], + componentId: item["componentId"], + driverVersion: item["driverVersion"], + ip4Address: item["ip4Address"], subnetMask: item["subnetMask"], - dnsAddressArray: !item["dnsAddressArray"] - ? item["dnsAddressArray"] - : item["dnsAddressArray"].map((p: any) => { + defaultGateway: item["defaultGateway"], + dnsServers: !item["dnsServers"] + ? item["dnsServers"] + : item["dnsServers"].map((p: any) => { return p; }), - vlanId: item["vlanId"], + defaultIsolationId: item["defaultIsolationId"], }; } -export function networkAdapterDeserializer(item: any): NetworkAdapter { +export function nicDetailDeserializer(item: any): NicDetail { return { - ipAssignmentType: item["ipAssignmentType"], - ipAddress: item["ipAddress"], adapterName: item["adapterName"], - macAddress: item["macAddress"], - ipAddressRange: !item["ipAddressRange"] - ? item["ipAddressRange"] - : ipAddressRangeDeserializer(item["ipAddressRange"]), - gateway: item["gateway"], + interfaceDescription: item["interfaceDescription"], + componentId: item["componentId"], + driverVersion: item["driverVersion"], + ip4Address: item["ip4Address"], subnetMask: item["subnetMask"], - dnsAddressArray: !item["dnsAddressArray"] - ? item["dnsAddressArray"] - : item["dnsAddressArray"].map((p: any) => { - return p; - }), - vlanId: item["vlanId"], - }; -} - -/** IP assignment types */ -export enum KnownIpAssignmentType { - /** Automatic IP assignment */ - Automatic = "Automatic", - /** Manual IP assignment */ - Manual = "Manual", -} - -/** - * IP assignment types \ - * {@link KnownIpAssignmentType} can be used interchangeably with IpAssignmentType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Automatic**: Automatic IP assignment \ - * **Manual**: Manual IP assignment - */ -export type IpAssignmentType = string; - -/** IP address range configuration. */ -export interface IpAddressRange { - /** Start IP address. */ - startIp: string; - /** End IP address. */ - endIp: string; -} - -export function ipAddressRangeSerializer(item: IpAddressRange): any { - return { startIp: item["startIp"], endIp: item["endIp"] }; -} - -export function ipAddressRangeDeserializer(item: any): IpAddressRange { - return { - startIp: item["startIp"], - endIp: item["endIp"], - }; -} - -/** Web proxy configuration. */ -export interface WebProxyConfiguration { - /** Connection URI of the web proxy. */ - connectionUri?: string; - /** Port of the web proxy. */ - port?: string; - /** Bypass list for the web proxy. */ - bypassList?: string[]; -} - -export function webProxyConfigurationSerializer(item: WebProxyConfiguration): any { - return { - connectionUri: item["connectionUri"], - port: item["port"], - bypassList: !item["bypassList"] - ? item["bypassList"] - : item["bypassList"].map((p: any) => { - return p; - }), - }; -} - -export function webProxyConfigurationDeserializer(item: any): WebProxyConfiguration { - return { - connectionUri: item["connectionUri"], - port: item["port"], - bypassList: !item["bypassList"] - ? item["bypassList"] - : item["bypassList"].map((p: any) => { + defaultGateway: item["defaultGateway"], + dnsServers: !item["dnsServers"] + ? item["dnsServers"] + : item["dnsServers"].map((p: any) => { return p; }), + defaultIsolationId: item["defaultIsolationId"], }; } -/** Time configuration. */ -export interface TimeConfiguration { - /** Primary NTP server. */ - primaryTimeServer?: string; - /** Secondary NTP server. */ - secondaryTimeServer?: string; - /** Time zone. */ - timeZone?: string; -} - -export function timeConfigurationSerializer(item: TimeConfiguration): any { - return { - primaryTimeServer: item["primaryTimeServer"], - secondaryTimeServer: item["secondaryTimeServer"], - timeZone: item["timeZone"], - }; -} - -export function timeConfigurationDeserializer(item: any): TimeConfiguration { - return { - primaryTimeServer: item["primaryTimeServer"], - secondaryTimeServer: item["secondaryTimeServer"], - timeZone: item["timeZone"], - }; -} - -/** Storage configuration. */ -export interface StorageConfiguration { - /** Partition size. */ - partitionSize?: string; -} - -export function storageConfigurationSerializer(item: StorageConfiguration): any { - return { partitionSize: item["partitionSize"] }; -} - -export function storageConfigurationDeserializer(item: any): StorageConfiguration { - return { - partitionSize: item["partitionSize"], - }; -} - -/** Details for ownership voucher. */ -export interface OwnershipVoucherDetails { - /** Ownership voucher in base64 encoded format */ - ownershipVoucher: string; - /** Owner key type */ - ownerKeyType: OwnerKeyType; - /** Ownership Voucher Validation Details */ - readonly validationDetails?: OwnershipVoucherValidationDetails; -} - -export function ownershipVoucherDetailsSerializer(item: OwnershipVoucherDetails): any { - return { ownershipVoucher: item["ownershipVoucher"], ownerKeyType: item["ownerKeyType"] }; -} - -export function ownershipVoucherDetailsDeserializer(item: any): OwnershipVoucherDetails { - return { - ownershipVoucher: item["ownershipVoucher"], - ownerKeyType: item["ownerKeyType"], - validationDetails: !item["validationDetails"] - ? item["validationDetails"] - : ownershipVoucherValidationDetailsDeserializer(item["validationDetails"]), - }; -} - -/** Type of owner key in the voucher */ -export enum KnownOwnerKeyType { - /** Owner is Microsoft managed key */ - MicrosoftManaged = "MicrosoftManaged", -} - -/** - * Type of owner key in the voucher \ - * {@link KnownOwnerKeyType} can be used interchangeably with OwnerKeyType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **MicrosoftManaged**: Owner is Microsoft managed key - */ -export type OwnerKeyType = string; - -/** Ownership Voucher Validation Details */ -export interface OwnershipVoucherValidationDetails { - /** The ownership voucher validation status. */ - validationStatus?: OwnershipVoucherValidationStatus; - /** Serial number of the device. */ - serialNumber?: string; - /** FDO guid of the Ownership Voucher. */ - id?: string; - /** Name of the manufacturer. */ - manufacturer?: string; - /** Name of the model. */ - modelName?: string; - /** Version of the Ownership Voucher format */ - version?: string; - /** Azure Machine Id of the Ownership voucher */ - azureMachineId?: string; - /** Error details if the validation failed. */ - error?: ErrorDetail; +/** The response of a EdgeDevice list operation. */ +export interface _EdgeDeviceListResult { + /** The EdgeDevice items on this page */ + value: EdgeDeviceUnion[]; + /** The link to the next page of items */ + nextLink?: string; } -export function ownershipVoucherValidationDetailsDeserializer( - item: any, -): OwnershipVoucherValidationDetails { +export function _edgeDeviceListResultDeserializer(item: any): _EdgeDeviceListResult { return { - validationStatus: item["validationStatus"], - serialNumber: item["serialNumber"], - id: item["id"], - manufacturer: item["manufacturer"], - modelName: item["modelName"], - version: item["version"], - azureMachineId: item["azureMachineId"], - error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]), + value: edgeDeviceUnionArrayDeserializer(item["value"]), + nextLink: item["nextLink"], }; } -/** Ownership Voucher validation Status. */ -export enum KnownOwnershipVoucherValidationStatus { - /** Voucher evaluated as valid. */ - Valid = "Valid", - /** Voucher evaluated as invalid. */ - Invalid = "Invalid", +export function edgeDeviceUnionArraySerializer(result: Array): any[] { + return result.map((item) => { + return edgeDeviceUnionSerializer(item); + }); } -/** - * Ownership Voucher validation Status. \ - * {@link KnownOwnershipVoucherValidationStatus} can be used interchangeably with OwnershipVoucherValidationStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Valid**: Voucher evaluated as valid. \ - * **Invalid**: Voucher evaluated as invalid. - */ -export type OwnershipVoucherValidationStatus = string; +export function edgeDeviceUnionArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return edgeDeviceUnionDeserializer(item); + }); +} -/** Details for device provisioning. */ -export interface ProvisioningDetails { - /** Operating system profile. */ - osProfile: OsProvisionProfile; - /** User configuration. */ - userDetails?: UserDetails[]; +/** The validate request for Edge Device. */ +export interface ValidateRequest { + /** Node Ids against which, current node has to be validated. */ + edgeDeviceIds: string[]; + /** Additional info required for validation. */ + additionalInfo?: string; } -export function provisioningDetailsSerializer(item: ProvisioningDetails): any { +export function validateRequestSerializer(item: ValidateRequest): any { return { - osProfile: osProvisionProfileSerializer(item["osProfile"]), - userDetails: !item["userDetails"] - ? item["userDetails"] - : userDetailsArraySerializer(item["userDetails"]), + edgeDeviceIds: item["edgeDeviceIds"].map((p: any) => { + return p; + }), + additionalInfo: item["additionalInfo"], }; } -export function provisioningDetailsDeserializer(item: any): ProvisioningDetails { +/** An Accepted response with an Operation-Location header. */ +export interface ValidateResponse { + /** edge device validation status */ + readonly status?: string; +} + +export function validateResponseDeserializer(item: any): ValidateResponse { return { - osProfile: osProvisionProfileDeserializer(item["osProfile"]), - userDetails: !item["userDetails"] - ? item["userDetails"] - : userDetailsArrayDeserializer(item["userDetails"]), + status: item["status"], }; } -/** Operating system profile. */ -export interface OsProvisionProfile { - /** Name of the operating system. */ - osName?: string; - /** Type of the operating system. */ - osType?: string; - /** Version of the operating system. */ - osVersion?: string; - /** Location of the operating system image. */ - osImageLocation?: string; - /** Validated Solution Recipe version to be used for the job */ - vsrVersion?: string; - /** Hash of the OS package downloaded */ - imageHash?: string; - /** GPG Public Key used for package verification */ - gpgPubKey?: string; - /** Operation sub type of OS Provisioning */ - operationType?: OSOperationType; +/** Details of a particular extension in HCI Cluster. */ +export interface Extension extends ProxyResource { + /** Provisioning state of the Extension proxy resource. Indicates the current lifecycle status of the resource, such as whether it's being created, updated, deleted, or has encountered an error. */ + readonly provisioningState?: ProvisioningState; + /** Parameters specific to this extension type. */ + extensionParameters?: ExtensionParameters; + /** Aggregate state of Arc Extensions across the nodes in this HCI cluster. This reflects the overall status of the extension deployment and operation across all nodes. */ + readonly aggregateState?: ExtensionAggregateState; + /** State of Arc Extension in each of the nodes. */ + readonly perNodeExtensionDetails?: PerNodeExtensionState[]; + /** Indicates if the extension is managed by Azure or the user. This determines who controls the deployment and lifecycle of the extension. */ + readonly managedBy?: ExtensionManagedBy; } -export function osProvisionProfileSerializer(item: OsProvisionProfile): any { +export function extensionSerializer(item: Extension): any { return { - osName: item["osName"], - osType: item["osType"], - osVersion: item["osVersion"], - osImageLocation: item["osImageLocation"], - vsrVersion: item["vsrVersion"], - imageHash: item["imageHash"], - gpgPubKey: item["gpgPubKey"], - operationType: item["operationType"], + properties: areAllPropsUndefined(item, ["extensionParameters"]) + ? undefined + : _extensionPropertiesSerializer(item), }; } -export function osProvisionProfileDeserializer(item: any): OsProvisionProfile { +export function extensionDeserializer(item: any): Extension { return { - osName: item["osName"], - osType: item["osType"], - osVersion: item["osVersion"], - osImageLocation: item["osImageLocation"], - vsrVersion: item["vsrVersion"], - imageHash: item["imageHash"], - gpgPubKey: item["gpgPubKey"], - operationType: item["operationType"], + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + ...(!item["properties"] + ? item["properties"] + : _extensionPropertiesDeserializer(item["properties"])), }; } -/** OS Provision Operation type */ -export enum KnownOSOperationType { - /** OS Provisioning operation */ - Provision = "Provision", - /** OS Update operation */ - Update = "Update", - /** OS ReImage operation */ - ReImage = "ReImage", +/** Status of Arc Extension for a particular node in HCI Cluster. */ +export interface ExtensionProperties { + /** Provisioning state of the Extension proxy resource. Indicates the current lifecycle status of the resource, such as whether it's being created, updated, deleted, or has encountered an error. */ + readonly provisioningState?: ProvisioningState; + /** Aggregate state of Arc Extensions across the nodes in this HCI cluster. This reflects the overall status of the extension deployment and operation across all nodes. */ + readonly aggregateState?: ExtensionAggregateState; + /** State of Arc Extension in each of the nodes. */ + readonly perNodeExtensionDetails?: PerNodeExtensionState[]; + /** Indicates if the extension is managed by Azure or the user. This determines who controls the deployment and lifecycle of the extension. */ + readonly managedBy?: ExtensionManagedBy; + /** How the extension handler should be forced to update even if the extension configuration has not changed. */ + forceUpdateTag?: string; + /** The name of the extension handler publisher. */ + publisher?: string; + /** Specifies the type of the extension; an example is "CustomScriptExtension". */ + type?: string; + /** Specifies the version of the script handler. Latest version would be used if not specified. */ + typeHandlerVersion?: string; + /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ + autoUpgradeMinorVersion?: boolean; + /** Json formatted public settings for the extension. */ + settings?: any; + /** Protected settings (may contain secrets). */ + protectedSettings?: any; + /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. */ + enableAutomaticUpgrade?: boolean; } -/** - * OS Provision Operation type \ - * {@link KnownOSOperationType} can be used interchangeably with OSOperationType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Provision**: OS Provisioning operation \ - * **Update**: OS Update operation \ - * **ReImage**: OS ReImage operation - */ -export type OSOperationType = string; - -export function userDetailsArraySerializer(result: Array): any[] { - return result.map((item) => { - return userDetailsSerializer(item); - }); +export function extensionPropertiesSerializer(item: ExtensionProperties): any { + return { + extensionParameters: areAllPropsUndefined(item, [ + "forceUpdateTag", + "publisher", + "type", + "typeHandlerVersion", + "autoUpgradeMinorVersion", + "settings", + "protectedSettings", + "enableAutomaticUpgrade", + ]) + ? undefined + : _extensionPropertiesExtensionParametersSerializer(item), + }; } -export function userDetailsArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return userDetailsDeserializer(item); - }); +export function extensionPropertiesDeserializer(item: any): ExtensionProperties { + return { + provisioningState: item["provisioningState"], + ...(!item["extensionParameters"] + ? item["extensionParameters"] + : _extensionPropertiesExtensionParametersDeserializer(item["extensionParameters"])), + aggregateState: item["aggregateState"], + perNodeExtensionDetails: !item["perNodeExtensionDetails"] + ? item["perNodeExtensionDetails"] + : perNodeExtensionStateArrayDeserializer(item["perNodeExtensionDetails"]), + managedBy: item["managedBy"], + }; } -/** User configuration. */ -export interface UserDetails { - /** Name of the user. */ - userName: string; - /** Type of the secret used for authentication. */ - secretType: SecretType; - /** Location of the secret used for authentication. */ - secretLocation?: string; - /** SSH Public Key for the user. */ - sshPubKey?: string[]; +/** Describes the properties of a Machine Extension. This object mirrors the definition in HybridCompute. */ +export interface ExtensionParameters { + /** How the extension handler should be forced to update even if the extension configuration has not changed. */ + forceUpdateTag?: string; + /** The name of the extension handler publisher. */ + publisher?: string; + /** Specifies the type of the extension; an example is "CustomScriptExtension". */ + type?: string; + /** Specifies the version of the script handler. Latest version would be used if not specified. */ + typeHandlerVersion?: string; + /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ + autoUpgradeMinorVersion?: boolean; + /** Json formatted public settings for the extension. */ + settings?: any; + /** Protected settings (may contain secrets). */ + protectedSettings?: any; + /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. */ + enableAutomaticUpgrade?: boolean; } -export function userDetailsSerializer(item: UserDetails): any { +export function extensionParametersSerializer(item: ExtensionParameters): any { return { - userName: item["userName"], - secretType: item["secretType"], - secretLocation: item["secretLocation"], - sshPubKey: !item["sshPubKey"] - ? item["sshPubKey"] - : item["sshPubKey"].map((p: any) => { - return p; - }), + forceUpdateTag: item["forceUpdateTag"], + publisher: item["publisher"], + type: item["type"], + typeHandlerVersion: item["typeHandlerVersion"], + autoUpgradeMinorVersion: item["autoUpgradeMinorVersion"], + settings: item["settings"], + protectedSettings: item["protectedSettings"], + enableAutomaticUpgrade: item["enableAutomaticUpgrade"], }; } -export function userDetailsDeserializer(item: any): UserDetails { +export function extensionParametersDeserializer(item: any): ExtensionParameters { return { - userName: item["userName"], - secretType: item["secretType"], - secretLocation: item["secretLocation"], - sshPubKey: !item["sshPubKey"] - ? item["sshPubKey"] - : item["sshPubKey"].map((p: any) => { - return p; - }), + forceUpdateTag: item["forceUpdateTag"], + publisher: item["publisher"], + type: item["type"], + typeHandlerVersion: item["typeHandlerVersion"], + autoUpgradeMinorVersion: item["autoUpgradeMinorVersion"], + settings: item["settings"], + protectedSettings: item["protectedSettings"], + enableAutomaticUpgrade: item["enableAutomaticUpgrade"], }; } -/** Type of secret used for authentication. */ -export enum KnownSecretType { - /** Key Vault based authentication */ - KeyVault = "KeyVault", - /** SSH Public Key based authentication */ - SshPubKey = "SshPubKey", -} - -/** - * Type of secret used for authentication. \ - * {@link KnownSecretType} can be used interchangeably with SecretType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **KeyVault**: Key Vault based authentication \ - * **SshPubKey**: SSH Public Key based authentication - */ -export type SecretType = string; - -/** OS State */ -export enum KnownEdgeMachineState { - /** Created when EdgeMachine resource created */ - Created = "Created", - /** EdgeMachine state during device discovery and registration */ - Registering = "Registering", - /** EdgeMachine state when machine configured with restricted OS and not provisioned to deploy workloads */ - Unpurposed = "Unpurposed", - /** EdgeMachine state when transitioning from initial OS to target OS */ - Transitioning = "Transitioning", - /** EdgeMachine state when machine configured with target OS to deploy workloads */ - Purposed = "Purposed", - /** EdgeMachine state when OS updates are in-progress */ - Updating = "Updating", - /** EdgeMachine state when transitioning from target OS to restricted OS */ - Resetting = "Resetting", - /** EdgeMachine failed state and only option to recover is to re-provisioning machine */ - Failed = "Failed", - /** Preparing EdgeMachine */ - Preparing = "Preparing", -} - -/** - * OS State \ - * {@link KnownEdgeMachineState} can be used interchangeably with EdgeMachineState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Created**: Created when EdgeMachine resource created \ - * **Registering**: EdgeMachine state during device discovery and registration \ - * **Unpurposed**: EdgeMachine state when machine configured with restricted OS and not provisioned to deploy workloads \ - * **Transitioning**: EdgeMachine state when transitioning from initial OS to target OS \ - * **Purposed**: EdgeMachine state when machine configured with target OS to deploy workloads \ - * **Updating**: EdgeMachine state when OS updates are in-progress \ - * **Resetting**: EdgeMachine state when transitioning from target OS to restricted OS \ - * **Failed**: EdgeMachine failed state and only option to recover is to re-provisioning machine \ - * **Preparing**: Preparing EdgeMachine - */ -export type EdgeMachineState = string; - -/** Overall connectivity status for the machine resource. */ -export enum KnownEdgeMachineConnectivityStatus { - /** The connectivity status of the machine resource is not specified. */ +/** Aggregate state of Arc Extensions across the nodes in this HCI cluster. This reflects the overall status of the extension deployment and operation across all nodes. */ +export enum KnownExtensionAggregateState { + /** The aggregate state is not specified. */ NotSpecified = "NotSpecified", - /** The machine resource is disconnected. */ - Disconnected = "Disconnected", - /** The machine resource is connected. */ + /** An error occurred in the aggregate state. */ + Error = "Error", + /** The operation succeeded across all nodes. */ + Succeeded = "Succeeded", + /** The operation was canceled across the nodes. */ + Canceled = "Canceled", + /** The operation failed on all or most nodes. */ + Failed = "Failed", + /** All nodes are connected. */ Connected = "Connected", + /** All nodes are disconnected. */ + Disconnected = "Disconnected", + /** The extension has been deleted from all nodes. */ + Deleted = "Deleted", + /** The extension is being created across the nodes. */ + Creating = "Creating", + /** The extension is being updated across the nodes. */ + Updating = "Updating", + /** The extension is being deleted across the nodes. */ + Deleting = "Deleting", + /** The extension is being moved across the nodes. */ + Moving = "Moving", + /** The operation succeeded on some nodes. */ + PartiallySucceeded = "PartiallySucceeded", + /** Some nodes are connected, others are not. */ + PartiallyConnected = "PartiallyConnected", + /** The operation is currently in progress across the nodes. */ + InProgress = "InProgress", + /** The operation has been accepted and is pending execution. */ + Accepted = "Accepted", + /** The extension is currently being provisioned across the nodes. */ + Provisioning = "Provisioning", + /** Extension upgrade failed, but rollback succeeded across the nodes. */ + UpgradeFailedRollbackSucceeded = "UpgradeFailedRollbackSucceeded", } /** - * Overall connectivity status for the machine resource. \ - * {@link KnownEdgeMachineConnectivityStatus} can be used interchangeably with EdgeMachineConnectivityStatus, + * Aggregate state of Arc Extensions across the nodes in this HCI cluster. This reflects the overall status of the extension deployment and operation across all nodes. \ + * {@link KnownExtensionAggregateState} can be used interchangeably with ExtensionAggregateState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NotSpecified**: The connectivity status of the machine resource is not specified. \ - * **Disconnected**: The machine resource is disconnected. \ - * **Connected**: The machine resource is connected. + * **NotSpecified**: The aggregate state is not specified. \ + * **Error**: An error occurred in the aggregate state. \ + * **Succeeded**: The operation succeeded across all nodes. \ + * **Canceled**: The operation was canceled across the nodes. \ + * **Failed**: The operation failed on all or most nodes. \ + * **Connected**: All nodes are connected. \ + * **Disconnected**: All nodes are disconnected. \ + * **Deleted**: The extension has been deleted from all nodes. \ + * **Creating**: The extension is being created across the nodes. \ + * **Updating**: The extension is being updated across the nodes. \ + * **Deleting**: The extension is being deleted across the nodes. \ + * **Moving**: The extension is being moved across the nodes. \ + * **PartiallySucceeded**: The operation succeeded on some nodes. \ + * **PartiallyConnected**: Some nodes are connected, others are not. \ + * **InProgress**: The operation is currently in progress across the nodes. \ + * **Accepted**: The operation has been accepted and is pending execution. \ + * **Provisioning**: The extension is currently being provisioned across the nodes. \ + * **UpgradeFailedRollbackSucceeded**: Extension upgrade failed, but rollback succeeded across the nodes. */ -export type EdgeMachineConnectivityStatus = string; - -/** Reported properties for edge machine. */ -export interface EdgeMachineReportedProperties { - /** Last time data reported. */ - readonly lastUpdated?: Date; - /** Network details for edge machine. */ - readonly networkProfile?: EdgeMachineNetworkProfile; - /** OS Properties for edge machine. */ - readonly osProfile?: OsProfile; - /** Hardware related information for edge machine. */ - readonly hardwareProfile?: HardwareProfile; - /** Storage related information for edge machine. */ - readonly storageProfile?: StorageProfile; - /** Solution builder extension (SBE) deployment package information. */ - readonly sbeDeploymentPackageInfo?: SbeDeploymentPackageInfo; - /** Extension details for edge machine. */ - readonly extensionProfile?: ExtensionProfile; -} - -export function edgeMachineReportedPropertiesDeserializer( - item: any, -): EdgeMachineReportedProperties { - return { - lastUpdated: !item["lastUpdated"] ? item["lastUpdated"] : new Date(item["lastUpdated"]), - networkProfile: !item["networkProfile"] - ? item["networkProfile"] - : edgeMachineNetworkProfileDeserializer(item["networkProfile"]), - osProfile: !item["osProfile"] ? item["osProfile"] : osProfileDeserializer(item["osProfile"]), - hardwareProfile: !item["hardwareProfile"] - ? item["hardwareProfile"] - : hardwareProfileDeserializer(item["hardwareProfile"]), - storageProfile: !item["storageProfile"] - ? item["storageProfile"] - : storageProfileDeserializer(item["storageProfile"]), - sbeDeploymentPackageInfo: !item["sbeDeploymentPackageInfo"] - ? item["sbeDeploymentPackageInfo"] - : sbeDeploymentPackageInfoDeserializer(item["sbeDeploymentPackageInfo"]), - extensionProfile: !item["extensionProfile"] - ? item["extensionProfile"] - : extensionProfileDeserializer(item["extensionProfile"]), - }; +export type ExtensionAggregateState = string; + +export function perNodeExtensionStateArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return perNodeExtensionStateDeserializer(item); + }); } -/** NetworkProfile of edge machine. */ -export interface EdgeMachineNetworkProfile { - /** List of Network Interface Card (NIC) Details of edge machine. */ - readonly nicDetails?: EdgeMachineNicDetail[]; - /** List of switch Details of edge machine. */ - readonly switchDetails?: SwitchDetail[]; +/** Status of Arc Extension for a particular node in HCI Cluster. */ +export interface PerNodeExtensionState { + /** Name of the node in HCI Cluster. */ + readonly name?: string; + /** Fully qualified resource ID for the particular Arc Extension on this node. */ + readonly extension?: string; + /** Specifies the version of the script handler. */ + readonly typeHandlerVersion?: string; + /** State of Arc Extension in this node. Reflects the current lifecycle status of the extension on the individual node, such as whether it's being created, updated, deleted, or has encountered an error. */ + readonly state?: NodeExtensionState; + /** The extension instance view. */ + readonly instanceView?: ExtensionInstanceView; } -export function edgeMachineNetworkProfileDeserializer(item: any): EdgeMachineNetworkProfile { +export function perNodeExtensionStateDeserializer(item: any): PerNodeExtensionState { return { - nicDetails: !item["nicDetails"] - ? item["nicDetails"] - : edgeMachineNicDetailArrayDeserializer(item["nicDetails"]), - switchDetails: !item["switchDetails"] - ? item["switchDetails"] - : switchDetailArrayDeserializer(item["switchDetails"]), + name: item["name"], + extension: item["extension"], + typeHandlerVersion: item["typeHandlerVersion"], + state: item["state"], + instanceView: !item["instanceView"] + ? item["instanceView"] + : extensionInstanceViewDeserializer(item["instanceView"]), }; } -export function edgeMachineNicDetailArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return edgeMachineNicDetailDeserializer(item); - }); +/** State of Arc Extension in this node. Reflects the current lifecycle status of the extension on the individual node, such as whether it's being created, updated, deleted, or has encountered an error. */ +export enum KnownNodeExtensionState { + /** The state is not specified. */ + NotSpecified = "NotSpecified", + /** An error occurred during the extension lifecycle. */ + Error = "Error", + /** The extension operation completed successfully. */ + Succeeded = "Succeeded", + /** The extension operation was canceled. */ + Canceled = "Canceled", + /** The extension operation failed. */ + Failed = "Failed", + /** The extension is connected on the node. */ + Connected = "Connected", + /** The extension is disconnected on the node. */ + Disconnected = "Disconnected", + /** The extension has been deleted from the node. */ + Deleted = "Deleted", + /** The extension is being created on the node. */ + Creating = "Creating", + /** The extension is being updated on the node. */ + Updating = "Updating", + /** The extension is being deleted from the node. */ + Deleting = "Deleting", + /** The extension is being moved on the node. */ + Moving = "Moving", + /** The extension operation partially succeeded. */ + PartiallySucceeded = "PartiallySucceeded", + /** The extension is partially connected on the node. */ + PartiallyConnected = "PartiallyConnected", + /** The extension operation is currently in progress. */ + InProgress = "InProgress", + /** The extension operation has been accepted and is pending execution. */ + Accepted = "Accepted", + /** The extension is currently being provisioned on the node. */ + Provisioning = "Provisioning", } -/** Network Interface Card (NIC) Details of edge machine. */ -export interface EdgeMachineNicDetail { - /** Adapter Name of NIC */ - readonly adapterName?: string; - /** Interface Description of NIC */ - readonly interfaceDescription?: string; - /** Component Id of NIC */ - readonly componentId?: string; - /** Driver Version of NIC */ - readonly driverVersion?: string; - /** Subnet Mask of NIC */ - readonly ip4Address?: string; - /** Subnet Mask of NIC */ - readonly subnetMask?: string; - /** Default Gateway of NIC */ - readonly defaultGateway?: string; - /** DNS Servers for NIC */ - readonly dnsServers?: string[]; - /** Default Isolation of Management NIC */ - readonly defaultIsolationId?: string; - /** MAC address information of NIC. */ - readonly macAddress?: string; - /** The slot attached to the NIC. */ - readonly slot?: string; - /** The switch attached to the NIC, if any. */ - readonly switchName?: string; - /** The type of NIC, physical, virtual, management. */ - readonly nicType?: string; - /** The VLAN ID of the physical NIC. */ - readonly vlanId?: string; - /** The status of NIC, up, disconnected. */ - readonly nicStatus?: string; - /** Describes the RDMA capability of the network adapter. */ - readonly rdmaCapability?: RdmaCapability; +/** + * State of Arc Extension in this node. Reflects the current lifecycle status of the extension on the individual node, such as whether it's being created, updated, deleted, or has encountered an error. \ + * {@link KnownNodeExtensionState} can be used interchangeably with NodeExtensionState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotSpecified**: The state is not specified. \ + * **Error**: An error occurred during the extension lifecycle. \ + * **Succeeded**: The extension operation completed successfully. \ + * **Canceled**: The extension operation was canceled. \ + * **Failed**: The extension operation failed. \ + * **Connected**: The extension is connected on the node. \ + * **Disconnected**: The extension is disconnected on the node. \ + * **Deleted**: The extension has been deleted from the node. \ + * **Creating**: The extension is being created on the node. \ + * **Updating**: The extension is being updated on the node. \ + * **Deleting**: The extension is being deleted from the node. \ + * **Moving**: The extension is being moved on the node. \ + * **PartiallySucceeded**: The extension operation partially succeeded. \ + * **PartiallyConnected**: The extension is partially connected on the node. \ + * **InProgress**: The extension operation is currently in progress. \ + * **Accepted**: The extension operation has been accepted and is pending execution. \ + * **Provisioning**: The extension is currently being provisioned on the node. + */ +export type NodeExtensionState = string; + +/** Describes the Extension Instance View. */ +export interface ExtensionInstanceView { + /** The extension name. */ + name?: string; + /** Specifies the type of the extension; an example is "MicrosoftMonitoringAgent". */ + type?: string; + /** Specifies the version of the script handler. */ + typeHandlerVersion?: string; + /** Instance view status. */ + status?: ExtensionInstanceViewStatus; } -export function edgeMachineNicDetailDeserializer(item: any): EdgeMachineNicDetail { +export function extensionInstanceViewDeserializer(item: any): ExtensionInstanceView { return { - adapterName: item["adapterName"], - interfaceDescription: item["interfaceDescription"], - componentId: item["componentId"], - driverVersion: item["driverVersion"], - ip4Address: item["ip4Address"], - subnetMask: item["subnetMask"], - defaultGateway: item["defaultGateway"], - dnsServers: !item["dnsServers"] - ? item["dnsServers"] - : item["dnsServers"].map((p: any) => { - return p; - }), - defaultIsolationId: item["defaultIsolationId"], - macAddress: item["macAddress"], - slot: item["slot"], - switchName: item["switchName"], - nicType: item["nicType"], - vlanId: item["vlanId"], - nicStatus: item["nicStatus"], - rdmaCapability: item["rdmaCapability"], + name: item["name"], + type: item["type"], + typeHandlerVersion: item["typeHandlerVersion"], + status: !item["status"] + ? item["status"] + : extensionInstanceViewStatusDeserializer(item["status"]), }; } -/** OS configurations for HCI device. */ -export interface OsProfile { - /** The boot type of the device. e.g. UEFI, Legacy etc */ - readonly bootType?: string; - /** Version of assembly present on device */ - readonly assemblyVersion?: string; - /** OS type (“windows", “linux”) */ - readonly osType?: string; - /** OS SKU (e.g., “ Microsoft Azure Linux ROE“, “Azure Stack HCI", "Microsoft Azure Linux 3.0") */ - readonly osSku?: string; - /** OS Version */ - readonly osVersion?: string; - /** OS Build Number */ - readonly buildNumber?: string; - /** OS Base Image Version */ - readonly baseImageVersion?: string; - /** OS Image Version */ - readonly imageVersion?: string; +/** Instance view status. */ +export interface ExtensionInstanceViewStatus { + /** The status code. */ + code?: string; + /** The level code. Indicates the severity or importance of the status message. */ + level?: StatusLevelTypes; + /** The short localizable label for the status. */ + displayStatus?: string; + /** The detailed status message, including for alerts and error messages. */ + message?: string; + /** The time of the status. */ + time?: Date; } -export function osProfileDeserializer(item: any): OsProfile { +export function extensionInstanceViewStatusDeserializer(item: any): ExtensionInstanceViewStatus { return { - bootType: item["bootType"], - assemblyVersion: item["assemblyVersion"], - osType: item["osType"], - osSku: item["osSku"], - osVersion: item["osVersion"], - buildNumber: item["buildNumber"], - baseImageVersion: item["baseImageVersion"], - imageVersion: item["imageVersion"], + code: item["code"], + level: item["level"], + displayStatus: item["displayStatus"], + message: item["message"], + time: !item["time"] ? item["time"] : new Date(item["time"]), }; } -/** Hardware profile for the machine */ -export interface HardwareProfile { - /** Number of cpu cores in the machine */ - readonly cpuCores?: number; - /** Number of cpu sockets in the machine */ - readonly cpuSockets?: number; - /** Memory capacity of the machine */ - readonly memoryCapacityInGb?: number; - /** Model info of the machine */ - readonly model?: string; - /** manufacturer info of the machine */ - readonly manufacturer?: string; - /** Serial number of the machine */ - readonly serialNumber?: string; - /** Process type of the machine */ - readonly processorType?: string; +/** The level code. Indicates the severity or importance of the status message. */ +export enum KnownStatusLevelTypes { + /** Informational message indicating normal operation. */ + Info = "Info", + /** Warning message indicating a potential issue or non-critical problem. */ + Warning = "Warning", + /** Error message indicating a failure or critical issue. */ + Error = "Error", } -export function hardwareProfileDeserializer(item: any): HardwareProfile { - return { - cpuCores: item["cpuCores"], - cpuSockets: item["cpuSockets"], - memoryCapacityInGb: item["memoryCapacityInGb"], - model: item["model"], - manufacturer: item["manufacturer"], - serialNumber: item["serialNumber"], - processorType: item["processorType"], - }; -} +/** + * The level code. Indicates the severity or importance of the status message. \ + * {@link KnownStatusLevelTypes} can be used interchangeably with StatusLevelTypes, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Info**: Informational message indicating normal operation. \ + * **Warning**: Warning message indicating a potential issue or non-critical problem. \ + * **Error**: Error message indicating a failure or critical issue. + */ +export type StatusLevelTypes = string; -/** StorageProfile of edge machine. */ -export interface StorageProfile { - /** Number of storage disks in the device with $CanPool as true. */ - readonly poolableDisksCount?: number; +/** Extension Details to update */ +export interface ExtensionPatch { + /** Describes the properties of a Machine Extension that can be updated. */ + extensionParameters?: ExtensionPatchParameters; } -export function storageProfileDeserializer(item: any): StorageProfile { +export function extensionPatchSerializer(item: ExtensionPatch): any { return { - poolableDisksCount: item["poolableDisksCount"], + properties: areAllPropsUndefined(item, ["extensionParameters"]) + ? undefined + : _extensionPatchPropertiesSerializer(item), }; } -export function operationDetailArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return operationDetailDeserializer(item); - }); -} - -/** operation detail. */ -export interface OperationDetail { - /** operation name. */ - readonly name?: string; - /** operation id. */ - readonly id?: string; - /** operation type. */ - readonly type?: string; - /** operation resource id. */ - readonly resourceId?: string; - /** operation description. */ - readonly description?: string; - /** operation status. */ - readonly status?: string; - /** error details. */ - readonly error?: ErrorDetail; +/** Describes Machine Extension Properties that can be updated. */ +export interface ExtensionPatchProperties { + /** Describes the properties of a Machine Extension that can be updated. */ + extensionParameters?: ExtensionPatchParameters; } -export function operationDetailDeserializer(item: any): OperationDetail { +export function extensionPatchPropertiesSerializer(item: ExtensionPatchProperties): any { return { - name: item["name"], - id: item["id"], - type: item["type"], - resourceId: item["resourceId"], - description: item["description"], - status: item["status"], - error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]), + extensionParameters: !item["extensionParameters"] + ? item["extensionParameters"] + : extensionPatchParametersSerializer(item["extensionParameters"]), }; } -/** Model for patching edge machine. */ -export interface EdgeMachinePatch { - /** Resource tags. */ - tags?: Record; - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; +/** Describes the properties of a Machine Extension that can be updated. */ +export interface ExtensionPatchParameters { + /** Specifies the version of the script handler. Latest version would be used if not specified. */ + typeHandlerVersion?: string; + /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. */ + enableAutomaticUpgrade?: boolean; + /** Json formatted public settings for the extension. */ + settings?: any; + /** Protected settings (may contain secrets). */ + protectedSettings?: any; } -export function edgeMachinePatchSerializer(item: EdgeMachinePatch): any { +export function extensionPatchParametersSerializer(item: ExtensionPatchParameters): any { return { - tags: item["tags"], - identity: !item["identity"] - ? item["identity"] - : managedServiceIdentitySerializer(item["identity"]), + typeHandlerVersion: item["typeHandlerVersion"], + enableAutomaticUpgrade: item["enableAutomaticUpgrade"], + settings: item["settings"], + protectedSettings: item["protectedSettings"], }; } -/** The response of a EdgeMachine list operation. */ -export interface _EdgeMachineListResult { - /** The EdgeMachine items on this page */ - value: EdgeMachine[]; +/** List of Extensions in HCI cluster. */ +export interface _ExtensionList { + /** The Extension items on this page */ + value: Extension[]; /** The link to the next page of items */ nextLink?: string; } -export function _edgeMachineListResultDeserializer(item: any): _EdgeMachineListResult { +export function _extensionListDeserializer(item: any): _ExtensionList { return { - value: edgeMachineArrayDeserializer(item["value"]), + value: extensionArrayDeserializer(item["value"]), nextLink: item["nextLink"], }; } -export function edgeMachineArraySerializer(result: Array): any[] { +export function extensionArraySerializer(result: Array): any[] { return result.map((item) => { - return edgeMachineSerializer(item); + return extensionSerializer(item); }); } -export function edgeMachineArrayDeserializer(result: Array): any[] { +export function extensionArrayDeserializer(result: Array): any[] { return result.map((item) => { - return edgeMachineDeserializer(item); + return extensionDeserializer(item); }); } -/** Cluster Jobs resource */ -export interface EdgeMachineJob extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: EdgeMachineJobPropertiesUnion; +/** Describes the parameters for Extension upgrade. */ +export interface ExtensionUpgradeParameters { + /** Extension Upgrade Target Version. */ + targetVersion?: string; +} + +export function extensionUpgradeParametersSerializer(item: ExtensionUpgradeParameters): any { + return { targetVersion: item["targetVersion"] }; +} + +/** Security settings proxy resource */ +export interface SecuritySetting extends ProxyResource { + /** Secured Core Compliance Assignment */ + securedCoreComplianceAssignment?: ComplianceAssignmentType; + /** WDAC Compliance Assignment */ + wdacComplianceAssignment?: ComplianceAssignmentType; + /** SMB encryption for intra-cluster traffic Compliance Assignment */ + smbEncryptionForIntraClusterTrafficComplianceAssignment?: ComplianceAssignmentType; + /** Security Compliance Status */ + readonly securityComplianceStatus?: SecurityComplianceStatus; + /** The status of the last operation. */ + readonly provisioningState?: ProvisioningState; } -export function edgeMachineJobSerializer(item: EdgeMachineJob): any { +export function securitySettingSerializer(item: SecuritySetting): any { return { - properties: !item["properties"] - ? item["properties"] - : edgeMachineJobPropertiesUnionSerializer(item["properties"]), + properties: areAllPropsUndefined(item, [ + "securedCoreComplianceAssignment", + "wdacComplianceAssignment", + "smbEncryptionForIntraClusterTrafficComplianceAssignment", + ]) + ? undefined + : _securitySettingPropertiesSerializer(item), }; } -export function edgeMachineJobDeserializer(item: any): EdgeMachineJob { +export function securitySettingDeserializer(item: any): SecuritySetting { return { id: item["id"], name: item["name"], @@ -9057,949 +6093,1082 @@ export function edgeMachineJobDeserializer(item: any): EdgeMachineJob { systemData: !item["systemData"] ? item["systemData"] : systemDataDeserializer(item["systemData"]), - properties: !item["properties"] + ...(!item["properties"] ? item["properties"] - : edgeMachineJobPropertiesUnionDeserializer(item["properties"]), + : _securitySettingPropertiesDeserializer(item["properties"])), }; } -/** EdgeMachine Job properties */ -export interface EdgeMachineJobProperties { - /** Job Type to support polymorphic resource. */ - /** The discriminator possible values: RemoteSupport, ProvisionOs, DownloadOs, CollectLog */ - jobType: EdgeMachineJobType; - /** Deployment mode to trigger job. */ - deploymentMode?: DeploymentMode; - /** Job provisioning state */ +/** Security properties of the resource */ +export interface SecurityProperties { + /** Secured Core Compliance Assignment */ + securedCoreComplianceAssignment?: ComplianceAssignmentType; + /** WDAC Compliance Assignment */ + wdacComplianceAssignment?: ComplianceAssignmentType; + /** SMB encryption for intra-cluster traffic Compliance Assignment */ + smbEncryptionForIntraClusterTrafficComplianceAssignment?: ComplianceAssignmentType; + /** Security Compliance Status */ + readonly securityComplianceStatus?: SecurityComplianceStatus; + /** The status of the last operation. */ readonly provisioningState?: ProvisioningState; - /** Unique, immutable job id. */ - readonly jobId?: string; - /** The UTC date and time at which the job started. */ - readonly startTimeUtc?: Date; - /** The UTC date and time at which the job completed. */ - readonly endTimeUtc?: Date; - /** Status of Edge device job. */ - readonly status?: JobStatus; - /** error details. */ - readonly error?: ErrorDetail; } -export function edgeMachineJobPropertiesSerializer(item: EdgeMachineJobProperties): any { - return { jobType: item["jobType"], deploymentMode: item["deploymentMode"] }; +export function securityPropertiesSerializer(item: SecurityProperties): any { + return { + securedCoreComplianceAssignment: item["securedCoreComplianceAssignment"], + wdacComplianceAssignment: item["wdacComplianceAssignment"], + smbEncryptionForIntraClusterTrafficComplianceAssignment: + item["smbEncryptionForIntraClusterTrafficComplianceAssignment"], + }; } -export function edgeMachineJobPropertiesDeserializer(item: any): EdgeMachineJobProperties { +export function securityPropertiesDeserializer(item: any): SecurityProperties { return { - jobType: item["jobType"], - deploymentMode: item["deploymentMode"], + securedCoreComplianceAssignment: item["securedCoreComplianceAssignment"], + wdacComplianceAssignment: item["wdacComplianceAssignment"], + smbEncryptionForIntraClusterTrafficComplianceAssignment: + item["smbEncryptionForIntraClusterTrafficComplianceAssignment"], + securityComplianceStatus: !item["securityComplianceStatus"] + ? item["securityComplianceStatus"] + : securityComplianceStatusDeserializer(item["securityComplianceStatus"]), provisioningState: item["provisioningState"], - jobId: item["jobId"], - startTimeUtc: !item["startTimeUtc"] ? item["startTimeUtc"] : new Date(item["startTimeUtc"]), - endTimeUtc: !item["endTimeUtc"] ? item["endTimeUtc"] : new Date(item["endTimeUtc"]), - status: item["status"], - error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]), }; } -/** Alias for EdgeMachineJobPropertiesUnion */ -export type EdgeMachineJobPropertiesUnion = - | EdgeMachineRemoteSupportJobProperties - | ProvisionOsJobProperties - | DownloadOsJobProperties - | EdgeMachineCollectLogJobProperties - | EdgeMachineJobProperties; - -export function edgeMachineJobPropertiesUnionSerializer(item: EdgeMachineJobPropertiesUnion): any { - switch (item.jobType) { - case "RemoteSupport": - return edgeMachineRemoteSupportJobPropertiesSerializer( - item as EdgeMachineRemoteSupportJobProperties, - ); - - case "ProvisionOs": - return provisionOsJobPropertiesSerializer(item as ProvisionOsJobProperties); - - case "DownloadOs": - return downloadOsJobPropertiesSerializer(item as DownloadOsJobProperties); - - case "CollectLog": - return edgeMachineCollectLogJobPropertiesSerializer( - item as EdgeMachineCollectLogJobProperties, - ); - - default: - return edgeMachineJobPropertiesSerializer(item); - } +/** Represents the compliance assignment type of a resource. */ +export enum KnownComplianceAssignmentType { + /** Report on the state of the machine, but don't make changes. */ + Audit = "Audit", + /** Applied to the machine. If it drifts, the local service inside the machine makes a correction at the next evaluation. */ + ApplyAndAutoCorrect = "ApplyAndAutoCorrect", } -export function edgeMachineJobPropertiesUnionDeserializer( - item: any, -): EdgeMachineJobPropertiesUnion { - switch (item["jobType"]) { - case "RemoteSupport": - return edgeMachineRemoteSupportJobPropertiesDeserializer( - item as EdgeMachineRemoteSupportJobProperties, - ); - - case "ProvisionOs": - return provisionOsJobPropertiesDeserializer(item as ProvisionOsJobProperties); - - case "DownloadOs": - return downloadOsJobPropertiesDeserializer(item as DownloadOsJobProperties); +/** + * Represents the compliance assignment type of a resource. \ + * {@link KnownComplianceAssignmentType} can be used interchangeably with ComplianceAssignmentType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Audit**: Report on the state of the machine, but don't make changes. \ + * **ApplyAndAutoCorrect**: Applied to the machine. If it drifts, the local service inside the machine makes a correction at the next evaluation. + */ +export type ComplianceAssignmentType = string; - case "CollectLog": - return edgeMachineCollectLogJobPropertiesDeserializer( - item as EdgeMachineCollectLogJobProperties, - ); +/** Security compliance properties of the resource */ +export interface SecurityComplianceStatus { + /** Indicates whether HCI hosts meets secured-core server requirements. */ + readonly securedCoreCompliance?: ComplianceStatus; + /** Indicates whether HCI hosts have enforced consistent Windows Defender Application Control. */ + readonly wdacCompliance?: ComplianceStatus; + /** Indicates whether data at-rest encryption is enabled on Azure Stack HCI clustered volumes. */ + readonly dataAtRestEncrypted?: ComplianceStatus; + /** Indicates whether HCI cluster has data in-transit protection. */ + readonly dataInTransitProtected?: ComplianceStatus; + /** Time in UTC when compliance status was last updated. */ + readonly lastUpdated?: Date; +} - default: - return edgeMachineJobPropertiesDeserializer(item); - } +export function securityComplianceStatusDeserializer(item: any): SecurityComplianceStatus { + return { + securedCoreCompliance: item["securedCoreCompliance"], + wdacCompliance: item["wdacCompliance"], + dataAtRestEncrypted: item["dataAtRestEncrypted"], + dataInTransitProtected: item["dataInTransitProtected"], + lastUpdated: !item["lastUpdated"] ? item["lastUpdated"] : new Date(item["lastUpdated"]), + }; } -/** Job Type supported. */ -export enum KnownEdgeMachineJobType { - /** Job to collect logs from the device. */ - CollectLog = "CollectLog", - /** Job to provide remote support to the device. */ - RemoteSupport = "RemoteSupport", - /** Job to provision operating system in the device. */ - ProvisionOs = "ProvisionOs", - /** Job to download OS packages on to the device */ - DownloadOs = "DownloadOs", +/** Represents the compliance status of a resource. */ +export enum KnownComplianceStatus { + /** The resource is compliant */ + Compliant = "Compliant", + /** The resource is non-compliant */ + NonCompliant = "NonCompliant", + /** The resource compliance status is pending */ + Pending = "Pending", } /** - * Job Type supported. \ - * {@link KnownEdgeMachineJobType} can be used interchangeably with EdgeMachineJobType, + * Represents the compliance status of a resource. \ + * {@link KnownComplianceStatus} can be used interchangeably with ComplianceStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **CollectLog**: Job to collect logs from the device. \ - * **RemoteSupport**: Job to provide remote support to the device. \ - * **ProvisionOs**: Job to provision operating system in the device. \ - * **DownloadOs**: Job to download OS packages on to the device + * **Compliant**: The resource is compliant \ + * **NonCompliant**: The resource is non-compliant \ + * **Pending**: The resource compliance status is pending */ -export type EdgeMachineJobType = string; +export type ComplianceStatus = string; -/** Properties for adding a server in the cluster. */ -export interface EdgeMachineRemoteSupportJobProperties extends EdgeMachineJobProperties { - /** Job Type to support polymorphic resource. */ - jobType: "RemoteSupport"; - /** Remote support access level. */ - accessLevel: RemoteSupportAccessLevel; - /** Remote support expiration timestamp. */ - expirationTimestamp: Date; - /** Remote support type. */ - type: RemoteSupportType; - /** log collection job reported properties. */ - readonly reportedProperties?: EdgeMachineRemoteSupportJobReportedProperties; +/** The response of a SecuritySetting list operation. */ +export interface _SecuritySettingListResult { + /** The SecuritySetting items on this page */ + value: SecuritySetting[]; + /** The link to the next page of items */ + nextLink?: string; } -export function edgeMachineRemoteSupportJobPropertiesSerializer( - item: EdgeMachineRemoteSupportJobProperties, -): any { +export function _securitySettingListResultDeserializer(item: any): _SecuritySettingListResult { return { - jobType: item["jobType"], - deploymentMode: item["deploymentMode"], - accessLevel: item["accessLevel"], - expirationTimestamp: item["expirationTimestamp"].toISOString(), + value: securitySettingArrayDeserializer(item["value"]), + nextLink: item["nextLink"], + }; +} + +export function securitySettingArraySerializer(result: Array): any[] { + return result.map((item) => { + return securitySettingSerializer(item); + }); +} + +export function securitySettingArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return securitySettingDeserializer(item); + }); +} + +/** Sku details. */ +export interface Sku extends ProxyResource { + /** Provisioning State */ + readonly provisioningState?: string; + /** Identifier of the Publisher for the offer */ + publisherId?: string; + /** Identifier of the Offer for the sku */ + offerId?: string; + /** JSON serialized catalog content of the sku offer */ + content?: string; + /** The API version of the catalog service used to serve the catalog content */ + contentVersion?: string; + /** Array of SKU mappings */ + skuMappings?: SkuMappings[]; +} + +export function skuDeserializer(item: any): Sku { + return { + id: item["id"], + name: item["name"], type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + ...(!item["properties"] ? item["properties"] : _skuPropertiesDeserializer(item["properties"])), }; } -export function edgeMachineRemoteSupportJobPropertiesDeserializer( - item: any, -): EdgeMachineRemoteSupportJobProperties { +/** SKU properties. */ +export interface SkuProperties { + /** Provisioning State */ + readonly provisioningState?: string; + /** Identifier of the Publisher for the offer */ + publisherId?: string; + /** Identifier of the Offer for the sku */ + offerId?: string; + /** JSON serialized catalog content of the sku offer */ + content?: string; + /** The API version of the catalog service used to serve the catalog content */ + contentVersion?: string; + /** Array of SKU mappings */ + skuMappings?: SkuMappings[]; +} + +export function skuPropertiesDeserializer(item: any): SkuProperties { return { - jobType: item["jobType"], - deploymentMode: item["deploymentMode"], provisioningState: item["provisioningState"], - jobId: item["jobId"], - startTimeUtc: !item["startTimeUtc"] ? item["startTimeUtc"] : new Date(item["startTimeUtc"]), - endTimeUtc: !item["endTimeUtc"] ? item["endTimeUtc"] : new Date(item["endTimeUtc"]), - status: item["status"], - error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]), - accessLevel: item["accessLevel"], - expirationTimestamp: new Date(item["expirationTimestamp"]), - type: item["type"], - reportedProperties: !item["reportedProperties"] - ? item["reportedProperties"] - : edgeMachineRemoteSupportJobReportedPropertiesDeserializer(item["reportedProperties"]), + publisherId: item["publisherId"], + offerId: item["offerId"], + content: item["content"], + contentVersion: item["contentVersion"], + skuMappings: !item["skuMappings"] + ? item["skuMappings"] + : skuMappingsArrayDeserializer(item["skuMappings"]), }; } -/** Represents the reported properties of a remote support job. */ -export interface EdgeMachineRemoteSupportJobReportedProperties { - /** The percentage of the job that is complete. */ - readonly percentComplete?: number; - /** Validation status of job. */ - readonly validationStatus?: EceActionStatus; - /** Deployment status of job. */ - readonly deploymentStatus?: EceActionStatus; - /** Optional settings for configuring the node for remote support. */ - readonly nodeSettings?: EdgeMachineRemoteSupportNodeSettings; - /** Details of the remote support session. */ - readonly sessionDetails?: RemoteSupportSession[]; +/** List of SKU proxy resources for the HCI cluster. */ +export interface _SkuList { + /** The Sku items on this page */ + value: Sku[]; + /** The link to the next page of items */ + nextLink?: string; } -export function edgeMachineRemoteSupportJobReportedPropertiesDeserializer( - item: any, -): EdgeMachineRemoteSupportJobReportedProperties { +export function _skuListDeserializer(item: any): _SkuList { return { - percentComplete: item["percentComplete"], - validationStatus: !item["validationStatus"] - ? item["validationStatus"] - : eceActionStatusDeserializer(item["validationStatus"]), - deploymentStatus: !item["deploymentStatus"] - ? item["deploymentStatus"] - : eceActionStatusDeserializer(item["deploymentStatus"]), - nodeSettings: !item["nodeSettings"] - ? item["nodeSettings"] - : edgeMachineRemoteSupportNodeSettingsDeserializer(item["nodeSettings"]), - sessionDetails: !item["sessionDetails"] - ? item["sessionDetails"] - : remoteSupportSessionArrayDeserializer(item["sessionDetails"]), + value: skuArrayDeserializer(item["value"]), + nextLink: item["nextLink"], }; } -/** Represents the settings of a remote support node. */ -export interface EdgeMachineRemoteSupportNodeSettings { - /** The state of the remote support node. */ - readonly state?: string; - /** The timestamp when the node settings were created, in UTC. */ - readonly createdAt?: Date; - /** The timestamp when the node settings were last updated, in UTC. */ - readonly updatedAt?: Date; - /** The current connection status of the remote support session. */ - readonly connectionStatus?: string; - /** The error message, if any, from the last connection attempt. */ - readonly connectionErrorMessage?: string; +export function skuArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return skuDeserializer(item); + }); } -export function edgeMachineRemoteSupportNodeSettingsDeserializer( - item: any, -): EdgeMachineRemoteSupportNodeSettings { +/** Details of an Update run */ +export interface UpdateRun extends ProxyResource { + /** The geo-location where the resource lives */ + location?: string; + /** Provisioning state of the UpdateRuns proxy resource. Indicates the current lifecycle status of the update operation, such as whether it has been accepted, is in progress, or has completed. */ + readonly provisioningState?: ProvisioningState; + /** Timestamp of the update run was started. */ + timeStarted?: Date; + /** Timestamp of the most recently completed step in the update run. */ + lastUpdatedTime?: Date; + /** Duration of the update run. */ + duration?: string; + /** Represents the current state of the update run. Indicates whether the update is in progress, has completed successfully, failed, or is in an unknown state. */ + state?: UpdateRunPropertiesState; + /** Progress representation of the update run steps. */ + progress?: Step; +} + +export function updateRunSerializer(item: UpdateRun): any { return { - state: item["state"], - createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]), - updatedAt: !item["updatedAt"] ? item["updatedAt"] : new Date(item["updatedAt"]), - connectionStatus: item["connectionStatus"], - connectionErrorMessage: item["connectionErrorMessage"], + properties: areAllPropsUndefined(item, [ + "timeStarted", + "lastUpdatedTime", + "duration", + "state", + "progress", + ]) + ? undefined + : _updateRunPropertiesSerializer(item), + location: item["location"], }; } -/** Represents the properties of an Azure Linux restricted operating environment Provision Os job. */ -export interface ProvisionOsJobProperties extends EdgeMachineJobProperties { - /** Job Type to support polymorphic resource. */ - jobType: "ProvisionOs"; - /** Os Provisioning request. */ - provisioningRequest: ProvisioningRequest; - /** Reported Properties for Provision Os job */ - reportedProperties?: ProvisionOsReportedProperties; +export function updateRunDeserializer(item: any): UpdateRun { + return { + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + ...(!item["properties"] + ? item["properties"] + : _updateRunPropertiesDeserializer(item["properties"])), + location: item["location"], + }; +} + +/** Details of an Update run */ +export interface UpdateRunProperties { + /** Provisioning state of the UpdateRuns proxy resource. Indicates the current lifecycle status of the update operation, such as whether it has been accepted, is in progress, or has completed. */ + readonly provisioningState?: ProvisioningState; + /** Timestamp of the update run was started. */ + timeStarted?: Date; + /** Timestamp of the most recently completed step in the update run. */ + lastUpdatedTime?: Date; + /** Duration of the update run. */ + duration?: string; + /** Represents the current state of the update run. Indicates whether the update is in progress, has completed successfully, failed, or is in an unknown state. */ + state?: UpdateRunPropertiesState; + /** Name of the step. */ + name?: string; + /** More detailed description of the step. */ + description?: string; + /** Error message, specified if the step is in a failed state. */ + errorMessage?: string; + /** Status of the step, bubbled up from the ECE action plan for installation attempts. Values are: 'Success', 'Error', 'InProgress', and 'Unknown status'. */ + status?: string; + /** When the step started, or empty if it has not started executing. */ + startTimeUtc?: Date; + /** When the step reached a terminal state. */ + endTimeUtc?: Date; + /** Completion time of this step or the last completed sub-step. */ + lastUpdatedTimeUtc?: Date; + /** Expected execution time of a given step. This is optionally authored in the update action plan and can be empty. */ + expectedExecutionTime?: string; + /** Recursive model for child steps of this step. */ + steps?: Step[]; } -export function provisionOsJobPropertiesSerializer(item: ProvisionOsJobProperties): any { +export function updateRunPropertiesSerializer(item: UpdateRunProperties): any { return { - jobType: item["jobType"], - deploymentMode: item["deploymentMode"], - provisioningRequest: provisioningRequestSerializer(item["provisioningRequest"]), - reportedProperties: !item["reportedProperties"] - ? item["reportedProperties"] - : provisionOsReportedPropertiesSerializer(item["reportedProperties"]), + timeStarted: !item["timeStarted"] ? item["timeStarted"] : item["timeStarted"].toISOString(), + lastUpdatedTime: !item["lastUpdatedTime"] + ? item["lastUpdatedTime"] + : item["lastUpdatedTime"].toISOString(), + duration: item["duration"], + state: item["state"], + progress: areAllPropsUndefined(item, [ + "name", + "description", + "errorMessage", + "status", + "startTimeUtc", + "endTimeUtc", + "lastUpdatedTimeUtc", + "expectedExecutionTime", + "steps", + ]) + ? undefined + : _updateRunPropertiesProgressSerializer(item), }; } -export function provisionOsJobPropertiesDeserializer(item: any): ProvisionOsJobProperties { +export function updateRunPropertiesDeserializer(item: any): UpdateRunProperties { return { - jobType: item["jobType"], - deploymentMode: item["deploymentMode"], provisioningState: item["provisioningState"], - jobId: item["jobId"], - startTimeUtc: !item["startTimeUtc"] ? item["startTimeUtc"] : new Date(item["startTimeUtc"]), - endTimeUtc: !item["endTimeUtc"] ? item["endTimeUtc"] : new Date(item["endTimeUtc"]), - status: item["status"], - error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]), - provisioningRequest: provisioningRequestDeserializer(item["provisioningRequest"]), - reportedProperties: !item["reportedProperties"] - ? item["reportedProperties"] - : provisionOsReportedPropertiesDeserializer(item["reportedProperties"]), + timeStarted: !item["timeStarted"] ? item["timeStarted"] : new Date(item["timeStarted"]), + lastUpdatedTime: !item["lastUpdatedTime"] + ? item["lastUpdatedTime"] + : new Date(item["lastUpdatedTime"]), + duration: item["duration"], + state: item["state"], + ...(!item["progress"] + ? item["progress"] + : _updateRunPropertiesProgressDeserializer(item["progress"])), }; } -/** Represents a provisioning request. */ -export interface ProvisioningRequest { - /** Target operating system to support polymorphic resource. */ - target: ProvisioningOsType; - /** Operating system profile. */ - osProfile: OsProvisionProfile; - /** User configuration. */ - userDetails?: UserDetails[]; - /** Onboarding configuration. */ - onboardingConfiguration?: OnboardingConfiguration; - /** Device configuration. */ - deviceConfiguration?: TargetDeviceConfiguration; - /** Base64 encoded custom configuration for CAPI to use */ - customConfiguration?: string; +/** Represents the current state of the update run. Indicates whether the update is in progress, has completed successfully, failed, or is in an unknown state. */ +export enum KnownUpdateRunPropertiesState { + /** The state of the update run is not known. */ + Unknown = "Unknown", + /** The update run completed successfully. */ + Succeeded = "Succeeded", + /** The update run is currently in progress. */ + InProgress = "InProgress", + /** The update run failed to complete successfully. */ + Failed = "Failed", +} + +/** + * Represents the current state of the update run. Indicates whether the update is in progress, has completed successfully, failed, or is in an unknown state. \ + * {@link KnownUpdateRunPropertiesState} can be used interchangeably with UpdateRunPropertiesState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown**: The state of the update run is not known. \ + * **Succeeded**: The update run completed successfully. \ + * **InProgress**: The update run is currently in progress. \ + * **Failed**: The update run failed to complete successfully. + */ +export type UpdateRunPropertiesState = string; + +/** Progress representation of the update run steps. */ +export interface Step { + /** Name of the step. */ + name?: string; + /** More detailed description of the step. */ + description?: string; + /** Error message, specified if the step is in a failed state. */ + errorMessage?: string; + /** Status of the step, bubbled up from the ECE action plan for installation attempts. Values are: 'Success', 'Error', 'InProgress', and 'Unknown status'. */ + status?: string; + /** When the step started, or empty if it has not started executing. */ + startTimeUtc?: Date; + /** When the step reached a terminal state. */ + endTimeUtc?: Date; + /** Completion time of this step or the last completed sub-step. */ + lastUpdatedTimeUtc?: Date; + /** Expected execution time of a given step. This is optionally authored in the update action plan and can be empty. */ + expectedExecutionTime?: string; + /** Recursive model for child steps of this step. */ + steps?: Step[]; } -export function provisioningRequestSerializer(item: ProvisioningRequest): any { +export function stepSerializer(item: Step): any { return { - target: item["target"], - osProfile: osProvisionProfileSerializer(item["osProfile"]), - userDetails: !item["userDetails"] - ? item["userDetails"] - : userDetailsArraySerializer(item["userDetails"]), - onboardingConfiguration: !item["onboardingConfiguration"] - ? item["onboardingConfiguration"] - : onboardingConfigurationSerializer(item["onboardingConfiguration"]), - deviceConfiguration: !item["deviceConfiguration"] - ? item["deviceConfiguration"] - : targetDeviceConfigurationSerializer(item["deviceConfiguration"]), - customConfiguration: item["customConfiguration"], + name: item["name"], + description: item["description"], + errorMessage: item["errorMessage"], + status: item["status"], + startTimeUtc: !item["startTimeUtc"] ? item["startTimeUtc"] : item["startTimeUtc"].toISOString(), + endTimeUtc: !item["endTimeUtc"] ? item["endTimeUtc"] : item["endTimeUtc"].toISOString(), + lastUpdatedTimeUtc: !item["lastUpdatedTimeUtc"] + ? item["lastUpdatedTimeUtc"] + : item["lastUpdatedTimeUtc"].toISOString(), + expectedExecutionTime: item["expectedExecutionTime"], + steps: !item["steps"] ? item["steps"] : stepArraySerializer(item["steps"]), }; } -export function provisioningRequestDeserializer(item: any): ProvisioningRequest { +export function stepDeserializer(item: any): Step { return { - target: item["target"], - osProfile: osProvisionProfileDeserializer(item["osProfile"]), - userDetails: !item["userDetails"] - ? item["userDetails"] - : userDetailsArrayDeserializer(item["userDetails"]), - onboardingConfiguration: !item["onboardingConfiguration"] - ? item["onboardingConfiguration"] - : onboardingConfigurationDeserializer(item["onboardingConfiguration"]), - deviceConfiguration: !item["deviceConfiguration"] - ? item["deviceConfiguration"] - : targetDeviceConfigurationDeserializer(item["deviceConfiguration"]), - customConfiguration: item["customConfiguration"], + name: item["name"], + description: item["description"], + errorMessage: item["errorMessage"], + status: item["status"], + startTimeUtc: !item["startTimeUtc"] ? item["startTimeUtc"] : new Date(item["startTimeUtc"]), + endTimeUtc: !item["endTimeUtc"] ? item["endTimeUtc"] : new Date(item["endTimeUtc"]), + lastUpdatedTimeUtc: !item["lastUpdatedTimeUtc"] + ? item["lastUpdatedTimeUtc"] + : new Date(item["lastUpdatedTimeUtc"]), + expectedExecutionTime: item["expectedExecutionTime"], + steps: !item["steps"] ? item["steps"] : stepArrayDeserializer(item["steps"]), }; } -/** Represents the provisioning operating system type. */ -export enum KnownProvisioningOsType { - /** AzureLinux OS. */ - AzureLinux = "AzureLinux", - /** HCI OS. */ - HCI = "HCI", +export function stepArraySerializer(result: Array): any[] { + return result.map((item) => { + return stepSerializer(item); + }); } -/** - * Represents the provisioning operating system type. \ - * {@link KnownProvisioningOsType} can be used interchangeably with ProvisioningOsType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AzureLinux**: AzureLinux OS. \ - * **HCI**: HCI OS. - */ -export type ProvisioningOsType = string; - -/** Onboarding configuration. */ -export interface OnboardingConfiguration { - /** Type of the onboarding resource to support polymorphic resource. */ - type?: OnboardingResourceType; - /** Resource ID. */ - resourceId?: string; - /** Location of the resource. */ - location?: string; - /** Tenant ID of the resource. */ - tenantId?: string; - /** Azure Arc virtual machine ID. */ - arcVirtualMachineId?: string; +export function stepArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return stepDeserializer(item); + }); } -export function onboardingConfigurationSerializer(item: OnboardingConfiguration): any { - return { - type: item["type"], - resourceId: item["resourceId"], - location: item["location"], - tenantId: item["tenantId"], - arcVirtualMachineId: item["arcVirtualMachineId"], - }; +/** List of Update runs */ +export interface _UpdateRunList { + /** The UpdateRun items on this page */ + value: UpdateRun[]; + /** The link to the next page of items */ + nextLink?: string; } -export function onboardingConfigurationDeserializer(item: any): OnboardingConfiguration { +export function _updateRunListDeserializer(item: any): _UpdateRunList { return { - type: item["type"], - resourceId: item["resourceId"], - location: item["location"], - tenantId: item["tenantId"], - arcVirtualMachineId: item["arcVirtualMachineId"], + value: updateRunArrayDeserializer(item["value"]), + nextLink: item["nextLink"], }; } -/** Onboarding resource type. */ -export enum KnownOnboardingResourceType { - /** Hybrid Compute Machine. */ - HybridComputeMachine = "HybridComputeMachine", +export function updateRunArraySerializer(result: Array): any[] { + return result.map((item) => { + return updateRunSerializer(item); + }); } -/** - * Onboarding resource type. \ - * {@link KnownOnboardingResourceType} can be used interchangeably with OnboardingResourceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **HybridComputeMachine**: Hybrid Compute Machine. - */ -export type OnboardingResourceType = string; - -/** Reported Properties for Provision Os job */ -export interface ProvisionOsReportedProperties { - /** The percentage of the job that is complete. */ - readonly percentComplete?: number; - /** Validation status of job. */ - readonly validationStatus?: EceActionStatus; - /** Deployment status of job. */ - readonly deploymentStatus?: EceActionStatus; +export function updateRunArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return updateRunDeserializer(item); + }); } -export function provisionOsReportedPropertiesSerializer(_item: ProvisionOsReportedProperties): any { - return {}; +/** Update details */ +export interface Update extends ProxyResource { + /** The geo-location where the resource lives */ + location?: string; + /** Provisioning state of the Updates proxy resource. Indicates the current lifecycle status of the update operation, such as whether it has been accepted, is in progress, or has completed. */ + readonly provisioningState?: ProvisioningState; + /** Date that the update was installed. */ + installedDate?: Date; + /** Description of the update. */ + description?: string; + /** Minimum Sbe Version of the update. */ + minSbeVersionRequired?: string; + /** Represents the current state of the update as it relates to this stamp. This includes phases such as preparation, installation, scanning, and error handling, providing insight into the update's progress and any issues encountered. */ + state?: State; + /** If update State is HasPrerequisite, this property contains an array of objects describing prerequisite updates before installing this update. Otherwise, it is empty. */ + prerequisites?: UpdatePrerequisite[]; + /** An array of component versions for a Solution Bundle update, and an empty array otherwise. */ + componentVersions?: PackageVersionInfo[]; + /** Indicates whether a reboot is required after the update or operation. Helps determine if a system restart is necessary to complete the process. */ + rebootRequired?: RebootRequirement; + /** Overall health state for update-specific health checks. */ + healthState?: HealthState; + /** An array of PrecheckResult objects. */ + healthCheckResult?: PrecheckResult[]; + /** Last time the package-specific checks were run. */ + healthCheckDate?: Date; + /** Path where the update package is available. */ + packagePath?: string; + /** Size of the package. This value is a combination of the size from update metadata and size of the payload that results from the live scan operation for OS update content. */ + packageSizeInMb?: number; + /** Display name of the Update */ + displayName?: string; + /** Version of the update. */ + version?: string; + /** Publisher of the update package. */ + publisher?: string; + /** Link to release notes for the update. */ + releaseLink?: string; + /** Indicates how the update content is made available for download. This determines whether the update is sourced locally, from an online repository, or requires user notification. */ + availabilityType?: AvailabilityType; + /** Customer-visible type of the update. */ + packageType?: string; + /** Extensible KV pairs serialized as a string. This is currently used to report the stamp OEM family and hardware model information when an update is flagged as Invalid for the stamp based on OEM type. */ + additionalProperties?: string; + /** Additional information regarding the state of the update. See definition of UpdateStateProperties type below for more details on this property. */ + updateStateProperties?: UpdateStateProperties; } -export function provisionOsReportedPropertiesDeserializer( - item: any, -): ProvisionOsReportedProperties { +export function updateSerializer(item: Update): any { return { - percentComplete: item["percentComplete"], - validationStatus: !item["validationStatus"] - ? item["validationStatus"] - : eceActionStatusDeserializer(item["validationStatus"]), - deploymentStatus: !item["deploymentStatus"] - ? item["deploymentStatus"] - : eceActionStatusDeserializer(item["deploymentStatus"]), + properties: areAllPropsUndefined(item, [ + "installedDate", + "description", + "minSbeVersionRequired", + "state", + "prerequisites", + "componentVersions", + "rebootRequired", + "healthState", + "healthCheckResult", + "healthCheckDate", + "packagePath", + "packageSizeInMb", + "displayName", + "version", + "publisher", + "releaseLink", + "availabilityType", + "packageType", + "additionalProperties", + "updateStateProperties", + ]) + ? undefined + : _updatePropertiesSerializer(item), + location: item["location"], }; } -/** Represents the properties of Download Os job. */ -export interface DownloadOsJobProperties extends EdgeMachineJobProperties { - /** Job Type to support polymorphic resource. */ - jobType: "DownloadOs"; - /** Download OS request. */ - downloadRequest: DownloadRequest; - /** Reported Properties for Download Os job */ - reportedProperties?: ProvisionOsReportedProperties; -} - -export function downloadOsJobPropertiesSerializer(item: DownloadOsJobProperties): any { +export function updateDeserializer(item: any): Update { return { - jobType: item["jobType"], - deploymentMode: item["deploymentMode"], - downloadRequest: downloadRequestSerializer(item["downloadRequest"]), - reportedProperties: !item["reportedProperties"] - ? item["reportedProperties"] - : provisionOsReportedPropertiesSerializer(item["reportedProperties"]), + id: item["id"], + name: item["name"], + type: item["type"], + systemData: !item["systemData"] + ? item["systemData"] + : systemDataDeserializer(item["systemData"]), + ...(!item["properties"] + ? item["properties"] + : _updatePropertiesDeserializer(item["properties"])), + location: item["location"], }; } -export function downloadOsJobPropertiesDeserializer(item: any): DownloadOsJobProperties { +/** Details of a singular Update in HCI Cluster */ +export interface UpdateProperties { + /** Provisioning state of the Updates proxy resource. Indicates the current lifecycle status of the update operation, such as whether it has been accepted, is in progress, or has completed. */ + readonly provisioningState?: ProvisioningState; + /** Date that the update was installed. */ + installedDate?: Date; + /** Description of the update. */ + description?: string; + /** Minimum Sbe Version of the update. */ + minSbeVersionRequired?: string; + /** Represents the current state of the update as it relates to this stamp. This includes phases such as preparation, installation, scanning, and error handling, providing insight into the update's progress and any issues encountered. */ + state?: State; + /** If update State is HasPrerequisite, this property contains an array of objects describing prerequisite updates before installing this update. Otherwise, it is empty. */ + prerequisites?: UpdatePrerequisite[]; + /** An array of component versions for a Solution Bundle update, and an empty array otherwise. */ + componentVersions?: PackageVersionInfo[]; + /** Indicates whether a reboot is required after the update or operation. Helps determine if a system restart is necessary to complete the process. */ + rebootRequired?: RebootRequirement; + /** Overall health state for update-specific health checks. */ + healthState?: HealthState; + /** An array of PrecheckResult objects. */ + healthCheckResult?: PrecheckResult[]; + /** Last time the package-specific checks were run. */ + healthCheckDate?: Date; + /** Path where the update package is available. */ + packagePath?: string; + /** Size of the package. This value is a combination of the size from update metadata and size of the payload that results from the live scan operation for OS update content. */ + packageSizeInMb?: number; + /** Display name of the Update */ + displayName?: string; + /** Version of the update. */ + version?: string; + /** Publisher of the update package. */ + publisher?: string; + /** Link to release notes for the update. */ + releaseLink?: string; + /** Indicates how the update content is made available for download. This determines whether the update is sourced locally, from an online repository, or requires user notification. */ + availabilityType?: AvailabilityType; + /** Customer-visible type of the update. */ + packageType?: string; + /** Extensible KV pairs serialized as a string. This is currently used to report the stamp OEM family and hardware model information when an update is flagged as Invalid for the stamp based on OEM type. */ + additionalProperties?: string; + /** Progress percentage of ongoing operation. Currently this property is only valid when the update is in the Downloading state, where it maps to how much of the update content has been downloaded. */ + progressPercentage?: number; + /** Brief message with instructions for updates of AvailabilityType Notify. */ + notifyMessage?: string; +} + +export function updatePropertiesSerializer(item: UpdateProperties): any { return { - jobType: item["jobType"], - deploymentMode: item["deploymentMode"], - provisioningState: item["provisioningState"], - jobId: item["jobId"], - startTimeUtc: !item["startTimeUtc"] ? item["startTimeUtc"] : new Date(item["startTimeUtc"]), - endTimeUtc: !item["endTimeUtc"] ? item["endTimeUtc"] : new Date(item["endTimeUtc"]), - status: item["status"], - error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]), - downloadRequest: downloadRequestDeserializer(item["downloadRequest"]), - reportedProperties: !item["reportedProperties"] - ? item["reportedProperties"] - : provisionOsReportedPropertiesDeserializer(item["reportedProperties"]), + installedDate: !item["installedDate"] + ? item["installedDate"] + : item["installedDate"].toISOString(), + description: item["description"], + minSbeVersionRequired: item["minSbeVersionRequired"], + state: item["state"], + prerequisites: !item["prerequisites"] + ? item["prerequisites"] + : updatePrerequisiteArraySerializer(item["prerequisites"]), + componentVersions: !item["componentVersions"] + ? item["componentVersions"] + : packageVersionInfoArraySerializer(item["componentVersions"]), + rebootRequired: item["rebootRequired"], + healthState: item["healthState"], + healthCheckResult: !item["healthCheckResult"] + ? item["healthCheckResult"] + : precheckResultArraySerializer(item["healthCheckResult"]), + healthCheckDate: !item["healthCheckDate"] + ? item["healthCheckDate"] + : item["healthCheckDate"].toISOString(), + packagePath: item["packagePath"], + packageSizeInMb: item["packageSizeInMb"], + displayName: item["displayName"], + version: item["version"], + publisher: item["publisher"], + releaseLink: item["releaseLink"], + availabilityType: item["availabilityType"], + packageType: item["packageType"], + additionalProperties: item["additionalProperties"], + updateStateProperties: areAllPropsUndefined(item, ["progressPercentage", "notifyMessage"]) + ? undefined + : _updatePropertiesUpdateStatePropertiesSerializer(item), }; } -/** Download Request properties */ -export interface DownloadRequest { - /** Target operating system to support polymorphic resource. */ - target: ProvisioningOsType; - /** Operating system profile. */ - osProfile: DownloadOsProfile; -} - -export function downloadRequestSerializer(item: DownloadRequest): any { - return { target: item["target"], osProfile: downloadOsProfileSerializer(item["osProfile"]) }; -} - -export function downloadRequestDeserializer(item: any): DownloadRequest { +export function updatePropertiesDeserializer(item: any): UpdateProperties { return { - target: item["target"], - osProfile: downloadOsProfileDeserializer(item["osProfile"]), + provisioningState: item["provisioningState"], + installedDate: !item["installedDate"] ? item["installedDate"] : new Date(item["installedDate"]), + description: item["description"], + minSbeVersionRequired: item["minSbeVersionRequired"], + state: item["state"], + prerequisites: !item["prerequisites"] + ? item["prerequisites"] + : updatePrerequisiteArrayDeserializer(item["prerequisites"]), + componentVersions: !item["componentVersions"] + ? item["componentVersions"] + : packageVersionInfoArrayDeserializer(item["componentVersions"]), + rebootRequired: item["rebootRequired"], + healthState: item["healthState"], + healthCheckResult: !item["healthCheckResult"] + ? item["healthCheckResult"] + : precheckResultArrayDeserializer(item["healthCheckResult"]), + healthCheckDate: !item["healthCheckDate"] + ? item["healthCheckDate"] + : new Date(item["healthCheckDate"]), + packagePath: item["packagePath"], + packageSizeInMb: item["packageSizeInMb"], + displayName: item["displayName"], + version: item["version"], + publisher: item["publisher"], + releaseLink: item["releaseLink"], + availabilityType: item["availabilityType"], + packageType: item["packageType"], + additionalProperties: item["additionalProperties"], + ...(!item["updateStateProperties"] + ? item["updateStateProperties"] + : _updatePropertiesUpdateStatePropertiesDeserializer(item["updateStateProperties"])), }; } -/** Operating system profile. */ -export interface DownloadOsProfile { - /** Name of the operating system. */ - osName?: string; - /** Type of the operating system. */ - osType?: string; - /** Version of the operating system. */ - osVersion?: string; - /** Location of the operating system image. */ - osImageLocation?: string; - /** Validated Solution Recipe version to be used for the job */ - vsrVersion?: string; - /** Hash of the OS package downloaded */ - imageHash?: string; - /** GPG Public Key used for package verification */ - gpgPubKey?: string; +/** Represents the current state of the update as it relates to this stamp. This includes phases such as preparation, installation, scanning, and error handling, providing insight into the update's progress and any issues encountered. */ +export enum KnownState { + /** The update has prerequisites that must be fulfilled before it can proceed. */ + HasPrerequisite = "HasPrerequisite", + /** The update is obsolete and no longer applicable. */ + Obsolete = "Obsolete", + /** The update is ready to be installed. */ + Ready = "Ready", + /** The update cannot be applied because another update is currently in progress. */ + NotApplicableBecauseAnotherUpdateIsInProgress = "NotApplicableBecauseAnotherUpdateIsInProgress", + /** The update is currently in the preparation phase. */ + Preparing = "Preparing", + /** The update is currently being installed. */ + Installing = "Installing", + /** The update has been successfully installed. */ + Installed = "Installed", + /** The update preparation phase failed. */ + PreparationFailed = "PreparationFailed", + /** The update installation failed. */ + InstallationFailed = "InstallationFailed", + /** The update is invalid and cannot be applied. */ + Invalid = "Invalid", + /** The update has been recalled and should not be applied. */ + Recalled = "Recalled", + /** The update is currently being downloaded. */ + Downloading = "Downloading", + /** The update download failed. */ + DownloadFailed = "DownloadFailed", + /** A health check is being performed before applying the update. */ + HealthChecking = "HealthChecking", + /** The health check failed, preventing the update from proceeding. */ + HealthCheckFailed = "HealthCheckFailed", + /** The update is ready to be installed after successful preparation and checks. */ + ReadyToInstall = "ReadyToInstall", + /** The system is scanning for updates. */ + ScanInProgress = "ScanInProgress", + /** The scan for updates failed. */ + ScanFailed = "ScanFailed", + /** Additional content is required to proceed with the update. */ + AdditionalContentRequired = "AdditionalContentRequired", + /** The health check has expired and needs to be redone. */ + HealthCheckExpired = "HealthCheckExpired", + /** The update is pending OEM validation before it can proceed. */ + PendingOEMValidation = "PendingOEMValidation", } -export function downloadOsProfileSerializer(item: DownloadOsProfile): any { - return { - osName: item["osName"], - osType: item["osType"], - osVersion: item["osVersion"], - osImageLocation: item["osImageLocation"], - vsrVersion: item["vsrVersion"], - imageHash: item["imageHash"], - gpgPubKey: item["gpgPubKey"], - }; +/** + * Represents the current state of the update as it relates to this stamp. This includes phases such as preparation, installation, scanning, and error handling, providing insight into the update's progress and any issues encountered. \ + * {@link KnownState} can be used interchangeably with State, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **HasPrerequisite**: The update has prerequisites that must be fulfilled before it can proceed. \ + * **Obsolete**: The update is obsolete and no longer applicable. \ + * **Ready**: The update is ready to be installed. \ + * **NotApplicableBecauseAnotherUpdateIsInProgress**: The update cannot be applied because another update is currently in progress. \ + * **Preparing**: The update is currently in the preparation phase. \ + * **Installing**: The update is currently being installed. \ + * **Installed**: The update has been successfully installed. \ + * **PreparationFailed**: The update preparation phase failed. \ + * **InstallationFailed**: The update installation failed. \ + * **Invalid**: The update is invalid and cannot be applied. \ + * **Recalled**: The update has been recalled and should not be applied. \ + * **Downloading**: The update is currently being downloaded. \ + * **DownloadFailed**: The update download failed. \ + * **HealthChecking**: A health check is being performed before applying the update. \ + * **HealthCheckFailed**: The health check failed, preventing the update from proceeding. \ + * **ReadyToInstall**: The update is ready to be installed after successful preparation and checks. \ + * **ScanInProgress**: The system is scanning for updates. \ + * **ScanFailed**: The scan for updates failed. \ + * **AdditionalContentRequired**: Additional content is required to proceed with the update. \ + * **HealthCheckExpired**: The health check has expired and needs to be redone. \ + * **PendingOEMValidation**: The update is pending OEM validation before it can proceed. + */ +export type State = string; + +export function updatePrerequisiteArraySerializer(result: Array): any[] { + return result.map((item) => { + return updatePrerequisiteSerializer(item); + }); } -export function downloadOsProfileDeserializer(item: any): DownloadOsProfile { - return { - osName: item["osName"], - osType: item["osType"], - osVersion: item["osVersion"], - osImageLocation: item["osImageLocation"], - vsrVersion: item["vsrVersion"], - imageHash: item["imageHash"], - gpgPubKey: item["gpgPubKey"], - }; +export function updatePrerequisiteArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return updatePrerequisiteDeserializer(item); + }); } -/** Properties for pausing a server in the cluster. */ -export interface EdgeMachineCollectLogJobProperties extends EdgeMachineJobProperties { - /** ClusterJob Type to support polymorphic resource. */ - jobType: "CollectLog"; - /** From date for log collection. */ - fromDate: Date; - /** To date for log collection. */ - toDate: Date; - /** To date for log collection. */ - readonly lastLogGenerated?: Date; - /** log collection job reported properties. */ - readonly reportedProperties?: EdgeMachineCollectLogJobReportedProperties; +/** If update State is HasPrerequisite, this property contains an array of objects describing prerequisite updates before installing this update. Otherwise, it is empty. */ +export interface UpdatePrerequisite { + /** Updatable component type. */ + updateType?: string; + /** Version of the prerequisite. */ + version?: string; + /** Friendly name of the prerequisite. */ + packageName?: string; } -export function edgeMachineCollectLogJobPropertiesSerializer( - item: EdgeMachineCollectLogJobProperties, -): any { +export function updatePrerequisiteSerializer(item: UpdatePrerequisite): any { return { - jobType: item["jobType"], - deploymentMode: item["deploymentMode"], - fromDate: item["fromDate"].toISOString(), - toDate: item["toDate"].toISOString(), + updateType: item["updateType"], + version: item["version"], + packageName: item["packageName"], }; } -export function edgeMachineCollectLogJobPropertiesDeserializer( - item: any, -): EdgeMachineCollectLogJobProperties { +export function updatePrerequisiteDeserializer(item: any): UpdatePrerequisite { return { - jobType: item["jobType"], - deploymentMode: item["deploymentMode"], - provisioningState: item["provisioningState"], - jobId: item["jobId"], - startTimeUtc: !item["startTimeUtc"] ? item["startTimeUtc"] : new Date(item["startTimeUtc"]), - endTimeUtc: !item["endTimeUtc"] ? item["endTimeUtc"] : new Date(item["endTimeUtc"]), - status: item["status"], - error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]), - fromDate: new Date(item["fromDate"]), - toDate: new Date(item["toDate"]), - lastLogGenerated: !item["lastLogGenerated"] - ? item["lastLogGenerated"] - : new Date(item["lastLogGenerated"]), - reportedProperties: !item["reportedProperties"] - ? item["reportedProperties"] - : edgeMachineCollectLogJobReportedPropertiesDeserializer(item["reportedProperties"]), + updateType: item["updateType"], + version: item["version"], + packageName: item["packageName"], }; } -/** Represents the reported properties of a log collection job. */ -export interface EdgeMachineCollectLogJobReportedProperties { - /** The percentage of the job that is complete. */ - readonly percentComplete?: number; - /** Validation status of job. */ - readonly validationStatus?: EceActionStatus; - /** Deployment status of job. */ - readonly deploymentStatus?: EceActionStatus; - /** Details of the log collection session. */ - readonly logCollectionSessionDetails?: LogCollectionJobSession[]; +export function packageVersionInfoArraySerializer(result: Array): any[] { + return result.map((item) => { + return packageVersionInfoSerializer(item); + }); } -export function edgeMachineCollectLogJobReportedPropertiesDeserializer( - item: any, -): EdgeMachineCollectLogJobReportedProperties { - return { - percentComplete: item["percentComplete"], - validationStatus: !item["validationStatus"] - ? item["validationStatus"] - : eceActionStatusDeserializer(item["validationStatus"]), - deploymentStatus: !item["deploymentStatus"] - ? item["deploymentStatus"] - : eceActionStatusDeserializer(item["deploymentStatus"]), - logCollectionSessionDetails: !item["logCollectionSessionDetails"] - ? item["logCollectionSessionDetails"] - : logCollectionJobSessionArrayDeserializer(item["logCollectionSessionDetails"]), - }; +export function packageVersionInfoArrayDeserializer(result: Array): any[] { + return result.map((item) => { + return packageVersionInfoDeserializer(item); + }); } -/** The response of a EdgeMachineJob list operation. */ -export interface _EdgeMachineJobListResult { - /** The EdgeMachineJob items on this page */ - value: EdgeMachineJob[]; - /** The link to the next page of items */ - nextLink?: string; +/** Current version of each updatable component. */ +export interface PackageVersionInfo { + /** Package type */ + packageType?: string; + /** Package version */ + version?: string; + /** Last time this component was updated. */ + lastUpdated?: Date; } -export function _edgeMachineJobListResultDeserializer(item: any): _EdgeMachineJobListResult { +export function packageVersionInfoSerializer(item: PackageVersionInfo): any { return { - value: edgeMachineJobArrayDeserializer(item["value"]), - nextLink: item["nextLink"], + packageType: item["packageType"], + version: item["version"], + lastUpdated: !item["lastUpdated"] ? item["lastUpdated"] : item["lastUpdated"].toISOString(), }; } -export function edgeMachineJobArraySerializer(result: Array): any[] { - return result.map((item) => { - return edgeMachineJobSerializer(item); - }); +export function packageVersionInfoDeserializer(item: any): PackageVersionInfo { + return { + packageType: item["packageType"], + version: item["version"], + lastUpdated: !item["lastUpdated"] ? item["lastUpdated"] : new Date(item["lastUpdated"]), + }; } -export function edgeMachineJobArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return edgeMachineJobDeserializer(item); - }); +/** Indicates whether a reboot is required after the update or operation. Helps determine if a system restart is necessary to complete the process. */ +export enum KnownRebootRequirement { + /** It is not known whether a reboot is required. */ + Unknown = "Unknown", + /** A reboot is required to complete the operation. */ + True = "True", + /** No reboot is required after the operation. */ + False = "False", } -/** Validate Ownership Voucher Request */ -export interface ValidateOwnershipVouchersRequest { - /** Ownership Voucher Details. */ - ownershipVoucherDetails: OwnershipVoucherDetails[]; -} +/** + * Indicates whether a reboot is required after the update or operation. Helps determine if a system restart is necessary to complete the process. \ + * {@link KnownRebootRequirement} can be used interchangeably with RebootRequirement, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown**: It is not known whether a reboot is required. \ + * **True**: A reboot is required to complete the operation. \ + * **False**: No reboot is required after the operation. + */ +export type RebootRequirement = string; -export function validateOwnershipVouchersRequestSerializer( - item: ValidateOwnershipVouchersRequest, -): any { - return { - ownershipVoucherDetails: ownershipVoucherDetailsArraySerializer( - item["ownershipVoucherDetails"], - ), - }; +/** Overall health state for update-specific health checks. Indicates whether the system is functioning correctly, has warnings or errors, or is undergoing a health evaluation. */ +export enum KnownHealthState { + /** The health state is not known or cannot be determined. */ + Unknown = "Unknown", + /** The health check completed successfully and the system is healthy. */ + Success = "Success", + /** The health check failed, indicating a critical issue. */ + Failure = "Failure", + /** The health check detected a non-critical issue that may require attention. */ + Warning = "Warning", + /** An error occurred during the health check process. */ + Error = "Error", + /** The health check is currently in progress. */ + InProgress = "InProgress", } -export function ownershipVoucherDetailsArraySerializer( - result: Array, -): any[] { - return result.map((item) => { - return ownershipVoucherDetailsSerializer(item); - }); -} +/** + * Overall health state for update-specific health checks. Indicates whether the system is functioning correctly, has warnings or errors, or is undergoing a health evaluation. \ + * {@link KnownHealthState} can be used interchangeably with HealthState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown**: The health state is not known or cannot be determined. \ + * **Success**: The health check completed successfully and the system is healthy. \ + * **Failure**: The health check failed, indicating a critical issue. \ + * **Warning**: The health check detected a non-critical issue that may require attention. \ + * **Error**: An error occurred during the health check process. \ + * **InProgress**: The health check is currently in progress. + */ +export type HealthState = string; -export function ownershipVoucherDetailsArrayDeserializer( - result: Array, -): any[] { +export function precheckResultArraySerializer(result: Array): any[] { return result.map((item) => { - return ownershipVoucherDetailsDeserializer(item); + return precheckResultSerializer(item); }); } -/** Validate Ownership Voucher Response */ -export interface ValidateOwnershipVouchersResponse { - /** Ownership Voucher Validation Details. */ - ownershipVoucherValidationDetails: OwnershipVoucherValidationDetails[]; -} - -export function validateOwnershipVouchersResponseDeserializer( - item: any, -): ValidateOwnershipVouchersResponse { - return { - ownershipVoucherValidationDetails: ownershipVoucherValidationDetailsArrayDeserializer( - item["ownershipVoucherValidationDetails"], - ), - }; -} - -export function ownershipVoucherValidationDetailsArrayDeserializer( - result: Array, -): any[] { +export function precheckResultArrayDeserializer(result: Array): any[] { return result.map((item) => { - return ownershipVoucherValidationDetailsDeserializer(item); + return precheckResultDeserializer(item); }); } -/** Cluster Jobs resource */ -export interface ClusterJob extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: ClusterJobPropertiesUnion; +/** model interface PrecheckResult */ +export interface PrecheckResult { + /** Name of the individual test/rule/alert that was executed. Unique, not exposed to the customer. */ + name?: string; + /** The health check DisplayName localized of the individual test executed. */ + displayName?: string; + /** Key-value pairs that allow grouping/filtering individual tests. */ + tags?: PrecheckResultTags; + /** Key-value pairs that allow grouping/filtering individual tests. */ + healthCheckTags?: any; + /** User-facing name; one or more sentences indicating the direct issue. */ + title?: string; + /** Represents the current status of the check being performed. Indicates whether the check has completed successfully, failed, or is still in progress. */ + status?: Status; + /** Indicates the importance or impact level of the result. Determines whether the result is informational, a warning, or a critical issue that may block updates. */ + severity?: Severity; + /** Detailed overview of the issue and what impact the issue has on the stamp. */ + description?: string; + /** Set of steps that can be taken to resolve the issue found. */ + remediation?: string; + /** The unique identifier for the affected resource (such as a node or drive). */ + targetResourceID?: string; + /** The name of the affected resource. */ + targetResourceName?: string; + /** The type of resource being referred to (well-known set of nouns in infrastructure, aligning with Monitoring). */ + targetResourceType?: string; + /** The time in which the HealthCheck was called. */ + timestamp?: Date; + /** Property bag of key value pairs for additional information. */ + additionalData?: string; + /** The name of the services called for the HealthCheck (I.E. Test-AzureStack, Test-Cluster). */ + healthCheckSource?: string; } -export function clusterJobSerializer(item: ClusterJob): any { +export function precheckResultSerializer(item: PrecheckResult): any { return { - properties: !item["properties"] - ? item["properties"] - : clusterJobPropertiesUnionSerializer(item["properties"]), + name: item["name"], + displayName: item["displayName"], + tags: !item["tags"] ? item["tags"] : precheckResultTagsSerializer(item["tags"]), + healthCheckTags: item["healthCheckTags"], + title: item["title"], + status: item["status"], + severity: item["severity"], + description: item["description"], + remediation: item["remediation"], + targetResourceID: item["targetResourceID"], + targetResourceName: item["targetResourceName"], + targetResourceType: item["targetResourceType"], + timestamp: !item["timestamp"] ? item["timestamp"] : item["timestamp"].toISOString(), + additionalData: item["additionalData"], + healthCheckSource: item["healthCheckSource"], }; } -export function clusterJobDeserializer(item: any): ClusterJob { +export function precheckResultDeserializer(item: any): PrecheckResult { return { - id: item["id"], name: item["name"], - type: item["type"], - systemData: !item["systemData"] - ? item["systemData"] - : systemDataDeserializer(item["systemData"]), - properties: !item["properties"] - ? item["properties"] - : clusterJobPropertiesUnionDeserializer(item["properties"]), + displayName: item["displayName"], + tags: !item["tags"] ? item["tags"] : precheckResultTagsDeserializer(item["tags"]), + healthCheckTags: item["healthCheckTags"], + title: item["title"], + status: item["status"], + severity: item["severity"], + description: item["description"], + remediation: item["remediation"], + targetResourceID: item["targetResourceID"], + targetResourceName: item["targetResourceName"], + targetResourceType: item["targetResourceType"], + timestamp: !item["timestamp"] ? item["timestamp"] : new Date(item["timestamp"]), + additionalData: item["additionalData"], + healthCheckSource: item["healthCheckSource"], }; } -/** Cluster Job properties */ -export interface ClusterJobProperties { - /** Job Type to support polymorphic resource. */ - /** The discriminator possible values: ConfigureSdnIntegration, ConfigureCVM */ - jobType: HciJobType; - /** Deployment mode to trigger job. */ - deploymentMode?: DeploymentMode; - /** Job provisioning state */ - readonly provisioningState?: ProvisioningState; - /** Unique, immutable job id. */ - readonly jobId?: string; - /** The UTC date and time at which the job started. */ - readonly startTimeUtc?: Date; - /** The UTC date and time at which the job completed. */ - readonly endTimeUtc?: Date; - /** Status of Cluster job. */ - readonly status?: JobStatus; - /** Reported properties for job */ - readonly reportedProperties?: JobReportedProperties; +/** Key-value pairs that allow grouping/filtering individual tests. */ +export interface PrecheckResultTags { + /** Key that allow grouping/filtering individual tests. */ + key?: string; + /** Value of the key that allow grouping/filtering individual tests. */ + value?: string; } -export function clusterJobPropertiesSerializer(item: ClusterJobProperties): any { - return { jobType: item["jobType"], deploymentMode: item["deploymentMode"] }; +export function precheckResultTagsSerializer(item: PrecheckResultTags): any { + return { key: item["key"], value: item["value"] }; } -export function clusterJobPropertiesDeserializer(item: any): ClusterJobProperties { +export function precheckResultTagsDeserializer(item: any): PrecheckResultTags { return { - jobType: item["jobType"], - deploymentMode: item["deploymentMode"], - provisioningState: item["provisioningState"], - jobId: item["jobId"], - startTimeUtc: !item["startTimeUtc"] ? item["startTimeUtc"] : new Date(item["startTimeUtc"]), - endTimeUtc: !item["endTimeUtc"] ? item["endTimeUtc"] : new Date(item["endTimeUtc"]), - status: item["status"], - reportedProperties: !item["reportedProperties"] - ? item["reportedProperties"] - : jobReportedPropertiesDeserializer(item["reportedProperties"]), + key: item["key"], + value: item["value"], }; } -/** Alias for ClusterJobPropertiesUnion */ -export type ClusterJobPropertiesUnion = - | HciConfigureSdnIntegrationJobProperties - | HciConfigureCvmJobProperties - | ClusterJobProperties; - -export function clusterJobPropertiesUnionSerializer(item: ClusterJobPropertiesUnion): any { - switch (item.jobType) { - case "ConfigureSdnIntegration": - return hciConfigureSdnIntegrationJobPropertiesSerializer( - item as HciConfigureSdnIntegrationJobProperties, - ); - - case "ConfigureCVM": - return hciConfigureCvmJobPropertiesSerializer(item as HciConfigureCvmJobProperties); - - default: - return clusterJobPropertiesSerializer(item); - } -} - -export function clusterJobPropertiesUnionDeserializer(item: any): ClusterJobPropertiesUnion { - switch (item["jobType"]) { - case "ConfigureSdnIntegration": - return hciConfigureSdnIntegrationJobPropertiesDeserializer( - item as HciConfigureSdnIntegrationJobProperties, - ); - - case "ConfigureCVM": - return hciConfigureCvmJobPropertiesDeserializer(item as HciConfigureCvmJobProperties); - - default: - return clusterJobPropertiesDeserializer(item); - } -} - -/** ClusterJob Type supported. */ -export enum KnownHciJobType { - /** Job to CVM intent for the cluster. */ - ConfigureCVM = "ConfigureCVM", - /** Job to configure SDN (Software Defined Networking) integration for the cluster. */ - ConfigureSdnIntegration = "ConfigureSdnIntegration", +/** Indicates the importance or impact level of the result. Determines whether the result is informational, a warning, or a critical issue that may block updates. */ +export enum KnownSeverity { + /** A critical issue that blocks updates and requires immediate attention. */ + Critical = "Critical", + /** A warning that may indicate a potential issue but does not block updates. */ + Warning = "Warning", + /** General information that does not indicate any issue. */ + Informational = "Informational", + /** The result is hidden and not shown in the output. */ + Hidden = "Hidden", } /** - * ClusterJob Type supported. \ - * {@link KnownHciJobType} can be used interchangeably with HciJobType, + * Indicates the importance or impact level of the result. Determines whether the result is informational, a warning, or a critical issue that may block updates. \ + * {@link KnownSeverity} can be used interchangeably with Severity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ConfigureCVM**: Job to CVM intent for the cluster. \ - * **ConfigureSdnIntegration**: Job to configure SDN (Software Defined Networking) integration for the cluster. + * **Critical**: A critical issue that blocks updates and requires immediate attention. \ + * **Warning**: A warning that may indicate a potential issue but does not block updates. \ + * **Informational**: General information that does not indicate any issue. \ + * **Hidden**: The result is hidden and not shown in the output. */ -export type HciJobType = string; - -/** Reported Properties for job triggered from cloud. */ -export interface JobReportedProperties { - /** The percentage of the job that is complete. */ - readonly percentComplete?: number; - /** Validation status of job. */ - readonly validationStatus?: EceActionStatus; - /** Deployment status of job. */ - readonly deploymentStatus?: EceActionStatus; -} - -export function jobReportedPropertiesDeserializer(item: any): JobReportedProperties { - return { - percentComplete: item["percentComplete"], - validationStatus: !item["validationStatus"] - ? item["validationStatus"] - : eceActionStatusDeserializer(item["validationStatus"]), - deploymentStatus: !item["deploymentStatus"] - ? item["deploymentStatus"] - : eceActionStatusDeserializer(item["deploymentStatus"]), - }; -} - -/** Properties for configuring SDN integration intent for the cluster. */ -export interface HciConfigureSdnIntegrationJobProperties extends ClusterJobProperties { - /** ClusterJob Type to support polymorphic resource. */ - jobType: "ConfigureSdnIntegration"; - /** Defines the customer's intent for configuring SDN integration */ - sdnIntegrationIntent: SdnIntegrationIntent; - /** A string identifier used to construct the Network Controller (NC) REST resource name. This prefix helps group and distinguish SDN-managed network components and must follow specific formatting rules. */ - sdnPrefix?: string; -} +export type Severity = string; -export function hciConfigureSdnIntegrationJobPropertiesSerializer( - item: HciConfigureSdnIntegrationJobProperties, -): any { - return { - jobType: item["jobType"], - deploymentMode: item["deploymentMode"], - sdnIntegrationIntent: item["sdnIntegrationIntent"], - sdnPrefix: item["sdnPrefix"], - }; +/** Indicates how the update content is made available for download. This determines whether the update is sourced locally, from an online repository, or requires user notification. */ +export enum KnownAvailabilityType { + /** The update content is available locally within the environment. */ + Local = "Local", + /** The update content is available from an online source. */ + Online = "Online", + /** The system will notify the user when update content becomes available. */ + Notify = "Notify", } -export function hciConfigureSdnIntegrationJobPropertiesDeserializer( - item: any, -): HciConfigureSdnIntegrationJobProperties { - return { - jobType: item["jobType"], - deploymentMode: item["deploymentMode"], - provisioningState: item["provisioningState"], - jobId: item["jobId"], - startTimeUtc: !item["startTimeUtc"] ? item["startTimeUtc"] : new Date(item["startTimeUtc"]), - endTimeUtc: !item["endTimeUtc"] ? item["endTimeUtc"] : new Date(item["endTimeUtc"]), - status: item["status"], - reportedProperties: !item["reportedProperties"] - ? item["reportedProperties"] - : jobReportedPropertiesDeserializer(item["reportedProperties"]), - sdnIntegrationIntent: item["sdnIntegrationIntent"], - sdnPrefix: item["sdnPrefix"], - }; -} +/** + * Indicates how the update content is made available for download. This determines whether the update is sourced locally, from an online repository, or requires user notification. \ + * {@link KnownAvailabilityType} can be used interchangeably with AvailabilityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Local**: The update content is available locally within the environment. \ + * **Online**: The update content is available from an online source. \ + * **Notify**: The system will notify the user when update content becomes available. + */ +export type AvailabilityType = string; -/** Defines the customer's intent for updating confidential VM properties */ -export interface HciConfigureCvmJobProperties extends ClusterJobProperties { - /** ClusterJob Type to support polymorphic resource. */ - jobType: "ConfigureCVM"; - /** Defines the customer's intent for updating confidential VM properties */ - confidentialVmIntent: ConfidentialVmIntent; +/** Additional information regarding the state of the update. See definition of UpdateStateProperties type below for more details on this property. */ +export interface UpdateStateProperties { + /** Progress percentage of ongoing operation. Currently this property is only valid when the update is in the Downloading state, where it maps to how much of the update content has been downloaded. */ + progressPercentage?: number; + /** Brief message with instructions for updates of AvailabilityType Notify. */ + notifyMessage?: string; } -export function hciConfigureCvmJobPropertiesSerializer(item: HciConfigureCvmJobProperties): any { - return { - jobType: item["jobType"], - deploymentMode: item["deploymentMode"], - confidentialVmIntent: item["confidentialVmIntent"], - }; +export function updateStatePropertiesSerializer(item: UpdateStateProperties): any { + return { progressPercentage: item["progressPercentage"], notifyMessage: item["notifyMessage"] }; } -export function hciConfigureCvmJobPropertiesDeserializer(item: any): HciConfigureCvmJobProperties { +export function updateStatePropertiesDeserializer(item: any): UpdateStateProperties { return { - jobType: item["jobType"], - deploymentMode: item["deploymentMode"], - provisioningState: item["provisioningState"], - jobId: item["jobId"], - startTimeUtc: !item["startTimeUtc"] ? item["startTimeUtc"] : new Date(item["startTimeUtc"]), - endTimeUtc: !item["endTimeUtc"] ? item["endTimeUtc"] : new Date(item["endTimeUtc"]), - status: item["status"], - reportedProperties: !item["reportedProperties"] - ? item["reportedProperties"] - : jobReportedPropertiesDeserializer(item["reportedProperties"]), - confidentialVmIntent: item["confidentialVmIntent"], + progressPercentage: item["progressPercentage"], + notifyMessage: item["notifyMessage"], }; } -/** List of Cluster Job resources for the HCI cluster. */ -export interface _ClusterJobListResult { - /** The ClusterJob items on this page */ - value: ClusterJob[]; +/** List of Updates */ +export interface _UpdateList { + /** The Update items on this page */ + value: Update[]; /** The link to the next page of items */ nextLink?: string; } -export function _clusterJobListResultDeserializer(item: any): _ClusterJobListResult { +export function _updateListDeserializer(item: any): _UpdateList { return { - value: clusterJobArrayDeserializer(item["value"]), + value: updateArrayDeserializer(item["value"]), nextLink: item["nextLink"], }; } -export function clusterJobArraySerializer(result: Array): any[] { +export function updateArraySerializer(result: Array): any[] { return result.map((item) => { - return clusterJobSerializer(item); + return updateSerializer(item); }); } -export function clusterJobArrayDeserializer(result: Array): any[] { +export function updateArrayDeserializer(result: Array): any[] { return result.map((item) => { - return clusterJobDeserializer(item); + return updateDeserializer(item); }); } -/** DevicePool details. */ -export interface DevicePool extends TrackedResource { - /** The resource-specific properties for this resource. */ - properties?: DevicePoolProperties; - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; +/** Request body for the check updates action on update summaries. */ +export interface CheckUpdatesRequest { + /** Name of update */ + updateName?: string; } -export function devicePoolSerializer(item: DevicePool): any { - return { - tags: item["tags"], - location: item["location"], - properties: !item["properties"] - ? item["properties"] - : devicePoolPropertiesSerializer(item["properties"]), - identity: !item["identity"] - ? item["identity"] - : managedServiceIdentitySerializer(item["identity"]), - }; +export function checkUpdatesRequestSerializer(item: CheckUpdatesRequest): any { + return { updateName: item["updateName"] }; } -export function devicePoolDeserializer(item: any): DevicePool { +/** Represents a validated solution recipe resource. */ +export interface ValidatedSolutionRecipe extends ProxyResource { + /** The resource-specific properties for this resource. */ + properties?: ValidatedSolutionRecipeProperties; +} + +export function validatedSolutionRecipeDeserializer(item: any): ValidatedSolutionRecipe { return { - tags: !item["tags"] - ? item["tags"] - : Object.fromEntries(Object.entries(item["tags"]).map(([k, p]: [string, any]) => [k, p])), - location: item["location"], id: item["id"], name: item["name"], type: item["type"], @@ -10008,159 +7177,251 @@ export function devicePoolDeserializer(item: any): DevicePool { : systemDataDeserializer(item["systemData"]), properties: !item["properties"] ? item["properties"] - : devicePoolPropertiesDeserializer(item["properties"]), - identity: !item["identity"] - ? item["identity"] - : managedServiceIdentityDeserializer(item["identity"]), + : validatedSolutionRecipePropertiesDeserializer(item["properties"]), }; } -/** Properties for device pool. */ -export interface DevicePoolProperties { - /** The provisioning state of a resource. */ - readonly provisioningState?: ProvisioningState; - /** Unique, immutable resource id. */ - readonly cloudId?: string; - /** List of machines in device pool. */ - devices?: DeviceDetail[]; - /** Custom Location Resource Id for the pool */ - readonly customLocationResourceId?: string; - /** Custom Location Name for the pool, default: -CL */ - customLocationName?: string; - /** Managed resource group name for the pool */ - managedResourceGroup?: string; - /** operation status details for device pool. */ - readonly operationDetails?: OperationDetail[]; +/** Represents properties of a validated solution recipe resource. */ +export interface ValidatedSolutionRecipeProperties { + /** Represents contents of a validated solution recipe. */ + recipeContent: ValidatedSolutionRecipeContent; + /** Represents the signature of the recipe, to be used for ensuring its integrity. */ + signature?: string; } -export function devicePoolPropertiesSerializer(item: DevicePoolProperties): any { +export function validatedSolutionRecipePropertiesDeserializer( + item: any, +): ValidatedSolutionRecipeProperties { return { - devices: !item["devices"] ? item["devices"] : deviceDetailArraySerializer(item["devices"]), - customLocationName: item["customLocationName"], - managedResourceGroup: item["managedResourceGroup"], + recipeContent: validatedSolutionRecipeContentDeserializer(item["recipeContent"]), + signature: item["signature"], }; } -export function devicePoolPropertiesDeserializer(item: any): DevicePoolProperties { - return { - provisioningState: item["provisioningState"], - cloudId: item["cloudId"], - devices: !item["devices"] ? item["devices"] : deviceDetailArrayDeserializer(item["devices"]), - customLocationResourceId: item["customLocationResourceId"], - customLocationName: item["customLocationName"], - managedResourceGroup: item["managedResourceGroup"], - operationDetails: !item["operationDetails"] - ? item["operationDetails"] - : operationDetailArrayDeserializer(item["operationDetails"]), - }; +/** Represents contents of a validated solution recipe resource. */ +export interface ValidatedSolutionRecipeContent { + /** Represents information about a validated solution recipe. */ + info: ValidatedSolutionRecipeInfo; + /** Represents capabilities available in a validated solution recipe. */ + capabilities?: ValidatedSolutionRecipeCapabilities; + /** Represents components available in a validated solution recipe. */ + components: ValidatedSolutionRecipeComponent[]; } -export function deviceDetailArraySerializer(result: Array): any[] { - return result.map((item) => { - return deviceDetailSerializer(item); - }); +export function validatedSolutionRecipeContentDeserializer( + item: any, +): ValidatedSolutionRecipeContent { + return { + info: validatedSolutionRecipeInfoDeserializer(item["info"]), + capabilities: !item["capabilities"] + ? item["capabilities"] + : validatedSolutionRecipeCapabilitiesDeserializer(item["capabilities"]), + components: validatedSolutionRecipeComponentArrayDeserializer(item["components"]), + }; } -export function deviceDetailArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return deviceDetailDeserializer(item); - }); +/** Represents information about a validated solution recipe. */ +export interface ValidatedSolutionRecipeInfo { + /** Represents the solution type for which this validated solution recipe is applicable. */ + solutionType: string; + /** Represents the version for which this validated solution recipe is applicable. */ + version: string; } -/** Device details. */ -export interface DeviceDetail { - /** Resource Id of the device. */ - deviceResourceId?: string; - /** Resource Id of group device belongs to. */ - readonly claimedBy?: string; +export function validatedSolutionRecipeInfoDeserializer(item: any): ValidatedSolutionRecipeInfo { + return { + solutionType: item["solutionType"], + version: item["version"], + }; } -export function deviceDetailSerializer(item: DeviceDetail): any { - return { deviceResourceId: item["deviceResourceId"] }; +/** Represents capabilities available in a validated solution recipe. */ +export interface ValidatedSolutionRecipeCapabilities { + /** Represents the cluster capabilities. */ + clusterCapabilities: ValidatedSolutionRecipeCapability[]; + /** Represents the node capabilities. */ + nodeCapabilities: ValidatedSolutionRecipeCapability[]; } -export function deviceDetailDeserializer(item: any): DeviceDetail { +export function validatedSolutionRecipeCapabilitiesDeserializer( + item: any, +): ValidatedSolutionRecipeCapabilities { return { - deviceResourceId: item["deviceResourceId"], - claimedBy: item["claimedBy"], + clusterCapabilities: validatedSolutionRecipeCapabilityArrayDeserializer( + item["clusterCapabilities"], + ), + nodeCapabilities: validatedSolutionRecipeCapabilityArrayDeserializer(item["nodeCapabilities"]), }; } -/** Properties for patching Device Pool. */ -export interface DevicePoolPatch { - /** Resource tags. */ - tags?: Record; - /** The managed service identities assigned to this resource. */ - identity?: ManagedServiceIdentity; +export function validatedSolutionRecipeCapabilityArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return validatedSolutionRecipeCapabilityDeserializer(item); + }); +} + +/** Represents capability available in a validated solution recipe. */ +export interface ValidatedSolutionRecipeCapability { + /** Represents the capability name. */ + capabilityName: string; } -export function devicePoolPatchSerializer(item: DevicePoolPatch): any { +export function validatedSolutionRecipeCapabilityDeserializer( + item: any, +): ValidatedSolutionRecipeCapability { return { - tags: item["tags"], - identity: !item["identity"] - ? item["identity"] - : managedServiceIdentitySerializer(item["identity"]), + capabilityName: item["capabilityName"], }; } -/** The response of a DevicePool list operation. */ -export interface _DevicePoolListResult { - /** The DevicePool items on this page */ - value: DevicePool[]; - /** The link to the next page of items */ - nextLink?: string; +export function validatedSolutionRecipeComponentArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return validatedSolutionRecipeComponentDeserializer(item); + }); +} + +/** Represents component available in a validated solution recipe. */ +export interface ValidatedSolutionRecipeComponent { + /** Represents the component's name. */ + name: string; + /** Represents the component's type. */ + type: string; + /** Represents the component's required version. */ + requiredVersion?: string; + /** Represents the component's install order. */ + installOrder?: number; + /** Represents the component's tags. */ + tags: string[]; + /** Represents the component's payloads. */ + payloads?: ValidatedSolutionRecipeComponentPayload[]; + /** Represents the component's metadata. */ + metadata?: ValidatedSolutionRecipeComponentMetadata; } -export function _devicePoolListResultDeserializer(item: any): _DevicePoolListResult { +export function validatedSolutionRecipeComponentDeserializer( + item: any, +): ValidatedSolutionRecipeComponent { return { - value: devicePoolArrayDeserializer(item["value"]), - nextLink: item["nextLink"], + name: item["name"], + type: item["type"], + requiredVersion: item["requiredVersion"], + installOrder: item["installOrder"], + tags: item["tags"].map((p: any) => { + return p; + }), + payloads: !item["payloads"] + ? item["payloads"] + : validatedSolutionRecipeComponentPayloadArrayDeserializer(item["payloads"]), + metadata: !item["metadata"] + ? item["metadata"] + : validatedSolutionRecipeComponentMetadataDeserializer(item["metadata"]), }; } -export function devicePoolArraySerializer(result: Array): any[] { +export function validatedSolutionRecipeComponentPayloadArrayDeserializer( + result: Array, +): any[] { return result.map((item) => { - return devicePoolSerializer(item); + return validatedSolutionRecipeComponentPayloadDeserializer(item); }); } -export function devicePoolArrayDeserializer(result: Array): any[] { - return result.map((item) => { - return devicePoolDeserializer(item); - }); +/** Represents payloads associated with a component available in a validated solution recipe. */ +export interface ValidatedSolutionRecipeComponentPayload { + /** Represents the unique identifier of the payload used to query the URL. */ + identifier: string; + /** Represents the cryptographic hash of the payload, ensuring data integrity. */ + hash: string; + /** Represents the name of the file associated with the payload. */ + fileName: string; + /** Represents the URL from which the payload can be downloaded. */ + url: string; +} + +export function validatedSolutionRecipeComponentPayloadDeserializer( + item: any, +): ValidatedSolutionRecipeComponentPayload { + return { + identifier: item["identifier"], + hash: item["hash"], + fileName: item["fileName"], + url: item["url"], + }; } -/** Request for claiming devices of the pool. */ -export interface ClaimDeviceRequest { - /** List of resource ids of the devices to be modified */ - devices: string[]; - /** Resource Id of group device belongs to. */ - claimedBy?: string; +/** Represents metadata associated with a component available in a validated solution recipe. */ +export interface ValidatedSolutionRecipeComponentMetadata { + /** Represents the type of extension. */ + extensionType?: string; + /** Represents the publisher of the extension. */ + publisher?: string; + /** Indicates whether automatic upgrades of the extension are enabled. */ + enableAutomaticUpgrade?: boolean; + /** Indicates whether the LCM (Lifecycle Management) update of the extension is enabled. */ + lcmUpdate?: boolean; + /** Specifies the catalog to which the extension belongs. */ + catalog?: string; + /** Specifies the ring to which the extension belongs, internally used by component. */ + ring?: string; + /** Specifies the release train to which given component belongs. */ + releaseTrain?: string; + /** Specifies the link associated with the extension. */ + link?: string; + /** Specifies the name of the extension. */ + name?: string; + /** Specifies the expected hash of the extension. */ + expectedHash?: string; + /** Specifies the preview source of the extension. */ + previewSource?: string; } -export function claimDeviceRequestSerializer(item: ClaimDeviceRequest): any { +export function validatedSolutionRecipeComponentMetadataDeserializer( + item: any, +): ValidatedSolutionRecipeComponentMetadata { return { - devices: item["devices"].map((p: any) => { - return p; - }), - claimedBy: item["claimedBy"], + extensionType: item["extensionType"], + publisher: item["publisher"], + enableAutomaticUpgrade: item["enableAutomaticUpgrade"], + lcmUpdate: item["lcmUpdate"], + catalog: item["catalog"], + ring: item["ring"], + releaseTrain: item["releaseTrain"], + link: item["link"], + name: item["name"], + expectedHash: item["expectedHash"], + previewSource: item["previewSource"], }; } -/** Request for releasing devices of the pool. */ -export interface ReleaseDeviceRequest { - /** List of resource ids of the devices to be modified */ - devices: string[]; +/** The response of a ValidatedSolutionRecipe list operation. */ +export interface _ValidatedSolutionRecipeListResult { + /** The ValidatedSolutionRecipe items on this page */ + value: ValidatedSolutionRecipe[]; + /** The link to the next page of items */ + nextLink?: string; } -export function releaseDeviceRequestSerializer(item: ReleaseDeviceRequest): any { +export function _validatedSolutionRecipeListResultDeserializer( + item: any, +): _ValidatedSolutionRecipeListResult { return { - devices: item["devices"].map((p: any) => { - return p; - }), + value: validatedSolutionRecipeArrayDeserializer(item["value"]), + nextLink: item["nextLink"], }; } +export function validatedSolutionRecipeArrayDeserializer( + result: Array, +): any[] { + return result.map((item) => { + return validatedSolutionRecipeDeserializer(item); + }); +} + /** Get the update summaries for the cluster */ export interface UpdateSummaries extends ProxyResource { /** The geo-location where the resource lives */ @@ -10374,8 +7635,8 @@ export function updateSummariesArrayDeserializer(result: Array) export enum KnownVersions { /** The 2026-02-01 API version. */ V20260201 = "2026-02-01", - /** The 2026-04-01-preview API version. */ - V20260401Preview = "2026-04-01-preview", + /** The 2026-04-30 API version. */ + V20260430 = "2026-04-30", } export function _arcSettingPropertiesSerializer(item: ArcSetting): any { @@ -10475,7 +7736,6 @@ export function _clusterPropertiesDeserializer(item: any) { status: item["status"], connectivityStatus: item["connectivityStatus"], cloudId: item["cloudId"], - ring: item["ring"], cloudManagementEndpoint: item["cloudManagementEndpoint"], aadClientId: item["aadClientId"], aadTenantId: item["aadTenantId"], @@ -10520,12 +7780,6 @@ export function _clusterPropertiesDeserializer(item: any) { ? item["secretsLocations"] : secretsLocationDetailsArrayDeserializer(item["secretsLocations"]), clusterPattern: item["clusterPattern"], - confidentialVmProperties: !item["confidentialVmProperties"] - ? item["confidentialVmProperties"] - : confidentialVmPropertiesDeserializer(item["confidentialVmProperties"]), - sdnProperties: !item["sdnProperties"] - ? item["sdnProperties"] - : clusterSdnPropertiesDeserializer(item["sdnProperties"]), localAvailabilityZones: !item["localAvailabilityZones"] ? item["localAvailabilityZones"] : localAvailabilityZonesArrayDeserializer(item["localAvailabilityZones"]), @@ -10684,12 +7938,6 @@ export function _extensionPatchPropertiesSerializer(item: ExtensionPatch): any { }; } -export function _publisherPropertiesDeserializer(item: any) { - return { - provisioningState: item["provisioningState"], - }; -} - export function _securitySettingPropertiesSerializer(item: SecuritySetting): any { return { securedCoreComplianceAssignment: item["securedCoreComplianceAssignment"], diff --git a/sdk/azurestackhci/arm-azurestackhci/src/restorePollerHelpers.ts b/sdk/azurestackhci/arm-azurestackhci/src/restorePollerHelpers.ts index 9dbf75edc893..30d3fde4c361 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/restorePollerHelpers.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/restorePollerHelpers.ts @@ -3,26 +3,6 @@ import type { AzureStackHCIClient } from "./azureStackHCIClient.js"; import { _$deleteDeserialize } from "./api/updateSummaries/operations.js"; -import { - _releaseDevicesDeserialize, - _claimDevicesDeserialize, - _updateDeserialize, - _$deleteDeserialize as _$deleteDeserializeDevicePools, - _createOrUpdateDeserialize, -} from "./api/devicePools/operations.js"; -import { - _$deleteDeserialize as _$deleteDeserializeClusterJobs, - _createOrUpdateDeserialize as _createOrUpdateDeserializeClusterJobs, -} from "./api/clusterJobs/operations.js"; -import { - _$deleteDeserialize as _$deleteDeserializeEdgeMachineJobs, - _createOrUpdateDeserialize as _createOrUpdateDeserializeEdgeMachineJobs, -} from "./api/edgeMachineJobs/operations.js"; -import { - _$deleteDeserialize as _$deleteDeserializeEdgeMachines, - _updateDeserialize as _updateDeserializeEdgeMachines, - _createOrUpdateDeserialize as _createOrUpdateDeserializeEdgeMachines, -} from "./api/edgeMachines/operations.js"; import { _checkHealthDeserialize, _checkUpdatesDeserialize, @@ -35,12 +15,12 @@ import { import { _$deleteDeserialize as _$deleteDeserializeUpdateRuns } from "./api/updateRuns/operations.js"; import { _$deleteDeserialize as _$deleteDeserializeSecuritySettings, - _createOrUpdateDeserialize as _createOrUpdateDeserializeSecuritySettings, + _createOrUpdateDeserialize, } from "./api/securitySettings/operations.js"; import { _upgradeDeserialize, _$deleteDeserialize as _$deleteDeserializeExtensions, - _updateDeserialize as _updateDeserializeExtensions, + _updateDeserialize, _createDeserialize, } from "./api/extensions/operations.js"; import { @@ -59,7 +39,6 @@ import { import { _configureRemoteSupportDeserialize, _triggerLogCollectionDeserialize, - _changeRingDeserialize, _extendSoftwareAssuranceBenefitDeserialize, _createIdentityDeserialize, _uploadCertificateDeserialize, @@ -145,39 +124,6 @@ interface DeserializationHelper { const deserializeMap: Record = { "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updateSummaries/default": { deserializer: _$deleteDeserialize, expectedStatuses: ["200", "202", "204"] }, - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/devicePools/{devicePoolName}/releaseDevices": - { deserializer: _releaseDevicesDeserialize, expectedStatuses: ["202", "204", "200", "201"] }, - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/devicePools/{devicePoolName}/claimDevices": - { deserializer: _claimDevicesDeserialize, expectedStatuses: ["202", "204", "200", "201"] }, - "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/devicePools/{devicePoolName}": - { deserializer: _updateDeserialize, expectedStatuses: ["200", "202", "201"] }, - "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/devicePools/{devicePoolName}": - { deserializer: _$deleteDeserializeDevicePools, expectedStatuses: ["202", "204", "200"] }, - "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/devicePools/{devicePoolName}": - { deserializer: _createOrUpdateDeserialize, expectedStatuses: ["200", "201", "202"] }, - "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/jobs/{jobsName}": - { deserializer: _$deleteDeserializeClusterJobs, expectedStatuses: ["202", "204", "200"] }, - "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/jobs/{jobsName}": - { - deserializer: _createOrUpdateDeserializeClusterJobs, - expectedStatuses: ["200", "201", "202"], - }, - "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/edgeMachines/{edgeMachineName}/jobs/{jobsName}": - { deserializer: _$deleteDeserializeEdgeMachineJobs, expectedStatuses: ["202", "204", "200"] }, - "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/edgeMachines/{edgeMachineName}/jobs/{jobsName}": - { - deserializer: _createOrUpdateDeserializeEdgeMachineJobs, - expectedStatuses: ["200", "201", "202"], - }, - "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/edgeMachines/{edgeMachineName}": - { deserializer: _$deleteDeserializeEdgeMachines, expectedStatuses: ["202", "204", "200"] }, - "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/edgeMachines/{edgeMachineName}": - { deserializer: _updateDeserializeEdgeMachines, expectedStatuses: ["200", "202", "201"] }, - "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/edgeMachines/{edgeMachineName}": - { - deserializer: _createOrUpdateDeserializeEdgeMachines, - expectedStatuses: ["200", "201", "202"], - }, "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updateSummaries/default/checkHealth": { deserializer: _checkHealthDeserialize, expectedStatuses: ["202", "204", "200", "201"] }, "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updateSummaries/default/checkUpdates": @@ -193,16 +139,13 @@ const deserializeMap: Record = { "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/securitySettings/{securitySettingsName}": { deserializer: _$deleteDeserializeSecuritySettings, expectedStatuses: ["202", "204", "200"] }, "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/securitySettings/{securitySettingsName}": - { - deserializer: _createOrUpdateDeserializeSecuritySettings, - expectedStatuses: ["200", "201", "202"], - }, + { deserializer: _createOrUpdateDeserialize, expectedStatuses: ["200", "201", "202"] }, "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}/upgrade": { deserializer: _upgradeDeserialize, expectedStatuses: ["202", "200", "201"] }, "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}": { deserializer: _$deleteDeserializeExtensions, expectedStatuses: ["200", "202", "204"] }, "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}": - { deserializer: _updateDeserializeExtensions, expectedStatuses: ["200", "202", "201"] }, + { deserializer: _updateDeserialize, expectedStatuses: ["200", "202", "201"] }, "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}": { deserializer: _createDeserialize, expectedStatuses: ["200", "201", "202"] }, "POST /{resourceUri}/providers/Microsoft.AzureStackHCI/edgeDevices/{edgeDeviceName}/validate": { @@ -238,8 +181,6 @@ const deserializeMap: Record = { { deserializer: _configureRemoteSupportDeserialize, expectedStatuses: ["202", "200", "201"] }, "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/triggerLogCollection": { deserializer: _triggerLogCollectionDeserialize, expectedStatuses: ["202", "200", "201"] }, - "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/changeRing": - { deserializer: _changeRingDeserialize, expectedStatuses: ["202", "200", "201"] }, "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/extendSoftwareAssuranceBenefit": { deserializer: _extendSoftwareAssuranceBenefitDeserialize, diff --git a/sdk/azurestackhci/arm-azurestackhci/tsp-location.yaml b/sdk/azurestackhci/arm-azurestackhci/tsp-location.yaml index c2f60f9f7a25..060bebfaf05b 100644 --- a/sdk/azurestackhci/arm-azurestackhci/tsp-location.yaml +++ b/sdk/azurestackhci/arm-azurestackhci/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI -commit: c22e8792df237fd9afe601d69e305504679c42af +commit: 675a8ce1a1d7489731bc8bd05d8d3e7d865434e0 repo: Azure/azure-rest-api-specs additionalDirectories: diff --git a/sdk/azurestackhci/arm-azurestackhci/warp.config.yml b/sdk/azurestackhci/arm-azurestackhci/warp.config.yml index 73254f16b2a1..5fb2faf2212a 100644 --- a/sdk/azurestackhci/arm-azurestackhci/warp.config.yml +++ b/sdk/azurestackhci/arm-azurestackhci/warp.config.yml @@ -4,31 +4,21 @@ exports: "./package.json": "./package.json" ".": "./src/index.ts" "./api": "./src/api/index.ts" - "./api/updateSummaries": "src/api/updateSummaries/index.ts" - "./api/devicePools": "src/api/devicePools/index.ts" - "./api/clusterJobs": "src/api/clusterJobs/index.ts" - "./api/ownershipVouchers": "src/api/ownershipVouchers/index.ts" - "./api/edgeMachineJobs": "src/api/edgeMachineJobs/index.ts" - "./api/edgeMachines": "src/api/edgeMachines/index.ts" - "./api/validatedSolutionRecipes": "src/api/validatedSolutionRecipes/index.ts" - "./api/updateSummariesOperationGroup": "src/api/updateSummariesOperationGroup/index.ts" - "./api/updates": "src/api/updates/index.ts" - "./api/updateRuns": "src/api/updateRuns/index.ts" - "./api/skus": "src/api/skus/index.ts" - "./api/securitySettings": "src/api/securitySettings/index.ts" - "./api/publishers": "src/api/publishers/index.ts" - "./api/extensions": "src/api/extensions/index.ts" - "./api/edgeDevices": "src/api/edgeDevices/index.ts" - "./api/edgeDeviceJobs": "src/api/edgeDeviceJobs/index.ts" - "./api/deploymentSettings": "src/api/deploymentSettings/index.ts" - "./api/clusters": "src/api/clusters/index.ts" - "./api/offers": "src/api/offers/index.ts" - "./api/arcSettings": "src/api/arcSettings/index.ts" - "./api/operations": "src/api/operations/index.ts" - "./api/updateContents": "src/api/updateContents/index.ts" - "./api/osImages": "src/api/osImages/index.ts" - "./api/platformUpdates": "src/api/platformUpdates/index.ts" - "./api/kubernetesVersions": "src/api/kubernetesVersions/index.ts" + "./api/updateSummaries": "./src/api/updateSummaries/index.ts" + "./api/validatedSolutionRecipes": "./src/api/validatedSolutionRecipes/index.ts" + "./api/updateSummariesOperationGroup": "./src/api/updateSummariesOperationGroup/index.ts" + "./api/updates": "./src/api/updates/index.ts" + "./api/updateRuns": "./src/api/updateRuns/index.ts" + "./api/skus": "./src/api/skus/index.ts" + "./api/securitySettings": "./src/api/securitySettings/index.ts" + "./api/extensions": "./src/api/extensions/index.ts" + "./api/edgeDevices": "./src/api/edgeDevices/index.ts" + "./api/edgeDeviceJobs": "./src/api/edgeDeviceJobs/index.ts" + "./api/deploymentSettings": "./src/api/deploymentSettings/index.ts" + "./api/clusters": "./src/api/clusters/index.ts" + "./api/offers": "./src/api/offers/index.ts" + "./api/arcSettings": "./src/api/arcSettings/index.ts" + "./api/operations": "./src/api/operations/index.ts" "./models": "./src/models/index.ts" targets: