From 8cc8381396210a84b4e992092a503d7460290be1 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Wed, 17 Jun 2026 19:01:19 +0000 Subject: [PATCH 1/4] Configurations: 'specification/compute/resource-manager/Microsoft.Compute/Compute/tspconfig.yaml', SDK Release Type: stable, and CommitSHA: 'cc1bd87b8f859439bff4e5b3f6373ab28c653b52' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6449161 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 53 +- .../azure-resourcemanager-compute/README.md | 2 +- .../azure-resourcemanager-compute/pom.xml | 2 +- .../fluent/ComputeManagementClient.java | 7 + .../fluent/InterconnectBlocksClient.java | 489 ++++++ .../compute/fluent/VirtualMachinesClient.java | 78 + .../fluent/models/InterconnectBlockInner.java | 298 ++++ .../fluent/models/VirtualMachineInner.java | 26 + .../VirtualMachineInstanceViewInner.java | 22 + .../models/VirtualMachinePropertiesInner.java | 37 + .../VirtualMachineScaleSetExtensionInner.java | 54 +- .../models/VirtualMachineScaleSetVMInner.java | 27 + ...ualMachineScaleSetVMInstanceViewInner.java | 22 + ...rtualMachineScaleSetVMPropertiesInner.java | 36 + .../models/VirtualMachineUpdateInner.java | 26 + .../AvailabilitySetsClientImpl.java | 44 +- .../CapacityReservationGroupsClientImpl.java | 24 +- .../CapacityReservationsClientImpl.java | 20 +- .../ComputeManagementClientImpl.java | 16 + .../DedicatedHostGroupsClientImpl.java | 24 +- .../DedicatedHostsClientImpl.java | 32 +- .../implementation/ImagesClientImpl.java | 24 +- .../InterconnectBlocksClientImpl.java | 1361 +++++++++++++++++ .../LogAnalyticsClientImpl.java | 8 +- .../implementation/OperationsClientImpl.java | 4 +- .../ProximityPlacementGroupsClientImpl.java | 24 +- .../RestorePointCollectionsClientImpl.java | 24 +- .../RestorePointsClientImpl.java | 12 +- .../SshPublicKeysClientImpl.java | 28 +- .../implementation/UsagesClientImpl.java | 4 +- ...rtualMachineExtensionImagesClientImpl.java | 12 +- .../VirtualMachineExtensionsClientImpl.java | 20 +- .../VirtualMachineImagesClientImpl.java | 28 +- ...rtualMachineImagesEdgeZonesClientImpl.java | 20 +- .../VirtualMachineRunCommandsClientImpl.java | 28 +- ...alMachineScaleSetExtensionsClientImpl.java | 20 +- ...ScaleSetLifeCycleHookEventsClientImpl.java | 12 +- ...hineScaleSetRollingUpgradesClientImpl.java | 16 +- ...MachineScaleSetVMExtensionsClientImpl.java | 20 +- ...achineScaleSetVMRunCommandsClientImpl.java | 20 +- .../VirtualMachineScaleSetVMsClientImpl.java | 72 +- .../VirtualMachineScaleSetsClientImpl.java | 104 +- .../VirtualMachineSizesClientImpl.java | 4 +- .../VirtualMachinesClientImpl.java | 300 +++- .../models/InterconnectBlockListResult.java | 116 ++ .../models/AutomaticSkuMigrationPolicy.java | 98 ++ .../models/InterconnectBlockExpandTypes.java | 46 + .../models/InterconnectBlockInstanceView.java | 104 ++ .../models/InterconnectBlockProfile.java | 99 ++ .../models/InterconnectBlockProperties.java | 220 +++ .../models/InterconnectBlockUpdate.java | 113 ++ .../models/InterconnectGroupProfile.java | 125 ++ .../models/InterconnectInstanceView.java | 82 + .../compute/models/NetworkProfile.java | 33 + .../compute/models/SkuProfile.java | 37 + .../VirtualMachineScaleSetNetworkProfile.java | 35 + ...alMachineScaleSetUpdateNetworkProfile.java | 35 + ...VirtualMachineScaleSetUpdateVMProfile.java | 35 + ...ScaleSetVMNetworkProfileConfiguration.java | 36 + .../VirtualMachineScaleSetVMProfile.java | 35 + ...zure-resourcemanager-compute_metadata.json | 2 +- .../proxy-config.json | 2 +- ...rationToVirtualMachineScaleSetSamples.java | 2 +- ...onvertToVirtualMachineScaleSetSamples.java | 2 +- ...AvailabilitySetsCreateOrUpdateSamples.java | 4 +- .../AvailabilitySetsDeleteSamples.java | 4 +- ...labilitySetsGetByResourceGroupSamples.java | 4 +- ...labilitySetsListAvailableSizesSamples.java | 4 +- ...abilitySetsListByResourceGroupSamples.java | 4 +- .../AvailabilitySetsListSamples.java | 2 +- ...rationToVirtualMachineScaleSetSamples.java | 2 +- .../AvailabilitySetsUpdateSamples.java | 4 +- ...rationToVirtualMachineScaleSetSamples.java | 2 +- ...eservationGroupsCreateOrUpdateSamples.java | 6 +- ...apacityReservationGroupsDeleteSamples.java | 4 +- ...vationGroupsGetByResourceGroupSamples.java | 6 +- ...ationGroupsListByResourceGroupSamples.java | 2 +- .../CapacityReservationGroupsListSamples.java | 4 +- ...apacityReservationGroupsUpdateSamples.java | 4 +- ...cityReservationsCreateOrUpdateSamples.java | 6 +- .../CapacityReservationsDeleteSamples.java | 4 +- .../CapacityReservationsGetSamples.java | 6 +- ...ListByCapacityReservationGroupSamples.java | 6 +- .../CapacityReservationsUpdateSamples.java | 4 +- ...icatedHostGroupsCreateOrUpdateSamples.java | 4 +- .../DedicatedHostGroupsDeleteSamples.java | 4 +- ...edHostGroupsGetByResourceGroupSamples.java | 4 +- ...dHostGroupsListByResourceGroupSamples.java | 4 +- .../DedicatedHostGroupsListSamples.java | 4 +- .../DedicatedHostGroupsUpdateSamples.java | 4 +- .../DedicatedHostsCreateOrUpdateSamples.java | 2 +- .../DedicatedHostsDeleteSamples.java | 4 +- .../generated/DedicatedHostsGetSamples.java | 2 +- ...dicatedHostsListAvailableSizesSamples.java | 2 +- .../DedicatedHostsListByHostGroupSamples.java | 4 +- .../DedicatedHostsRedeploySamples.java | 2 +- .../DedicatedHostsRestartSamples.java | 2 +- .../DedicatedHostsUpdateSamples.java | 6 +- .../ImagesCreateOrUpdateSamples.java | 20 +- .../generated/ImagesDeleteSamples.java | 4 +- .../ImagesGetByResourceGroupSamples.java | 2 +- .../ImagesListByResourceGroupSamples.java | 2 +- .../compute/generated/ImagesListSamples.java | 2 +- .../generated/ImagesUpdateSamples.java | 2 +- ...terconnectBlocksCreateOrUpdateSamples.java | 75 + .../InterconnectBlocksDeleteSamples.java | 24 + ...onnectBlocksGetByResourceGroupSamples.java | 43 + ...nnectBlocksListByResourceGroupSamples.java | 25 + .../InterconnectBlocksListSamples.java | 22 + .../InterconnectBlocksUpdateSamples.java | 44 + ...icsExportRequestRateByIntervalSamples.java | 2 +- ...alyticsExportThrottledRequestsSamples.java | 2 +- .../generated/OperationsListSamples.java | 4 +- ...yPlacementGroupsCreateOrUpdateSamples.java | 2 +- ...ProximityPlacementGroupsDeleteSamples.java | 2 +- ...cementGroupsGetByResourceGroupSamples.java | 2 +- ...ementGroupsListByResourceGroupSamples.java | 2 +- .../ProximityPlacementGroupsListSamples.java | 2 +- ...ProximityPlacementGroupsUpdateSamples.java | 2 +- ...PointCollectionsCreateOrUpdateSamples.java | 4 +- .../RestorePointCollectionsDeleteSamples.java | 4 +- ...tCollectionsGetByResourceGroupSamples.java | 4 +- ...CollectionsListByResourceGroupSamples.java | 2 +- .../RestorePointCollectionsListSamples.java | 2 +- .../RestorePointCollectionsUpdateSamples.java | 4 +- .../generated/RestorePointsCreateSamples.java | 4 +- .../generated/RestorePointsDeleteSamples.java | 4 +- .../generated/RestorePointsGetSamples.java | 4 +- .../generated/SshPublicKeysCreateSamples.java | 2 +- .../generated/SshPublicKeysDeleteSamples.java | 4 +- .../SshPublicKeysGenerateKeyPairSamples.java | 6 +- ...shPublicKeysGetByResourceGroupSamples.java | 2 +- ...hPublicKeysListByResourceGroupSamples.java | 4 +- .../generated/SshPublicKeysListSamples.java | 4 +- .../generated/SshPublicKeysUpdateSamples.java | 4 +- .../compute/generated/UsageListSamples.java | 4 +- ...rtualMachineExtensionImagesGetSamples.java | 4 +- ...achineExtensionImagesListTypesSamples.java | 4 +- ...ineExtensionImagesListVersionsSamples.java | 4 +- ...achineExtensionsCreateOrUpdateSamples.java | 4 +- ...VirtualMachineExtensionsDeleteSamples.java | 4 +- .../VirtualMachineExtensionsGetSamples.java | 4 +- .../VirtualMachineExtensionsListSamples.java | 4 +- ...VirtualMachineExtensionsUpdateSamples.java | 2 +- ...irtualMachineImagesEdgeZoneGetSamples.java | 4 +- ...achineImagesEdgeZoneListOffersSamples.java | 4 +- ...neImagesEdgeZoneListPublishersSamples.java | 4 +- ...rtualMachineImagesEdgeZoneListSamples.java | 4 +- ...lMachineImagesEdgeZoneListSkusSamples.java | 4 +- .../VirtualMachineImagesGetSamples.java | 4 +- ...ualMachineImagesListByEdgeZoneSamples.java | 4 +- ...VirtualMachineImagesListOffersSamples.java | 4 +- ...ualMachineImagesListPublishersSamples.java | 4 +- .../VirtualMachineImagesListSamples.java | 4 +- .../VirtualMachineImagesListSkusSamples.java | 4 +- ...achineImagesListWithPropertiesSamples.java | 4 +- ...chineRunCommandsCreateOrUpdateSamples.java | 2 +- ...irtualMachineRunCommandsDeleteSamples.java | 2 +- ...RunCommandsGetByVirtualMachineSamples.java | 2 +- .../VirtualMachineRunCommandsGetSamples.java | 2 +- ...unCommandsListByVirtualMachineSamples.java | 2 +- .../VirtualMachineRunCommandsListSamples.java | 2 +- ...irtualMachineRunCommandsUpdateSamples.java | 2 +- ...aleSetExtensionsCreateOrUpdateSamples.java | 4 +- ...achineScaleSetExtensionsDeleteSamples.java | 4 +- ...alMachineScaleSetExtensionsGetSamples.java | 4 +- ...lMachineScaleSetExtensionsListSamples.java | 4 +- ...achineScaleSetExtensionsUpdateSamples.java | 4 +- ...ScaleSetLifeCycleHookEventsGetSamples.java | 2 +- ...caleSetLifeCycleHookEventsListSamples.java | 2 +- ...leSetLifeCycleHookEventsUpdateSamples.java | 2 +- ...eScaleSetRollingUpgradesCancelSamples.java | 4 +- ...aleSetRollingUpgradesGetLatestSamples.java | 4 +- ...gUpgradesStartExtensionUpgradeSamples.java | 2 +- ...tRollingUpgradesStartOSUpgradeSamples.java | 4 +- ...eSetVMExtensionsCreateOrUpdateSamples.java | 2 +- ...hineScaleSetVMExtensionsDeleteSamples.java | 2 +- ...MachineScaleSetVMExtensionsGetSamples.java | 2 +- ...achineScaleSetVMExtensionsListSamples.java | 2 +- ...hineScaleSetVMExtensionsUpdateSamples.java | 2 +- ...SetVMRunCommandsCreateOrUpdateSamples.java | 2 +- ...ineScaleSetVMRunCommandsDeleteSamples.java | 2 +- ...achineScaleSetVMRunCommandsGetSamples.java | 2 +- ...chineScaleSetVMRunCommandsListSamples.java | 2 +- ...ineScaleSetVMRunCommandsUpdateSamples.java | 2 +- ...aleSetVMsApproveRollingUpgradeSamples.java | 2 +- ...aleSetVMsAttachDetachDataDisksSamples.java | 4 +- ...alMachineScaleSetVMsDeallocateSamples.java | 4 +- ...irtualMachineScaleSetVMsDeleteSamples.java | 2 +- ...hineScaleSetVMsGetInstanceViewSamples.java | 2 +- .../VirtualMachineScaleSetVMsGetSamples.java | 23 +- .../VirtualMachineScaleSetVMsListSamples.java | 8 +- ...eScaleSetVMsPerformMaintenanceSamples.java | 4 +- ...tualMachineScaleSetVMsPowerOffSamples.java | 4 +- ...tualMachineScaleSetVMsRedeploySamples.java | 4 +- ...alMachineScaleSetVMsReimageAllSamples.java | 4 +- ...rtualMachineScaleSetVMsReimageSamples.java | 4 +- ...rtualMachineScaleSetVMsRestartSamples.java | 4 +- ...VMsRetrieveBootDiagnosticsDataSamples.java | 2 +- ...alMachineScaleSetVMsRunCommandSamples.java | 2 +- ...ineScaleSetVMsSimulateEvictionSamples.java | 2 +- ...VirtualMachineScaleSetVMsStartSamples.java | 4 +- ...irtualMachineScaleSetVMsUpdateSamples.java | 4 +- ...ScaleSetsApproveRollingUpgradeSamples.java | 2 +- ...sConvertToSinglePlacementGroupSamples.java | 4 +- ...MachineScaleSetsCreateOrUpdateSamples.java | 230 ++- ...tualMachineScaleSetsDeallocateSamples.java | 4 +- ...achineScaleSetsDeleteInstancesSamples.java | 4 +- .../VirtualMachineScaleSetsDeleteSamples.java | 2 +- ...FabricPlatformUpdateDomainWalkSamples.java | 4 +- ...ineScaleSetsGetByResourceGroupSamples.java | 8 +- ...achineScaleSetsGetInstanceViewSamples.java | 4 +- ...neScaleSetsGetOSUpgradeHistorySamples.java | 4 +- ...MachineScaleSetsListByLocationSamples.java | 2 +- ...neScaleSetsListByResourceGroupSamples.java | 4 +- .../VirtualMachineScaleSetsListSamples.java | 4 +- ...irtualMachineScaleSetsListSkusSamples.java | 4 +- ...ineScaleSetsPerformMaintenanceSamples.java | 4 +- ...irtualMachineScaleSetsPowerOffSamples.java | 4 +- ...VirtualMachineScaleSetsReapplySamples.java | 4 +- ...irtualMachineScaleSetsRedeploySamples.java | 4 +- ...tualMachineScaleSetsReimageAllSamples.java | 4 +- ...VirtualMachineScaleSetsReimageSamples.java | 4 +- ...VirtualMachineScaleSetsRestartSamples.java | 4 +- ...irtualMachineScaleSetsScaleOutSamples.java | 2 +- ...tsSetOrchestrationServiceStateSamples.java | 4 +- .../VirtualMachineScaleSetsStartSamples.java | 4 +- ...achineScaleSetsUpdateInstancesSamples.java | 4 +- .../VirtualMachineScaleSetsUpdateSamples.java | 4 +- .../VirtualMachineSizesListSamples.java | 4 +- .../VirtualMachinesAssessPatchesSamples.java | 2 +- ...lMachinesAttachDetachDataDisksSamples.java | 4 +- .../VirtualMachinesCaptureSamples.java | 4 +- ...lMachinesConvertToManagedDisksSamples.java | 4 +- .../VirtualMachinesCreateOrUpdateSamples.java | 156 +- .../VirtualMachinesDeallocateSamples.java | 50 +- .../VirtualMachinesDeleteSamples.java | 2 +- .../VirtualMachinesGeneralizeSamples.java | 2 +- ...tualMachinesGetByResourceGroupSamples.java | 8 +- .../VirtualMachinesInstallPatchesSamples.java | 2 +- .../VirtualMachinesInstanceViewSamples.java | 19 +- ...tualMachinesListAvailableSizesSamples.java | 2 +- .../VirtualMachinesListByLocationSamples.java | 2 +- ...ualMachinesListByResourceGroupSamples.java | 4 +- .../generated/VirtualMachinesListSamples.java | 4 +- ...ualMachinesMigrateToVMScaleSetSamples.java | 2 +- ...tualMachinesPerformMaintenanceSamples.java | 4 +- .../VirtualMachinesPowerOffSamples.java | 4 +- .../VirtualMachinesReapplySamples.java | 2 +- .../VirtualMachinesRedeploySamples.java | 4 +- .../VirtualMachinesReimageSamples.java | 4 +- .../VirtualMachinesRestartSamples.java | 4 +- ...nesRetrieveBootDiagnosticsDataSamples.java | 2 +- .../VirtualMachinesRunCommandSamples.java | 2 +- ...irtualMachinesSimulateEvictionSamples.java | 2 +- .../VirtualMachinesStartSamples.java | 4 +- .../VirtualMachinesUpdateSamples.java | 4 +- .../tsp-location.yaml | 2 +- 259 files changed, 5256 insertions(+), 854 deletions(-) create mode 100644 sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/InterconnectBlocksClient.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/InterconnectBlockInner.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/InterconnectBlocksClientImpl.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/models/InterconnectBlockListResult.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/AutomaticSkuMigrationPolicy.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockExpandTypes.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockInstanceView.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockProfile.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockProperties.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockUpdate.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectGroupProfile.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectInstanceView.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksCreateOrUpdateSamples.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksDeleteSamples.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksGetByResourceGroupSamples.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksListByResourceGroupSamples.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksListSamples.java create mode 100644 sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksUpdateSamples.java diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 4fe236ac7b87..041ebeab530c 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -281,7 +281,7 @@ com.azure.resourcemanager:azure-resourcemanager-appplatform;2.51.0;2.52.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-appservice;2.55.2;2.56.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-authorization;2.53.9;2.54.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-cdn;2.53.8;2.54.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-compute;2.57.1;2.58.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-compute;2.57.1;2.58.0 com.azure.resourcemanager:azure-resourcemanager-containerinstance;2.53.10;2.54.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-containerregistry;2.55.2;2.56.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-containerservice;2.61.0;2.62.0-beta.2 diff --git a/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md b/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md index f4c7528b8f20..1e24f0d5ff78 100644 --- a/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md +++ b/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md @@ -1,14 +1,59 @@ # Release History -## 2.58.0-beta.1 (Unreleased) +## 2.58.0 (2026-06-17) ### Features Added -### Breaking Changes +* `models.InterconnectBlockProperties` was added -### Bugs Fixed +* `models.InterconnectInstanceView` was added -### Other Changes +* `models.AutomaticSkuMigrationPolicy` was added + +* `models.InterconnectBlockProfile` was added + +* `models.InterconnectBlockUpdate` was added + +* `models.InterconnectBlockExpandTypes` was added + +* `models.InterconnectGroupProfile` was added + +* `models.InterconnectBlockInstanceView` was added + +#### `models.VirtualMachineScaleSetVMProfile` was modified + +* `interconnectBlockProfile()` was added +* `withInterconnectBlockProfile(models.InterconnectBlockProfile)` was added + +#### `models.VirtualMachineScaleSetVMNetworkProfileConfiguration` was modified + +* `interconnectGroupProfile()` was added +* `withInterconnectGroupProfile(models.InterconnectGroupProfile)` was added + +#### `models.NetworkProfile` was modified + +* `interconnectGroupProfile()` was added +* `withInterconnectGroupProfile(models.InterconnectGroupProfile)` was added + +#### `models.VirtualMachineScaleSetNetworkProfile` was modified + +* `interconnectGroupProfile()` was added +* `withInterconnectGroupProfile(models.InterconnectGroupProfile)` was added + +#### `models.VirtualMachineScaleSetUpdateVMProfile` was modified + +* `interconnectBlockProfile()` was added +* `withInterconnectBlockProfile(models.InterconnectBlockProfile)` was added + +#### `models.VirtualMachineScaleSetUpdateNetworkProfile` was modified + +* `withInterconnectGroupProfile(models.InterconnectGroupProfile)` was added +* `interconnectGroupProfile()` was added + +#### `models.SkuProfile` was modified + +* `automaticSkuMigrationPolicy()` was added +* `withAutomaticSkuMigrationPolicy(models.AutomaticSkuMigrationPolicy)` was added ## 2.57.1 (2026-05-05) diff --git a/sdk/compute/azure-resourcemanager-compute/README.md b/sdk/compute/azure-resourcemanager-compute/README.md index 7b60e5b1ee20..e812842ded3d 100644 --- a/sdk/compute/azure-resourcemanager-compute/README.md +++ b/sdk/compute/azure-resourcemanager-compute/README.md @@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra com.azure.resourcemanager azure-resourcemanager-compute - 2.57.0 + 2.58.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/compute/azure-resourcemanager-compute/pom.xml b/sdk/compute/azure-resourcemanager-compute/pom.xml index 60811d1e68a9..fbbd31f50010 100644 --- a/sdk/compute/azure-resourcemanager-compute/pom.xml +++ b/sdk/compute/azure-resourcemanager-compute/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-compute - 2.58.0-beta.1 + 2.58.0 jar Microsoft Azure SDK for Compute Management diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/ComputeManagementClient.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/ComputeManagementClient.java index 7dc02ab0e3da..b4ef4834f363 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/ComputeManagementClient.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/ComputeManagementClient.java @@ -158,6 +158,13 @@ public interface ComputeManagementClient { */ CapacityReservationsClient getCapacityReservations(); + /** + * Gets the InterconnectBlocksClient object to access its operations. + * + * @return the InterconnectBlocksClient object. + */ + InterconnectBlocksClient getInterconnectBlocks(); + /** * Gets the VirtualMachineRunCommandsClient object to access its operations. * diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/InterconnectBlocksClient.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/InterconnectBlocksClient.java new file mode 100644 index 000000000000..6e9eacbbdef0 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/InterconnectBlocksClient.java @@ -0,0 +1,489 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.compute.fluent.models.InterconnectBlockInner; +import com.azure.resourcemanager.compute.models.InterconnectBlockExpandTypes; +import com.azure.resourcemanager.compute.models.InterconnectBlockUpdate; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in InterconnectBlocksClient. + */ +public interface InterconnectBlocksClient extends InnerSupportsGet, + InnerSupportsListing, InnerSupportsDelete { + /** + * Retrieves information about an Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param expand The expand expression to apply on the operation. 'instanceView' retrieves a snapshot of the runtime + * properties of the Interconnect Block that is managed by the platform and can change outside of control plane + * operations. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String interconnectBlockName, InterconnectBlockExpandTypes expand); + + /** + * Retrieves information about an Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByResourceGroupAsync(String resourceGroupName, String interconnectBlockName); + + /** + * Retrieves information about an Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param expand The expand expression to apply on the operation. 'instanceView' retrieves a snapshot of the runtime + * properties of the Interconnect Block that is managed by the platform and can change outside of control plane + * operations. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, + String interconnectBlockName, InterconnectBlockExpandTypes expand, Context context); + + /** + * Retrieves information about an Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + InterconnectBlockInner getByResourceGroup(String resourceGroupName, String interconnectBlockName); + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String interconnectBlockName, InterconnectBlockInner resource); + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, InterconnectBlockInner> beginCreateOrUpdateAsync( + String resourceGroupName, String interconnectBlockName, InterconnectBlockInner resource); + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, InterconnectBlockInner> beginCreateOrUpdate(String resourceGroupName, + String interconnectBlockName, InterconnectBlockInner resource); + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, InterconnectBlockInner> beginCreateOrUpdate(String resourceGroupName, + String interconnectBlockName, InterconnectBlockInner resource, Context context); + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String interconnectBlockName, + InterconnectBlockInner resource); + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + InterconnectBlockInner createOrUpdate(String resourceGroupName, String interconnectBlockName, + InterconnectBlockInner resource); + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + InterconnectBlockInner createOrUpdate(String resourceGroupName, String interconnectBlockName, + InterconnectBlockInner resource, Context context); + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> updateWithResponseAsync(String resourceGroupName, String interconnectBlockName, + InterconnectBlockUpdate properties); + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, InterconnectBlockInner> beginUpdateAsync(String resourceGroupName, + String interconnectBlockName, InterconnectBlockUpdate properties); + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, InterconnectBlockInner> beginUpdate(String resourceGroupName, + String interconnectBlockName, InterconnectBlockUpdate properties); + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, InterconnectBlockInner> beginUpdate(String resourceGroupName, + String interconnectBlockName, InterconnectBlockUpdate properties, Context context); + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateAsync(String resourceGroupName, String interconnectBlockName, + InterconnectBlockUpdate properties); + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + InterconnectBlockInner update(String resourceGroupName, String interconnectBlockName, + InterconnectBlockUpdate properties); + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + InterconnectBlockInner update(String resourceGroupName, String interconnectBlockName, + InterconnectBlockUpdate properties, Context context); + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String interconnectBlockName); + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String interconnectBlockName); + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String interconnectBlockName); + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String interconnectBlockName, + Context context); + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String interconnectBlockName); + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String interconnectBlockName); + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String interconnectBlockName, Context context); + + /** + * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response + * to get the next page of Interconnect Blocks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByResourceGroupAsync(String resourceGroupName); + + /** + * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response + * to get the next page of Interconnect Blocks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response + * to get the next page of Interconnect Blocks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the + * next page of Interconnect Blocks. + * + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the + * next page of Interconnect Blocks. + * + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the + * next page of Interconnect Blocks. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachinesClient.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachinesClient.java index 05454ef12fa2..076f6a9375f7 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachinesClient.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachinesClient.java @@ -1113,6 +1113,22 @@ SyncPoller, Void> beginConvertToManagedDisks(String resourceGro Mono>> deallocateWithResponseAsync(String resourceGroupName, String vmName, Boolean hibernate, Boolean forceDeallocate); + /** + * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources + * that this virtual machine uses. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the virtual machine. + * @param hibernate Optional parameter to hibernate a virtual machine. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deallocateWithResponseAsync(String resourceGroupName, String vmName, + Boolean hibernate); + /** * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources * that this virtual machine uses. @@ -1144,6 +1160,21 @@ PollerFlux, Void> beginDeallocateAsync(String resourceGroupName @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux, Void> beginDeallocateAsync(String resourceGroupName, String vmName); + /** + * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources + * that this virtual machine uses. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the virtual machine. + * @param hibernate Optional parameter to hibernate a virtual machine. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeallocateAsync(String resourceGroupName, String vmName, Boolean hibernate); + /** * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources * that this virtual machine uses. @@ -1176,6 +1207,23 @@ PollerFlux, Void> beginDeallocateAsync(String resourceGroupName SyncPoller, Void> beginDeallocate(String resourceGroupName, String vmName, Boolean hibernate, Boolean forceDeallocate, Context context); + /** + * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources + * that this virtual machine uses. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the virtual machine. + * @param hibernate Optional parameter to hibernate a virtual machine. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDeallocate(String resourceGroupName, String vmName, Boolean hibernate, + Context context); + /** * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources * that this virtual machine uses. @@ -1206,6 +1254,21 @@ SyncPoller, Void> beginDeallocate(String resourceGroupName, Str @ServiceMethod(returns = ReturnType.SINGLE) Mono deallocateAsync(String resourceGroupName, String vmName); + /** + * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources + * that this virtual machine uses. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the virtual machine. + * @param hibernate Optional parameter to hibernate a virtual machine. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deallocateAsync(String resourceGroupName, String vmName, Boolean hibernate); + /** * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources * that this virtual machine uses. @@ -1236,6 +1299,21 @@ SyncPoller, Void> beginDeallocate(String resourceGroupName, Str void deallocate(String resourceGroupName, String vmName, Boolean hibernate, Boolean forceDeallocate, Context context); + /** + * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources + * that this virtual machine uses. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the virtual machine. + * @param hibernate Optional parameter to hibernate a virtual machine. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void deallocate(String resourceGroupName, String vmName, Boolean hibernate, Context context); + /** * Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before * performing this operation. For Windows, please refer to [Create a managed image of a generalized VM in diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/InterconnectBlockInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/InterconnectBlockInner.java new file mode 100644 index 000000000000..599ac5e78012 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/InterconnectBlockInner.java @@ -0,0 +1,298 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.compute.models.InterconnectBlockProperties; +import com.azure.resourcemanager.compute.models.Placement; +import com.azure.resourcemanager.compute.models.Sku; +import java.io.IOException; +import java.util.List; +import java.util.Map; + +/** + * Specifies information about the Interconnect Block. + */ +@Fluent +public final class InterconnectBlockInner extends Resource { + /* + * Properties of the Interconnect Block. + */ + private InterconnectBlockProperties properties; + + /* + * SKU of the resource for which capacity needs to be pre-allocated. Both `sku.name` and `sku.capacity` are required + * at create. After create, only `sku.capacity` can be updated. + */ + private Sku sku; + + /* + * The availability zones. + */ + private List zones; + + /* + * Placement section specifies the user-defined constraints for Interconnect Block hardware placement. This property + * cannot be changed once Interconnect Block is provisioned. + */ + private Placement placement; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of InterconnectBlockInner class. + */ + public InterconnectBlockInner() { + } + + /** + * Get the properties property: Properties of the Interconnect Block. + * + * @return the properties value. + */ + public InterconnectBlockProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties of the Interconnect Block. + * + * @param properties the properties value to set. + * @return the InterconnectBlockInner object itself. + */ + public InterconnectBlockInner withProperties(InterconnectBlockProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the sku property: SKU of the resource for which capacity needs to be pre-allocated. Both `sku.name` and + * `sku.capacity` are required at create. After create, only `sku.capacity` can be updated. + * + * @return the sku value. + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku property: SKU of the resource for which capacity needs to be pre-allocated. Both `sku.name` and + * `sku.capacity` are required at create. After create, only `sku.capacity` can be updated. + * + * @param sku the sku value to set. + * @return the InterconnectBlockInner object itself. + */ + public InterconnectBlockInner withSku(Sku sku) { + this.sku = sku; + return this; + } + + /** + * Get the zones property: The availability zones. + * + * @return the zones value. + */ + public List zones() { + return this.zones; + } + + /** + * Set the zones property: The availability zones. + * + * @param zones the zones value to set. + * @return the InterconnectBlockInner object itself. + */ + public InterconnectBlockInner withZones(List zones) { + this.zones = zones; + return this; + } + + /** + * Get the placement property: Placement section specifies the user-defined constraints for Interconnect Block + * hardware placement. This property cannot be changed once Interconnect Block is provisioned. + * + * @return the placement value. + */ + public Placement placement() { + return this.placement; + } + + /** + * Set the placement property: Placement section specifies the user-defined constraints for Interconnect Block + * hardware placement. This property cannot be changed once Interconnect Block is provisioned. + * + * @param placement the placement value to set. + * @return the InterconnectBlockInner object itself. + */ + public InterconnectBlockInner withPlacement(Placement placement) { + this.placement = placement; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public InterconnectBlockInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public InterconnectBlockInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + if (sku() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property sku in model InterconnectBlockInner")); + } else { + sku().validate(); + } + if (placement() != null) { + placement().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(InterconnectBlockInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("sku", this.sku); + jsonWriter.writeJsonField("properties", this.properties); + jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("placement", this.placement); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of InterconnectBlockInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of InterconnectBlockInner if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the InterconnectBlockInner. + */ + public static InterconnectBlockInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + InterconnectBlockInner deserializedInterconnectBlockInner = new InterconnectBlockInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedInterconnectBlockInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedInterconnectBlockInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedInterconnectBlockInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedInterconnectBlockInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedInterconnectBlockInner.withTags(tags); + } else if ("sku".equals(fieldName)) { + deserializedInterconnectBlockInner.sku = Sku.fromJson(reader); + } else if ("properties".equals(fieldName)) { + deserializedInterconnectBlockInner.properties = InterconnectBlockProperties.fromJson(reader); + } else if ("zones".equals(fieldName)) { + List zones = reader.readArray(reader1 -> reader1.getString()); + deserializedInterconnectBlockInner.zones = zones; + } else if ("placement".equals(fieldName)) { + deserializedInterconnectBlockInner.placement = Placement.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedInterconnectBlockInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedInterconnectBlockInner; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInner.java index 38b3deeb9d7d..11a9d0ac6e90 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInner.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInner.java @@ -18,6 +18,7 @@ import com.azure.resourcemanager.compute.models.DiagnosticsProfile; import com.azure.resourcemanager.compute.models.ExtendedLocation; import com.azure.resourcemanager.compute.models.HardwareProfile; +import com.azure.resourcemanager.compute.models.InterconnectBlockProfile; import com.azure.resourcemanager.compute.models.NetworkProfile; import com.azure.resourcemanager.compute.models.OSProfile; import com.azure.resourcemanager.compute.models.Placement; @@ -936,6 +937,31 @@ public VirtualMachineInner withCapacityReservation(CapacityReservationProfile ca return this; } + /** + * Get the interconnectBlockProfile property: Specifies information about the Interconnect Block that is used to + * allocate the Virtual Machine. Minimum api-version: 2026-03-01. + * + * @return the interconnectBlockProfile value. + */ + public InterconnectBlockProfile interconnectBlockProfile() { + return this.innerProperties() == null ? null : this.innerProperties().interconnectBlockProfile(); + } + + /** + * Set the interconnectBlockProfile property: Specifies information about the Interconnect Block that is used to + * allocate the Virtual Machine. Minimum api-version: 2026-03-01. + * + * @param interconnectBlockProfile the interconnectBlockProfile value to set. + * @return the VirtualMachineInner object itself. + */ + public VirtualMachineInner withInterconnectBlockProfile(InterconnectBlockProfile interconnectBlockProfile) { + if (this.innerProperties() == null) { + this.innerProperties = new VirtualMachinePropertiesInner(); + } + this.innerProperties().withInterconnectBlockProfile(interconnectBlockProfile); + return this; + } + /** * Get the applicationProfile property: Specifies the gallery applications that should be made available to the * VM/VMSS. diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInstanceViewInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInstanceViewInner.java index 6d1775e1f38b..58e63b66cd54 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInstanceViewInner.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInstanceViewInner.java @@ -13,6 +13,7 @@ import com.azure.resourcemanager.compute.models.DiskInstanceView; import com.azure.resourcemanager.compute.models.HyperVGenerationType; import com.azure.resourcemanager.compute.models.InstanceViewStatus; +import com.azure.resourcemanager.compute.models.InterconnectInstanceView; import com.azure.resourcemanager.compute.models.MaintenanceRedeployStatus; import com.azure.resourcemanager.compute.models.VirtualMachineAgentInstanceView; import com.azure.resourcemanager.compute.models.VirtualMachineExtensionInstanceView; @@ -115,6 +116,11 @@ public final class VirtualMachineInstanceViewInner implements JsonSerializable e.validate()); } + if (interconnectInstanceView() != null) { + interconnectInstanceView().validate(); + } } /** @@ -386,6 +405,9 @@ public static VirtualMachineScaleSetVMInstanceViewInner fromJson(JsonReader json } else if ("hyperVGeneration".equals(fieldName)) { deserializedVirtualMachineScaleSetVMInstanceViewInner.hyperVGeneration = HyperVGeneration.fromString(reader.getString()); + } else if ("interconnectInstanceView".equals(fieldName)) { + deserializedVirtualMachineScaleSetVMInstanceViewInner.interconnectInstanceView + = InterconnectInstanceView.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMPropertiesInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMPropertiesInner.java index d3670b865cbd..ab3c4ef4f279 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMPropertiesInner.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMPropertiesInner.java @@ -14,6 +14,7 @@ import com.azure.resourcemanager.compute.models.AdditionalCapabilities; import com.azure.resourcemanager.compute.models.DiagnosticsProfile; import com.azure.resourcemanager.compute.models.HardwareProfile; +import com.azure.resourcemanager.compute.models.InterconnectBlockProfile; import com.azure.resourcemanager.compute.models.NetworkProfile; import com.azure.resourcemanager.compute.models.OSProfile; import com.azure.resourcemanager.compute.models.ResilientVMDeletionStatus; @@ -148,6 +149,11 @@ public final class VirtualMachineScaleSetVMPropertiesInner */ private String virtualMachineResourceId; + /* + * Specifies the Interconnect Block related details of a Scale Set VM instance. Minimum api-version: 2026-03-01. + */ + private InterconnectBlockProfile interconnectBlockProfile; + /** * Creates an instance of VirtualMachineScaleSetVMPropertiesInner class. */ @@ -521,6 +527,29 @@ public String virtualMachineResourceId() { return this.virtualMachineResourceId; } + /** + * Get the interconnectBlockProfile property: Specifies the Interconnect Block related details of a Scale Set VM + * instance. Minimum api-version: 2026-03-01. + * + * @return the interconnectBlockProfile value. + */ + public InterconnectBlockProfile interconnectBlockProfile() { + return this.interconnectBlockProfile; + } + + /** + * Set the interconnectBlockProfile property: Specifies the Interconnect Block related details of a Scale Set VM + * instance. Minimum api-version: 2026-03-01. + * + * @param interconnectBlockProfile the interconnectBlockProfile value to set. + * @return the VirtualMachineScaleSetVMPropertiesInner object itself. + */ + public VirtualMachineScaleSetVMPropertiesInner + withInterconnectBlockProfile(InterconnectBlockProfile interconnectBlockProfile) { + this.interconnectBlockProfile = interconnectBlockProfile; + return this; + } + /** * Validates the instance. * @@ -557,6 +586,9 @@ public void validate() { if (protectionPolicy() != null) { protectionPolicy().validate(); } + if (interconnectBlockProfile() != null) { + interconnectBlockProfile().validate(); + } } /** @@ -579,6 +611,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("licenseType", this.licenseType); jsonWriter.writeJsonField("protectionPolicy", this.protectionPolicy); jsonWriter.writeStringField("userData", this.userData); + jsonWriter.writeJsonField("interconnectBlockProfile", this.interconnectBlockProfile); return jsonWriter.writeEndObject(); } @@ -650,6 +683,9 @@ public static VirtualMachineScaleSetVMPropertiesInner fromJson(JsonReader jsonRe .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); } else if ("virtualMachineResourceId".equals(fieldName)) { deserializedVirtualMachineScaleSetVMPropertiesInner.virtualMachineResourceId = reader.getString(); + } else if ("interconnectBlockProfile".equals(fieldName)) { + deserializedVirtualMachineScaleSetVMPropertiesInner.interconnectBlockProfile + = InterconnectBlockProfile.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineUpdateInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineUpdateInner.java index 130dbbf37654..fc0c57756b34 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineUpdateInner.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineUpdateInner.java @@ -15,6 +15,7 @@ import com.azure.resourcemanager.compute.models.CapacityReservationProfile; import com.azure.resourcemanager.compute.models.DiagnosticsProfile; import com.azure.resourcemanager.compute.models.HardwareProfile; +import com.azure.resourcemanager.compute.models.InterconnectBlockProfile; import com.azure.resourcemanager.compute.models.NetworkProfile; import com.azure.resourcemanager.compute.models.OSProfile; import com.azure.resourcemanager.compute.models.Plan; @@ -766,6 +767,31 @@ public VirtualMachineUpdateInner withCapacityReservation(CapacityReservationProf return this; } + /** + * Get the interconnectBlockProfile property: Specifies information about the Interconnect Block that is used to + * allocate the Virtual Machine. Minimum api-version: 2026-03-01. + * + * @return the interconnectBlockProfile value. + */ + public InterconnectBlockProfile interconnectBlockProfile() { + return this.innerProperties() == null ? null : this.innerProperties().interconnectBlockProfile(); + } + + /** + * Set the interconnectBlockProfile property: Specifies information about the Interconnect Block that is used to + * allocate the Virtual Machine. Minimum api-version: 2026-03-01. + * + * @param interconnectBlockProfile the interconnectBlockProfile value to set. + * @return the VirtualMachineUpdateInner object itself. + */ + public VirtualMachineUpdateInner withInterconnectBlockProfile(InterconnectBlockProfile interconnectBlockProfile) { + if (this.innerProperties() == null) { + this.innerProperties = new VirtualMachinePropertiesInner(); + } + this.innerProperties().withInterconnectBlockProfile(interconnectBlockProfile); + return this; + } + /** * Get the applicationProfile property: Specifies the gallery applications that should be made available to the * VM/VMSS. diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/AvailabilitySetsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/AvailabilitySetsClientImpl.java index bd75653443a9..7fe3adf7829a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/AvailabilitySetsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/AvailabilitySetsClientImpl.java @@ -243,7 +243,7 @@ public Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -282,7 +282,7 @@ private Mono> getByResourceGroupWithResponseAsync return Mono .error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -375,7 +375,7 @@ public Mono> createOrUpdateWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -422,7 +422,7 @@ private Mono> createOrUpdateWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -521,7 +521,7 @@ public Mono> updateWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -568,7 +568,7 @@ private Mono> updateWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -659,7 +659,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St return Mono .error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, availabilitySetName, context)) @@ -696,7 +696,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono .error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, availabilitySetName, context); @@ -771,7 +771,7 @@ private Mono> listByResourceGroupSinglePageA return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -807,7 +807,7 @@ private Mono> listByResourceGroupSinglePageA return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -897,7 +897,7 @@ private Mono> listSinglePageAsync(String exp return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -928,7 +928,7 @@ private Mono> listSinglePageAsync(String exp return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1041,7 +1041,7 @@ private Mono> listAvailableSizesSinglePag return Mono .error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAvailableSizes(this.client.getEndpoint(), apiVersion, @@ -1083,7 +1083,7 @@ private Mono> listAvailableSizesSinglePag return Mono .error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1202,7 +1202,7 @@ public Mono> startMigrationToVirtualMachineScaleSetWithResponseAs } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; return FluxUtil .withContext(context -> service.startMigrationToVirtualMachineScaleSet(this.client.getEndpoint(), @@ -1249,7 +1249,7 @@ private Mono> startMigrationToVirtualMachineScaleSetWithResponseA } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; context = this.client.mergeContext(context); return service.startMigrationToVirtualMachineScaleSet(this.client.getEndpoint(), apiVersion, @@ -1345,7 +1345,7 @@ public Mono> cancelMigrationToVirtualMachineScaleSetWithResponseA return Mono .error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.cancelMigrationToVirtualMachineScaleSet(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, availabilitySetName, context)) @@ -1382,7 +1382,7 @@ private Mono> cancelMigrationToVirtualMachineScaleSetWithResponse return Mono .error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.cancelMigrationToVirtualMachineScaleSet(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, availabilitySetName, context); @@ -1473,7 +1473,7 @@ public Mono> validateMigrationToVirtualMachineScaleSetWithRespons } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; return FluxUtil .withContext(context -> service.validateMigrationToVirtualMachineScaleSet(this.client.getEndpoint(), @@ -1519,7 +1519,7 @@ private Mono> validateMigrationToVirtualMachineScaleSetWithRespon } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; context = this.client.mergeContext(context); return service.validateMigrationToVirtualMachineScaleSet(this.client.getEndpoint(), apiVersion, @@ -1617,7 +1617,7 @@ public Mono>> convertToVirtualMachineScaleSetWithRespo if (parameters != null) { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.convertToVirtualMachineScaleSet(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, availabilitySetName, parameters, context)) @@ -1659,7 +1659,7 @@ private Mono>> convertToVirtualMachineScaleSetWithResp if (parameters != null) { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.convertToVirtualMachineScaleSet(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, availabilitySetName, parameters, context); diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationGroupsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationGroupsClientImpl.java index 144340c9c645..1d14c801bfef 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationGroupsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationGroupsClientImpl.java @@ -185,7 +185,7 @@ public Mono> getByResourceGroupWithRespo return Mono.error( new IllegalArgumentException("Parameter capacityReservationGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, capacityReservationGroupName, expand, accept, context)) @@ -227,7 +227,7 @@ private Mono> getByResourceGroupWithResp return Mono.error( new IllegalArgumentException("Parameter capacityReservationGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -332,7 +332,7 @@ public Mono> createOrUpdateWithResponseA } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -380,7 +380,7 @@ private Mono> createOrUpdateWithResponse } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -486,7 +486,7 @@ public Mono> updateWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -534,7 +534,7 @@ private Mono> updateWithResponseAsync(St } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -631,7 +631,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St return Mono.error( new IllegalArgumentException("Parameter capacityReservationGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, capacityReservationGroupName, context)) @@ -670,7 +670,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono.error( new IllegalArgumentException("Parameter capacityReservationGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, capacityReservationGroupName, context); @@ -758,7 +758,7 @@ private Mono> listByResourceGroupSi return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -798,7 +798,7 @@ private Mono> listByResourceGroupSi return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -937,7 +937,7 @@ private Mono> listSinglePageAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -978,7 +978,7 @@ private Mono> listSinglePageAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationsClientImpl.java index 7fa3a274780e..6793d0fea9ae 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationsClientImpl.java @@ -178,7 +178,7 @@ public Mono> getWithResponseAsync(String reso return Mono.error( new IllegalArgumentException("Parameter capacityReservationName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -226,7 +226,7 @@ private Mono> getWithResponseAsync(String res return Mono.error( new IllegalArgumentException("Parameter capacityReservationName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -336,7 +336,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -390,7 +390,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -619,7 +619,7 @@ public Mono>> updateWithResponseAsync(String resourceG } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -672,7 +672,7 @@ private Mono>> updateWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -887,7 +887,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter capacityReservationName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext( context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -933,7 +933,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter capacityReservationName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, capacityReservationGroupName, capacityReservationName, context); @@ -1147,7 +1147,7 @@ private Mono> listByCapacityReservationG return Mono.error( new IllegalArgumentException("Parameter capacityReservationGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByCapacityReservationGroup(this.client.getEndpoint(), apiVersion, @@ -1194,7 +1194,7 @@ private Mono> listByCapacityReservationG return Mono.error( new IllegalArgumentException("Parameter capacityReservationGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientImpl.java index 40a7001e15d8..49151b041f0f 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientImpl.java @@ -32,6 +32,7 @@ import com.azure.resourcemanager.compute.fluent.GalleryScriptsClient; import com.azure.resourcemanager.compute.fluent.GallerySharingProfilesClient; import com.azure.resourcemanager.compute.fluent.ImagesClient; +import com.azure.resourcemanager.compute.fluent.InterconnectBlocksClient; import com.azure.resourcemanager.compute.fluent.LogAnalyticsClient; import com.azure.resourcemanager.compute.fluent.OperationsClient; import com.azure.resourcemanager.compute.fluent.ProximityPlacementGroupsClient; @@ -375,6 +376,20 @@ public CapacityReservationsClient getCapacityReservations() { return this.capacityReservations; } + /** + * The InterconnectBlocksClient object to access its operations. + */ + private final InterconnectBlocksClient interconnectBlocks; + + /** + * Gets the InterconnectBlocksClient object to access its operations. + * + * @return the InterconnectBlocksClient object. + */ + public InterconnectBlocksClient getInterconnectBlocks() { + return this.interconnectBlocks; + } + /** * The VirtualMachineRunCommandsClient object to access its operations. */ @@ -872,6 +887,7 @@ public GallerySharingProfilesClient getGallerySharingProfiles() { this.restorePoints = new RestorePointsClientImpl(this); this.capacityReservationGroups = new CapacityReservationGroupsClientImpl(this); this.capacityReservations = new CapacityReservationsClientImpl(this); + this.interconnectBlocks = new InterconnectBlocksClientImpl(this); this.virtualMachineRunCommands = new VirtualMachineRunCommandsClientImpl(this); this.virtualMachineScaleSetVMRunCommands = new VirtualMachineScaleSetVMRunCommandsClientImpl(this); this.disks = new DisksClientImpl(this); diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostGroupsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostGroupsClientImpl.java index e7fcf5b597ba..8c7319ac80ac 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostGroupsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostGroupsClientImpl.java @@ -174,7 +174,7 @@ public Mono> getByResourceGroupWithResponseAsy if (hostGroupName == null) { return Mono.error(new IllegalArgumentException("Parameter hostGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -215,7 +215,7 @@ private Mono> getByResourceGroupWithResponseAs if (hostGroupName == null) { return Mono.error(new IllegalArgumentException("Parameter hostGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -313,7 +313,7 @@ public Mono> createOrUpdateWithResponseAsync(S } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -360,7 +360,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -461,7 +461,7 @@ public Mono> updateWithResponseAsync(String re } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -507,7 +507,7 @@ private Mono> updateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -597,7 +597,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St if (hostGroupName == null) { return Mono.error(new IllegalArgumentException("Parameter hostGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, hostGroupName, context)) @@ -633,7 +633,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (hostGroupName == null) { return Mono.error(new IllegalArgumentException("Parameter hostGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, hostGroupName, context); @@ -709,7 +709,7 @@ private Mono> listByResourceGroupSinglePa return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -746,7 +746,7 @@ private Mono> listByResourceGroupSinglePa return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -841,7 +841,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -872,7 +872,7 @@ private Mono> listSinglePageAsync(Context return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostsClientImpl.java index d9da6bedac4b..04360eb3d58f 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostsClientImpl.java @@ -202,7 +202,7 @@ public Mono> getWithResponseAsync(String resourceGr if (hostName == null) { return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -246,7 +246,7 @@ private Mono> getWithResponseAsync(String resourceG if (hostName == null) { return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -347,7 +347,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -397,7 +397,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -603,7 +603,7 @@ public Mono>> updateWithResponseAsync(String resourceG } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -653,7 +653,7 @@ private Mono>> updateWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -850,7 +850,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (hostName == null) { return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, hostGroupName, hostName, context)) @@ -890,7 +890,7 @@ private Mono>> deleteWithResponseAsync(String resource if (hostName == null) { return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, hostGroupName, hostName, context); @@ -1068,7 +1068,7 @@ private Mono> listByHostGroupSinglePageAsync(S if (hostGroupName == null) { return Mono.error(new IllegalArgumentException("Parameter hostGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByHostGroup(this.client.getEndpoint(), apiVersion, @@ -1109,7 +1109,7 @@ private Mono> listByHostGroupSinglePageAsync(S if (hostGroupName == null) { return Mono.error(new IllegalArgumentException("Parameter hostGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1223,7 +1223,7 @@ private Mono> listAvailableSizesSinglePageAsync(String res if (hostName == null) { return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAvailableSizes(this.client.getEndpoint(), apiVersion, @@ -1268,7 +1268,7 @@ private Mono> listAvailableSizesSinglePageAsync(String res if (hostName == null) { return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1388,7 +1388,7 @@ public Mono>> redeployWithResponseAsync(String resourc if (hostName == null) { return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.redeploy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, hostGroupName, hostName, context)) @@ -1431,7 +1431,7 @@ private Mono>> redeployWithResponseAsync(String resour if (hostName == null) { return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.redeploy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, hostGroupName, hostName, context); @@ -1638,7 +1638,7 @@ public Mono>> restartWithResponseAsync(String resource if (hostName == null) { return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.restart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, hostGroupName, hostName, context)) @@ -1681,7 +1681,7 @@ private Mono>> restartWithResponseAsync(String resourc if (hostName == null) { return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.restart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, hostGroupName, hostName, context); diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ImagesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ImagesClientImpl.java index b5fe7440345a..13cba9dd2eba 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ImagesClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ImagesClientImpl.java @@ -173,7 +173,7 @@ public Mono> getByResourceGroupWithResponseAsync(String res if (imageName == null) { return Mono.error(new IllegalArgumentException("Parameter imageName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -211,7 +211,7 @@ private Mono> getByResourceGroupWithResponseAsync(String re if (imageName == null) { return Mono.error(new IllegalArgumentException("Parameter imageName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -304,7 +304,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -348,7 +348,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -538,7 +538,7 @@ public Mono>> updateWithResponseAsync(String resourceG } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -584,7 +584,7 @@ private Mono>> updateWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -764,7 +764,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (imageName == null) { return Mono.error(new IllegalArgumentException("Parameter imageName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, imageName, context)) @@ -800,7 +800,7 @@ private Mono>> deleteWithResponseAsync(String resource if (imageName == null) { return Mono.error(new IllegalArgumentException("Parameter imageName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, imageName, context); @@ -960,7 +960,7 @@ private Mono> listByResourceGroupSinglePageAsync(Strin return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -997,7 +997,7 @@ private Mono> listByResourceGroupSinglePageAsync(Strin return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1090,7 +1090,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1121,7 +1121,7 @@ private Mono> listSinglePageAsync(Context context) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/InterconnectBlocksClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/InterconnectBlocksClientImpl.java new file mode 100644 index 000000000000..cd0fedf259ed --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/InterconnectBlocksClientImpl.java @@ -0,0 +1,1361 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.compute.fluent.InterconnectBlocksClient; +import com.azure.resourcemanager.compute.fluent.models.InterconnectBlockInner; +import com.azure.resourcemanager.compute.implementation.models.InterconnectBlockListResult; +import com.azure.resourcemanager.compute.models.ApiErrorException; +import com.azure.resourcemanager.compute.models.InterconnectBlockExpandTypes; +import com.azure.resourcemanager.compute.models.InterconnectBlockUpdate; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in InterconnectBlocksClient. + */ +public final class InterconnectBlocksClientImpl implements InnerSupportsGet, + InnerSupportsListing, InnerSupportsDelete, InterconnectBlocksClient { + /** + * The proxy service used to perform REST calls. + */ + private final InterconnectBlocksService service; + + /** + * The service client containing this operation class. + */ + private final ComputeManagementClientImpl client; + + /** + * Initializes an instance of InterconnectBlocksClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + InterconnectBlocksClientImpl(ComputeManagementClientImpl client) { + this.service = RestProxy.create(InterconnectBlocksService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ComputeManagementClientInterconnectBlocks to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ComputeManagementClientInterconnectBlocks") + public interface InterconnectBlocksService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks/{interconnectBlockName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ApiErrorException.class) + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("interconnectBlockName") String interconnectBlockName, + @QueryParam("$expand") InterconnectBlockExpandTypes expand, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks/{interconnectBlockName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ApiErrorException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("interconnectBlockName") String interconnectBlockName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") InterconnectBlockInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks/{interconnectBlockName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ApiErrorException.class) + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("interconnectBlockName") String interconnectBlockName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") InterconnectBlockUpdate properties, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks/{interconnectBlockName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ApiErrorException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("interconnectBlockName") String interconnectBlockName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ApiErrorException.class) + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/interconnectBlocks") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ApiErrorException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ApiErrorException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ApiErrorException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Retrieves information about an Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param expand The expand expression to apply on the operation. 'instanceView' retrieves a snapshot of the runtime + * properties of the Interconnect Block that is managed by the platform and can change outside of control plane + * operations. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String interconnectBlockName, InterconnectBlockExpandTypes expand) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (interconnectBlockName == null) { + return Mono + .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null.")); + } + final String apiVersion = "2026-03-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, interconnectBlockName, expand, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Retrieves information about an Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param expand The expand expression to apply on the operation. 'instanceView' retrieves a snapshot of the runtime + * properties of the Interconnect Block that is managed by the platform and can change outside of control plane + * operations. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String interconnectBlockName, InterconnectBlockExpandTypes expand, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (interconnectBlockName == null) { + return Mono + .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null.")); + } + final String apiVersion = "2026-03-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, interconnectBlockName, expand, accept, context); + } + + /** + * Retrieves information about an Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync(String resourceGroupName, + String interconnectBlockName) { + final InterconnectBlockExpandTypes expand = null; + return getByResourceGroupWithResponseAsync(resourceGroupName, interconnectBlockName, expand) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Retrieves information about an Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param expand The expand expression to apply on the operation. 'instanceView' retrieves a snapshot of the runtime + * properties of the Interconnect Block that is managed by the platform and can change outside of control plane + * operations. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String interconnectBlockName, InterconnectBlockExpandTypes expand, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, interconnectBlockName, expand, context).block(); + } + + /** + * Retrieves information about an Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public InterconnectBlockInner getByResourceGroup(String resourceGroupName, String interconnectBlockName) { + final InterconnectBlockExpandTypes expand = null; + return getByResourceGroupWithResponse(resourceGroupName, interconnectBlockName, expand, Context.NONE) + .getValue(); + } + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String interconnectBlockName, InterconnectBlockInner resource) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (interconnectBlockName == null) { + return Mono + .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String apiVersion = "2026-03-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, interconnectBlockName, contentType, accept, + resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String interconnectBlockName, InterconnectBlockInner resource, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (interconnectBlockName == null) { + return Mono + .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String apiVersion = "2026-03-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, interconnectBlockName, contentType, accept, resource, context); + } + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, InterconnectBlockInner> beginCreateOrUpdateAsync( + String resourceGroupName, String interconnectBlockName, InterconnectBlockInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, interconnectBlockName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), InterconnectBlockInner.class, InterconnectBlockInner.class, + this.client.getContext()); + } + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, InterconnectBlockInner> beginCreateOrUpdateAsync( + String resourceGroupName, String interconnectBlockName, InterconnectBlockInner resource, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, interconnectBlockName, resource, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), InterconnectBlockInner.class, InterconnectBlockInner.class, context); + } + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, InterconnectBlockInner> + beginCreateOrUpdate(String resourceGroupName, String interconnectBlockName, InterconnectBlockInner resource) { + return this.beginCreateOrUpdateAsync(resourceGroupName, interconnectBlockName, resource).getSyncPoller(); + } + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, InterconnectBlockInner> beginCreateOrUpdate( + String resourceGroupName, String interconnectBlockName, InterconnectBlockInner resource, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, interconnectBlockName, resource, context) + .getSyncPoller(); + } + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String interconnectBlockName, + InterconnectBlockInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, interconnectBlockName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String interconnectBlockName, + InterconnectBlockInner resource, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, interconnectBlockName, resource, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public InterconnectBlockInner createOrUpdate(String resourceGroupName, String interconnectBlockName, + InterconnectBlockInner resource) { + return createOrUpdateAsync(resourceGroupName, interconnectBlockName, resource).block(); + } + + /** + * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be + * modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param resource Parameters supplied to the Create Interconnect Block. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public InterconnectBlockInner createOrUpdate(String resourceGroupName, String interconnectBlockName, + InterconnectBlockInner resource, Context context) { + return createOrUpdateAsync(resourceGroupName, interconnectBlockName, resource, context).block(); + } + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> updateWithResponseAsync(String resourceGroupName, + String interconnectBlockName, InterconnectBlockUpdate properties) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (interconnectBlockName == null) { + return Mono + .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String apiVersion = "2026-03-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, interconnectBlockName, contentType, accept, properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, + String interconnectBlockName, InterconnectBlockUpdate properties, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (interconnectBlockName == null) { + return Mono + .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String apiVersion = "2026-03-01"; + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + interconnectBlockName, contentType, accept, properties, context); + } + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, InterconnectBlockInner> + beginUpdateAsync(String resourceGroupName, String interconnectBlockName, InterconnectBlockUpdate properties) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, interconnectBlockName, properties); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), InterconnectBlockInner.class, InterconnectBlockInner.class, + this.client.getContext()); + } + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, InterconnectBlockInner> beginUpdateAsync( + String resourceGroupName, String interconnectBlockName, InterconnectBlockUpdate properties, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, interconnectBlockName, properties, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), InterconnectBlockInner.class, InterconnectBlockInner.class, context); + } + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, InterconnectBlockInner> beginUpdate(String resourceGroupName, + String interconnectBlockName, InterconnectBlockUpdate properties) { + return this.beginUpdateAsync(resourceGroupName, interconnectBlockName, properties).getSyncPoller(); + } + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, InterconnectBlockInner> beginUpdate(String resourceGroupName, + String interconnectBlockName, InterconnectBlockUpdate properties, Context context) { + return this.beginUpdateAsync(resourceGroupName, interconnectBlockName, properties, context).getSyncPoller(); + } + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync(String resourceGroupName, String interconnectBlockName, + InterconnectBlockUpdate properties) { + return beginUpdateAsync(resourceGroupName, interconnectBlockName, properties).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String interconnectBlockName, + InterconnectBlockUpdate properties, Context context) { + return beginUpdateAsync(resourceGroupName, interconnectBlockName, properties, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public InterconnectBlockInner update(String resourceGroupName, String interconnectBlockName, + InterconnectBlockUpdate properties) { + return updateAsync(resourceGroupName, interconnectBlockName, properties).block(); + } + + /** + * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param properties Parameters supplied to the Update Interconnect Block operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return specifies information about the Interconnect Block. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public InterconnectBlockInner update(String resourceGroupName, String interconnectBlockName, + InterconnectBlockUpdate properties, Context context) { + return updateAsync(resourceGroupName, interconnectBlockName, properties, context).block(); + } + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String interconnectBlockName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (interconnectBlockName == null) { + return Mono + .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null.")); + } + final String apiVersion = "2026-03-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, interconnectBlockName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String interconnectBlockName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (interconnectBlockName == null) { + return Mono + .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null.")); + } + final String apiVersion = "2026-03-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + interconnectBlockName, context); + } + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String interconnectBlockName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, interconnectBlockName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String interconnectBlockName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, interconnectBlockName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String interconnectBlockName) { + return this.beginDeleteAsync(resourceGroupName, interconnectBlockName).getSyncPoller(); + } + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete(String resourceGroupName, String interconnectBlockName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, interconnectBlockName, context).getSyncPoller(); + } + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteAsync(String resourceGroupName, String interconnectBlockName) { + return beginDeleteAsync(resourceGroupName, interconnectBlockName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String interconnectBlockName, Context context) { + return beginDeleteAsync(resourceGroupName, interconnectBlockName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String interconnectBlockName) { + deleteAsync(resourceGroupName, interconnectBlockName).block(); + } + + /** + * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM + * instances associated with the Interconnect Block. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param interconnectBlockName The name of the Interconnect Block. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String interconnectBlockName, Context context) { + deleteAsync(resourceGroupName, interconnectBlockName, context).block(); + } + + /** + * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response + * to get the next page of Interconnect Blocks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String apiVersion = "2026-03-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response + * to get the next page of Interconnect Blocks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String apiVersion = "2026-03-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response + * to get the next page of Interconnect Blocks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response + * to get the next page of Interconnect Blocks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response + * to get the next page of Interconnect Blocks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + } + + /** + * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response + * to get the next page of Interconnect Blocks. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + } + + /** + * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the + * next page of Interconnect Blocks. + * + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2026-03-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the + * next page of Interconnect Blocks. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String apiVersion = "2026-03-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the + * next page of Interconnect Blocks. + * + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the + * next page of Interconnect Blocks. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the + * next page of Interconnect Blocks. + * + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the + * next page of Interconnect Blocks. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/LogAnalyticsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/LogAnalyticsClientImpl.java index 4428db8b3bfb..688a743818bf 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/LogAnalyticsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/LogAnalyticsClientImpl.java @@ -114,7 +114,7 @@ public Mono>> exportRequestRateByIntervalWithResponseA } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -155,7 +155,7 @@ private Mono>> exportRequestRateByIntervalWithResponse } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -343,7 +343,7 @@ public Mono>> exportThrottledRequestsWithResponseAsync } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -383,7 +383,7 @@ private Mono>> exportThrottledRequestsWithResponseAsyn } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/OperationsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/OperationsClientImpl.java index 5bcd22a878d0..cd95c02ad8f8 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/OperationsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/OperationsClientImpl.java @@ -91,7 +91,7 @@ private Mono> listSinglePageAsync() { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), @@ -115,7 +115,7 @@ private Mono> listSinglePageAsync(Context context) return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, accept, context) diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ProximityPlacementGroupsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ProximityPlacementGroupsClientImpl.java index 6b5760d91cd8..d9ec5c203499 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ProximityPlacementGroupsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ProximityPlacementGroupsClientImpl.java @@ -177,7 +177,7 @@ public Mono> getByResourceGroupWithRespon return Mono.error( new IllegalArgumentException("Parameter proximityPlacementGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -219,7 +219,7 @@ private Mono> getByResourceGroupWithRespo return Mono.error( new IllegalArgumentException("Parameter proximityPlacementGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -318,7 +318,7 @@ public Mono> createOrUpdateWithResponseAs } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -365,7 +365,7 @@ private Mono> createOrUpdateWithResponseA } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -464,7 +464,7 @@ public Mono> updateWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -511,7 +511,7 @@ private Mono> updateWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -600,7 +600,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St return Mono.error( new IllegalArgumentException("Parameter proximityPlacementGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, proximityPlacementGroupName, context)) @@ -637,7 +637,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono.error( new IllegalArgumentException("Parameter proximityPlacementGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, proximityPlacementGroupName, context); @@ -714,7 +714,7 @@ public void delete(String resourceGroupName, String proximityPlacementGroupName) return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -750,7 +750,7 @@ public void delete(String resourceGroupName, String proximityPlacementGroupName) return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -839,7 +839,7 @@ private Mono> listSinglePageAsync() return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -869,7 +869,7 @@ private Mono> listSinglePageAsync(Co return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointCollectionsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointCollectionsClientImpl.java index 2b5759211657..91a3a250f7c0 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointCollectionsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointCollectionsClientImpl.java @@ -183,7 +183,7 @@ public Mono> getByResourceGroupWithRespons return Mono.error( new IllegalArgumentException("Parameter restorePointCollectionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, restorePointCollectionName, expand, accept, context)) @@ -223,7 +223,7 @@ private Mono> getByResourceGroupWithRespon return Mono.error( new IllegalArgumentException("Parameter restorePointCollectionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -322,7 +322,7 @@ public Mono> createOrUpdateWithResponseAsy } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -370,7 +370,7 @@ private Mono> createOrUpdateWithResponseAs } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -472,7 +472,7 @@ public Mono> updateWithResponseAsync(Strin } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -519,7 +519,7 @@ private Mono> updateWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -610,7 +610,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter restorePointCollectionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, restorePointCollectionName, context)) @@ -648,7 +648,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter restorePointCollectionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, restorePointCollectionName, context); @@ -820,7 +820,7 @@ public void delete(String resourceGroupName, String restorePointCollectionName, return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -856,7 +856,7 @@ public void delete(String resourceGroupName, String restorePointCollectionName, return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -948,7 +948,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -980,7 +980,7 @@ private Mono> listSinglePageAsync(Con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointsClientImpl.java index f549128bdf5b..e701c7080d4e 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointsClientImpl.java @@ -136,7 +136,7 @@ public Mono> getWithResponseAsync(String resourceGro return Mono .error(new IllegalArgumentException("Parameter restorePointName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -181,7 +181,7 @@ private Mono> getWithResponseAsync(String resourceGr return Mono .error(new IllegalArgumentException("Parameter restorePointName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -286,7 +286,7 @@ public Mono>> createWithResponseAsync(String resourceG } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -337,7 +337,7 @@ private Mono>> createWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -541,7 +541,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter restorePointName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext( context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -584,7 +584,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter restorePointName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, restorePointCollectionName, restorePointName, context); diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SshPublicKeysClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SshPublicKeysClientImpl.java index 4608f97afd69..adbac53a056f 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SshPublicKeysClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SshPublicKeysClientImpl.java @@ -187,7 +187,7 @@ public Mono> getByResourceGroupWithResponseA return Mono .error(new IllegalArgumentException("Parameter sshPublicKeyName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -226,7 +226,7 @@ private Mono> getByResourceGroupWithResponse return Mono .error(new IllegalArgumentException("Parameter sshPublicKeyName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -317,7 +317,7 @@ public Mono> createWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -364,7 +364,7 @@ private Mono> createWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -461,7 +461,7 @@ public Mono> updateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -508,7 +508,7 @@ private Mono> updateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -597,7 +597,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St return Mono .error(new IllegalArgumentException("Parameter sshPublicKeyName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, sshPublicKeyName, context)) @@ -634,7 +634,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono .error(new IllegalArgumentException("Parameter sshPublicKeyName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, sshPublicKeyName, context); @@ -711,7 +711,7 @@ public void delete(String resourceGroupName, String sshPublicKeyName) { return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -748,7 +748,7 @@ private Mono> listByResourceGroupSingle return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -841,7 +841,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -872,7 +872,7 @@ private Mono> listSinglePageAsync(Conte return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -973,7 +973,7 @@ public Mono> generateKeyPairWit if (parameters != null) { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.generateKeyPair(this.client.getEndpoint(), apiVersion, @@ -1018,7 +1018,7 @@ private Mono> generateKeyPairWi if (parameters != null) { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.generateKeyPair(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/UsagesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/UsagesClientImpl.java index 7ed6b4d733b5..dac82a7629d5 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/UsagesClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/UsagesClientImpl.java @@ -101,7 +101,7 @@ private Mono> listSinglePageAsync(String location) { if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -136,7 +136,7 @@ private Mono> listSinglePageAsync(String location, Con if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionImagesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionImagesClientImpl.java index 92d70d5626af..ccafeafcb115 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionImagesClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionImagesClientImpl.java @@ -123,7 +123,7 @@ public Mono> getWithResponseAsync(St if (version == null) { return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -167,7 +167,7 @@ private Mono> getWithResponseAsync(S if (version == null) { return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, @@ -257,7 +257,7 @@ public Mono>> listTypesWithResp if (publisherName == null) { return Mono.error(new IllegalArgumentException("Parameter publisherName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listTypes(this.client.getEndpoint(), apiVersion, @@ -294,7 +294,7 @@ private Mono>> listTypesWithRes if (publisherName == null) { return Mono.error(new IllegalArgumentException("Parameter publisherName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listTypes(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, @@ -383,7 +383,7 @@ public Mono>> listVersionsWithR if (type == null) { return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listVersions(this.client.getEndpoint(), apiVersion, @@ -427,7 +427,7 @@ private Mono>> listVersionsWith if (type == null) { return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listVersions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionsClientImpl.java index 34f875db2f09..e9f5843fd2ce 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionsClientImpl.java @@ -152,7 +152,7 @@ public Mono> getWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter vmExtensionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -196,7 +196,7 @@ private Mono> getWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter vmExtensionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -299,7 +299,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { extensionParameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -351,7 +351,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { extensionParameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -565,7 +565,7 @@ public Mono>> updateWithResponseAsync(String resourceG } else { extensionParameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -617,7 +617,7 @@ private Mono>> updateWithResponseAsync(String resource } else { extensionParameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -822,7 +822,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter vmExtensionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, vmExtensionName, context)) @@ -863,7 +863,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter vmExtensionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, vmExtensionName, context); @@ -1041,7 +1041,7 @@ public Mono> listWithResponseA if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1080,7 +1080,7 @@ private Mono> listWithResponse if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImagesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImagesClientImpl.java index a113d02f138b..4d95607c28c3 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImagesClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImagesClientImpl.java @@ -156,7 +156,7 @@ public Mono> listByEdgeZoneWithRespo if (edgeZone == null) { return Mono.error(new IllegalArgumentException("Parameter edgeZone is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByEdgeZone(this.client.getEndpoint(), apiVersion, @@ -193,7 +193,7 @@ private Mono> listByEdgeZoneWithResp if (edgeZone == null) { return Mono.error(new IllegalArgumentException("Parameter edgeZone is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listByEdgeZone(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, @@ -271,7 +271,7 @@ public Mono>> listPublishersWith if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listPublishers(this.client.getEndpoint(), apiVersion, @@ -304,7 +304,7 @@ private Mono>> listPublishersWit if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listPublishers(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, @@ -384,7 +384,7 @@ public Mono>> listOffersWithResp if (publisherName == null) { return Mono.error(new IllegalArgumentException("Parameter publisherName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listOffers(this.client.getEndpoint(), apiVersion, @@ -421,7 +421,7 @@ private Mono>> listOffersWithRes if (publisherName == null) { return Mono.error(new IllegalArgumentException("Parameter publisherName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listOffers(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, @@ -509,7 +509,7 @@ public Mono>> listSkusWithRespon if (offer == null) { return Mono.error(new IllegalArgumentException("Parameter offer is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listSkus(this.client.getEndpoint(), apiVersion, @@ -550,7 +550,7 @@ private Mono>> listSkusWithRespo if (offer == null) { return Mono.error(new IllegalArgumentException("Parameter offer is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listSkus(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, @@ -650,7 +650,7 @@ public Mono>> listWithResponseAs if (skus == null) { return Mono.error(new IllegalArgumentException("Parameter skus is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -698,7 +698,7 @@ private Mono>> listWithResponseA if (skus == null) { return Mono.error(new IllegalArgumentException("Parameter skus is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, @@ -813,7 +813,7 @@ public Mono>> listWithPropertiesWithResp if (expand == null) { return Mono.error(new IllegalArgumentException("Parameter expand is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listWithProperties(this.client.getEndpoint(), apiVersion, @@ -864,7 +864,7 @@ private Mono>> listWithPropertiesWithRes if (expand == null) { return Mono.error(new IllegalArgumentException("Parameter expand is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listWithProperties(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -977,7 +977,7 @@ public Mono> getWithResponseAsync(String loca return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, location, publisherName, offer, @@ -1025,7 +1025,7 @@ private Mono> getWithResponseAsync(String loc return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, location, publisherName, offer, skus, version, diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImagesEdgeZonesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImagesEdgeZonesClientImpl.java index a443d2714185..285e6bef4c36 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImagesEdgeZonesClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImagesEdgeZonesClientImpl.java @@ -137,7 +137,7 @@ public Mono>> listPublishersWith if (edgeZone == null) { return Mono.error(new IllegalArgumentException("Parameter edgeZone is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listPublishers(this.client.getEndpoint(), apiVersion, @@ -174,7 +174,7 @@ private Mono>> listPublishersWit if (edgeZone == null) { return Mono.error(new IllegalArgumentException("Parameter edgeZone is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listPublishers(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, @@ -262,7 +262,7 @@ public Mono>> listOffersWithResp if (publisherName == null) { return Mono.error(new IllegalArgumentException("Parameter publisherName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listOffers(this.client.getEndpoint(), apiVersion, @@ -303,7 +303,7 @@ private Mono>> listOffersWithRes if (publisherName == null) { return Mono.error(new IllegalArgumentException("Parameter publisherName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listOffers(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, @@ -400,7 +400,7 @@ public Mono>> listSkusWithRespon if (offer == null) { return Mono.error(new IllegalArgumentException("Parameter offer is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listSkus(this.client.getEndpoint(), apiVersion, @@ -445,7 +445,7 @@ private Mono>> listSkusWithRespo if (offer == null) { return Mono.error(new IllegalArgumentException("Parameter offer is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listSkus(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, @@ -554,7 +554,7 @@ public Mono>> listWithResponseAs if (skus == null) { return Mono.error(new IllegalArgumentException("Parameter skus is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -608,7 +608,7 @@ private Mono>> listWithResponseA if (skus == null) { return Mono.error(new IllegalArgumentException("Parameter skus is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, edgeZone, @@ -735,7 +735,7 @@ public Mono> getWithResponseAsync(String loca return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, location, edgeZone, @@ -788,7 +788,7 @@ private Mono> getWithResponseAsync(String loc return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, location, edgeZone, publisherName, offer, skus, diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineRunCommandsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineRunCommandsClientImpl.java index e40590933b99..75c89fdfe297 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineRunCommandsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineRunCommandsClientImpl.java @@ -190,7 +190,7 @@ public Mono> getByVirtualMachineWithResp if (runCommandName == null) { return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByVirtualMachine(this.client.getEndpoint(), apiVersion, @@ -233,7 +233,7 @@ private Mono> getByVirtualMachineWithRes if (runCommandName == null) { return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByVirtualMachine(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -336,7 +336,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { runCommand.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -386,7 +386,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { runCommand.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -596,7 +596,7 @@ public Mono>> updateWithResponseAsync(String resourceG } else { runCommand.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -646,7 +646,7 @@ private Mono>> updateWithResponseAsync(String resource } else { runCommand.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -847,7 +847,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (runCommandName == null) { return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, runCommandName, context)) @@ -887,7 +887,7 @@ private Mono>> deleteWithResponseAsync(String resource if (runCommandName == null) { return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, runCommandName, context); @@ -1065,7 +1065,7 @@ public void delete(String resourceGroupName, String vmName, String runCommandNam if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByVirtualMachine(this.client.getEndpoint(), apiVersion, @@ -1106,7 +1106,7 @@ public void delete(String resourceGroupName, String vmName, String runCommandNam if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1227,7 +1227,7 @@ private Mono> listSinglePageAsync(Str if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1261,7 +1261,7 @@ private Mono> listSinglePageAsync(Str if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1358,7 +1358,7 @@ public Mono> getWithResponseAsync(String locat return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, location, commandId, @@ -1397,7 +1397,7 @@ private Mono> getWithResponseAsync(String loca return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, location, commandId, this.client.getSubscriptionId(), diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetExtensionsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetExtensionsClientImpl.java index d8b9b3cfd4f6..c613cc40499b 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetExtensionsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetExtensionsClientImpl.java @@ -168,7 +168,7 @@ public Mono> getWithResponseAsync return Mono .error(new IllegalArgumentException("Parameter vmssExtensionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -212,7 +212,7 @@ private Mono> getWithResponseAsyn return Mono .error(new IllegalArgumentException("Parameter vmssExtensionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -316,7 +316,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { extensionParameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -369,7 +369,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { extensionParameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -588,7 +588,7 @@ public Mono>> updateWithResponseAsync(String resourceG } else { extensionParameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -640,7 +640,7 @@ private Mono>> updateWithResponseAsync(String resource } else { extensionParameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -847,7 +847,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter vmssExtensionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmssExtensionName, context)) @@ -888,7 +888,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter vmssExtensionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmssExtensionName, context); @@ -1067,7 +1067,7 @@ private Mono> listSinglePage if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1107,7 +1107,7 @@ private Mono> listSinglePage if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetLifeCycleHookEventsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetLifeCycleHookEventsClientImpl.java index 114b95b8bda0..11ed566a9d60 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetLifeCycleHookEventsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetLifeCycleHookEventsClientImpl.java @@ -141,7 +141,7 @@ public Mono> getWithResponseAsync(St return Mono.error( new IllegalArgumentException("Parameter lifecycleHookEventName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -184,7 +184,7 @@ private Mono> getWithResponseAsync(S return Mono.error( new IllegalArgumentException("Parameter lifecycleHookEventName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -284,7 +284,7 @@ public Mono> updateWithResponseAsync } else { properties.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -336,7 +336,7 @@ private Mono> updateWithResponseAsyn } else { properties.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -432,7 +432,7 @@ private Mono> listSinglePageAsy if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -472,7 +472,7 @@ private Mono> listSinglePageAsy if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetRollingUpgradesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetRollingUpgradesClientImpl.java index d8d0e58cf1c5..d616c49e77e1 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetRollingUpgradesClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetRollingUpgradesClientImpl.java @@ -131,7 +131,7 @@ public Mono>> startExtensionUpgradeWithResponseAsync(S if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.startExtensionUpgrade(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, context)) @@ -168,7 +168,7 @@ private Mono>> startExtensionUpgradeWithResponseAsync( if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.startExtensionUpgrade(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, context); @@ -346,7 +346,7 @@ public Mono>> startOSUpgradeWithResponseAsync(String r if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.startOSUpgrade(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, context)) @@ -383,7 +383,7 @@ private Mono>> startOSUpgradeWithResponseAsync(String if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.startOSUpgrade(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, context); @@ -557,7 +557,7 @@ public Mono>> cancelWithResponseAsync(String resourceG if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.cancel(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, context)) @@ -593,7 +593,7 @@ private Mono>> cancelWithResponseAsync(String resource if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.cancel(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, context); @@ -759,7 +759,7 @@ public Mono> getLatestWithResponseAsync( if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getLatest(this.client.getEndpoint(), apiVersion, @@ -797,7 +797,7 @@ private Mono> getLatestWithResponseAsync if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getLatest(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMExtensionsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMExtensionsClientImpl.java index 7233137148b8..3519c40e21d7 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMExtensionsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMExtensionsClientImpl.java @@ -161,7 +161,7 @@ public Mono> getWithResponseAsy return Mono .error(new IllegalArgumentException("Parameter vmExtensionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -208,7 +208,7 @@ private Mono> getWithResponseAs return Mono .error(new IllegalArgumentException("Parameter vmExtensionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -321,7 +321,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { extensionParameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -377,7 +377,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { extensionParameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -612,7 +612,7 @@ public Mono>> updateWithResponseAsync(String resourceG } else { extensionParameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -668,7 +668,7 @@ private Mono>> updateWithResponseAsync(String resource } else { extensionParameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -893,7 +893,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter vmExtensionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext( context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -939,7 +939,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter vmExtensionName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, vmExtensionName, context); @@ -1134,7 +1134,7 @@ public void delete(String resourceGroupName, String vmScaleSetName, String insta if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1177,7 +1177,7 @@ private Mono> listWi if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMRunCommandsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMRunCommandsClientImpl.java index b99364d9a14b..69418d9da12a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMRunCommandsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMRunCommandsClientImpl.java @@ -172,7 +172,7 @@ public Mono> getWithResponseAsync(String if (runCommandName == null) { return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -219,7 +219,7 @@ private Mono> getWithResponseAsync(Strin if (runCommandName == null) { return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -330,7 +330,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { runCommand.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -385,7 +385,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { runCommand.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -613,7 +613,7 @@ public Mono>> updateWithResponseAsync(String resourceG } else { runCommand.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -667,7 +667,7 @@ private Mono>> updateWithResponseAsync(String resource } else { runCommand.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -885,7 +885,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (runCommandName == null) { return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext( context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -930,7 +930,7 @@ private Mono>> deleteWithResponseAsync(String resource if (runCommandName == null) { return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, runCommandName, context); @@ -1125,7 +1125,7 @@ private Mono> listSinglePageAsync(S if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1170,7 +1170,7 @@ private Mono> listSinglePageAsync(S if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMsClientImpl.java index 3ac28ab58d38..5306a4bc2595 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMsClientImpl.java @@ -309,7 +309,7 @@ public Mono> getWithResponseAsync(String if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -353,7 +353,7 @@ private Mono> getWithResponseAsync(Strin if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -459,7 +459,7 @@ public Mono>> updateWithResponseAsync(String resourceG } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -514,7 +514,7 @@ private Mono>> updateWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -796,7 +796,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, forceDeletion, context)) @@ -838,7 +838,7 @@ private Mono>> deleteWithResponseAsync(String resource if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, forceDeletion, context); @@ -1078,7 +1078,7 @@ private Mono> listSinglePageAsync(S return Mono.error( new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1123,7 +1123,7 @@ private Mono> listSinglePageAsync(S return Mono.error( new IllegalArgumentException("Parameter virtualMachineScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1272,7 +1272,7 @@ public Mono>> approveRollingUpgradeWithResponseAsync(S if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.approveRollingUpgrade(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context)) @@ -1312,7 +1312,7 @@ private Mono>> approveRollingUpgradeWithResponseAsync( if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.approveRollingUpgrade(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context); @@ -1497,7 +1497,7 @@ public Mono>> deallocateWithResponseAsync(String resou if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.deallocate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context)) @@ -1538,7 +1538,7 @@ private Mono>> deallocateWithResponseAsync(String reso if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.deallocate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context); @@ -1729,7 +1729,7 @@ public void deallocate(String resourceGroupName, String vmScaleSetName, String i if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getInstanceView(this.client.getEndpoint(), apiVersion, @@ -1771,7 +1771,7 @@ private Mono> getInstanceVie if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getInstanceView(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1867,7 +1867,7 @@ public Mono>> reimageWithResponseAsync(String resource if (vmScaleSetVMReimageInput != null) { vmScaleSetVMReimageInput.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext( context -> service.reimage(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1912,7 +1912,7 @@ private Mono>> reimageWithResponseAsync(String resourc if (vmScaleSetVMReimageInput != null) { vmScaleSetVMReimageInput.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.reimage(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, vmScaleSetVMReimageInput, context); @@ -2147,7 +2147,7 @@ public Mono>> reimageAllWithResponseAsync(String resou if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.reimageAll(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context)) @@ -2188,7 +2188,7 @@ private Mono>> reimageAllWithResponseAsync(String reso if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.reimageAll(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context); @@ -2378,7 +2378,7 @@ public Mono> simulateEvictionWithResponseAsync(String resourceGro if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.simulateEviction(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context)) @@ -2418,7 +2418,7 @@ private Mono> simulateEvictionWithResponseAsync(String resourceGr if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.simulateEviction(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context); @@ -2514,7 +2514,7 @@ public Mono>> attachDetachDataDisksWithResponseAsync(S } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -2565,7 +2565,7 @@ private Mono>> attachDetachDataDisksWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -2774,7 +2774,7 @@ public Mono>> performMaintenanceWithResponseAsync(Stri if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.performMaintenance(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context)) @@ -2814,7 +2814,7 @@ private Mono>> performMaintenanceWithResponseAsync(Str if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.performMaintenance(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context); @@ -3001,7 +3001,7 @@ public Mono>> powerOffWithResponseAsync(String resourc if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.powerOff(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, skipShutdown, context)) @@ -3044,7 +3044,7 @@ private Mono>> powerOffWithResponseAsync(String resour if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.powerOff(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, skipShutdown, context); @@ -3292,7 +3292,7 @@ public Mono>> redeployWithResponseAsync(String resourc if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.redeploy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context)) @@ -3332,7 +3332,7 @@ private Mono>> redeployWithResponseAsync(String resour if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.redeploy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context); @@ -3514,7 +3514,7 @@ public Mono>> restartWithResponseAsync(String resource if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.restart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context)) @@ -3554,7 +3554,7 @@ private Mono>> restartWithResponseAsync(String resourc if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.restart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context); @@ -3739,7 +3739,7 @@ public Mono> retrieveBootDiagno if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.retrieveBootDiagnosticsData(this.client.getEndpoint(), apiVersion, @@ -3786,7 +3786,7 @@ private Mono> retrieveBootDiagn if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.retrieveBootDiagnosticsData(this.client.getEndpoint(), apiVersion, @@ -3887,7 +3887,7 @@ public Mono>> startWithResponseAsync(String resourceGr if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context)) @@ -3927,7 +3927,7 @@ private Mono>> startWithResponseAsync(String resourceG if (instanceId == null) { return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, context); @@ -4113,7 +4113,7 @@ public Mono>> runCommandWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -4162,7 +4162,7 @@ private Mono>> runCommandWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetsClientImpl.java index b665010d2c17..fd41d30e3afb 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetsClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetsClientImpl.java @@ -423,7 +423,7 @@ public Mono> getByResourceGroupWithRespons if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -463,7 +463,7 @@ private Mono> getByResourceGroupWithRespon if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -561,7 +561,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -612,7 +612,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -889,7 +889,7 @@ public Mono>> updateWithResponseAsync(String resourceG } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -939,7 +939,7 @@ private Mono>> updateWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -1203,7 +1203,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, forceDeletion, context)) @@ -1240,7 +1240,7 @@ private Mono>> deleteWithResponseAsync(String resource if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, forceDeletion, context); @@ -1450,7 +1450,7 @@ public void delete(String resourceGroupName, String vmScaleSetName, Boolean forc return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -1486,7 +1486,7 @@ public void delete(String resourceGroupName, String vmScaleSetName, Boolean forc return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1576,7 +1576,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1608,7 +1608,7 @@ private Mono> listSinglePageAsync(Con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -1713,7 +1713,7 @@ public Mono>> approveRollingUpgradeWithResponseAsync(S if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.approveRollingUpgrade(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context)) @@ -1753,7 +1753,7 @@ private Mono>> approveRollingUpgradeWithResponseAsync( if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.approveRollingUpgrade(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context); @@ -1977,7 +1977,7 @@ public Mono> convertToSinglePlacementGroupWithResponseAsync(Strin } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; return FluxUtil .withContext(context -> service.convertToSinglePlacementGroup(this.client.getEndpoint(), apiVersion, @@ -2020,7 +2020,7 @@ private Mono> convertToSinglePlacementGroupWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; context = this.client.mergeContext(context); return service.convertToSinglePlacementGroup(this.client.getEndpoint(), apiVersion, @@ -2115,7 +2115,7 @@ public Mono>> deallocateWithResponseAsync(String resou if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.deallocate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, hibernate, vmInstanceIDs, context)) @@ -2158,7 +2158,7 @@ private Mono>> deallocateWithResponseAsync(String reso if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.deallocate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, hibernate, vmInstanceIDs, context); @@ -2408,7 +2408,7 @@ public Mono>> deleteInstancesWithResponseAsync(String } else { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; return FluxUtil .withContext(context -> service.deleteInstances(this.client.getEndpoint(), apiVersion, @@ -2455,7 +2455,7 @@ private Mono>> deleteInstancesWithResponseAsync(String } else { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; context = this.client.mergeContext(context); return service.deleteInstances(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2700,7 +2700,7 @@ public void deleteInstances(String resourceGroupName, String vmScaleSetName, if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.forceRecoveryServiceFabricPlatformUpdateDomainWalk( @@ -2743,7 +2743,7 @@ public void deleteInstances(String resourceGroupName, String vmScaleSetName, if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.forceRecoveryServiceFabricPlatformUpdateDomainWalk(this.client.getEndpoint(), apiVersion, @@ -2842,7 +2842,7 @@ public RecoveryWalkResponseInner forceRecoveryServiceFabricPlatformUpdateDomainW if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getInstanceView(this.client.getEndpoint(), apiVersion, @@ -2880,7 +2880,7 @@ public RecoveryWalkResponseInner forceRecoveryServiceFabricPlatformUpdateDomainW if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getInstanceView(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2970,7 +2970,7 @@ public Mono>> updateInstancesWithResponseAsync(String } else { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; return FluxUtil.withContext(context -> service.updateInstances(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, contentType, vmInstanceIDs, context)) @@ -3012,7 +3012,7 @@ private Mono>> updateInstancesWithResponseAsync(String } else { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; context = this.client.mergeContext(context); return service.updateInstances(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -3196,7 +3196,7 @@ public void updateInstances(String resourceGroupName, String vmScaleSetName, if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getOSUpgradeHistory(this.client.getEndpoint(), apiVersion, @@ -3237,7 +3237,7 @@ public void updateInstances(String resourceGroupName, String vmScaleSetName, if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -3349,7 +3349,7 @@ public Mono>> performMaintenanceWithResponseAsync(Stri if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.performMaintenance(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context)) @@ -3391,7 +3391,7 @@ private Mono>> performMaintenanceWithResponseAsync(Str if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.performMaintenance(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context); @@ -3635,7 +3635,7 @@ public Mono>> powerOffWithResponseAsync(String resourc if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext( context -> service.powerOff(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -3679,7 +3679,7 @@ private Mono>> powerOffWithResponseAsync(String resour if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.powerOff(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, skipShutdown, vmInstanceIDs, context); @@ -3920,7 +3920,7 @@ public Mono>> reapplyWithResponseAsync(String resource if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.reapply(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, context)) @@ -3956,7 +3956,7 @@ private Mono>> reapplyWithResponseAsync(String resourc if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.reapply(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, context); @@ -4126,7 +4126,7 @@ public Mono>> redeployWithResponseAsync(String resourc if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.redeploy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context)) @@ -4167,7 +4167,7 @@ private Mono>> redeployWithResponseAsync(String resour if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.redeploy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context); @@ -4398,7 +4398,7 @@ public Mono>> reimageWithResponseAsync(String resource if (vmScaleSetReimageInput != null) { vmScaleSetReimageInput.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.reimage(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmScaleSetReimageInput, context)) @@ -4440,7 +4440,7 @@ private Mono>> reimageWithResponseAsync(String resourc if (vmScaleSetReimageInput != null) { vmScaleSetReimageInput.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.reimage(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmScaleSetReimageInput, context); @@ -4681,7 +4681,7 @@ public Mono>> reimageAllWithResponseAsync(String resou if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.reimageAll(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context)) @@ -4722,7 +4722,7 @@ private Mono>> reimageAllWithResponseAsync(String reso if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.reimageAll(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context); @@ -4951,7 +4951,7 @@ public Mono>> restartWithResponseAsync(String resource if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.restart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context)) @@ -4991,7 +4991,7 @@ private Mono>> restartWithResponseAsync(String resourc if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.restart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context); @@ -5212,7 +5212,7 @@ public Mono>> setOrchestrationServiceStateWithResponse } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; return FluxUtil .withContext(context -> service.setOrchestrationServiceState(this.client.getEndpoint(), apiVersion, @@ -5255,7 +5255,7 @@ private Mono>> setOrchestrationServiceStateWithRespons } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; context = this.client.mergeContext(context); return service.setOrchestrationServiceState(this.client.getEndpoint(), apiVersion, @@ -5441,7 +5441,7 @@ private Mono> listSkusSinglePageAs if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listSkus(this.client.getEndpoint(), apiVersion, @@ -5482,7 +5482,7 @@ private Mono> listSkusSinglePageAs if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -5598,7 +5598,7 @@ public Mono>> startWithResponseAsync(String resourceGr if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context)) @@ -5638,7 +5638,7 @@ private Mono>> startWithResponseAsync(String resourceG if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context); @@ -5859,7 +5859,7 @@ public Mono>> scaleOutWithResponseAsync(String resourc } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; return FluxUtil .withContext(context -> service.scaleOut(this.client.getEndpoint(), apiVersion, @@ -5902,7 +5902,7 @@ private Mono>> scaleOutWithResponseAsync(String resour } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; context = this.client.mergeContext(context); return service.scaleOut(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -6078,7 +6078,7 @@ private Mono> listByLocationSinglePag if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByLocation(this.client.getEndpoint(), apiVersion, @@ -6113,7 +6113,7 @@ private Mono> listByLocationSinglePag if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineSizesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineSizesClientImpl.java index f196b808ea41..eb205e73f284 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineSizesClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineSizesClientImpl.java @@ -102,7 +102,7 @@ private Mono> listSinglePageAsync(String if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -136,7 +136,7 @@ private Mono> listSinglePageAsync(String if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachinesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachinesClientImpl.java index 5c2845eb99e2..9c6afb983c11 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachinesClientImpl.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachinesClientImpl.java @@ -407,7 +407,7 @@ public Mono> getByResourceGroupWithResponseAsync(S if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -448,7 +448,7 @@ private Mono> getByResourceGroupWithResponseAsync( if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -548,7 +548,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -598,7 +598,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -876,7 +876,7 @@ public Mono>> updateWithResponseAsync(String resourceG } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -925,7 +925,7 @@ private Mono>> updateWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -1181,7 +1181,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, forceDeletion, context)) @@ -1218,7 +1218,7 @@ private Mono>> deleteWithResponseAsync(String resource if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, forceDeletion, context); @@ -1431,7 +1431,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -1473,7 +1473,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1612,7 +1612,7 @@ private Mono> listSinglePageAsync(String stat return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1650,7 +1650,7 @@ private Mono> listSinglePageAsync(String stat return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1787,7 +1787,7 @@ public Mono>> assessPatchesWithResponseAsync(String re if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.assessPatches(this.client.getEndpoint(), apiVersion, @@ -1825,7 +1825,7 @@ private Mono>> assessPatchesWithResponseAsync(String r if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.assessPatches(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2005,7 +2005,7 @@ public Mono>> attachDetachDataDisksWithResponseAsync(S } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -2050,7 +2050,7 @@ private Mono>> attachDetachDataDisksWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -2243,7 +2243,7 @@ public Mono>> captureWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -2289,7 +2289,7 @@ private Mono>> captureWithResponseAsync(String resourc } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -2485,7 +2485,7 @@ public Mono>> convertToManagedDisksWithResponseAsync(S if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.convertToManagedDisks(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context)) @@ -2522,7 +2522,7 @@ private Mono>> convertToManagedDisksWithResponseAsync( if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.convertToManagedDisks(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context); @@ -2699,7 +2699,7 @@ public Mono>> deallocateWithResponseAsync(String resou if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.deallocate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, hibernate, forceDeallocate, context)) @@ -2738,12 +2738,88 @@ private Mono>> deallocateWithResponseAsync(String reso if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.deallocate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, hibernate, forceDeallocate, context); } + /** + * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources + * that this virtual machine uses. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the virtual machine. + * @param hibernate Optional parameter to hibernate a virtual machine. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deallocateWithResponseAsync(String resourceGroupName, String vmName, + Boolean hibernate, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (vmName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); + } + final String apiVersion = "2026-03-01"; + final Boolean forceDeallocate = null; + context = this.client.mergeContext(context); + return service.deallocate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vmName, hibernate, forceDeallocate, context); + } + + /** + * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources + * that this virtual machine uses. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the virtual machine. + * @param hibernate Optional parameter to hibernate a virtual machine. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> deallocateWithResponseAsync(String resourceGroupName, String vmName, + Boolean hibernate) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (vmName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); + } + final String apiVersion = "2026-03-01"; + final Boolean forceDeallocate = null; + return FluxUtil + .withContext(context -> service.deallocate(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vmName, hibernate, forceDeallocate, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + /** * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources * that this virtual machine uses. @@ -2811,6 +2887,49 @@ private PollerFlux, Void> beginDeallocateAsync(String resourceG context); } + /** + * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources + * that this virtual machine uses. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the virtual machine. + * @param hibernate Optional parameter to hibernate a virtual machine. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeallocateAsync(String resourceGroupName, String vmName, + Boolean hibernate, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deallocateWithResponseAsync(resourceGroupName, vmName, hibernate, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources + * that this virtual machine uses. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the virtual machine. + * @param hibernate Optional parameter to hibernate a virtual machine. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginDeallocateAsync(String resourceGroupName, String vmName, + Boolean hibernate) { + Mono>> mono = deallocateWithResponseAsync(resourceGroupName, vmName, hibernate); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + /** * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources * that this virtual machine uses. @@ -2850,6 +2969,25 @@ public SyncPoller, Void> beginDeallocate(String resourceGroupNa .getSyncPoller(); } + /** + * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources + * that this virtual machine uses. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the virtual machine. + * @param hibernate Optional parameter to hibernate a virtual machine. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDeallocate(String resourceGroupName, String vmName, + Boolean hibernate, Context context) { + return this.beginDeallocateAsync(resourceGroupName, vmName, hibernate, context).getSyncPoller(); + } + /** * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources * that this virtual machine uses. @@ -2910,6 +3048,43 @@ private Mono deallocateAsync(String resourceGroupName, String vmName, Bool .flatMap(this.client::getLroFinalResultOrError); } + /** + * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources + * that this virtual machine uses. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the virtual machine. + * @param hibernate Optional parameter to hibernate a virtual machine. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deallocateAsync(String resourceGroupName, String vmName, Boolean hibernate, Context context) { + return beginDeallocateAsync(resourceGroupName, vmName, hibernate, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources + * that this virtual machine uses. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the virtual machine. + * @param hibernate Optional parameter to hibernate a virtual machine. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deallocateAsync(String resourceGroupName, String vmName, Boolean hibernate) { + return beginDeallocateAsync(resourceGroupName, vmName, hibernate).last() + .flatMap(this.client::getLroFinalResultOrError); + } + /** * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources * that this virtual machine uses. @@ -2946,6 +3121,23 @@ public void deallocate(String resourceGroupName, String vmName, Boolean hibernat deallocateAsync(resourceGroupName, vmName, hibernate, forceDeallocate, context).block(); } + /** + * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources + * that this virtual machine uses. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the virtual machine. + * @param hibernate Optional parameter to hibernate a virtual machine. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ApiErrorException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void deallocate(String resourceGroupName, String vmName, Boolean hibernate, Context context) { + deallocateAsync(resourceGroupName, vmName, hibernate, context).block(); + } + /** * Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before * performing this operation. For Windows, please refer to [Create a managed image of a generalized VM in @@ -2977,7 +3169,7 @@ public Mono> generalizeWithResponseAsync(String resourceGroupName if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.generalize(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context)) @@ -3016,7 +3208,7 @@ private Mono> generalizeWithResponseAsync(String resourceGroupNam if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.generalize(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context); @@ -3115,7 +3307,7 @@ public Mono>> installPatchesWithResponseAsync(String r } else { installPatchesInput.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -3162,7 +3354,7 @@ private Mono>> installPatchesWithResponseAsync(String } else { installPatchesInput.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -3356,7 +3548,7 @@ public Mono> instanceViewWithResponseA if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.instanceView(this.client.getEndpoint(), apiVersion, @@ -3394,7 +3586,7 @@ private Mono> instanceViewWithResponse if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.instanceView(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -3477,7 +3669,7 @@ public Mono>> performMaintenanceWithResponseAsync(Stri if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.performMaintenance(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context)) @@ -3513,7 +3705,7 @@ private Mono>> performMaintenanceWithResponseAsync(Str if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.performMaintenance(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context); @@ -3681,7 +3873,7 @@ public Mono>> powerOffWithResponseAsync(String resourc if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.powerOff(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, skipShutdown, context)) @@ -3720,7 +3912,7 @@ private Mono>> powerOffWithResponseAsync(String resour if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.powerOff(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, skipShutdown, context); @@ -3945,7 +4137,7 @@ public Mono>> reapplyWithResponseAsync(String resource if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.reapply(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context)) @@ -3981,7 +4173,7 @@ private Mono>> reapplyWithResponseAsync(String resourc if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.reapply(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context); @@ -4143,7 +4335,7 @@ public Mono>> redeployWithResponseAsync(String resourc if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.redeploy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context)) @@ -4179,7 +4371,7 @@ private Mono>> redeployWithResponseAsync(String resour if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.redeploy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context); @@ -4350,7 +4542,7 @@ public Mono>> reimageWithResponseAsync(String resource if (parameters != null) { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.reimage(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, parameters, context)) @@ -4394,7 +4586,7 @@ private Mono>> reimageWithResponseAsync(String resourc if (parameters != null) { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.reimage(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, parameters, context); @@ -4646,7 +4838,7 @@ public Mono>> restartWithResponseAsync(String resource if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.restart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context)) @@ -4682,7 +4874,7 @@ private Mono>> restartWithResponseAsync(String resourc if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.restart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context); @@ -4849,7 +5041,7 @@ public Mono> retrieveBootDiagno if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.retrieveBootDiagnosticsData(this.client.getEndpoint(), apiVersion, @@ -4891,7 +5083,7 @@ private Mono> retrieveBootDiagn if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.retrieveBootDiagnosticsData(this.client.getEndpoint(), apiVersion, @@ -4981,7 +5173,7 @@ public Mono> simulateEvictionWithResponseAsync(String resourceGro if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.simulateEviction(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context)) @@ -5017,7 +5209,7 @@ private Mono> simulateEvictionWithResponseAsync(String resourceGr if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.simulateEviction(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context); @@ -5095,7 +5287,7 @@ public Mono>> startWithResponseAsync(String resourceGr if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context)) @@ -5131,7 +5323,7 @@ private Mono>> startWithResponseAsync(String resourceG if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context); @@ -5295,7 +5487,7 @@ private Mono> listAvailableSizesSinglePag if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAvailableSizes(this.client.getEndpoint(), apiVersion, @@ -5335,7 +5527,7 @@ private Mono> listAvailableSizesSinglePag if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -5445,7 +5637,7 @@ public Mono>> runCommandWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -5489,7 +5681,7 @@ private Mono>> runCommandWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -5677,7 +5869,7 @@ public Mono>> migrateToVMScaleSetWithResponseAsync(Str if (parameters != null) { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; return FluxUtil .withContext(context -> service.migrateToVMScaleSet(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, parameters, context)) @@ -5717,7 +5909,7 @@ private Mono>> migrateToVMScaleSetWithResponseAsync(St if (parameters != null) { parameters.validate(); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; context = this.client.mergeContext(context); return service.migrateToVMScaleSet(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, parameters, context); @@ -5927,7 +6119,7 @@ private Mono> listByLocationSinglePageAsync(S if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByLocation(this.client.getEndpoint(), apiVersion, @@ -5961,7 +6153,7 @@ private Mono> listByLocationSinglePageAsync(S if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2025-11-01"; + final String apiVersion = "2026-03-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/models/InterconnectBlockListResult.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/models/InterconnectBlockListResult.java new file mode 100644 index 000000000000..477e468789e5 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/models/InterconnectBlockListResult.java @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.compute.fluent.models.InterconnectBlockInner; +import java.io.IOException; +import java.util.List; + +/** + * The list Interconnect Block operation response. + */ +@Immutable +public final class InterconnectBlockListResult implements JsonSerializable { + /* + * The list of Interconnect Blocks. + */ + private List value; + + /* + * The URI to fetch the next page of Interconnect Blocks. Call ListNext() with this URI to fetch the next page of + * Interconnect Blocks. + */ + private String nextLink; + + /** + * Creates an instance of InterconnectBlockListResult class. + */ + private InterconnectBlockListResult() { + } + + /** + * Get the value property: The list of Interconnect Blocks. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The URI to fetch the next page of Interconnect Blocks. Call ListNext() with this URI + * to fetch the next page of Interconnect Blocks. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model InterconnectBlockListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(InterconnectBlockListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of InterconnectBlockListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of InterconnectBlockListResult if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the InterconnectBlockListResult. + */ + public static InterconnectBlockListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + InterconnectBlockListResult deserializedInterconnectBlockListResult = new InterconnectBlockListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> InterconnectBlockInner.fromJson(reader1)); + deserializedInterconnectBlockListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedInterconnectBlockListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedInterconnectBlockListResult; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/AutomaticSkuMigrationPolicy.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/AutomaticSkuMigrationPolicy.java new file mode 100644 index 000000000000..20cf7c76b0e1 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/AutomaticSkuMigrationPolicy.java @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Specifies the configuration parameters used to control automatic SKU migration for the virtual machine scale set. + * When enabled, the platform may migrate instances to a different VM size from the SKU profile depending on platform + * demands. + */ +@Fluent +public final class AutomaticSkuMigrationPolicy implements JsonSerializable { + /* + * Specifies whether automatic SKU migration should be enabled on the virtual machine scale set. The default value + * is false. + */ + private Boolean enabled; + + /** + * Creates an instance of AutomaticSkuMigrationPolicy class. + */ + public AutomaticSkuMigrationPolicy() { + } + + /** + * Get the enabled property: Specifies whether automatic SKU migration should be enabled on the virtual machine + * scale set. The default value is false. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Specifies whether automatic SKU migration should be enabled on the virtual machine + * scale set. The default value is false. + * + * @param enabled the enabled value to set. + * @return the AutomaticSkuMigrationPolicy object itself. + */ + public AutomaticSkuMigrationPolicy withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AutomaticSkuMigrationPolicy from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AutomaticSkuMigrationPolicy if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AutomaticSkuMigrationPolicy. + */ + public static AutomaticSkuMigrationPolicy fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AutomaticSkuMigrationPolicy deserializedAutomaticSkuMigrationPolicy = new AutomaticSkuMigrationPolicy(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedAutomaticSkuMigrationPolicy.enabled = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedAutomaticSkuMigrationPolicy; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockExpandTypes.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockExpandTypes.java new file mode 100644 index 000000000000..a096506806d3 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockExpandTypes.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The expand expression to apply on the operation for an Interconnect Block. + */ +public final class InterconnectBlockExpandTypes extends ExpandableStringEnum { + /** + * Retrieve the runtime instance view of the Interconnect Block. + */ + public static final InterconnectBlockExpandTypes INSTANCE_VIEW = fromString("instanceView"); + + /** + * Creates a new instance of InterconnectBlockExpandTypes value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public InterconnectBlockExpandTypes() { + } + + /** + * Creates or finds a InterconnectBlockExpandTypes from its string representation. + * + * @param name a name to look for. + * @return the corresponding InterconnectBlockExpandTypes. + */ + public static InterconnectBlockExpandTypes fromString(String name) { + return fromString(name, InterconnectBlockExpandTypes.class); + } + + /** + * Gets known InterconnectBlockExpandTypes values. + * + * @return known InterconnectBlockExpandTypes values. + */ + public static Collection values() { + return values(InterconnectBlockExpandTypes.class); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockInstanceView.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockInstanceView.java new file mode 100644 index 000000000000..d92f21512fbe --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockInstanceView.java @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The instance view of an Interconnect Block. + */ +@Immutable +public final class InterconnectBlockInstanceView implements JsonSerializable { + /* + * The current capacity allocated for this Interconnect Block. + */ + private Integer currentCapacity; + + /* + * The resource status information. + */ + private List statuses; + + /** + * Creates an instance of InterconnectBlockInstanceView class. + */ + private InterconnectBlockInstanceView() { + } + + /** + * Get the currentCapacity property: The current capacity allocated for this Interconnect Block. + * + * @return the currentCapacity value. + */ + public Integer currentCapacity() { + return this.currentCapacity; + } + + /** + * Get the statuses property: The resource status information. + * + * @return the statuses value. + */ + public List statuses() { + return this.statuses; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (statuses() != null) { + statuses().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of InterconnectBlockInstanceView from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of InterconnectBlockInstanceView if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the InterconnectBlockInstanceView. + */ + public static InterconnectBlockInstanceView fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + InterconnectBlockInstanceView deserializedInterconnectBlockInstanceView + = new InterconnectBlockInstanceView(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("currentCapacity".equals(fieldName)) { + deserializedInterconnectBlockInstanceView.currentCapacity = reader.getNullable(JsonReader::getInt); + } else if ("statuses".equals(fieldName)) { + List statuses + = reader.readArray(reader1 -> InstanceViewStatus.fromJson(reader1)); + deserializedInterconnectBlockInstanceView.statuses = statuses; + } else { + reader.skipChildren(); + } + } + + return deserializedInterconnectBlockInstanceView; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockProfile.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockProfile.java new file mode 100644 index 000000000000..b46a56273eb1 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockProfile.java @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The parameters of an Interconnect Block Profile. + */ +@Fluent +public final class InterconnectBlockProfile implements JsonSerializable { + /* + * Specifies the Interconnect Block resource ID that should be used for allocating the Virtual Machine or Scale Set + * VM instances provided enough capacity has been reserved. + */ + private ApiEntityReference interconnectBlock; + + /** + * Creates an instance of InterconnectBlockProfile class. + */ + public InterconnectBlockProfile() { + } + + /** + * Get the interconnectBlock property: Specifies the Interconnect Block resource ID that should be used for + * allocating the Virtual Machine or Scale Set VM instances provided enough capacity has been reserved. + * + * @return the interconnectBlock value. + */ + public ApiEntityReference interconnectBlock() { + return this.interconnectBlock; + } + + /** + * Set the interconnectBlock property: Specifies the Interconnect Block resource ID that should be used for + * allocating the Virtual Machine or Scale Set VM instances provided enough capacity has been reserved. + * + * @param interconnectBlock the interconnectBlock value to set. + * @return the InterconnectBlockProfile object itself. + */ + public InterconnectBlockProfile withInterconnectBlock(ApiEntityReference interconnectBlock) { + this.interconnectBlock = interconnectBlock; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (interconnectBlock() != null) { + interconnectBlock().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("interconnectBlock", this.interconnectBlock); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of InterconnectBlockProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of InterconnectBlockProfile if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the InterconnectBlockProfile. + */ + public static InterconnectBlockProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + InterconnectBlockProfile deserializedInterconnectBlockProfile = new InterconnectBlockProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("interconnectBlock".equals(fieldName)) { + deserializedInterconnectBlockProfile.interconnectBlock = ApiEntityReference.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedInterconnectBlockProfile; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockProperties.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockProperties.java new file mode 100644 index 000000000000..ae501ff51cb4 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockProperties.java @@ -0,0 +1,220 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.List; + +/** + * Properties of the Interconnect Block. + */ +@Fluent +public final class InterconnectBlockProperties implements JsonSerializable { + /* + * A list of all virtual machine resource ids that are associated with the Interconnect Block. + */ + private List virtualMachinesAssociated; + + /* + * The Microsoft.Network/interconnectGroups resource that this Interconnect Block is associated with. Required at + * create and immutable thereafter. + */ + private ApiEntityReference interconnectGroup; + + /* + * A unique id (GUID) generated and assigned to the Interconnect Block by the platform which does not change + * throughout the lifetime of the resource. + */ + private String interconnectBlockId; + + /* + * The date time when the Interconnect Block was last updated. + */ + private OffsetDateTime provisioningTime; + + /* + * The provisioning state, which only appears in the response. + */ + private String provisioningState; + + /* + * The Interconnect Block instance view. + */ + private InterconnectBlockInstanceView instanceView; + + /* + * Specifies the time at which the Interconnect Block resource was created. + */ + private OffsetDateTime timeCreated; + + /** + * Creates an instance of InterconnectBlockProperties class. + */ + public InterconnectBlockProperties() { + } + + /** + * Get the virtualMachinesAssociated property: A list of all virtual machine resource ids that are associated with + * the Interconnect Block. + * + * @return the virtualMachinesAssociated value. + */ + public List virtualMachinesAssociated() { + return this.virtualMachinesAssociated; + } + + /** + * Get the interconnectGroup property: The Microsoft.Network/interconnectGroups resource that this Interconnect + * Block is associated with. Required at create and immutable thereafter. + * + * @return the interconnectGroup value. + */ + public ApiEntityReference interconnectGroup() { + return this.interconnectGroup; + } + + /** + * Set the interconnectGroup property: The Microsoft.Network/interconnectGroups resource that this Interconnect + * Block is associated with. Required at create and immutable thereafter. + * + * @param interconnectGroup the interconnectGroup value to set. + * @return the InterconnectBlockProperties object itself. + */ + public InterconnectBlockProperties withInterconnectGroup(ApiEntityReference interconnectGroup) { + this.interconnectGroup = interconnectGroup; + return this; + } + + /** + * Get the interconnectBlockId property: A unique id (GUID) generated and assigned to the Interconnect Block by the + * platform which does not change throughout the lifetime of the resource. + * + * @return the interconnectBlockId value. + */ + public String interconnectBlockId() { + return this.interconnectBlockId; + } + + /** + * Get the provisioningTime property: The date time when the Interconnect Block was last updated. + * + * @return the provisioningTime value. + */ + public OffsetDateTime provisioningTime() { + return this.provisioningTime; + } + + /** + * Get the provisioningState property: The provisioning state, which only appears in the response. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Get the instanceView property: The Interconnect Block instance view. + * + * @return the instanceView value. + */ + public InterconnectBlockInstanceView instanceView() { + return this.instanceView; + } + + /** + * Get the timeCreated property: Specifies the time at which the Interconnect Block resource was created. + * + * @return the timeCreated value. + */ + public OffsetDateTime timeCreated() { + return this.timeCreated; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (virtualMachinesAssociated() != null) { + virtualMachinesAssociated().forEach(e -> e.validate()); + } + if (interconnectGroup() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property interconnectGroup in model InterconnectBlockProperties")); + } else { + interconnectGroup().validate(); + } + if (instanceView() != null) { + instanceView().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(InterconnectBlockProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("interconnectGroup", this.interconnectGroup); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of InterconnectBlockProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of InterconnectBlockProperties if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the InterconnectBlockProperties. + */ + public static InterconnectBlockProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + InterconnectBlockProperties deserializedInterconnectBlockProperties = new InterconnectBlockProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("interconnectGroup".equals(fieldName)) { + deserializedInterconnectBlockProperties.interconnectGroup = ApiEntityReference.fromJson(reader); + } else if ("virtualMachinesAssociated".equals(fieldName)) { + List virtualMachinesAssociated + = reader.readArray(reader1 -> SubResourceReadOnly.fromJson(reader1)); + deserializedInterconnectBlockProperties.virtualMachinesAssociated = virtualMachinesAssociated; + } else if ("interconnectBlockId".equals(fieldName)) { + deserializedInterconnectBlockProperties.interconnectBlockId = reader.getString(); + } else if ("provisioningTime".equals(fieldName)) { + deserializedInterconnectBlockProperties.provisioningTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("provisioningState".equals(fieldName)) { + deserializedInterconnectBlockProperties.provisioningState = reader.getString(); + } else if ("instanceView".equals(fieldName)) { + deserializedInterconnectBlockProperties.instanceView + = InterconnectBlockInstanceView.fromJson(reader); + } else if ("timeCreated".equals(fieldName)) { + deserializedInterconnectBlockProperties.timeCreated = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedInterconnectBlockProperties; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockUpdate.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockUpdate.java new file mode 100644 index 000000000000..ab34742fce1e --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockUpdate.java @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.Map; + +/** + * Specifies information about the Interconnect Block. Only tags and sku.capacity can be updated. + */ +@Fluent +public final class InterconnectBlockUpdate extends UpdateResource { + /* + * SKU of the resource for which capacity needs to be pre-allocated. Only `sku.capacity` is mutable; `sku.name` is + * immutable. + */ + private Sku sku; + + /** + * Creates an instance of InterconnectBlockUpdate class. + */ + public InterconnectBlockUpdate() { + } + + /** + * Get the sku property: SKU of the resource for which capacity needs to be pre-allocated. Only `sku.capacity` is + * mutable; `sku.name` is immutable. + * + * @return the sku value. + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku property: SKU of the resource for which capacity needs to be pre-allocated. Only `sku.capacity` is + * mutable; `sku.name` is immutable. + * + * @param sku the sku value to set. + * @return the InterconnectBlockUpdate object itself. + */ + public InterconnectBlockUpdate withSku(Sku sku) { + this.sku = sku; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public InterconnectBlockUpdate withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (sku() != null) { + sku().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("sku", this.sku); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of InterconnectBlockUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of InterconnectBlockUpdate if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the InterconnectBlockUpdate. + */ + public static InterconnectBlockUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + InterconnectBlockUpdate deserializedInterconnectBlockUpdate = new InterconnectBlockUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedInterconnectBlockUpdate.withTags(tags); + } else if ("sku".equals(fieldName)) { + deserializedInterconnectBlockUpdate.sku = Sku.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedInterconnectBlockUpdate; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectGroupProfile.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectGroupProfile.java new file mode 100644 index 000000000000..f7dd67ecfffe --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectGroupProfile.java @@ -0,0 +1,125 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.SubResource; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Specifies the interconnect group profile for a virtual machine, used to associate the VM with an interconnect group + * and subgroups. + */ +@Fluent +public final class InterconnectGroupProfile implements JsonSerializable { + /* + * Reference to the interconnect group resource. + */ + private SubResource interconnectGroup; + + /* + * The list of subgroup references within the interconnect group. + */ + private List subgroups; + + /** + * Creates an instance of InterconnectGroupProfile class. + */ + public InterconnectGroupProfile() { + } + + /** + * Get the interconnectGroup property: Reference to the interconnect group resource. + * + * @return the interconnectGroup value. + */ + public SubResource interconnectGroup() { + return this.interconnectGroup; + } + + /** + * Set the interconnectGroup property: Reference to the interconnect group resource. + * + * @param interconnectGroup the interconnectGroup value to set. + * @return the InterconnectGroupProfile object itself. + */ + public InterconnectGroupProfile withInterconnectGroup(SubResource interconnectGroup) { + this.interconnectGroup = interconnectGroup; + return this; + } + + /** + * Get the subgroups property: The list of subgroup references within the interconnect group. + * + * @return the subgroups value. + */ + public List subgroups() { + return this.subgroups; + } + + /** + * Set the subgroups property: The list of subgroup references within the interconnect group. + * + * @param subgroups the subgroups value to set. + * @return the InterconnectGroupProfile object itself. + */ + public InterconnectGroupProfile withSubgroups(List subgroups) { + this.subgroups = subgroups; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("interconnectGroup", this.interconnectGroup); + jsonWriter.writeArrayField("subgroups", this.subgroups, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of InterconnectGroupProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of InterconnectGroupProfile if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the InterconnectGroupProfile. + */ + public static InterconnectGroupProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + InterconnectGroupProfile deserializedInterconnectGroupProfile = new InterconnectGroupProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("interconnectGroup".equals(fieldName)) { + deserializedInterconnectGroupProfile.interconnectGroup = SubResource.fromJson(reader); + } else if ("subgroups".equals(fieldName)) { + List subgroups = reader.readArray(reader1 -> SubResource.fromJson(reader1)); + deserializedInterconnectGroupProfile.subgroups = subgroups; + } else { + reader.skipChildren(); + } + } + + return deserializedInterconnectGroupProfile; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectInstanceView.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectInstanceView.java new file mode 100644 index 000000000000..0e9c3aa17e06 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/InterconnectInstanceView.java @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The Interconnect Block instance view details for a Virtual Machine or Scale Set VM instance. + */ +@Immutable +public final class InterconnectInstanceView implements JsonSerializable { + /* + * The ID (GUID) of the Interconnect subgroup in which the Virtual Machine was placed. + */ + private String interconnectSubgroupId; + + /** + * Creates an instance of InterconnectInstanceView class. + */ + private InterconnectInstanceView() { + } + + /** + * Get the interconnectSubgroupId property: The ID (GUID) of the Interconnect subgroup in which the Virtual Machine + * was placed. + * + * @return the interconnectSubgroupId value. + */ + public String interconnectSubgroupId() { + return this.interconnectSubgroupId; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of InterconnectInstanceView from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of InterconnectInstanceView if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the InterconnectInstanceView. + */ + public static InterconnectInstanceView fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + InterconnectInstanceView deserializedInterconnectInstanceView = new InterconnectInstanceView(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("interconnectSubgroupId".equals(fieldName)) { + deserializedInterconnectInstanceView.interconnectSubgroupId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedInterconnectInstanceView; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/NetworkProfile.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/NetworkProfile.java index 5b7530b14f6d..051021a56b18 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/NetworkProfile.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/NetworkProfile.java @@ -33,6 +33,11 @@ public final class NetworkProfile implements JsonSerializable { */ private List networkInterfaceConfigurations; + /* + * Specifies the interconnect group profile to associate with the virtual machine. Minimum api-version: 2026-03-01. + */ + private InterconnectGroupProfile interconnectGroupProfile; + /** * Creates an instance of NetworkProfile class. */ @@ -106,6 +111,28 @@ public NetworkProfile withNetworkInterfaceConfigurations( return this; } + /** + * Get the interconnectGroupProfile property: Specifies the interconnect group profile to associate with the virtual + * machine. Minimum api-version: 2026-03-01. + * + * @return the interconnectGroupProfile value. + */ + public InterconnectGroupProfile interconnectGroupProfile() { + return this.interconnectGroupProfile; + } + + /** + * Set the interconnectGroupProfile property: Specifies the interconnect group profile to associate with the virtual + * machine. Minimum api-version: 2026-03-01. + * + * @param interconnectGroupProfile the interconnectGroupProfile value to set. + * @return the NetworkProfile object itself. + */ + public NetworkProfile withInterconnectGroupProfile(InterconnectGroupProfile interconnectGroupProfile) { + this.interconnectGroupProfile = interconnectGroupProfile; + return this; + } + /** * Validates the instance. * @@ -118,6 +145,9 @@ public void validate() { if (networkInterfaceConfigurations() != null) { networkInterfaceConfigurations().forEach(e -> e.validate()); } + if (interconnectGroupProfile() != null) { + interconnectGroupProfile().validate(); + } } /** @@ -132,6 +162,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.networkApiVersion == null ? null : this.networkApiVersion.toString()); jsonWriter.writeArrayField("networkInterfaceConfigurations", this.networkInterfaceConfigurations, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("interconnectGroupProfile", this.interconnectGroupProfile); return jsonWriter.writeEndObject(); } @@ -160,6 +191,8 @@ public static NetworkProfile fromJson(JsonReader jsonReader) throws IOException List networkInterfaceConfigurations = reader.readArray(reader1 -> VirtualMachineNetworkInterfaceConfiguration.fromJson(reader1)); deserializedNetworkProfile.networkInterfaceConfigurations = networkInterfaceConfigurations; + } else if ("interconnectGroupProfile".equals(fieldName)) { + deserializedNetworkProfile.interconnectGroupProfile = InterconnectGroupProfile.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/SkuProfile.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/SkuProfile.java index da27cfc26110..ef6ad5a1c78b 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/SkuProfile.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/SkuProfile.java @@ -28,6 +28,13 @@ public final class SkuProfile implements JsonSerializable { */ private AllocationStrategy allocationStrategy; + /* + * Specifies the policy that controls whether the platform may automatically migrate scale set instances to a + * different VM size from the SKU profile depending on platform demands. When omitted, automatic SKU migration is + * disabled. + */ + private AutomaticSkuMigrationPolicy automaticSkuMigrationPolicy; + /** * Creates an instance of SkuProfile class. */ @@ -76,6 +83,30 @@ public SkuProfile withAllocationStrategy(AllocationStrategy allocationStrategy) return this; } + /** + * Get the automaticSkuMigrationPolicy property: Specifies the policy that controls whether the platform may + * automatically migrate scale set instances to a different VM size from the SKU profile depending on platform + * demands. When omitted, automatic SKU migration is disabled. + * + * @return the automaticSkuMigrationPolicy value. + */ + public AutomaticSkuMigrationPolicy automaticSkuMigrationPolicy() { + return this.automaticSkuMigrationPolicy; + } + + /** + * Set the automaticSkuMigrationPolicy property: Specifies the policy that controls whether the platform may + * automatically migrate scale set instances to a different VM size from the SKU profile depending on platform + * demands. When omitted, automatic SKU migration is disabled. + * + * @param automaticSkuMigrationPolicy the automaticSkuMigrationPolicy value to set. + * @return the SkuProfile object itself. + */ + public SkuProfile withAutomaticSkuMigrationPolicy(AutomaticSkuMigrationPolicy automaticSkuMigrationPolicy) { + this.automaticSkuMigrationPolicy = automaticSkuMigrationPolicy; + return this; + } + /** * Validates the instance. * @@ -85,6 +116,9 @@ public void validate() { if (vmSizes() != null) { vmSizes().forEach(e -> e.validate()); } + if (automaticSkuMigrationPolicy() != null) { + automaticSkuMigrationPolicy().validate(); + } } /** @@ -96,6 +130,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeArrayField("vmSizes", this.vmSizes, (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("allocationStrategy", this.allocationStrategy == null ? null : this.allocationStrategy.toString()); + jsonWriter.writeJsonField("automaticSkuMigrationPolicy", this.automaticSkuMigrationPolicy); return jsonWriter.writeEndObject(); } @@ -119,6 +154,8 @@ public static SkuProfile fromJson(JsonReader jsonReader) throws IOException { deserializedSkuProfile.vmSizes = vmSizes; } else if ("allocationStrategy".equals(fieldName)) { deserializedSkuProfile.allocationStrategy = AllocationStrategy.fromString(reader.getString()); + } else if ("automaticSkuMigrationPolicy".equals(fieldName)) { + deserializedSkuProfile.automaticSkuMigrationPolicy = AutomaticSkuMigrationPolicy.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetNetworkProfile.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetNetworkProfile.java index 391a1eb320ab..43c316ea8863 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetNetworkProfile.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetNetworkProfile.java @@ -37,6 +37,11 @@ public final class VirtualMachineScaleSetNetworkProfile */ private NetworkApiVersion networkApiVersion; + /* + * Specifies the interconnect group profile to associate with the scale set. Minimum api-version: 2026-03-01. + */ + private InterconnectGroupProfile interconnectGroupProfile; + /** * Creates an instance of VirtualMachineScaleSetNetworkProfile class. */ @@ -112,6 +117,29 @@ public VirtualMachineScaleSetNetworkProfile withNetworkApiVersion(NetworkApiVers return this; } + /** + * Get the interconnectGroupProfile property: Specifies the interconnect group profile to associate with the scale + * set. Minimum api-version: 2026-03-01. + * + * @return the interconnectGroupProfile value. + */ + public InterconnectGroupProfile interconnectGroupProfile() { + return this.interconnectGroupProfile; + } + + /** + * Set the interconnectGroupProfile property: Specifies the interconnect group profile to associate with the scale + * set. Minimum api-version: 2026-03-01. + * + * @param interconnectGroupProfile the interconnectGroupProfile value to set. + * @return the VirtualMachineScaleSetNetworkProfile object itself. + */ + public VirtualMachineScaleSetNetworkProfile + withInterconnectGroupProfile(InterconnectGroupProfile interconnectGroupProfile) { + this.interconnectGroupProfile = interconnectGroupProfile; + return this; + } + /** * Validates the instance. * @@ -124,6 +152,9 @@ public void validate() { if (networkInterfaceConfigurations() != null) { networkInterfaceConfigurations().forEach(e -> e.validate()); } + if (interconnectGroupProfile() != null) { + interconnectGroupProfile().validate(); + } } /** @@ -137,6 +168,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("networkApiVersion", this.networkApiVersion == null ? null : this.networkApiVersion.toString()); + jsonWriter.writeJsonField("interconnectGroupProfile", this.interconnectGroupProfile); return jsonWriter.writeEndObject(); } @@ -166,6 +198,9 @@ public static VirtualMachineScaleSetNetworkProfile fromJson(JsonReader jsonReade } else if ("networkApiVersion".equals(fieldName)) { deserializedVirtualMachineScaleSetNetworkProfile.networkApiVersion = NetworkApiVersion.fromString(reader.getString()); + } else if ("interconnectGroupProfile".equals(fieldName)) { + deserializedVirtualMachineScaleSetNetworkProfile.interconnectGroupProfile + = InterconnectGroupProfile.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateNetworkProfile.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateNetworkProfile.java index d4fb588dd169..c27068445e36 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateNetworkProfile.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateNetworkProfile.java @@ -37,6 +37,11 @@ public final class VirtualMachineScaleSetUpdateNetworkProfile */ private NetworkApiVersion networkApiVersion; + /* + * Specifies the interconnect group profile to associate with the scale set. Minimum api-version: 2026-03-01. + */ + private InterconnectGroupProfile interconnectGroupProfile; + /** * Creates an instance of VirtualMachineScaleSetUpdateNetworkProfile class. */ @@ -112,6 +117,29 @@ public VirtualMachineScaleSetUpdateNetworkProfile withNetworkApiVersion(NetworkA return this; } + /** + * Get the interconnectGroupProfile property: Specifies the interconnect group profile to associate with the scale + * set. Minimum api-version: 2026-03-01. + * + * @return the interconnectGroupProfile value. + */ + public InterconnectGroupProfile interconnectGroupProfile() { + return this.interconnectGroupProfile; + } + + /** + * Set the interconnectGroupProfile property: Specifies the interconnect group profile to associate with the scale + * set. Minimum api-version: 2026-03-01. + * + * @param interconnectGroupProfile the interconnectGroupProfile value to set. + * @return the VirtualMachineScaleSetUpdateNetworkProfile object itself. + */ + public VirtualMachineScaleSetUpdateNetworkProfile + withInterconnectGroupProfile(InterconnectGroupProfile interconnectGroupProfile) { + this.interconnectGroupProfile = interconnectGroupProfile; + return this; + } + /** * Validates the instance. * @@ -124,6 +152,9 @@ public void validate() { if (networkInterfaceConfigurations() != null) { networkInterfaceConfigurations().forEach(e -> e.validate()); } + if (interconnectGroupProfile() != null) { + interconnectGroupProfile().validate(); + } } /** @@ -137,6 +168,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("networkApiVersion", this.networkApiVersion == null ? null : this.networkApiVersion.toString()); + jsonWriter.writeJsonField("interconnectGroupProfile", this.interconnectGroupProfile); return jsonWriter.writeEndObject(); } @@ -167,6 +199,9 @@ public static VirtualMachineScaleSetUpdateNetworkProfile fromJson(JsonReader jso } else if ("networkApiVersion".equals(fieldName)) { deserializedVirtualMachineScaleSetUpdateNetworkProfile.networkApiVersion = NetworkApiVersion.fromString(reader.getString()); + } else if ("interconnectGroupProfile".equals(fieldName)) { + deserializedVirtualMachineScaleSetUpdateNetworkProfile.interconnectGroupProfile + = InterconnectGroupProfile.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateVMProfile.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateVMProfile.java index a56cdd4b225a..e2d1d59b49c9 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateVMProfile.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateVMProfile.java @@ -78,6 +78,11 @@ public final class VirtualMachineScaleSetUpdateVMProfile */ private VirtualMachineScaleSetHardwareProfile hardwareProfile; + /* + * Specifies the Interconnect Block related details of a scale set. Minimum api-version: 2026-03-01. + */ + private InterconnectBlockProfile interconnectBlockProfile; + /** * Creates an instance of VirtualMachineScaleSetUpdateVMProfile class. */ @@ -336,6 +341,29 @@ public VirtualMachineScaleSetHardwareProfile hardwareProfile() { return this; } + /** + * Get the interconnectBlockProfile property: Specifies the Interconnect Block related details of a scale set. + * Minimum api-version: 2026-03-01. + * + * @return the interconnectBlockProfile value. + */ + public InterconnectBlockProfile interconnectBlockProfile() { + return this.interconnectBlockProfile; + } + + /** + * Set the interconnectBlockProfile property: Specifies the Interconnect Block related details of a scale set. + * Minimum api-version: 2026-03-01. + * + * @param interconnectBlockProfile the interconnectBlockProfile value to set. + * @return the VirtualMachineScaleSetUpdateVMProfile object itself. + */ + public VirtualMachineScaleSetUpdateVMProfile + withInterconnectBlockProfile(InterconnectBlockProfile interconnectBlockProfile) { + this.interconnectBlockProfile = interconnectBlockProfile; + return this; + } + /** * Validates the instance. * @@ -372,6 +400,9 @@ public void validate() { if (hardwareProfile() != null) { hardwareProfile().validate(); } + if (interconnectBlockProfile() != null) { + interconnectBlockProfile().validate(); + } } /** @@ -392,6 +423,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("scheduledEventsProfile", this.scheduledEventsProfile); jsonWriter.writeStringField("userData", this.userData); jsonWriter.writeJsonField("hardwareProfile", this.hardwareProfile); + jsonWriter.writeJsonField("interconnectBlockProfile", this.interconnectBlockProfile); return jsonWriter.writeEndObject(); } @@ -444,6 +476,9 @@ public static VirtualMachineScaleSetUpdateVMProfile fromJson(JsonReader jsonRead } else if ("hardwareProfile".equals(fieldName)) { deserializedVirtualMachineScaleSetUpdateVMProfile.hardwareProfile = VirtualMachineScaleSetHardwareProfile.fromJson(reader); + } else if ("interconnectBlockProfile".equals(fieldName)) { + deserializedVirtualMachineScaleSetUpdateVMProfile.interconnectBlockProfile + = InterconnectBlockProfile.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMNetworkProfileConfiguration.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMNetworkProfileConfiguration.java index 56624bcccf84..5757413b8a07 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMNetworkProfileConfiguration.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMNetworkProfileConfiguration.java @@ -23,6 +23,12 @@ public final class VirtualMachineScaleSetVMNetworkProfileConfiguration */ private List networkInterfaceConfigurations; + /* + * Specifies the interconnect group profile to associate with the scale set vm instance. Minimum api-version: + * 2026-03-01. + */ + private InterconnectGroupProfile interconnectGroupProfile; + /** * Creates an instance of VirtualMachineScaleSetVMNetworkProfileConfiguration class. */ @@ -50,6 +56,29 @@ public VirtualMachineScaleSetVMNetworkProfileConfiguration withNetworkInterfaceC return this; } + /** + * Get the interconnectGroupProfile property: Specifies the interconnect group profile to associate with the scale + * set vm instance. Minimum api-version: 2026-03-01. + * + * @return the interconnectGroupProfile value. + */ + public InterconnectGroupProfile interconnectGroupProfile() { + return this.interconnectGroupProfile; + } + + /** + * Set the interconnectGroupProfile property: Specifies the interconnect group profile to associate with the scale + * set vm instance. Minimum api-version: 2026-03-01. + * + * @param interconnectGroupProfile the interconnectGroupProfile value to set. + * @return the VirtualMachineScaleSetVMNetworkProfileConfiguration object itself. + */ + public VirtualMachineScaleSetVMNetworkProfileConfiguration + withInterconnectGroupProfile(InterconnectGroupProfile interconnectGroupProfile) { + this.interconnectGroupProfile = interconnectGroupProfile; + return this; + } + /** * Validates the instance. * @@ -59,6 +88,9 @@ public void validate() { if (networkInterfaceConfigurations() != null) { networkInterfaceConfigurations().forEach(e -> e.validate()); } + if (interconnectGroupProfile() != null) { + interconnectGroupProfile().validate(); + } } /** @@ -69,6 +101,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("networkInterfaceConfigurations", this.networkInterfaceConfigurations, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("interconnectGroupProfile", this.interconnectGroupProfile); return jsonWriter.writeEndObject(); } @@ -94,6 +127,9 @@ public static VirtualMachineScaleSetVMNetworkProfileConfiguration fromJson(JsonR = reader.readArray(reader1 -> VirtualMachineScaleSetNetworkConfiguration.fromJson(reader1)); deserializedVirtualMachineScaleSetVMNetworkProfileConfiguration.networkInterfaceConfigurations = networkInterfaceConfigurations; + } else if ("interconnectGroupProfile".equals(fieldName)) { + deserializedVirtualMachineScaleSetVMNetworkProfileConfiguration.interconnectGroupProfile + = InterconnectGroupProfile.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMProfile.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMProfile.java index 53f06bd0f6eb..1e1b8209ae74 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMProfile.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMProfile.java @@ -93,6 +93,11 @@ public final class VirtualMachineScaleSetVMProfile implements JsonSerializable Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksDeleteSamples.java new file mode 100644 index 000000000000..9c2eb85e7172 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.generated; + +/** + * Samples for InterconnectBlocks Delete. + */ +public final class InterconnectBlocksDeleteSamples { + /* + * x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_Delete.json + */ + /** + * Sample code: Delete an Interconnect Block. + * + * @param manager Entry point to ComputeManager. + */ + public static void deleteAnInterconnectBlock(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getInterconnectBlocks() + .delete("myResourceGroup", "myInterconnectBlock", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksGetByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksGetByResourceGroupSamples.java new file mode 100644 index 000000000000..1b5d24014544 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksGetByResourceGroupSamples.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.generated; + +import com.azure.resourcemanager.compute.models.InterconnectBlockExpandTypes; + +/** + * Samples for InterconnectBlocks GetByResourceGroup. + */ +public final class InterconnectBlocksGetByResourceGroupSamples { + /* + * x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_Get.json + */ + /** + * Sample code: Get an Interconnect Block. + * + * @param manager Entry point to ComputeManager. + */ + public static void getAnInterconnectBlock(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getInterconnectBlocks() + .getByResourceGroupWithResponse("myResourceGroup", "myInterconnectBlock", null, + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_Get_InstanceView.json + */ + /** + * Sample code: Get an Interconnect Block with instance view. + * + * @param manager Entry point to ComputeManager. + */ + public static void + getAnInterconnectBlockWithInstanceView(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getInterconnectBlocks() + .getByResourceGroupWithResponse("myResourceGroup", "myInterconnectBlock", + InterconnectBlockExpandTypes.INSTANCE_VIEW, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksListByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksListByResourceGroupSamples.java new file mode 100644 index 000000000000..9ce8523ef005 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.generated; + +/** + * Samples for InterconnectBlocks ListByResourceGroup. + */ +public final class InterconnectBlocksListByResourceGroupSamples { + /* + * x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_ListByResourceGroup.json + */ + /** + * Sample code: List Interconnect Blocks in a resource group. + * + * @param manager Entry point to ComputeManager. + */ + public static void + listInterconnectBlocksInAResourceGroup(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getInterconnectBlocks() + .listByResourceGroup("myResourceGroup", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksListSamples.java new file mode 100644 index 000000000000..80501033bb6c --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.generated; + +/** + * Samples for InterconnectBlocks List. + */ +public final class InterconnectBlocksListSamples { + /* + * x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_ListBySubscription.json + */ + /** + * Sample code: List Interconnect Blocks in a subscription. + * + * @param manager Entry point to ComputeManager. + */ + public static void listInterconnectBlocksInASubscription(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient().getInterconnectBlocks().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksUpdateSamples.java new file mode 100644 index 000000000000..572456b60e8d --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksUpdateSamples.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.compute.generated; + +import com.azure.resourcemanager.compute.models.InterconnectBlockUpdate; +import com.azure.resourcemanager.compute.models.Sku; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for InterconnectBlocks Update. + */ +public final class InterconnectBlocksUpdateSamples { + /* + * x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_Update.json + */ + /** + * Sample code: Update an Interconnect Block. + * + * @param manager Entry point to ComputeManager. + */ + public static void updateAnInterconnectBlock(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getInterconnectBlocks() + .update("myResourceGroup", "myInterconnectBlock", + new InterconnectBlockUpdate().withTags(mapOf("department", "Engineering")) + .withSku(new Sku().withName("Standard_ND128isr_GB300_v6").withCapacity(36L)), + com.azure.core.util.Context.NONE); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/LogAnalyticsExportRequestRateByIntervalSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/LogAnalyticsExportRequestRateByIntervalSamples.java index b640d1c621ed..5773bfd57afa 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/LogAnalyticsExportRequestRateByIntervalSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/LogAnalyticsExportRequestRateByIntervalSamples.java @@ -13,7 +13,7 @@ */ public final class LogAnalyticsExportRequestRateByIntervalSamples { /* - * x-ms-original-file: 2025-11-01/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json + * x-ms-original-file: 2026-03-01/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json */ /** * Sample code: Export logs which contain all Api requests made to Compute Resource Provider within the given time diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/LogAnalyticsExportThrottledRequestsSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/LogAnalyticsExportThrottledRequestsSamples.java index eaf16a3cef30..2b5068ed225f 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/LogAnalyticsExportThrottledRequestsSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/LogAnalyticsExportThrottledRequestsSamples.java @@ -12,7 +12,7 @@ */ public final class LogAnalyticsExportThrottledRequestsSamples { /* - * x-ms-original-file: 2025-11-01/logAnalyticExamples/LogAnalytics_ThrottledRequests.json + * x-ms-original-file: 2026-03-01/logAnalyticExamples/LogAnalytics_ThrottledRequests.json */ /** * Sample code: Export logs which contain all throttled Api requests made to Compute Resource Provider within the diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/OperationsListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/OperationsListSamples.java index f81402013b34..5284152f4757 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/OperationsListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2025-11-01/computeRPCommonExamples/Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/computeRPCommonExamples/Operations_List_MinimumSet_Gen.json */ /** * Sample code: Operations_List_MinimumSet_Gen. @@ -21,7 +21,7 @@ public static void operationsListMinimumSetGen(com.azure.resourcemanager.compute } /* - * x-ms-original-file: 2025-11-01/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json */ /** * Sample code: Operations_List_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsCreateOrUpdateSamples.java index 242cdc5efa33..c2e3b7fe0bee 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class ProximityPlacementGroupsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-11-01/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json + * x-ms-original-file: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json */ /** * Sample code: Create or Update a proximity placement group. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsDeleteSamples.java index 880337ceb2d6..cb89510e3cfc 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ProximityPlacementGroupsDeleteSamples { /* - * x-ms-original-file: 2025-11-01/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json + * x-ms-original-file: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json */ /** * Sample code: Delete a proximity placement group. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsGetByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsGetByResourceGroupSamples.java index e94129adef9c..001884278072 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsGetByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ProximityPlacementGroupsGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-11-01/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json + * x-ms-original-file: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json */ /** * Sample code: Get proximity placement groups. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsListByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsListByResourceGroupSamples.java index c127b97bc68a..7b43da6f51ce 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsListByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ProximityPlacementGroupsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-11-01/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json + * x-ms-original-file: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json */ /** * Sample code: List proximity placement group. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsListSamples.java index 3a7df9fc5324..e625cc59dd24 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsListSamples.java @@ -9,7 +9,7 @@ */ public final class ProximityPlacementGroupsListSamples { /* - * x-ms-original-file: 2025-11-01/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json + * x-ms-original-file: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json */ /** * Sample code: List proximity placement groups. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsUpdateSamples.java index 217f106df422..6cbd3663d238 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ProximityPlacementGroupsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class ProximityPlacementGroupsUpdateSamples { /* - * x-ms-original-file: 2025-11-01/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json + * x-ms-original-file: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json */ /** * Sample code: Update a proximity placement group. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsCreateOrUpdateSamples.java index d466d49d63cf..bae5eba22169 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class RestorePointCollectionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json */ /** * Sample code: Create or update a restore point collection for cross region copy. @@ -34,7 +34,7 @@ public static void createOrUpdateARestorePointCollectionForCrossRegionCopy( } /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePointCollection_CreateOrUpdate.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_CreateOrUpdate.json */ /** * Sample code: Create or update a restore point collection. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsDeleteSamples.java index 4ba2d3c6b446..cae1eed28830 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RestorePointCollectionsDeleteSamples { /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePointCollection_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_Delete_MinimumSet_Gen.json */ /** * Sample code: RestorePointCollection_Delete_MinimumSet_Gen. @@ -24,7 +24,7 @@ public final class RestorePointCollectionsDeleteSamples { } /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePointCollection_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_Delete_MaximumSet_Gen.json */ /** * Sample code: RestorePointCollection_Delete_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsGetByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsGetByResourceGroupSamples.java index aba6d0e26d3e..f73fb0bd04e0 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsGetByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class RestorePointCollectionsGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePointCollection_Get_WithContainedRestorePoints.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_Get_WithContainedRestorePoints.json */ /** * Sample code: Get a restore point collection, including the restore points contained in the restore point @@ -25,7 +25,7 @@ public static void getARestorePointCollectionIncludingTheRestorePointsContainedI } /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePointCollection_Get.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_Get.json */ /** * Sample code: Get a restore point collection (but not the restore points contained in the restore point diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsListByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsListByResourceGroupSamples.java index 0d4d2e462690..ae1cda97dd80 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsListByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class RestorePointCollectionsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePointCollection_ListByResourceGroup.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_ListByResourceGroup.json */ /** * Sample code: Gets the list of restore point collections in a resource group. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsListSamples.java index 000eea18ac9c..5fc9eecf19f4 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsListSamples.java @@ -9,7 +9,7 @@ */ public final class RestorePointCollectionsListSamples { /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePointCollection_ListBySubscription.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_ListBySubscription.json */ /** * Sample code: Gets the list of restore point collections in a subscription. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsUpdateSamples.java index e600b41edbba..57ef125b76c9 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointCollectionsUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class RestorePointCollectionsUpdateSamples { /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePointCollection_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_Update_MaximumSet_Gen.json */ /** * Sample code: RestorePointCollection_Update_MaximumSet_Gen. @@ -33,7 +33,7 @@ public final class RestorePointCollectionsUpdateSamples { } /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePointCollection_Update_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePointCollection_Update_MinimumSet_Gen.json */ /** * Sample code: RestorePointCollection_Update_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointsCreateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointsCreateSamples.java index 8b8183631fd3..c97fefe4d7f7 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointsCreateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointsCreateSamples.java @@ -13,7 +13,7 @@ */ public final class RestorePointsCreateSamples { /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePoint_Copy_BetweenRegions.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePoint_Copy_BetweenRegions.json */ /** * Sample code: Copy a restore point to a different region. @@ -30,7 +30,7 @@ public static void copyARestorePointToADifferentRegion(com.azure.resourcemanager } /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePoint_Create.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePoint_Create.json */ /** * Sample code: Create a restore point. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointsDeleteSamples.java index e5966ff018b9..69419f1373ca 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointsDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RestorePointsDeleteSamples { /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePoint_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePoint_Delete_MinimumSet_Gen.json */ /** * Sample code: RestorePoint_Delete_MinimumSet_Gen. @@ -23,7 +23,7 @@ public static void restorePointDeleteMinimumSetGen(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json */ /** * Sample code: RestorePoint_Delete_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointsGetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointsGetSamples.java index 03b372f312bf..bf561fe442a1 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointsGetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/RestorePointsGetSamples.java @@ -9,7 +9,7 @@ */ public final class RestorePointsGetSamples { /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePoint_Get.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePoint_Get.json */ /** * Sample code: Get a restore point. @@ -23,7 +23,7 @@ public static void getARestorePoint(com.azure.resourcemanager.compute.ComputeMan } /* - * x-ms-original-file: 2025-11-01/restorePointExamples/RestorePoint_Get_WithInstanceView.json + * x-ms-original-file: 2026-03-01/restorePointExamples/RestorePoint_Get_WithInstanceView.json */ /** * Sample code: Get restore point with instance view. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysCreateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysCreateSamples.java index afc89faf70f4..a28ff559c5e7 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysCreateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysCreateSamples.java @@ -11,7 +11,7 @@ */ public final class SshPublicKeysCreateSamples { /* - * x-ms-original-file: 2025-11-01/sshPublicKeyExamples/SshPublicKey_Create.json + * x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Create.json */ /** * Sample code: Create a new SSH public key resource. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysDeleteSamples.java index bb06b37fefdf..66da1bc04062 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SshPublicKeysDeleteSamples { /* - * x-ms-original-file: 2025-11-01/sshPublicKeyExamples/SshPublicKey_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Delete_MinimumSet_Gen.json */ /** * Sample code: SshPublicKey_Delete_MinimumSet_Gen. @@ -23,7 +23,7 @@ public static void sshPublicKeyDeleteMinimumSetGen(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2025-11-01/sshPublicKeyExamples/SshPublicKey_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Delete_MaximumSet_Gen.json */ /** * Sample code: SshPublicKey_Delete_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysGenerateKeyPairSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysGenerateKeyPairSamples.java index 0249bee3225f..36ae210c496a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysGenerateKeyPairSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysGenerateKeyPairSamples.java @@ -12,7 +12,7 @@ */ public final class SshPublicKeysGenerateKeyPairSamples { /* - * x-ms-original-file: 2025-11-01/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair.json + * x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair.json */ /** * Sample code: Generate an SSH key pair. @@ -27,7 +27,7 @@ public static void generateAnSSHKeyPair(com.azure.resourcemanager.compute.Comput } /* - * x-ms-original-file: 2025-11-01/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithRSA.json + * x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithRSA.json */ /** * Sample code: Generate an SSH key pair with RSA encryption. @@ -43,7 +43,7 @@ public static void generateAnSSHKeyPairWithRSAEncryption(com.azure.resourcemanag } /* - * x-ms-original-file: 2025-11-01/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithEd25519.json + * x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithEd25519.json */ /** * Sample code: Generate an SSH key pair with Ed25519 encryption. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysGetByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysGetByResourceGroupSamples.java index 2251d6e83f55..57488ee28c78 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysGetByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class SshPublicKeysGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-11-01/sshPublicKeyExamples/SshPublicKey_Get.json + * x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Get.json */ /** * Sample code: Get an ssh public key. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysListByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysListByResourceGroupSamples.java index 1e9a4296443f..efaa0e7ea711 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysListByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class SshPublicKeysListByResourceGroupSamples { /* - * x-ms-original-file: 2025-11-01/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MinimumSet_Gen.json */ /** * Sample code: SshPublicKey_ListByResourceGroup_MinimumSet_Gen. @@ -22,7 +22,7 @@ public final class SshPublicKeysListByResourceGroupSamples { } /* - * x-ms-original-file: 2025-11-01/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MaximumSet_Gen.json */ /** * Sample code: SshPublicKey_ListByResourceGroup_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysListSamples.java index 2e09d56dc6e7..37cdabf8e030 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysListSamples.java @@ -9,7 +9,7 @@ */ public final class SshPublicKeysListSamples { /* - * x-ms-original-file: 2025-11-01/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MinimumSet_Gen.json */ /** * Sample code: SshPublicKey_ListBySubscription_MinimumSet_Gen. @@ -22,7 +22,7 @@ public final class SshPublicKeysListSamples { } /* - * x-ms-original-file: 2025-11-01/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: SshPublicKey_ListBySubscription_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysUpdateSamples.java index 822f49f965b6..b0da75bb7f91 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/SshPublicKeysUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class SshPublicKeysUpdateSamples { /* - * x-ms-original-file: 2025-11-01/sshPublicKeyExamples/SshPublicKey_Update_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Update_MinimumSet_Gen.json */ /** * Sample code: SshPublicKey_Update_MinimumSet_Gen. @@ -28,7 +28,7 @@ public static void sshPublicKeyUpdateMinimumSetGen(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2025-11-01/sshPublicKeyExamples/SshPublicKey_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Update_MaximumSet_Gen.json */ /** * Sample code: SshPublicKey_Update_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/UsageListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/UsageListSamples.java index 9fee9f15ea73..f6fba57eb03c 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/UsageListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/UsageListSamples.java @@ -9,7 +9,7 @@ */ public final class UsageListSamples { /* - * x-ms-original-file: 2025-11-01/computeRPCommonExamples/Usage_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/computeRPCommonExamples/Usage_List_MinimumSet_Gen.json */ /** * Sample code: Usage_List_MinimumSet_Gen. @@ -21,7 +21,7 @@ public static void usageListMinimumSetGen(com.azure.resourcemanager.compute.Comp } /* - * x-ms-original-file: 2025-11-01/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json */ /** * Sample code: Usage_List_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionImagesGetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionImagesGetSamples.java index 6b395a30ce3a..9e28efeffe20 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionImagesGetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionImagesGetSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineExtensionImagesGetSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MinimumSet_Gen.json + * 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineExtensionImage_Get_MinimumSet_Gen. @@ -27,7 +27,7 @@ public final class VirtualMachineExtensionImagesGetSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MaximumSet_Gen.json + * 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineExtensionImage_Get_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionImagesListTypesSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionImagesListTypesSamples.java index 67f9520892ac..e8294b49a29c 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionImagesListTypesSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionImagesListTypesSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineExtensionImagesListTypesSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MinimumSet_Gen.json + * 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineExtensionImage_ListTypes_MinimumSet_Gen. @@ -26,7 +26,7 @@ public final class VirtualMachineExtensionImagesListTypesSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MaximumSet_Gen.json + * 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineExtensionImage_ListTypes_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionImagesListVersionsSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionImagesListVersionsSamples.java index 63bf3c6af017..b561e11dc041 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionImagesListVersionsSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionImagesListVersionsSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineExtensionImagesListVersionsSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MinimumSet_Gen.json + * 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineExtensionImage_ListVersions_MinimumSet_Gen. @@ -27,7 +27,7 @@ public static void virtualMachineExtensionImageListVersionsMinimumSetGen( /* * x-ms-original-file: - * 2025-11-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen.json + * 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsCreateOrUpdateSamples.java index 69defbb131dc..ef0c5834c767 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsCreateOrUpdateSamples.java @@ -21,7 +21,7 @@ */ public final class VirtualMachineExtensionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineExtension_CreateOrUpdate_MaximumSet_Gen. @@ -63,7 +63,7 @@ public static void virtualMachineExtensionCreateOrUpdateMaximumSetGen( } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineExtension_CreateOrUpdate_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsDeleteSamples.java index 509d6ab88484..f576da1f28db 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineExtensionsDeleteSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachineExtension_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_Delete_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineExtension_Delete_MaximumSet_Gen. @@ -24,7 +24,7 @@ public final class VirtualMachineExtensionsDeleteSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachineExtension_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_Delete_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineExtension_Delete_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsGetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsGetSamples.java index da69cccf3f90..bbfdf149eede 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsGetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineExtensionsGetSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachineExtension_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_Get_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineExtension_Get_MaximumSet_Gen. @@ -25,7 +25,7 @@ public final class VirtualMachineExtensionsGetSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachineExtension_Get_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_Get_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineExtension_Get_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsListSamples.java index 762bb55fce1a..d6855434dca9 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsListSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineExtensionsListSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachineExtension_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_List_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineExtension_List_MinimumSet_Gen. @@ -24,7 +24,7 @@ public final class VirtualMachineExtensionsListSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachineExtension_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_List_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineExtension_List_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsUpdateSamples.java index 193e1775acf6..e1f2536d0ab9 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineExtensionsUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class VirtualMachineExtensionsUpdateSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachineExtension_Update.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_Update.json */ /** * Sample code: Update VM extension. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneGetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneGetSamples.java index 5298525314eb..fdafd5092905 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneGetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneGetSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineImagesEdgeZoneGetSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen. @@ -26,7 +26,7 @@ public final class VirtualMachineImagesEdgeZoneGetSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineImagesEdgeZone_Get_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListOffersSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListOffersSamples.java index ea8a4ed0ebb3..99e398716111 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListOffersSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListOffersSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineImagesEdgeZoneListOffersSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json + * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen. @@ -27,7 +27,7 @@ public final class VirtualMachineImagesEdgeZoneListOffersSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MinimumSet_Gen.json + * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineImagesEdgeZone_ListOffers_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListPublishersSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListPublishersSamples.java index 3743d0600c3b..7e4a12fff824 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListPublishersSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListPublishersSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineImagesEdgeZoneListPublishersSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MinimumSet_Gen.json + * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineImagesEdgeZone_ListPublishers_MinimumSet_Gen. @@ -26,7 +26,7 @@ public static void virtualMachineImagesEdgeZoneListPublishersMinimumSetGen( /* * x-ms-original-file: - * 2025-11-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json + * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListSamples.java index 6b638d6e6bd6..7470ddaac2f1 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineImagesEdgeZoneListSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineImagesEdgeZone_List_MaximumSet_Gen. @@ -26,7 +26,7 @@ public final class VirtualMachineImagesEdgeZoneListSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineImagesEdgeZone_List_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListSkusSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListSkusSamples.java index 32a253f4e359..ccb02b62ae31 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListSkusSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesEdgeZoneListSkusSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineImagesEdgeZoneListSkusSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json + * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen. @@ -27,7 +27,7 @@ public final class VirtualMachineImagesEdgeZoneListSkusSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MinimumSet_Gen.json + * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineImagesEdgeZone_ListSkus_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesGetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesGetSamples.java index d1ba8f8f8e50..18c53a03494d 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesGetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesGetSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineImagesGetSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineImage_Get_MinimumSet_Gen. @@ -24,7 +24,7 @@ public static void virtualMachineImageGetMinimumSetGen(com.azure.resourcemanager } /* - * x-ms-original-file: 2025-11-01/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineImage_Get_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListByEdgeZoneSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListByEdgeZoneSamples.java index 73c9b3626be0..0011df9c6a4b 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListByEdgeZoneSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListByEdgeZoneSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineImagesListByEdgeZoneSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json + * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen. @@ -26,7 +26,7 @@ public static void virtualMachineImagesEdgeZoneListByEdgeZoneMaximumSetGen( /* * x-ms-original-file: - * 2025-11-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MinimumSet_Gen.json + * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineImagesEdgeZone_ListByEdgeZone_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListOffersSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListOffersSamples.java index 7ce941f95363..0b3ff2eb398f 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListOffersSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListOffersSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineImagesListOffersSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineImage_ListOffers_MinimumSet_Gen. @@ -25,7 +25,7 @@ public final class VirtualMachineImagesListOffersSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineImage_ListOffers_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListPublishersSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListPublishersSamples.java index 99606611739b..8e231e513614 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListPublishersSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListPublishersSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineImagesListPublishersSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineImage_ListPublishers_MinimumSet_Gen. @@ -24,7 +24,7 @@ public final class VirtualMachineImagesListPublishersSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineImage_ListPublishers_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListSamples.java index 7838ad416241..bba21e4f4dc4 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineImagesListSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineImageExamples/VirtualMachineImage_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_List_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineImage_List_MinimumSet_Gen. @@ -24,7 +24,7 @@ public static void virtualMachineImageListMinimumSetGen(com.azure.resourcemanage } /* - * x-ms-original-file: 2025-11-01/virtualMachineImageExamples/VirtualMachineImage_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_List_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineImage_List_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListSkusSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListSkusSamples.java index c5d365598659..ed90171ea547 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListSkusSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListSkusSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineImagesListSkusSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineImage_ListSkus_MaximumSet_Gen. @@ -24,7 +24,7 @@ public final class VirtualMachineImagesListSkusSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineImage_ListSkus_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListWithPropertiesSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListWithPropertiesSamples.java index a96dd02d3784..7b34cc06c098 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListWithPropertiesSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineImagesListWithPropertiesSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineImagesListWithPropertiesSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineImageExamples/VirtualMachineImages_ListWithProperties_MinimumSet_Gen.json + * 2026-03-01/virtualMachineImageExamples/VirtualMachineImages_ListWithProperties_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineImages_ListWithProperties_MinimumSet. @@ -27,7 +27,7 @@ public final class VirtualMachineImagesListWithPropertiesSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineImageExamples/VirtualMachineImages_ListWithProperties_MaximumSet_Gen.json + * 2026-03-01/virtualMachineImageExamples/VirtualMachineImages_ListWithProperties_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineImages_ListWithProperties_MaximumSet. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsCreateOrUpdateSamples.java index f591b2c87592..81f1267de9b9 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class VirtualMachineRunCommandsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-11-01/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json + * x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json */ /** * Sample code: Create or update a run command. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsDeleteSamples.java index 8bcf162ecf70..b03b37d22761 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineRunCommandsDeleteSamples { /* - * x-ms-original-file: 2025-11-01/runCommandExamples/VirtualMachineRunCommand_Delete.json + * x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineRunCommand_Delete.json */ /** * Sample code: Delete a run command. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsGetByVirtualMachineSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsGetByVirtualMachineSamples.java index cf279bd1bce9..684a97f2987a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsGetByVirtualMachineSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsGetByVirtualMachineSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineRunCommandsGetByVirtualMachineSamples { /* - * x-ms-original-file: 2025-11-01/runCommandExamples/VirtualMachineRunCommand_Get.json + * x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineRunCommand_Get.json */ /** * Sample code: Get a run command. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsGetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsGetSamples.java index 5ce84a85827f..0306f49a527a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsGetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsGetSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineRunCommandsGetSamples { /* - * x-ms-original-file: 2025-11-01/runCommandExamples/RunCommand_Get.json + * x-ms-original-file: 2026-03-01/runCommandExamples/RunCommand_Get.json */ /** * Sample code: VirtualMachineRunCommandGet. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsListByVirtualMachineSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsListByVirtualMachineSamples.java index cd6126a53947..c4f2ff2e0a29 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsListByVirtualMachineSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsListByVirtualMachineSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineRunCommandsListByVirtualMachineSamples { /* - * x-ms-original-file: 2025-11-01/runCommandExamples/VirtualMachineRunCommand_List.json + * x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineRunCommand_List.json */ /** * Sample code: List run commands in a Virtual Machine. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsListSamples.java index 775f97314d9a..cd9e2a7a1d01 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsListSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineRunCommandsListSamples { /* - * x-ms-original-file: 2025-11-01/runCommandExamples/RunCommand_List.json + * x-ms-original-file: 2026-03-01/runCommandExamples/RunCommand_List.json */ /** * Sample code: VirtualMachineRunCommandList. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsUpdateSamples.java index d1101d5a44e2..1a8cae4c2b1a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineRunCommandsUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class VirtualMachineRunCommandsUpdateSamples { /* - * x-ms-original-file: 2025-11-01/runCommandExamples/VirtualMachineRunCommand_Update.json + * x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineRunCommand_Update.json */ /** * Sample code: Update a run command. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsCreateOrUpdateSamples.java index c6aa33d640aa..e26e6f8d12d7 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsCreateOrUpdateSamples.java @@ -16,7 +16,7 @@ public final class VirtualMachineScaleSetExtensionsCreateOrUpdateSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen. @@ -46,7 +46,7 @@ public static void virtualMachineScaleSetExtensionCreateOrUpdateMaximumSetGen( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetExtension_CreateOrUpdate_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsDeleteSamples.java index 898540453caa..a13259a81a02 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsDeleteSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetExtensionsDeleteSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetExtension_Delete_MinimumSet_Gen. @@ -26,7 +26,7 @@ public final class VirtualMachineScaleSetExtensionsDeleteSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetExtension_Delete_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsGetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsGetSamples.java index 37a61b5c7122..45b81435df0d 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsGetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsGetSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetExtensionsGetSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetExtension_Get_MaximumSet_Gen. @@ -27,7 +27,7 @@ public final class VirtualMachineScaleSetExtensionsGetSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetExtension_Get_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsListSamples.java index 0c3a45c27be9..8f5fe5deab70 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsListSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetExtensionsListSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetExtension_List_MinimumSet_Gen. @@ -26,7 +26,7 @@ public final class VirtualMachineScaleSetExtensionsListSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetExtension_List_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsUpdateSamples.java index 9e939270facd..885c659f4e85 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetExtensionsUpdateSamples.java @@ -16,7 +16,7 @@ public final class VirtualMachineScaleSetExtensionsUpdateSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetExtension_Update_MinimumSet_Gen. @@ -33,7 +33,7 @@ public final class VirtualMachineScaleSetExtensionsUpdateSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetExtension_Update_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetLifeCycleHookEventsGetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetLifeCycleHookEventsGetSamples.java index 60b857b705f3..433286f6aec6 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetLifeCycleHookEventsGetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetLifeCycleHookEventsGetSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetLifeCycleHookEventsGetSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetLifeCycleHookEvent_Get.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetLifeCycleHookEvent_Get.json */ /** * Sample code: Get a virtual machine scale set lifecycle hook event. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetLifeCycleHookEventsListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetLifeCycleHookEventsListSamples.java index 992baeab1809..6bf267944578 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetLifeCycleHookEventsListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetLifeCycleHookEventsListSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetLifeCycleHookEventsListSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetLifeCycleHookEvent_List.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetLifeCycleHookEvent_List.json */ /** * Sample code: Gets a list of all lifecycle hook events in a virtual machine scale set. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetLifeCycleHookEventsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetLifeCycleHookEventsUpdateSamples.java index 7e1b3e04d8ef..3e2486f7407b 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetLifeCycleHookEventsUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetLifeCycleHookEventsUpdateSamples.java @@ -16,7 +16,7 @@ public final class VirtualMachineScaleSetLifeCycleHookEventsUpdateSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetLifeCycleHookEvent_Update.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetLifeCycleHookEvent_Update.json */ /** * Sample code: The operation to update the virtual machine scale set lifecycle hook event. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesCancelSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesCancelSamples.java index 5cabba5384f0..36ecd5f13447 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesCancelSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesCancelSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetRollingUpgradesCancelSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetRollingUpgrade_Cancel_MinimumSet_Gen. @@ -26,7 +26,7 @@ public static void virtualMachineScaleSetRollingUpgradeCancelMinimumSetGen( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetRollingUpgrade_Cancel_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesGetLatestSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesGetLatestSamples.java index 4cbf1c80cd1d..b42392c674c9 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesGetLatestSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesGetLatestSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetRollingUpgradesGetLatestSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen. @@ -26,7 +26,7 @@ public static void virtualMachineScaleSetRollingUpgradeGetLatestMaximumSetGen( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetRollingUpgrade_GetLatest_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSamples.java index bf1c3c3a095d..3b0da2ecf871 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json */ /** * Sample code: Start an extension rolling upgrade. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesStartOSUpgradeSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesStartOSUpgradeSamples.java index e5c40d99d94e..02d83b0981bf 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesStartOSUpgradeSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetRollingUpgradesStartOSUpgradeSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetRollingUpgradesStartOSUpgradeSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MaximumSet_Gen. @@ -26,7 +26,7 @@ public static void virtualMachineScaleSetRollingUpgradeStartOSUpgradeMaximumSetG /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsCreateOrUpdateSamples.java index 7c8a1a95e440..33daeeff3d5d 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class VirtualMachineScaleSetVMExtensionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Create.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Create.json */ /** * Sample code: Create VirtualMachineScaleSet VM extension. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsDeleteSamples.java index 75abfd662147..24e2bd51e6bb 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetVMExtensionsDeleteSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Delete.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Delete.json */ /** * Sample code: Delete VirtualMachineScaleSet VM extension. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsGetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsGetSamples.java index 280195af68a3..1bfb21cf6e06 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsGetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetVMExtensionsGetSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Get.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Get.json */ /** * Sample code: Get VirtualMachineScaleSet VM extension. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsListSamples.java index cd43bd5408fb..3f579617b84a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsListSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetVMExtensionsListSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_List.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_List.json */ /** * Sample code: List extensions in Vmss instance. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsUpdateSamples.java index df4873264b30..20ab332e2768 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMExtensionsUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class VirtualMachineScaleSetVMExtensionsUpdateSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Update.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Update.json */ /** * Sample code: Update VirtualMachineScaleSet VM extension. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsCreateOrUpdateSamples.java index a30d56c881c6..7ebf21e0e4e1 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class VirtualMachineScaleSetVMRunCommandsCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-11-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json + * x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json */ /** * Sample code: Create VirtualMachineScaleSet VM run command. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsDeleteSamples.java index a9d51a8a8250..0a6931827bc1 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetVMRunCommandsDeleteSamples { /* - * x-ms-original-file: 2025-11-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json + * x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json */ /** * Sample code: Delete VirtualMachineScaleSet VM run command. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsGetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsGetSamples.java index 24c33babbf5d..b5acab0e9a42 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsGetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsGetSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetVMRunCommandsGetSamples { /* - * x-ms-original-file: 2025-11-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json + * x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json */ /** * Sample code: Get VirtualMachineScaleSet VM run commands. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsListSamples.java index a3c04831507a..278d2d8cd0c2 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsListSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetVMRunCommandsListSamples { /* - * x-ms-original-file: 2025-11-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json + * x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json */ /** * Sample code: List run commands in Vmss instance. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsUpdateSamples.java index 9b30c21ae128..589f896556ce 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMRunCommandsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class VirtualMachineScaleSetVMRunCommandsUpdateSamples { /* - * x-ms-original-file: 2025-11-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json + * x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json */ /** * Sample code: Update VirtualMachineScaleSet VM run command. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsApproveRollingUpgradeSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsApproveRollingUpgradeSamples.java index 6cf02346440a..98365c7fd372 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsApproveRollingUpgradeSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsApproveRollingUpgradeSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetVMsApproveRollingUpgradeSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ApproveRollingUpgrade.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ApproveRollingUpgrade.json */ /** * Sample code: VirtualMachineScaleSetVM_ApproveRollingUpgrade. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsAttachDetachDataDisksSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsAttachDetachDataDisksSamples.java index c8806d18f61f..9a4b44e25eb3 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsAttachDetachDataDisksSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsAttachDetachDataDisksSamples.java @@ -18,7 +18,7 @@ public final class VirtualMachineScaleSetVMsAttachDetachDataDisksSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_AttachDetachDataDisks_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_AttachDetachDataDisks_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_AttachDetachDataDisks_MinimumSet_Gen. @@ -39,7 +39,7 @@ public static void virtualMachineScaleSetVMAttachDetachDataDisksMinimumSetGen( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_AttachDetachDataDisks_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_AttachDetachDataDisks_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_AttachDetachDataDisks_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsDeallocateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsDeallocateSamples.java index 0b6590035ab8..eb80097a767a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsDeallocateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsDeallocateSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetVMsDeallocateSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_Deallocate_MinimumSet_Gen. @@ -26,7 +26,7 @@ public final class VirtualMachineScaleSetVMsDeallocateSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_Deallocate_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsDeleteSamples.java index 87c1eda0b951..4652cd4e05fa 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetVMsDeleteSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json */ /** * Sample code: Force Delete a virtual machine from a VM scale set. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsGetInstanceViewSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsGetInstanceViewSamples.java index ad3090741d55..30547734d958 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsGetInstanceViewSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsGetInstanceViewSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetVMsGetInstanceViewSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup * .json */ /** diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsGetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsGetSamples.java index f9418501ad8a..a17aabf212f1 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsGetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsGetSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetVMsGetSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVMSizeProperties.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVMSizeProperties.json */ /** * Sample code: Get VM scale set VM with VMSizeProperties. @@ -25,7 +25,7 @@ public static void getVMScaleSetVMWithVMSizeProperties(com.azure.resourcemanager /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithResilientVMDeletionStatus.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithResilientVMDeletionStatus.json */ /** * Sample code: Get VM scale set VM with ResiliencyView. @@ -40,7 +40,7 @@ public static void getVMScaleSetVMWithResiliencyView(com.azure.resourcemanager.c /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVirtualMachineResourceId.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVirtualMachineResourceId.json */ /** * Sample code: Get VM scale set Flex VM with VirtualMachineResourceId. @@ -56,7 +56,7 @@ public static void getVMScaleSetVMWithResiliencyView(com.azure.resourcemanager.c } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json */ /** * Sample code: Get VM scale set VM with UserData. @@ -68,4 +68,19 @@ public static void getVMScaleSetVMWithUserData(com.azure.resourcemanager.compute .getVirtualMachineScaleSetVMs() .getWithResponse("myResourceGroup", "{vmss-name}", "0", null, com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithInterconnectBlock.json + */ + /** + * Sample code: Get VM scale set VM with Interconnect Block. + * + * @param manager Entry point to ComputeManager. + */ + public static void getVMScaleSetVMWithInterconnectBlock(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineScaleSetVMs() + .getWithResponse("myResourceGroup", "{vmss-name}", "0", null, com.azure.core.util.Context.NONE); + } } diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsListSamples.java index d5c1bd8c2740..1a314b6d93f1 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsListSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetVMsListSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_WithVirtualMachineResourceId.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_WithVirtualMachineResourceId.json */ /** * Sample code: List Vmss VMs with VirtualMachineResourceId. @@ -25,7 +25,7 @@ public final class VirtualMachineScaleSetVMsListSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_List_MinimumSet_Gen. @@ -40,7 +40,7 @@ public final class VirtualMachineScaleSetVMsListSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_List_MaximumSet_Gen. @@ -57,7 +57,7 @@ public final class VirtualMachineScaleSetVMsListSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_WithResiliencyView.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_WithResiliencyView.json */ /** * Sample code: List Vmss VMs with ResilientVMDeletionStatus. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsPerformMaintenanceSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsPerformMaintenanceSamples.java index 8b8d818d230e..1645876a5791 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsPerformMaintenanceSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsPerformMaintenanceSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetVMsPerformMaintenanceSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_PerformMaintenance_MaximumSet_Gen. @@ -26,7 +26,7 @@ public static void virtualMachineScaleSetVMPerformMaintenanceMaximumSetGen( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_PerformMaintenance_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsPowerOffSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsPowerOffSamples.java index 0f404c85afc6..34a78924f16a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsPowerOffSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsPowerOffSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetVMsPowerOffSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_PowerOff_MaximumSet_Gen. @@ -26,7 +26,7 @@ public final class VirtualMachineScaleSetVMsPowerOffSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_PowerOff_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRedeploySamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRedeploySamples.java index 3a1dd4f3925b..902d25ed63dd 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRedeploySamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRedeploySamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetVMsRedeploySamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_Redeploy_MaximumSet_Gen. @@ -27,7 +27,7 @@ public final class VirtualMachineScaleSetVMsRedeploySamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_Redeploy_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsReimageAllSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsReimageAllSamples.java index 33dd11c6635f..430afa21148a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsReimageAllSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsReimageAllSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetVMsReimageAllSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_ReimageAll_MinimumSet_Gen. @@ -27,7 +27,7 @@ public final class VirtualMachineScaleSetVMsReimageAllSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_ReimageAll_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsReimageSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsReimageSamples.java index b3df4721aa52..af2e505e41c0 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsReimageSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsReimageSamples.java @@ -12,7 +12,7 @@ public final class VirtualMachineScaleSetVMsReimageSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_Reimage_MaximumSet_Gen. @@ -31,7 +31,7 @@ public final class VirtualMachineScaleSetVMsReimageSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_Reimage_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRestartSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRestartSamples.java index 20ebb36ba495..119627f5991e 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRestartSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRestartSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetVMsRestartSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_Restart_MinimumSet_Gen. @@ -26,7 +26,7 @@ public final class VirtualMachineScaleSetVMsRestartSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_Restart_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataSamples.java index 49610b6a828c..0d621292609a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json */ /** * Sample code: RetrieveBootDiagnosticsData of a virtual machine. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRunCommandSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRunCommandSamples.java index 0245d6f9a70c..2dfe5575e74c 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRunCommandSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsRunCommandSamples.java @@ -12,7 +12,7 @@ */ public final class VirtualMachineScaleSetVMsRunCommandSamples { /* - * x-ms-original-file: 2025-11-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json + * x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json */ /** * Sample code: VirtualMachineScaleSetVMs_RunCommand. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsSimulateEvictionSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsSimulateEvictionSamples.java index 17ee45fd9fd7..2529f792b965 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsSimulateEvictionSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsSimulateEvictionSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetVMsSimulateEvictionSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json */ /** * Sample code: Simulate Eviction a virtual machine. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsStartSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsStartSamples.java index 2ce8afb2cc07..3358c64c1f34 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsStartSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsStartSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetVMsStartSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_Start_MaximumSet_Gen. @@ -24,7 +24,7 @@ public final class VirtualMachineScaleSetVMsStartSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_Start_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsUpdateSamples.java index 3beca2065412..d4727b07e733 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMsUpdateSamples.java @@ -87,7 +87,7 @@ */ public final class VirtualMachineScaleSetVMsUpdateSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_Update_MaximumSet_Gen. @@ -285,7 +285,7 @@ public final class VirtualMachineScaleSetVMsUpdateSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_Update_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsApproveRollingUpgradeSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsApproveRollingUpgradeSamples.java index e89803ac2266..5867a9af62ca 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsApproveRollingUpgradeSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsApproveRollingUpgradeSamples.java @@ -12,7 +12,7 @@ */ public final class VirtualMachineScaleSetsApproveRollingUpgradeSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ApproveRollingUpgrade.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ApproveRollingUpgrade.json */ /** * Sample code: VirtualMachineScaleSet_ApproveRollingUpgrade. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsConvertToSinglePlacementGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsConvertToSinglePlacementGroupSamples.java index 5dbc855a7e26..a9399ddbe794 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsConvertToSinglePlacementGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsConvertToSinglePlacementGroupSamples.java @@ -12,7 +12,7 @@ public final class VirtualMachineScaleSetsConvertToSinglePlacementGroupSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MaximumSet_Gen. + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MaximumSet_Gen. * json */ /** @@ -32,7 +32,7 @@ public static void virtualMachineScaleSetConvertToSinglePlacementGroupMaximumSet /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MinimumSet_Gen. + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MinimumSet_Gen. * json */ /** diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsCreateOrUpdateSamples.java index 0f37d57ee73d..5b2e55cc6da0 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsCreateOrUpdateSamples.java @@ -15,6 +15,7 @@ import com.azure.resourcemanager.compute.models.ApplicationProfile; import com.azure.resourcemanager.compute.models.AutomaticOSUpgradePolicy; import com.azure.resourcemanager.compute.models.AutomaticRepairsPolicy; +import com.azure.resourcemanager.compute.models.AutomaticSkuMigrationPolicy; import com.azure.resourcemanager.compute.models.AutomaticZoneRebalancingPolicy; import com.azure.resourcemanager.compute.models.BillingProfile; import com.azure.resourcemanager.compute.models.BootDiagnostics; @@ -33,6 +34,8 @@ import com.azure.resourcemanager.compute.models.HighSpeedInterconnectPlacement; import com.azure.resourcemanager.compute.models.HostEndpointSettings; import com.azure.resourcemanager.compute.models.ImageReference; +import com.azure.resourcemanager.compute.models.InterconnectBlockProfile; +import com.azure.resourcemanager.compute.models.InterconnectGroupProfile; import com.azure.resourcemanager.compute.models.IpVersion; import com.azure.resourcemanager.compute.models.KeyVaultSecretReference; import com.azure.resourcemanager.compute.models.LifecycleHook; @@ -117,7 +120,7 @@ public final class VirtualMachineScaleSetsCreateOrUpdateSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEmptyDataDisksOnEachVm.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEmptyDataDisksOnEachVm.json */ /** * Sample code: Create a scale set with empty data disks on each vm. @@ -169,7 +172,7 @@ public final class VirtualMachineScaleSetsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/ + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/ * VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacementAndFullCachingEnabled.json */ /** @@ -221,7 +224,7 @@ public static void createAScaleSetWithEphemeralOsDisksUsingPlacementPropertyAndE } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUserData.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUserData.json */ /** * Sample code: Create a scale set with userData. @@ -264,7 +267,7 @@ public static void createAScaleSetWithUserData(com.azure.resourcemanager.compute } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromACustomImage.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromACustomImage.json */ /** * Sample code: Create a scale set from a custom image. @@ -301,7 +304,7 @@ public static void createAScaleSetFromACustomImage(com.azure.resourcemanager.com /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacement. + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacement. * json */ /** @@ -352,7 +355,7 @@ public static void createAScaleSetWithEphemeralOsDisksUsingPlacementProperty( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithScaleInPolicy.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithScaleInPolicy.json */ /** * Sample code: Create a scale set with scaleInPolicy. @@ -399,7 +402,7 @@ public static void createAScaleSetWithScaleInPolicy(com.azure.resourcemanager.co /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProxyAgentSettings.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProxyAgentSettings.json */ /** * Sample code: Create a scale set with ProxyAgent Settings of enabled and mode. @@ -450,7 +453,7 @@ public static void createAScaleSetWithProxyAgentSettingsOfEnabledAndMode( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVM.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVM.json */ /** * Sample code: Create a scale set with SecurityType as ConfidentialVM. @@ -501,7 +504,7 @@ public static void createAScaleSetWithProxyAgentSettingsOfEnabledAndMode( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureApplicationGateway.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureApplicationGateway.json */ /** * Sample code: Create a scale set with an azure application gateway. @@ -548,7 +551,7 @@ public static void createAScaleSetWithProxyAgentSettingsOfEnabledAndMode( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMCreationPolicy.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMCreationPolicy.json */ /** * Sample code: Create a scale set with Resilient VM Creation enabled. @@ -593,7 +596,7 @@ public static void createAScaleSetWithProxyAgentSettingsOfEnabledAndMode( } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/ + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/ * VirtualMachineScaleSet_Create_CustomImageFromAnUnmanagedGeneralizedOsImage.json */ /** @@ -631,7 +634,7 @@ public static void createACustomImageScaleSetFromAnUnmanagedGeneralizedOsImage( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithZonalPlatformFaultDomainAlignMode. + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithZonalPlatformFaultDomainAlignMode. * json */ /** @@ -682,7 +685,7 @@ public static void createAScaleSetWithZonalPlatformFaultDomainAlignModeAsAligned /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsTimeBudget.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsTimeBudget.json */ /** * Sample code: Create a scale set with extension time budget. @@ -739,7 +742,7 @@ public static void createAScaleSetWithExtensionTimeBudget(com.azure.resourcemana /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithApplicationProfile.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithApplicationProfile.json */ /** * Sample code: Create a scale set with Application Profile. @@ -794,7 +797,7 @@ public static void createAScaleSetWithApplicationProfile(com.azure.resourcemanag /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskEncryptionSetResource.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskEncryptionSetResource.json */ /** * Sample code: Create a scale set with DiskEncryptionSet resource in os disk and data disk. @@ -842,7 +845,7 @@ public static void createAScaleSetWithDiskEncryptionSetResourceInOsDiskAndDataDi /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPremiumStorage.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPremiumStorage.json */ /** * Sample code: Create a scale set with premium storage. @@ -884,7 +887,7 @@ public static void createAScaleSetWithPremiumStorage(com.azure.resourcemanager.c } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/ + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/ * VirtualMachineScaleSet_Create_FromWithDisableTcpStateTrackingNetworkInterface.json */ /** @@ -936,7 +939,7 @@ public static void createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProper /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithTerminateScheduledEventEnabled.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithTerminateScheduledEventEnabled.json */ /** * Sample code: Create a scale set with terminate scheduled events enabled. @@ -982,7 +985,62 @@ public static void createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProper /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled. + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticSkuMigrationPolicy.json + */ + /** + * Sample code: Create a scale set with automatic SKU migration policy. + * + * @param manager Entry point to ComputeManager. + */ + public static void + createAScaleSetWithAutomaticSKUMigrationPolicy(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineScaleSets() + .createOrUpdate("myResourceGroup", "{vmss-name}", + new VirtualMachineScaleSetInner().withLocation("westus") + .withSku(new Sku().withName("Mix").withCapacity(10L)) + .withVirtualMachineProfile(new VirtualMachineScaleSetVMProfile() + .withOsProfile(new VirtualMachineScaleSetOSProfile().withComputerNamePrefix("{vmss-name}") + .withAdminUsername("{your-username}") + .withAdminPassword("fakeTokenPlaceholder")) + .withStorageProfile(new VirtualMachineScaleSetStorageProfile() + .withImageReference(new ImageReference().withPublisher("MicrosoftWindowsServer") + .withOffer("WindowsServer") + .withSku("2016-Datacenter") + .withVersion("latest")) + .withOsDisk(new VirtualMachineScaleSetOSDisk() + .withCaching(CachingTypes.READ_WRITE) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.STANDARD_LRS)))) + .withNetworkProfile( + new VirtualMachineScaleSetNetworkProfile().withNetworkInterfaceConfigurations( + Arrays.asList(new VirtualMachineScaleSetNetworkConfiguration().withName("{vmss-name}") + .withPrimary(true) + .withIpConfigurations(Arrays.asList(new VirtualMachineScaleSetIpConfiguration() + .withName("{vmss-name}") + .withSubnet(new ApiEntityReference().withId( + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}")))) + .withEnableIpForwarding(true)))) + .withPriority(VirtualMachinePriorityTypes.SPOT) + .withEvictionPolicy(VirtualMachineEvictionPolicyTypes.DEALLOCATE) + .withBillingProfile(new BillingProfile().withMaxPrice(-1.0D))) + .withSinglePlacementGroup(false) + .withOrchestrationMode(OrchestrationMode.FLEXIBLE) + .withPriorityMixPolicy(new PriorityMixPolicy().withBaseRegularPriorityCount(4) + .withRegularPriorityPercentageAboveBase(50)) + .withSkuProfile(new SkuProfile() + .withVmSizes(Arrays.asList(new SkuProfileVMSize().withName("Standard_D8s_v5"), + new SkuProfileVMSize().withName("Standard_E16s_v5"), + new SkuProfileVMSize().withName("Standard_D2s_v5"))) + .withAllocationStrategy(AllocationStrategy.CAPACITY_OPTIMIZED) + .withAutomaticSkuMigrationPolicy(new AutomaticSkuMigrationPolicy().withEnabled(true))), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled. * json */ /** @@ -1039,7 +1097,7 @@ public static void createAVMSSWithAnExtensionThatHasSuppressFailuresEnabled( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPasswordAuthentication.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPasswordAuthentication.json */ /** * Sample code: Create a scale set with password authentication. @@ -1083,7 +1141,7 @@ public static void createAVMSSWithAnExtensionThatHasSuppressFailuresEnabled( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskControllerType.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskControllerType.json */ /** * Sample code: Create a scale set with Disk Controller Type. @@ -1138,7 +1196,63 @@ public static void createAScaleSetWithDiskControllerType(com.azure.resourcemanag /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOperationRecoverySettings.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithInterconnectBlock.json + */ + /** + * Sample code: Create or update a scale set with Interconnect Block. + * + * @param manager Entry point to ComputeManager. + */ + public static void + createOrUpdateAScaleSetWithInterconnectBlock(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineScaleSets() + .createOrUpdate("myResourceGroup", "{vmss-name}", + new VirtualMachineScaleSetInner().withLocation("westus") + .withSku(new Sku().withName("Standard_ND128isr_GB300_v6").withTier("Standard").withCapacity(3L)) + .withZones(Arrays.asList("1")) + .withUpgradePolicy(new UpgradePolicy().withMode(UpgradeMode.MANUAL)) + .withVirtualMachineProfile(new VirtualMachineScaleSetVMProfile() + .withOsProfile(new VirtualMachineScaleSetOSProfile().withComputerNamePrefix("{vmss-name}") + .withAdminUsername("{your-username}") + .withAdminPassword("fakeTokenPlaceholder") + .withLinuxConfiguration(new LinuxConfiguration().withDisablePasswordAuthentication(false))) + .withStorageProfile(new VirtualMachineScaleSetStorageProfile() + .withImageReference(new ImageReference().withPublisher("microsoft-dsvm") + .withOffer("ubuntu-hpc") + .withSku("2404-gb") + .withVersion("latest")) + .withOsDisk( + new VirtualMachineScaleSetOSDisk().withCaching(CachingTypes.READ_WRITE) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withManagedDisk(new VirtualMachineScaleSetManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS)))) + .withNetworkProfile(new VirtualMachineScaleSetNetworkProfile() + .withNetworkInterfaceConfigurations(Arrays + .asList(new VirtualMachineScaleSetNetworkConfiguration().withName("{vmss-name}") + .withPrimary(true) + .withIpConfigurations(Arrays + .asList(new VirtualMachineScaleSetIpConfiguration().withName("{vmss-name}") + .withSubnet( + new ApiEntityReference().withId( + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}")))) + .withEnableIpForwarding(true))) + .withInterconnectGroupProfile(new InterconnectGroupProfile() + .withInterconnectGroup(new SubResource().withId( + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/interconnectGroups/myInterconnectGroup")) + .withSubgroups(Arrays.asList(new SubResource().withId( + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/interconnectGroups/myInterconnectGroup/subgroups/subgroup0"))))) + .withInterconnectBlockProfile( + new InterconnectBlockProfile().withInterconnectBlock(new ApiEntityReference().withId( + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/interconnectBlocks/myInterconnectBlock")))) + .withOverprovision(true) + .withHighSpeedInterconnectPlacement(HighSpeedInterconnectPlacement.TRUNK), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOperationRecoverySettings.json */ /** * Sample code: Create a scale set with OperationRecoverySettings enabled. @@ -1187,7 +1301,7 @@ public static void createAScaleSetWithDiskControllerType(com.azure.resourcemanag /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromAGeneralizedSharedImage.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromAGeneralizedSharedImage.json */ /** * Sample code: Create a scale set from a generalized shared image. @@ -1224,7 +1338,7 @@ public static void createAScaleSetWithDiskControllerType(com.azure.resourcemanag } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithMaxZoneCount.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithMaxZoneCount.json */ /** * Sample code: Create a zones-auto scale set with Max Zone Count. @@ -1271,7 +1385,7 @@ public static void createAScaleSetWithDiskControllerType(com.azure.resourcemanag /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithHighSpeedInterconnectPlacement.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithHighSpeedInterconnectPlacement.json */ /** * Sample code: Create a virtual machine scale set with high-speed interconnect placement. @@ -1325,7 +1439,7 @@ public static void createAVirtualMachineScaleSetWithHighSpeedInterconnectPlaceme /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOSImageScheduledEventEnabled.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOSImageScheduledEventEnabled.json */ /** * Sample code: Create a scale set with OS image scheduled events enabled. @@ -1371,7 +1485,7 @@ public static void createAVirtualMachineScaleSetWithHighSpeedInterconnectPlaceme /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithFpgaNetworkInterface.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithFpgaNetworkInterface.json */ /** * Sample code: Create a scale set with Fpga Network Interfaces. @@ -1419,7 +1533,7 @@ public static void createAVirtualMachineScaleSetWithHighSpeedInterconnectPlaceme } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSkuProfile.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSkuProfile.json */ /** * Sample code: Create a scale set with sku profile. @@ -1471,7 +1585,7 @@ public static void createAScaleSetWithSkuProfile(com.azure.resourcemanager.compu } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/ + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/ * VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacementAsNvmeDisk.json */ /** @@ -1522,7 +1636,7 @@ public static void createAScaleSetWithEphemeralOsDiskProvisioningInNvmeDiskUsing /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticZoneRebalancingPolicy.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticZoneRebalancingPolicy.json */ /** * Sample code: Create a scale set with Automatic Zone Rebalancing enabled. @@ -1570,7 +1684,7 @@ public static void createAScaleSetWithEphemeralOsDiskProvisioningInNvmeDiskUsing /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithServiceArtifactReference.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithServiceArtifactReference.json */ /** * Sample code: Create a scale set with Service Artifact Reference. @@ -1613,7 +1727,7 @@ public static void createAScaleSetWithEphemeralOsDiskProvisioningInNvmeDiskUsing /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEncryptionAtHost.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEncryptionAtHost.json */ /** * Sample code: Create a scale set with Host Encryption using encryptionAtHost property. @@ -1661,7 +1775,7 @@ public static void createAScaleSetWithHostEncryptionUsingEncryptionAtHostPropert /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithLifecycleHooksProfile.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithLifecycleHooksProfile.json */ /** * Sample code: Create a virtual machine scale set with LifecycleHooksProfile. @@ -1708,7 +1822,7 @@ public static void createAVirtualMachineScaleSetWithLifecycleHooksProfile( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureLoadBalancer.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureLoadBalancer.json */ /** * Sample code: Create a scale set with an azure load balancer. @@ -1761,7 +1875,7 @@ public static void createAVirtualMachineScaleSetWithLifecycleHooksProfile( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProtectedSettingsFromKeyVault.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProtectedSettingsFromKeyVault.json */ /** * Sample code: Create a VMSS with an extension with protectedSettingsFromKeyVault. @@ -1821,7 +1935,7 @@ public static void createAVMSSWithAnExtensionWithProtectedSettingsFromKeyVault( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithManagedBootDiagnostics.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithManagedBootDiagnostics.json */ /** * Sample code: Create a scale set with managed boot diagnostics. @@ -1867,7 +1981,7 @@ public static void createAVMSSWithAnExtensionWithProtectedSettingsFromKeyVault( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAMarketplaceImagePlan.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAMarketplaceImagePlan.json */ /** * Sample code: Create a scale set with a marketplace image plan. @@ -1913,7 +2027,7 @@ public static void createAVMSSWithAnExtensionWithProtectedSettingsFromKeyVault( } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiffOsDisk.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiffOsDisk.json */ /** * Sample code: Create a scale set with ephemeral os disks. @@ -1960,7 +2074,7 @@ public static void createAScaleSetWithEphemeralOsDisks(com.azure.resourcemanager /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExternalHealthPolicy.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExternalHealthPolicy.json */ /** * Sample code: Create a scale set with external health policy enabled. @@ -2014,7 +2128,7 @@ public static void createAScaleSetWithEphemeralOsDisks(com.azure.resourcemanager /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMsInDifferentZones.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMsInDifferentZones.json */ /** * Sample code: Create a scale set with virtual machines in different zones. @@ -2068,7 +2182,7 @@ public static void createAScaleSetWithEphemeralOsDisks(com.azure.resourcemanager /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithCapacityReservation.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithCapacityReservation.json */ /** * Sample code: Create or update a scale set with capacity reservation. @@ -2115,7 +2229,7 @@ public static void createAScaleSetWithEphemeralOsDisks(com.azure.resourcemanager /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMDeletionPolicy.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMDeletionPolicy.json */ /** * Sample code: Create a scale set with Resilient VM Deletion enabled. @@ -2161,7 +2275,7 @@ public static void createAScaleSetWithEphemeralOsDisks(com.azure.resourcemanager /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSshAuthentication.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSshAuthentication.json */ /** * Sample code: Create a scale set with ssh authentication. @@ -2203,7 +2317,7 @@ public static void createAScaleSetWithSshAuthentication(com.azure.resourcemanage /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSkuProfile_Prioritized.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSkuProfile_Prioritized.json */ /** * Sample code: Create a scale set with sku profile and prioritized allocation strategy. @@ -2257,7 +2371,7 @@ public static void createAScaleSetWithSkuProfileAndPrioritizedAllocationStrategy /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithStorageFaultDomainAlignment.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithStorageFaultDomainAlignment.json */ /** * Sample code: Create a scale set containing disks with storage fault domain alignment. @@ -2308,7 +2422,7 @@ public static void createAScaleSetContainingDisksWithStorageFaultDomainAlignment /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMSizeProperties.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMSizeProperties.json */ /** * Sample code: Create a scale set with vm size properties. @@ -2354,7 +2468,7 @@ public static void createAScaleSetWithVmSizeProperties(com.azure.resourcemanager /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithNetworkInterfaceWithDnsSettings. + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithNetworkInterfaceWithDnsSettings. * json */ /** @@ -2417,7 +2531,7 @@ public static void createAScaleSetWithNetworkInterfacesWithPublicIpAddressDnsSet /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_PlatformImageWithUnmanagedOsDisks.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_PlatformImageWithUnmanagedOsDisks.json */ /** * Sample code: Create a platform-image scale set with unmanaged os disks. @@ -2466,7 +2580,7 @@ public static void createAScaleSetWithNetworkInterfacesWithPublicIpAddressDnsSet } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUefiSettings.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUefiSettings.json */ /** * Sample code: Create a scale set with Uefi Settings of secureBoot and vTPM. @@ -2513,7 +2627,7 @@ public static void createAScaleSetWithNetworkInterfacesWithPublicIpAddressDnsSet /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPriorityMixPolicy.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPriorityMixPolicy.json */ /** * Sample code: Create a scale set with priority mix policy. @@ -2567,7 +2681,7 @@ public static void createAScaleSetWithPriorityMixPolicy(com.azure.resourcemanage /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityPostureReference.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityPostureReference.json */ /** * Sample code: Create a scale set with Security Posture Reference. @@ -2610,7 +2724,7 @@ public static void createAScaleSetWithPriorityMixPolicy(com.azure.resourcemanage /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticRepairs.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticRepairs.json */ /** * Sample code: Create a scale set with automatic repairs enabled. @@ -2661,7 +2775,7 @@ public static void createAScaleSetWithPriorityMixPolicy(com.azure.resourcemanage } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPlacement.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPlacement.json */ /** * Sample code: Create a scale set with placement policy 'Auto'. @@ -2707,7 +2821,7 @@ public static void createAScaleSetWithPriorityMixPolicy(com.azure.resourcemanage /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotRestorePolicy.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotRestorePolicy.json */ /** * Sample code: Create a scale set with spot restore policy. @@ -2753,7 +2867,7 @@ public static void createAScaleSetWithSpotRestorePolicy(com.azure.resourcemanage } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/ + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/ * VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVMWithNonPersistedTPM.json */ /** @@ -2805,7 +2919,7 @@ public static void createAScaleSetWithSecurityTypeAsConfidentialVMAndNonPersiste /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithMaxInstancePercentPerZonePolicy.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithMaxInstancePercentPerZonePolicy.json */ /** * Sample code: Create a scale set with Max Instance Percent Per Zone Policy enabled. @@ -2852,7 +2966,7 @@ public static void createAScaleSetWithMaxInstancePercentPerZonePolicyEnabled( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithBootDiagnostics.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithBootDiagnostics.json */ /** * Sample code: Create a scale set with boot diagnostics. @@ -2898,7 +3012,7 @@ public static void createAScaleSetWithBootDiagnostics(com.azure.resourcemanager. /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromASpecializedSharedImage.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromASpecializedSharedImage.json */ /** * Sample code: Create a scale set from a specialized shared image. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsDeallocateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsDeallocateSamples.java index f8a7370c4dc5..cee4c51f4dda 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsDeallocateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsDeallocateSamples.java @@ -13,7 +13,7 @@ public final class VirtualMachineScaleSetsDeallocateSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_Deallocate_MaximumSet_Gen. @@ -31,7 +31,7 @@ public final class VirtualMachineScaleSetsDeallocateSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_Deallocate_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsDeleteInstancesSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsDeleteInstancesSamples.java index c0344f9812ec..84574d25fd28 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsDeleteInstancesSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsDeleteInstancesSamples.java @@ -13,7 +13,7 @@ public final class VirtualMachineScaleSetsDeleteInstancesSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_DeleteInstances_MaximumSet_Gen. @@ -30,7 +30,7 @@ public final class VirtualMachineScaleSetsDeleteInstancesSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_DeleteInstances_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsDeleteSamples.java index 1d42ef035553..235bb2e05a89 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetsDeleteSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json */ /** * Sample code: Force Delete a VM scale set. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSamples.java index e492c9870c04..4d52af126300 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/ + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/ * VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen.json */ /** @@ -26,7 +26,7 @@ public static void virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdat } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/ + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/ * VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MaximumSet_Gen.json */ /** diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsGetByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsGetByResourceGroupSamples.java index 2ad330f0ce9e..d92ce3585c4c 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsGetByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsGetByResourceGroupSamples.java @@ -12,7 +12,7 @@ public final class VirtualMachineScaleSetsGetByResourceGroupSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_AutoPlacedOnDedicatedHostGroup.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_AutoPlacedOnDedicatedHostGroup.json */ /** * Sample code: Get a virtual machine scale set placed on a dedicated host group through automatic placement. @@ -28,7 +28,7 @@ public static void getAVirtualMachineScaleSetPlacedOnADedicatedHostGroupThroughA } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get.json */ /** * Sample code: Get a virtual machine scale set. @@ -43,7 +43,7 @@ public static void getAVirtualMachineScaleSet(com.azure.resourcemanager.compute. } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithUserData.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithUserData.json */ /** * Sample code: Get a virtual machine scale set with UserData. @@ -60,7 +60,7 @@ public static void getAVirtualMachineScaleSet(com.azure.resourcemanager.compute. /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json */ /** * Sample code: Get VM scale set VM with Disk Controller Type. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsGetInstanceViewSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsGetInstanceViewSamples.java index 999614ec7cbb..6fd4c557752d 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsGetInstanceViewSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsGetInstanceViewSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetsGetInstanceViewSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen. @@ -26,7 +26,7 @@ public final class VirtualMachineScaleSetsGetInstanceViewSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_GetInstanceView_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsGetOSUpgradeHistorySamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsGetOSUpgradeHistorySamples.java index e84ccf2596ef..e08ac7e580d1 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsGetOSUpgradeHistorySamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsGetOSUpgradeHistorySamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetsGetOSUpgradeHistorySamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_GetOSUpgradeHistory_MinimumSet_Gen. @@ -26,7 +26,7 @@ public static void virtualMachineScaleSetGetOSUpgradeHistoryMinimumSetGen( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_GetOSUpgradeHistory_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListByLocationSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListByLocationSamples.java index 0bb271d22266..8d71ee90df39 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListByLocationSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListByLocationSamples.java @@ -10,7 +10,7 @@ public final class VirtualMachineScaleSetsListByLocationSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListBySubscription_ByLocation.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListBySubscription_ByLocation.json */ /** * Sample code: Lists all the VM scale sets under the specified subscription for the specified location. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListByResourceGroupSamples.java index b7abba3db597..98454fb539a4 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetsListByResourceGroupSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_List_MaximumSet_Gen. @@ -24,7 +24,7 @@ public final class VirtualMachineScaleSetsListByResourceGroupSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_List_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListSamples.java index 1b6d07a13cef..a23a08a1db33 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetsListSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_ListAll_MaximumSet_Gen. @@ -22,7 +22,7 @@ public final class VirtualMachineScaleSetsListSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_ListAll_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListSkusSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListSkusSamples.java index f92d16e53f64..ccb130c1732e 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListSkusSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsListSkusSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetsListSkusSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_ListSkus_MaximumSet_Gen. @@ -24,7 +24,7 @@ public final class VirtualMachineScaleSetsListSkusSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_ListSkus_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsPerformMaintenanceSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsPerformMaintenanceSamples.java index 5d2c1414fa6b..47f9614ff497 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsPerformMaintenanceSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsPerformMaintenanceSamples.java @@ -13,7 +13,7 @@ public final class VirtualMachineScaleSetsPerformMaintenanceSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_PerformMaintenance_MinimumSet_Gen. @@ -29,7 +29,7 @@ public static void virtualMachineScaleSetPerformMaintenanceMinimumSetGen( /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_PerformMaintenance_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsPowerOffSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsPowerOffSamples.java index 61e391c42f97..77586f4f11d6 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsPowerOffSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsPowerOffSamples.java @@ -12,7 +12,7 @@ */ public final class VirtualMachineScaleSetsPowerOffSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_PowerOff_MinimumSet_Gen. @@ -27,7 +27,7 @@ public final class VirtualMachineScaleSetsPowerOffSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_PowerOff_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsReapplySamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsReapplySamples.java index 2720479a6110..8cb5264d19ca 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsReapplySamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsReapplySamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineScaleSetsReapplySamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSets_Reapply_MaximumSet_Gen. @@ -25,7 +25,7 @@ public final class VirtualMachineScaleSetsReapplySamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSets_Reapply_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsRedeploySamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsRedeploySamples.java index 68f44f37aa50..9ae44371f87e 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsRedeploySamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsRedeploySamples.java @@ -12,7 +12,7 @@ */ public final class VirtualMachineScaleSetsRedeploySamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_Redeploy_MinimumSet_Gen. @@ -27,7 +27,7 @@ public final class VirtualMachineScaleSetsRedeploySamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_Redeploy_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsReimageAllSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsReimageAllSamples.java index 4631bd47dfb0..73680138e48c 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsReimageAllSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsReimageAllSamples.java @@ -13,7 +13,7 @@ public final class VirtualMachineScaleSetsReimageAllSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_ReimageAll_MaximumSet_Gen. @@ -31,7 +31,7 @@ public final class VirtualMachineScaleSetsReimageAllSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_ReimageAll_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsReimageSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsReimageSamples.java index b47460ffbdb4..7ac878c3d4d2 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsReimageSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsReimageSamples.java @@ -12,7 +12,7 @@ */ public final class VirtualMachineScaleSetsReimageSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_Reimage_MinimumSet_Gen. @@ -27,7 +27,7 @@ public final class VirtualMachineScaleSetsReimageSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_Reimage_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsRestartSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsRestartSamples.java index c0319f1ac7cd..56e602cfa40a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsRestartSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsRestartSamples.java @@ -12,7 +12,7 @@ */ public final class VirtualMachineScaleSetsRestartSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_Restart_MaximumSet_Gen. @@ -29,7 +29,7 @@ public final class VirtualMachineScaleSetsRestartSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_Restart_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsScaleOutSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsScaleOutSamples.java index 85e62277c43c..f01f15a8eec8 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsScaleOutSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsScaleOutSamples.java @@ -12,7 +12,7 @@ */ public final class VirtualMachineScaleSetsScaleOutSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ScaleOut.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ScaleOut.json */ /** * Sample code: VirtualMachineScaleSet Scale Out. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsSetOrchestrationServiceStateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsSetOrchestrationServiceStateSamples.java index ddaff99226c2..3d38ba361285 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsSetOrchestrationServiceStateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsSetOrchestrationServiceStateSamples.java @@ -14,7 +14,7 @@ public final class VirtualMachineScaleSetsSetOrchestrationServiceStateSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen. @@ -33,7 +33,7 @@ public static void virtualMachineScaleSetSetOrchestrationServiceStateMinimumSetG /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsStartSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsStartSamples.java index 1923bb9ece58..3ee90de67a56 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsStartSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsStartSamples.java @@ -12,7 +12,7 @@ */ public final class VirtualMachineScaleSetsStartSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_Start_MinimumSet_Gen. @@ -27,7 +27,7 @@ public final class VirtualMachineScaleSetsStartSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_Start_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsUpdateInstancesSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsUpdateInstancesSamples.java index 1bc8e7ffec4a..3170ebe1fa82 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsUpdateInstancesSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsUpdateInstancesSamples.java @@ -13,7 +13,7 @@ public final class VirtualMachineScaleSetsUpdateInstancesSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MinimumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_UpdateInstances_MinimumSet_Gen. @@ -32,7 +32,7 @@ public final class VirtualMachineScaleSetsUpdateInstancesSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MaximumSet_Gen.json + * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_UpdateInstances_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsUpdateSamples.java index d7e9aca39015..cdbb9da69802 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsUpdateSamples.java @@ -87,7 +87,7 @@ */ public final class VirtualMachineScaleSetsUpdateSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_Update_MinimumSet_Gen. @@ -103,7 +103,7 @@ public final class VirtualMachineScaleSetsUpdateSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSet_Update_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineSizesListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineSizesListSamples.java index ffb8cf3d67d7..f719126a344b 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineSizesListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineSizesListSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachineSizesListSamples { /* - * x-ms-original-file: 2025-11-01/computeRPCommonExamples/VirtualMachineSizes_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/computeRPCommonExamples/VirtualMachineSizes_List_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineSizes_List_MinimumSet_Gen. @@ -21,7 +21,7 @@ public static void virtualMachineSizesListMinimumSetGen(com.azure.resourcemanage } /* - * x-ms-original-file: 2025-11-01/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineSizes_List_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesAssessPatchesSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesAssessPatchesSamples.java index 688bd070b264..e26c7e73a3d7 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesAssessPatchesSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesAssessPatchesSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesAssessPatchesSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_AssessPatches.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_AssessPatches.json */ /** * Sample code: Assess patch state of a virtual machine. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesAttachDetachDataDisksSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesAttachDetachDataDisksSamples.java index 74d5d2f56269..99dd17066e95 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesAttachDetachDataDisksSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesAttachDetachDataDisksSamples.java @@ -18,7 +18,7 @@ */ public final class VirtualMachinesAttachDetachDataDisksSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_AttachDetachDataDisks_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_AttachDetachDataDisks_MinimumSet_Gen.json */ /** * Sample code: VirtualMachine_AttachDetachDataDisks_MinimumSet_Gen. @@ -38,7 +38,7 @@ public final class VirtualMachinesAttachDetachDataDisksSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_AttachDetachDataDisks_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_AttachDetachDataDisks_MaximumSet_Gen.json */ /** * Sample code: VirtualMachine_AttachDetachDataDisks_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesCaptureSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesCaptureSamples.java index f79a92b10289..4a74eb8506c4 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesCaptureSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesCaptureSamples.java @@ -11,7 +11,7 @@ */ public final class VirtualMachinesCaptureSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Capture_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Capture_MinimumSet_Gen.json */ /** * Sample code: VirtualMachine_Capture_MinimumSet_Gen. @@ -29,7 +29,7 @@ public static void virtualMachineCaptureMinimumSetGen(com.azure.resourcemanager. } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Capture_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Capture_MaximumSet_Gen.json */ /** * Sample code: VirtualMachine_Capture_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesConvertToManagedDisksSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesConvertToManagedDisksSamples.java index 33b6ed9656c5..c79b1ad1a0ee 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesConvertToManagedDisksSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesConvertToManagedDisksSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesConvertToManagedDisksSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MinimumSet_Gen.json */ /** * Sample code: VirtualMachine_ConvertToManagedDisks_MinimumSet_Gen. @@ -24,7 +24,7 @@ public final class VirtualMachinesConvertToManagedDisksSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MaximumSet_Gen.json */ /** * Sample code: VirtualMachine_ConvertToManagedDisks_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesCreateOrUpdateSamples.java index 41dd1b7ce15a..5ba51481c6e5 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesCreateOrUpdateSamples.java @@ -28,6 +28,8 @@ import com.azure.resourcemanager.compute.models.HardwareProfile; import com.azure.resourcemanager.compute.models.HostEndpointSettings; import com.azure.resourcemanager.compute.models.ImageReference; +import com.azure.resourcemanager.compute.models.InterconnectBlockProfile; +import com.azure.resourcemanager.compute.models.InterconnectGroupProfile; import com.azure.resourcemanager.compute.models.LinuxConfiguration; import com.azure.resourcemanager.compute.models.LinuxPatchAssessmentMode; import com.azure.resourcemanager.compute.models.LinuxPatchSettings; @@ -95,7 +97,7 @@ public final class VirtualMachinesCreateOrUpdateSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsCacheDisk.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsCacheDisk.json */ /** * Sample code: Create a vm with ephemeral os disk provisioning in Cache disk using placement property. @@ -138,7 +140,7 @@ public static void createAVmWithEphemeralOsDiskProvisioningInCacheDiskUsingPlace /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByOS.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByOS.json */ /** * Sample code: Create a Windows vm with a patch setting patchMode of AutomaticByOS. @@ -181,7 +183,7 @@ public static void createAWindowsVmWithAPatchSettingPatchModeOfAutomaticByOS( /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModesOfAutomaticByPlatform.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModesOfAutomaticByPlatform.json */ /** * Sample code: Create a Windows vm with patch settings patchMode and assessmentMode set to AutomaticByPlatform. @@ -222,7 +224,7 @@ public static void createAWindowsVmWithPatchSettingsPatchModeAndAssessmentModeSe } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithEncryptionIdentity.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithEncryptionIdentity.json */ /** * Sample code: Create a VM with encryption identity. @@ -263,7 +265,7 @@ public static void createAVMWithEncryptionIdentity(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservation.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservation.json */ /** * Sample code: Create or update a VM with capacity reservation. @@ -306,7 +308,7 @@ public static void createAVMWithEncryptionIdentity(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithPremiumStorage.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithPremiumStorage.json */ /** * Sample code: Create a vm with premium storage. @@ -343,7 +345,7 @@ public static void createAVmWithPremiumStorage(com.azure.resourcemanager.compute /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json */ /** * Sample code: Create a Linux vm with a patch setting assessmentMode of ImageDefault. @@ -385,7 +387,7 @@ public static void createALinuxVmWithAPatchSettingAssessmentModeOfImageDefault( /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_CustomImageVmFromAnUnmanagedGeneralizedOsImage.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_CustomImageVmFromAnUnmanagedGeneralizedOsImage.json */ /** * Sample code: Create a custom-image vm from an unmanaged generalized os image. @@ -418,7 +420,7 @@ public static void createACustomImageVmFromAnUnmanagedGeneralizedOsImage( } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithEncryptionAtHost.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithEncryptionAtHost.json */ /** * Sample code: Create a vm with Host Encryption using encryptionAtHost property. @@ -459,7 +461,7 @@ public static void createAVmWithHostEncryptionUsingEncryptionAtHostProperty( } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_InAnAvailabilitySet.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_InAnAvailabilitySet.json */ /** * Sample code: Create a vm in an availability set. @@ -498,7 +500,7 @@ public static void createAVmInAnAvailabilitySet(com.azure.resourcemanager.comput /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsNvmeDisk.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsNvmeDisk.json */ /** * Sample code: Create a vm with ephemeral os disk provisioning in Nvme disk using placement property. @@ -541,7 +543,7 @@ public static void createAVmWithEphemeralOsDiskProvisioningInNvmeDiskUsingPlacem /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfiguration.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfiguration.json */ /** * Sample code: Create a VM with network interface configuration. @@ -590,7 +592,7 @@ public static void createAVmWithEphemeralOsDiskProvisioningInNvmeDiskUsingPlacem } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_FromASpecializedSharedImage.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_FromASpecializedSharedImage.json */ /** * Sample code: Create a vm from a specialized shared image. @@ -617,7 +619,7 @@ public static void createAVmFromASpecializedSharedImage(com.azure.resourcemanage } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithPasswordAuthentication.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithPasswordAuthentication.json */ /** * Sample code: Create a vm with password authentication. @@ -653,7 +655,7 @@ public static void createAVmWithPasswordAuthentication(com.azure.resourcemanager } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithScheduledEventsProfile.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithScheduledEventsProfile.json */ /** * Sample code: Create a vm with Scheduled Events Profile. @@ -705,7 +707,7 @@ public static void createAVmWithScheduledEventsProfile(com.azure.resourcemanager /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsResourceDisk.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsResourceDisk.json */ /** * Sample code: Create a vm with ephemeral os disk provisioning in Resource disk using placement property. @@ -747,7 +749,7 @@ public static void createAVmWithEphemeralOsDiskProvisioningInResourceDiskUsingPl } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDisk.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDisk.json */ /** * Sample code: Create a vm with ephemeral os disk. @@ -788,7 +790,7 @@ public static void createAVmWithEphemeralOsDisk(com.azure.resourcemanager.comput /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithCustomerManagedKeys. + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithCustomerManagedKeys. * json */ /** @@ -831,7 +833,7 @@ public static void createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKey } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithDiskEncryptionSetResource.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithDiskEncryptionSetResource.json */ /** * Sample code: Create a vm with DiskEncryptionSet resource id in the os disk and data disk. @@ -881,7 +883,7 @@ public static void createAVmWithDiskEncryptionSetResourceIdInTheOsDiskAndDataDis } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithDiskControllerType.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithDiskControllerType.json */ /** * Sample code: Create a VM with Disk Controller Type. @@ -929,7 +931,7 @@ public static void createAVMWithDiskControllerType(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_FromASharedGalleryImage.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_FromASharedGalleryImage.json */ /** * Sample code: Create a VM from a shared gallery image. @@ -959,9 +961,57 @@ public static void createAVMFromASharedGalleryImage(com.azure.resourcemanager.co null, null, com.azure.core.util.Context.NONE); } + /* + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithInterconnectBlock.json + */ + /** + * Sample code: Create or update a VM with Interconnect Block. + * + * @param manager Entry point to ComputeManager. + */ + public static void + createOrUpdateAVMWithInterconnectBlock(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachines() + .createOrUpdate("myResourceGroup", "myVM", + new VirtualMachineInner().withLocation("westus") + .withZones(Arrays.asList("1")) + .withHardwareProfile(new HardwareProfile() + .withVmSize(VirtualMachineSizeTypes.fromString("Standard_ND128isr_GB300_v6"))) + .withStorageProfile( + new StorageProfile() + .withImageReference(new ImageReference().withPublisher("microsoft-dsvm") + .withOffer("ubuntu-hpc") + .withSku("2404-gb") + .withVersion("latest")) + .withOsDisk(new OSDisk().withName("myVMosdisk") + .withCaching(CachingTypes.READ_WRITE) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withManagedDisk(new ManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS)))) + .withOsProfile(new OSProfile() + .withComputerName("myVM") + .withAdminUsername("{your-username}") + .withAdminPassword("fakeTokenPlaceholder") + .withLinuxConfiguration(new LinuxConfiguration().withDisablePasswordAuthentication(false))) + .withNetworkProfile(new NetworkProfile().withNetworkInterfaces( + Arrays.asList(new NetworkInterfaceReference().withId( + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}") + .withPrimary(true))) + .withInterconnectGroupProfile(new InterconnectGroupProfile() + .withInterconnectGroup(new SubResource().withId( + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/interconnectGroups/myInterconnectGroup")) + .withSubgroups(Arrays.asList(new SubResource().withId( + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/interconnectGroups/myInterconnectGroup/subgroups/subgroup0"))))) + .withInterconnectBlockProfile( + new InterconnectBlockProfile().withInterconnectBlock(new ApiEntityReference().withId( + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/interconnectBlocks/myInterconnectBlock"))), + null, null, com.azure.core.util.Context.NONE); + } + /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_PlatformImageVmWithUnmanagedOsAndDataDisks.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_PlatformImageVmWithUnmanagedOsAndDataDisks.json */ /** * Sample code: Create a platform-image vm with unmanaged os and data disks. @@ -1005,7 +1055,7 @@ public static void createAVMFromASharedGalleryImage(com.azure.resourcemanager.co } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithVMSizeProperties.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithVMSizeProperties.json */ /** * Sample code: Create a VM with VM Size Properties. @@ -1047,7 +1097,7 @@ public static void createAVMWithVMSizeProperties(com.azure.resourcemanager.compu /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModesOfAutomaticByPlatform.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModesOfAutomaticByPlatform.json */ /** * Sample code: Create a Linux vm with a patch settings patchMode and assessmentMode set to AutomaticByPlatform. @@ -1088,7 +1138,7 @@ public static void createALinuxVmWithAPatchSettingsPatchModeAndAssessmentModeSet /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithNonPersistedTPM.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithNonPersistedTPM.json */ /** * Sample code: Create a VM with securityType ConfidentialVM with NonPersistedTPM securityEncryptionType. @@ -1131,7 +1181,7 @@ public static void createAVMWithSecurityTypeConfidentialVMWithNonPersistedTPMSec } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithAMarketplaceImagePlan.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithAMarketplaceImagePlan.json */ /** * Sample code: Create a vm with a marketplace image plan. @@ -1171,7 +1221,7 @@ public static void createAVmWithAMarketplaceImagePlan(com.azure.resourcemanager. /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingAssessmentModeOfImageDefault. + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingAssessmentModeOfImageDefault. * json */ /** @@ -1214,7 +1264,7 @@ public static void createAWindowsVmWithAPatchSettingAssessmentModeOfImageDefault } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithZoneMovementEnabled.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithZoneMovementEnabled.json */ /** * Sample code: Create a vm with resiliency profile and zone movement enabled. @@ -1260,7 +1310,7 @@ public static void createAWindowsVmWithAPatchSettingAssessmentModeOfImageDefault } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/ + * x-ms-original-file: 2026-03-01/virtualMachineExamples/ * VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByPlatformAndEnableHotPatchingTrue.json */ /** @@ -1304,7 +1354,7 @@ public static void createAWindowsVmWithAPatchSettingPatchModeOfAutomaticByPlatfo } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithExtensionsTimeBudget.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithExtensionsTimeBudget.json */ /** * Sample code: Create a vm with an extensions time budget. @@ -1344,7 +1394,7 @@ public static void createAVmWithAnExtensionsTimeBudget(com.azure.resourcemanager } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithEmptyDataDisks.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithEmptyDataDisks.json */ /** * Sample code: Create a vm with empty data disks. @@ -1381,7 +1431,7 @@ public static void createAVmWithEmptyDataDisks(com.azure.resourcemanager.compute /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskAndFullCachingEnabled.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskAndFullCachingEnabled.json */ /** * Sample code: Create a vm with ephemeral os disk and enableFullCaching set to true. @@ -1424,7 +1474,7 @@ public static void createAVmWithEphemeralOsDiskAndEnableFullCachingSetToTrue( } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithDataDisksFromSourceResource.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithDataDisksFromSourceResource.json */ /** * Sample code: Create a vm with data disks using 'Copy' and 'Restore' options. @@ -1473,7 +1523,7 @@ public static void createAVmWithEphemeralOsDiskAndEnableFullCachingSetToTrue( } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVM.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVM.json */ /** * Sample code: Create a VM with securityType ConfidentialVM with Platform Managed Keys. @@ -1516,7 +1566,7 @@ public static void createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKey } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_FromACustomImage.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_FromACustomImage.json */ /** * Sample code: Create a vm from a custom image. @@ -1546,7 +1596,7 @@ public static void createAVmFromACustomImage(com.azure.resourcemanager.compute.C } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithHibernationEnabled.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithHibernationEnabled.json */ /** * Sample code: Create a VM with HibernationEnabled. @@ -1586,7 +1636,7 @@ public static void createAVMWithHibernationEnabled(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithApplicationProfile.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithApplicationProfile.json */ /** * Sample code: Create a vm with Application Profile. @@ -1633,7 +1683,7 @@ public static void createAVmWithApplicationProfile(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithUefiSettings.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithUefiSettings.json */ /** * Sample code: Create a VM with Uefi Settings of secureBoot and vTPM. @@ -1673,7 +1723,7 @@ public static void createAVmWithApplicationProfile(com.azure.resourcemanager.com /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfigurationDnsSettings.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfigurationDnsSettings.json */ /** * Sample code: Create a VM with network interface configuration with public ip address dns settings. @@ -1724,7 +1774,7 @@ public static void createAVMWithNetworkInterfaceConfigurationWithPublicIpAddress /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_InAVmssWithCustomerAssignedPlatformFaultDomain.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_InAVmssWithCustomerAssignedPlatformFaultDomain.json */ /** * Sample code: Create a vm in a Virtual Machine Scale Set with customer assigned platformFaultDomain. @@ -1764,7 +1814,7 @@ public static void createAVmInAVirtualMachineScaleSetWithCustomerAssignedPlatfor } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithBootDiagnostics.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithBootDiagnostics.json */ /** * Sample code: Create a vm with boot diagnostics. @@ -1803,7 +1853,7 @@ public static void createAVmWithBootDiagnostics(com.azure.resourcemanager.comput } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithSshAuthentication.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithSshAuthentication.json */ /** * Sample code: Create a vm with ssh authentication. @@ -1841,7 +1891,7 @@ public static void createAVmWithSshAuthentication(com.azure.resourcemanager.comp } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_FromACommunityGalleryImage.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_FromACommunityGalleryImage.json */ /** * Sample code: Create a VM from a community gallery image. @@ -1872,7 +1922,7 @@ public static void createAVMFromACommunityGalleryImage(com.azure.resourcemanager } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithUserData.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithUserData.json */ /** * Sample code: Create a VM with UserData. @@ -1912,7 +1962,7 @@ public static void createAVMWithUserData(com.azure.resourcemanager.compute.Compu } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_FromAGeneralizedSharedImage.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_FromAGeneralizedSharedImage.json */ /** * Sample code: Create a vm from a generalized shared image. @@ -1943,7 +1993,7 @@ public static void createAVmFromAGeneralizedSharedImage(com.azure.resourcemanage /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithAutomaticByPlatformSettings.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithAutomaticByPlatformSettings.json */ /** * Sample code: Create a Linux vm with a patch setting patchMode of AutomaticByPlatform and @@ -1989,7 +2039,7 @@ public static void createALinuxVmWithAPatchSettingPatchModeOfAutomaticByPlatform /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfManual.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfManual.json */ /** * Sample code: Create a Windows vm with a patch setting patchMode of Manual. @@ -2030,7 +2080,7 @@ public static void createALinuxVmWithAPatchSettingPatchModeOfAutomaticByPlatform } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithFips1403Enabled.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithFips1403Enabled.json */ /** * Sample code: Create a VM with FIPS 140-3 Enabled. @@ -2070,7 +2120,7 @@ public static void createAVMWithFIPS1403Enabled(com.azure.resourcemanager.comput } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithProxyAgentSettings.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithProxyAgentSettings.json */ /** * Sample code: Create a VM with ProxyAgent Settings of enabled and mode. @@ -2111,7 +2161,7 @@ public static void createAVMWithFIPS1403Enabled(com.azure.resourcemanager.comput /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModeOfImageDefault.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModeOfImageDefault.json */ /** * Sample code: Create a Linux vm with a patch setting patchMode of ImageDefault. @@ -2152,7 +2202,7 @@ public static void createALinuxVmWithAPatchSettingPatchModeOfImageDefault( } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithManagedBootDiagnostics.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithManagedBootDiagnostics.json */ /** * Sample code: Create a vm with managed boot diagnostics. @@ -2190,7 +2240,7 @@ public static void createAVmWithManagedBootDiagnostics(com.azure.resourcemanager } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WithPlacement.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithPlacement.json */ /** * Sample code: Create a VM with automatic zone placement. @@ -2232,7 +2282,7 @@ public static void createAVMWithAutomaticZonePlacement(com.azure.resourcemanager /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithAutomaticByPlatformSettings.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithAutomaticByPlatformSettings.json */ /** * Sample code: Create a Windows vm with a patch setting patchMode of AutomaticByPlatform and diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesDeallocateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesDeallocateSamples.java index 96929476b9b9..49bc0ea23c93 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesDeallocateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesDeallocateSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesDeallocateSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Deallocate_WithForceDeallocate.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Deallocate_WithForceDeallocate.json */ /** * Sample code: VirtualMachine_Deallocate_WithForceDeallocate. @@ -24,7 +24,7 @@ public final class VirtualMachinesDeallocateSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Deallocate_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Deallocate_MinimumSet_Gen.json */ /** * Sample code: VirtualMachine_Deallocate_MinimumSet_Gen. @@ -38,7 +38,7 @@ public static void virtualMachineDeallocateMinimumSetGen(com.azure.resourcemanag } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Deallocate_WithHibernation.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Deallocate_WithHibernation.json */ /** * Sample code: VirtualMachine_Deallocate_WithHibernation. @@ -51,4 +51,48 @@ public static void virtualMachineDeallocateMinimumSetGen(com.azure.resourcemanag .getVirtualMachines() .deallocate("rgcompute", "aaaaaaaaaaaaaaaa", true, null, com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Deallocate_WithForceDeallocate.json + */ + /** + * Sample code: VirtualMachine_Deallocate_WithForceDeallocate. + * + * @param manager Entry point to ComputeManager. + */ + public static void + virtualMachineDeallocateWithForceDeallocate(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachines() + .deallocate("rgcompute", "aaaaaaaaaaaaaaaa", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Deallocate_MinimumSet_Gen.json + */ + /** + * Sample code: VirtualMachine_Deallocate_MinimumSet_Gen. + * + * @param manager Entry point to ComputeManager. + */ + public static void virtualMachineDeallocateMinimumSetGen(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachines() + .deallocate("rgcompute", "aaaaaaaaaaaaaaaa", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Deallocate_WithHibernation.json + */ + /** + * Sample code: VirtualMachine_Deallocate_WithHibernation. + * + * @param manager Entry point to ComputeManager. + */ + public static void + virtualMachineDeallocateWithHibernation(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachines() + .deallocate("rgcompute", "aaaaaaaaaaaaaaaa", true, com.azure.core.util.Context.NONE); + } } diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesDeleteSamples.java index b43f589775ce..1a732af31b55 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesDeleteSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Delete_Force.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Delete_Force.json */ /** * Sample code: Force delete a VM. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesGeneralizeSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesGeneralizeSamples.java index 2f7c7cf574c7..867b4ca1800d 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesGeneralizeSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesGeneralizeSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesGeneralizeSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Generalize.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Generalize.json */ /** * Sample code: Generalize a Virtual Machine. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesGetByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesGetByResourceGroupSamples.java index b9722c7e1a57..4e522563e4e5 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesGetByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesGetByResourceGroupSamples.java @@ -11,7 +11,7 @@ */ public final class VirtualMachinesGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Get_WithVMSizeProperties.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get_WithVMSizeProperties.json */ /** * Sample code: Get a virtual machine with VM Size Properties. @@ -26,7 +26,7 @@ public final class VirtualMachinesGetByResourceGroupSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Get_AutoPlacedOnDedicatedHostGroup.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get_AutoPlacedOnDedicatedHostGroup.json */ /** * Sample code: Get a virtual machine placed on a dedicated host group through automatic placement. @@ -41,7 +41,7 @@ public static void getAVirtualMachinePlacedOnADedicatedHostGroupThroughAutomatic } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Get_WithDiskControllerType.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get_WithDiskControllerType.json */ /** * Sample code: Get a virtual machine with Disk Controller Type Properties. @@ -57,7 +57,7 @@ public static void getAVirtualMachinePlacedOnADedicatedHostGroupThroughAutomatic } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Get.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get.json */ /** * Sample code: Get a Virtual Machine. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesInstallPatchesSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesInstallPatchesSamples.java index 8367dce66c53..e3e82845a6e3 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesInstallPatchesSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesInstallPatchesSamples.java @@ -16,7 +16,7 @@ */ public final class VirtualMachinesInstallPatchesSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_InstallPatches.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_InstallPatches.json */ /** * Sample code: Install patch state of a virtual machine. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesInstanceViewSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesInstanceViewSamples.java index 24e178b6ccfc..8c8a21e41f23 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesInstanceViewSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesInstanceViewSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesInstanceViewSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Get_InstanceView.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get_InstanceView.json */ /** * Sample code: Get Virtual Machine Instance View. @@ -24,7 +24,7 @@ public static void getVirtualMachineInstanceView(com.azure.resourcemanager.compu /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json */ /** * Sample code: Get instance view of a virtual machine placed on a dedicated host group through automatic placement. @@ -37,4 +37,19 @@ public static void getInstanceViewOfAVirtualMachinePlacedOnADedicatedHostGroupTh .getVirtualMachines() .instanceViewWithResponse("myResourceGroup", "myVM", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get_InstanceView_WithInterconnectBlock.json + */ + /** + * Sample code: Get instance view of a virtual machine associated with an Interconnect Block. + * + * @param manager Entry point to ComputeManager. + */ + public static void getInstanceViewOfAVirtualMachineAssociatedWithAnInterconnectBlock( + com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachines() + .instanceViewWithResponse("myResourceGroup", "myVM", com.azure.core.util.Context.NONE); + } } diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListAvailableSizesSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListAvailableSizesSamples.java index 911d98474791..fef5efe50106 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListAvailableSizesSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListAvailableSizesSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesListAvailableSizesSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_ListAvailableVmSizes.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_ListAvailableVmSizes.json */ /** * Sample code: Lists all available virtual machine sizes to which the specified virtual machine can be resized. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListByLocationSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListByLocationSamples.java index 5b7ebc5a0e02..3bb68ea7f07d 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListByLocationSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListByLocationSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesListByLocationSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_ListBySubscription_ByLocation.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_ListBySubscription_ByLocation.json */ /** * Sample code: Lists all the virtual machines under the specified subscription for the specified location. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListByResourceGroupSamples.java index 34beb11eb39d..261406bd4fbd 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesListByResourceGroupSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_List_MaximumSet_Gen.json */ /** * Sample code: VirtualMachine_List_MaximumSet_Gen. @@ -23,7 +23,7 @@ public static void virtualMachineListMaximumSetGen(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_List_MinimumSet_Gen.json */ /** * Sample code: VirtualMachine_List_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListSamples.java index 65bca1f7f1e8..9c09ce43b5d7 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesListSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesListSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_ListAll_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_ListAll_MinimumSet_Gen.json */ /** * Sample code: VirtualMachine_ListAll_MinimumSet_Gen. @@ -21,7 +21,7 @@ public static void virtualMachineListAllMinimumSetGen(com.azure.resourcemanager. } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_ListAll_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_ListAll_MaximumSet_Gen.json */ /** * Sample code: VirtualMachine_ListAll_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesMigrateToVMScaleSetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesMigrateToVMScaleSetSamples.java index 108eebd3f25c..a0ace70722eb 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesMigrateToVMScaleSetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesMigrateToVMScaleSetSamples.java @@ -11,7 +11,7 @@ */ public final class VirtualMachinesMigrateToVMScaleSetSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_MigrateToVirtualMachineScaleSet.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_MigrateToVirtualMachineScaleSet.json */ /** * Sample code: Migrate a Virtual Machine to Flexible Virtual Machine Scale Ser. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesPerformMaintenanceSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesPerformMaintenanceSamples.java index 813f2152c0a1..743803475f6d 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesPerformMaintenanceSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesPerformMaintenanceSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesPerformMaintenanceSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_PerformMaintenance_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_PerformMaintenance_MaximumSet_Gen.json */ /** * Sample code: VirtualMachine_PerformMaintenance_MaximumSet_Gen. @@ -24,7 +24,7 @@ public final class VirtualMachinesPerformMaintenanceSamples { } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_PerformMaintenance_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_PerformMaintenance_MinimumSet_Gen.json */ /** * Sample code: VirtualMachine_PerformMaintenance_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesPowerOffSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesPowerOffSamples.java index 3c633186a019..fed22cf872c4 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesPowerOffSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesPowerOffSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesPowerOffSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_PowerOff_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_PowerOff_MinimumSet_Gen.json */ /** * Sample code: VirtualMachine_PowerOff_MinimumSet_Gen. @@ -23,7 +23,7 @@ public static void virtualMachinePowerOffMinimumSetGen(com.azure.resourcemanager } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_PowerOff_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_PowerOff_MaximumSet_Gen.json */ /** * Sample code: VirtualMachine_PowerOff_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesReapplySamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesReapplySamples.java index 77d93862bb4c..507f934467a0 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesReapplySamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesReapplySamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesReapplySamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Reapply.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Reapply.json */ /** * Sample code: Reapply the state of a virtual machine. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRedeploySamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRedeploySamples.java index 6aa10ace7a1e..c21ca9fa2080 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRedeploySamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRedeploySamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesRedeploySamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Redeploy_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Redeploy_MinimumSet_Gen.json */ /** * Sample code: VirtualMachine_Redeploy_MinimumSet_Gen. @@ -23,7 +23,7 @@ public static void virtualMachineRedeployMinimumSetGen(com.azure.resourcemanager } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Redeploy_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Redeploy_MaximumSet_Gen.json */ /** * Sample code: VirtualMachine_Redeploy_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesReimageSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesReimageSamples.java index 64939182f081..81b0a1cccb56 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesReimageSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesReimageSamples.java @@ -12,7 +12,7 @@ */ public final class VirtualMachinesReimageSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Reimage.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Reimage.json */ /** * Sample code: Reimage a Virtual Machine. @@ -27,7 +27,7 @@ public static void reimageAVirtualMachine(com.azure.resourcemanager.compute.Comp } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json */ /** * Sample code: Reimage a Non-Ephemeral Virtual Machine. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRestartSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRestartSamples.java index e3157cb3418b..fd19b48d35e3 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRestartSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRestartSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesRestartSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Restart_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Restart_MinimumSet_Gen.json */ /** * Sample code: VirtualMachine_Restart_MinimumSet_Gen. @@ -21,7 +21,7 @@ public static void virtualMachineRestartMinimumSetGen(com.azure.resourcemanager. } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Restart_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Restart_MaximumSet_Gen.json */ /** * Sample code: VirtualMachine_Restart_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRetrieveBootDiagnosticsDataSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRetrieveBootDiagnosticsDataSamples.java index f888dd8c31b4..a08ecba0be52 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRetrieveBootDiagnosticsDataSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRetrieveBootDiagnosticsDataSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesRetrieveBootDiagnosticsDataSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json */ /** * Sample code: RetrieveBootDiagnosticsData of a virtual machine. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRunCommandSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRunCommandSamples.java index 75faa5cd5834..c66d23ae694a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRunCommandSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesRunCommandSamples.java @@ -11,7 +11,7 @@ */ public final class VirtualMachinesRunCommandSamples { /* - * x-ms-original-file: 2025-11-01/runCommandExamples/VirtualMachineRunCommand.json + * x-ms-original-file: 2026-03-01/runCommandExamples/VirtualMachineRunCommand.json */ /** * Sample code: VirtualMachineRunCommand. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesSimulateEvictionSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesSimulateEvictionSamples.java index 0fba1b2b95c2..960982bd987e 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesSimulateEvictionSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesSimulateEvictionSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesSimulateEvictionSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_SimulateEviction.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_SimulateEviction.json */ /** * Sample code: Simulate Eviction a virtual machine. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesStartSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesStartSamples.java index 8841623b0372..4dd2f552f6cb 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesStartSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesStartSamples.java @@ -9,7 +9,7 @@ */ public final class VirtualMachinesStartSamples { /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Start_MinimumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Start_MinimumSet_Gen.json */ /** * Sample code: VirtualMachine_Start_MinimumSet_Gen. @@ -21,7 +21,7 @@ public static void virtualMachineStartMinimumSetGen(com.azure.resourcemanager.co } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Start_MaximumSet_Gen.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Start_MaximumSet_Gen.json */ /** * Sample code: VirtualMachine_Start_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesUpdateSamples.java index a038d7611dbb..76507470da7f 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesUpdateSamples.java @@ -27,7 +27,7 @@ public final class VirtualMachinesUpdateSamples { /* * x-ms-original-file: - * 2025-11-01/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json + * 2026-03-01/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json */ /** * Sample code: Update a VM by detaching data disk. @@ -72,7 +72,7 @@ public static void updateAVMByDetachingDataDisk(com.azure.resourcemanager.comput } /* - * x-ms-original-file: 2025-11-01/virtualMachineExamples/VirtualMachine_Update_ForceDetachDataDisk.json + * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Update_ForceDetachDataDisk.json */ /** * Sample code: Update a VM by force-detaching data disk. diff --git a/sdk/compute/azure-resourcemanager-compute/tsp-location.yaml b/sdk/compute/azure-resourcemanager-compute/tsp-location.yaml index 3c43bb13c103..075278f6e440 100644 --- a/sdk/compute/azure-resourcemanager-compute/tsp-location.yaml +++ b/sdk/compute/azure-resourcemanager-compute/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/compute/resource-manager/Microsoft.Compute/Compute -commit: 1e6111d12c709c3395fb8546e311b6c67fd87efc +commit: cc1bd87b8f859439bff4e5b3f6373ab28c653b52 repo: Azure/azure-rest-api-specs additionalDirectories: From 6afb0c1d76941c179a3ad580e2e9f2c502730fb4 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 18 Jun 2026 10:01:42 +0800 Subject: [PATCH 2/4] Update CHANGELOG for compute management Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- sdk/compute/azure-resourcemanager-compute/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md b/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md index 1e24f0d5ff78..868bc7b6ef9d 100644 --- a/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md +++ b/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md @@ -55,6 +55,10 @@ * `automaticSkuMigrationPolicy()` was added * `withAutomaticSkuMigrationPolicy(models.AutomaticSkuMigrationPolicy)` was added +### Other Changes + +- Updated `ComputeRP api-version` to `2026-03-01`. + ## 2.57.1 (2026-05-05) ### Other Changes From 5e86eb105893a34830c8b0267baa49c3696f1ea3 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 18 Jun 2026 10:04:25 +0800 Subject: [PATCH 3/4] Remove duplicate deallocate sample methods Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../VirtualMachinesDeallocateSamples.java | 43 ------------------- 1 file changed, 43 deletions(-) diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesDeallocateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesDeallocateSamples.java index 49bc0ea23c93..0dd3dad96131 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesDeallocateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachinesDeallocateSamples.java @@ -52,47 +52,4 @@ public static void virtualMachineDeallocateMinimumSetGen(com.azure.resourcemanag .deallocate("rgcompute", "aaaaaaaaaaaaaaaa", true, null, com.azure.core.util.Context.NONE); } - /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Deallocate_WithForceDeallocate.json - */ - /** - * Sample code: VirtualMachine_Deallocate_WithForceDeallocate. - * - * @param manager Entry point to ComputeManager. - */ - public static void - virtualMachineDeallocateWithForceDeallocate(com.azure.resourcemanager.compute.ComputeManager manager) { - manager.serviceClient() - .getVirtualMachines() - .deallocate("rgcompute", "aaaaaaaaaaaaaaaa", null, com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Deallocate_MinimumSet_Gen.json - */ - /** - * Sample code: VirtualMachine_Deallocate_MinimumSet_Gen. - * - * @param manager Entry point to ComputeManager. - */ - public static void virtualMachineDeallocateMinimumSetGen(com.azure.resourcemanager.compute.ComputeManager manager) { - manager.serviceClient() - .getVirtualMachines() - .deallocate("rgcompute", "aaaaaaaaaaaaaaaa", null, com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Deallocate_WithHibernation.json - */ - /** - * Sample code: VirtualMachine_Deallocate_WithHibernation. - * - * @param manager Entry point to ComputeManager. - */ - public static void - virtualMachineDeallocateWithHibernation(com.azure.resourcemanager.compute.ComputeManager manager) { - manager.serviceClient() - .getVirtualMachines() - .deallocate("rgcompute", "aaaaaaaaaaaaaaaa", true, com.azure.core.util.Context.NONE); - } } From e7c84ce9747e64aedfa1fb0519e5bc083ad32326 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 18 Jun 2026 10:24:50 +0800 Subject: [PATCH 4/4] Fix broken src/samples exclusion in Compare-CurrentToCodegeneration.ps1 The git pathspec for excluding src/samples was split across two lines, causing git to receive a malformed argument with an embedded newline. This made the exclusion ineffective, resulting in false diff failures. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- eng/scripts/Compare-CurrentToCodegeneration.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eng/scripts/Compare-CurrentToCodegeneration.ps1 b/eng/scripts/Compare-CurrentToCodegeneration.ps1 index 99a394a57d2a..b83b754245a9 100644 --- a/eng/scripts/Compare-CurrentToCodegeneration.ps1 +++ b/eng/scripts/Compare-CurrentToCodegeneration.ps1 @@ -171,8 +171,7 @@ $generateScript = { } # prevent warning related to EOL differences which triggers an exception for some reason - (& git -c core.safecrlf=false diff --ignore-space-at-eol --exit-code -- "$directory/*.java" ":(exclude)**/src/test/**" ": - (exclude)**/src/samples/**" ":(exclude)**/src/main/**/implementation/**") | Out-Null + (& git -c core.safecrlf=false diff --ignore-space-at-eol --exit-code -- "$directory/*.java" ":(exclude)**/src/test/**" ":(exclude)**/src/samples/**" ":(exclude)**/src/main/**/implementation/**") | Out-Null if ($LastExitCode -ne 0) { $status = (git status -s "$directory" | Out-String)