diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 694297710069..d4ddc5355d29 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -280,7 +280,7 @@ com.azure.resourcemanager:azure-resourcemanager-appplatform;2.51.0;2.52.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-appservice;2.56.0;2.57.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-authorization;2.53.11;2.54.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-cdn;2.53.9;2.54.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-compute;2.59.0;2.60.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-compute;2.59.0;2.60.0 com.azure.resourcemanager:azure-resourcemanager-containerinstance;2.53.12;2.54.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-containerregistry;2.55.3;2.56.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-containerservice;2.62.0;2.63.0-beta.2 diff --git a/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md b/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md index 4ba7944d10a9..9840e4dd1aee 100644 --- a/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md +++ b/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md @@ -1,14 +1,125 @@ # Release History -## 2.60.0-beta.1 (Unreleased) +## 2.60.0 (2026-08-12) + +- Package api-version Compute: 2026-04-01, ComputeDisk: 2026-03-02, ComputeGallery: 2025-12-03, ComputeSku: 2021-07-01. ### Features Added -### Breaking Changes +* `models.CapacityReservationType` was added -### Bugs Fixed +* `models.UrgencyLevel` was added -### Other Changes +* `models.CapacityReservationStateInfo` was added + +* `models.DiskAvailabilityPolicy` was added + +* `models.ExtensionFeatureTag` was added + +* `models.MigrateVMAvailabilityZoneInput` was added + +* `models.ExtensionFeatureMetadata` was added + +* `models.VirtualMachineDiskNetworkAccessPolicy` was added + +* `models.ListVersionsExpandOptions` was added + +* `models.VirtualMachineDiskProperties` was added + +* `models.ReservationState` was added + +* `models.ProcessorMode` was added + +* `models.RunProfile` was added + +* `models.VirtualMachineDiskDelayAction` was added + +* `models.DiskApiVersion` was added + +* `models.ReleaseCategory` was added + +* `models.AdditionalDiskProperties` was added + +#### `models.VirtualMachineScaleSetStorageProfile` was modified + +* `diskApiVersion()` was added +* `withDiskApiVersion(models.DiskApiVersion)` was added + +#### `models.ScheduleProfile` was modified + +* `withMinimumCommitmentDays(java.lang.Integer)` was added +* `modifiableUntil()` was added +* `minimumCommitmentDays()` was added + +#### `models.VirtualMachineScaleSetHardwareProfile` was modified + +* `processorMode()` was added +* `withProcessorMode(models.ProcessorMode)` was added + +#### `models.VirtualMachinePriorityTypes` was modified + +* `SPOT_PLUS` was added + +#### `models.StorageProfile` was modified + +* `diskApiVersion()` was added +* `withDiskApiVersion(models.DiskApiVersion)` was added + +#### `models.VirtualMachineScaleSetIpTag` was modified + +* `withFirstPartyServiceTagId(java.lang.String)` was added +* `firstPartyServiceTagId()` was added + +#### `models.VirtualMachineScaleSetUpdateStorageProfile` was modified + +* `diskApiVersion()` was added +* `withDiskApiVersion(models.DiskApiVersion)` was added + +#### `models.CapacityReservationInstanceViewWithName` was modified + +* `reservationStateInfo()` was added + +#### `models.HostEndpointSettings` was modified + +* `withUseLocalFileRules(java.lang.Boolean)` was added +* `useLocalFileRules()` was added + +#### `models.CapacityReservationProfile` was modified + +* `disableCapacityReservationAssignment()` was added +* `withDisableCapacityReservationAssignment(java.lang.Boolean)` was added + +#### `models.CapacityReservationInstanceView` was modified + +* `reservationStateInfo()` was added + +#### `models.VirtualMachineScaleSetManagedDiskParameters` was modified + +* `additionalDiskProperties()` was added +* `withAdditionalDiskProperties(models.AdditionalDiskProperties)` was added + +#### `models.ReservationType` was modified + +* `OPEN` was added + +#### `models.VirtualMachineIpTag` was modified + +* `firstPartyServiceTagId()` was added +* `withFirstPartyServiceTagId(java.lang.String)` was added + +#### `models.CapacityReservationUtilization` was modified + +* `usedReservedCountBySubscription()` was added + +#### `models.ManagedDiskParameters` was modified + +* `additionalDiskProperties()` was added +* `withAdditionalDiskProperties(models.AdditionalDiskProperties)` was added + +#### `models.HardwareProfile` was modified + +* `withProcessorMode(models.ProcessorMode)` was added +* `processorMode()` was added ## 2.59.0 (2026-07-15) diff --git a/sdk/compute/azure-resourcemanager-compute/README.md b/sdk/compute/azure-resourcemanager-compute/README.md index 95e797d5b687..704d6dea48d7 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.59.0 + 2.60.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/compute/azure-resourcemanager-compute/pom.xml b/sdk/compute/azure-resourcemanager-compute/pom.xml index dcb8f06b654b..ab84d8edcfe4 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.60.0-beta.1 + 2.60.0 jar Microsoft Azure SDK for Compute Management diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/CapacityReservationsClient.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/CapacityReservationsClient.java index 4bac994a8ebd..99494fb3191b 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/CapacityReservationsClient.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/CapacityReservationsClient.java @@ -339,8 +339,11 @@ CapacityReservationInner update(String resourceGroupName, String capacityReserva /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -357,8 +360,11 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -375,8 +381,11 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -393,8 +402,11 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -412,8 +424,11 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -430,8 +445,11 @@ Mono deleteAsync(String resourceGroupName, String capacityReservationGroup /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -446,8 +464,11 @@ Mono deleteAsync(String resourceGroupName, String capacityReservationGroup /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. 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 be77de2726aa..17bc1efcd1d3 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 @@ -179,6 +179,20 @@ public interface ComputeManagementClient { */ VirtualMachineScaleSetVMRunCommandsClient getVirtualMachineScaleSetVMRunCommands(); + /** + * Gets the VirtualMachineDiagnosticRunCommandsClient object to access its operations. + * + * @return the VirtualMachineDiagnosticRunCommandsClient object. + */ + VirtualMachineDiagnosticRunCommandsClient getVirtualMachineDiagnosticRunCommands(); + + /** + * Gets the VirtualMachineScaleSetVMDiagnosticRunCommandsClient object to access its operations. + * + * @return the VirtualMachineScaleSetVMDiagnosticRunCommandsClient object. + */ + VirtualMachineScaleSetVMDiagnosticRunCommandsClient getVirtualMachineScaleSetVMDiagnosticRunCommands(); + /** * Gets the DisksClient object to access its operations. * diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineDiagnosticRunCommandsClient.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineDiagnosticRunCommandsClient.java new file mode 100644 index 000000000000..3fb70434468a --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineDiagnosticRunCommandsClient.java @@ -0,0 +1,474 @@ +// 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.VirtualMachineDiagnosticRunCommandInner; +import com.azure.resourcemanager.compute.models.VirtualMachineRunCommandUpdate; +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 VirtualMachineDiagnosticRunCommandsClient. + */ +public interface VirtualMachineDiagnosticRunCommandsClient { + /** + * The operation to get the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param expand The expand expression to apply on the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getByVirtualMachineWithResponseAsync( + String resourceGroupName, String vmName, String runCommandName, String expand); + + /** + * The operation to get the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByVirtualMachineAsync(String resourceGroupName, String vmName, + String runCommandName); + + /** + * The operation to get the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param expand The expand expression to apply on the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByVirtualMachineWithResponse(String resourceGroupName, + String vmName, String runCommandName, String expand, Context context); + + /** + * The operation to get the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + VirtualMachineDiagnosticRunCommandInner getByVirtualMachine(String resourceGroupName, String vmName, + String runCommandName); + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand); + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginCreateOrUpdateAsync(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand); + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginCreateOrUpdate(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand); + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginCreateOrUpdate(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand, Context context); + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineDiagnosticRunCommandInner runCommand); + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 createOrUpdate(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineDiagnosticRunCommandInner runCommand); + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 createOrUpdate(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineDiagnosticRunCommandInner runCommand, Context context); + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> updateWithResponseAsync(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineRunCommandUpdate runCommand); + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineRunCommandUpdate runCommand); + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginUpdate(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineRunCommandUpdate runCommand); + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginUpdate(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineRunCommandUpdate runCommand, Context context); + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateAsync(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineRunCommandUpdate runCommand); + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 update(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineRunCommandUpdate runCommand); + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 update(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineRunCommandUpdate runCommand, Context context); + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 vmName, + String runCommandName); + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 vmName, String runCommandName); + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 vmName, String runCommandName); + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 vmName, String runCommandName, + Context context); + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 vmName, String runCommandName); + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 vmName, String runCommandName); + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 vmName, String runCommandName, Context context); + + /** + * The operation to get all diagnostic run commands of a Virtual Machine. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param expand The expand expression to apply on the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux diagnosticListByVirtualMachineAsync(String resourceGroupName, + String vmName, String expand); + + /** + * The operation to get all diagnostic run commands of a Virtual Machine. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux diagnosticListByVirtualMachineAsync(String resourceGroupName, + String vmName); + + /** + * The operation to get all diagnostic run commands of a Virtual Machine. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable diagnosticListByVirtualMachine(String resourceGroupName, + String vmName); + + /** + * The operation to get all diagnostic run commands of a Virtual Machine. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param expand The expand expression to apply on the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable diagnosticListByVirtualMachine(String resourceGroupName, + String vmName, String expand, Context context); +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineExtensionImagesClient.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineExtensionImagesClient.java index f741e22f3519..94421c3bf7bc 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineExtensionImagesClient.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineExtensionImagesClient.java @@ -9,6 +9,7 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.compute.fluent.models.VirtualMachineExtensionImageInner; +import com.azure.resourcemanager.compute.models.ListVersionsExpandOptions; import java.util.List; import reactor.core.publisher.Mono; @@ -136,6 +137,28 @@ Response> listTypesWithResponse(String l @ServiceMethod(returns = ReturnType.SINGLE) List listTypes(String location, String publisherName); + /** + * Gets a list of virtual machine extension image versions. + * + * @param location The name of the Azure region. + * @param publisherName The publisherName parameter. + * @param type The type parameter. + * @param filter The filter to apply on the operation. + * @param top The top parameter. + * @param orderby The orderby parameter. + * @param expand Expand the response to include additional read-only metadata. Allowed values: `properties` — + * returns extended metadata (`releaseCategory`, `urgencyLevel`, `runProfile`). + * @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 list of virtual machine extension image versions along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> listVersionsWithResponseAsync(String location, + String publisherName, String type, String filter, Integer top, String orderby, + ListVersionsExpandOptions expand); + /** * Gets a list of virtual machine extension image versions. * @@ -169,6 +192,27 @@ Mono>> listVersionsWithResponse @ServiceMethod(returns = ReturnType.SINGLE) Mono> listVersionsAsync(String location, String publisherName, String type); + /** + * Gets a list of virtual machine extension image versions. + * + * @param location The name of the Azure region. + * @param publisherName The publisherName parameter. + * @param type The type parameter. + * @param filter The filter to apply on the operation. + * @param top The top parameter. + * @param orderby The orderby parameter. + * @param expand Expand the response to include additional read-only metadata. Allowed values: `properties` — + * returns extended metadata (`releaseCategory`, `urgencyLevel`, `runProfile`). + * @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 a list of virtual machine extension image versions along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response> listVersionsWithResponse(String location, String publisherName, + String type, String filter, Integer top, String orderby, ListVersionsExpandOptions expand, Context context); + /** * Gets a list of virtual machine extension image versions. * diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetVMDiagnosticRunCommandsClient.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetVMDiagnosticRunCommandsClient.java new file mode 100644 index 000000000000..d92df5c57af2 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetVMDiagnosticRunCommandsClient.java @@ -0,0 +1,507 @@ +// 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.VirtualMachineDiagnosticRunCommandInner; +import com.azure.resourcemanager.compute.models.VirtualMachineRunCommandUpdate; +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 + * VirtualMachineScaleSetVMDiagnosticRunCommandsClient. + */ +public interface VirtualMachineScaleSetVMDiagnosticRunCommandsClient { + /** + * The operation to get the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param expand The expand expression to apply on the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, + String vmScaleSetName, String instanceId, String runCommandName, String expand); + + /** + * The operation to get the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName); + + /** + * The operation to get the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param expand The expand expression to apply on the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, String expand, Context context); + + /** + * The operation to get the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + VirtualMachineDiagnosticRunCommandInner get(String resourceGroupName, String vmScaleSetName, String instanceId, + String runCommandName); + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand); + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginCreateOrUpdateAsync(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand); + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginCreateOrUpdate(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand); + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginCreateOrUpdate(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand, Context context); + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, + String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand); + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 createOrUpdate(String resourceGroupName, String vmScaleSetName, String instanceId, String runCommandName, + VirtualMachineDiagnosticRunCommandInner runCommand); + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 createOrUpdate(String resourceGroupName, String vmScaleSetName, String instanceId, String runCommandName, + VirtualMachineDiagnosticRunCommandInner runCommand, Context context); + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> updateWithResponseAsync(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineRunCommandUpdate runCommand); + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineRunCommandUpdate runCommand); + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginUpdate(String resourceGroupName, String vmScaleSetName, String instanceId, + String runCommandName, VirtualMachineRunCommandUpdate runCommand); + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginUpdate(String resourceGroupName, String vmScaleSetName, String instanceId, + String runCommandName, VirtualMachineRunCommandUpdate runCommand, Context context); + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, String runCommandName, + VirtualMachineRunCommandUpdate runCommand); + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 update(String resourceGroupName, String vmScaleSetName, String instanceId, String runCommandName, + VirtualMachineRunCommandUpdate runCommand); + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 update(String resourceGroupName, String vmScaleSetName, String instanceId, String runCommandName, + VirtualMachineRunCommandUpdate runCommand, Context context); + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 vmScaleSetName, + String instanceId, String runCommandName); + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 vmScaleSetName, + String instanceId, String runCommandName); + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 vmScaleSetName, String instanceId, + String runCommandName); + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 vmScaleSetName, String instanceId, + String runCommandName, Context context); + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 vmScaleSetName, String instanceId, String runCommandName); + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 vmScaleSetName, String instanceId, String runCommandName); + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 vmScaleSetName, String instanceId, String runCommandName, + Context context); + + /** + * The operation to get all diagnostic run commands of an instance in Virtual Machine Scaleset. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param expand The expand expression to apply on the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux diagnosticListAsync(String resourceGroupName, + String vmScaleSetName, String instanceId, String expand); + + /** + * The operation to get all diagnostic run commands of an instance in Virtual Machine Scaleset. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux diagnosticListAsync(String resourceGroupName, + String vmScaleSetName, String instanceId); + + /** + * The operation to get all diagnostic run commands of an instance in Virtual Machine Scaleset. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable diagnosticList(String resourceGroupName, + String vmScaleSetName, String instanceId); + + /** + * The operation to get all diagnostic run commands of an instance in Virtual Machine Scaleset. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param expand The expand expression to apply on the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable diagnosticList(String resourceGroupName, + String vmScaleSetName, String instanceId, String expand, Context context); +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetsClient.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetsClient.java index 8b397c2bac9a..66ba8253d510 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetsClient.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetsClient.java @@ -19,6 +19,7 @@ import com.azure.resourcemanager.compute.fluent.models.VirtualMachineScaleSetInstanceViewInner; import com.azure.resourcemanager.compute.fluent.models.VirtualMachineScaleSetSkuInner; import com.azure.resourcemanager.compute.models.ExpandTypesForGetVMScaleSets; +import com.azure.resourcemanager.compute.models.MigrateVMAvailabilityZoneInput; import com.azure.resourcemanager.compute.models.OrchestrationServiceStateInput; import com.azure.resourcemanager.compute.models.VMScaleSetConvertToSinglePlacementGroupInput; import com.azure.resourcemanager.compute.models.VMScaleSetScaleOutInput; @@ -2678,6 +2679,111 @@ SyncPoller, Void> beginScaleOut(String resourceGroupName, Strin @ServiceMethod(returns = ReturnType.SINGLE) void scaleOut(String resourceGroupName, String vmScaleSetName, VMScaleSetScaleOutInput parameters, Context context); + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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>> migrateVMAvailabilityZoneWithResponseAsync(String resourceGroupName, + String vmScaleSetName, MigrateVMAvailabilityZoneInput body); + + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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> beginMigrateVMAvailabilityZoneAsync(String resourceGroupName, + String vmScaleSetName, MigrateVMAvailabilityZoneInput body); + + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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> beginMigrateVMAvailabilityZone(String resourceGroupName, String vmScaleSetName, + MigrateVMAvailabilityZoneInput body); + + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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> beginMigrateVMAvailabilityZone(String resourceGroupName, String vmScaleSetName, + MigrateVMAvailabilityZoneInput body, Context context); + + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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 migrateVMAvailabilityZoneAsync(String resourceGroupName, String vmScaleSetName, + MigrateVMAvailabilityZoneInput body); + + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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 migrateVMAvailabilityZone(String resourceGroupName, String vmScaleSetName, + MigrateVMAvailabilityZoneInput body); + + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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 migrateVMAvailabilityZone(String resourceGroupName, String vmScaleSetName, MigrateVMAvailabilityZoneInput body, + Context context); + /** * Gets all the VM scale sets under the specified subscription for the specified location. * diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationGroupInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationGroupInner.java index 16ebe4c971e6..c257d59e3ba3 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationGroupInner.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationGroupInner.java @@ -210,9 +210,13 @@ public CapacityReservationGroupInner withSharingProfile(ResourceSharingProfile s /** * Get the reservationType property: Indicates the type of capacity reservation. Allowed values are 'Block' for - * block capacity reservations and 'Targeted' for reservations that enable a VM to consume a specific capacity - * reservation when a capacity reservation group is provided. The reservation type is immutable and cannot be - * changed after it is assigned. + * block capacity reservations that enable a VM to consume capacity only from this capacity block when it is + * associated using a capacity reservation group, 'Targeted' for reservations that enable a VM to consume capacity + * from an explicitly associated capacity reservation group and fall back to the publicly available capacity if the + * reservation is full, and 'Open' for reservations that a VM consumes when it is eligible from an implicitly + * associated capacity reservation group with the matching VM size and zone without associating that capacity + * reservation group and fall back to the publicly available capacity if the reservation is full. The reservation + * type is immutable and cannot be changed after the capacity reservation group is created. * * @return the reservationType value. */ @@ -222,9 +226,13 @@ public ReservationType reservationType() { /** * Set the reservationType property: Indicates the type of capacity reservation. Allowed values are 'Block' for - * block capacity reservations and 'Targeted' for reservations that enable a VM to consume a specific capacity - * reservation when a capacity reservation group is provided. The reservation type is immutable and cannot be - * changed after it is assigned. + * block capacity reservations that enable a VM to consume capacity only from this capacity block when it is + * associated using a capacity reservation group, 'Targeted' for reservations that enable a VM to consume capacity + * from an explicitly associated capacity reservation group and fall back to the publicly available capacity if the + * reservation is full, and 'Open' for reservations that a VM consumes when it is eligible from an implicitly + * associated capacity reservation group with the matching VM size and zone without associating that capacity + * reservation group and fall back to the publicly available capacity if the reservation is full. The reservation + * type is immutable and cannot be changed after the capacity reservation group is created. * * @param reservationType the reservationType value to set. * @return the CapacityReservationGroupInner object itself. diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationGroupProperties.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationGroupProperties.java index 6b829cab3d71..bf3a64706640 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationGroupProperties.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationGroupProperties.java @@ -47,9 +47,14 @@ public final class CapacityReservationGroupProperties implements JsonSerializabl private ResourceSharingProfile sharingProfile; /* - * Indicates the type of capacity reservation. Allowed values are 'Block' for block capacity reservations and - * 'Targeted' for reservations that enable a VM to consume a specific capacity reservation when a capacity - * reservation group is provided. The reservation type is immutable and cannot be changed after it is assigned. + * Indicates the type of capacity reservation. Allowed values are 'Block' for block capacity reservations that + * enable a VM to consume capacity only from this capacity block when it is associated using a capacity reservation + * group, 'Targeted' for reservations that enable a VM to consume capacity from an explicitly associated capacity + * reservation group and fall back to the publicly available capacity if the reservation is full, and 'Open' for + * reservations that a VM consumes when it is eligible from an implicitly associated capacity reservation group with + * the matching VM size and zone without associating that capacity reservation group and fall back to the publicly + * available capacity if the reservation is full. The reservation type is immutable and cannot be changed after the + * capacity reservation group is created. */ private ReservationType reservationType; @@ -119,9 +124,13 @@ public CapacityReservationGroupProperties withSharingProfile(ResourceSharingProf /** * Get the reservationType property: Indicates the type of capacity reservation. Allowed values are 'Block' for - * block capacity reservations and 'Targeted' for reservations that enable a VM to consume a specific capacity - * reservation when a capacity reservation group is provided. The reservation type is immutable and cannot be - * changed after it is assigned. + * block capacity reservations that enable a VM to consume capacity only from this capacity block when it is + * associated using a capacity reservation group, 'Targeted' for reservations that enable a VM to consume capacity + * from an explicitly associated capacity reservation group and fall back to the publicly available capacity if the + * reservation is full, and 'Open' for reservations that a VM consumes when it is eligible from an implicitly + * associated capacity reservation group with the matching VM size and zone without associating that capacity + * reservation group and fall back to the publicly available capacity if the reservation is full. The reservation + * type is immutable and cannot be changed after the capacity reservation group is created. * * @return the reservationType value. */ @@ -131,9 +140,13 @@ public ReservationType reservationType() { /** * Set the reservationType property: Indicates the type of capacity reservation. Allowed values are 'Block' for - * block capacity reservations and 'Targeted' for reservations that enable a VM to consume a specific capacity - * reservation when a capacity reservation group is provided. The reservation type is immutable and cannot be - * changed after it is assigned. + * block capacity reservations that enable a VM to consume capacity only from this capacity block when it is + * associated using a capacity reservation group, 'Targeted' for reservations that enable a VM to consume capacity + * from an explicitly associated capacity reservation group and fall back to the publicly available capacity if the + * reservation is full, and 'Open' for reservations that a VM consumes when it is eligible from an implicitly + * associated capacity reservation group with the matching VM size and zone without associating that capacity + * reservation group and fall back to the publicly available capacity if the reservation is full. The reservation + * type is immutable and cannot be changed after the capacity reservation group is created. * * @param reservationType the reservationType value to set. * @return the CapacityReservationGroupProperties object itself. diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationInner.java index 990496736eb1..3c01b82b247b 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationInner.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationInner.java @@ -260,11 +260,13 @@ public OffsetDateTime timeCreated() { } /** - * Get the scheduleProfile property: Defines the schedule for Block-type capacity reservations. Specifies the + * Get the scheduleProfile property: Defines the schedule for Block and Future capacity reservations. Specifies the * schedule during which capacity reservation is active and VM or VMSS resource can be allocated using reservation. - * This property is required and only supported when the capacity reservation group type is 'Block'. The - * scheduleProfile, start, and end fields are immutable after creation. Minimum API version: 2025-04-01. Please - * refer to https://aka.ms/blockcapacityreservation for more details. + * For Block capacity reservations, the scheduleProfile, start, and end fields are immutable after creation. Please + * refer to https://aka.ms/blockcapacityreservation for more details. Minimum API version for Block capacity + * reservations: 2025-04-01. Future capacity reservations must use this property with only a start time, which can + * be changed until the ‘modifiableUntil’ time. Please refer to https://aka.ms/futurecapacityreservation for more + * details. Minimum API version for Future capacity reservations: 2026-04-01. * * @return the scheduleProfile value. */ @@ -273,11 +275,13 @@ public ScheduleProfile scheduleProfile() { } /** - * Set the scheduleProfile property: Defines the schedule for Block-type capacity reservations. Specifies the + * Set the scheduleProfile property: Defines the schedule for Block and Future capacity reservations. Specifies the * schedule during which capacity reservation is active and VM or VMSS resource can be allocated using reservation. - * This property is required and only supported when the capacity reservation group type is 'Block'. The - * scheduleProfile, start, and end fields are immutable after creation. Minimum API version: 2025-04-01. Please - * refer to https://aka.ms/blockcapacityreservation for more details. + * For Block capacity reservations, the scheduleProfile, start, and end fields are immutable after creation. Please + * refer to https://aka.ms/blockcapacityreservation for more details. Minimum API version for Block capacity + * reservations: 2025-04-01. Future capacity reservations must use this property with only a start time, which can + * be changed until the ‘modifiableUntil’ time. Please refer to https://aka.ms/futurecapacityreservation for more + * details. Minimum API version for Future capacity reservations: 2026-04-01. * * @param scheduleProfile the scheduleProfile value to set. * @return the CapacityReservationInner object itself. diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationProperties.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationProperties.java index 4c009ad8506c..4d3a359d25ec 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationProperties.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationProperties.java @@ -61,11 +61,13 @@ public final class CapacityReservationProperties implements JsonSerializable 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(); + } + } + + /** + * {@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("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VirtualMachineDiagnosticRunCommandInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VirtualMachineDiagnosticRunCommandInner 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 VirtualMachineDiagnosticRunCommandInner. + */ + public static VirtualMachineDiagnosticRunCommandInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VirtualMachineDiagnosticRunCommandInner deserializedVirtualMachineDiagnosticRunCommandInner + = new VirtualMachineDiagnosticRunCommandInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedVirtualMachineDiagnosticRunCommandInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedVirtualMachineDiagnosticRunCommandInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedVirtualMachineDiagnosticRunCommandInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedVirtualMachineDiagnosticRunCommandInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedVirtualMachineDiagnosticRunCommandInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedVirtualMachineDiagnosticRunCommandInner.properties + = VirtualMachineRunCommandProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedVirtualMachineDiagnosticRunCommandInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedVirtualMachineDiagnosticRunCommandInner; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionImageInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionImageInner.java index 624bdbef1174..e44d104ad8cc 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionImageInner.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionImageInner.java @@ -10,6 +10,10 @@ import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.compute.models.ExtensionFeatureMetadata; +import com.azure.resourcemanager.compute.models.ReleaseCategory; +import com.azure.resourcemanager.compute.models.RunProfile; +import com.azure.resourcemanager.compute.models.UrgencyLevel; import java.io.IOException; import java.util.Map; @@ -145,6 +149,53 @@ public Boolean supportsMultipleExtensions() { return this.innerProperties() == null ? null : this.innerProperties().supportsMultipleExtensions(); } + /** + * Get the releaseNotes property: Summary of changes or updates in this extension version. + * + * @return the releaseNotes value. + */ + public String releaseNotes() { + return this.innerProperties() == null ? null : this.innerProperties().releaseNotes(); + } + + /** + * Get the releaseCategory property: Categorizes the type of change introduced (e.g., BugFix, SecurityFix, + * CompatibilityUpdate, NewFeature, Other). + * + * @return the releaseCategory value. + */ + public ReleaseCategory releaseCategory() { + return this.innerProperties() == null ? null : this.innerProperties().releaseCategory(); + } + + /** + * Get the urgencyLevel property: Indicates the urgency level for applying this extension update. + * + * @return the urgencyLevel value. + */ + public UrgencyLevel urgencyLevel() { + return this.innerProperties() == null ? null : this.innerProperties().urgencyLevel(); + } + + /** + * Get the runProfile property: Specifies when and how the extension should be executed. + * + * @return the runProfile value. + */ + public RunProfile runProfile() { + return this.innerProperties() == null ? null : this.innerProperties().runProfile(); + } + + /** + * Get the extensionFeatureMetadata property: Additional metadata about extension features, including compliance and + * capability tags. + * + * @return the extensionFeatureMetadata value. + */ + public ExtensionFeatureMetadata extensionFeatureMetadata() { + return this.innerProperties() == null ? null : this.innerProperties().extensionFeatureMetadata(); + } + /** * Validates the instance. * diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionImageProperties.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionImageProperties.java index a47cfb923002..8d69467384fc 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionImageProperties.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionImageProperties.java @@ -10,6 +10,10 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; +import com.azure.resourcemanager.compute.models.ExtensionFeatureMetadata; +import com.azure.resourcemanager.compute.models.ReleaseCategory; +import com.azure.resourcemanager.compute.models.RunProfile; +import com.azure.resourcemanager.compute.models.UrgencyLevel; import java.io.IOException; /** @@ -45,6 +49,31 @@ public final class VirtualMachineExtensionImageProperties */ private Boolean supportsMultipleExtensions; + /* + * Summary of changes or updates in this extension version. + */ + private String releaseNotes; + + /* + * Categorizes the type of change introduced (e.g., BugFix, SecurityFix, CompatibilityUpdate, NewFeature, Other). + */ + private ReleaseCategory releaseCategory; + + /* + * Indicates the urgency level for applying this extension update. + */ + private UrgencyLevel urgencyLevel; + + /* + * Specifies when and how the extension should be executed. + */ + private RunProfile runProfile; + + /* + * Additional metadata about extension features, including compliance and capability tags. + */ + private ExtensionFeatureMetadata extensionFeatureMetadata; + /** * Creates an instance of VirtualMachineExtensionImageProperties class. */ @@ -99,6 +128,53 @@ public Boolean supportsMultipleExtensions() { return this.supportsMultipleExtensions; } + /** + * Get the releaseNotes property: Summary of changes or updates in this extension version. + * + * @return the releaseNotes value. + */ + public String releaseNotes() { + return this.releaseNotes; + } + + /** + * Get the releaseCategory property: Categorizes the type of change introduced (e.g., BugFix, SecurityFix, + * CompatibilityUpdate, NewFeature, Other). + * + * @return the releaseCategory value. + */ + public ReleaseCategory releaseCategory() { + return this.releaseCategory; + } + + /** + * Get the urgencyLevel property: Indicates the urgency level for applying this extension update. + * + * @return the urgencyLevel value. + */ + public UrgencyLevel urgencyLevel() { + return this.urgencyLevel; + } + + /** + * Get the runProfile property: Specifies when and how the extension should be executed. + * + * @return the runProfile value. + */ + public RunProfile runProfile() { + return this.runProfile; + } + + /** + * Get the extensionFeatureMetadata property: Additional metadata about extension features, including compliance and + * capability tags. + * + * @return the extensionFeatureMetadata value. + */ + public ExtensionFeatureMetadata extensionFeatureMetadata() { + return this.extensionFeatureMetadata; + } + /** * Validates the instance. * @@ -120,6 +196,9 @@ public void validate() { .log(new IllegalArgumentException( "Missing required property handlerSchema in model VirtualMachineExtensionImageProperties")); } + if (extensionFeatureMetadata() != null) { + extensionFeatureMetadata().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(VirtualMachineExtensionImageProperties.class); @@ -167,6 +246,20 @@ public static VirtualMachineExtensionImageProperties fromJson(JsonReader jsonRea } else if ("supportsMultipleExtensions".equals(fieldName)) { deserializedVirtualMachineExtensionImageProperties.supportsMultipleExtensions = reader.getNullable(JsonReader::getBoolean); + } else if ("releaseNotes".equals(fieldName)) { + deserializedVirtualMachineExtensionImageProperties.releaseNotes = reader.getString(); + } else if ("releaseCategory".equals(fieldName)) { + deserializedVirtualMachineExtensionImageProperties.releaseCategory + = ReleaseCategory.fromString(reader.getString()); + } else if ("urgencyLevel".equals(fieldName)) { + deserializedVirtualMachineExtensionImageProperties.urgencyLevel + = UrgencyLevel.fromString(reader.getString()); + } else if ("runProfile".equals(fieldName)) { + deserializedVirtualMachineExtensionImageProperties.runProfile + = RunProfile.fromString(reader.getString()); + } else if ("extensionFeatureMetadata".equals(fieldName)) { + deserializedVirtualMachineExtensionImageProperties.extensionFeatureMetadata + = ExtensionFeatureMetadata.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionInner.java index 8042afcc0097..708826aeb316 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionInner.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionInner.java @@ -190,7 +190,9 @@ public VirtualMachineExtensionInner withTypePropertiesType(String type) { } /** - * Get the typeHandlerVersion property: Specifies the version of the script handler. + * Get the typeHandlerVersion property: Specifies the Major.Minor version of the script handler. Customer is able to + * specify only the Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix version + * in the Major.Minor series. * * @return the typeHandlerVersion value. */ @@ -199,7 +201,9 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion property: Specifies the version of the script handler. + * Set the typeHandlerVersion property: Specifies the Major.Minor version of the script handler. Customer is able to + * specify only the Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix version + * in the Major.Minor series. * * @param typeHandlerVersion the typeHandlerVersion value to set. * @return the VirtualMachineExtensionInner object itself. diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionProperties.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionProperties.java index 91c8b2962dd1..fccae976d6cc 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionProperties.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionProperties.java @@ -35,7 +35,8 @@ public final class VirtualMachineExtensionProperties implements JsonSerializable private String type; /* - * Specifies the version of the script handler. + * Specifies the Major.Minor version of the script handler. Customer is able to specify only the Major.Minor version + * of an extension, Azure platform will deliver the latest Patch.Hotfix version in the Major.Minor series. */ private String typeHandlerVersion; @@ -158,7 +159,9 @@ public VirtualMachineExtensionProperties withType(String type) { } /** - * Get the typeHandlerVersion property: Specifies the version of the script handler. + * Get the typeHandlerVersion property: Specifies the Major.Minor version of the script handler. Customer is able to + * specify only the Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix version + * in the Major.Minor series. * * @return the typeHandlerVersion value. */ @@ -167,7 +170,9 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion property: Specifies the version of the script handler. + * Set the typeHandlerVersion property: Specifies the Major.Minor version of the script handler. Customer is able to + * specify only the Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix version + * in the Major.Minor series. * * @param typeHandlerVersion the typeHandlerVersion value to set. * @return the VirtualMachineExtensionProperties object itself. diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionUpdateProperties.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionUpdateProperties.java index a62c291369ed..f32acb7976cd 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionUpdateProperties.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionUpdateProperties.java @@ -34,7 +34,8 @@ public final class VirtualMachineExtensionUpdateProperties private String type; /* - * Specifies the version of the script handler. + * Specifies the Major.Minor version of the script handler. Customer is able to specify only the Major.Minor version + * of an extension, Azure platform will deliver the latest Patch.Hotfix version in the Major.Minor series. */ private String typeHandlerVersion; @@ -142,7 +143,9 @@ public VirtualMachineExtensionUpdateProperties withType(String type) { } /** - * Get the typeHandlerVersion property: Specifies the version of the script handler. + * Get the typeHandlerVersion property: Specifies the Major.Minor version of the script handler. Customer is able to + * specify only the Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix version + * in the Major.Minor series. * * @return the typeHandlerVersion value. */ @@ -151,7 +154,9 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion property: Specifies the version of the script handler. + * Set the typeHandlerVersion property: Specifies the Major.Minor version of the script handler. Customer is able to + * specify only the Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix version + * in the Major.Minor series. * * @param typeHandlerVersion the typeHandlerVersion value to set. * @return the VirtualMachineExtensionUpdateProperties object itself. 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 58e63b66cd54..54f0634f4c28 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 @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.compute.models.BootDiagnosticsInstanceView; +import com.azure.resourcemanager.compute.models.CapacityReservationType; import com.azure.resourcemanager.compute.models.DiskInstanceView; import com.azure.resourcemanager.compute.models.HyperVGenerationType; import com.azure.resourcemanager.compute.models.InstanceViewStatus; @@ -121,6 +122,13 @@ public final class VirtualMachineInstanceViewInner implements JsonSerializable> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 1d14c801bfef..4356a1816308 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 6793d0fea9ae..dd75950fe78e 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -853,8 +853,11 @@ public CapacityReservationInner update(String resourceGroupName, String capacity /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -887,7 +890,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter capacityReservationName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext( context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -898,8 +901,11 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -933,7 +939,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter capacityReservationName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, capacityReservationGroupName, capacityReservationName, context); @@ -942,8 +948,11 @@ private Mono>> deleteWithResponseAsync(String resource /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -965,8 +974,11 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -990,8 +1002,11 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -1011,8 +1026,11 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -1033,8 +1051,11 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -1054,8 +1075,11 @@ public Mono deleteAsync(String resourceGroupName, String capacityReservati /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -1077,8 +1101,11 @@ private Mono deleteAsync(String resourceGroupName, String capacityReservat /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -1095,8 +1122,11 @@ public void delete(String resourceGroupName, String capacityReservationGroupName /** * The operation to delete a capacity reservation. This operation is allowed only when all the associated resources * are disassociated from the capacity reservation. Please refer to https://aka.ms/CapacityReservation for more - * details. Note: Block capacity reservations cannot be deleted after it has been successfully allocated until the - * schedule end time. + * details. Note: Block capacity reservations cannot be deleted after they have been successfully allocated until + * the schedule end time. Future capacity reservations (Minimum API version: 2026-04-01) can be deleted if their + * reservation state is one of: Pending, Declined, FulfillmentFailed, or Approved. Otherwise, Future capacity + * reservations in the Committed, Live, or PartiallyFulfilled state cannot be deleted until minimumCommitmentDays + * have elapsed since their scheduled start date. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param capacityReservationGroupName The name of the capacity reservation group. @@ -1147,7 +1177,7 @@ private Mono> listByCapacityReservationG return Mono.error( new IllegalArgumentException("Parameter capacityReservationGroupName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByCapacityReservationGroup(this.client.getEndpoint(), apiVersion, @@ -1194,7 +1224,7 @@ private Mono> listByCapacityReservationG return Mono.error( new IllegalArgumentException("Parameter capacityReservationGroupName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-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 8ae32a2b7a8f..0176376140ab 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 @@ -48,6 +48,7 @@ import com.azure.resourcemanager.compute.fluent.SshPublicKeysClient; import com.azure.resourcemanager.compute.fluent.TenantLevelSharedGalleryInvitesClient; import com.azure.resourcemanager.compute.fluent.UsagesClient; +import com.azure.resourcemanager.compute.fluent.VirtualMachineDiagnosticRunCommandsClient; import com.azure.resourcemanager.compute.fluent.VirtualMachineExtensionImagesClient; import com.azure.resourcemanager.compute.fluent.VirtualMachineExtensionsClient; import com.azure.resourcemanager.compute.fluent.VirtualMachineImagesClient; @@ -56,6 +57,7 @@ import com.azure.resourcemanager.compute.fluent.VirtualMachineScaleSetExtensionsClient; import com.azure.resourcemanager.compute.fluent.VirtualMachineScaleSetLifeCycleHookEventsClient; import com.azure.resourcemanager.compute.fluent.VirtualMachineScaleSetRollingUpgradesClient; +import com.azure.resourcemanager.compute.fluent.VirtualMachineScaleSetVMDiagnosticRunCommandsClient; import com.azure.resourcemanager.compute.fluent.VirtualMachineScaleSetVMExtensionsClient; import com.azure.resourcemanager.compute.fluent.VirtualMachineScaleSetVMRunCommandsClient; import com.azure.resourcemanager.compute.fluent.VirtualMachineScaleSetVMsClient; @@ -420,6 +422,34 @@ public VirtualMachineScaleSetVMRunCommandsClient getVirtualMachineScaleSetVMRunC return this.virtualMachineScaleSetVMRunCommands; } + /** + * The VirtualMachineDiagnosticRunCommandsClient object to access its operations. + */ + private final VirtualMachineDiagnosticRunCommandsClient virtualMachineDiagnosticRunCommands; + + /** + * Gets the VirtualMachineDiagnosticRunCommandsClient object to access its operations. + * + * @return the VirtualMachineDiagnosticRunCommandsClient object. + */ + public VirtualMachineDiagnosticRunCommandsClient getVirtualMachineDiagnosticRunCommands() { + return this.virtualMachineDiagnosticRunCommands; + } + + /** + * The VirtualMachineScaleSetVMDiagnosticRunCommandsClient object to access its operations. + */ + private final VirtualMachineScaleSetVMDiagnosticRunCommandsClient virtualMachineScaleSetVMDiagnosticRunCommands; + + /** + * Gets the VirtualMachineScaleSetVMDiagnosticRunCommandsClient object to access its operations. + * + * @return the VirtualMachineScaleSetVMDiagnosticRunCommandsClient object. + */ + public VirtualMachineScaleSetVMDiagnosticRunCommandsClient getVirtualMachineScaleSetVMDiagnosticRunCommands() { + return this.virtualMachineScaleSetVMDiagnosticRunCommands; + } + /** * The DisksClient object to access its operations. */ @@ -920,6 +950,9 @@ public GallerySharingProfilesClient getGallerySharingProfiles() { this.interconnectBlocks = new InterconnectBlocksClientImpl(this); this.virtualMachineRunCommands = new VirtualMachineRunCommandsClientImpl(this); this.virtualMachineScaleSetVMRunCommands = new VirtualMachineScaleSetVMRunCommandsClientImpl(this); + this.virtualMachineDiagnosticRunCommands = new VirtualMachineDiagnosticRunCommandsClientImpl(this); + this.virtualMachineScaleSetVMDiagnosticRunCommands + = new VirtualMachineScaleSetVMDiagnosticRunCommandsClientImpl(this); this.disks = new DisksClientImpl(this); this.diskAccesses = new DiskAccessesClientImpl(this); this.diskEncryptionSets = new DiskEncryptionSetsClientImpl(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 8c7319ac80ac..9dc5d756d97c 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 04360eb3d58f..2cca50009942 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 13cba9dd2eba..8fbe30455fcf 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 index cd0fedf259ed..75987551f78e 100644 --- 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 @@ -184,7 +184,7 @@ public Mono> getByResourceGroupWithResponseAsyn return Mono .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -226,7 +226,7 @@ private Mono> getByResourceGroupWithResponseAsy return Mono .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -325,7 +325,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { resource.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -373,7 +373,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { resource.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -576,7 +576,7 @@ public Mono>> updateWithResponseAsync(String resourceG } else { properties.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -623,7 +623,7 @@ private Mono>> updateWithResponseAsync(String resource } else { properties.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -811,7 +811,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, interconnectBlockName, context)) @@ -849,7 +849,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, interconnectBlockName, context); @@ -1020,7 +1020,7 @@ private Mono> listByResourceGroupSinglePag return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -1057,7 +1057,7 @@ private Mono> listByResourceGroupSinglePag return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1150,7 +1150,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1181,7 +1181,7 @@ private Mono> listSinglePageAsync(Context return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-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/LogAnalyticsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/LogAnalyticsClientImpl.java index 9cd1bc258150..feae56fabef1 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 cd95c02ad8f8..3ef3cf8d5778 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 d9ec5c203499..31fff855e519 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 91a3a250f7c0..61dcfbda0fc5 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 e701c7080d4e..1946bfb541c2 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 adbac53a056f..534b07d193d1 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 785d96363531..1a78381630c5 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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/VirtualMachineDiagnosticRunCommandsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineDiagnosticRunCommandsClientImpl.java new file mode 100644 index 000000000000..83b4abc599a0 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineDiagnosticRunCommandsClientImpl.java @@ -0,0 +1,1229 @@ +// 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.exception.ManagementException; +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.VirtualMachineDiagnosticRunCommandsClient; +import com.azure.resourcemanager.compute.fluent.models.VirtualMachineDiagnosticRunCommandInner; +import com.azure.resourcemanager.compute.implementation.models.VirtualMachineDiagnosticRunCommandsListResult; +import com.azure.resourcemanager.compute.models.VirtualMachineRunCommandUpdate; +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 VirtualMachineDiagnosticRunCommandsClient. + */ +public final class VirtualMachineDiagnosticRunCommandsClientImpl implements VirtualMachineDiagnosticRunCommandsClient { + /** + * The proxy service used to perform REST calls. + */ + private final VirtualMachineDiagnosticRunCommandsService service; + + /** + * The service client containing this operation class. + */ + private final ComputeManagementClientImpl client; + + /** + * Initializes an instance of VirtualMachineDiagnosticRunCommandsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + VirtualMachineDiagnosticRunCommandsClientImpl(ComputeManagementClientImpl client) { + this.service = RestProxy.create(VirtualMachineDiagnosticRunCommandsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ComputeManagementClientVirtualMachineDiagnosticRunCommands to be used + * by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ComputeManagementClientVirtualMachineDiagnosticRunCommands") + public interface VirtualMachineDiagnosticRunCommandsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/diagnosticRunCommands/{runCommandName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByVirtualMachine( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vmName") String vmName, + @PathParam("runCommandName") String runCommandName, @QueryParam("$expand") String expand, + @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/diagnosticRunCommands/{runCommandName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vmName") String vmName, + @PathParam("runCommandName") String runCommandName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") VirtualMachineDiagnosticRunCommandInner runCommand, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/diagnosticRunCommands/{runCommandName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vmName") String vmName, + @PathParam("runCommandName") String runCommandName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") VirtualMachineRunCommandUpdate runCommand, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/diagnosticRunCommands/{runCommandName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vmName") String vmName, + @PathParam("runCommandName") String runCommandName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/diagnosticRunCommands") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> diagnosticListByVirtualMachine( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vmName") String vmName, + @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> diagnosticListByVirtualMachineNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * The operation to get the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param expand The expand expression to apply on the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getByVirtualMachineWithResponseAsync( + String resourceGroupName, String vmName, String runCommandName, String 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 (vmName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + final String apiVersion = "2026-04-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByVirtualMachine(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vmName, runCommandName, expand, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * The operation to get the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param expand The expand expression to apply on the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByVirtualMachineWithResponseAsync( + String resourceGroupName, String vmName, String runCommandName, String 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 (vmName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + final String apiVersion = "2026-04-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getByVirtualMachine(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vmName, runCommandName, expand, accept, context); + } + + /** + * The operation to get the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByVirtualMachineAsync(String resourceGroupName, + String vmName, String runCommandName) { + final String expand = null; + return getByVirtualMachineWithResponseAsync(resourceGroupName, vmName, runCommandName, expand) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * The operation to get the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param expand The expand expression to apply on the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByVirtualMachineWithResponse(String resourceGroupName, + String vmName, String runCommandName, String expand, Context context) { + return getByVirtualMachineWithResponseAsync(resourceGroupName, vmName, runCommandName, expand, context).block(); + } + + /** + * The operation to get the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public VirtualMachineDiagnosticRunCommandInner getByVirtualMachine(String resourceGroupName, String vmName, + String runCommandName) { + final String expand = null; + return getByVirtualMachineWithResponse(resourceGroupName, vmName, runCommandName, expand, Context.NONE) + .getValue(); + } + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand) { + 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.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + if (runCommand == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommand is required and cannot be null.")); + } else { + runCommand.validate(); + } + final String apiVersion = "2026-04-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, vmName, runCommandName, contentType, accept, + runCommand, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand, 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.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + if (runCommand == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommand is required and cannot be null.")); + } else { + runCommand.validate(); + } + final String apiVersion = "2026-04-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, vmName, runCommandName, contentType, accept, runCommand, context); + } + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginCreateOrUpdateAsync(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, vmName, runCommandName, runCommand); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginCreateOrUpdateAsync(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, vmName, runCommandName, runCommand, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginCreateOrUpdate(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand) { + return this.beginCreateOrUpdateAsync(resourceGroupName, vmName, runCommandName, runCommand).getSyncPoller(); + } + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginCreateOrUpdate(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand, Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, vmName, runCommandName, runCommand, context) + .getSyncPoller(); + } + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineDiagnosticRunCommandInner runCommand) { + return beginCreateOrUpdateAsync(resourceGroupName, vmName, runCommandName, runCommand).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineDiagnosticRunCommandInner runCommand, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, vmName, runCommandName, runCommand, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 createOrUpdate(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineDiagnosticRunCommandInner runCommand) { + createOrUpdateAsync(resourceGroupName, vmName, runCommandName, runCommand).block(); + } + + /** + * The operation to create or update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 createOrUpdate(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineDiagnosticRunCommandInner runCommand, Context context) { + createOrUpdateAsync(resourceGroupName, vmName, runCommandName, runCommand, context).block(); + } + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> updateWithResponseAsync(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineRunCommandUpdate runCommand) { + 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.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + if (runCommand == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommand is required and cannot be null.")); + } else { + runCommand.validate(); + } + final String apiVersion = "2026-04-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, vmName, runCommandName, contentType, accept, runCommand, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineRunCommandUpdate runCommand, 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.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + if (runCommand == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommand is required and cannot be null.")); + } else { + runCommand.validate(); + } + final String apiVersion = "2026-04-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, + vmName, runCommandName, contentType, accept, runCommand, context); + } + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineRunCommandUpdate runCommand) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, vmName, runCommandName, runCommand); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineRunCommandUpdate runCommand, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, vmName, runCommandName, runCommand, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginUpdate(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineRunCommandUpdate runCommand) { + return this.beginUpdateAsync(resourceGroupName, vmName, runCommandName, runCommand).getSyncPoller(); + } + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginUpdate(String resourceGroupName, String vmName, + String runCommandName, VirtualMachineRunCommandUpdate runCommand, Context context) { + return this.beginUpdateAsync(resourceGroupName, vmName, runCommandName, runCommand, context).getSyncPoller(); + } + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineRunCommandUpdate runCommand) { + return beginUpdateAsync(resourceGroupName, vmName, runCommandName, runCommand).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineRunCommandUpdate runCommand, Context context) { + return beginUpdateAsync(resourceGroupName, vmName, runCommandName, runCommand, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 update(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineRunCommandUpdate runCommand) { + updateAsync(resourceGroupName, vmName, runCommandName, runCommand).block(); + } + + /** + * The operation to update the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Update Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 update(String resourceGroupName, String vmName, String runCommandName, + VirtualMachineRunCommandUpdate runCommand, Context context) { + updateAsync(resourceGroupName, vmName, runCommandName, runCommand, context).block(); + } + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmName, + String runCommandName) { + 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.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + final String apiVersion = "2026-04-01"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vmName, runCommandName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmName, + String runCommandName, 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.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + final String apiVersion = "2026-04-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + vmName, runCommandName, context); + } + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmName, + String runCommandName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, vmName, runCommandName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmName, + String runCommandName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, vmName, runCommandName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmName, + String runCommandName) { + return this.beginDeleteAsync(resourceGroupName, vmName, runCommandName).getSyncPoller(); + } + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmName, + String runCommandName, Context context) { + return this.beginDeleteAsync(resourceGroupName, vmName, runCommandName, context).getSyncPoller(); + } + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmName, String runCommandName) { + return beginDeleteAsync(resourceGroupName, vmName, runCommandName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmName, String runCommandName, Context context) { + return beginDeleteAsync(resourceGroupName, vmName, runCommandName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmName, String runCommandName) { + deleteAsync(resourceGroupName, vmName, runCommandName).block(); + } + + /** + * The operation to delete the diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmName, String runCommandName, Context context) { + deleteAsync(resourceGroupName, vmName, runCommandName, context).block(); + } + + /** + * The operation to get all diagnostic run commands of a Virtual Machine. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param expand The expand expression to apply on the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 diagnostic run command operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + diagnosticListByVirtualMachineSinglePageAsync(String resourceGroupName, String vmName, String 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 (vmName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); + } + final String apiVersion = "2026-04-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.diagnosticListByVirtualMachine(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vmName, expand, 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())); + } + + /** + * The operation to get all diagnostic run commands of a Virtual Machine. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param expand The expand expression to apply on the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 diagnostic run command operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> diagnosticListByVirtualMachineSinglePageAsync( + String resourceGroupName, String vmName, String 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 (vmName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); + } + final String apiVersion = "2026-04-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .diagnosticListByVirtualMachine(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vmName, expand, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * The operation to get all diagnostic run commands of a Virtual Machine. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param expand The expand expression to apply on the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux + diagnosticListByVirtualMachineAsync(String resourceGroupName, String vmName, String expand) { + return new PagedFlux<>(() -> diagnosticListByVirtualMachineSinglePageAsync(resourceGroupName, vmName, expand), + nextLink -> diagnosticListByVirtualMachineNextSinglePageAsync(nextLink)); + } + + /** + * The operation to get all diagnostic run commands of a Virtual Machine. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux + diagnosticListByVirtualMachineAsync(String resourceGroupName, String vmName) { + final String expand = null; + return new PagedFlux<>(() -> diagnosticListByVirtualMachineSinglePageAsync(resourceGroupName, vmName, expand), + nextLink -> diagnosticListByVirtualMachineNextSinglePageAsync(nextLink)); + } + + /** + * The operation to get all diagnostic run commands of a Virtual Machine. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param expand The expand expression to apply on the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux + diagnosticListByVirtualMachineAsync(String resourceGroupName, String vmName, String expand, Context context) { + return new PagedFlux<>( + () -> diagnosticListByVirtualMachineSinglePageAsync(resourceGroupName, vmName, expand, context), + nextLink -> diagnosticListByVirtualMachineNextSinglePageAsync(nextLink, context)); + } + + /** + * The operation to get all diagnostic run commands of a Virtual Machine. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable + diagnosticListByVirtualMachine(String resourceGroupName, String vmName) { + final String expand = null; + return new PagedIterable<>(diagnosticListByVirtualMachineAsync(resourceGroupName, vmName, expand)); + } + + /** + * The operation to get all diagnostic run commands of a Virtual Machine. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmName The name of the VirtualMachine. + * @param expand The expand expression to apply on the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable + diagnosticListByVirtualMachine(String resourceGroupName, String vmName, String expand, Context context) { + return new PagedIterable<>(diagnosticListByVirtualMachineAsync(resourceGroupName, vmName, expand, 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 ManagementException 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 diagnostic run command operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + diagnosticListByVirtualMachineNextSinglePageAsync(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.diagnosticListByVirtualMachineNext(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 ManagementException 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 diagnostic run command operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + diagnosticListByVirtualMachineNextSinglePageAsync(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.diagnosticListByVirtualMachineNext(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/VirtualMachineExtensionImagesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionImagesClientImpl.java index b7c3537cd78c..ecbc63607dac 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 @@ -23,6 +23,7 @@ import com.azure.resourcemanager.compute.fluent.VirtualMachineExtensionImagesClient; import com.azure.resourcemanager.compute.fluent.models.VirtualMachineExtensionImageInner; import com.azure.resourcemanager.compute.models.ApiErrorException; +import com.azure.resourcemanager.compute.models.ListVersionsExpandOptions; import java.util.List; import reactor.core.publisher.Mono; @@ -85,7 +86,8 @@ Mono>> listVersions(@HostParam( @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, @PathParam("publisherName") String publisherName, @PathParam("type") String type, @QueryParam("$filter") String filter, @QueryParam("$top") Integer top, - @QueryParam("$orderby") String orderby, @HeaderParam("Accept") String accept, Context context); + @QueryParam("$orderby") String orderby, @QueryParam("$expand") ListVersionsExpandOptions expand, + @HeaderParam("Accept") String accept, Context context); } /** @@ -123,7 +125,7 @@ public Mono> getWithResponseAsync(St if (version == null) { return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -167,7 +169,7 @@ private Mono> getWithResponseAsync(S if (version == null) { return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, @@ -257,7 +259,7 @@ public Mono>> listTypesWithResp if (publisherName == null) { return Mono.error(new IllegalArgumentException("Parameter publisherName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listTypes(this.client.getEndpoint(), apiVersion, @@ -294,7 +296,7 @@ private Mono>> listTypesWithRes if (publisherName == null) { return Mono.error(new IllegalArgumentException("Parameter publisherName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listTypes(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, @@ -357,6 +359,8 @@ public List listTypes(String location, String * @param filter The filter to apply on the operation. * @param top The top parameter. * @param orderby The orderby parameter. + * @param expand Expand the response to include additional read-only metadata. Allowed values: `properties` — + * returns extended metadata (`releaseCategory`, `urgencyLevel`, `runProfile`). * @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. @@ -365,7 +369,8 @@ public List listTypes(String location, String */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> listVersionsWithResponseAsync(String location, - String publisherName, String type, String filter, Integer top, String orderby) { + String publisherName, String type, String filter, Integer top, String orderby, + ListVersionsExpandOptions expand) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -383,14 +388,61 @@ public Mono>> listVersionsWithR if (type == null) { return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listVersions(this.client.getEndpoint(), apiVersion, - this.client.getSubscriptionId(), location, publisherName, type, filter, top, orderby, accept, context)) + .withContext( + context -> service.listVersions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, publisherName, type, filter, top, orderby, expand, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } + /** + * Gets a list of virtual machine extension image versions. + * + * @param location The name of the Azure region. + * @param publisherName The publisherName parameter. + * @param type The type parameter. + * @param filter The filter to apply on the operation. + * @param top The top parameter. + * @param orderby The orderby parameter. + * @param expand Expand the response to include additional read-only metadata. Allowed values: `properties` — + * returns extended metadata (`releaseCategory`, `urgencyLevel`, `runProfile`). + * @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 list of virtual machine extension image versions along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> listVersionsWithResponseAsync(String location, + String publisherName, String type, String filter, Integer top, String orderby, ListVersionsExpandOptions 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 (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (publisherName == null) { + return Mono.error(new IllegalArgumentException("Parameter publisherName is required and cannot be null.")); + } + if (type == null) { + return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); + } + final String apiVersion = "2026-04-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listVersions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, + publisherName, type, filter, top, orderby, expand, accept, context); + } + /** * Gets a list of virtual machine extension image versions. * @@ -427,11 +479,57 @@ private Mono>> listVersionsWith if (type == null) { return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; + final ListVersionsExpandOptions expand = null; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listVersions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location, - publisherName, type, filter, top, orderby, accept, context); + publisherName, type, filter, top, orderby, expand, accept, context); + } + + /** + * Gets a list of virtual machine extension image versions. + * + * @param location The name of the Azure region. + * @param publisherName The publisherName parameter. + * @param type The type parameter. + * @param filter The filter to apply on the operation. + * @param top The top parameter. + * @param orderby The orderby parameter. + * @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 list of virtual machine extension image versions along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> listVersionsWithResponseAsync(String location, + String publisherName, String type, String filter, Integer top, String orderby) { + 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 (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (publisherName == null) { + return Mono.error(new IllegalArgumentException("Parameter publisherName is required and cannot be null.")); + } + if (type == null) { + return Mono.error(new IllegalArgumentException("Parameter type is required and cannot be null.")); + } + final String apiVersion = "2026-04-01"; + final ListVersionsExpandOptions expand = null; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listVersions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + location, publisherName, type, filter, top, orderby, expand, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** @@ -451,10 +549,36 @@ public Mono> listVersionsAsync(String lo final String filter = null; final Integer top = null; final String orderby = null; - return listVersionsWithResponseAsync(location, publisherName, type, filter, top, orderby) + final ListVersionsExpandOptions expand = null; + return listVersionsWithResponseAsync(location, publisherName, type, filter, top, orderby, expand) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } + /** + * Gets a list of virtual machine extension image versions. + * + * @param location The name of the Azure region. + * @param publisherName The publisherName parameter. + * @param type The type parameter. + * @param filter The filter to apply on the operation. + * @param top The top parameter. + * @param orderby The orderby parameter. + * @param expand Expand the response to include additional read-only metadata. Allowed values: `properties` — + * returns extended metadata (`releaseCategory`, `urgencyLevel`, `runProfile`). + * @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 list of virtual machine extension image versions along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response> listVersionsWithResponse(String location, + String publisherName, String type, String filter, Integer top, String orderby, ListVersionsExpandOptions expand, + Context context) { + return listVersionsWithResponseAsync(location, publisherName, type, filter, top, orderby, expand, context) + .block(); + } + /** * Gets a list of virtual machine extension image versions. * @@ -492,6 +616,8 @@ public List listVersions(String location, Str final String filter = null; final Integer top = null; final String orderby = null; - return listVersionsWithResponse(location, publisherName, type, filter, top, orderby, Context.NONE).getValue(); + final ListVersionsExpandOptions expand = null; + return listVersionsWithResponse(location, publisherName, type, filter, top, orderby, expand, Context.NONE) + .getValue(); } } 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 e9f5843fd2ce..8070be311bba 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 95a67cc448b2..eb461a10add5 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 0acf06a955f3..33925e4172d2 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 907365455d26..cd3b86e240aa 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 c613cc40499b..9fac4dc81f3a 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 11ed566a9d60..b90872f6d564 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 d616c49e77e1..20dc4b049035 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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/VirtualMachineScaleSetVMDiagnosticRunCommandsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMDiagnosticRunCommandsClientImpl.java new file mode 100644 index 000000000000..6e99b463fb76 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMDiagnosticRunCommandsClientImpl.java @@ -0,0 +1,1324 @@ +// 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.exception.ManagementException; +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.VirtualMachineScaleSetVMDiagnosticRunCommandsClient; +import com.azure.resourcemanager.compute.fluent.models.VirtualMachineDiagnosticRunCommandInner; +import com.azure.resourcemanager.compute.implementation.models.VirtualMachineDiagnosticRunCommandsListResult; +import com.azure.resourcemanager.compute.models.VirtualMachineRunCommandUpdate; +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 + * VirtualMachineScaleSetVMDiagnosticRunCommandsClient. + */ +public final class VirtualMachineScaleSetVMDiagnosticRunCommandsClientImpl + implements VirtualMachineScaleSetVMDiagnosticRunCommandsClient { + /** + * The proxy service used to perform REST calls. + */ + private final VirtualMachineScaleSetVMDiagnosticRunCommandsService service; + + /** + * The service client containing this operation class. + */ + private final ComputeManagementClientImpl client; + + /** + * Initializes an instance of VirtualMachineScaleSetVMDiagnosticRunCommandsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + VirtualMachineScaleSetVMDiagnosticRunCommandsClientImpl(ComputeManagementClientImpl client) { + this.service = RestProxy.create(VirtualMachineScaleSetVMDiagnosticRunCommandsService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ComputeManagementClientVirtualMachineScaleSetVMDiagnosticRunCommands + * to be used by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ComputeManagementClientVirtualMachineScaleSetVMDiagnosticRunCommands") + public interface VirtualMachineScaleSetVMDiagnosticRunCommandsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/diagnosticRunCommands/{runCommandName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("vmScaleSetName") String vmScaleSetName, @PathParam("instanceId") String instanceId, + @PathParam("runCommandName") String runCommandName, @QueryParam("$expand") String expand, + @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/diagnosticRunCommands/{runCommandName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("vmScaleSetName") String vmScaleSetName, @PathParam("instanceId") String instanceId, + @PathParam("runCommandName") String runCommandName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") VirtualMachineDiagnosticRunCommandInner runCommand, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/diagnosticRunCommands/{runCommandName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("vmScaleSetName") String vmScaleSetName, @PathParam("instanceId") String instanceId, + @PathParam("runCommandName") String runCommandName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") VirtualMachineRunCommandUpdate runCommand, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/diagnosticRunCommands/{runCommandName}") + @ExpectedResponses({ 200, 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("vmScaleSetName") String vmScaleSetName, @PathParam("instanceId") String instanceId, + @PathParam("runCommandName") String runCommandName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/diagnosticRunCommands") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> diagnosticList( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("vmScaleSetName") String vmScaleSetName, @PathParam("instanceId") String instanceId, + @QueryParam("$expand") String expand, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> diagnosticListNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * The operation to get the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param expand The expand expression to apply on the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, + String vmScaleSetName, String instanceId, String runCommandName, String 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 (vmScaleSetName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); + } + if (instanceId == null) { + return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + final String apiVersion = "2026-04-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vmScaleSetName, instanceId, runCommandName, expand, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * The operation to get the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param expand The expand expression to apply on the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String vmScaleSetName, String instanceId, String runCommandName, String 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 (vmScaleSetName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); + } + if (instanceId == null) { + return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + final String apiVersion = "2026-04-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + vmScaleSetName, instanceId, runCommandName, expand, accept, context); + } + + /** + * The operation to get the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName) { + final String expand = null; + return getWithResponseAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, expand) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * The operation to get the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param expand The expand expression to apply on the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, + String vmScaleSetName, String instanceId, String runCommandName, String expand, Context context) { + return getWithResponseAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, expand, context) + .block(); + } + + /** + * The operation to get the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public VirtualMachineDiagnosticRunCommandInner get(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName) { + final String expand = null; + return getWithResponse(resourceGroupName, vmScaleSetName, instanceId, runCommandName, expand, Context.NONE) + .getValue(); + } + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String vmScaleSetName, String instanceId, String runCommandName, + VirtualMachineDiagnosticRunCommandInner runCommand) { + 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 (vmScaleSetName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); + } + if (instanceId == null) { + return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + if (runCommand == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommand is required and cannot be null.")); + } else { + runCommand.validate(); + } + final String apiVersion = "2026-04-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, vmScaleSetName, instanceId, runCommandName, + contentType, accept, runCommand, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String vmScaleSetName, String instanceId, String runCommandName, + VirtualMachineDiagnosticRunCommandInner runCommand, 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 (vmScaleSetName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); + } + if (instanceId == null) { + return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + if (runCommand == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommand is required and cannot be null.")); + } else { + runCommand.validate(); + } + final String apiVersion = "2026-04-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, vmScaleSetName, instanceId, runCommandName, contentType, accept, runCommand, context); + } + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginCreateOrUpdateAsync(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, vmScaleSetName, + instanceId, runCommandName, runCommand); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginCreateOrUpdateAsync(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, vmScaleSetName, + instanceId, runCommandName, runCommand, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginCreateOrUpdate(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand) { + return this.beginCreateOrUpdateAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, runCommand) + .getSyncPoller(); + } + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginCreateOrUpdate(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand, Context context) { + return this + .beginCreateOrUpdateAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, runCommand, + context) + .getSyncPoller(); + } + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, + String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand) { + return beginCreateOrUpdateAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, runCommand) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, + String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, runCommand, + context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 createOrUpdate(String resourceGroupName, String vmScaleSetName, String instanceId, + String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand) { + createOrUpdateAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, runCommand).block(); + } + + /** + * The operation to create or update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Parameters supplied to the Create Virtual Machine Diagnostic RunCommand operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 createOrUpdate(String resourceGroupName, String vmScaleSetName, String instanceId, + String runCommandName, VirtualMachineDiagnosticRunCommandInner runCommand, Context context) { + createOrUpdateAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, runCommand, context).block(); + } + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> updateWithResponseAsync(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineRunCommandUpdate runCommand) { + 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 (vmScaleSetName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); + } + if (instanceId == null) { + return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + if (runCommand == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommand is required and cannot be null.")); + } else { + runCommand.validate(); + } + final String apiVersion = "2026-04-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, vmScaleSetName, instanceId, runCommandName, + contentType, accept, runCommand, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineRunCommandUpdate runCommand, 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 (vmScaleSetName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); + } + if (instanceId == null) { + return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + if (runCommand == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommand is required and cannot be null.")); + } else { + runCommand.validate(); + } + final String apiVersion = "2026-04-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, + vmScaleSetName, instanceId, runCommandName, contentType, accept, runCommand, context); + } + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineRunCommandUpdate runCommand) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, runCommand); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginUpdateAsync(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineRunCommandUpdate runCommand, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = updateWithResponseAsync(resourceGroupName, vmScaleSetName, instanceId, + runCommandName, runCommand, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginUpdate(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineRunCommandUpdate runCommand) { + return this.beginUpdateAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, runCommand) + .getSyncPoller(); + } + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 describes a Virtual Machine diagnostic run command. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginUpdate(String resourceGroupName, String vmScaleSetName, + String instanceId, String runCommandName, VirtualMachineRunCommandUpdate runCommand, Context context) { + return this.beginUpdateAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, runCommand, context) + .getSyncPoller(); + } + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, + String runCommandName, VirtualMachineRunCommandUpdate runCommand) { + return beginUpdateAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, runCommand).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return describes a Virtual Machine diagnostic run command on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String vmScaleSetName, String instanceId, + String runCommandName, VirtualMachineRunCommandUpdate runCommand, Context context) { + return beginUpdateAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, runCommand, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 update(String resourceGroupName, String vmScaleSetName, String instanceId, String runCommandName, + VirtualMachineRunCommandUpdate runCommand) { + updateAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, runCommand).block(); + } + + /** + * The operation to update the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param runCommand Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 update(String resourceGroupName, String vmScaleSetName, String instanceId, String runCommandName, + VirtualMachineRunCommandUpdate runCommand, Context context) { + updateAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, runCommand, context).block(); + } + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmScaleSetName, + String instanceId, String runCommandName) { + 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 (vmScaleSetName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); + } + if (instanceId == null) { + return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + final String apiVersion = "2026-04-01"; + return FluxUtil + .withContext( + context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vmScaleSetName, instanceId, runCommandName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmScaleSetName, + String instanceId, String runCommandName, 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 (vmScaleSetName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); + } + if (instanceId == null) { + return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); + } + if (runCommandName == null) { + return Mono.error(new IllegalArgumentException("Parameter runCommandName is required and cannot be null.")); + } + final String apiVersion = "2026-04-01"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + vmScaleSetName, instanceId, runCommandName, context); + } + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmScaleSetName, + String instanceId, String runCommandName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmScaleSetName, + String instanceId, String runCommandName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmScaleSetName, + String instanceId, String runCommandName) { + return this.beginDeleteAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName).getSyncPoller(); + } + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmScaleSetName, + String instanceId, String runCommandName, Context context) { + return this.beginDeleteAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, context) + .getSyncPoller(); + } + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmScaleSetName, String instanceId, + String runCommandName) { + return beginDeleteAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmScaleSetName, String instanceId, + String runCommandName, Context context) { + return beginDeleteAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmScaleSetName, String instanceId, String runCommandName) { + deleteAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName).block(); + } + + /** + * The operation to delete the VMSS VM diagnostic run command. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param runCommandName The name of the VirtualMachineDiagnosticRunCommand. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 vmScaleSetName, String instanceId, String runCommandName, + Context context) { + deleteAsync(resourceGroupName, vmScaleSetName, instanceId, runCommandName, context).block(); + } + + /** + * The operation to get all diagnostic run commands of an instance in Virtual Machine Scaleset. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param expand The expand expression to apply on the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 diagnostic run command operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> diagnosticListSinglePageAsync( + String resourceGroupName, String vmScaleSetName, String instanceId, String 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 (vmScaleSetName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); + } + if (instanceId == null) { + return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); + } + final String apiVersion = "2026-04-01"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.diagnosticList(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, instanceId, expand, 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())); + } + + /** + * The operation to get all diagnostic run commands of an instance in Virtual Machine Scaleset. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param expand The expand expression to apply on the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 diagnostic run command operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> diagnosticListSinglePageAsync( + String resourceGroupName, String vmScaleSetName, String instanceId, String 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 (vmScaleSetName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); + } + if (instanceId == null) { + return Mono.error(new IllegalArgumentException("Parameter instanceId is required and cannot be null.")); + } + final String apiVersion = "2026-04-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .diagnosticList(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, + vmScaleSetName, instanceId, expand, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * The operation to get all diagnostic run commands of an instance in Virtual Machine Scaleset. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param expand The expand expression to apply on the operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux diagnosticListAsync(String resourceGroupName, + String vmScaleSetName, String instanceId, String expand) { + return new PagedFlux<>( + () -> diagnosticListSinglePageAsync(resourceGroupName, vmScaleSetName, instanceId, expand), + nextLink -> diagnosticListNextSinglePageAsync(nextLink)); + } + + /** + * The operation to get all diagnostic run commands of an instance in Virtual Machine Scaleset. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux diagnosticListAsync(String resourceGroupName, + String vmScaleSetName, String instanceId) { + final String expand = null; + return new PagedFlux<>( + () -> diagnosticListSinglePageAsync(resourceGroupName, vmScaleSetName, instanceId, expand), + nextLink -> diagnosticListNextSinglePageAsync(nextLink)); + } + + /** + * The operation to get all diagnostic run commands of an instance in Virtual Machine Scaleset. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param expand The expand expression to apply on the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux diagnosticListAsync(String resourceGroupName, + String vmScaleSetName, String instanceId, String expand, Context context) { + return new PagedFlux<>( + () -> diagnosticListSinglePageAsync(resourceGroupName, vmScaleSetName, instanceId, expand, context), + nextLink -> diagnosticListNextSinglePageAsync(nextLink, context)); + } + + /** + * The operation to get all diagnostic run commands of an instance in Virtual Machine Scaleset. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable diagnosticList(String resourceGroupName, + String vmScaleSetName, String instanceId) { + final String expand = null; + return new PagedIterable<>(diagnosticListAsync(resourceGroupName, vmScaleSetName, instanceId, expand)); + } + + /** + * The operation to get all diagnostic run commands of an instance in Virtual Machine Scaleset. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VirtualMachineScaleSet. + * @param instanceId The name of the VirtualMachineScaleSetVM. + * @param expand The expand expression to apply on the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException 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 diagnostic run command operation response as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable diagnosticList(String resourceGroupName, + String vmScaleSetName, String instanceId, String expand, Context context) { + return new PagedIterable<>(diagnosticListAsync(resourceGroupName, vmScaleSetName, instanceId, expand, 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 ManagementException 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 diagnostic run command operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + diagnosticListNextSinglePageAsync(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.diagnosticListNext(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 ManagementException 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 diagnostic run command operation response along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + diagnosticListNextSinglePageAsync(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.diagnosticListNext(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/VirtualMachineScaleSetVMExtensionsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMExtensionsClientImpl.java index 3519c40e21d7..4154cc1ef721 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 69418d9da12a..b27b792f6a8b 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 5306a4bc2595..bd9981efdcb6 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 c6b131a56203..4f96e82a29f6 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 @@ -44,6 +44,7 @@ import com.azure.resourcemanager.compute.implementation.models.VirtualMachineScaleSetListWithLinkResult; import com.azure.resourcemanager.compute.models.ApiErrorException; import com.azure.resourcemanager.compute.models.ExpandTypesForGetVMScaleSets; +import com.azure.resourcemanager.compute.models.MigrateVMAvailabilityZoneInput; import com.azure.resourcemanager.compute.models.OrchestrationServiceStateInput; import com.azure.resourcemanager.compute.models.VMScaleSetConvertToSinglePlacementGroupInput; import com.azure.resourcemanager.compute.models.VMScaleSetScaleOutInput; @@ -343,6 +344,16 @@ Mono>> scaleOut(@HostParam("endpoint") String endpoint @PathParam("vmScaleSetName") String vmScaleSetName, @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") VMScaleSetScaleOutInput parameters, Context context); + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/migrateVMAvailabilityZone") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ApiErrorException.class) + Mono>> migrateVMAvailabilityZone(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("vmScaleSetName") String vmScaleSetName, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") MigrateVMAvailabilityZoneInput body, Context context); + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets") @ExpectedResponses({ 200 }) @@ -423,7 +434,7 @@ public Mono> getByResourceGroupWithRespons if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -463,7 +474,7 @@ private Mono> getByResourceGroupWithRespon if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -561,7 +572,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -612,7 +623,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -889,7 +900,7 @@ public Mono>> updateWithResponseAsync(String resourceG } else { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -939,7 +950,7 @@ private Mono>> updateWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -1203,7 +1214,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, forceDeletion, context)) @@ -1240,7 +1251,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, forceDeletion, context); @@ -1450,7 +1461,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion, @@ -1486,7 +1497,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1576,7 +1587,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1608,7 +1619,7 @@ private Mono> listSinglePageAsync(Con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-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 +1724,7 @@ public Mono>> approveRollingUpgradeWithResponseAsync(S if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.approveRollingUpgrade(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context)) @@ -1753,7 +1764,7 @@ private Mono>> approveRollingUpgradeWithResponseAsync( if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.approveRollingUpgrade(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context); @@ -1977,7 +1988,7 @@ public Mono> convertToSinglePlacementGroupWithResponseAsync(Strin } else { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; return FluxUtil .withContext(context -> service.convertToSinglePlacementGroup(this.client.getEndpoint(), apiVersion, @@ -2020,7 +2031,7 @@ private Mono> convertToSinglePlacementGroupWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; context = this.client.mergeContext(context); return service.convertToSinglePlacementGroup(this.client.getEndpoint(), apiVersion, @@ -2115,7 +2126,7 @@ public Mono>> deallocateWithResponseAsync(String resou if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.deallocate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, hibernate, vmInstanceIDs, context)) @@ -2158,7 +2169,7 @@ private Mono>> deallocateWithResponseAsync(String reso if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.deallocate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, hibernate, vmInstanceIDs, context); @@ -2408,7 +2419,7 @@ public Mono>> deleteInstancesWithResponseAsync(String } else { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; return FluxUtil .withContext(context -> service.deleteInstances(this.client.getEndpoint(), apiVersion, @@ -2455,7 +2466,7 @@ private Mono>> deleteInstancesWithResponseAsync(String } else { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; context = this.client.mergeContext(context); return service.deleteInstances(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2700,7 +2711,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.forceRecoveryServiceFabricPlatformUpdateDomainWalk( @@ -2743,7 +2754,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.forceRecoveryServiceFabricPlatformUpdateDomainWalk(this.client.getEndpoint(), apiVersion, @@ -2842,7 +2853,7 @@ public RecoveryWalkResponseInner forceRecoveryServiceFabricPlatformUpdateDomainW if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getInstanceView(this.client.getEndpoint(), apiVersion, @@ -2880,7 +2891,7 @@ public RecoveryWalkResponseInner forceRecoveryServiceFabricPlatformUpdateDomainW if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getInstanceView(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2970,7 +2981,7 @@ public Mono>> updateInstancesWithResponseAsync(String } else { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-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 +3023,7 @@ private Mono>> updateInstancesWithResponseAsync(String } else { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; context = this.client.mergeContext(context); return service.updateInstances(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -3196,7 +3207,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getOSUpgradeHistory(this.client.getEndpoint(), apiVersion, @@ -3237,7 +3248,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -3349,7 +3360,7 @@ public Mono>> performMaintenanceWithResponseAsync(Stri if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.performMaintenance(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context)) @@ -3391,7 +3402,7 @@ private Mono>> performMaintenanceWithResponseAsync(Str if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.performMaintenance(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context); @@ -3635,7 +3646,7 @@ public Mono>> powerOffWithResponseAsync(String resourc if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext( context -> service.powerOff(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -3679,7 +3690,7 @@ private Mono>> powerOffWithResponseAsync(String resour if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.powerOff(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, skipShutdown, vmInstanceIDs, context); @@ -3920,7 +3931,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.reapply(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, context)) @@ -3956,7 +3967,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.reapply(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, context); @@ -4126,7 +4137,7 @@ public Mono>> redeployWithResponseAsync(String resourc if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.redeploy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context)) @@ -4167,7 +4178,7 @@ private Mono>> redeployWithResponseAsync(String resour if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.redeploy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context); @@ -4398,7 +4409,7 @@ public Mono>> reimageWithResponseAsync(String resource if (vmScaleSetReimageInput != null) { vmScaleSetReimageInput.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.reimage(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmScaleSetReimageInput, context)) @@ -4440,7 +4451,7 @@ private Mono>> reimageWithResponseAsync(String resourc if (vmScaleSetReimageInput != null) { vmScaleSetReimageInput.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.reimage(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmScaleSetReimageInput, context); @@ -4681,7 +4692,7 @@ public Mono>> reimageAllWithResponseAsync(String resou if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.reimageAll(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context)) @@ -4722,7 +4733,7 @@ private Mono>> reimageAllWithResponseAsync(String reso if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.reimageAll(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context); @@ -4951,7 +4962,7 @@ public Mono>> restartWithResponseAsync(String resource if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.restart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context)) @@ -4991,7 +5002,7 @@ private Mono>> restartWithResponseAsync(String resourc if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.restart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context); @@ -5212,7 +5223,7 @@ public Mono>> setOrchestrationServiceStateWithResponse } else { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; return FluxUtil .withContext(context -> service.setOrchestrationServiceState(this.client.getEndpoint(), apiVersion, @@ -5255,7 +5266,7 @@ private Mono>> setOrchestrationServiceStateWithRespons } else { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; context = this.client.mergeContext(context); return service.setOrchestrationServiceState(this.client.getEndpoint(), apiVersion, @@ -5441,7 +5452,7 @@ private Mono> listSkusSinglePageAs if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listSkus(this.client.getEndpoint(), apiVersion, @@ -5482,7 +5493,7 @@ private Mono> listSkusSinglePageAs if (vmScaleSetName == null) { return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -5598,7 +5609,7 @@ public Mono>> startWithResponseAsync(String resourceGr if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context)) @@ -5638,7 +5649,7 @@ private Mono>> startWithResponseAsync(String resourceG if (vmInstanceIDs != null) { vmInstanceIDs.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, vmInstanceIDs, context); @@ -5859,7 +5870,7 @@ public Mono>> scaleOutWithResponseAsync(String resourc } else { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; return FluxUtil .withContext(context -> service.scaleOut(this.client.getEndpoint(), apiVersion, @@ -5902,7 +5913,7 @@ private Mono>> scaleOutWithResponseAsync(String resour } else { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; context = this.client.mergeContext(context); return service.scaleOut(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -6055,6 +6066,238 @@ public void scaleOut(String resourceGroupName, String vmScaleSetName, VMScaleSet scaleOutAsync(resourceGroupName, vmScaleSetName, parameters, context).block(); } + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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>> migrateVMAvailabilityZoneWithResponseAsync(String resourceGroupName, + String vmScaleSetName, MigrateVMAvailabilityZoneInput body) { + 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 (vmScaleSetName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String apiVersion = "2026-04-01"; + final String contentType = "application/json"; + return FluxUtil + .withContext(context -> service.migrateVMAvailabilityZone(this.client.getEndpoint(), apiVersion, + this.client.getSubscriptionId(), resourceGroupName, vmScaleSetName, contentType, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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>> migrateVMAvailabilityZoneWithResponseAsync(String resourceGroupName, + String vmScaleSetName, MigrateVMAvailabilityZoneInput body, 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 (vmScaleSetName == null) { + return Mono.error(new IllegalArgumentException("Parameter vmScaleSetName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String apiVersion = "2026-04-01"; + final String contentType = "application/json"; + context = this.client.mergeContext(context); + return service.migrateVMAvailabilityZone(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), + resourceGroupName, vmScaleSetName, contentType, body, context); + } + + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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> beginMigrateVMAvailabilityZoneAsync(String resourceGroupName, + String vmScaleSetName, MigrateVMAvailabilityZoneInput body) { + Mono>> mono + = migrateVMAvailabilityZoneWithResponseAsync(resourceGroupName, vmScaleSetName, body); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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> beginMigrateVMAvailabilityZoneAsync(String resourceGroupName, + String vmScaleSetName, MigrateVMAvailabilityZoneInput body, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = migrateVMAvailabilityZoneWithResponseAsync(resourceGroupName, vmScaleSetName, body, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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> beginMigrateVMAvailabilityZone(String resourceGroupName, + String vmScaleSetName, MigrateVMAvailabilityZoneInput body) { + return this.beginMigrateVMAvailabilityZoneAsync(resourceGroupName, vmScaleSetName, body).getSyncPoller(); + } + + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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> beginMigrateVMAvailabilityZone(String resourceGroupName, + String vmScaleSetName, MigrateVMAvailabilityZoneInput body, Context context) { + return this.beginMigrateVMAvailabilityZoneAsync(resourceGroupName, vmScaleSetName, body, context) + .getSyncPoller(); + } + + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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 migrateVMAvailabilityZoneAsync(String resourceGroupName, String vmScaleSetName, + MigrateVMAvailabilityZoneInput body) { + return beginMigrateVMAvailabilityZoneAsync(resourceGroupName, vmScaleSetName, body).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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 migrateVMAvailabilityZoneAsync(String resourceGroupName, String vmScaleSetName, + MigrateVMAvailabilityZoneInput body, Context context) { + return beginMigrateVMAvailabilityZoneAsync(resourceGroupName, vmScaleSetName, body, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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 migrateVMAvailabilityZone(String resourceGroupName, String vmScaleSetName, + MigrateVMAvailabilityZoneInput body) { + migrateVMAvailabilityZoneAsync(resourceGroupName, vmScaleSetName, body).block(); + } + + /** + * Migrates one or more virtual machines in a VM scale set to an availability zone. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmScaleSetName The name of the VM scale set. + * @param body The input object for the MigrateVMAvailabilityZone API. + * @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 migrateVMAvailabilityZone(String resourceGroupName, String vmScaleSetName, + MigrateVMAvailabilityZoneInput body, Context context) { + migrateVMAvailabilityZoneAsync(resourceGroupName, vmScaleSetName, body, context).block(); + } + /** * Gets all the VM scale sets under the specified subscription for the specified location. * @@ -6078,7 +6321,7 @@ private Mono> listByLocationSinglePag if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByLocation(this.client.getEndpoint(), apiVersion, @@ -6113,7 +6356,7 @@ private Mono> listByLocationSinglePag if (location == null) { return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-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 1c11a89ffc0f..c0bdd3e967c0 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 0fd08cef6207..9260f7ff4d68 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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.deallocate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, hibernate, forceDeallocate, context)) @@ -2738,7 +2738,7 @@ private Mono>> deallocateWithResponseAsync(String reso if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.deallocate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, hibernate, forceDeallocate, context); @@ -2775,7 +2775,7 @@ private Mono>> deallocateWithResponseAsync(String reso if (vmName == null) { return Mono.error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final Boolean forceDeallocate = null; context = this.client.mergeContext(context); return service.deallocate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2812,7 +2812,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; final Boolean forceDeallocate = null; return FluxUtil .withContext(context -> service.deallocate(this.client.getEndpoint(), apiVersion, @@ -3169,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.generalize(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context)) @@ -3208,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.generalize(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context); @@ -3307,7 +3307,7 @@ public Mono>> installPatchesWithResponseAsync(String r } else { installPatchesInput.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -3354,7 +3354,7 @@ private Mono>> installPatchesWithResponseAsync(String } else { installPatchesInput.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -3548,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.instanceView(this.client.getEndpoint(), apiVersion, @@ -3586,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.instanceView(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -3669,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.performMaintenance(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context)) @@ -3705,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.performMaintenance(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context); @@ -3873,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.powerOff(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, skipShutdown, context)) @@ -3912,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.powerOff(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, skipShutdown, context); @@ -4137,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.reapply(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context)) @@ -4173,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.reapply(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context); @@ -4335,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.redeploy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context)) @@ -4371,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.redeploy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context); @@ -4542,7 +4542,7 @@ public Mono>> reimageWithResponseAsync(String resource if (parameters != null) { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.reimage(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, parameters, context)) @@ -4586,7 +4586,7 @@ private Mono>> reimageWithResponseAsync(String resourc if (parameters != null) { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.reimage(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, parameters, context); @@ -4838,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.restart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context)) @@ -4874,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.restart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context); @@ -5041,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.retrieveBootDiagnosticsData(this.client.getEndpoint(), apiVersion, @@ -5083,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.retrieveBootDiagnosticsData(this.client.getEndpoint(), apiVersion, @@ -5173,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.simulateEviction(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context)) @@ -5209,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.simulateEviction(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context); @@ -5287,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context)) @@ -5323,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.start(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, context); @@ -5487,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAvailableSizes(this.client.getEndpoint(), apiVersion, @@ -5527,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -5637,7 +5637,7 @@ public Mono>> runCommandWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -5681,7 +5681,7 @@ private Mono>> runCommandWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String contentType = "application/json"; final String accept = "application/json"; context = this.client.mergeContext(context); @@ -5869,7 +5869,7 @@ public Mono>> migrateToVMScaleSetWithResponseAsync(Str if (parameters != null) { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; return FluxUtil .withContext(context -> service.migrateToVMScaleSet(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, parameters, context)) @@ -5909,7 +5909,7 @@ private Mono>> migrateToVMScaleSetWithResponseAsync(St if (parameters != null) { parameters.validate(); } - final String apiVersion = "2026-03-01"; + final String apiVersion = "2026-04-01"; context = this.client.mergeContext(context); return service.migrateToVMScaleSet(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, vmName, parameters, context); @@ -6119,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 = "2026-03-01"; + final String apiVersion = "2026-04-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByLocation(this.client.getEndpoint(), apiVersion, @@ -6153,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 = "2026-03-01"; + final String apiVersion = "2026-04-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/VirtualMachineDiagnosticRunCommandsListResult.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineDiagnosticRunCommandsListResult.java new file mode 100644 index 000000000000..c685a286822f --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineDiagnosticRunCommandsListResult.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.VirtualMachineDiagnosticRunCommandInner; +import java.io.IOException; +import java.util.List; + +/** + * The List diagnostic run command operation response. + */ +@Immutable +public final class VirtualMachineDiagnosticRunCommandsListResult + implements JsonSerializable { + /* + * The list of diagnostic run commands. + */ + private List value; + + /* + * The uri to fetch the next page of diagnostic run commands. + */ + private String nextLink; + + /** + * Creates an instance of VirtualMachineDiagnosticRunCommandsListResult class. + */ + private VirtualMachineDiagnosticRunCommandsListResult() { + } + + /** + * Get the value property: The list of diagnostic run commands. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The uri to fetch the next page of diagnostic run commands. + * + * @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 VirtualMachineDiagnosticRunCommandsListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(VirtualMachineDiagnosticRunCommandsListResult.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 VirtualMachineDiagnosticRunCommandsListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VirtualMachineDiagnosticRunCommandsListResult 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 VirtualMachineDiagnosticRunCommandsListResult. + */ + public static VirtualMachineDiagnosticRunCommandsListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VirtualMachineDiagnosticRunCommandsListResult deserializedVirtualMachineDiagnosticRunCommandsListResult + = new VirtualMachineDiagnosticRunCommandsListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> VirtualMachineDiagnosticRunCommandInner.fromJson(reader1)); + deserializedVirtualMachineDiagnosticRunCommandsListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedVirtualMachineDiagnosticRunCommandsListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedVirtualMachineDiagnosticRunCommandsListResult; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/AdditionalDiskProperties.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/AdditionalDiskProperties.java new file mode 100644 index 000000000000..9f3f993723fb --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/AdditionalDiskProperties.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; + +/** + * Specifies additional properties for a managed disk that can be set at the time of implicit creation of the disk. + */ +@Fluent +public final class AdditionalDiskProperties implements JsonSerializable { + /* + * Specifies the managed disk properties that can be set at the time of implicit creation of the disk. + */ + private VirtualMachineDiskProperties managedDiskProperties; + + /** + * Creates an instance of AdditionalDiskProperties class. + */ + public AdditionalDiskProperties() { + } + + /** + * Get the managedDiskProperties property: Specifies the managed disk properties that can be set at the time of + * implicit creation of the disk. + * + * @return the managedDiskProperties value. + */ + public VirtualMachineDiskProperties managedDiskProperties() { + return this.managedDiskProperties; + } + + /** + * Set the managedDiskProperties property: Specifies the managed disk properties that can be set at the time of + * implicit creation of the disk. + * + * @param managedDiskProperties the managedDiskProperties value to set. + * @return the AdditionalDiskProperties object itself. + */ + public AdditionalDiskProperties withManagedDiskProperties(VirtualMachineDiskProperties managedDiskProperties) { + this.managedDiskProperties = managedDiskProperties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (managedDiskProperties() != null) { + managedDiskProperties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("managedDiskProperties", this.managedDiskProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AdditionalDiskProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AdditionalDiskProperties 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 AdditionalDiskProperties. + */ + public static AdditionalDiskProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AdditionalDiskProperties deserializedAdditionalDiskProperties = new AdditionalDiskProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("managedDiskProperties".equals(fieldName)) { + deserializedAdditionalDiskProperties.managedDiskProperties + = VirtualMachineDiskProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAdditionalDiskProperties; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationGroupUpdate.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationGroupUpdate.java index f001335276c9..1a3e3e253552 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationGroupUpdate.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationGroupUpdate.java @@ -110,9 +110,13 @@ public CapacityReservationGroupUpdate withSharingProfile(ResourceSharingProfile /** * Get the reservationType property: Indicates the type of capacity reservation. Allowed values are 'Block' for - * block capacity reservations and 'Targeted' for reservations that enable a VM to consume a specific capacity - * reservation when a capacity reservation group is provided. The reservation type is immutable and cannot be - * changed after it is assigned. + * block capacity reservations that enable a VM to consume capacity only from this capacity block when it is + * associated using a capacity reservation group, 'Targeted' for reservations that enable a VM to consume capacity + * from an explicitly associated capacity reservation group and fall back to the publicly available capacity if the + * reservation is full, and 'Open' for reservations that a VM consumes when it is eligible from an implicitly + * associated capacity reservation group with the matching VM size and zone without associating that capacity + * reservation group and fall back to the publicly available capacity if the reservation is full. The reservation + * type is immutable and cannot be changed after the capacity reservation group is created. * * @return the reservationType value. */ @@ -122,9 +126,13 @@ public ReservationType reservationType() { /** * Set the reservationType property: Indicates the type of capacity reservation. Allowed values are 'Block' for - * block capacity reservations and 'Targeted' for reservations that enable a VM to consume a specific capacity - * reservation when a capacity reservation group is provided. The reservation type is immutable and cannot be - * changed after it is assigned. + * block capacity reservations that enable a VM to consume capacity only from this capacity block when it is + * associated using a capacity reservation group, 'Targeted' for reservations that enable a VM to consume capacity + * from an explicitly associated capacity reservation group and fall back to the publicly available capacity if the + * reservation is full, and 'Open' for reservations that a VM consumes when it is eligible from an implicitly + * associated capacity reservation group with the matching VM size and zone without associating that capacity + * reservation group and fall back to the publicly available capacity if the reservation is full. The reservation + * type is immutable and cannot be changed after the capacity reservation group is created. * * @param reservationType the reservationType value to set. * @return the CapacityReservationGroupUpdate object itself. diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationInstanceView.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationInstanceView.java index fa8516fcb21c..699d2f2c0b71 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationInstanceView.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationInstanceView.java @@ -28,6 +28,12 @@ public class CapacityReservationInstanceView implements JsonSerializable statuses; + /* + * The reservation state information for a capacity reservation, this detail is primarily provided for Future + * capacity reservations. Minimum API version: 2026-04-01. + */ + private CapacityReservationStateInfo reservationStateInfo; + /** * Creates an instance of CapacityReservationInstanceView class. */ @@ -74,6 +80,28 @@ CapacityReservationInstanceView withStatuses(List statuses) return this; } + /** + * Get the reservationStateInfo property: The reservation state information for a capacity reservation, this detail + * is primarily provided for Future capacity reservations. Minimum API version: 2026-04-01. + * + * @return the reservationStateInfo value. + */ + public CapacityReservationStateInfo reservationStateInfo() { + return this.reservationStateInfo; + } + + /** + * Set the reservationStateInfo property: The reservation state information for a capacity reservation, this detail + * is primarily provided for Future capacity reservations. Minimum API version: 2026-04-01. + * + * @param reservationStateInfo the reservationStateInfo value to set. + * @return the CapacityReservationInstanceView object itself. + */ + CapacityReservationInstanceView withReservationStateInfo(CapacityReservationStateInfo reservationStateInfo) { + this.reservationStateInfo = reservationStateInfo; + return this; + } + /** * Validates the instance. * @@ -86,6 +114,9 @@ public void validate() { if (statuses() != null) { statuses().forEach(e -> e.validate()); } + if (reservationStateInfo() != null) { + reservationStateInfo().validate(); + } } /** @@ -96,6 +127,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("utilizationInfo", this.utilizationInfo); jsonWriter.writeArrayField("statuses", this.statuses, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("reservationStateInfo", this.reservationStateInfo); return jsonWriter.writeEndObject(); } @@ -122,6 +154,9 @@ public static CapacityReservationInstanceView fromJson(JsonReader jsonReader) th List statuses = reader.readArray(reader1 -> InstanceViewStatus.fromJson(reader1)); deserializedCapacityReservationInstanceView.statuses = statuses; + } else if ("reservationStateInfo".equals(fieldName)) { + deserializedCapacityReservationInstanceView.reservationStateInfo + = CapacityReservationStateInfo.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationInstanceViewWithName.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationInstanceViewWithName.java index afd0e965f1d0..84a355e3b93f 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationInstanceViewWithName.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationInstanceViewWithName.java @@ -22,6 +22,12 @@ public final class CapacityReservationInstanceViewWithName extends CapacityReser */ private String name; + /* + * The reservation state information for a capacity reservation, this detail is primarily provided for Future + * capacity reservations. Minimum API version: 2026-04-01. + */ + private CapacityReservationStateInfo reservationStateInfo; + /* * The resource status information. */ @@ -47,6 +53,17 @@ public String name() { return this.name; } + /** + * Get the reservationStateInfo property: The reservation state information for a capacity reservation, this detail + * is primarily provided for Future capacity reservations. Minimum API version: 2026-04-01. + * + * @return the reservationStateInfo value. + */ + @Override + public CapacityReservationStateInfo reservationStateInfo() { + return this.reservationStateInfo; + } + /** * Get the statuses property: The resource status information. * @@ -80,6 +97,9 @@ public void validate() { if (statuses() != null) { statuses().forEach(e -> e.validate()); } + if (reservationStateInfo() != null) { + reservationStateInfo().validate(); + } } /** @@ -90,6 +110,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("utilizationInfo", utilizationInfo()); jsonWriter.writeArrayField("statuses", statuses(), (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("reservationStateInfo", reservationStateInfo()); return jsonWriter.writeEndObject(); } @@ -116,6 +137,9 @@ public static CapacityReservationInstanceViewWithName fromJson(JsonReader jsonRe List statuses = reader.readArray(reader1 -> InstanceViewStatus.fromJson(reader1)); deserializedCapacityReservationInstanceViewWithName.statuses = statuses; + } else if ("reservationStateInfo".equals(fieldName)) { + deserializedCapacityReservationInstanceViewWithName.reservationStateInfo + = CapacityReservationStateInfo.fromJson(reader); } else if ("name".equals(fieldName)) { deserializedCapacityReservationInstanceViewWithName.name = reader.getString(); } else { diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationProfile.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationProfile.java index 41b2a123dd5f..0ec914063a56 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationProfile.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationProfile.java @@ -24,6 +24,14 @@ public final class CapacityReservationProfile implements JsonSerializable { + /* + * The current state of the capacity reservation. + */ + private ReservationState reservationState; + + /** + * Creates an instance of CapacityReservationStateInfo class. + */ + private CapacityReservationStateInfo() { + } + + /** + * Get the reservationState property: The current state of the capacity reservation. + * + * @return the reservationState value. + */ + public ReservationState reservationState() { + return this.reservationState; + } + + /** + * 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.writeStringField("reservationState", + this.reservationState == null ? null : this.reservationState.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CapacityReservationStateInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CapacityReservationStateInfo 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 CapacityReservationStateInfo. + */ + public static CapacityReservationStateInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CapacityReservationStateInfo deserializedCapacityReservationStateInfo = new CapacityReservationStateInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("reservationState".equals(fieldName)) { + deserializedCapacityReservationStateInfo.reservationState + = ReservationState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedCapacityReservationStateInfo; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationType.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationType.java new file mode 100644 index 000000000000..376f99840884 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationType.java @@ -0,0 +1,77 @@ +// 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; + +/** + * Specifies which type of capacity reservation the virtual machine will consume capacity from if eligible or whether it + * is explicitly opted out from being associated and consuming capacity from any reserved capacity available in the + * subscription. Minimum api-version: 2026-04-01. + */ +public final class CapacityReservationType extends ExpandableStringEnum { + /** + * The virtual machine is not eligible to be implicitly associated with an open capacity reservation and is not + * explicitly associated with any capacity reservation group, so it will consume capacity from the publicly + * available capacity. + */ + public static final CapacityReservationType NOT_ELIGIBLE = fromString("NotEligible"); + + /** + * The virtual machine will consume capacity from a specific matching capacity reservation when associated with a + * capacity reservation group resource of type targeted, but can fall back to consume capacity from the publicly + * available capacity if there is no capacity available in the targeted reservation. + */ + public static final CapacityReservationType TARGETED = fromString("Targeted"); + + /** + * The virtual machine if eligible will implicitly associate and consume any available capacity from a matching open + * capacity reservation created or shared in the subscription. **Note:** The VM should not be explicitly associated + * with the open capacity reservation group resource containing the matching reservation. + */ + public static final CapacityReservationType OPEN = fromString("Open"); + + /** + * The virtual machine has capacity reservation assignment disabled and will not be allowed to implicitly or + * explicitly associate with any type of capacity reservation. + */ + public static final CapacityReservationType DISABLED = fromString("Disabled"); + + /** + * The virtual machine consumes capacity from a specific matching capacity reservation when associated with a + * capacity reservation group resource of type block, and will hit capacity failures if there is no available + * capacity in the block reservation. + */ + public static final CapacityReservationType BLOCK = fromString("Block"); + + /** + * Creates a new instance of CapacityReservationType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public CapacityReservationType() { + } + + /** + * Creates or finds a CapacityReservationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding CapacityReservationType. + */ + public static CapacityReservationType fromString(String name) { + return fromString(name, CapacityReservationType.class); + } + + /** + * Gets known CapacityReservationType values. + * + * @return known CapacityReservationType values. + */ + public static Collection values() { + return values(CapacityReservationType.class); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationUpdate.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationUpdate.java index c7b583d624f8..a2337be94528 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationUpdate.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationUpdate.java @@ -162,11 +162,13 @@ public OffsetDateTime timeCreated() { } /** - * Get the scheduleProfile property: Defines the schedule for Block-type capacity reservations. Specifies the + * Get the scheduleProfile property: Defines the schedule for Block and Future capacity reservations. Specifies the * schedule during which capacity reservation is active and VM or VMSS resource can be allocated using reservation. - * This property is required and only supported when the capacity reservation group type is 'Block'. The - * scheduleProfile, start, and end fields are immutable after creation. Minimum API version: 2025-04-01. Please - * refer to https://aka.ms/blockcapacityreservation for more details. + * For Block capacity reservations, the scheduleProfile, start, and end fields are immutable after creation. Please + * refer to https://aka.ms/blockcapacityreservation for more details. Minimum API version for Block capacity + * reservations: 2025-04-01. Future capacity reservations must use this property with only a start time, which can + * be changed until the ‘modifiableUntil’ time. Please refer to https://aka.ms/futurecapacityreservation for more + * details. Minimum API version for Future capacity reservations: 2026-04-01. * * @return the scheduleProfile value. */ @@ -175,11 +177,13 @@ public ScheduleProfile scheduleProfile() { } /** - * Set the scheduleProfile property: Defines the schedule for Block-type capacity reservations. Specifies the + * Set the scheduleProfile property: Defines the schedule for Block and Future capacity reservations. Specifies the * schedule during which capacity reservation is active and VM or VMSS resource can be allocated using reservation. - * This property is required and only supported when the capacity reservation group type is 'Block'. The - * scheduleProfile, start, and end fields are immutable after creation. Minimum API version: 2025-04-01. Please - * refer to https://aka.ms/blockcapacityreservation for more details. + * For Block capacity reservations, the scheduleProfile, start, and end fields are immutable after creation. Please + * refer to https://aka.ms/blockcapacityreservation for more details. Minimum API version for Block capacity + * reservations: 2025-04-01. Future capacity reservations must use this property with only a start time, which can + * be changed until the ‘modifiableUntil’ time. Please refer to https://aka.ms/futurecapacityreservation for more + * details. Minimum API version for Future capacity reservations: 2026-04-01. * * @param scheduleProfile the scheduleProfile value to set. * @return the CapacityReservationUpdate object itself. diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationUtilization.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationUtilization.java index 5b559b14a2ca..318d0bed978d 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationUtilization.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationUtilization.java @@ -11,6 +11,7 @@ import com.azure.json.JsonWriter; import java.io.IOException; import java.util.List; +import java.util.Map; /** * Represents the capacity reservation utilization in terms of resources allocated. @@ -28,6 +29,15 @@ public final class CapacityReservationUtilization implements JsonSerializable virtualMachinesAllocated; + /* + * For open capacity reservations, this provides a map of the used reserved capacity count keyed by the subscription + * id (a GUID) that is consuming the capacity, i.e. each entry maps a consuming subscription id to the count of + * reserved capacity it is currently using. This is populated only for open capacity reservations and is not + * reported for targeted and block capacity reservations, which instead report allocation through + * virtualMachinesAllocated. Minimum api-version: 2026-04-01. + */ + private Map usedReservedCountBySubscription; + /** * Creates an instance of CapacityReservationUtilization class. */ @@ -54,6 +64,19 @@ public List virtualMachinesAllocated() { return this.virtualMachinesAllocated; } + /** + * Get the usedReservedCountBySubscription property: For open capacity reservations, this provides a map of the used + * reserved capacity count keyed by the subscription id (a GUID) that is consuming the capacity, i.e. each entry + * maps a consuming subscription id to the count of reserved capacity it is currently using. This is populated only + * for open capacity reservations and is not reported for targeted and block capacity reservations, which instead + * report allocation through virtualMachinesAllocated. Minimum api-version: 2026-04-01. + * + * @return the usedReservedCountBySubscription value. + */ + public Map usedReservedCountBySubscription() { + return this.usedReservedCountBySubscription; + } + /** * Validates the instance. * @@ -96,6 +119,10 @@ public static CapacityReservationUtilization fromJson(JsonReader jsonReader) thr List virtualMachinesAllocated = reader.readArray(reader1 -> SubResourceReadOnly.fromJson(reader1)); deserializedCapacityReservationUtilization.virtualMachinesAllocated = virtualMachinesAllocated; + } else if ("usedReservedCountBySubscription".equals(fieldName)) { + Map usedReservedCountBySubscription = reader.readMap(reader1 -> reader1.getInt()); + deserializedCapacityReservationUtilization.usedReservedCountBySubscription + = usedReservedCountBySubscription; } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskApiVersion.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskApiVersion.java new file mode 100644 index 000000000000..e64101e8a684 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskApiVersion.java @@ -0,0 +1,52 @@ +// 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; + +/** + * Specifies the Disk API version used when applying additionalDiskProperties to managed disks. The value must be in the + * format YYYY-MM-DD. + */ +public final class DiskApiVersion extends ExpandableStringEnum { + /** + * The 2025-01-02 Disk RP API version. + */ + public static final DiskApiVersion TWO_ZERO_TWO_FIVE_ZERO_ONE_ZERO_TWO = fromString("2025-01-02"); + + /** + * The 2026-03-02 Disk RP API version. + */ + public static final DiskApiVersion TWO_ZERO_TWO_SIX_ZERO_THREE_ZERO_TWO = fromString("2026-03-02"); + + /** + * Creates a new instance of DiskApiVersion value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DiskApiVersion() { + } + + /** + * Creates or finds a DiskApiVersion from its string representation. + * + * @param name a name to look for. + * @return the corresponding DiskApiVersion. + */ + public static DiskApiVersion fromString(String name) { + return fromString(name, DiskApiVersion.class); + } + + /** + * Gets known DiskApiVersion values. + * + * @return known DiskApiVersion values. + */ + public static Collection values() { + return values(DiskApiVersion.class); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskAvailabilityPolicy.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskAvailabilityPolicy.java new file mode 100644 index 000000000000..0eaa7f104bdf --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiskAvailabilityPolicy.java @@ -0,0 +1,95 @@ +// 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; + +/** + * In the case of an availability or connectivity issue with the disk, specify the behavior of your VM. + */ +@Fluent +public final class DiskAvailabilityPolicy implements JsonSerializable { + /* + * Determines how to handle disks with slow I/O. + */ + private VirtualMachineDiskDelayAction actionOnDiskDelay; + + /** + * Creates an instance of DiskAvailabilityPolicy class. + */ + public DiskAvailabilityPolicy() { + } + + /** + * Get the actionOnDiskDelay property: Determines how to handle disks with slow I/O. + * + * @return the actionOnDiskDelay value. + */ + public VirtualMachineDiskDelayAction actionOnDiskDelay() { + return this.actionOnDiskDelay; + } + + /** + * Set the actionOnDiskDelay property: Determines how to handle disks with slow I/O. + * + * @param actionOnDiskDelay the actionOnDiskDelay value to set. + * @return the DiskAvailabilityPolicy object itself. + */ + public DiskAvailabilityPolicy withActionOnDiskDelay(VirtualMachineDiskDelayAction actionOnDiskDelay) { + this.actionOnDiskDelay = actionOnDiskDelay; + 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.writeStringField("actionOnDiskDelay", + this.actionOnDiskDelay == null ? null : this.actionOnDiskDelay.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DiskAvailabilityPolicy from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DiskAvailabilityPolicy 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 DiskAvailabilityPolicy. + */ + public static DiskAvailabilityPolicy fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DiskAvailabilityPolicy deserializedDiskAvailabilityPolicy = new DiskAvailabilityPolicy(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("actionOnDiskDelay".equals(fieldName)) { + deserializedDiskAvailabilityPolicy.actionOnDiskDelay + = VirtualMachineDiskDelayAction.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedDiskAvailabilityPolicy; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ExtensionFeatureMetadata.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ExtensionFeatureMetadata.java new file mode 100644 index 000000000000..d48cfcb52828 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ExtensionFeatureMetadata.java @@ -0,0 +1,90 @@ +// 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; + +/** + * Additional metadata about extension features, including compliance and capability tags. + */ +@Immutable +public final class ExtensionFeatureMetadata implements JsonSerializable { + /* + * List of additional metadata properties (e.g., compliance flags, supported features). + */ + private List extensionFeatureTags; + + /** + * Creates an instance of ExtensionFeatureMetadata class. + */ + private ExtensionFeatureMetadata() { + } + + /** + * Get the extensionFeatureTags property: List of additional metadata properties (e.g., compliance flags, supported + * features). + * + * @return the extensionFeatureTags value. + */ + public List extensionFeatureTags() { + return this.extensionFeatureTags; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (extensionFeatureTags() != null) { + extensionFeatureTags().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("extensionFeatureTags", this.extensionFeatureTags, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ExtensionFeatureMetadata from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ExtensionFeatureMetadata 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 ExtensionFeatureMetadata. + */ + public static ExtensionFeatureMetadata fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ExtensionFeatureMetadata deserializedExtensionFeatureMetadata = new ExtensionFeatureMetadata(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("extensionFeatureTags".equals(fieldName)) { + List extensionFeatureTags + = reader.readArray(reader1 -> ExtensionFeatureTag.fromJson(reader1)); + deserializedExtensionFeatureMetadata.extensionFeatureTags = extensionFeatureTags; + } else { + reader.skipChildren(); + } + } + + return deserializedExtensionFeatureMetadata; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ExtensionFeatureTag.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ExtensionFeatureTag.java new file mode 100644 index 000000000000..cda31a3f92d1 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ExtensionFeatureTag.java @@ -0,0 +1,107 @@ +// 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.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; + +/** + * Represents a key-value pair for extension feature metadata. + */ +@Immutable +public final class ExtensionFeatureTag implements JsonSerializable { + /* + * The key of the feature tag. + */ + private String key; + + /* + * The value of the feature tag. + */ + private String value; + + /** + * Creates an instance of ExtensionFeatureTag class. + */ + private ExtensionFeatureTag() { + } + + /** + * Get the key property: The key of the feature tag. + * + * @return the key value. + */ + public String key() { + return this.key; + } + + /** + * Get the value property: The value of the feature tag. + * + * @return the value value. + */ + public String value() { + return this.value; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (key() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property key in model ExtensionFeatureTag")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ExtensionFeatureTag.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("key", this.key); + jsonWriter.writeStringField("value", this.value); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ExtensionFeatureTag from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ExtensionFeatureTag 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 ExtensionFeatureTag. + */ + public static ExtensionFeatureTag fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ExtensionFeatureTag deserializedExtensionFeatureTag = new ExtensionFeatureTag(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("key".equals(fieldName)) { + deserializedExtensionFeatureTag.key = reader.getString(); + } else if ("value".equals(fieldName)) { + deserializedExtensionFeatureTag.value = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedExtensionFeatureTag; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/HardwareProfile.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/HardwareProfile.java index 78e0ebfd31e3..99223fbc8085 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/HardwareProfile.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/HardwareProfile.java @@ -37,6 +37,13 @@ public final class HardwareProfile implements JsonSerializable */ private VMSizeProperties vmSizeProperties; + /* + * Specifies the processor mode for the virtual machine or virtual machine scale set. Optional; if omitted, the + * platform default applies (currently Deterministic). This property can be updated on a running VM or VMSS without + * deallocation or reboot. Minimum api-version: 2026-04-01. + */ + private ProcessorMode processorMode; + /** * Creates an instance of HardwareProfile class. */ @@ -107,6 +114,30 @@ public HardwareProfile withVmSizeProperties(VMSizeProperties vmSizeProperties) { return this; } + /** + * Get the processorMode property: Specifies the processor mode for the virtual machine or virtual machine scale + * set. Optional; if omitted, the platform default applies (currently Deterministic). This property can be updated + * on a running VM or VMSS without deallocation or reboot. Minimum api-version: 2026-04-01. + * + * @return the processorMode value. + */ + public ProcessorMode processorMode() { + return this.processorMode; + } + + /** + * Set the processorMode property: Specifies the processor mode for the virtual machine or virtual machine scale + * set. Optional; if omitted, the platform default applies (currently Deterministic). This property can be updated + * on a running VM or VMSS without deallocation or reboot. Minimum api-version: 2026-04-01. + * + * @param processorMode the processorMode value to set. + * @return the HardwareProfile object itself. + */ + public HardwareProfile withProcessorMode(ProcessorMode processorMode) { + this.processorMode = processorMode; + return this; + } + /** * Validates the instance. * @@ -126,6 +157,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("vmSize", this.vmSize == null ? null : this.vmSize.toString()); jsonWriter.writeJsonField("vmSizeProperties", this.vmSizeProperties); + jsonWriter.writeStringField("processorMode", this.processorMode == null ? null : this.processorMode.toString()); return jsonWriter.writeEndObject(); } @@ -148,6 +180,8 @@ public static HardwareProfile fromJson(JsonReader jsonReader) throws IOException deserializedHardwareProfile.vmSize = VirtualMachineSizeTypes.fromString(reader.getString()); } else if ("vmSizeProperties".equals(fieldName)) { deserializedHardwareProfile.vmSizeProperties = VMSizeProperties.fromJson(reader); + } else if ("processorMode".equals(fieldName)) { + deserializedHardwareProfile.processorMode = ProcessorMode.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/HostEndpointSettings.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/HostEndpointSettings.java index 3fed0443e60c..bca7d928570b 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/HostEndpointSettings.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/HostEndpointSettings.java @@ -31,6 +31,12 @@ public final class HostEndpointSettings implements JsonSerializable { + /** + * Expand to include all properties in the response. + */ + public static final ListVersionsExpandOptions PROPERTIES = fromString("properties"); + + /** + * Creates a new instance of ListVersionsExpandOptions value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ListVersionsExpandOptions() { + } + + /** + * Creates or finds a ListVersionsExpandOptions from its string representation. + * + * @param name a name to look for. + * @return the corresponding ListVersionsExpandOptions. + */ + public static ListVersionsExpandOptions fromString(String name) { + return fromString(name, ListVersionsExpandOptions.class); + } + + /** + * Gets known ListVersionsExpandOptions values. + * + * @return known ListVersionsExpandOptions values. + */ + public static Collection values() { + return values(ListVersionsExpandOptions.class); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ManagedDiskParameters.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ManagedDiskParameters.java index 1b960104bd4e..788243373417 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ManagedDiskParameters.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ManagedDiskParameters.java @@ -32,6 +32,12 @@ public final class ManagedDiskParameters extends SubResource { */ private VMDiskSecurityProfile securityProfile; + /* + * Specifies additional properties for the managed disk that can be set at the time of implicit creation of the + * disk. This property is not captured for Restore Points. + */ + private AdditionalDiskProperties additionalDiskProperties; + /** * Creates an instance of ManagedDiskParameters class. */ @@ -102,6 +108,28 @@ public ManagedDiskParameters withSecurityProfile(VMDiskSecurityProfile securityP return this; } + /** + * Get the additionalDiskProperties property: Specifies additional properties for the managed disk that can be set + * at the time of implicit creation of the disk. This property is not captured for Restore Points. + * + * @return the additionalDiskProperties value. + */ + public AdditionalDiskProperties additionalDiskProperties() { + return this.additionalDiskProperties; + } + + /** + * Set the additionalDiskProperties property: Specifies additional properties for the managed disk that can be set + * at the time of implicit creation of the disk. This property is not captured for Restore Points. + * + * @param additionalDiskProperties the additionalDiskProperties value to set. + * @return the ManagedDiskParameters object itself. + */ + public ManagedDiskParameters withAdditionalDiskProperties(AdditionalDiskProperties additionalDiskProperties) { + this.additionalDiskProperties = additionalDiskProperties; + return this; + } + /** * {@inheritDoc} */ @@ -123,6 +151,9 @@ public void validate() { if (securityProfile() != null) { securityProfile().validate(); } + if (additionalDiskProperties() != null) { + additionalDiskProperties().validate(); + } } /** @@ -136,6 +167,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.storageAccountType == null ? null : this.storageAccountType.toString()); jsonWriter.writeJsonField("diskEncryptionSet", this.diskEncryptionSet); jsonWriter.writeJsonField("securityProfile", this.securityProfile); + jsonWriter.writeJsonField("additionalDiskProperties", this.additionalDiskProperties); return jsonWriter.writeEndObject(); } @@ -163,6 +195,9 @@ public static ManagedDiskParameters fromJson(JsonReader jsonReader) throws IOExc deserializedManagedDiskParameters.diskEncryptionSet = DiskEncryptionSetParameters.fromJson(reader); } else if ("securityProfile".equals(fieldName)) { deserializedManagedDiskParameters.securityProfile = VMDiskSecurityProfile.fromJson(reader); + } else if ("additionalDiskProperties".equals(fieldName)) { + deserializedManagedDiskParameters.additionalDiskProperties + = AdditionalDiskProperties.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/MigrateVMAvailabilityZoneInput.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/MigrateVMAvailabilityZoneInput.java new file mode 100644 index 000000000000..3d9f62ecc3fe --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/MigrateVMAvailabilityZoneInput.java @@ -0,0 +1,138 @@ +// 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.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.util.List; + +/** + * The input for MigrateVMAvailabilityZone. + */ +@Fluent +public final class MigrateVMAvailabilityZoneInput implements JsonSerializable { + /* + * The virtual machine scale set instance ids to be migrated to the target availability zone. + */ + private List instanceIds; + + /* + * The target logical availability zone ("1", "2" or "3") to migrate the virtual machine scale set instances to. If + * omitted, the platform selects the target zone. + */ + private String targetZone; + + /** + * Creates an instance of MigrateVMAvailabilityZoneInput class. + */ + public MigrateVMAvailabilityZoneInput() { + } + + /** + * Get the instanceIds property: The virtual machine scale set instance ids to be migrated to the target + * availability zone. + * + * @return the instanceIds value. + */ + public List instanceIds() { + return this.instanceIds; + } + + /** + * Set the instanceIds property: The virtual machine scale set instance ids to be migrated to the target + * availability zone. + * + * @param instanceIds the instanceIds value to set. + * @return the MigrateVMAvailabilityZoneInput object itself. + */ + public MigrateVMAvailabilityZoneInput withInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + return this; + } + + /** + * Get the targetZone property: The target logical availability zone ("1", "2" or "3") to migrate the virtual + * machine scale set instances to. If omitted, the platform selects the target zone. + * + * @return the targetZone value. + */ + public String targetZone() { + return this.targetZone; + } + + /** + * Set the targetZone property: The target logical availability zone ("1", "2" or "3") to migrate the virtual + * machine scale set instances to. If omitted, the platform selects the target zone. + * + * @param targetZone the targetZone value to set. + * @return the MigrateVMAvailabilityZoneInput object itself. + */ + public MigrateVMAvailabilityZoneInput withTargetZone(String targetZone) { + this.targetZone = targetZone; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (instanceIds() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property instanceIds in model MigrateVMAvailabilityZoneInput")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(MigrateVMAvailabilityZoneInput.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("instanceIds", this.instanceIds, (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("targetZone", this.targetZone); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MigrateVMAvailabilityZoneInput from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MigrateVMAvailabilityZoneInput 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 MigrateVMAvailabilityZoneInput. + */ + public static MigrateVMAvailabilityZoneInput fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MigrateVMAvailabilityZoneInput deserializedMigrateVMAvailabilityZoneInput + = new MigrateVMAvailabilityZoneInput(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("instanceIds".equals(fieldName)) { + List instanceIds = reader.readArray(reader1 -> reader1.getString()); + deserializedMigrateVMAvailabilityZoneInput.instanceIds = instanceIds; + } else if ("targetZone".equals(fieldName)) { + deserializedMigrateVMAvailabilityZoneInput.targetZone = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedMigrateVMAvailabilityZoneInput; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ProcessorMode.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ProcessorMode.java new file mode 100644 index 000000000000..d9f2e58e0fde --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ProcessorMode.java @@ -0,0 +1,51 @@ +// 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; + +/** + * Specifies the processor frequency behavior for the virtual machine. See each member for the behavior it controls. + */ +public final class ProcessorMode extends ExpandableStringEnum { + /** + * Ensures predictable and consistent processor frequency at the base/nominal level. Turbo/Boost is disabled. + */ + public static final ProcessorMode DETERMINISTIC = fromString("Deterministic"); + + /** + * Allows higher frequency bursts when thermal and power headroom permits. + */ + public static final ProcessorMode OPPORTUNISTIC = fromString("Opportunistic"); + + /** + * Creates a new instance of ProcessorMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ProcessorMode() { + } + + /** + * Creates or finds a ProcessorMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding ProcessorMode. + */ + public static ProcessorMode fromString(String name) { + return fromString(name, ProcessorMode.class); + } + + /** + * Gets known ProcessorMode values. + * + * @return known ProcessorMode values. + */ + public static Collection values() { + return values(ProcessorMode.class); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ReleaseCategory.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ReleaseCategory.java new file mode 100644 index 000000000000..8dced745db3c --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ReleaseCategory.java @@ -0,0 +1,66 @@ +// 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; + +/** + * Enumerates the type of change introduced in the extension version. + */ +public final class ReleaseCategory extends ExpandableStringEnum { + /** + * Other type of change. + */ + public static final ReleaseCategory OTHER = fromString("Other"); + + /** + * Bug fix change. + */ + public static final ReleaseCategory BUG_FIX = fromString("BugFix"); + + /** + * Security fix change. + */ + public static final ReleaseCategory SECURITY_FIX = fromString("SecurityFix"); + + /** + * Compatibility update change. + */ + public static final ReleaseCategory COMPATIBILITY_UPDATE = fromString("CompatibilityUpdate"); + + /** + * New feature change. + */ + public static final ReleaseCategory NEW_FEATURE = fromString("NewFeature"); + + /** + * Creates a new instance of ReleaseCategory value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ReleaseCategory() { + } + + /** + * Creates or finds a ReleaseCategory from its string representation. + * + * @param name a name to look for. + * @return the corresponding ReleaseCategory. + */ + public static ReleaseCategory fromString(String name) { + return fromString(name, ReleaseCategory.class); + } + + /** + * Gets known ReleaseCategory values. + * + * @return known ReleaseCategory values. + */ + public static Collection values() { + return values(ReleaseCategory.class); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ReservationState.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ReservationState.java new file mode 100644 index 000000000000..442b43f42d43 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ReservationState.java @@ -0,0 +1,79 @@ +// 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 current state of a Future capacity reservation. + */ +public final class ReservationState extends ExpandableStringEnum { + /** + * The capacity reservation request has been submitted and is awaiting evaluation. + */ + public static final ReservationState PENDING = fromString("Pending"); + + /** + * The capacity reservation request was rejected, and will not change again without user action. + */ + public static final ReservationState DECLINED = fromString("Declined"); + + /** + * The capacity reservation request has been approved by Azure and is awaiting fulfillment. + */ + public static final ReservationState APPROVED = fromString("Approved"); + + /** + * A failure occurred while attempting to fulfill the capacity reservation request. + */ + public static final ReservationState FULFILLMENT_FAILED = fromString("FulfillmentFailed"); + + /** + * The capacity reservation is locked and cannot be updated or deleted prior to going live. + */ + public static final ReservationState COMMITTED = fromString("Committed"); + + /** + * The capacity reservation is active and available for use, and cannot be modified or deleted until the minimum + * commitment period has elapsed. + */ + public static final ReservationState LIVE = fromString("Live"); + + /** + * Azure was only able to deliver a portion of the requested capacity. The capacity reservation cannot be modified + * or deleted until the minimum commitment period has elapsed. The portion of fulfilled capacity can be viewed by + * inspecting the capacity reservation's instance view, displayed as currentCapacity within the utilizationInfo. + */ + public static final ReservationState PARTIALLY_FULFILLED = fromString("PartiallyFulfilled"); + + /** + * Creates a new instance of ReservationState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ReservationState() { + } + + /** + * Creates or finds a ReservationState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ReservationState. + */ + public static ReservationState fromString(String name) { + return fromString(name, ReservationState.class); + } + + /** + * Gets known ReservationState values. + * + * @return known ReservationState values. + */ + public static Collection values() { + return values(ReservationState.class); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ReservationType.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ReservationType.java index 752e06d02fdc..a7569e0b4fed 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ReservationType.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ReservationType.java @@ -8,21 +8,35 @@ import java.util.Collection; /** - * Indicates the type of capacity reservation. Allowed values are 'Block' for block capacity reservations and 'Targeted' - * for reservations that enable a VM to consume a specific capacity reservation when a capacity reservation group is - * provided. The reservation type is immutable and cannot be changed after it is assigned. + * Indicates the type of capacity reservation. Allowed values are 'Block' for block capacity reservations that enable a + * VM to consume capacity only from this capacity block when it is associated using a capacity reservation group, + * 'Targeted' for reservations that enable a VM to consume capacity from an explicitly associated capacity reservation + * group and fall back to the publicly available capacity if the reservation is full, and 'Open' for reservations that a + * VM consumes when it is eligible from an implicitly associated capacity reservation group with the matching VM size + * and zone without associating that capacity reservation group and fall back to the publicly available capacity if the + * reservation is full. Future capacity reservations can be created in 'Targeted' or 'Open' capacity reservation groups. + * The reservation type is immutable and cannot be changed after the capacity reservation group is created. */ public final class ReservationType extends ExpandableStringEnum { /** - * To consume on demand allocated capacity reservation when a capacity reservation group is provided. + * Reservations that enable a VM to consume capacity from an explicitly associated capacity reservation group and + * fall back to the publicly available capacity if the reservation is full. */ public static final ReservationType TARGETED = fromString("Targeted"); /** - * To consume scheduled allocated block capacity reservation when a capacity reservation group is provided. + * Block capacity reservations that enable a VM to consume capacity only from this capacity block when it is + * associated using a capacity reservation group. */ public static final ReservationType BLOCK = fromString("Block"); + /** + * Reservations that a VM consumes when it is eligible from an implicitly associated capacity reservation group with + * the matching VM size and zone without associating that capacity reservation group, and fall back to the publicly + * available capacity if the reservation is full. Minimum api-version: 2026-04-01. + */ + public static final ReservationType OPEN = fromString("Open"); + /** * Creates a new instance of ReservationType value. * diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/RunProfile.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/RunProfile.java new file mode 100644 index 000000000000..8af4dc209037 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/RunProfile.java @@ -0,0 +1,61 @@ +// 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; + +/** + * Specifies the execution profile for the extension. + */ +public final class RunProfile extends ExpandableStringEnum { + /** + * Other execution profile. + */ + public static final RunProfile OTHER = fromString("Other"); + + /** + * Run once execution profile. + */ + public static final RunProfile RUN_ONCE = fromString("RunOnce"); + + /** + * Long running execution profile. + */ + public static final RunProfile LONG_RUNNING = fromString("LongRunning"); + + /** + * Hybrid execution profile. + */ + public static final RunProfile HYBRID = fromString("Hybrid"); + + /** + * Creates a new instance of RunProfile value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public RunProfile() { + } + + /** + * Creates or finds a RunProfile from its string representation. + * + * @param name a name to look for. + * @return the corresponding RunProfile. + */ + public static RunProfile fromString(String name) { + return fromString(name, RunProfile.class); + } + + /** + * Gets known RunProfile values. + * + * @return known RunProfile values. + */ + public static Collection values() { + return values(RunProfile.class); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ScheduleProfile.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ScheduleProfile.java index 890623ddb239..367607a422e3 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ScheduleProfile.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ScheduleProfile.java @@ -5,32 +5,51 @@ package com.azure.resourcemanager.compute.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; 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; /** - * Defines the schedule for Block-type capacity reservations. Specifies the schedule during which capacity reservation - * is active and VM or VMSS resource can be allocated using reservation. This property is required and only supported - * when the capacity reservation group type is 'Block'. The scheduleProfile, start, and end fields are immutable after - * creation. Minimum API version: 2025-04-01. Please refer to https://aka.ms/blockcapacityreservation for more details. + * Defines the schedule for Block and Future capacity reservations. Specifies the schedule during which capacity + * reservation is active and VM or VMSS resource can be allocated using reservation. For Block capacity reservations, + * the scheduleProfile, start, and end fields are immutable after creation. Please refer to + * https://aka.ms/blockcapacityreservation for more details. Minimum API version for Block capacity reservations: + * 2025-04-01. Future capacity reservations must use this property with only a start time, which can be changed until + * the ‘modifiableUntil’ time. Please refer to https://aka.ms/futurecapacityreservation for more details. Minimum API + * version for Future capacity reservations: 2026-04-01. */ @Fluent public final class ScheduleProfile implements JsonSerializable { /* - * The required start date for block capacity reservations. Must be today or within 56 days in the future. For - * same-day scheduling, requests must be submitted before 11:30 AM UTC. Example: 2025-06-27. + * The required start date for Block or Future capacity reservations. Block capacity reservations: Must be today or + * within 56 days in the future. For same-day scheduling, requests must be submitted before 11:30 AM UTC. Future + * capacity reservations: Must be at least 7 days in the future, and maximum 6 months in the future. Minimum API + * version for Future capacity reservations: 2026-04-01. Example: 2025-06-27, applicable for both Block and Future + * capacity reservations. */ private String start; /* - * The required end date for block capacity reservations. Must be after the start date, with a duration of either + * The required end date for Block capacity reservations. Must be after the start date, with a duration of either * 1–14 whole days or 3–26 whole weeks. Example: 2025-06-28. */ private String end; + /* + * The minimum number of days that must pass after the start date before a Future capacity reservation can be + * updated or deleted once it has been committed. Will be populated with a default value if not provided. + */ + private Integer minimumCommitmentDays; + + /* + * The date/time until which a Future capacity reservation can be updated or deleted. Read-only. + */ + private OffsetDateTime modifiableUntil; + /** * Creates an instance of ScheduleProfile class. */ @@ -38,8 +57,11 @@ public ScheduleProfile() { } /** - * Get the start property: The required start date for block capacity reservations. Must be today or within 56 days - * in the future. For same-day scheduling, requests must be submitted before 11:30 AM UTC. Example: 2025-06-27. + * Get the start property: The required start date for Block or Future capacity reservations. Block capacity + * reservations: Must be today or within 56 days in the future. For same-day scheduling, requests must be submitted + * before 11:30 AM UTC. Future capacity reservations: Must be at least 7 days in the future, and maximum 6 months in + * the future. Minimum API version for Future capacity reservations: 2026-04-01. Example: 2025-06-27, applicable for + * both Block and Future capacity reservations. * * @return the start value. */ @@ -48,8 +70,11 @@ public String start() { } /** - * Set the start property: The required start date for block capacity reservations. Must be today or within 56 days - * in the future. For same-day scheduling, requests must be submitted before 11:30 AM UTC. Example: 2025-06-27. + * Set the start property: The required start date for Block or Future capacity reservations. Block capacity + * reservations: Must be today or within 56 days in the future. For same-day scheduling, requests must be submitted + * before 11:30 AM UTC. Future capacity reservations: Must be at least 7 days in the future, and maximum 6 months in + * the future. Minimum API version for Future capacity reservations: 2026-04-01. Example: 2025-06-27, applicable for + * both Block and Future capacity reservations. * * @param start the start value to set. * @return the ScheduleProfile object itself. @@ -60,7 +85,7 @@ public ScheduleProfile withStart(String start) { } /** - * Get the end property: The required end date for block capacity reservations. Must be after the start date, with a + * Get the end property: The required end date for Block capacity reservations. Must be after the start date, with a * duration of either 1–14 whole days or 3–26 whole weeks. Example: 2025-06-28. * * @return the end value. @@ -70,7 +95,7 @@ public String end() { } /** - * Set the end property: The required end date for block capacity reservations. Must be after the start date, with a + * Set the end property: The required end date for Block capacity reservations. Must be after the start date, with a * duration of either 1–14 whole days or 3–26 whole weeks. Example: 2025-06-28. * * @param end the end value to set. @@ -81,6 +106,40 @@ public ScheduleProfile withEnd(String end) { return this; } + /** + * Get the minimumCommitmentDays property: The minimum number of days that must pass after the start date before a + * Future capacity reservation can be updated or deleted once it has been committed. Will be populated with a + * default value if not provided. + * + * @return the minimumCommitmentDays value. + */ + public Integer minimumCommitmentDays() { + return this.minimumCommitmentDays; + } + + /** + * Set the minimumCommitmentDays property: The minimum number of days that must pass after the start date before a + * Future capacity reservation can be updated or deleted once it has been committed. Will be populated with a + * default value if not provided. + * + * @param minimumCommitmentDays the minimumCommitmentDays value to set. + * @return the ScheduleProfile object itself. + */ + public ScheduleProfile withMinimumCommitmentDays(Integer minimumCommitmentDays) { + this.minimumCommitmentDays = minimumCommitmentDays; + return this; + } + + /** + * Get the modifiableUntil property: The date/time until which a Future capacity reservation can be updated or + * deleted. Read-only. + * + * @return the modifiableUntil value. + */ + public OffsetDateTime modifiableUntil() { + return this.modifiableUntil; + } + /** * Validates the instance. * @@ -97,6 +156,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("start", this.start); jsonWriter.writeStringField("end", this.end); + jsonWriter.writeNumberField("minimumCommitmentDays", this.minimumCommitmentDays); return jsonWriter.writeEndObject(); } @@ -119,6 +179,11 @@ public static ScheduleProfile fromJson(JsonReader jsonReader) throws IOException deserializedScheduleProfile.start = reader.getString(); } else if ("end".equals(fieldName)) { deserializedScheduleProfile.end = reader.getString(); + } else if ("minimumCommitmentDays".equals(fieldName)) { + deserializedScheduleProfile.minimumCommitmentDays = reader.getNullable(JsonReader::getInt); + } else if ("modifiableUntil".equals(fieldName)) { + deserializedScheduleProfile.modifiableUntil = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/StorageProfile.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/StorageProfile.java index 5d7101002e4b..ffdd27ae9220 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/StorageProfile.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/StorageProfile.java @@ -53,6 +53,12 @@ public final class StorageProfile implements JsonSerializable { */ private Boolean alignRegionalDisksToVMZone; + /* + * Specifies the Disk API version used when applying additionalDiskProperties to managed disks. The value must be in + * the format YYYY-MM-DD (e.g., "2026-03-02"). + */ + private DiskApiVersion diskApiVersion; + /** * Creates an instance of StorageProfile class. */ @@ -185,6 +191,28 @@ public StorageProfile withAlignRegionalDisksToVMZone(Boolean alignRegionalDisksT return this; } + /** + * Get the diskApiVersion property: Specifies the Disk API version used when applying additionalDiskProperties to + * managed disks. The value must be in the format YYYY-MM-DD (e.g., "2026-03-02"). + * + * @return the diskApiVersion value. + */ + public DiskApiVersion diskApiVersion() { + return this.diskApiVersion; + } + + /** + * Set the diskApiVersion property: Specifies the Disk API version used when applying additionalDiskProperties to + * managed disks. The value must be in the format YYYY-MM-DD (e.g., "2026-03-02"). + * + * @param diskApiVersion the diskApiVersion value to set. + * @return the StorageProfile object itself. + */ + public StorageProfile withDiskApiVersion(DiskApiVersion diskApiVersion) { + this.diskApiVersion = diskApiVersion; + return this; + } + /** * Validates the instance. * @@ -214,6 +242,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("diskControllerType", this.diskControllerType == null ? null : this.diskControllerType.toString()); jsonWriter.writeBooleanField("alignRegionalDisksToVMZone", this.alignRegionalDisksToVMZone); + jsonWriter.writeStringField("diskApiVersion", + this.diskApiVersion == null ? null : this.diskApiVersion.toString()); return jsonWriter.writeEndObject(); } @@ -243,6 +273,8 @@ public static StorageProfile fromJson(JsonReader jsonReader) throws IOException deserializedStorageProfile.diskControllerType = DiskControllerTypes.fromString(reader.getString()); } else if ("alignRegionalDisksToVMZone".equals(fieldName)) { deserializedStorageProfile.alignRegionalDisksToVMZone = reader.getNullable(JsonReader::getBoolean); + } else if ("diskApiVersion".equals(fieldName)) { + deserializedStorageProfile.diskApiVersion = DiskApiVersion.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/UrgencyLevel.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/UrgencyLevel.java new file mode 100644 index 000000000000..0788108f965e --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/UrgencyLevel.java @@ -0,0 +1,56 @@ +// 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; + +/** + * Defines urgency levels for extension updates. + */ +public final class UrgencyLevel extends ExpandableStringEnum { + /** + * Regular urgency level. + */ + public static final UrgencyLevel REGULAR = fromString("Regular"); + + /** + * Expedited urgency level. + */ + public static final UrgencyLevel EXPEDITED = fromString("Expedited"); + + /** + * Emergency urgency level. + */ + public static final UrgencyLevel EMERGENCY = fromString("Emergency"); + + /** + * Creates a new instance of UrgencyLevel value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public UrgencyLevel() { + } + + /** + * Creates or finds a UrgencyLevel from its string representation. + * + * @param name a name to look for. + * @return the corresponding UrgencyLevel. + */ + public static UrgencyLevel fromString(String name) { + return fromString(name, UrgencyLevel.class); + } + + /** + * Gets known UrgencyLevel values. + * + * @return known UrgencyLevel values. + */ + public static Collection values() { + return values(UrgencyLevel.class); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskDelayAction.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskDelayAction.java new file mode 100644 index 000000000000..c2c34bd9ebf3 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskDelayAction.java @@ -0,0 +1,51 @@ +// 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; + +/** + * Determines how to handle disks with slow I/O. + */ +public final class VirtualMachineDiskDelayAction extends ExpandableStringEnum { + /** + * Defaults to behavior without availability policy specified, which is VM restart upon slow disk I/O. + */ + public static final VirtualMachineDiskDelayAction NONE = fromString("None"); + + /** + * Upon a disk I/O failure or slow response, try detaching then reattaching the disk. + */ + public static final VirtualMachineDiskDelayAction AUTOMATIC_REATTACH = fromString("AutomaticReattach"); + + /** + * Creates a new instance of VirtualMachineDiskDelayAction value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VirtualMachineDiskDelayAction() { + } + + /** + * Creates or finds a VirtualMachineDiskDelayAction from its string representation. + * + * @param name a name to look for. + * @return the corresponding VirtualMachineDiskDelayAction. + */ + public static VirtualMachineDiskDelayAction fromString(String name) { + return fromString(name, VirtualMachineDiskDelayAction.class); + } + + /** + * Gets known VirtualMachineDiskDelayAction values. + * + * @return known VirtualMachineDiskDelayAction values. + */ + public static Collection values() { + return values(VirtualMachineDiskDelayAction.class); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskNetworkAccessPolicy.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskNetworkAccessPolicy.java new file mode 100644 index 000000000000..f55836a8dc46 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskNetworkAccessPolicy.java @@ -0,0 +1,57 @@ +// 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; + +/** + * Policy for accessing the disk via network. + */ +public final class VirtualMachineDiskNetworkAccessPolicy + extends ExpandableStringEnum { + /** + * The disk can be exported or uploaded from any network. + */ + public static final VirtualMachineDiskNetworkAccessPolicy ALLOW_ALL = fromString("AllowAll"); + + /** + * The disk can be exported or uploaded using a DiskAccess resource's private endpoints. + */ + public static final VirtualMachineDiskNetworkAccessPolicy ALLOW_PRIVATE = fromString("AllowPrivate"); + + /** + * The disk cannot be exported. + */ + public static final VirtualMachineDiskNetworkAccessPolicy DENY_ALL = fromString("DenyAll"); + + /** + * Creates a new instance of VirtualMachineDiskNetworkAccessPolicy value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VirtualMachineDiskNetworkAccessPolicy() { + } + + /** + * Creates or finds a VirtualMachineDiskNetworkAccessPolicy from its string representation. + * + * @param name a name to look for. + * @return the corresponding VirtualMachineDiskNetworkAccessPolicy. + */ + public static VirtualMachineDiskNetworkAccessPolicy fromString(String name) { + return fromString(name, VirtualMachineDiskNetworkAccessPolicy.class); + } + + /** + * Gets known VirtualMachineDiskNetworkAccessPolicy values. + * + * @return known VirtualMachineDiskNetworkAccessPolicy values. + */ + public static Collection values() { + return values(VirtualMachineDiskNetworkAccessPolicy.class); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskProperties.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskProperties.java new file mode 100644 index 000000000000..c37785d13197 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskProperties.java @@ -0,0 +1,416 @@ +// 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 properties of a managed disk that can be set at the time of implicit creation of the disk. + */ +@Fluent +public final class VirtualMachineDiskProperties implements JsonSerializable { + /* + * Performance tier of the disk (e.g., P4, S10) as described here: + * https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks. + */ + private String tier; + + /* + * Set to true to enable bursting beyond the provisioned performance target of the disk. Bursting is disabled by + * default. Does not apply to Ultra disks. + */ + private Boolean burstingEnabled; + + /* + * Set this flag to true to get a boost on the performance target of the disk deployed. This flag can only be set on + * disk creation time and cannot be disabled after enabled. + */ + private Boolean performancePlus; + + /* + * Setting this property to true improves reliability and performance of data disks that are frequently (more than 5 + * times a day) detached from one virtual machine and attached to another. This property should not be set for disks + * that are not detached and attached frequently as it causes the disks to not align with the fault domain of the + * virtual machine. + */ + private Boolean optimizedForFrequentAttach; + + /* + * In the case of an availability or connectivity issue with the disk, specify the behavior of your VM. + */ + private DiskAvailabilityPolicy availabilityPolicy; + + /* + * The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk + * that can be mounted on multiple VMs at the same time. Applies to data disks only. + */ + private Integer maxShares; + + /* + * Policy for accessing the disk via network. + */ + private VirtualMachineDiskNetworkAccessPolicy networkAccessPolicy; + + /* + * Azure resource Id of the DiskAccess resource for using private endpoints on disks. + */ + private String diskAccessId; + + /* + * The total number of IOPS that will be allowed across all VMs mounting the shared disk as ReadOnly. One operation + * can transfer between 4k and 256k bytes. + */ + private Long diskIOPSReadOnly; + + /* + * The total throughput (MBps) that will be allowed across all VMs mounting the shared disk as ReadOnly. MBps means + * millions of bytes per second - MB here uses the ISO notation, of powers of 10. + */ + private Long diskMBpsReadOnly; + + /* + * Logical sector size in bytes for Ultra Disks. Supported values are 512 and 4096. 4096 is the default. + */ + private Integer logicalSectorSize; + + /** + * Creates an instance of VirtualMachineDiskProperties class. + */ + public VirtualMachineDiskProperties() { + } + + /** + * Get the tier property: Performance tier of the disk (e.g., P4, S10) as described here: + * https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks. + * + * @return the tier value. + */ + public String tier() { + return this.tier; + } + + /** + * Set the tier property: Performance tier of the disk (e.g., P4, S10) as described here: + * https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks. + * + * @param tier the tier value to set. + * @return the VirtualMachineDiskProperties object itself. + */ + public VirtualMachineDiskProperties withTier(String tier) { + this.tier = tier; + return this; + } + + /** + * Get the burstingEnabled property: Set to true to enable bursting beyond the provisioned performance target of the + * disk. Bursting is disabled by default. Does not apply to Ultra disks. + * + * @return the burstingEnabled value. + */ + public Boolean burstingEnabled() { + return this.burstingEnabled; + } + + /** + * Set the burstingEnabled property: Set to true to enable bursting beyond the provisioned performance target of the + * disk. Bursting is disabled by default. Does not apply to Ultra disks. + * + * @param burstingEnabled the burstingEnabled value to set. + * @return the VirtualMachineDiskProperties object itself. + */ + public VirtualMachineDiskProperties withBurstingEnabled(Boolean burstingEnabled) { + this.burstingEnabled = burstingEnabled; + return this; + } + + /** + * Get the performancePlus property: Set this flag to true to get a boost on the performance target of the disk + * deployed. This flag can only be set on disk creation time and cannot be disabled after enabled. + * + * @return the performancePlus value. + */ + public Boolean performancePlus() { + return this.performancePlus; + } + + /** + * Set the performancePlus property: Set this flag to true to get a boost on the performance target of the disk + * deployed. This flag can only be set on disk creation time and cannot be disabled after enabled. + * + * @param performancePlus the performancePlus value to set. + * @return the VirtualMachineDiskProperties object itself. + */ + public VirtualMachineDiskProperties withPerformancePlus(Boolean performancePlus) { + this.performancePlus = performancePlus; + return this; + } + + /** + * Get the optimizedForFrequentAttach property: Setting this property to true improves reliability and performance + * of data disks that are frequently (more than 5 times a day) detached from one virtual machine and attached to + * another. This property should not be set for disks that are not detached and attached frequently as it causes the + * disks to not align with the fault domain of the virtual machine. + * + * @return the optimizedForFrequentAttach value. + */ + public Boolean optimizedForFrequentAttach() { + return this.optimizedForFrequentAttach; + } + + /** + * Set the optimizedForFrequentAttach property: Setting this property to true improves reliability and performance + * of data disks that are frequently (more than 5 times a day) detached from one virtual machine and attached to + * another. This property should not be set for disks that are not detached and attached frequently as it causes the + * disks to not align with the fault domain of the virtual machine. + * + * @param optimizedForFrequentAttach the optimizedForFrequentAttach value to set. + * @return the VirtualMachineDiskProperties object itself. + */ + public VirtualMachineDiskProperties withOptimizedForFrequentAttach(Boolean optimizedForFrequentAttach) { + this.optimizedForFrequentAttach = optimizedForFrequentAttach; + return this; + } + + /** + * Get the availabilityPolicy property: In the case of an availability or connectivity issue with the disk, specify + * the behavior of your VM. + * + * @return the availabilityPolicy value. + */ + public DiskAvailabilityPolicy availabilityPolicy() { + return this.availabilityPolicy; + } + + /** + * Set the availabilityPolicy property: In the case of an availability or connectivity issue with the disk, specify + * the behavior of your VM. + * + * @param availabilityPolicy the availabilityPolicy value to set. + * @return the VirtualMachineDiskProperties object itself. + */ + public VirtualMachineDiskProperties withAvailabilityPolicy(DiskAvailabilityPolicy availabilityPolicy) { + this.availabilityPolicy = availabilityPolicy; + return this; + } + + /** + * Get the maxShares property: The maximum number of VMs that can attach to the disk at the same time. Value greater + * than one indicates a disk that can be mounted on multiple VMs at the same time. Applies to data disks only. + * + * @return the maxShares value. + */ + public Integer maxShares() { + return this.maxShares; + } + + /** + * Set the maxShares property: The maximum number of VMs that can attach to the disk at the same time. Value greater + * than one indicates a disk that can be mounted on multiple VMs at the same time. Applies to data disks only. + * + * @param maxShares the maxShares value to set. + * @return the VirtualMachineDiskProperties object itself. + */ + public VirtualMachineDiskProperties withMaxShares(Integer maxShares) { + this.maxShares = maxShares; + return this; + } + + /** + * Get the networkAccessPolicy property: Policy for accessing the disk via network. + * + * @return the networkAccessPolicy value. + */ + public VirtualMachineDiskNetworkAccessPolicy networkAccessPolicy() { + return this.networkAccessPolicy; + } + + /** + * Set the networkAccessPolicy property: Policy for accessing the disk via network. + * + * @param networkAccessPolicy the networkAccessPolicy value to set. + * @return the VirtualMachineDiskProperties object itself. + */ + public VirtualMachineDiskProperties + withNetworkAccessPolicy(VirtualMachineDiskNetworkAccessPolicy networkAccessPolicy) { + this.networkAccessPolicy = networkAccessPolicy; + return this; + } + + /** + * Get the diskAccessId property: Azure resource Id of the DiskAccess resource for using private endpoints on disks. + * + * @return the diskAccessId value. + */ + public String diskAccessId() { + return this.diskAccessId; + } + + /** + * Set the diskAccessId property: Azure resource Id of the DiskAccess resource for using private endpoints on disks. + * + * @param diskAccessId the diskAccessId value to set. + * @return the VirtualMachineDiskProperties object itself. + */ + public VirtualMachineDiskProperties withDiskAccessId(String diskAccessId) { + this.diskAccessId = diskAccessId; + return this; + } + + /** + * Get the diskIOPSReadOnly property: The total number of IOPS that will be allowed across all VMs mounting the + * shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes. + * + * @return the diskIOPSReadOnly value. + */ + public Long diskIOPSReadOnly() { + return this.diskIOPSReadOnly; + } + + /** + * Set the diskIOPSReadOnly property: The total number of IOPS that will be allowed across all VMs mounting the + * shared disk as ReadOnly. One operation can transfer between 4k and 256k bytes. + * + * @param diskIOPSReadOnly the diskIOPSReadOnly value to set. + * @return the VirtualMachineDiskProperties object itself. + */ + public VirtualMachineDiskProperties withDiskIOPSReadOnly(Long diskIOPSReadOnly) { + this.diskIOPSReadOnly = diskIOPSReadOnly; + return this; + } + + /** + * Get the diskMBpsReadOnly property: The total throughput (MBps) that will be allowed across all VMs mounting the + * shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of + * 10. + * + * @return the diskMBpsReadOnly value. + */ + public Long diskMBpsReadOnly() { + return this.diskMBpsReadOnly; + } + + /** + * Set the diskMBpsReadOnly property: The total throughput (MBps) that will be allowed across all VMs mounting the + * shared disk as ReadOnly. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of + * 10. + * + * @param diskMBpsReadOnly the diskMBpsReadOnly value to set. + * @return the VirtualMachineDiskProperties object itself. + */ + public VirtualMachineDiskProperties withDiskMBpsReadOnly(Long diskMBpsReadOnly) { + this.diskMBpsReadOnly = diskMBpsReadOnly; + return this; + } + + /** + * Get the logicalSectorSize property: Logical sector size in bytes for Ultra Disks. Supported values are 512 and + * 4096. 4096 is the default. + * + * @return the logicalSectorSize value. + */ + public Integer logicalSectorSize() { + return this.logicalSectorSize; + } + + /** + * Set the logicalSectorSize property: Logical sector size in bytes for Ultra Disks. Supported values are 512 and + * 4096. 4096 is the default. + * + * @param logicalSectorSize the logicalSectorSize value to set. + * @return the VirtualMachineDiskProperties object itself. + */ + public VirtualMachineDiskProperties withLogicalSectorSize(Integer logicalSectorSize) { + this.logicalSectorSize = logicalSectorSize; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (availabilityPolicy() != null) { + availabilityPolicy().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("tier", this.tier); + jsonWriter.writeBooleanField("burstingEnabled", this.burstingEnabled); + jsonWriter.writeBooleanField("performancePlus", this.performancePlus); + jsonWriter.writeBooleanField("optimizedForFrequentAttach", this.optimizedForFrequentAttach); + jsonWriter.writeJsonField("availabilityPolicy", this.availabilityPolicy); + jsonWriter.writeNumberField("maxShares", this.maxShares); + jsonWriter.writeStringField("networkAccessPolicy", + this.networkAccessPolicy == null ? null : this.networkAccessPolicy.toString()); + jsonWriter.writeStringField("diskAccessId", this.diskAccessId); + jsonWriter.writeNumberField("diskIOPSReadOnly", this.diskIOPSReadOnly); + jsonWriter.writeNumberField("diskMBpsReadOnly", this.diskMBpsReadOnly); + jsonWriter.writeNumberField("logicalSectorSize", this.logicalSectorSize); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VirtualMachineDiskProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VirtualMachineDiskProperties 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 VirtualMachineDiskProperties. + */ + public static VirtualMachineDiskProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VirtualMachineDiskProperties deserializedVirtualMachineDiskProperties = new VirtualMachineDiskProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("tier".equals(fieldName)) { + deserializedVirtualMachineDiskProperties.tier = reader.getString(); + } else if ("burstingEnabled".equals(fieldName)) { + deserializedVirtualMachineDiskProperties.burstingEnabled + = reader.getNullable(JsonReader::getBoolean); + } else if ("performancePlus".equals(fieldName)) { + deserializedVirtualMachineDiskProperties.performancePlus + = reader.getNullable(JsonReader::getBoolean); + } else if ("optimizedForFrequentAttach".equals(fieldName)) { + deserializedVirtualMachineDiskProperties.optimizedForFrequentAttach + = reader.getNullable(JsonReader::getBoolean); + } else if ("availabilityPolicy".equals(fieldName)) { + deserializedVirtualMachineDiskProperties.availabilityPolicy + = DiskAvailabilityPolicy.fromJson(reader); + } else if ("maxShares".equals(fieldName)) { + deserializedVirtualMachineDiskProperties.maxShares = reader.getNullable(JsonReader::getInt); + } else if ("networkAccessPolicy".equals(fieldName)) { + deserializedVirtualMachineDiskProperties.networkAccessPolicy + = VirtualMachineDiskNetworkAccessPolicy.fromString(reader.getString()); + } else if ("diskAccessId".equals(fieldName)) { + deserializedVirtualMachineDiskProperties.diskAccessId = reader.getString(); + } else if ("diskIOPSReadOnly".equals(fieldName)) { + deserializedVirtualMachineDiskProperties.diskIOPSReadOnly = reader.getNullable(JsonReader::getLong); + } else if ("diskMBpsReadOnly".equals(fieldName)) { + deserializedVirtualMachineDiskProperties.diskMBpsReadOnly = reader.getNullable(JsonReader::getLong); + } else if ("logicalSectorSize".equals(fieldName)) { + deserializedVirtualMachineDiskProperties.logicalSectorSize = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedVirtualMachineDiskProperties; + }); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionHandlerInstanceView.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionHandlerInstanceView.java index bac04d757934..57e65cf7fa44 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionHandlerInstanceView.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionHandlerInstanceView.java @@ -23,7 +23,8 @@ public final class VirtualMachineExtensionHandlerInstanceView private String type; /* - * Specifies the version of the script handler. + * Specifies the Major.Minor.Patch.Hotfix version of the script handler. Azure platform will deliver the latest + * Patch.Hotfix version in the Major.Minor series. */ private String typeHandlerVersion; @@ -59,7 +60,8 @@ public VirtualMachineExtensionHandlerInstanceView withType(String type) { } /** - * Get the typeHandlerVersion property: Specifies the version of the script handler. + * Get the typeHandlerVersion property: Specifies the Major.Minor.Patch.Hotfix version of the script handler. Azure + * platform will deliver the latest Patch.Hotfix version in the Major.Minor series. * * @return the typeHandlerVersion value. */ @@ -68,7 +70,8 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion property: Specifies the version of the script handler. + * Set the typeHandlerVersion property: Specifies the Major.Minor.Patch.Hotfix version of the script handler. Azure + * platform will deliver the latest Patch.Hotfix version in the Major.Minor series. * * @param typeHandlerVersion the typeHandlerVersion value to set. * @return the VirtualMachineExtensionHandlerInstanceView object itself. diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionInstanceView.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionInstanceView.java index 7769832a17e3..0e24420a11a7 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionInstanceView.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionInstanceView.java @@ -29,7 +29,8 @@ public final class VirtualMachineExtensionInstanceView private String type; /* - * Specifies the version of the script handler. + * Specifies the Major.Minor.Patch.Hotfix version of the script handler. Azure platform will deliver the latest + * Patch.Hotfix version in the Major.Minor series. */ private String typeHandlerVersion; @@ -90,7 +91,8 @@ public VirtualMachineExtensionInstanceView withType(String type) { } /** - * Get the typeHandlerVersion property: Specifies the version of the script handler. + * Get the typeHandlerVersion property: Specifies the Major.Minor.Patch.Hotfix version of the script handler. Azure + * platform will deliver the latest Patch.Hotfix version in the Major.Minor series. * * @return the typeHandlerVersion value. */ @@ -99,7 +101,8 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion property: Specifies the version of the script handler. + * Set the typeHandlerVersion property: Specifies the Major.Minor.Patch.Hotfix version of the script handler. Azure + * platform will deliver the latest Patch.Hotfix version in the Major.Minor series. * * @param typeHandlerVersion the typeHandlerVersion value to set. * @return the VirtualMachineExtensionInstanceView object itself. diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionUpdate.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionUpdate.java index 6fd85014570e..8e4587218957 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionUpdate.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionUpdate.java @@ -118,7 +118,9 @@ public VirtualMachineExtensionUpdate withType(String type) { } /** - * Get the typeHandlerVersion property: Specifies the version of the script handler. + * Get the typeHandlerVersion property: Specifies the Major.Minor version of the script handler. Customer is able to + * specify only the Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix version + * in the Major.Minor series. * * @return the typeHandlerVersion value. */ @@ -127,7 +129,9 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion property: Specifies the version of the script handler. + * Set the typeHandlerVersion property: Specifies the Major.Minor version of the script handler. Customer is able to + * specify only the Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix version + * in the Major.Minor series. * * @param typeHandlerVersion the typeHandlerVersion value to set. * @return the VirtualMachineExtensionUpdate object itself. diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineIpTag.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineIpTag.java index 9acedf9164c8..ddaa3c16ac6a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineIpTag.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineIpTag.java @@ -26,6 +26,11 @@ public final class VirtualMachineIpTag implements JsonSerializable { /** - * Static value Regular for VirtualMachinePriorityTypes. + * Regular Priority for a standalone virtual machine or the virtual machines in the scale set. + * This is the default priority and it will be used to deploy regular VM/VMSS. */ public static final VirtualMachinePriorityTypes REGULAR = fromString("Regular"); /** - * Static value Low for VirtualMachinePriorityTypes. + * Low priority for a standalone virtual machine or the virtual machines in the scale set. Will be Deprecated, use + * Spot instead. */ public static final VirtualMachinePriorityTypes LOW = fromString("Low"); /** - * Static value Spot for VirtualMachinePriorityTypes. + * Spot priority for a standalone virtual machine or the virtual machines in the scale set. */ public static final VirtualMachinePriorityTypes SPOT = fromString("Spot"); + /** + * SpotPlus priority for a standalone virtual machine or the virtual machines in the scale set. + * This is an enum value that will be used to deploy Azure Spot Plus VM/VMSS, which is the next + * generation of Azure Spot VM/VMSS with more reliability and longer running time. + */ + public static final VirtualMachinePriorityTypes SPOT_PLUS = fromString("SpotPlus"); + /** * Creates a new instance of VirtualMachinePriorityTypes value. * diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtensionUpdate.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtensionUpdate.java index 96d178ed4a37..86b04f75d6c4 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtensionUpdate.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtensionUpdate.java @@ -152,7 +152,9 @@ public VirtualMachineScaleSetExtensionUpdate withTypePropertiesType(String type) } /** - * Get the typeHandlerVersion property: Specifies the version of the script handler. + * Get the typeHandlerVersion property: Specifies the Major.Minor version of the script handler. Customer is able to + * specify only the Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix version + * in the Major.Minor series. * * @return the typeHandlerVersion value. */ @@ -161,7 +163,9 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion property: Specifies the version of the script handler. + * Set the typeHandlerVersion property: Specifies the Major.Minor version of the script handler. Customer is able to + * specify only the Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix version + * in the Major.Minor series. * * @param typeHandlerVersion the typeHandlerVersion value to set. * @return the VirtualMachineScaleSetExtensionUpdate object itself. diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetHardwareProfile.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetHardwareProfile.java index ce38336f9b7f..4acc141ab640 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetHardwareProfile.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetHardwareProfile.java @@ -23,6 +23,13 @@ public final class VirtualMachineScaleSetHardwareProfile */ private VMSizeProperties vmSizeProperties; + /* + * Specifies the processor mode for the virtual machine scale set. Optional; if omitted, the platform default + * applies (currently Deterministic). This property can be updated on a running VMSS without deallocation or reboot. + * Minimum api-version: 2026-04-01. + */ + private ProcessorMode processorMode; + /** * Creates an instance of VirtualMachineScaleSetHardwareProfile class. */ @@ -53,6 +60,30 @@ public VirtualMachineScaleSetHardwareProfile withVmSizeProperties(VMSizeProperti return this; } + /** + * Get the processorMode property: Specifies the processor mode for the virtual machine scale set. Optional; if + * omitted, the platform default applies (currently Deterministic). This property can be updated on a running VMSS + * without deallocation or reboot. Minimum api-version: 2026-04-01. + * + * @return the processorMode value. + */ + public ProcessorMode processorMode() { + return this.processorMode; + } + + /** + * Set the processorMode property: Specifies the processor mode for the virtual machine scale set. Optional; if + * omitted, the platform default applies (currently Deterministic). This property can be updated on a running VMSS + * without deallocation or reboot. Minimum api-version: 2026-04-01. + * + * @param processorMode the processorMode value to set. + * @return the VirtualMachineScaleSetHardwareProfile object itself. + */ + public VirtualMachineScaleSetHardwareProfile withProcessorMode(ProcessorMode processorMode) { + this.processorMode = processorMode; + return this; + } + /** * Validates the instance. * @@ -71,6 +102,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("vmSizeProperties", this.vmSizeProperties); + jsonWriter.writeStringField("processorMode", this.processorMode == null ? null : this.processorMode.toString()); return jsonWriter.writeEndObject(); } @@ -93,6 +125,9 @@ public static VirtualMachineScaleSetHardwareProfile fromJson(JsonReader jsonRead if ("vmSizeProperties".equals(fieldName)) { deserializedVirtualMachineScaleSetHardwareProfile.vmSizeProperties = VMSizeProperties.fromJson(reader); + } else if ("processorMode".equals(fieldName)) { + deserializedVirtualMachineScaleSetHardwareProfile.processorMode + = ProcessorMode.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetIpTag.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetIpTag.java index e3376ebe7df8..eae93c6ce94a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetIpTag.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetIpTag.java @@ -26,6 +26,11 @@ public final class VirtualMachineScaleSetIpTag implements JsonSerializable writer.writeJson(element)); jsonWriter.writeStringField("diskControllerType", this.diskControllerType == null ? null : this.diskControllerType.toString()); + jsonWriter.writeStringField("diskApiVersion", + this.diskApiVersion == null ? null : this.diskApiVersion.toString()); return jsonWriter.writeEndObject(); } @@ -204,6 +234,9 @@ public static VirtualMachineScaleSetStorageProfile fromJson(JsonReader jsonReade } else if ("diskControllerType".equals(fieldName)) { deserializedVirtualMachineScaleSetStorageProfile.diskControllerType = DiskControllerTypes.fromString(reader.getString()); + } else if ("diskApiVersion".equals(fieldName)) { + deserializedVirtualMachineScaleSetStorageProfile.diskApiVersion + = DiskApiVersion.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateStorageProfile.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateStorageProfile.java index 3d96195bdca8..2bf473cb4e1f 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateStorageProfile.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateStorageProfile.java @@ -40,6 +40,12 @@ public final class VirtualMachineScaleSetUpdateStorageProfile */ private DiskControllerTypes diskControllerType; + /* + * Specifies the Disk API version used when applying additionalDiskProperties to managed disks. The value must be in + * the format YYYY-MM-DD (e.g., "2026-03-02"). + */ + private DiskApiVersion diskApiVersion; + /** * Creates an instance of VirtualMachineScaleSetUpdateStorageProfile class. */ @@ -130,6 +136,28 @@ public VirtualMachineScaleSetUpdateStorageProfile withDiskControllerType(DiskCon return this; } + /** + * Get the diskApiVersion property: Specifies the Disk API version used when applying additionalDiskProperties to + * managed disks. The value must be in the format YYYY-MM-DD (e.g., "2026-03-02"). + * + * @return the diskApiVersion value. + */ + public DiskApiVersion diskApiVersion() { + return this.diskApiVersion; + } + + /** + * Set the diskApiVersion property: Specifies the Disk API version used when applying additionalDiskProperties to + * managed disks. The value must be in the format YYYY-MM-DD (e.g., "2026-03-02"). + * + * @param diskApiVersion the diskApiVersion value to set. + * @return the VirtualMachineScaleSetUpdateStorageProfile object itself. + */ + public VirtualMachineScaleSetUpdateStorageProfile withDiskApiVersion(DiskApiVersion diskApiVersion) { + this.diskApiVersion = diskApiVersion; + return this; + } + /** * Validates the instance. * @@ -158,6 +186,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeArrayField("dataDisks", this.dataDisks, (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("diskControllerType", this.diskControllerType == null ? null : this.diskControllerType.toString()); + jsonWriter.writeStringField("diskApiVersion", + this.diskApiVersion == null ? null : this.diskApiVersion.toString()); return jsonWriter.writeEndObject(); } @@ -190,6 +220,9 @@ public static VirtualMachineScaleSetUpdateStorageProfile fromJson(JsonReader jso } else if ("diskControllerType".equals(fieldName)) { deserializedVirtualMachineScaleSetUpdateStorageProfile.diskControllerType = DiskControllerTypes.fromString(reader.getString()); + } else if ("diskApiVersion".equals(fieldName)) { + deserializedVirtualMachineScaleSetUpdateStorageProfile.diskApiVersion + = DiskApiVersion.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMExtensionUpdate.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMExtensionUpdate.java index 6b29840c8a1f..20022f69f8d9 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMExtensionUpdate.java +++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMExtensionUpdate.java @@ -151,7 +151,9 @@ public VirtualMachineScaleSetVMExtensionUpdate withTypePropertiesType(String typ } /** - * Get the typeHandlerVersion property: Specifies the version of the script handler. + * Get the typeHandlerVersion property: Specifies the Major.Minor version of the script handler. Customer is able to + * specify only the Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix version + * in the Major.Minor series. * * @return the typeHandlerVersion value. */ @@ -160,7 +162,9 @@ public String typeHandlerVersion() { } /** - * Set the typeHandlerVersion property: Specifies the version of the script handler. + * Set the typeHandlerVersion property: Specifies the Major.Minor version of the script handler. Customer is able to + * specify only the Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix version + * in the Major.Minor series. * * @param typeHandlerVersion the typeHandlerVersion value to set. * @return the VirtualMachineScaleSetVMExtensionUpdate object itself. diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/resources/META-INF/azure-resourcemanager-compute_metadata.json b/sdk/compute/azure-resourcemanager-compute/src/main/resources/META-INF/azure-resourcemanager-compute_metadata.json index c92f9c2bb24b..81f8ee2bae8b 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/resources/META-INF/azure-resourcemanager-compute_metadata.json +++ b/sdk/compute/azure-resourcemanager-compute/src/main/resources/META-INF/azure-resourcemanager-compute_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Compute":"2026-03-01","ComputeDisk":"2026-03-02","ComputeGallery":"2025-12-03","ComputeSku":"2021-07-01"},"crossLanguagePackageId":"Compute","crossLanguageVersion":"e3f97638089f","generatedFiles":["src/main/java/com/azure/resourcemanager/compute/fluent/AvailabilitySetsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/CapacityReservationGroupsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/CapacityReservationsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/CommunityGalleriesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/CommunityGalleryImageVersionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/CommunityGalleryImagesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/ComputeManagementClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/DedicatedHostGroupsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/DedicatedHostsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/DiskAccessesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/DiskEncryptionSetsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/DiskRestorePointsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/DisksClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleriesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryApplicationVersionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryApplicationsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryImageVersionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryImagesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryInVMAccessControlProfileVersionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryInVMAccessControlProfilesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryScriptVersionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryScriptsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GallerySharingProfilesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/ImagesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/InterconnectBlocksClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/LogAnalyticsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/ProximityPlacementGroupsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/ResourceSkusClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/RestorePointCollectionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/RestorePointsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/SharedGalleriesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/SharedGalleryImageVersionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/SharedGalleryImagesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/SharedGalleryInvitesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/SnapshotsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/SoftDeletedResourcesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/SshPublicKeysClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/TenantLevelSharedGalleryInvitesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/UsagesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineExtensionImagesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineExtensionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineImagesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineImagesEdgeZonesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineRunCommandsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetExtensionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetLifeCycleHookEventsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetRollingUpgradesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetVMExtensionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetVMRunCommandsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetVMsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineSizesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachinesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/AccessUriInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/AvailabilitySetInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/AvailabilitySetProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationGroupInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationGroupProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryIdentifier.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryImageInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryImageProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryImageVersionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryImageVersionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DedicatedHostGroupInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DedicatedHostGroupProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DedicatedHostInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DedicatedHostProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskAccessInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskAccessProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskEncryptionSetInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskEncryptionSetUpdateProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskRestorePointInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskRestorePointProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskUpdateProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/EncryptionSetProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryApplicationInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryApplicationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryApplicationVersionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryApplicationVersionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryImageInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryImageProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryImageVersionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryImageVersionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryInVMAccessControlProfileInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryInVMAccessControlProfileVersionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryInVMAccessControlProfileVersionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptVersionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptVersionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GallerySoftDeletedResourceInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GallerySoftDeletedResourceProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/ImageInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/ImageProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/InterconnectBlockInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/LogAnalyticsOperationResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/NetworkInterfaceReferenceProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/PrivateLinkResourceListResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/PrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/ProximityPlacementGroupInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/ProximityPlacementGroupProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RecoveryWalkResponseInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/ResourceSkuInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointCollectionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointCollectionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RetrieveBootDiagnosticsDataResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RollingUpgradeStatusInfoInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RollingUpgradeStatusInfoProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RunCommandDocumentBaseInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RunCommandDocumentInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RunCommandResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharedGalleryIdentifier.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharedGalleryImageInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharedGalleryImageProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharedGalleryImageVersionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharedGalleryImageVersionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharedGalleryInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharedGalleryProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharingUpdateInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SnapshotInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SnapshotProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SnapshotUpdateProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SshPublicKeyGenerateKeyPairResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SshPublicKeyResourceInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SshPublicKeyResourceProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/UpgradeOperationHistoricalStatusInfoInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/UsageInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VMScaleSetLifecycleHookEventInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VMScaleSetLifecycleHookEventProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineAssessPatchesResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineCaptureResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionImageInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionImageProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionUpdateProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionsListResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineImageInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineImageProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineImageResourceInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInstallPatchesResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInstanceViewInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineNetworkInterfaceConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineNetworkInterfaceIPConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachinePropertiesInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachinePublicIPAddressConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineRunCommandInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineRunCommandProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetExtensionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetExtensionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetIPConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetInstanceViewInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetNetworkConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetPublicIPAddressConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetSkuInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetUpdateIPConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetUpdateNetworkConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetUpdateProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMExtensionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMExtensionsListResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMInstanceViewInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMPropertiesInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineSizeInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineUpdateInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VmImagesInEdgeZoneListResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/compute/fluent/package-info.java","src/main/java/com/azure/resourcemanager/compute/implementation/AvailabilitySetsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleriesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleryImageVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleryImagesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/DiskAccessesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/DiskEncryptionSetsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/DiskRestorePointsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/DisksClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleriesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryApplicationVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryApplicationsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryImageVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryImagesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryInVMAccessControlProfileVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryInVMAccessControlProfilesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryScriptVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryScriptsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GallerySharingProfilesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/ImagesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/InterconnectBlocksClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/LogAnalyticsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/ProximityPlacementGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/ResourceSkusClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointCollectionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleriesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleryImageVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleryImagesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleryInvitesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/SnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/SoftDeletedResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/SshPublicKeysClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/TenantLevelSharedGalleryInvitesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/UsagesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionImagesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImagesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImagesEdgeZonesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineRunCommandsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetExtensionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetLifeCycleHookEventsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetRollingUpgradesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMExtensionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMRunCommandsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineSizesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachinesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/AvailabilitySetListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/CapacityReservationGroupListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/CapacityReservationListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/CommunityGalleryImageList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/CommunityGalleryImageVersionList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/DedicatedHostGroupListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/DedicatedHostListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/DedicatedHostSizeListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/DiskAccessList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/DiskEncryptionSetList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/DiskList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/DiskRestorePointList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryApplicationList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryApplicationVersionList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryImageList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryImageVersionList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryInVMAccessControlProfileList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryInVMAccessControlProfileVersionList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryScriptList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryScriptVersionList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GallerySoftDeletedResourceList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/ImageListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/InterconnectBlockListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/ListUsagesResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/PrivateEndpointConnectionListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/ProximityPlacementGroupListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/ResourceSkusResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/ResourceUriList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/RestorePointCollectionListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/RunCommandListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/SharedGalleryImageList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/SharedGalleryImageVersionList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/SharedGalleryList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/SnapshotList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/SshPublicKeysGroupListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VMScaleSetLifecycleHookEventListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineRunCommandsListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineScaleSetExtensionListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineScaleSetListOSUpgradeHistory.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineScaleSetListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineScaleSetListSkusResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineScaleSetListWithLinkResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineScaleSetVMListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineSizeListResult.java","src/main/java/com/azure/resourcemanager/compute/models/AccessControlRules.java","src/main/java/com/azure/resourcemanager/compute/models/AccessControlRulesIdentity.java","src/main/java/com/azure/resourcemanager/compute/models/AccessControlRulesMode.java","src/main/java/com/azure/resourcemanager/compute/models/AccessControlRulesPrivilege.java","src/main/java/com/azure/resourcemanager/compute/models/AccessControlRulesRole.java","src/main/java/com/azure/resourcemanager/compute/models/AccessControlRulesRoleAssignment.java","src/main/java/com/azure/resourcemanager/compute/models/AccessLevel.java","src/main/java/com/azure/resourcemanager/compute/models/ActionType.java","src/main/java/com/azure/resourcemanager/compute/models/AdditionalCapabilities.java","src/main/java/com/azure/resourcemanager/compute/models/AdditionalReplicaSet.java","src/main/java/com/azure/resourcemanager/compute/models/AdditionalUnattendContent.java","src/main/java/com/azure/resourcemanager/compute/models/AggregatedReplicationState.java","src/main/java/com/azure/resourcemanager/compute/models/AllInstancesDown.java","src/main/java/com/azure/resourcemanager/compute/models/AllocationStrategy.java","src/main/java/com/azure/resourcemanager/compute/models/AlternativeOption.java","src/main/java/com/azure/resourcemanager/compute/models/AlternativeType.java","src/main/java/com/azure/resourcemanager/compute/models/ApiEntityReference.java","src/main/java/com/azure/resourcemanager/compute/models/ApiError.java","src/main/java/com/azure/resourcemanager/compute/models/ApiErrorException.java","src/main/java/com/azure/resourcemanager/compute/models/ApplicationProfile.java","src/main/java/com/azure/resourcemanager/compute/models/Architecture.java","src/main/java/com/azure/resourcemanager/compute/models/ArchitectureTypes.java","src/main/java/com/azure/resourcemanager/compute/models/AttachDetachDataDisksRequest.java","src/main/java/com/azure/resourcemanager/compute/models/AutomaticOSUpgradePolicy.java","src/main/java/com/azure/resourcemanager/compute/models/AutomaticOSUpgradeProperties.java","src/main/java/com/azure/resourcemanager/compute/models/AutomaticRepairsPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/AutomaticSkuMigrationPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/AutomaticZoneRebalancingPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/AvailabilityPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/AvailabilityPolicyDiskDelay.java","src/main/java/com/azure/resourcemanager/compute/models/AvailabilitySetSkuTypes.java","src/main/java/com/azure/resourcemanager/compute/models/AvailabilitySetUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/AvailablePatchSummary.java","src/main/java/com/azure/resourcemanager/compute/models/BillingProfile.java","src/main/java/com/azure/resourcemanager/compute/models/BootDiagnostics.java","src/main/java/com/azure/resourcemanager/compute/models/BootDiagnosticsInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/CachingTypes.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationGroupInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationGroupInstanceViewTypes.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationGroupUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationInstanceViewTypes.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationInstanceViewWithName.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationProfile.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationUtilization.java","src/main/java/com/azure/resourcemanager/compute/models/CommunityGalleryImageIdentifier.java","src/main/java/com/azure/resourcemanager/compute/models/CommunityGalleryInfo.java","src/main/java/com/azure/resourcemanager/compute/models/CommunityGalleryMetadata.java","src/main/java/com/azure/resourcemanager/compute/models/ComponentNames.java","src/main/java/com/azure/resourcemanager/compute/models/ConfidentialVMEncryptionType.java","src/main/java/com/azure/resourcemanager/compute/models/ConfidentialVMVersion.java","src/main/java/com/azure/resourcemanager/compute/models/ConsistencyModeTypes.java","src/main/java/com/azure/resourcemanager/compute/models/ConvertToVirtualMachineScaleSetInput.java","src/main/java/com/azure/resourcemanager/compute/models/CopyCompletionError.java","src/main/java/com/azure/resourcemanager/compute/models/CopyCompletionErrorReason.java","src/main/java/com/azure/resourcemanager/compute/models/CreationData.java","src/main/java/com/azure/resourcemanager/compute/models/DataAccessAuthMode.java","src/main/java/com/azure/resourcemanager/compute/models/DataDisk.java","src/main/java/com/azure/resourcemanager/compute/models/DataDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/DataDiskImageEncryption.java","src/main/java/com/azure/resourcemanager/compute/models/DataDisksToAttach.java","src/main/java/com/azure/resourcemanager/compute/models/DataDisksToDetach.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostAllocatableVM.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostAvailableCapacity.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostGroupInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostGroupPropertiesAdditionalCapabilities.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostGroupUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostInstanceViewWithName.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostLicenseTypes.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/DefaultVirtualMachineScaleSetInfo.java","src/main/java/com/azure/resourcemanager/compute/models/DeleteOptions.java","src/main/java/com/azure/resourcemanager/compute/models/DiagnosticsProfile.java","src/main/java/com/azure/resourcemanager/compute/models/DiffDiskOptions.java","src/main/java/com/azure/resourcemanager/compute/models/DiffDiskPlacement.java","src/main/java/com/azure/resourcemanager/compute/models/DiffDiskSettings.java","src/main/java/com/azure/resourcemanager/compute/models/Disallowed.java","src/main/java/com/azure/resourcemanager/compute/models/DisallowedConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/DiskAccessUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/DiskControllerTypes.java","src/main/java/com/azure/resourcemanager/compute/models/DiskCreateOption.java","src/main/java/com/azure/resourcemanager/compute/models/DiskCreateOptionTypes.java","src/main/java/com/azure/resourcemanager/compute/models/DiskDeleteOptionTypes.java","src/main/java/com/azure/resourcemanager/compute/models/DiskDetachOptionTypes.java","src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSetIdentityType.java","src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSetParameters.java","src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSetType.java","src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSetUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSettings.java","src/main/java/com/azure/resourcemanager/compute/models/DiskImageEncryption.java","src/main/java/com/azure/resourcemanager/compute/models/DiskInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/DiskPurchasePlan.java","src/main/java/com/azure/resourcemanager/compute/models/DiskRestorePointAttributes.java","src/main/java/com/azure/resourcemanager/compute/models/DiskRestorePointInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/DiskRestorePointReplicationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/DiskSecurityProfile.java","src/main/java/com/azure/resourcemanager/compute/models/DiskSecurityTypes.java","src/main/java/com/azure/resourcemanager/compute/models/DiskSku.java","src/main/java/com/azure/resourcemanager/compute/models/DiskState.java","src/main/java/com/azure/resourcemanager/compute/models/DiskStorageAccountTypes.java","src/main/java/com/azure/resourcemanager/compute/models/DiskUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/DomainNameLabelScopeTypes.java","src/main/java/com/azure/resourcemanager/compute/models/EdgeZoneStorageAccountType.java","src/main/java/com/azure/resourcemanager/compute/models/Encryption.java","src/main/java/com/azure/resourcemanager/compute/models/EncryptionIdentity.java","src/main/java/com/azure/resourcemanager/compute/models/EncryptionImages.java","src/main/java/com/azure/resourcemanager/compute/models/EncryptionSetIdentity.java","src/main/java/com/azure/resourcemanager/compute/models/EncryptionSettingsCollection.java","src/main/java/com/azure/resourcemanager/compute/models/EncryptionSettingsElement.java","src/main/java/com/azure/resourcemanager/compute/models/EncryptionType.java","src/main/java/com/azure/resourcemanager/compute/models/EndpointAccess.java","src/main/java/com/azure/resourcemanager/compute/models/EndpointTypes.java","src/main/java/com/azure/resourcemanager/compute/models/EventGridAndResourceGraph.java","src/main/java/com/azure/resourcemanager/compute/models/ExecutedValidation.java","src/main/java/com/azure/resourcemanager/compute/models/ExecutionState.java","src/main/java/com/azure/resourcemanager/compute/models/ExpandTypeForListVMs.java","src/main/java/com/azure/resourcemanager/compute/models/ExpandTypesForGetCapacityReservationGroups.java","src/main/java/com/azure/resourcemanager/compute/models/ExpandTypesForGetVMScaleSets.java","src/main/java/com/azure/resourcemanager/compute/models/ExpandTypesForListVMs.java","src/main/java/com/azure/resourcemanager/compute/models/ExtendedLocation.java","src/main/java/com/azure/resourcemanager/compute/models/ExtendedLocationType.java","src/main/java/com/azure/resourcemanager/compute/models/ExtendedLocationTypes.java","src/main/java/com/azure/resourcemanager/compute/models/ExternalHealthPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/FileFormat.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationCustomAction.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationCustomActionParameter.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationCustomActionParameterType.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationScriptRebootBehavior.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationVersionPublishingProfile.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationVersionSafetyProfile.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationVersionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryArtifactPublishingProfileBase.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryArtifactSafetyProfileBase.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryArtifactVersionFullSource.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryArtifactVersionSource.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryDataDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryDiskImageSource.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryExpandParams.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryExtendedLocation.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryExtendedLocationType.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryIdentifier.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryIdentity.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageFeature.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageIdentifier.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersionPublishingProfile.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersionSafetyProfile.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersionStorageProfile.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersionUefiSettings.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryInVMAccessControlProfileProperties.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryInVMAccessControlProfileUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryInVMAccessControlProfileVersionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryOSDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryProvisioningState.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryResourceProfilePropertiesBase.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryResourceProfileVersionPropertiesBase.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryScriptParameter.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryScriptParameterType.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryScriptUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryScriptVersionPublishingProfile.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryScriptVersionSafetyProfile.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryScriptVersionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GallerySharingPermissionTypes.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryTargetExtendedLocation.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GenericGalleryParameter.java","src/main/java/com/azure/resourcemanager/compute/models/GrantAccessData.java","src/main/java/com/azure/resourcemanager/compute/models/HardwareProfile.java","src/main/java/com/azure/resourcemanager/compute/models/HighSpeedInterconnectPlacement.java","src/main/java/com/azure/resourcemanager/compute/models/HostCaching.java","src/main/java/com/azure/resourcemanager/compute/models/HostEndpointSettings.java","src/main/java/com/azure/resourcemanager/compute/models/HyperVGeneration.java","src/main/java/com/azure/resourcemanager/compute/models/HyperVGenerationType.java","src/main/java/com/azure/resourcemanager/compute/models/HyperVGenerationTypes.java","src/main/java/com/azure/resourcemanager/compute/models/ImageDataDisk.java","src/main/java/com/azure/resourcemanager/compute/models/ImageDeprecationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/ImageDisk.java","src/main/java/com/azure/resourcemanager/compute/models/ImageDiskReference.java","src/main/java/com/azure/resourcemanager/compute/models/ImageOSDisk.java","src/main/java/com/azure/resourcemanager/compute/models/ImagePurchasePlan.java","src/main/java/com/azure/resourcemanager/compute/models/ImageReference.java","src/main/java/com/azure/resourcemanager/compute/models/ImageState.java","src/main/java/com/azure/resourcemanager/compute/models/ImageStorageProfile.java","src/main/java/com/azure/resourcemanager/compute/models/ImageUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/ImageVersionSecurityProfile.java","src/main/java/com/azure/resourcemanager/compute/models/ImmutabilityPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/ImmutabilityPolicyData.java","src/main/java/com/azure/resourcemanager/compute/models/ImmutabilityPolicyLockData.java","src/main/java/com/azure/resourcemanager/compute/models/ImmutabilityPolicyType.java","src/main/java/com/azure/resourcemanager/compute/models/InnerError.java","src/main/java/com/azure/resourcemanager/compute/models/InstanceViewStatus.java","src/main/java/com/azure/resourcemanager/compute/models/InstanceViewTypes.java","src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockExpandTypes.java","src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockProfile.java","src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockProperties.java","src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/InterconnectGroupProfile.java","src/main/java/com/azure/resourcemanager/compute/models/InterconnectInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/IntervalInMins.java","src/main/java/com/azure/resourcemanager/compute/models/IpVersion.java","src/main/java/com/azure/resourcemanager/compute/models/IpVersions.java","src/main/java/com/azure/resourcemanager/compute/models/KeyForDiskEncryptionSet.java","src/main/java/com/azure/resourcemanager/compute/models/KeyVaultAndKeyReference.java","src/main/java/com/azure/resourcemanager/compute/models/KeyVaultAndSecretReference.java","src/main/java/com/azure/resourcemanager/compute/models/KeyVaultKeyReference.java","src/main/java/com/azure/resourcemanager/compute/models/KeyVaultSecretReference.java","src/main/java/com/azure/resourcemanager/compute/models/LastPatchInstallationSummary.java","src/main/java/com/azure/resourcemanager/compute/models/LifecycleHook.java","src/main/java/com/azure/resourcemanager/compute/models/LifecycleHookAction.java","src/main/java/com/azure/resourcemanager/compute/models/LifecycleHookActionState.java","src/main/java/com/azure/resourcemanager/compute/models/LifecycleHooksProfile.java","src/main/java/com/azure/resourcemanager/compute/models/LinuxConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/LinuxParameters.java","src/main/java/com/azure/resourcemanager/compute/models/LinuxPatchAssessmentMode.java","src/main/java/com/azure/resourcemanager/compute/models/LinuxPatchSettings.java","src/main/java/com/azure/resourcemanager/compute/models/LinuxVMGuestPatchAutomaticByPlatformRebootSetting.java","src/main/java/com/azure/resourcemanager/compute/models/LinuxVMGuestPatchAutomaticByPlatformSettings.java","src/main/java/com/azure/resourcemanager/compute/models/LinuxVMGuestPatchMode.java","src/main/java/com/azure/resourcemanager/compute/models/LogAnalyticsInputBase.java","src/main/java/com/azure/resourcemanager/compute/models/LogAnalyticsOutput.java","src/main/java/com/azure/resourcemanager/compute/models/MaintenanceOperationResultCodeTypes.java","src/main/java/com/azure/resourcemanager/compute/models/MaintenanceRedeployStatus.java","src/main/java/com/azure/resourcemanager/compute/models/ManagedDiskParameters.java","src/main/java/com/azure/resourcemanager/compute/models/MaxInstancePercentPerZonePolicy.java","src/main/java/com/azure/resourcemanager/compute/models/MigrateToVirtualMachineScaleSetInput.java","src/main/java/com/azure/resourcemanager/compute/models/MigrateVMToVirtualMachineScaleSetInput.java","src/main/java/com/azure/resourcemanager/compute/models/Mode.java","src/main/java/com/azure/resourcemanager/compute/models/Modes.java","src/main/java/com/azure/resourcemanager/compute/models/NetworkAccessPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/NetworkApiVersion.java","src/main/java/com/azure/resourcemanager/compute/models/NetworkInterfaceAuxiliaryMode.java","src/main/java/com/azure/resourcemanager/compute/models/NetworkInterfaceAuxiliarySku.java","src/main/java/com/azure/resourcemanager/compute/models/NetworkInterfaceReference.java","src/main/java/com/azure/resourcemanager/compute/models/NetworkProfile.java","src/main/java/com/azure/resourcemanager/compute/models/OSDisk.java","src/main/java/com/azure/resourcemanager/compute/models/OSDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/OSDiskImageEncryption.java","src/main/java/com/azure/resourcemanager/compute/models/OSDiskImageSecurityProfile.java","src/main/java/com/azure/resourcemanager/compute/models/OSImageNotificationProfile.java","src/main/java/com/azure/resourcemanager/compute/models/OSProfile.java","src/main/java/com/azure/resourcemanager/compute/models/OSProfileProvisioningData.java","src/main/java/com/azure/resourcemanager/compute/models/OperatingSystemStateTypes.java","src/main/java/com/azure/resourcemanager/compute/models/OperatingSystemType.java","src/main/java/com/azure/resourcemanager/compute/models/OperatingSystemTypes.java","src/main/java/com/azure/resourcemanager/compute/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/compute/models/OperationRecoverySettings.java","src/main/java/com/azure/resourcemanager/compute/models/OrchestrationMode.java","src/main/java/com/azure/resourcemanager/compute/models/OrchestrationServiceNames.java","src/main/java/com/azure/resourcemanager/compute/models/OrchestrationServiceOperationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/OrchestrationServiceState.java","src/main/java/com/azure/resourcemanager/compute/models/OrchestrationServiceStateAction.java","src/main/java/com/azure/resourcemanager/compute/models/OrchestrationServiceStateInput.java","src/main/java/com/azure/resourcemanager/compute/models/OrchestrationServiceSummary.java","src/main/java/com/azure/resourcemanager/compute/models/Origin.java","src/main/java/com/azure/resourcemanager/compute/models/PassNames.java","src/main/java/com/azure/resourcemanager/compute/models/PatchAssessmentState.java","src/main/java/com/azure/resourcemanager/compute/models/PatchInstallationDetail.java","src/main/java/com/azure/resourcemanager/compute/models/PatchInstallationState.java","src/main/java/com/azure/resourcemanager/compute/models/PatchOperationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/PatchSettings.java","src/main/java/com/azure/resourcemanager/compute/models/PirCommunityGalleryResource.java","src/main/java/com/azure/resourcemanager/compute/models/PirResource.java","src/main/java/com/azure/resourcemanager/compute/models/PirSharedGalleryResource.java","src/main/java/com/azure/resourcemanager/compute/models/Placement.java","src/main/java/com/azure/resourcemanager/compute/models/Plan.java","src/main/java/com/azure/resourcemanager/compute/models/PlatformAttribute.java","src/main/java/com/azure/resourcemanager/compute/models/PolicyViolation.java","src/main/java/com/azure/resourcemanager/compute/models/PolicyViolationCategory.java","src/main/java/com/azure/resourcemanager/compute/models/PriorityMixPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/compute/models/PrivateEndpointConnectionProvisioningState.java","src/main/java/com/azure/resourcemanager/compute/models/PrivateEndpointServiceConnectionStatus.java","src/main/java/com/azure/resourcemanager/compute/models/PrivateLinkResource.java","src/main/java/com/azure/resourcemanager/compute/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/compute/models/PropertyUpdatesInProgress.java","src/main/java/com/azure/resourcemanager/compute/models/ProtocolTypes.java","src/main/java/com/azure/resourcemanager/compute/models/ProvisionedBandwidthCopyOption.java","src/main/java/com/azure/resourcemanager/compute/models/ProximityPlacementGroupPropertiesIntent.java","src/main/java/com/azure/resourcemanager/compute/models/ProximityPlacementGroupType.java","src/main/java/com/azure/resourcemanager/compute/models/ProximityPlacementGroupUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/ProxyAgentSettings.java","src/main/java/com/azure/resourcemanager/compute/models/PublicIpAddressSku.java","src/main/java/com/azure/resourcemanager/compute/models/PublicIpAddressSkuName.java","src/main/java/com/azure/resourcemanager/compute/models/PublicIpAddressSkuTier.java","src/main/java/com/azure/resourcemanager/compute/models/PublicIpAllocationMethod.java","src/main/java/com/azure/resourcemanager/compute/models/PublicNetworkAccess.java","src/main/java/com/azure/resourcemanager/compute/models/PurchasePlan.java","src/main/java/com/azure/resourcemanager/compute/models/RebalanceBehavior.java","src/main/java/com/azure/resourcemanager/compute/models/RebalanceStrategy.java","src/main/java/com/azure/resourcemanager/compute/models/RecommendedMachineConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/RegionalReplicationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/RegionalSharingStatus.java","src/main/java/com/azure/resourcemanager/compute/models/ReimageRecoveryPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/RepairAction.java","src/main/java/com/azure/resourcemanager/compute/models/ReplicationMode.java","src/main/java/com/azure/resourcemanager/compute/models/ReplicationState.java","src/main/java/com/azure/resourcemanager/compute/models/ReplicationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/ReplicationStatusTypes.java","src/main/java/com/azure/resourcemanager/compute/models/RequestRateByIntervalInput.java","src/main/java/com/azure/resourcemanager/compute/models/ReservationType.java","src/main/java/com/azure/resourcemanager/compute/models/ResiliencyPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/ResiliencyProfile.java","src/main/java/com/azure/resourcemanager/compute/models/ResilientVMCreationPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/ResilientVMDeletionPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/ResilientVMDeletionStatus.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceIdOptionsForGetCapacityReservationGroups.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceIdentityType.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceRange.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSharingProfile.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuCapabilities.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuCapacity.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuCapacityScaleType.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuCosts.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuLocationInfo.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuRestrictionInfo.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuRestrictions.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuRestrictionsReasonCode.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuRestrictionsType.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuZoneDetails.java","src/main/java/com/azure/resourcemanager/compute/models/RestartRecoveryPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointCollectionExpandOptions.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointCollectionSourceProperties.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointCollectionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointEncryption.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointEncryptionType.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointExpandOptions.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointSourceMetadata.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointSourceVMDataDisk.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointSourceVMStorageProfile.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointSourceVmosDisk.java","src/main/java/com/azure/resourcemanager/compute/models/RollbackStatusInfo.java","src/main/java/com/azure/resourcemanager/compute/models/RollingUpgradeActionType.java","src/main/java/com/azure/resourcemanager/compute/models/RollingUpgradePolicy.java","src/main/java/com/azure/resourcemanager/compute/models/RollingUpgradeProgressInfo.java","src/main/java/com/azure/resourcemanager/compute/models/RollingUpgradeRunningStatus.java","src/main/java/com/azure/resourcemanager/compute/models/RollingUpgradeStatusCode.java","src/main/java/com/azure/resourcemanager/compute/models/RunCommandInput.java","src/main/java/com/azure/resourcemanager/compute/models/RunCommandInputParameter.java","src/main/java/com/azure/resourcemanager/compute/models/RunCommandManagedIdentity.java","src/main/java/com/azure/resourcemanager/compute/models/RunCommandParameterDefinition.java","src/main/java/com/azure/resourcemanager/compute/models/ScaleInPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/ScheduleProfile.java","src/main/java/com/azure/resourcemanager/compute/models/ScheduledEventsAdditionalPublishingTargets.java","src/main/java/com/azure/resourcemanager/compute/models/ScheduledEventsPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/ScheduledEventsProfile.java","src/main/java/com/azure/resourcemanager/compute/models/ScriptShellTypes.java","src/main/java/com/azure/resourcemanager/compute/models/ScriptSource.java","src/main/java/com/azure/resourcemanager/compute/models/SecurityEncryptionTypes.java","src/main/java/com/azure/resourcemanager/compute/models/SecurityPostureReference.java","src/main/java/com/azure/resourcemanager/compute/models/SecurityPostureReferenceUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/SecurityProfile.java","src/main/java/com/azure/resourcemanager/compute/models/SecurityTypes.java","src/main/java/com/azure/resourcemanager/compute/models/SelectPermissions.java","src/main/java/com/azure/resourcemanager/compute/models/ServiceArtifactReference.java","src/main/java/com/azure/resourcemanager/compute/models/SettingNames.java","src/main/java/com/azure/resourcemanager/compute/models/ShareInfoElement.java","src/main/java/com/azure/resourcemanager/compute/models/SharedGalleryDataDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/SharedGalleryDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/SharedGalleryHostCaching.java","src/main/java/com/azure/resourcemanager/compute/models/SharedGalleryImageVersionStorageProfile.java","src/main/java/com/azure/resourcemanager/compute/models/SharedGalleryOSDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/SharedToValues.java","src/main/java/com/azure/resourcemanager/compute/models/SharingProfile.java","src/main/java/com/azure/resourcemanager/compute/models/SharingProfileGroup.java","src/main/java/com/azure/resourcemanager/compute/models/SharingProfileGroupTypes.java","src/main/java/com/azure/resourcemanager/compute/models/SharingState.java","src/main/java/com/azure/resourcemanager/compute/models/SharingStatus.java","src/main/java/com/azure/resourcemanager/compute/models/SharingUpdateOperationTypes.java","src/main/java/com/azure/resourcemanager/compute/models/Sku.java","src/main/java/com/azure/resourcemanager/compute/models/SkuProfile.java","src/main/java/com/azure/resourcemanager/compute/models/SkuProfileVMSize.java","src/main/java/com/azure/resourcemanager/compute/models/SnapshotAccessState.java","src/main/java/com/azure/resourcemanager/compute/models/SnapshotSku.java","src/main/java/com/azure/resourcemanager/compute/models/SnapshotStorageAccountTypes.java","src/main/java/com/azure/resourcemanager/compute/models/SnapshotUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/SoftDeletePolicy.java","src/main/java/com/azure/resourcemanager/compute/models/SoftDeletedArtifactTypes.java","src/main/java/com/azure/resourcemanager/compute/models/SourceVault.java","src/main/java/com/azure/resourcemanager/compute/models/SpotRestorePolicy.java","src/main/java/com/azure/resourcemanager/compute/models/SshConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/SshEncryptionTypes.java","src/main/java/com/azure/resourcemanager/compute/models/SshGenerateKeyPairInputParameters.java","src/main/java/com/azure/resourcemanager/compute/models/SshPublicKey.java","src/main/java/com/azure/resourcemanager/compute/models/SshPublicKeyUpdateResource.java","src/main/java/com/azure/resourcemanager/compute/models/StartRecoveryPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/StatusLevelTypes.java","src/main/java/com/azure/resourcemanager/compute/models/StorageAccountStrategy.java","src/main/java/com/azure/resourcemanager/compute/models/StorageAccountType.java","src/main/java/com/azure/resourcemanager/compute/models/StorageAccountTypes.java","src/main/java/com/azure/resourcemanager/compute/models/StorageAlignmentStatus.java","src/main/java/com/azure/resourcemanager/compute/models/StorageFaultDomainAlignmentType.java","src/main/java/com/azure/resourcemanager/compute/models/StorageProfile.java","src/main/java/com/azure/resourcemanager/compute/models/SubResourceReadOnly.java","src/main/java/com/azure/resourcemanager/compute/models/SubResourceWithColocationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/SupportedCapabilities.java","src/main/java/com/azure/resourcemanager/compute/models/SupportedSecurityOption.java","src/main/java/com/azure/resourcemanager/compute/models/TargetRegion.java","src/main/java/com/azure/resourcemanager/compute/models/TerminateNotificationProfile.java","src/main/java/com/azure/resourcemanager/compute/models/ThrottledRequestsInput.java","src/main/java/com/azure/resourcemanager/compute/models/UefiKey.java","src/main/java/com/azure/resourcemanager/compute/models/UefiKeySignatures.java","src/main/java/com/azure/resourcemanager/compute/models/UefiKeyType.java","src/main/java/com/azure/resourcemanager/compute/models/UefiSettings.java","src/main/java/com/azure/resourcemanager/compute/models/UefiSignatureTemplateName.java","src/main/java/com/azure/resourcemanager/compute/models/UpdateResource.java","src/main/java/com/azure/resourcemanager/compute/models/UpdateResourceDefinition.java","src/main/java/com/azure/resourcemanager/compute/models/UpgradeMode.java","src/main/java/com/azure/resourcemanager/compute/models/UpgradeOperationHistoricalStatusInfoProperties.java","src/main/java/com/azure/resourcemanager/compute/models/UpgradeOperationHistoryStatus.java","src/main/java/com/azure/resourcemanager/compute/models/UpgradeOperationInvoker.java","src/main/java/com/azure/resourcemanager/compute/models/UpgradePolicy.java","src/main/java/com/azure/resourcemanager/compute/models/UpgradeState.java","src/main/java/com/azure/resourcemanager/compute/models/UsageName.java","src/main/java/com/azure/resourcemanager/compute/models/UserArtifactManage.java","src/main/java/com/azure/resourcemanager/compute/models/UserArtifactSettings.java","src/main/java/com/azure/resourcemanager/compute/models/UserArtifactSource.java","src/main/java/com/azure/resourcemanager/compute/models/UserInitiatedReboot.java","src/main/java/com/azure/resourcemanager/compute/models/UserInitiatedRedeploy.java","src/main/java/com/azure/resourcemanager/compute/models/VMDiskSecurityProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VMGalleryApplication.java","src/main/java/com/azure/resourcemanager/compute/models/VMGuestPatchClassificationLinux.java","src/main/java/com/azure/resourcemanager/compute/models/VMGuestPatchClassificationWindows.java","src/main/java/com/azure/resourcemanager/compute/models/VMGuestPatchRebootBehavior.java","src/main/java/com/azure/resourcemanager/compute/models/VMGuestPatchRebootSetting.java","src/main/java/com/azure/resourcemanager/compute/models/VMGuestPatchRebootStatus.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetConvertToSinglePlacementGroupInput.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetLifecycleHookEventAdditionalContext.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetLifecycleHookEventState.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetLifecycleHookEventTargetResource.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetLifecycleHookEventType.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetLifecycleHookEventUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetScaleOutInput.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetScaleOutInputProperties.java","src/main/java/com/azure/resourcemanager/compute/models/VMSizeProperties.java","src/main/java/com/azure/resourcemanager/compute/models/ValidationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/ValidationsProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VaultCertificate.java","src/main/java/com/azure/resourcemanager/compute/models/VaultSecretGroup.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualHardDisk.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineAgentInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineCaptureParameters.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineEvictionPolicyTypes.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionHandlerInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineHealthStatus.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineIdentity.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineIdentityUserAssignedIdentities.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineImageFeature.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineInstallPatchesParameters.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineIpTag.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineNetworkInterfaceConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineNetworkInterfaceDnsSettingsConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineNetworkInterfaceIpConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachinePatchStatus.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachinePriorityTypes.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachinePublicIpAddressConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachinePublicIpAddressDnsSettingsConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineReimageParameters.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineRunCommandInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineRunCommandScriptSource.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineRunCommandUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetDataDisk.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtensionProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtensionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetHardwareProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetIdentity.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetInstanceViewStatusesSummary.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetIpConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetIpTag.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetManagedDiskParameters.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetMigrationInfo.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetNetworkConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetNetworkConfigurationDnsSettings.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetNetworkProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetOSDisk.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetOSProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetPublicIpAddressConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetReimageParameters.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetScaleInRules.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSkuCapacity.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSkuScaleType.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetStorageProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateIpConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateNetworkConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateNetworkProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateOSDisk.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateOSProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdatePublicIpAddressConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateStorageProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateVMProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMExtensionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMExtensionsSummary.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMInstanceIDs.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMInstanceRequiredIDs.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMNetworkProfileConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMProtectionPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMReimageParameters.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineSizeTypes.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineSoftwarePatchProperties.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineStatusCodeCount.java","src/main/java/com/azure/resourcemanager/compute/models/VmDiskTypes.java","src/main/java/com/azure/resourcemanager/compute/models/WinRMConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/WinRMListener.java","src/main/java/com/azure/resourcemanager/compute/models/WindowsConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/WindowsParameters.java","src/main/java/com/azure/resourcemanager/compute/models/WindowsPatchAssessmentMode.java","src/main/java/com/azure/resourcemanager/compute/models/WindowsVMGuestPatchAutomaticByPlatformRebootSetting.java","src/main/java/com/azure/resourcemanager/compute/models/WindowsVMGuestPatchAutomaticByPlatformSettings.java","src/main/java/com/azure/resourcemanager/compute/models/WindowsVMGuestPatchMode.java","src/main/java/com/azure/resourcemanager/compute/models/ZonalPlatformFaultDomainAlignMode.java","src/main/java/com/azure/resourcemanager/compute/models/ZoneAllocationPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/ZoneMovement.java","src/main/java/com/azure/resourcemanager/compute/models/ZonePlacementPolicyType.java","src/main/java/com/azure/resourcemanager/compute/models/package-info.java","src/main/java/com/azure/resourcemanager/compute/package-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Compute":"2026-04-01","ComputeDisk":"2026-03-02","ComputeGallery":"2025-12-03","ComputeSku":"2021-07-01"},"crossLanguagePackageId":"Compute","crossLanguageVersion":"d417af4698c9","generatedFiles":["src/main/java/com/azure/resourcemanager/compute/fluent/AvailabilitySetsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/CapacityReservationGroupsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/CapacityReservationsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/CommunityGalleriesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/CommunityGalleryImageVersionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/CommunityGalleryImagesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/ComputeManagementClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/DedicatedHostGroupsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/DedicatedHostsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/DiskAccessesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/DiskEncryptionSetsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/DiskRestorePointsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/DisksClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleriesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryApplicationVersionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryApplicationsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryImageVersionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryImagesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryInVMAccessControlProfileVersionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryInVMAccessControlProfilesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryScriptVersionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GalleryScriptsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/GallerySharingProfilesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/ImagesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/InterconnectBlocksClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/LogAnalyticsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/ProximityPlacementGroupsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/ResourceSkusClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/RestorePointCollectionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/RestorePointsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/SharedGalleriesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/SharedGalleryImageVersionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/SharedGalleryImagesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/SharedGalleryInvitesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/SnapshotsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/SoftDeletedResourcesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/SshPublicKeysClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/TenantLevelSharedGalleryInvitesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/UsagesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineDiagnosticRunCommandsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineExtensionImagesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineExtensionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineImagesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineImagesEdgeZonesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineRunCommandsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetExtensionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetLifeCycleHookEventsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetRollingUpgradesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetVMDiagnosticRunCommandsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetVMExtensionsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetVMRunCommandsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetVMsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetsClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineSizesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachinesClient.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/AccessUriInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/AvailabilitySetInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/AvailabilitySetProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationGroupInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationGroupProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryIdentifier.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryImageInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryImageProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryImageVersionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryImageVersionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/CommunityGalleryProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DedicatedHostGroupInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DedicatedHostGroupProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DedicatedHostInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DedicatedHostProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskAccessInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskAccessProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskEncryptionSetInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskEncryptionSetUpdateProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskRestorePointInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskRestorePointProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskUpdateProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/EncryptionSetProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryApplicationInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryApplicationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryApplicationVersionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryApplicationVersionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryImageInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryImageProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryImageVersionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryImageVersionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryInVMAccessControlProfileInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryInVMAccessControlProfileVersionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryInVMAccessControlProfileVersionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptVersionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryScriptVersionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GallerySoftDeletedResourceInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/GallerySoftDeletedResourceProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/ImageInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/ImageProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/InterconnectBlockInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/LogAnalyticsOperationResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/NetworkInterfaceReferenceProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/PrivateLinkResourceListResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/PrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/ProximityPlacementGroupInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/ProximityPlacementGroupProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RecoveryWalkResponseInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/ResourceSkuInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointCollectionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointCollectionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RetrieveBootDiagnosticsDataResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RollingUpgradeStatusInfoInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RollingUpgradeStatusInfoProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RunCommandDocumentBaseInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RunCommandDocumentInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/RunCommandResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharedGalleryIdentifier.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharedGalleryImageInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharedGalleryImageProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharedGalleryImageVersionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharedGalleryImageVersionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharedGalleryInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharedGalleryProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SharingUpdateInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SnapshotInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SnapshotProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SnapshotUpdateProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SshPublicKeyGenerateKeyPairResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SshPublicKeyResourceInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/SshPublicKeyResourceProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/UpgradeOperationHistoricalStatusInfoInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/UsageInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VMScaleSetLifecycleHookEventInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VMScaleSetLifecycleHookEventProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineAssessPatchesResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineCaptureResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineDiagnosticRunCommandInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionImageInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionImageProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionUpdateProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineExtensionsListResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineImageInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineImageProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineImageResourceInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInstallPatchesResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInstanceViewInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineNetworkInterfaceConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineNetworkInterfaceIPConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachinePropertiesInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachinePublicIPAddressConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineRunCommandInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineRunCommandProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetExtensionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetExtensionProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetIPConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetInstanceViewInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetNetworkConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetPublicIPAddressConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetSkuInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetUpdateIPConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetUpdateNetworkConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetUpdateProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMExtensionInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMExtensionsListResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMInstanceViewInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMPropertiesInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineSizeInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineUpdateInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/VmImagesInEdgeZoneListResultInner.java","src/main/java/com/azure/resourcemanager/compute/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/compute/fluent/package-info.java","src/main/java/com/azure/resourcemanager/compute/implementation/AvailabilitySetsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleriesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleryImageVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/CommunityGalleryImagesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/DiskAccessesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/DiskEncryptionSetsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/DiskRestorePointsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/DisksClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleriesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryApplicationVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryApplicationsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryImageVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryImagesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryInVMAccessControlProfileVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryInVMAccessControlProfilesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryScriptVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GalleryScriptsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/GallerySharingProfilesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/ImagesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/InterconnectBlocksClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/LogAnalyticsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/ProximityPlacementGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/ResourceSkusClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointCollectionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleriesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleryImageVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleryImagesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/SharedGalleryInvitesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/SnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/SoftDeletedResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/SshPublicKeysClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/TenantLevelSharedGalleryInvitesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/UsagesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineDiagnosticRunCommandsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionImagesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImagesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineImagesEdgeZonesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineRunCommandsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetExtensionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetLifeCycleHookEventsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetRollingUpgradesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMDiagnosticRunCommandsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMExtensionsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMRunCommandsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetVMsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetsClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineSizesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachinesClientImpl.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/AvailabilitySetListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/CapacityReservationGroupListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/CapacityReservationListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/CommunityGalleryImageList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/CommunityGalleryImageVersionList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/DedicatedHostGroupListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/DedicatedHostListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/DedicatedHostSizeListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/DiskAccessList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/DiskEncryptionSetList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/DiskList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/DiskRestorePointList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryApplicationList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryApplicationVersionList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryImageList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryImageVersionList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryInVMAccessControlProfileList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryInVMAccessControlProfileVersionList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryScriptList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GalleryScriptVersionList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/GallerySoftDeletedResourceList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/ImageListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/InterconnectBlockListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/ListUsagesResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/PrivateEndpointConnectionListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/ProximityPlacementGroupListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/ResourceSkusResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/ResourceUriList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/RestorePointCollectionListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/RunCommandListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/SharedGalleryImageList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/SharedGalleryImageVersionList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/SharedGalleryList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/SnapshotList.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/SshPublicKeysGroupListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VMScaleSetLifecycleHookEventListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineDiagnosticRunCommandsListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineRunCommandsListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineScaleSetExtensionListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineScaleSetListOSUpgradeHistory.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineScaleSetListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineScaleSetListSkusResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineScaleSetListWithLinkResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineScaleSetVMListResult.java","src/main/java/com/azure/resourcemanager/compute/implementation/models/VirtualMachineSizeListResult.java","src/main/java/com/azure/resourcemanager/compute/models/AccessControlRules.java","src/main/java/com/azure/resourcemanager/compute/models/AccessControlRulesIdentity.java","src/main/java/com/azure/resourcemanager/compute/models/AccessControlRulesMode.java","src/main/java/com/azure/resourcemanager/compute/models/AccessControlRulesPrivilege.java","src/main/java/com/azure/resourcemanager/compute/models/AccessControlRulesRole.java","src/main/java/com/azure/resourcemanager/compute/models/AccessControlRulesRoleAssignment.java","src/main/java/com/azure/resourcemanager/compute/models/AccessLevel.java","src/main/java/com/azure/resourcemanager/compute/models/ActionType.java","src/main/java/com/azure/resourcemanager/compute/models/AdditionalCapabilities.java","src/main/java/com/azure/resourcemanager/compute/models/AdditionalDiskProperties.java","src/main/java/com/azure/resourcemanager/compute/models/AdditionalReplicaSet.java","src/main/java/com/azure/resourcemanager/compute/models/AdditionalUnattendContent.java","src/main/java/com/azure/resourcemanager/compute/models/AggregatedReplicationState.java","src/main/java/com/azure/resourcemanager/compute/models/AllInstancesDown.java","src/main/java/com/azure/resourcemanager/compute/models/AllocationStrategy.java","src/main/java/com/azure/resourcemanager/compute/models/AlternativeOption.java","src/main/java/com/azure/resourcemanager/compute/models/AlternativeType.java","src/main/java/com/azure/resourcemanager/compute/models/ApiEntityReference.java","src/main/java/com/azure/resourcemanager/compute/models/ApiError.java","src/main/java/com/azure/resourcemanager/compute/models/ApiErrorException.java","src/main/java/com/azure/resourcemanager/compute/models/ApplicationProfile.java","src/main/java/com/azure/resourcemanager/compute/models/Architecture.java","src/main/java/com/azure/resourcemanager/compute/models/ArchitectureTypes.java","src/main/java/com/azure/resourcemanager/compute/models/AttachDetachDataDisksRequest.java","src/main/java/com/azure/resourcemanager/compute/models/AutomaticOSUpgradePolicy.java","src/main/java/com/azure/resourcemanager/compute/models/AutomaticOSUpgradeProperties.java","src/main/java/com/azure/resourcemanager/compute/models/AutomaticRepairsPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/AutomaticSkuMigrationPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/AutomaticZoneRebalancingPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/AvailabilityPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/AvailabilityPolicyDiskDelay.java","src/main/java/com/azure/resourcemanager/compute/models/AvailabilitySetSkuTypes.java","src/main/java/com/azure/resourcemanager/compute/models/AvailabilitySetUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/AvailablePatchSummary.java","src/main/java/com/azure/resourcemanager/compute/models/BillingProfile.java","src/main/java/com/azure/resourcemanager/compute/models/BootDiagnostics.java","src/main/java/com/azure/resourcemanager/compute/models/BootDiagnosticsInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/CachingTypes.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationGroupInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationGroupInstanceViewTypes.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationGroupUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationInstanceViewTypes.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationInstanceViewWithName.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationProfile.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationStateInfo.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationType.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/CapacityReservationUtilization.java","src/main/java/com/azure/resourcemanager/compute/models/CommunityGalleryImageIdentifier.java","src/main/java/com/azure/resourcemanager/compute/models/CommunityGalleryInfo.java","src/main/java/com/azure/resourcemanager/compute/models/CommunityGalleryMetadata.java","src/main/java/com/azure/resourcemanager/compute/models/ComponentNames.java","src/main/java/com/azure/resourcemanager/compute/models/ConfidentialVMEncryptionType.java","src/main/java/com/azure/resourcemanager/compute/models/ConfidentialVMVersion.java","src/main/java/com/azure/resourcemanager/compute/models/ConsistencyModeTypes.java","src/main/java/com/azure/resourcemanager/compute/models/ConvertToVirtualMachineScaleSetInput.java","src/main/java/com/azure/resourcemanager/compute/models/CopyCompletionError.java","src/main/java/com/azure/resourcemanager/compute/models/CopyCompletionErrorReason.java","src/main/java/com/azure/resourcemanager/compute/models/CreationData.java","src/main/java/com/azure/resourcemanager/compute/models/DataAccessAuthMode.java","src/main/java/com/azure/resourcemanager/compute/models/DataDisk.java","src/main/java/com/azure/resourcemanager/compute/models/DataDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/DataDiskImageEncryption.java","src/main/java/com/azure/resourcemanager/compute/models/DataDisksToAttach.java","src/main/java/com/azure/resourcemanager/compute/models/DataDisksToDetach.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostAllocatableVM.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostAvailableCapacity.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostGroupInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostGroupPropertiesAdditionalCapabilities.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostGroupUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostInstanceViewWithName.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostLicenseTypes.java","src/main/java/com/azure/resourcemanager/compute/models/DedicatedHostUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/DefaultVirtualMachineScaleSetInfo.java","src/main/java/com/azure/resourcemanager/compute/models/DeleteOptions.java","src/main/java/com/azure/resourcemanager/compute/models/DiagnosticsProfile.java","src/main/java/com/azure/resourcemanager/compute/models/DiffDiskOptions.java","src/main/java/com/azure/resourcemanager/compute/models/DiffDiskPlacement.java","src/main/java/com/azure/resourcemanager/compute/models/DiffDiskSettings.java","src/main/java/com/azure/resourcemanager/compute/models/Disallowed.java","src/main/java/com/azure/resourcemanager/compute/models/DisallowedConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/DiskAccessUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/DiskApiVersion.java","src/main/java/com/azure/resourcemanager/compute/models/DiskAvailabilityPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/DiskControllerTypes.java","src/main/java/com/azure/resourcemanager/compute/models/DiskCreateOption.java","src/main/java/com/azure/resourcemanager/compute/models/DiskCreateOptionTypes.java","src/main/java/com/azure/resourcemanager/compute/models/DiskDeleteOptionTypes.java","src/main/java/com/azure/resourcemanager/compute/models/DiskDetachOptionTypes.java","src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSetIdentityType.java","src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSetParameters.java","src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSetType.java","src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSetUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/DiskEncryptionSettings.java","src/main/java/com/azure/resourcemanager/compute/models/DiskImageEncryption.java","src/main/java/com/azure/resourcemanager/compute/models/DiskInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/DiskPurchasePlan.java","src/main/java/com/azure/resourcemanager/compute/models/DiskRestorePointAttributes.java","src/main/java/com/azure/resourcemanager/compute/models/DiskRestorePointInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/DiskRestorePointReplicationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/DiskSecurityProfile.java","src/main/java/com/azure/resourcemanager/compute/models/DiskSecurityTypes.java","src/main/java/com/azure/resourcemanager/compute/models/DiskSku.java","src/main/java/com/azure/resourcemanager/compute/models/DiskState.java","src/main/java/com/azure/resourcemanager/compute/models/DiskStorageAccountTypes.java","src/main/java/com/azure/resourcemanager/compute/models/DiskUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/DomainNameLabelScopeTypes.java","src/main/java/com/azure/resourcemanager/compute/models/EdgeZoneStorageAccountType.java","src/main/java/com/azure/resourcemanager/compute/models/Encryption.java","src/main/java/com/azure/resourcemanager/compute/models/EncryptionIdentity.java","src/main/java/com/azure/resourcemanager/compute/models/EncryptionImages.java","src/main/java/com/azure/resourcemanager/compute/models/EncryptionSetIdentity.java","src/main/java/com/azure/resourcemanager/compute/models/EncryptionSettingsCollection.java","src/main/java/com/azure/resourcemanager/compute/models/EncryptionSettingsElement.java","src/main/java/com/azure/resourcemanager/compute/models/EncryptionType.java","src/main/java/com/azure/resourcemanager/compute/models/EndpointAccess.java","src/main/java/com/azure/resourcemanager/compute/models/EndpointTypes.java","src/main/java/com/azure/resourcemanager/compute/models/EventGridAndResourceGraph.java","src/main/java/com/azure/resourcemanager/compute/models/ExecutedValidation.java","src/main/java/com/azure/resourcemanager/compute/models/ExecutionState.java","src/main/java/com/azure/resourcemanager/compute/models/ExpandTypeForListVMs.java","src/main/java/com/azure/resourcemanager/compute/models/ExpandTypesForGetCapacityReservationGroups.java","src/main/java/com/azure/resourcemanager/compute/models/ExpandTypesForGetVMScaleSets.java","src/main/java/com/azure/resourcemanager/compute/models/ExpandTypesForListVMs.java","src/main/java/com/azure/resourcemanager/compute/models/ExtendedLocation.java","src/main/java/com/azure/resourcemanager/compute/models/ExtendedLocationType.java","src/main/java/com/azure/resourcemanager/compute/models/ExtendedLocationTypes.java","src/main/java/com/azure/resourcemanager/compute/models/ExtensionFeatureMetadata.java","src/main/java/com/azure/resourcemanager/compute/models/ExtensionFeatureTag.java","src/main/java/com/azure/resourcemanager/compute/models/ExternalHealthPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/FileFormat.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationCustomAction.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationCustomActionParameter.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationCustomActionParameterType.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationScriptRebootBehavior.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationVersionPublishingProfile.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationVersionSafetyProfile.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryApplicationVersionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryArtifactPublishingProfileBase.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryArtifactSafetyProfileBase.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryArtifactVersionFullSource.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryArtifactVersionSource.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryDataDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryDiskImageSource.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryExpandParams.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryExtendedLocation.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryExtendedLocationType.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryIdentifier.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryIdentity.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageFeature.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageIdentifier.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersionPublishingProfile.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersionSafetyProfile.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersionStorageProfile.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersionUefiSettings.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryImageVersionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryInVMAccessControlProfileProperties.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryInVMAccessControlProfileUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryInVMAccessControlProfileVersionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryOSDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryProvisioningState.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryResourceProfilePropertiesBase.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryResourceProfileVersionPropertiesBase.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryScriptParameter.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryScriptParameterType.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryScriptUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryScriptVersionPublishingProfile.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryScriptVersionSafetyProfile.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryScriptVersionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GallerySharingPermissionTypes.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryTargetExtendedLocation.java","src/main/java/com/azure/resourcemanager/compute/models/GalleryUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/GenericGalleryParameter.java","src/main/java/com/azure/resourcemanager/compute/models/GrantAccessData.java","src/main/java/com/azure/resourcemanager/compute/models/HardwareProfile.java","src/main/java/com/azure/resourcemanager/compute/models/HighSpeedInterconnectPlacement.java","src/main/java/com/azure/resourcemanager/compute/models/HostCaching.java","src/main/java/com/azure/resourcemanager/compute/models/HostEndpointSettings.java","src/main/java/com/azure/resourcemanager/compute/models/HyperVGeneration.java","src/main/java/com/azure/resourcemanager/compute/models/HyperVGenerationType.java","src/main/java/com/azure/resourcemanager/compute/models/HyperVGenerationTypes.java","src/main/java/com/azure/resourcemanager/compute/models/ImageDataDisk.java","src/main/java/com/azure/resourcemanager/compute/models/ImageDeprecationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/ImageDisk.java","src/main/java/com/azure/resourcemanager/compute/models/ImageDiskReference.java","src/main/java/com/azure/resourcemanager/compute/models/ImageOSDisk.java","src/main/java/com/azure/resourcemanager/compute/models/ImagePurchasePlan.java","src/main/java/com/azure/resourcemanager/compute/models/ImageReference.java","src/main/java/com/azure/resourcemanager/compute/models/ImageState.java","src/main/java/com/azure/resourcemanager/compute/models/ImageStorageProfile.java","src/main/java/com/azure/resourcemanager/compute/models/ImageUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/ImageVersionSecurityProfile.java","src/main/java/com/azure/resourcemanager/compute/models/ImmutabilityPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/ImmutabilityPolicyData.java","src/main/java/com/azure/resourcemanager/compute/models/ImmutabilityPolicyLockData.java","src/main/java/com/azure/resourcemanager/compute/models/ImmutabilityPolicyType.java","src/main/java/com/azure/resourcemanager/compute/models/InnerError.java","src/main/java/com/azure/resourcemanager/compute/models/InstanceViewStatus.java","src/main/java/com/azure/resourcemanager/compute/models/InstanceViewTypes.java","src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockExpandTypes.java","src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockProfile.java","src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockProperties.java","src/main/java/com/azure/resourcemanager/compute/models/InterconnectBlockUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/InterconnectGroupProfile.java","src/main/java/com/azure/resourcemanager/compute/models/InterconnectInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/IntervalInMins.java","src/main/java/com/azure/resourcemanager/compute/models/IpVersion.java","src/main/java/com/azure/resourcemanager/compute/models/IpVersions.java","src/main/java/com/azure/resourcemanager/compute/models/KeyForDiskEncryptionSet.java","src/main/java/com/azure/resourcemanager/compute/models/KeyVaultAndKeyReference.java","src/main/java/com/azure/resourcemanager/compute/models/KeyVaultAndSecretReference.java","src/main/java/com/azure/resourcemanager/compute/models/KeyVaultKeyReference.java","src/main/java/com/azure/resourcemanager/compute/models/KeyVaultSecretReference.java","src/main/java/com/azure/resourcemanager/compute/models/LastPatchInstallationSummary.java","src/main/java/com/azure/resourcemanager/compute/models/LifecycleHook.java","src/main/java/com/azure/resourcemanager/compute/models/LifecycleHookAction.java","src/main/java/com/azure/resourcemanager/compute/models/LifecycleHookActionState.java","src/main/java/com/azure/resourcemanager/compute/models/LifecycleHooksProfile.java","src/main/java/com/azure/resourcemanager/compute/models/LinuxConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/LinuxParameters.java","src/main/java/com/azure/resourcemanager/compute/models/LinuxPatchAssessmentMode.java","src/main/java/com/azure/resourcemanager/compute/models/LinuxPatchSettings.java","src/main/java/com/azure/resourcemanager/compute/models/LinuxVMGuestPatchAutomaticByPlatformRebootSetting.java","src/main/java/com/azure/resourcemanager/compute/models/LinuxVMGuestPatchAutomaticByPlatformSettings.java","src/main/java/com/azure/resourcemanager/compute/models/LinuxVMGuestPatchMode.java","src/main/java/com/azure/resourcemanager/compute/models/ListVersionsExpandOptions.java","src/main/java/com/azure/resourcemanager/compute/models/LogAnalyticsInputBase.java","src/main/java/com/azure/resourcemanager/compute/models/LogAnalyticsOutput.java","src/main/java/com/azure/resourcemanager/compute/models/MaintenanceOperationResultCodeTypes.java","src/main/java/com/azure/resourcemanager/compute/models/MaintenanceRedeployStatus.java","src/main/java/com/azure/resourcemanager/compute/models/ManagedDiskParameters.java","src/main/java/com/azure/resourcemanager/compute/models/MaxInstancePercentPerZonePolicy.java","src/main/java/com/azure/resourcemanager/compute/models/MigrateToVirtualMachineScaleSetInput.java","src/main/java/com/azure/resourcemanager/compute/models/MigrateVMAvailabilityZoneInput.java","src/main/java/com/azure/resourcemanager/compute/models/MigrateVMToVirtualMachineScaleSetInput.java","src/main/java/com/azure/resourcemanager/compute/models/Mode.java","src/main/java/com/azure/resourcemanager/compute/models/Modes.java","src/main/java/com/azure/resourcemanager/compute/models/NetworkAccessPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/NetworkApiVersion.java","src/main/java/com/azure/resourcemanager/compute/models/NetworkInterfaceAuxiliaryMode.java","src/main/java/com/azure/resourcemanager/compute/models/NetworkInterfaceAuxiliarySku.java","src/main/java/com/azure/resourcemanager/compute/models/NetworkInterfaceReference.java","src/main/java/com/azure/resourcemanager/compute/models/NetworkProfile.java","src/main/java/com/azure/resourcemanager/compute/models/OSDisk.java","src/main/java/com/azure/resourcemanager/compute/models/OSDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/OSDiskImageEncryption.java","src/main/java/com/azure/resourcemanager/compute/models/OSDiskImageSecurityProfile.java","src/main/java/com/azure/resourcemanager/compute/models/OSImageNotificationProfile.java","src/main/java/com/azure/resourcemanager/compute/models/OSProfile.java","src/main/java/com/azure/resourcemanager/compute/models/OSProfileProvisioningData.java","src/main/java/com/azure/resourcemanager/compute/models/OperatingSystemStateTypes.java","src/main/java/com/azure/resourcemanager/compute/models/OperatingSystemType.java","src/main/java/com/azure/resourcemanager/compute/models/OperatingSystemTypes.java","src/main/java/com/azure/resourcemanager/compute/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/compute/models/OperationRecoverySettings.java","src/main/java/com/azure/resourcemanager/compute/models/OrchestrationMode.java","src/main/java/com/azure/resourcemanager/compute/models/OrchestrationServiceNames.java","src/main/java/com/azure/resourcemanager/compute/models/OrchestrationServiceOperationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/OrchestrationServiceState.java","src/main/java/com/azure/resourcemanager/compute/models/OrchestrationServiceStateAction.java","src/main/java/com/azure/resourcemanager/compute/models/OrchestrationServiceStateInput.java","src/main/java/com/azure/resourcemanager/compute/models/OrchestrationServiceSummary.java","src/main/java/com/azure/resourcemanager/compute/models/Origin.java","src/main/java/com/azure/resourcemanager/compute/models/PassNames.java","src/main/java/com/azure/resourcemanager/compute/models/PatchAssessmentState.java","src/main/java/com/azure/resourcemanager/compute/models/PatchInstallationDetail.java","src/main/java/com/azure/resourcemanager/compute/models/PatchInstallationState.java","src/main/java/com/azure/resourcemanager/compute/models/PatchOperationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/PatchSettings.java","src/main/java/com/azure/resourcemanager/compute/models/PirCommunityGalleryResource.java","src/main/java/com/azure/resourcemanager/compute/models/PirResource.java","src/main/java/com/azure/resourcemanager/compute/models/PirSharedGalleryResource.java","src/main/java/com/azure/resourcemanager/compute/models/Placement.java","src/main/java/com/azure/resourcemanager/compute/models/Plan.java","src/main/java/com/azure/resourcemanager/compute/models/PlatformAttribute.java","src/main/java/com/azure/resourcemanager/compute/models/PolicyViolation.java","src/main/java/com/azure/resourcemanager/compute/models/PolicyViolationCategory.java","src/main/java/com/azure/resourcemanager/compute/models/PriorityMixPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/compute/models/PrivateEndpointConnectionProvisioningState.java","src/main/java/com/azure/resourcemanager/compute/models/PrivateEndpointServiceConnectionStatus.java","src/main/java/com/azure/resourcemanager/compute/models/PrivateLinkResource.java","src/main/java/com/azure/resourcemanager/compute/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/compute/models/ProcessorMode.java","src/main/java/com/azure/resourcemanager/compute/models/PropertyUpdatesInProgress.java","src/main/java/com/azure/resourcemanager/compute/models/ProtocolTypes.java","src/main/java/com/azure/resourcemanager/compute/models/ProvisionedBandwidthCopyOption.java","src/main/java/com/azure/resourcemanager/compute/models/ProximityPlacementGroupPropertiesIntent.java","src/main/java/com/azure/resourcemanager/compute/models/ProximityPlacementGroupType.java","src/main/java/com/azure/resourcemanager/compute/models/ProximityPlacementGroupUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/ProxyAgentSettings.java","src/main/java/com/azure/resourcemanager/compute/models/PublicIpAddressSku.java","src/main/java/com/azure/resourcemanager/compute/models/PublicIpAddressSkuName.java","src/main/java/com/azure/resourcemanager/compute/models/PublicIpAddressSkuTier.java","src/main/java/com/azure/resourcemanager/compute/models/PublicIpAllocationMethod.java","src/main/java/com/azure/resourcemanager/compute/models/PublicNetworkAccess.java","src/main/java/com/azure/resourcemanager/compute/models/PurchasePlan.java","src/main/java/com/azure/resourcemanager/compute/models/RebalanceBehavior.java","src/main/java/com/azure/resourcemanager/compute/models/RebalanceStrategy.java","src/main/java/com/azure/resourcemanager/compute/models/RecommendedMachineConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/RegionalReplicationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/RegionalSharingStatus.java","src/main/java/com/azure/resourcemanager/compute/models/ReimageRecoveryPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/ReleaseCategory.java","src/main/java/com/azure/resourcemanager/compute/models/RepairAction.java","src/main/java/com/azure/resourcemanager/compute/models/ReplicationMode.java","src/main/java/com/azure/resourcemanager/compute/models/ReplicationState.java","src/main/java/com/azure/resourcemanager/compute/models/ReplicationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/ReplicationStatusTypes.java","src/main/java/com/azure/resourcemanager/compute/models/RequestRateByIntervalInput.java","src/main/java/com/azure/resourcemanager/compute/models/ReservationState.java","src/main/java/com/azure/resourcemanager/compute/models/ReservationType.java","src/main/java/com/azure/resourcemanager/compute/models/ResiliencyPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/ResiliencyProfile.java","src/main/java/com/azure/resourcemanager/compute/models/ResilientVMCreationPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/ResilientVMDeletionPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/ResilientVMDeletionStatus.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceIdOptionsForGetCapacityReservationGroups.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceIdentityType.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceRange.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSharingProfile.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuCapabilities.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuCapacity.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuCapacityScaleType.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuCosts.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuLocationInfo.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuRestrictionInfo.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuRestrictions.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuRestrictionsReasonCode.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuRestrictionsType.java","src/main/java/com/azure/resourcemanager/compute/models/ResourceSkuZoneDetails.java","src/main/java/com/azure/resourcemanager/compute/models/RestartRecoveryPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointCollectionExpandOptions.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointCollectionSourceProperties.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointCollectionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointEncryption.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointEncryptionType.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointExpandOptions.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointSourceMetadata.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointSourceVMDataDisk.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointSourceVMStorageProfile.java","src/main/java/com/azure/resourcemanager/compute/models/RestorePointSourceVmosDisk.java","src/main/java/com/azure/resourcemanager/compute/models/RollbackStatusInfo.java","src/main/java/com/azure/resourcemanager/compute/models/RollingUpgradeActionType.java","src/main/java/com/azure/resourcemanager/compute/models/RollingUpgradePolicy.java","src/main/java/com/azure/resourcemanager/compute/models/RollingUpgradeProgressInfo.java","src/main/java/com/azure/resourcemanager/compute/models/RollingUpgradeRunningStatus.java","src/main/java/com/azure/resourcemanager/compute/models/RollingUpgradeStatusCode.java","src/main/java/com/azure/resourcemanager/compute/models/RunCommandInput.java","src/main/java/com/azure/resourcemanager/compute/models/RunCommandInputParameter.java","src/main/java/com/azure/resourcemanager/compute/models/RunCommandManagedIdentity.java","src/main/java/com/azure/resourcemanager/compute/models/RunCommandParameterDefinition.java","src/main/java/com/azure/resourcemanager/compute/models/RunProfile.java","src/main/java/com/azure/resourcemanager/compute/models/ScaleInPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/ScheduleProfile.java","src/main/java/com/azure/resourcemanager/compute/models/ScheduledEventsAdditionalPublishingTargets.java","src/main/java/com/azure/resourcemanager/compute/models/ScheduledEventsPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/ScheduledEventsProfile.java","src/main/java/com/azure/resourcemanager/compute/models/ScriptShellTypes.java","src/main/java/com/azure/resourcemanager/compute/models/ScriptSource.java","src/main/java/com/azure/resourcemanager/compute/models/SecurityEncryptionTypes.java","src/main/java/com/azure/resourcemanager/compute/models/SecurityPostureReference.java","src/main/java/com/azure/resourcemanager/compute/models/SecurityPostureReferenceUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/SecurityProfile.java","src/main/java/com/azure/resourcemanager/compute/models/SecurityTypes.java","src/main/java/com/azure/resourcemanager/compute/models/SelectPermissions.java","src/main/java/com/azure/resourcemanager/compute/models/ServiceArtifactReference.java","src/main/java/com/azure/resourcemanager/compute/models/SettingNames.java","src/main/java/com/azure/resourcemanager/compute/models/ShareInfoElement.java","src/main/java/com/azure/resourcemanager/compute/models/SharedGalleryDataDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/SharedGalleryDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/SharedGalleryHostCaching.java","src/main/java/com/azure/resourcemanager/compute/models/SharedGalleryImageVersionStorageProfile.java","src/main/java/com/azure/resourcemanager/compute/models/SharedGalleryOSDiskImage.java","src/main/java/com/azure/resourcemanager/compute/models/SharedToValues.java","src/main/java/com/azure/resourcemanager/compute/models/SharingProfile.java","src/main/java/com/azure/resourcemanager/compute/models/SharingProfileGroup.java","src/main/java/com/azure/resourcemanager/compute/models/SharingProfileGroupTypes.java","src/main/java/com/azure/resourcemanager/compute/models/SharingState.java","src/main/java/com/azure/resourcemanager/compute/models/SharingStatus.java","src/main/java/com/azure/resourcemanager/compute/models/SharingUpdateOperationTypes.java","src/main/java/com/azure/resourcemanager/compute/models/Sku.java","src/main/java/com/azure/resourcemanager/compute/models/SkuProfile.java","src/main/java/com/azure/resourcemanager/compute/models/SkuProfileVMSize.java","src/main/java/com/azure/resourcemanager/compute/models/SnapshotAccessState.java","src/main/java/com/azure/resourcemanager/compute/models/SnapshotSku.java","src/main/java/com/azure/resourcemanager/compute/models/SnapshotStorageAccountTypes.java","src/main/java/com/azure/resourcemanager/compute/models/SnapshotUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/SoftDeletePolicy.java","src/main/java/com/azure/resourcemanager/compute/models/SoftDeletedArtifactTypes.java","src/main/java/com/azure/resourcemanager/compute/models/SourceVault.java","src/main/java/com/azure/resourcemanager/compute/models/SpotRestorePolicy.java","src/main/java/com/azure/resourcemanager/compute/models/SshConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/SshEncryptionTypes.java","src/main/java/com/azure/resourcemanager/compute/models/SshGenerateKeyPairInputParameters.java","src/main/java/com/azure/resourcemanager/compute/models/SshPublicKey.java","src/main/java/com/azure/resourcemanager/compute/models/SshPublicKeyUpdateResource.java","src/main/java/com/azure/resourcemanager/compute/models/StartRecoveryPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/StatusLevelTypes.java","src/main/java/com/azure/resourcemanager/compute/models/StorageAccountStrategy.java","src/main/java/com/azure/resourcemanager/compute/models/StorageAccountType.java","src/main/java/com/azure/resourcemanager/compute/models/StorageAccountTypes.java","src/main/java/com/azure/resourcemanager/compute/models/StorageAlignmentStatus.java","src/main/java/com/azure/resourcemanager/compute/models/StorageFaultDomainAlignmentType.java","src/main/java/com/azure/resourcemanager/compute/models/StorageProfile.java","src/main/java/com/azure/resourcemanager/compute/models/SubResourceReadOnly.java","src/main/java/com/azure/resourcemanager/compute/models/SubResourceWithColocationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/SupportedCapabilities.java","src/main/java/com/azure/resourcemanager/compute/models/SupportedSecurityOption.java","src/main/java/com/azure/resourcemanager/compute/models/TargetRegion.java","src/main/java/com/azure/resourcemanager/compute/models/TerminateNotificationProfile.java","src/main/java/com/azure/resourcemanager/compute/models/ThrottledRequestsInput.java","src/main/java/com/azure/resourcemanager/compute/models/UefiKey.java","src/main/java/com/azure/resourcemanager/compute/models/UefiKeySignatures.java","src/main/java/com/azure/resourcemanager/compute/models/UefiKeyType.java","src/main/java/com/azure/resourcemanager/compute/models/UefiSettings.java","src/main/java/com/azure/resourcemanager/compute/models/UefiSignatureTemplateName.java","src/main/java/com/azure/resourcemanager/compute/models/UpdateResource.java","src/main/java/com/azure/resourcemanager/compute/models/UpdateResourceDefinition.java","src/main/java/com/azure/resourcemanager/compute/models/UpgradeMode.java","src/main/java/com/azure/resourcemanager/compute/models/UpgradeOperationHistoricalStatusInfoProperties.java","src/main/java/com/azure/resourcemanager/compute/models/UpgradeOperationHistoryStatus.java","src/main/java/com/azure/resourcemanager/compute/models/UpgradeOperationInvoker.java","src/main/java/com/azure/resourcemanager/compute/models/UpgradePolicy.java","src/main/java/com/azure/resourcemanager/compute/models/UpgradeState.java","src/main/java/com/azure/resourcemanager/compute/models/UrgencyLevel.java","src/main/java/com/azure/resourcemanager/compute/models/UsageName.java","src/main/java/com/azure/resourcemanager/compute/models/UserArtifactManage.java","src/main/java/com/azure/resourcemanager/compute/models/UserArtifactSettings.java","src/main/java/com/azure/resourcemanager/compute/models/UserArtifactSource.java","src/main/java/com/azure/resourcemanager/compute/models/UserInitiatedReboot.java","src/main/java/com/azure/resourcemanager/compute/models/UserInitiatedRedeploy.java","src/main/java/com/azure/resourcemanager/compute/models/VMDiskSecurityProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VMGalleryApplication.java","src/main/java/com/azure/resourcemanager/compute/models/VMGuestPatchClassificationLinux.java","src/main/java/com/azure/resourcemanager/compute/models/VMGuestPatchClassificationWindows.java","src/main/java/com/azure/resourcemanager/compute/models/VMGuestPatchRebootBehavior.java","src/main/java/com/azure/resourcemanager/compute/models/VMGuestPatchRebootSetting.java","src/main/java/com/azure/resourcemanager/compute/models/VMGuestPatchRebootStatus.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetConvertToSinglePlacementGroupInput.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetLifecycleHookEventAdditionalContext.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetLifecycleHookEventState.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetLifecycleHookEventTargetResource.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetLifecycleHookEventType.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetLifecycleHookEventUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetScaleOutInput.java","src/main/java/com/azure/resourcemanager/compute/models/VMScaleSetScaleOutInputProperties.java","src/main/java/com/azure/resourcemanager/compute/models/VMSizeProperties.java","src/main/java/com/azure/resourcemanager/compute/models/ValidationStatus.java","src/main/java/com/azure/resourcemanager/compute/models/ValidationsProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VaultCertificate.java","src/main/java/com/azure/resourcemanager/compute/models/VaultSecretGroup.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualHardDisk.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineAgentInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineCaptureParameters.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskDelayAction.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskNetworkAccessPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineDiskProperties.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineEvictionPolicyTypes.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionHandlerInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineExtensionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineHealthStatus.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineIdentity.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineIdentityUserAssignedIdentities.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineImageFeature.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineInstallPatchesParameters.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineIpTag.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineNetworkInterfaceConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineNetworkInterfaceDnsSettingsConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineNetworkInterfaceIpConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachinePatchStatus.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachinePriorityTypes.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachinePublicIpAddressConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachinePublicIpAddressDnsSettingsConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineReimageParameters.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineRunCommandInstanceView.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineRunCommandScriptSource.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineRunCommandUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetDataDisk.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtensionProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetExtensionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetHardwareProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetIdentity.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetInstanceViewStatusesSummary.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetIpConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetIpTag.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetManagedDiskParameters.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetMigrationInfo.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetNetworkConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetNetworkConfigurationDnsSettings.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetNetworkProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetOSDisk.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetOSProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetPublicIpAddressConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetReimageParameters.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetScaleInRules.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSkuCapacity.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetSkuScaleType.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetStorageProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateIpConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateNetworkConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateNetworkProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateOSDisk.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateOSProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdatePublicIpAddressConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateStorageProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetUpdateVMProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMExtensionUpdate.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMExtensionsSummary.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMInstanceIDs.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMInstanceRequiredIDs.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMNetworkProfileConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMProfile.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMProtectionPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSetVMReimageParameters.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineSizeTypes.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineSoftwarePatchProperties.java","src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineStatusCodeCount.java","src/main/java/com/azure/resourcemanager/compute/models/VmDiskTypes.java","src/main/java/com/azure/resourcemanager/compute/models/WinRMConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/WinRMListener.java","src/main/java/com/azure/resourcemanager/compute/models/WindowsConfiguration.java","src/main/java/com/azure/resourcemanager/compute/models/WindowsParameters.java","src/main/java/com/azure/resourcemanager/compute/models/WindowsPatchAssessmentMode.java","src/main/java/com/azure/resourcemanager/compute/models/WindowsVMGuestPatchAutomaticByPlatformRebootSetting.java","src/main/java/com/azure/resourcemanager/compute/models/WindowsVMGuestPatchAutomaticByPlatformSettings.java","src/main/java/com/azure/resourcemanager/compute/models/WindowsVMGuestPatchMode.java","src/main/java/com/azure/resourcemanager/compute/models/ZonalPlatformFaultDomainAlignMode.java","src/main/java/com/azure/resourcemanager/compute/models/ZoneAllocationPolicy.java","src/main/java/com/azure/resourcemanager/compute/models/ZoneMovement.java","src/main/java/com/azure/resourcemanager/compute/models/ZonePlacementPolicyType.java","src/main/java/com/azure/resourcemanager/compute/models/package-info.java","src/main/java/com/azure/resourcemanager/compute/package-info.java"]} \ No newline at end of file diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-compute/proxy-config.json b/sdk/compute/azure-resourcemanager-compute/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-compute/proxy-config.json index 2468d8f23cb6..0b7618cf3e7d 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-compute/proxy-config.json +++ b/sdk/compute/azure-resourcemanager-compute/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-compute/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.compute.implementation.AvailabilitySetsClientImpl$AvailabilitySetsService"],["com.azure.resourcemanager.compute.implementation.CapacityReservationGroupsClientImpl$CapacityReservationGroupsService"],["com.azure.resourcemanager.compute.implementation.CapacityReservationsClientImpl$CapacityReservationsService"],["com.azure.resourcemanager.compute.implementation.CommunityGalleriesClientImpl$CommunityGalleriesService"],["com.azure.resourcemanager.compute.implementation.CommunityGalleryImageVersionsClientImpl$CommunityGalleryImageVersionsService"],["com.azure.resourcemanager.compute.implementation.CommunityGalleryImagesClientImpl$CommunityGalleryImagesService"],["com.azure.resourcemanager.compute.implementation.DedicatedHostGroupsClientImpl$DedicatedHostGroupsService"],["com.azure.resourcemanager.compute.implementation.DedicatedHostsClientImpl$DedicatedHostsService"],["com.azure.resourcemanager.compute.implementation.DiskAccessesClientImpl$DiskAccessesService"],["com.azure.resourcemanager.compute.implementation.DiskEncryptionSetsClientImpl$DiskEncryptionSetsService"],["com.azure.resourcemanager.compute.implementation.DiskRestorePointsClientImpl$DiskRestorePointsService"],["com.azure.resourcemanager.compute.implementation.DisksClientImpl$DisksService"],["com.azure.resourcemanager.compute.implementation.GalleriesClientImpl$GalleriesService"],["com.azure.resourcemanager.compute.implementation.GalleryApplicationVersionsClientImpl$GalleryApplicationVersionsService"],["com.azure.resourcemanager.compute.implementation.GalleryApplicationsClientImpl$GalleryApplicationsService"],["com.azure.resourcemanager.compute.implementation.GalleryImageVersionsClientImpl$GalleryImageVersionsService"],["com.azure.resourcemanager.compute.implementation.GalleryImagesClientImpl$GalleryImagesService"],["com.azure.resourcemanager.compute.implementation.GalleryInVMAccessControlProfileVersionsClientImpl$GalleryInVMAccessControlProfileVersionsService"],["com.azure.resourcemanager.compute.implementation.GalleryInVMAccessControlProfilesClientImpl$GalleryInVMAccessControlProfilesService"],["com.azure.resourcemanager.compute.implementation.GalleryScriptVersionsClientImpl$GalleryScriptVersionsService"],["com.azure.resourcemanager.compute.implementation.GalleryScriptsClientImpl$GalleryScriptsService"],["com.azure.resourcemanager.compute.implementation.GallerySharingProfilesClientImpl$GallerySharingProfilesService"],["com.azure.resourcemanager.compute.implementation.ImagesClientImpl$ImagesService"],["com.azure.resourcemanager.compute.implementation.InterconnectBlocksClientImpl$InterconnectBlocksService"],["com.azure.resourcemanager.compute.implementation.LogAnalyticsClientImpl$LogAnalyticsService"],["com.azure.resourcemanager.compute.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.compute.implementation.ProximityPlacementGroupsClientImpl$ProximityPlacementGroupsService"],["com.azure.resourcemanager.compute.implementation.ResourceSkusClientImpl$ResourceSkusService"],["com.azure.resourcemanager.compute.implementation.RestorePointCollectionsClientImpl$RestorePointCollectionsService"],["com.azure.resourcemanager.compute.implementation.RestorePointsClientImpl$RestorePointsService"],["com.azure.resourcemanager.compute.implementation.SharedGalleriesClientImpl$SharedGalleriesService"],["com.azure.resourcemanager.compute.implementation.SharedGalleryImageVersionsClientImpl$SharedGalleryImageVersionsService"],["com.azure.resourcemanager.compute.implementation.SharedGalleryImagesClientImpl$SharedGalleryImagesService"],["com.azure.resourcemanager.compute.implementation.SharedGalleryInvitesClientImpl$SharedGalleryInvitesService"],["com.azure.resourcemanager.compute.implementation.SnapshotsClientImpl$SnapshotsService"],["com.azure.resourcemanager.compute.implementation.SoftDeletedResourcesClientImpl$SoftDeletedResourcesService"],["com.azure.resourcemanager.compute.implementation.SshPublicKeysClientImpl$SshPublicKeysService"],["com.azure.resourcemanager.compute.implementation.TenantLevelSharedGalleryInvitesClientImpl$TenantLevelSharedGalleryInvitesService"],["com.azure.resourcemanager.compute.implementation.UsagesClientImpl$UsagesService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineExtensionImagesClientImpl$VirtualMachineExtensionImagesService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineExtensionsClientImpl$VirtualMachineExtensionsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineImagesClientImpl$VirtualMachineImagesService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineImagesEdgeZonesClientImpl$VirtualMachineImagesEdgeZonesService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineRunCommandsClientImpl$VirtualMachineRunCommandsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineScaleSetExtensionsClientImpl$VirtualMachineScaleSetExtensionsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineScaleSetLifeCycleHookEventsClientImpl$VirtualMachineScaleSetLifeCycleHookEventsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineScaleSetRollingUpgradesClientImpl$VirtualMachineScaleSetRollingUpgradesService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineScaleSetVMExtensionsClientImpl$VirtualMachineScaleSetVMExtensionsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineScaleSetVMRunCommandsClientImpl$VirtualMachineScaleSetVMRunCommandsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineScaleSetVMsClientImpl$VirtualMachineScaleSetVMsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineScaleSetsClientImpl$VirtualMachineScaleSetsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineSizesClientImpl$VirtualMachineSizesService"],["com.azure.resourcemanager.compute.implementation.VirtualMachinesClientImpl$VirtualMachinesService"]] \ No newline at end of file +[["com.azure.resourcemanager.compute.implementation.AvailabilitySetsClientImpl$AvailabilitySetsService"],["com.azure.resourcemanager.compute.implementation.CapacityReservationGroupsClientImpl$CapacityReservationGroupsService"],["com.azure.resourcemanager.compute.implementation.CapacityReservationsClientImpl$CapacityReservationsService"],["com.azure.resourcemanager.compute.implementation.CommunityGalleriesClientImpl$CommunityGalleriesService"],["com.azure.resourcemanager.compute.implementation.CommunityGalleryImageVersionsClientImpl$CommunityGalleryImageVersionsService"],["com.azure.resourcemanager.compute.implementation.CommunityGalleryImagesClientImpl$CommunityGalleryImagesService"],["com.azure.resourcemanager.compute.implementation.DedicatedHostGroupsClientImpl$DedicatedHostGroupsService"],["com.azure.resourcemanager.compute.implementation.DedicatedHostsClientImpl$DedicatedHostsService"],["com.azure.resourcemanager.compute.implementation.DiskAccessesClientImpl$DiskAccessesService"],["com.azure.resourcemanager.compute.implementation.DiskEncryptionSetsClientImpl$DiskEncryptionSetsService"],["com.azure.resourcemanager.compute.implementation.DiskRestorePointsClientImpl$DiskRestorePointsService"],["com.azure.resourcemanager.compute.implementation.DisksClientImpl$DisksService"],["com.azure.resourcemanager.compute.implementation.GalleriesClientImpl$GalleriesService"],["com.azure.resourcemanager.compute.implementation.GalleryApplicationVersionsClientImpl$GalleryApplicationVersionsService"],["com.azure.resourcemanager.compute.implementation.GalleryApplicationsClientImpl$GalleryApplicationsService"],["com.azure.resourcemanager.compute.implementation.GalleryImageVersionsClientImpl$GalleryImageVersionsService"],["com.azure.resourcemanager.compute.implementation.GalleryImagesClientImpl$GalleryImagesService"],["com.azure.resourcemanager.compute.implementation.GalleryInVMAccessControlProfileVersionsClientImpl$GalleryInVMAccessControlProfileVersionsService"],["com.azure.resourcemanager.compute.implementation.GalleryInVMAccessControlProfilesClientImpl$GalleryInVMAccessControlProfilesService"],["com.azure.resourcemanager.compute.implementation.GalleryScriptVersionsClientImpl$GalleryScriptVersionsService"],["com.azure.resourcemanager.compute.implementation.GalleryScriptsClientImpl$GalleryScriptsService"],["com.azure.resourcemanager.compute.implementation.GallerySharingProfilesClientImpl$GallerySharingProfilesService"],["com.azure.resourcemanager.compute.implementation.ImagesClientImpl$ImagesService"],["com.azure.resourcemanager.compute.implementation.InterconnectBlocksClientImpl$InterconnectBlocksService"],["com.azure.resourcemanager.compute.implementation.LogAnalyticsClientImpl$LogAnalyticsService"],["com.azure.resourcemanager.compute.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.compute.implementation.ProximityPlacementGroupsClientImpl$ProximityPlacementGroupsService"],["com.azure.resourcemanager.compute.implementation.ResourceSkusClientImpl$ResourceSkusService"],["com.azure.resourcemanager.compute.implementation.RestorePointCollectionsClientImpl$RestorePointCollectionsService"],["com.azure.resourcemanager.compute.implementation.RestorePointsClientImpl$RestorePointsService"],["com.azure.resourcemanager.compute.implementation.SharedGalleriesClientImpl$SharedGalleriesService"],["com.azure.resourcemanager.compute.implementation.SharedGalleryImageVersionsClientImpl$SharedGalleryImageVersionsService"],["com.azure.resourcemanager.compute.implementation.SharedGalleryImagesClientImpl$SharedGalleryImagesService"],["com.azure.resourcemanager.compute.implementation.SharedGalleryInvitesClientImpl$SharedGalleryInvitesService"],["com.azure.resourcemanager.compute.implementation.SnapshotsClientImpl$SnapshotsService"],["com.azure.resourcemanager.compute.implementation.SoftDeletedResourcesClientImpl$SoftDeletedResourcesService"],["com.azure.resourcemanager.compute.implementation.SshPublicKeysClientImpl$SshPublicKeysService"],["com.azure.resourcemanager.compute.implementation.TenantLevelSharedGalleryInvitesClientImpl$TenantLevelSharedGalleryInvitesService"],["com.azure.resourcemanager.compute.implementation.UsagesClientImpl$UsagesService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineDiagnosticRunCommandsClientImpl$VirtualMachineDiagnosticRunCommandsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineExtensionImagesClientImpl$VirtualMachineExtensionImagesService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineExtensionsClientImpl$VirtualMachineExtensionsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineImagesClientImpl$VirtualMachineImagesService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineImagesEdgeZonesClientImpl$VirtualMachineImagesEdgeZonesService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineRunCommandsClientImpl$VirtualMachineRunCommandsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineScaleSetExtensionsClientImpl$VirtualMachineScaleSetExtensionsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineScaleSetLifeCycleHookEventsClientImpl$VirtualMachineScaleSetLifeCycleHookEventsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineScaleSetRollingUpgradesClientImpl$VirtualMachineScaleSetRollingUpgradesService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineScaleSetVMDiagnosticRunCommandsClientImpl$VirtualMachineScaleSetVMDiagnosticRunCommandsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineScaleSetVMExtensionsClientImpl$VirtualMachineScaleSetVMExtensionsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineScaleSetVMRunCommandsClientImpl$VirtualMachineScaleSetVMRunCommandsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineScaleSetVMsClientImpl$VirtualMachineScaleSetVMsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineScaleSetsClientImpl$VirtualMachineScaleSetsService"],["com.azure.resourcemanager.compute.implementation.VirtualMachineSizesClientImpl$VirtualMachineSizesService"],["com.azure.resourcemanager.compute.implementation.VirtualMachinesClientImpl$VirtualMachinesService"]] \ No newline at end of file diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsCancelMigrationToVirtualMachineScaleSetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsCancelMigrationToVirtualMachineScaleSetSamples.java index fb672ca0b088..f0501cfeedfa 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsCancelMigrationToVirtualMachineScaleSetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsCancelMigrationToVirtualMachineScaleSetSamples.java @@ -10,7 +10,7 @@ public final class AvailabilitySetsCancelMigrationToVirtualMachineScaleSetSamples { /* * x-ms-original-file: - * 2026-03-01/availabilitySetExamples/AvailabilitySet_CancelMigrationToVirtualMachineScaleSet.json + * 2026-04-01/availabilitySetExamples/AvailabilitySet_CancelMigrationToVirtualMachineScaleSet.json */ /** * Sample code: AvailabilitySet_CancelMigrationToVirtualMachineScaleSet. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsConvertToVirtualMachineScaleSetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsConvertToVirtualMachineScaleSetSamples.java index 2bfc37946ffa..b3102ff778dd 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsConvertToVirtualMachineScaleSetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsConvertToVirtualMachineScaleSetSamples.java @@ -11,7 +11,7 @@ */ public final class AvailabilitySetsConvertToVirtualMachineScaleSetSamples { /* - * x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_ConvertToVirtualMachineScaleSet.json + * x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_ConvertToVirtualMachineScaleSet.json */ /** * Sample code: AvailabilitySet_ConvertToVirtualMachineScaleSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsCreateOrUpdateSamples.java index c442872156b2..814ad5aeccd1 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class AvailabilitySetsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Create_WithScheduledEventProfile.json + * x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Create_WithScheduledEventProfile.json */ /** * Sample code: Create an availability set with Scheduled Event Policy. @@ -30,7 +30,7 @@ public final class AvailabilitySetsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Create.json + * x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Create.json */ /** * Sample code: Create an availability set. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsDeleteSamples.java index d1f9916e373c..f355b5dd2735 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AvailabilitySetsDeleteSamples { /* - * x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Delete_MinimumSet_Gen.json */ /** * Sample code: AvailabilitySet_Delete_MinimumSet_Gen. @@ -23,7 +23,7 @@ public static void availabilitySetDeleteMinimumSetGen(com.azure.resourcemanager. } /* - * x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Delete_MaximumSet_Gen.json */ /** * Sample code: AvailabilitySet_Delete_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsGetByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsGetByResourceGroupSamples.java index ba0293df3038..aefaa916bd16 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsGetByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class AvailabilitySetsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Get_MaximumSet_Gen.json */ /** * Sample code: AvailabilitySet_Get_MaximumSet_Gen. @@ -23,7 +23,7 @@ public static void availabilitySetGetMaximumSetGen(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Get_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Get_MinimumSet_Gen.json */ /** * Sample code: AvailabilitySet_Get_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsListAvailableSizesSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsListAvailableSizesSamples.java index 64e901e2edea..168520b6aead 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsListAvailableSizesSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsListAvailableSizesSamples.java @@ -9,7 +9,7 @@ */ public final class AvailabilitySetsListAvailableSizesSamples { /* - * x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MinimumSet_Gen.json */ /** * Sample code: AvailabilitySet_ListAvailableSizes_MinimumSet_Gen. @@ -24,7 +24,7 @@ public final class AvailabilitySetsListAvailableSizesSamples { } /* - * x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_ListAvailableSizes_MaximumSet_Gen.json */ /** * Sample code: AvailabilitySet_ListAvailableSizes_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsListByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsListByResourceGroupSamples.java index a2c7bd7839cf..f21c779a2808 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsListByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class AvailabilitySetsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_List_MaximumSet_Gen.json */ /** * Sample code: AvailabilitySet_List_MaximumSet_Gen. @@ -23,7 +23,7 @@ public static void availabilitySetListMaximumSetGen(com.azure.resourcemanager.co } /* - * x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_List_MinimumSet_Gen.json */ /** * Sample code: AvailabilitySet_List_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsListSamples.java index e99c146dfb00..0f18d6fb64f1 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsListSamples.java @@ -9,7 +9,7 @@ */ public final class AvailabilitySetsListSamples { /* - * x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_ListBySubscription.json + * x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_ListBySubscription.json */ /** * Sample code: List availability sets in a subscription. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsStartMigrationToVirtualMachineScaleSetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsStartMigrationToVirtualMachineScaleSetSamples.java index 9354671bc099..8853426a1342 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsStartMigrationToVirtualMachineScaleSetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsStartMigrationToVirtualMachineScaleSetSamples.java @@ -13,7 +13,7 @@ public final class AvailabilitySetsStartMigrationToVirtualMachineScaleSetSamples { /* * x-ms-original-file: - * 2026-03-01/availabilitySetExamples/AvailabilitySet_StartMigrationToVirtualMachineScaleSet.json + * 2026-04-01/availabilitySetExamples/AvailabilitySet_StartMigrationToVirtualMachineScaleSet.json */ /** * Sample code: AvailabilitySet_StartMigrationToVirtualMachineScaleSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsUpdateSamples.java index 2224a5eb6913..17c50ddb1611 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class AvailabilitySetsUpdateSamples { /* - * x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Update_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Update_MinimumSet_Gen.json */ /** * Sample code: AvailabilitySet_Update_MinimumSet_Gen. @@ -31,7 +31,7 @@ public static void availabilitySetUpdateMinimumSetGen(com.azure.resourcemanager. } /* - * x-ms-original-file: 2026-03-01/availabilitySetExamples/AvailabilitySet_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/availabilitySetExamples/AvailabilitySet_Update_MaximumSet_Gen.json */ /** * Sample code: AvailabilitySet_Update_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsValidateMigrationToVirtualMachineScaleSetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsValidateMigrationToVirtualMachineScaleSetSamples.java index 585336329828..2b96893c4014 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsValidateMigrationToVirtualMachineScaleSetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/AvailabilitySetsValidateMigrationToVirtualMachineScaleSetSamples.java @@ -13,7 +13,7 @@ public final class AvailabilitySetsValidateMigrationToVirtualMachineScaleSetSamples { /* * x-ms-original-file: - * 2026-03-01/availabilitySetExamples/AvailabilitySet_ValidateMigrationToVirtualMachineScaleSet.json + * 2026-04-01/availabilitySetExamples/AvailabilitySet_ValidateMigrationToVirtualMachineScaleSet.json */ /** * Sample code: AvailabilitySet_ValidateMigrationToVirtualMachineScaleSet. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsCreateOrUpdateSamples.java index bc4291679f9f..62c44f9dec02 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsCreateOrUpdateSamples.java @@ -17,7 +17,7 @@ */ public final class CapacityReservationGroupsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_CreateOrUpdate.json */ /** * Sample code: Create or update a capacity reservation group. @@ -39,7 +39,7 @@ public final class CapacityReservationGroupsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/TargetedCapacityReservationGroup_CreateOrUpdate.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/TargetedCapacityReservationGroup_CreateOrUpdate.json */ /** * Sample code: Create or update a targeted capacity reservation group. @@ -62,7 +62,7 @@ public final class CapacityReservationGroupsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/BlockCapacityReservationGroup_CreateOrUpdate.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/BlockCapacityReservationGroup_CreateOrUpdate.json */ /** * Sample code: Create or update a block capacity reservation group. @@ -81,6 +81,29 @@ public final class CapacityReservationGroupsCreateOrUpdateSamples { com.azure.core.util.Context.NONE); } + /* + * x-ms-original-file: 2026-04-01/capacityReservationExamples/OpenCapacityReservationGroup_CreateOrUpdate.json + */ + /** + * Sample code: Create or update an open capacity reservation group. + * + * @param manager Entry point to ComputeManager. + */ + public static void + createOrUpdateAnOpenCapacityReservationGroup(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getCapacityReservationGroups() + .createOrUpdateWithResponse("myResourceGroup", "openCapacityReservationGroup", + new CapacityReservationGroupInner().withLocation("westus") + .withTags(mapOf("department", "finance")) + .withZones(Arrays.asList("1", "2")) + .withSharingProfile(new ResourceSharingProfile().withSubscriptionIds( + Arrays.asList(new SubResource().withId("/subscriptions/{subscription-id1}"), + new SubResource().withId("/subscriptions/{subscription-id2}")))) + .withReservationType(ReservationType.OPEN), + com.azure.core.util.Context.NONE); + } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsDeleteSamples.java index 489b7d996b49..d7084f0d9b67 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class CapacityReservationGroupsDeleteSamples { /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_Delete_MinimumSet_Gen.json */ /** * Sample code: CapacityReservationGroup_Delete_MinimumSet_Gen. @@ -24,7 +24,7 @@ public final class CapacityReservationGroupsDeleteSamples { } /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_Delete_MaximumSet_Gen.json */ /** * Sample code: CapacityReservationGroup_Delete_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsGetByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsGetByResourceGroupSamples.java index c592f4111e0e..b09395aacd1e 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsGetByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsGetByResourceGroupSamples.java @@ -11,7 +11,7 @@ */ public final class CapacityReservationGroupsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_Get.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_Get.json */ /** * Sample code: Get a capacity reservation Group. @@ -26,7 +26,7 @@ public static void getACapacityReservationGroup(com.azure.resourcemanager.comput } /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/TargetedCapacityReservationGroup_Get.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/TargetedCapacityReservationGroup_Get.json */ /** * Sample code: Get a targeted capacity reservation group. @@ -41,7 +41,7 @@ public static void getATargetedCapacityReservationGroup(com.azure.resourcemanage } /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/BlockCapacityReservationGroup_Get.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/BlockCapacityReservationGroup_Get.json */ /** * Sample code: Get a block capacity reservation Group. @@ -54,4 +54,20 @@ public static void getABlockCapacityReservationGroup(com.azure.resourcemanager.c .getByResourceGroupWithResponse("myResourceGroup", "blockCapacityReservationGroup", CapacityReservationGroupInstanceViewTypes.INSTANCE_VIEW, com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2026-04-01/capacityReservationExamples/OpenCapacityReservationGroup_Get.json + */ + /** + * Sample code: Get an open capacity reservation group with instance view. + * + * @param manager Entry point to ComputeManager. + */ + public static void + getAnOpenCapacityReservationGroupWithInstanceView(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getCapacityReservationGroups() + .getByResourceGroupWithResponse("myResourceGroup", "openCapacityReservationGroup", + CapacityReservationGroupInstanceViewTypes.INSTANCE_VIEW, com.azure.core.util.Context.NONE); + } } diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsListByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsListByResourceGroupSamples.java index 73fd3e0400d9..cad919793bd5 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsListByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsListByResourceGroupSamples.java @@ -11,7 +11,7 @@ */ public final class CapacityReservationGroupsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_ListByResourceGroup.json */ /** * Sample code: List capacity reservation groups in resource group. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsListSamples.java index 409454889480..53184b7fcb6b 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsListSamples.java @@ -12,7 +12,7 @@ */ public final class CapacityReservationGroupsListSamples { /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_ListBySubscription.json */ /** * Sample code: List capacity reservation groups in subscription. @@ -29,7 +29,7 @@ public final class CapacityReservationGroupsListSamples { /* * x-ms-original-file: - * 2026-03-01/capacityReservationExamples/CapacityReservationGroup_ListBySubscriptionWithResourceIdsQuery.json + * 2026-04-01/capacityReservationExamples/CapacityReservationGroup_ListBySubscriptionWithResourceIdsQuery.json */ /** * Sample code: List capacity reservation groups with resource Ids only in subscription. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsUpdateSamples.java index bd27cab09a05..10fc116821d1 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationGroupsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class CapacityReservationGroupsUpdateSamples { /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_Update_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_Update_MinimumSet_Gen.json */ /** * Sample code: CapacityReservationGroup_Update_MinimumSet_Gen. @@ -29,7 +29,7 @@ public final class CapacityReservationGroupsUpdateSamples { } /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservationGroup_Update_MaximumSet_Gen.json */ /** * Sample code: CapacityReservationGroup_Update_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsCreateOrUpdateSamples.java index 180c4e4fda8a..716195b0e5f1 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsCreateOrUpdateSamples.java @@ -16,7 +16,29 @@ */ public final class CapacityReservationsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/FutureCapacityReservation_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a Future capacity reservation. + * + * @param manager Entry point to ComputeManager. + */ + public static void + createOrUpdateAFutureCapacityReservation(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getCapacityReservations() + .createOrUpdate("myResourceGroup", "futureCapacityReservationGroup", "futureCapacityReservation", + new CapacityReservationInner().withLocation("westus") + .withTags(mapOf("department", "HR")) + .withSku(new Sku().withName("Standard_DS1_v2").withCapacity(4L)) + .withZones(Arrays.asList("1")) + .withScheduleProfile( + new ScheduleProfile().withStart("2026-08-01T12:00:00Z").withMinimumCommitmentDays(30)), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservation_CreateOrUpdate.json */ /** * Sample code: Create or update a capacity reservation . @@ -35,7 +57,7 @@ public static void createOrUpdateACapacityReservation(com.azure.resourcemanager. } /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/TargetedCapacityReservation_CreateOrUpdate.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/TargetedCapacityReservation_CreateOrUpdate.json */ /** * Sample code: Create or update a targeted capacity reservation. @@ -55,7 +77,7 @@ public static void createOrUpdateACapacityReservation(com.azure.resourcemanager. } /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/BlockCapacityReservation_CreateOrUpdate.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/BlockCapacityReservation_CreateOrUpdate.json */ /** * Sample code: Create or update a block capacity reservation. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsDeleteSamples.java index 8e5e0a576b3c..2876d5a8424e 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class CapacityReservationsDeleteSamples { /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservation_Delete_MaximumSet_Gen.json */ /** * Sample code: CapacityReservation_Delete_MaximumSet_Gen. @@ -24,7 +24,7 @@ public final class CapacityReservationsDeleteSamples { } /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservation_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservation_Delete_MinimumSet_Gen.json */ /** * Sample code: CapacityReservation_Delete_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsGetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsGetSamples.java index 4ae6498d41c9..8062c66a5af7 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsGetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsGetSamples.java @@ -11,7 +11,7 @@ */ public final class CapacityReservationsGetSamples { /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/BlockCapacityReservation_Get.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/BlockCapacityReservation_Get.json */ /** * Sample code: Get a block capacity reservation. @@ -26,7 +26,22 @@ public static void getABlockCapacityReservation(com.azure.resourcemanager.comput } /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/TargetedCapacityReservation_Get.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/FutureCapacityReservation_Get.json + */ + /** + * Sample code: Get a Future capacity reservation. + * + * @param manager Entry point to ComputeManager. + */ + public static void getAFutureCapacityReservation(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getCapacityReservations() + .getWithResponse("myResourceGroup", "futureCapacityReservationGroup", "futureCapacityReservation", + CapacityReservationInstanceViewTypes.INSTANCE_VIEW, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-04-01/capacityReservationExamples/TargetedCapacityReservation_Get.json */ /** * Sample code: Get a targeted capacity reservation. @@ -41,7 +56,7 @@ public static void getATargetedCapacityReservation(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservation_Get.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservation_Get.json */ /** * Sample code: Get a capacity reservation. @@ -54,4 +69,20 @@ public static void getACapacityReservation(com.azure.resourcemanager.compute.Com .getWithResponse("myResourceGroup", "myCapacityReservationGroup", "myCapacityReservation", CapacityReservationInstanceViewTypes.INSTANCE_VIEW, com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2026-04-01/capacityReservationExamples/OpenCapacityReservation_Get.json + */ + /** + * Sample code: Get an open capacity reservation with instance view. + * + * @param manager Entry point to ComputeManager. + */ + public static void + getAnOpenCapacityReservationWithInstanceView(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getCapacityReservations() + .getWithResponse("myResourceGroup", "openCapacityReservationGroup", "openCapacityReservation", + CapacityReservationInstanceViewTypes.INSTANCE_VIEW, com.azure.core.util.Context.NONE); + } } diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsListByCapacityReservationGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsListByCapacityReservationGroupSamples.java index 3c417b84783d..f2f19f2a8675 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsListByCapacityReservationGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsListByCapacityReservationGroupSamples.java @@ -11,7 +11,23 @@ */ public final class CapacityReservationsListByCapacityReservationGroupSamples { /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/FutureCapacityReservation_ListByReservationGroup.json + */ + /** + * Sample code: List Future capacity reservations in reservation group. + * + * @param manager Entry point to ComputeManager. + */ + public static void + listFutureCapacityReservationsInReservationGroup(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getCapacityReservations() + .listByCapacityReservationGroup("myResourceGroup", "futureCapacityReservationGroup", + ExpandTypesForGetCapacityReservationGroups.VIRTUAL_MACHINES_REF, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservation_ListByReservationGroup.json */ /** * Sample code: List capacity reservations in reservation group. @@ -28,7 +44,7 @@ public final class CapacityReservationsListByCapacityReservationGroupSamples { /* * x-ms-original-file: - * 2026-03-01/capacityReservationExamples/TargetedCapacityReservation_ListByReservationGroup.json + * 2026-04-01/capacityReservationExamples/TargetedCapacityReservation_ListByReservationGroup.json */ /** * Sample code: List capacity reservations in targeted reservation group. @@ -44,7 +60,7 @@ public final class CapacityReservationsListByCapacityReservationGroupSamples { } /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/BlockCapacityReservation_ListByReservationGroup.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/BlockCapacityReservation_ListByReservationGroup.json */ /** * Sample code: List block capacity reservations in reservation group. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsUpdateSamples.java index 358e53ebc257..6c5cb5f0ffcb 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/CapacityReservationsUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class CapacityReservationsUpdateSamples { /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservation_Update_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservation_Update_MinimumSet_Gen.json */ /** * Sample code: CapacityReservation_Update_MinimumSet_Gen. @@ -30,7 +30,7 @@ public final class CapacityReservationsUpdateSamples { } /* - * x-ms-original-file: 2026-03-01/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/capacityReservationExamples/CapacityReservation_Update_MaximumSet_Gen.json */ /** * Sample code: CapacityReservation_Update_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsCreateOrUpdateSamples.java index a5fd3225a4ea..f47f07051894 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class DedicatedHostGroupsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate.json */ /** * Sample code: Create or update a dedicated host group. @@ -35,7 +35,7 @@ public static void createOrUpdateADedicatedHostGroup(com.azure.resourcemanager.c } /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json */ /** * Sample code: Create or update a dedicated host group with Ultra SSD support. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsDeleteSamples.java index 392fe4e8fd8e..e842b0d524a8 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class DedicatedHostGroupsDeleteSamples { /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json */ /** * Sample code: DedicatedHostGroup_Delete_MaximumSet_Gen. @@ -23,7 +23,7 @@ public static void dedicatedHostGroupDeleteMaximumSetGen(com.azure.resourcemanag } /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_Delete_MinimumSet_Gen.json */ /** * Sample code: DedicatedHostGroup_Delete_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsGetByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsGetByResourceGroupSamples.java index fa22ebb0b7b4..63def874d04c 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsGetByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsGetByResourceGroupSamples.java @@ -10,7 +10,7 @@ public final class DedicatedHostGroupsGetByResourceGroupSamples { /* * x-ms-original-file: - * 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_Get_UltraSSDEnabledDedicatedHostGroup.json + * 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_Get_UltraSSDEnabledDedicatedHostGroup.json */ /** * Sample code: Create an ultraSSDEnabled dedicated host group. @@ -26,7 +26,7 @@ public final class DedicatedHostGroupsGetByResourceGroupSamples { } /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_Get.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_Get.json */ /** * Sample code: Create a dedicated host group. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsListByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsListByResourceGroupSamples.java index bc37d27310ea..2fd501223133 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsListByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class DedicatedHostGroupsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MaximumSet_Gen.json */ /** * Sample code: DedicatedHostGroup_ListByResourceGroup_MaximumSet_Gen. @@ -24,7 +24,7 @@ public final class DedicatedHostGroupsListByResourceGroupSamples { } /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_ListByResourceGroup_MinimumSet_Gen.json */ /** * Sample code: DedicatedHostGroup_ListByResourceGroup_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsListSamples.java index b3b05b0599b8..48eb7a654573 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsListSamples.java @@ -9,7 +9,7 @@ */ public final class DedicatedHostGroupsListSamples { /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: DedicatedHostGroup_ListBySubscription_MaximumSet_Gen. @@ -22,7 +22,7 @@ public final class DedicatedHostGroupsListSamples { } /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_ListBySubscription_MinimumSet_Gen.json */ /** * Sample code: DedicatedHostGroup_ListBySubscription_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsUpdateSamples.java index 4d94fcab43ad..15708f46a3a6 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostGroupsUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class DedicatedHostGroupsUpdateSamples { /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_Update_MaximumSet_Gen.json */ /** * Sample code: DedicatedHostGroup_Update_MaximumSet_Gen. @@ -33,7 +33,7 @@ public static void dedicatedHostGroupUpdateMaximumSetGen(com.azure.resourcemanag } /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHostGroup_Update_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHostGroup_Update_MinimumSet_Gen.json */ /** * Sample code: DedicatedHostGroup_Update_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsCreateOrUpdateSamples.java index 5eca78c408af..983db1bf724a 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class DedicatedHostsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_CreateOrUpdate.json */ /** * Sample code: Create or update a dedicated host . diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsDeleteSamples.java index 2145a77a369d..1dc772502291 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class DedicatedHostsDeleteSamples { /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Delete_MaximumSet_Gen.json */ /** * Sample code: DedicatedHost_Delete_MaximumSet_Gen. @@ -23,7 +23,7 @@ public static void dedicatedHostDeleteMaximumSetGen(com.azure.resourcemanager.co } /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Delete_MinimumSet_Gen.json */ /** * Sample code: DedicatedHost_Delete_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsGetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsGetSamples.java index c71b0927dd8b..8f2a61b3d245 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsGetSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsGetSamples.java @@ -11,7 +11,7 @@ */ public final class DedicatedHostsGetSamples { /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Get.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Get.json */ /** * Sample code: Get a dedicated host. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsListAvailableSizesSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsListAvailableSizesSamples.java index 44ee6abb57ab..b5eadf5b790b 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsListAvailableSizesSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsListAvailableSizesSamples.java @@ -9,7 +9,7 @@ */ public final class DedicatedHostsListAvailableSizesSamples { /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_ListAvailableSizes.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_ListAvailableSizes.json */ /** * Sample code: Get Available Dedicated Host Sizes. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsListByHostGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsListByHostGroupSamples.java index a2a2c9c21594..8c0923db7f84 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsListByHostGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsListByHostGroupSamples.java @@ -9,7 +9,7 @@ */ public final class DedicatedHostsListByHostGroupSamples { /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MaximumSet_Gen.json */ /** * Sample code: DedicatedHost_ListByHostGroup_MaximumSet_Gen. @@ -24,7 +24,7 @@ public final class DedicatedHostsListByHostGroupSamples { } /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_ListByHostGroup_MinimumSet_Gen.json */ /** * Sample code: DedicatedHost_ListByHostGroup_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsRedeploySamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsRedeploySamples.java index c2c02c775445..d6bff5a01d3e 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsRedeploySamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsRedeploySamples.java @@ -9,7 +9,7 @@ */ public final class DedicatedHostsRedeploySamples { /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Redeploy.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Redeploy.json */ /** * Sample code: Redeploy Dedicated Host. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsRestartSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsRestartSamples.java index 321a74ffbd98..083d1e9ce53b 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsRestartSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsRestartSamples.java @@ -9,7 +9,7 @@ */ public final class DedicatedHostsRestartSamples { /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Restart.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Restart.json */ /** * Sample code: Restart Dedicated Host. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsUpdateSamples.java index 969695a6954f..d49534650afa 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/DedicatedHostsUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class DedicatedHostsUpdateSamples { /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Update_Resize.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Update_Resize.json */ /** * Sample code: DedicatedHost_Update_Resize. @@ -30,7 +30,7 @@ public static void dedicatedHostUpdateResize(com.azure.resourcemanager.compute.C } /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Update_MaximumSet_Gen.json */ /** * Sample code: DedicatedHost_Update_MaximumSet_Gen. @@ -49,7 +49,7 @@ public static void dedicatedHostUpdateMaximumSetGen(com.azure.resourcemanager.co } /* - * x-ms-original-file: 2026-03-01/dedicatedHostExamples/DedicatedHost_Update_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/dedicatedHostExamples/DedicatedHost_Update_MinimumSet_Gen.json */ /** * Sample code: DedicatedHost_Update_MinimumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesCreateOrUpdateSamples.java index 2225c3cd3e23..2c011401907f 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesCreateOrUpdateSamples.java @@ -19,7 +19,7 @@ */ public final class ImagesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-03-01/imageExamples/Image_CreateFromASnapshot.json + * x-ms-original-file: 2026-04-01/imageExamples/Image_CreateFromASnapshot.json */ /** * Sample code: Create a virtual machine image from a snapshot. @@ -40,7 +40,7 @@ public final class ImagesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-03-01/imageExamples/Image_CreateFromAManagedDisk.json + * x-ms-original-file: 2026-04-01/imageExamples/Image_CreateFromAManagedDisk.json */ /** * Sample code: Create a virtual machine image from a managed disk. @@ -61,7 +61,7 @@ public final class ImagesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-03-01/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json + * x-ms-original-file: 2026-04-01/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json */ /** * Sample code: Create a virtual machine image from a blob with DiskEncryptionSet resource. @@ -83,7 +83,7 @@ public static void createAVirtualMachineImageFromABlobWithDiskEncryptionSetResou } /* - * x-ms-original-file: 2026-03-01/imageExamples/Image_CreateFromAManagedDiskWithDiskEncryptionSet.json + * x-ms-original-file: 2026-04-01/imageExamples/Image_CreateFromAManagedDiskWithDiskEncryptionSet.json */ /** * Sample code: Create a virtual machine image from a managed disk with DiskEncryptionSet resource. @@ -106,7 +106,7 @@ public static void createAVirtualMachineImageFromAManagedDiskWithDiskEncryptionS } /* - * x-ms-original-file: 2026-03-01/imageExamples/Image_Create_DataDiskFromABlobIncluded.json + * x-ms-original-file: 2026-04-01/imageExamples/Image_Create_DataDiskFromABlobIncluded.json */ /** * Sample code: Create a virtual machine image that includes a data disk from a blob. @@ -132,7 +132,7 @@ public static void createAVirtualMachineImageThatIncludesADataDiskFromABlob( } /* - * x-ms-original-file: 2026-03-01/imageExamples/Image_CreateFromASnapshotWithDiskEncryptionSet.json + * x-ms-original-file: 2026-04-01/imageExamples/Image_CreateFromASnapshotWithDiskEncryptionSet.json */ /** * Sample code: Create a virtual machine image from a snapshot with DiskEncryptionSet resource. @@ -155,7 +155,7 @@ public static void createAVirtualMachineImageFromASnapshotWithDiskEncryptionSetR } /* - * x-ms-original-file: 2026-03-01/imageExamples/Image_Create_DataDiskFromASnapshotIncluded.json + * x-ms-original-file: 2026-04-01/imageExamples/Image_Create_DataDiskFromASnapshotIncluded.json */ /** * Sample code: Create a virtual machine image that includes a data disk from a snapshot. @@ -180,7 +180,7 @@ public static void createAVirtualMachineImageThatIncludesADataDiskFromASnapshot( } /* - * x-ms-original-file: 2026-03-01/imageExamples/Image_CreateFromABlob.json + * x-ms-original-file: 2026-04-01/imageExamples/Image_CreateFromABlob.json */ /** * Sample code: Create a virtual machine image from a blob. @@ -200,7 +200,7 @@ public static void createAVirtualMachineImageFromABlob(com.azure.resourcemanager } /* - * x-ms-original-file: 2026-03-01/imageExamples/Image_CreateFromAVM.json + * x-ms-original-file: 2026-04-01/imageExamples/Image_CreateFromAVM.json */ /** * Sample code: Create a virtual machine image from an existing virtual machine. @@ -218,7 +218,7 @@ public static void createAVirtualMachineImageFromAnExistingVirtualMachine( } /* - * x-ms-original-file: 2026-03-01/imageExamples/Image_Create_DataDiskFromAManagedDiskIncluded.json + * x-ms-original-file: 2026-04-01/imageExamples/Image_Create_DataDiskFromAManagedDiskIncluded.json */ /** * Sample code: Create a virtual machine image that includes a data disk from a managed disk. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesDeleteSamples.java index 9d30a4fbc986..495cbe8771ac 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesDeleteSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ImagesDeleteSamples { /* - * x-ms-original-file: 2026-03-01/imageExamples/Images_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/imageExamples/Images_Delete_MinimumSet_Gen.json */ /** * Sample code: Image_Delete_MinimumSet_Gen. @@ -23,7 +23,7 @@ public static void imageDeleteMinimumSetGen(com.azure.resourcemanager.compute.Co } /* - * x-ms-original-file: 2026-03-01/imageExamples/Images_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/imageExamples/Images_Delete_MaximumSet_Gen.json */ /** * Sample code: Image_Delete_MaximumSet_Gen. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesGetByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesGetByResourceGroupSamples.java index 5bb92105650c..92e73dc58c90 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesGetByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ImagesGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-03-01/imageExamples/Image_Get.json + * x-ms-original-file: 2026-04-01/imageExamples/Image_Get.json */ /** * Sample code: Get information about a virtual machine image. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesListByResourceGroupSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesListByResourceGroupSamples.java index 5cf1c40df71b..2ec643567ee8 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesListByResourceGroupSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ImagesListByResourceGroupSamples { /* - * x-ms-original-file: 2026-03-01/imageExamples/Image_ListByResourceGroup.json + * x-ms-original-file: 2026-04-01/imageExamples/Image_ListByResourceGroup.json */ /** * Sample code: List all virtual machine images in a resource group. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesListSamples.java index e3e4b5debdbc..6ff91aa39d06 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesListSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesListSamples.java @@ -9,7 +9,7 @@ */ public final class ImagesListSamples { /* - * x-ms-original-file: 2026-03-01/imageExamples/Image_ListBySubscription.json + * x-ms-original-file: 2026-04-01/imageExamples/Image_ListBySubscription.json */ /** * Sample code: List all virtual machine images in a subscription. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesUpdateSamples.java index 7b15b59a8ce0..7b7fa43bfd8b 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/ImagesUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class ImagesUpdateSamples { /* - * x-ms-original-file: 2026-03-01/imageExamples/Image_Update.json + * x-ms-original-file: 2026-04-01/imageExamples/Image_Update.json */ /** * Sample code: Updates tags of an Image. diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksCreateOrUpdateSamples.java index b792a8ae8f83..b609deb69d37 100644 --- a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksCreateOrUpdateSamples.java +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/InterconnectBlocksCreateOrUpdateSamples.java @@ -19,7 +19,7 @@ */ public final class InterconnectBlocksCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_CreateOrUpdate.json + * x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_CreateOrUpdate.json */ /** * Sample code: Create or update an Interconnect Block with a specific zone. @@ -40,7 +40,7 @@ public final class InterconnectBlocksCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_CreateOrUpdate_AnyZone.json + * x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_CreateOrUpdate_AnyZone.json */ /** * Sample code: Create or update an Interconnect Block with automatic zone placement. 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 index 9c2eb85e7172..a7f0cc5835a9 100644 --- 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 @@ -9,7 +9,7 @@ */ public final class InterconnectBlocksDeleteSamples { /* - * x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_Delete.json + * x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_Delete.json */ /** * Sample code: Delete an Interconnect Block. 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 index 1b5d24014544..6a4c6a442afa 100644 --- 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 @@ -11,7 +11,7 @@ */ public final class InterconnectBlocksGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_Get.json + * x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_Get.json */ /** * Sample code: Get an Interconnect Block. @@ -26,7 +26,7 @@ public static void getAnInterconnectBlock(com.azure.resourcemanager.compute.Comp } /* - * x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_Get_InstanceView.json + * x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_Get_InstanceView.json */ /** * Sample code: Get an Interconnect Block with instance view. 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 index 9ce8523ef005..aa863523e8e7 100644 --- 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 @@ -9,7 +9,7 @@ */ public final class InterconnectBlocksListByResourceGroupSamples { /* - * x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_ListByResourceGroup.json + * x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_ListByResourceGroup.json */ /** * Sample code: List Interconnect Blocks in a resource group. 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 index 80501033bb6c..c584f6f4676c 100644 --- 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 @@ -9,7 +9,7 @@ */ public final class InterconnectBlocksListSamples { /* - * x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_ListBySubscription.json + * x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_ListBySubscription.json */ /** * Sample code: List Interconnect Blocks in a subscription. 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 index 572456b60e8d..aefe63d2f483 100644 --- 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 @@ -14,7 +14,7 @@ */ public final class InterconnectBlocksUpdateSamples { /* - * x-ms-original-file: 2026-03-01/interconnectBlockExamples/InterconnectBlocks_Update.json + * x-ms-original-file: 2026-04-01/interconnectBlockExamples/InterconnectBlocks_Update.json */ /** * Sample code: Update an Interconnect Block. 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 5773bfd57afa..9450be982e9f 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: 2026-03-01/logAnalyticExamples/LogAnalytics_RequestRateByInterval.json + * x-ms-original-file: 2026-04-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 2b5068ed225f..f6b3363b09fc 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: 2026-03-01/logAnalyticExamples/LogAnalytics_ThrottledRequests.json + * x-ms-original-file: 2026-04-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 5284152f4757..d9dd6546aa96 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: 2026-03-01/computeRPCommonExamples/Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/computeRPCommonExamples/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 c2e3b7fe0bee..3aa3ee6bd6e5 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: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_CreateOrUpdate.json + * x-ms-original-file: 2026-04-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 cb89510e3cfc..8bad1552b687 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: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_Delete.json + * x-ms-original-file: 2026-04-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 001884278072..113eeba8dc9c 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: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_Get.json + * x-ms-original-file: 2026-04-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 7b43da6f51ce..a0c6da0058b4 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: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_ListByResourceGroup.json + * x-ms-original-file: 2026-04-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 e625cc59dd24..a4b2458226bb 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: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_ListBySubscription.json + * x-ms-original-file: 2026-04-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 6cbd3663d238..624969df450d 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: 2026-03-01/proximityPlacementGroupExamples/ProximityPlacementGroup_Patch.json + * x-ms-original-file: 2026-04-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 bae5eba22169..344b314eb399 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: 2026-03-01/restorePointExamples/RestorePointCollection_CreateOrUpdate_ForCrossRegionCopy.json + * x-ms-original-file: 2026-04-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: 2026-03-01/restorePointExamples/RestorePointCollection_CreateOrUpdate.json + * x-ms-original-file: 2026-04-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 cae1eed28830..ce773406ad12 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: 2026-03-01/restorePointExamples/RestorePointCollection_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/restorePointExamples/RestorePointCollection_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 f73fb0bd04e0..187de573ac0c 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: 2026-03-01/restorePointExamples/RestorePointCollection_Get_WithContainedRestorePoints.json + * x-ms-original-file: 2026-04-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: 2026-03-01/restorePointExamples/RestorePointCollection_Get.json + * x-ms-original-file: 2026-04-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 ae1cda97dd80..0fe8256d6132 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: 2026-03-01/restorePointExamples/RestorePointCollection_ListByResourceGroup.json + * x-ms-original-file: 2026-04-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 5fc9eecf19f4..8efbb6239894 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: 2026-03-01/restorePointExamples/RestorePointCollection_ListBySubscription.json + * x-ms-original-file: 2026-04-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 57ef125b76c9..f0def23a5b65 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: 2026-03-01/restorePointExamples/RestorePointCollection_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/restorePointExamples/RestorePointCollection_Update_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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 c97fefe4d7f7..bba9b7973608 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: 2026-03-01/restorePointExamples/RestorePoint_Copy_BetweenRegions.json + * x-ms-original-file: 2026-04-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: 2026-03-01/restorePointExamples/RestorePoint_Create.json + * x-ms-original-file: 2026-04-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 69419f1373ca..9fdd67cd3dd2 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: 2026-03-01/restorePointExamples/RestorePoint_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 bf561fe442a1..5f4e3920f039 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: 2026-03-01/restorePointExamples/RestorePoint_Get.json + * x-ms-original-file: 2026-04-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: 2026-03-01/restorePointExamples/RestorePoint_Get_WithInstanceView.json + * x-ms-original-file: 2026-04-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 a28ff559c5e7..dc0184c90be5 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: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Create.json + * x-ms-original-file: 2026-04-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 66da1bc04062..abff76ddbcda 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: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 36ae210c496a..f0cb0f76bfc7 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: 2026-03-01/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair.json + * x-ms-original-file: 2026-04-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: 2026-03-01/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithRSA.json + * x-ms-original-file: 2026-04-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: 2026-03-01/sshPublicKeyExamples/SshPublicKey_GenerateKeyPair_EncryptionWithEd25519.json + * x-ms-original-file: 2026-04-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 57488ee28c78..cd23feba29a0 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: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Get.json + * x-ms-original-file: 2026-04-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 efaa0e7ea711..fdbdea6330a8 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: 2026-03-01/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/sshPublicKeyExamples/SshPublicKey_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 37cdabf8e030..cfe5d1bdfd60 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: 2026-03-01/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/sshPublicKeyExamples/SshPublicKey_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 b0da75bb7f91..663dc8aa588d 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: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Update_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/sshPublicKeyExamples/SshPublicKey_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 458bddd5bcf5..12d30fd9c0cc 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: 2026-03-01/computeRPCommonExamples/Usage_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/computeRPCommonExamples/Usage_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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/VirtualMachineDiagnosticRunCommandsCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineDiagnosticRunCommandsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..54abd80b1c8b --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineDiagnosticRunCommandsCreateOrUpdateSamples.java @@ -0,0 +1,40 @@ +// 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.fluent.models.VirtualMachineDiagnosticRunCommandInner; +import com.azure.resourcemanager.compute.fluent.models.VirtualMachineRunCommandProperties; +import com.azure.resourcemanager.compute.models.RunCommandInputParameter; +import com.azure.resourcemanager.compute.models.VirtualMachineRunCommandScriptSource; +import java.util.Arrays; + +/** + * Samples for VirtualMachineDiagnosticRunCommands CreateOrUpdate. + */ +public final class VirtualMachineDiagnosticRunCommandsCreateOrUpdateSamples { + /* + * x-ms-original-file: + * 2026-04-01/diagnosticRunCommandExamples/VirtualMachineDiagnosticRunCommand_CreateOrUpdate.json + */ + /** + * Sample code: Create or update a diagnostic run command. + * + * @param manager Entry point to ComputeManager. + */ + public static void createOrUpdateADiagnosticRunCommand(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineDiagnosticRunCommands() + .createOrUpdate("myResourceGroup", "myVM", "myRunCommand", new VirtualMachineDiagnosticRunCommandInner() + .withLocation("West US") + .withProperties(new VirtualMachineRunCommandProperties() + .withSource(new VirtualMachineRunCommandScriptSource().withCommandId("FleetDiagnosticsWindows")) + .withParameters(Arrays.asList(new RunCommandInputParameter().withName("param1").withValue("value1"), + new RunCommandInputParameter().withName("param2").withValue("value2"))) + .withAsyncExecution(false) + .withTimeoutInSeconds(3600) + .withTreatFailureAsDeploymentFailure(false)), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineDiagnosticRunCommandsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineDiagnosticRunCommandsDeleteSamples.java new file mode 100644 index 000000000000..2ae538c86f46 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineDiagnosticRunCommandsDeleteSamples.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 VirtualMachineDiagnosticRunCommands Delete. + */ +public final class VirtualMachineDiagnosticRunCommandsDeleteSamples { + /* + * x-ms-original-file: 2026-04-01/diagnosticRunCommandExamples/VirtualMachineDiagnosticRunCommand_Delete.json + */ + /** + * Sample code: Delete a diagnostic run command. + * + * @param manager Entry point to ComputeManager. + */ + public static void deleteADiagnosticRunCommand(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineDiagnosticRunCommands() + .delete("myResourceGroup", "myVM", "myRunCommand", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineDiagnosticRunCommandsDiagnosticListByVirtualMachineSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineDiagnosticRunCommandsDiagnosticListByVirtualMachineSamples.java new file mode 100644 index 000000000000..9e50aa8033af --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineDiagnosticRunCommandsDiagnosticListByVirtualMachineSamples.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 VirtualMachineDiagnosticRunCommands DiagnosticListByVirtualMachine. + */ +public final class VirtualMachineDiagnosticRunCommandsDiagnosticListByVirtualMachineSamples { + /* + * x-ms-original-file: 2026-04-01/diagnosticRunCommandExamples/VirtualMachineDiagnosticRunCommand_List.json + */ + /** + * Sample code: List diagnostic run commands in a Virtual Machine. + * + * @param manager Entry point to ComputeManager. + */ + public static void + listDiagnosticRunCommandsInAVirtualMachine(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineDiagnosticRunCommands() + .diagnosticListByVirtualMachine("myResourceGroup", "myVM", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineDiagnosticRunCommandsGetByVirtualMachineSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineDiagnosticRunCommandsGetByVirtualMachineSamples.java new file mode 100644 index 000000000000..2c67d958d53a --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineDiagnosticRunCommandsGetByVirtualMachineSamples.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 VirtualMachineDiagnosticRunCommands GetByVirtualMachine. + */ +public final class VirtualMachineDiagnosticRunCommandsGetByVirtualMachineSamples { + /* + * x-ms-original-file: 2026-04-01/diagnosticRunCommandExamples/VirtualMachineDiagnosticRunCommand_Get.json + */ + /** + * Sample code: Get a diagnostic run command. + * + * @param manager Entry point to ComputeManager. + */ + public static void getADiagnosticRunCommand(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineDiagnosticRunCommands() + .getByVirtualMachineWithResponse("myResourceGroup", "myVM", "myRunCommand", null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineDiagnosticRunCommandsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineDiagnosticRunCommandsUpdateSamples.java new file mode 100644 index 000000000000..cf82af845558 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineDiagnosticRunCommandsUpdateSamples.java @@ -0,0 +1,36 @@ +// 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.RunCommandInputParameter; +import com.azure.resourcemanager.compute.models.VirtualMachineRunCommandScriptSource; +import com.azure.resourcemanager.compute.models.VirtualMachineRunCommandUpdate; +import java.util.Arrays; + +/** + * Samples for VirtualMachineDiagnosticRunCommands Update. + */ +public final class VirtualMachineDiagnosticRunCommandsUpdateSamples { + /* + * x-ms-original-file: 2026-04-01/diagnosticRunCommandExamples/VirtualMachineDiagnosticRunCommand_Update.json + */ + /** + * Sample code: Update a diagnostic run command. + * + * @param manager Entry point to ComputeManager. + */ + public static void updateADiagnosticRunCommand(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineDiagnosticRunCommands() + .update("myResourceGroup", "myVM", "myRunCommand", + new VirtualMachineRunCommandUpdate() + .withSource(new VirtualMachineRunCommandScriptSource().withCommandId("FleetDiagnosticsWindows")) + .withParameters(Arrays.asList(new RunCommandInputParameter().withName("param1").withValue("value1"), + new RunCommandInputParameter().withName("param2").withValue("value2"))) + .withAsyncExecution(false) + .withTimeoutInSeconds(3600), + com.azure.core.util.Context.NONE); + } +} 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 9e28efeffe20..0c58d453cf39 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: - * 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MinimumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_Get_MaximumSet_Gen.json + * 2026-04-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 e8294b49a29c..ecaf3c19ac62 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: - * 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MinimumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListTypes_MaximumSet_Gen.json + * 2026-04-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 b561e11dc041..a0861bf175f0 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 @@ -4,13 +4,15 @@ package com.azure.resourcemanager.compute.generated; +import com.azure.resourcemanager.compute.models.ListVersionsExpandOptions; + /** * Samples for VirtualMachineExtensionImages ListVersions. */ public final class VirtualMachineExtensionImagesListVersionsSamples { /* * x-ms-original-file: - * 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MinimumSet_Gen.json + * 2026-04-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineExtensionImage_ListVersions_MinimumSet_Gen. @@ -21,13 +23,31 @@ public static void virtualMachineExtensionImageListVersionsMinimumSetGen( com.azure.resourcemanager.compute.ComputeManager manager) { manager.serviceClient() .getVirtualMachineExtensionImages() - .listVersionsWithResponse("aaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaa", null, null, null, + .listVersionsWithResponse("aaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaa", null, null, null, null, + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-04-01/virtualMachineExtensionImageExamples/ + * VirtualMachineExtensionImage_ListVersions_WithExpandProperties_Gen.json + */ + /** + * Sample code: VirtualMachineExtensionImage_ListVersions_WithExpandProperties_Gen. + * + * @param manager Entry point to ComputeManager. + */ + public static void virtualMachineExtensionImageListVersionsWithExpandPropertiesGen( + com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineExtensionImages() + .listVersionsWithResponse("aaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaa", + "aaaaaaaaaaaaaaaaaaaaaaaaa", 22, "a", ListVersionsExpandOptions.PROPERTIES, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * 2026-03-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen.json + * 2026-04-01/virtualMachineExtensionImageExamples/VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineExtensionImage_ListVersions_MaximumSet_Gen. @@ -39,6 +59,6 @@ public static void virtualMachineExtensionImageListVersionsMaximumSetGen( manager.serviceClient() .getVirtualMachineExtensionImages() .listVersionsWithResponse("aaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaa", - "aaaaaaaaaaaaaaaaaaaaaaaaa", 22, "a", com.azure.core.util.Context.NONE); + "aaaaaaaaaaaaaaaaaaaaaaaaa", 22, "a", null, com.azure.core.util.Context.NONE); } } 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 ef0c5834c767..6bfddb7af290 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: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_CreateOrUpdate_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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 f576da1f28db..94222aea4bba 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: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_Delete_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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 bbfdf149eede..1af5bbb95e42 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: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_Get_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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 d6855434dca9..4221ee880266 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: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 e1f2536d0ab9..38afc233bbc4 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: 2026-03-01/virtualMachineExamples/VirtualMachineExtension_Update.json + * x-ms-original-file: 2026-04-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 fdafd5092905..0e7c8c71b68c 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: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_Get_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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 99e398716111..4faa19d3feba 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: - * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MaximumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListOffers_MinimumSet_Gen.json + * 2026-04-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 7e4a12fff824..2a9fba18bad4 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: - * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MinimumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListPublishers_MaximumSet_Gen.json + * 2026-04-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 7470ddaac2f1..70063e83c5e8 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: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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 ccb02b62ae31..71ba45118dc8 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: - * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MaximumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListSkus_MinimumSet_Gen.json + * 2026-04-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 18c53a03494d..d70e62f27617 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: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_Get_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 0011df9c6a4b..f16b2dde7654 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: - * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MaximumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineImageExamples/VirtualMachineImagesEdgeZone_ListByEdgeZone_MinimumSet_Gen.json + * 2026-04-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 0b3ff2eb398f..345b4877c0d6 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: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListOffers_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 8e231e513614..587416801507 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: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListPublishers_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 bba21e4f4dc4..e1f04171111a 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: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 ed90171ea547..b47d0b28bca3 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: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineImageExamples/VirtualMachineImage_ListSkus_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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 7b34cc06c098..02162e718d82 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: - * 2026-03-01/virtualMachineImageExamples/VirtualMachineImages_ListWithProperties_MinimumSet_Gen.json + * 2026-04-01/virtualMachineImageExamples/VirtualMachineImages_ListWithProperties_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineImages_ListWithProperties_MinimumSet. @@ -27,7 +27,7 @@ public final class VirtualMachineImagesListWithPropertiesSamples { /* * x-ms-original-file: - * 2026-03-01/virtualMachineImageExamples/VirtualMachineImages_ListWithProperties_MaximumSet_Gen.json + * 2026-04-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 81f1267de9b9..9e5e0543faf8 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: 2026-03-01/runCommandExamples/VirtualMachineRunCommand_CreateOrUpdate.json + * x-ms-original-file: 2026-04-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 b03b37d22761..18b4e7f1f2ae 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: 2026-03-01/runCommandExamples/VirtualMachineRunCommand_Delete.json + * x-ms-original-file: 2026-04-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 684a97f2987a..ba497ce8ca90 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: 2026-03-01/runCommandExamples/VirtualMachineRunCommand_Get.json + * x-ms-original-file: 2026-04-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 0306f49a527a..2f6ac979c7bf 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: 2026-03-01/runCommandExamples/RunCommand_Get.json + * x-ms-original-file: 2026-04-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 c4f2ff2e0a29..e63f95c47f49 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: 2026-03-01/runCommandExamples/VirtualMachineRunCommand_List.json + * x-ms-original-file: 2026-04-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 cd9e2a7a1d01..542d931c4d88 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: 2026-03-01/runCommandExamples/RunCommand_List.json + * x-ms-original-file: 2026-04-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 1a8cae4c2b1a..c5f248a1f8f6 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: 2026-03-01/runCommandExamples/VirtualMachineRunCommand_Update.json + * x-ms-original-file: 2026-04-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 e26e6f8d12d7..2bc80e0d1a02 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MaximumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_CreateOrUpdate_MinimumSet_Gen.json + * 2026-04-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 a13259a81a02..8acd236eb18a 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MinimumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Delete_MaximumSet_Gen.json + * 2026-04-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 45b81435df0d..d4d024afbd21 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MaximumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Get_MinimumSet_Gen.json + * 2026-04-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 8f5fe5deab70..088214104e49 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MinimumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_List_MaximumSet_Gen.json + * 2026-04-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 885c659f4e85..05e785b5852c 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MinimumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_Update_MaximumSet_Gen.json + * 2026-04-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 433286f6aec6..4d8873656437 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetLifeCycleHookEvent_Get.json + * x-ms-original-file: 2026-04-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 6bf267944578..b5a83dcee565 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetLifeCycleHookEvent_List.json + * x-ms-original-file: 2026-04-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 3e2486f7407b..12772bfe8fae 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetLifeCycleHookEvent_Update.json + * 2026-04-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 36ecd5f13447..75e433c0f4f0 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MinimumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_Cancel_MaximumSet_Gen.json + * 2026-04-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 b42392c674c9..06e4ee3361f3 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MaximumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_GetLatest_MinimumSet_Gen.json + * 2026-04-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 3b0da2ecf871..fd39f70ddea0 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetExtension_RollingUpgrade.json + * x-ms-original-file: 2026-04-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 02d83b0981bf..74ebdc64efdb 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MaximumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetRollingUpgrade_StartOSUpgrade_MinimumSet_Gen.json + * 2026-04-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/VirtualMachineScaleSetVMDiagnosticRunCommandsCreateOrUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMDiagnosticRunCommandsCreateOrUpdateSamples.java new file mode 100644 index 000000000000..4f8f3169a1d4 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMDiagnosticRunCommandsCreateOrUpdateSamples.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.fluent.models.VirtualMachineDiagnosticRunCommandInner; +import com.azure.resourcemanager.compute.fluent.models.VirtualMachineRunCommandProperties; +import com.azure.resourcemanager.compute.models.RunCommandInputParameter; +import com.azure.resourcemanager.compute.models.VirtualMachineRunCommandScriptSource; +import java.util.Arrays; + +/** + * Samples for VirtualMachineScaleSetVMDiagnosticRunCommands CreateOrUpdate. + */ +public final class VirtualMachineScaleSetVMDiagnosticRunCommandsCreateOrUpdateSamples { + /* + * x-ms-original-file: + * 2026-04-01/diagnosticRunCommandExamples/VirtualMachineScaleSetVMDiagnosticRunCommand_CreateOrUpdate.json + */ + /** + * Sample code: Create VirtualMachineScaleSet VM diagnostic run command. + * + * @param manager Entry point to ComputeManager. + */ + public static void + createVirtualMachineScaleSetVMDiagnosticRunCommand(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineScaleSetVMDiagnosticRunCommands() + .createOrUpdate("myResourceGroup", "myvmScaleSet", "0", "myRunCommand", + new VirtualMachineDiagnosticRunCommandInner().withLocation("West US") + .withProperties(new VirtualMachineRunCommandProperties() + .withSource(new VirtualMachineRunCommandScriptSource().withCommandId("FleetDiagnosticsWindows")) + .withParameters( + Arrays.asList(new RunCommandInputParameter().withName("param1").withValue("value1"), + new RunCommandInputParameter().withName("param2").withValue("value2"))) + .withAsyncExecution(false) + .withRunAsPassword("fakeTokenPlaceholder") + .withTimeoutInSeconds(3600) + .withTreatFailureAsDeploymentFailure(true)), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMDiagnosticRunCommandsDeleteSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMDiagnosticRunCommandsDeleteSamples.java new file mode 100644 index 000000000000..4e6c6b8620d0 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMDiagnosticRunCommandsDeleteSamples.java @@ -0,0 +1,26 @@ +// 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 VirtualMachineScaleSetVMDiagnosticRunCommands Delete. + */ +public final class VirtualMachineScaleSetVMDiagnosticRunCommandsDeleteSamples { + /* + * x-ms-original-file: + * 2026-04-01/diagnosticRunCommandExamples/VirtualMachineScaleSetVMDiagnosticRunCommand_Delete.json + */ + /** + * Sample code: Delete VirtualMachineScaleSet VM diagnostic run command. + * + * @param manager Entry point to ComputeManager. + */ + public static void + deleteVirtualMachineScaleSetVMDiagnosticRunCommand(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineScaleSetVMDiagnosticRunCommands() + .delete("myResourceGroup", "myvmScaleSet", "0", "myRunCommand", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMDiagnosticRunCommandsDiagnosticListSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMDiagnosticRunCommandsDiagnosticListSamples.java new file mode 100644 index 000000000000..f83a1fe01381 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMDiagnosticRunCommandsDiagnosticListSamples.java @@ -0,0 +1,26 @@ +// 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 VirtualMachineScaleSetVMDiagnosticRunCommands DiagnosticList. + */ +public final class VirtualMachineScaleSetVMDiagnosticRunCommandsDiagnosticListSamples { + /* + * x-ms-original-file: + * 2026-04-01/diagnosticRunCommandExamples/VirtualMachineScaleSetVMDiagnosticRunCommand_List.json + */ + /** + * Sample code: List diagnostic run commands in Vmss instance. + * + * @param manager Entry point to ComputeManager. + */ + public static void + listDiagnosticRunCommandsInVmssInstance(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineScaleSetVMDiagnosticRunCommands() + .diagnosticList("myResourceGroup", "myvmScaleSet", "0", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMDiagnosticRunCommandsGetSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMDiagnosticRunCommandsGetSamples.java new file mode 100644 index 000000000000..fd8e8e86f5cf --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMDiagnosticRunCommandsGetSamples.java @@ -0,0 +1,26 @@ +// 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 VirtualMachineScaleSetVMDiagnosticRunCommands Get. + */ +public final class VirtualMachineScaleSetVMDiagnosticRunCommandsGetSamples { + /* + * x-ms-original-file: 2026-04-01/diagnosticRunCommandExamples/VirtualMachineScaleSetVMDiagnosticRunCommand_Get.json + */ + /** + * Sample code: Get VirtualMachineScaleSet VM diagnostic run commands. + * + * @param manager Entry point to ComputeManager. + */ + public static void + getVirtualMachineScaleSetVMDiagnosticRunCommands(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineScaleSetVMDiagnosticRunCommands() + .getWithResponse("myResourceGroup", "myvmScaleSet", "0", "myRunCommand", null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMDiagnosticRunCommandsUpdateSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMDiagnosticRunCommandsUpdateSamples.java new file mode 100644 index 000000000000..76ea0213139b --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetVMDiagnosticRunCommandsUpdateSamples.java @@ -0,0 +1,32 @@ +// 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.VirtualMachineRunCommandScriptSource; +import com.azure.resourcemanager.compute.models.VirtualMachineRunCommandUpdate; + +/** + * Samples for VirtualMachineScaleSetVMDiagnosticRunCommands Update. + */ +public final class VirtualMachineScaleSetVMDiagnosticRunCommandsUpdateSamples { + /* + * x-ms-original-file: + * 2026-04-01/diagnosticRunCommandExamples/VirtualMachineScaleSetVMDiagnosticRunCommand_Update.json + */ + /** + * Sample code: Update VirtualMachineScaleSet VM diagnostic run command. + * + * @param manager Entry point to ComputeManager. + */ + public static void + updateVirtualMachineScaleSetVMDiagnosticRunCommand(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineScaleSetVMDiagnosticRunCommands() + .update("myResourceGroup", "myvmScaleSet", "0", "myRunCommand", + new VirtualMachineRunCommandUpdate() + .withSource(new VirtualMachineRunCommandScriptSource().withCommandId("FleetDiagnosticsWindows")), + com.azure.core.util.Context.NONE); + } +} 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 33daeeff3d5d..b43063f08600 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Create.json + * x-ms-original-file: 2026-04-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 24e2bd51e6bb..b4168ef59ec0 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Delete.json + * x-ms-original-file: 2026-04-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 1bfb21cf6e06..bc095531bbb1 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Get.json + * x-ms-original-file: 2026-04-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 3f579617b84a..084d7a4404fc 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_List.json + * x-ms-original-file: 2026-04-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 20ab332e2768..02c16cbb3893 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVMExtension_Update.json + * x-ms-original-file: 2026-04-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 7ebf21e0e4e1..59050cee4628 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: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_CreateOrUpdate.json + * x-ms-original-file: 2026-04-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 0a6931827bc1..9cda24727c2d 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: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Delete.json + * x-ms-original-file: 2026-04-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 b5acab0e9a42..ece30e6420d7 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: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Get.json + * x-ms-original-file: 2026-04-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 278d2d8cd0c2..8f6a6954b67c 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: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_List.json + * x-ms-original-file: 2026-04-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 589f896556ce..9f12b92b643e 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: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand_Update.json + * x-ms-original-file: 2026-04-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 98365c7fd372..abb4e5b59982 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ApproveRollingUpgrade.json + * x-ms-original-file: 2026-04-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 9a4b44e25eb3..fd7358714f1b 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_AttachDetachDataDisks_MinimumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_AttachDetachDataDisks_MaximumSet_Gen.json + * 2026-04-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 eb80097a767a..410b974c85a0 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MinimumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Deallocate_MaximumSet_Gen.json + * 2026-04-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 4652cd4e05fa..620d58b45cd9 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Delete_Force.json + * x-ms-original-file: 2026-04-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 30547734d958..c4acf0d630d6 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewAutoPlacedOnDedicatedHostGroup * .json */ /** @@ -27,4 +27,24 @@ public final class VirtualMachineScaleSetVMsGetInstanceViewSamples { .getInstanceViewWithResponse("myResourceGroup", "myVirtualMachineScaleSet", "0", com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewWithCapacityReservationType. + * json + */ + /** + * Sample code: Get instance view of a virtual machine from a VM scale set that is eligible for and consuming an + * open capacity reservation. + * + * @param manager Entry point to ComputeManager. + */ + public static void + getInstanceViewOfAVirtualMachineFromAVMScaleSetThatIsEligibleForAndConsumingAnOpenCapacityReservation( + com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineScaleSetVMs() + .getInstanceViewWithResponse("myResourceGroup", "myVirtualMachineScaleSet", "0", + com.azure.core.util.Context.NONE); + } } 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 a17aabf212f1..7fb5bb642be2 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVMSizeProperties.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVMSizeProperties.json */ /** * Sample code: Get VM scale set VM with VMSizeProperties. @@ -25,38 +25,37 @@ public static void getVMScaleSetVMWithVMSizeProperties(com.azure.resourcemanager /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithResilientVMDeletionStatus.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithCapacityReservation.json */ /** - * Sample code: Get VM scale set VM with ResiliencyView. + * Sample code: Get VM scale set VM with capacity reservation. * * @param manager Entry point to ComputeManager. */ - public static void getVMScaleSetVMWithResiliencyView(com.azure.resourcemanager.compute.ComputeManager manager) { + public static void + getVMScaleSetVMWithCapacityReservation(com.azure.resourcemanager.compute.ComputeManager manager) { manager.serviceClient() .getVirtualMachineScaleSetVMs() - .getWithResponse("myResourceGroup", "{vmss-name}", "1", null, com.azure.core.util.Context.NONE); + .getWithResponse("myResourceGroup", "{vmss-name}", "0", null, com.azure.core.util.Context.NONE); } /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithVirtualMachineResourceId.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithResilientVMDeletionStatus.json */ /** - * Sample code: Get VM scale set Flex VM with VirtualMachineResourceId. + * Sample code: Get VM scale set VM with ResiliencyView. * * @param manager Entry point to ComputeManager. */ - public static void - getVMScaleSetFlexVMWithVirtualMachineResourceId(com.azure.resourcemanager.compute.ComputeManager manager) { + public static void getVMScaleSetVMWithResiliencyView(com.azure.resourcemanager.compute.ComputeManager manager) { manager.serviceClient() .getVirtualMachineScaleSetVMs() - .getWithResponse("myResourceGroup", "{vmss-flex-name}", "{vmss-flex-vm-name}", null, - com.azure.core.util.Context.NONE); + .getWithResponse("myResourceGroup", "{vmss-name}", "1", null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json + * x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithUserData.json */ /** * Sample code: Get VM scale set VM with UserData. @@ -68,19 +67,4 @@ 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 1a314b6d93f1..824672d41aa5 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 @@ -9,23 +9,7 @@ */ public final class VirtualMachineScaleSetVMsListSamples { /* - * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_WithVirtualMachineResourceId.json - */ - /** - * Sample code: List Vmss VMs with VirtualMachineResourceId. - * - * @param manager Entry point to ComputeManager. - */ - public static void - listVmssVMsWithVirtualMachineResourceId(com.azure.resourcemanager.compute.ComputeManager manager) { - manager.serviceClient() - .getVirtualMachineScaleSetVMs() - .list("resourceGroupname", "vmssName", null, null, null, com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MinimumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_List_MinimumSet_Gen. @@ -40,7 +24,7 @@ public final class VirtualMachineScaleSetVMsListSamples { } /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_MaximumSet_Gen.json */ /** * Sample code: VirtualMachineScaleSetVM_List_MaximumSet_Gen. @@ -57,7 +41,7 @@ public final class VirtualMachineScaleSetVMsListSamples { /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_List_WithResiliencyView.json + * 2026-04-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 1645876a5791..8a490b48fe58 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MaximumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PerformMaintenance_MinimumSet_Gen.json + * 2026-04-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 34a78924f16a..11d4ec1b4fea 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MaximumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_PowerOff_MinimumSet_Gen.json + * 2026-04-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 902d25ed63dd..008b683131a0 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MaximumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Redeploy_MinimumSet_Gen.json + * 2026-04-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 430afa21148a..af2e3cbdaa90 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MinimumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_ReimageAll_MaximumSet_Gen.json + * 2026-04-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 af2e505e41c0..168073d64b7f 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MaximumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Reimage_MinimumSet_Gen.json + * 2026-04-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 119627f5991e..2866ad090bdb 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MinimumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Restart_MaximumSet_Gen.json + * 2026-04-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 0d621292609a..bb0cf81cada4 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_RetrieveBootDiagnosticsData.json + * 2026-04-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 2dfe5575e74c..ff1907e48eba 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: 2026-03-01/runCommandExamples/VirtualMachineScaleSetVMRunCommand.json + * x-ms-original-file: 2026-04-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 2529f792b965..49f28ac7977c 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_SimulateEviction.json + * x-ms-original-file: 2026-04-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 3358c64c1f34..2549a597bac9 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Start_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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 d4727b07e733..6559b2596415 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Update_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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 5867a9af62ca..17ffe1e195fe 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ApproveRollingUpgrade.json + * x-ms-original-file: 2026-04-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 a9399ddbe794..019fff801634 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MaximumSet_Gen. + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MaximumSet_Gen. * json */ /** @@ -32,7 +32,7 @@ public static void virtualMachineScaleSetConvertToSinglePlacementGroupMaximumSet /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ConvertToSinglePlacementGroup_MinimumSet_Gen. + * 2026-04-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 5b2e55cc6da0..e7ac55f03d15 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,7 +15,6 @@ 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; @@ -30,36 +29,28 @@ import com.azure.resourcemanager.compute.models.DiskEncryptionSetParameters; import com.azure.resourcemanager.compute.models.DomainNameLabelScopeTypes; import com.azure.resourcemanager.compute.models.EventGridAndResourceGraph; -import com.azure.resourcemanager.compute.models.ExternalHealthPolicy; 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; -import com.azure.resourcemanager.compute.models.LifecycleHookAction; -import com.azure.resourcemanager.compute.models.LifecycleHooksProfile; import com.azure.resourcemanager.compute.models.LinuxConfiguration; import com.azure.resourcemanager.compute.models.MaxInstancePercentPerZonePolicy; import com.azure.resourcemanager.compute.models.NetworkApiVersion; import com.azure.resourcemanager.compute.models.NetworkInterfaceAuxiliaryMode; import com.azure.resourcemanager.compute.models.NetworkInterfaceAuxiliarySku; import com.azure.resourcemanager.compute.models.OSImageNotificationProfile; -import com.azure.resourcemanager.compute.models.OperationRecoverySettings; import com.azure.resourcemanager.compute.models.OrchestrationMode; import com.azure.resourcemanager.compute.models.Placement; import com.azure.resourcemanager.compute.models.Plan; import com.azure.resourcemanager.compute.models.PriorityMixPolicy; +import com.azure.resourcemanager.compute.models.ProcessorMode; import com.azure.resourcemanager.compute.models.ProxyAgentSettings; import com.azure.resourcemanager.compute.models.RebalanceBehavior; import com.azure.resourcemanager.compute.models.RebalanceStrategy; -import com.azure.resourcemanager.compute.models.ReimageRecoveryPolicy; import com.azure.resourcemanager.compute.models.ResiliencyPolicy; import com.azure.resourcemanager.compute.models.ResilientVMCreationPolicy; import com.azure.resourcemanager.compute.models.ResilientVMDeletionPolicy; -import com.azure.resourcemanager.compute.models.RestartRecoveryPolicy; import com.azure.resourcemanager.compute.models.ScaleInPolicy; import com.azure.resourcemanager.compute.models.ScheduledEventsAdditionalPublishingTargets; import com.azure.resourcemanager.compute.models.ScheduledEventsPolicy; @@ -75,9 +66,7 @@ import com.azure.resourcemanager.compute.models.SpotRestorePolicy; import com.azure.resourcemanager.compute.models.SshConfiguration; import com.azure.resourcemanager.compute.models.SshPublicKey; -import com.azure.resourcemanager.compute.models.StartRecoveryPolicy; import com.azure.resourcemanager.compute.models.StorageAccountTypes; -import com.azure.resourcemanager.compute.models.StorageFaultDomainAlignmentType; import com.azure.resourcemanager.compute.models.TerminateNotificationProfile; import com.azure.resourcemanager.compute.models.UefiSettings; import com.azure.resourcemanager.compute.models.UpgradeMode; @@ -86,7 +75,6 @@ import com.azure.resourcemanager.compute.models.UserInitiatedRedeploy; import com.azure.resourcemanager.compute.models.VMDiskSecurityProfile; import com.azure.resourcemanager.compute.models.VMGalleryApplication; -import com.azure.resourcemanager.compute.models.VMScaleSetLifecycleHookEventType; import com.azure.resourcemanager.compute.models.VMSizeProperties; import com.azure.resourcemanager.compute.models.VirtualHardDisk; import com.azure.resourcemanager.compute.models.VirtualMachineEvictionPolicyTypes; @@ -109,7 +97,6 @@ import com.azure.resourcemanager.compute.models.ZoneAllocationPolicy; import com.azure.resourcemanager.compute.models.ZonePlacementPolicyType; import java.io.IOException; -import java.time.Duration; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -120,7 +107,7 @@ public final class VirtualMachineScaleSetsCreateOrUpdateSamples { /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEmptyDataDisksOnEachVm.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEmptyDataDisksOnEachVm.json */ /** * Sample code: Create a scale set with empty data disks on each vm. @@ -172,59 +159,7 @@ public final class VirtualMachineScaleSetsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/ - * VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacementAndFullCachingEnabled.json - */ - /** - * Sample code: Create a scale set with ephemeral os disks using placement property and enableFullCaching set to - * true. - * - * @param manager Entry point to ComputeManager. - */ - public static void createAScaleSetWithEphemeralOsDisksUsingPlacementPropertyAndEnableFullCachingSetToTrue( - com.azure.resourcemanager.compute.ComputeManager manager) { - manager.serviceClient() - .getVirtualMachineScaleSets() - .createOrUpdate("myResourceGroup", "{vmss-name}", - new VirtualMachineScaleSetInner().withLocation("westus") - .withSku(new Sku().withName("Standard_DS1_v2").withTier("Standard").withCapacity(3L)) - .withPlan(new Plan().withName("windows2016") - .withPublisher("microsoft-ads") - .withProduct("windows-data-science-vm")) - .withUpgradePolicy(new UpgradePolicy().withMode(UpgradeMode.MANUAL)) - .withVirtualMachineProfile(new VirtualMachineScaleSetVMProfile() - .withOsProfile(new VirtualMachineScaleSetOSProfile().withComputerNamePrefix("{vmss-name}") - .withAdminUsername("{your-username}") - .withAdminPassword("fakeTokenPlaceholder")) - .withStorageProfile(new VirtualMachineScaleSetStorageProfile() - .withImageReference(new ImageReference().withPublisher("microsoft-ads") - .withOffer("windows-data-science-vm") - .withSku("windows2016") - .withVersion("latest")) - .withOsDisk(new VirtualMachineScaleSetOSDisk() - .withCaching(CachingTypes.READ_ONLY) - .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) - .withDiffDiskSettings(new DiffDiskSettings() - .withOption(DiffDiskOptions.LOCAL) - .withPlacement(DiffDiskPlacement.RESOURCE_DISK) - .withEnableFullCaching(true)) - .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))))) - .withOverprovision(true), - null, null, com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUserData.json + * x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUserData.json */ /** * Sample code: Create a scale set with userData. @@ -267,7 +202,7 @@ public static void createAScaleSetWithUserData(com.azure.resourcemanager.compute } /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromACustomImage.json + * x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromACustomImage.json */ /** * Sample code: Create a scale set from a custom image. @@ -304,7 +239,7 @@ public static void createAScaleSetFromACustomImage(com.azure.resourcemanager.com /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacement. + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacement. * json */ /** @@ -355,7 +290,7 @@ public static void createAScaleSetWithEphemeralOsDisksUsingPlacementProperty( /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithScaleInPolicy.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithScaleInPolicy.json */ /** * Sample code: Create a scale set with scaleInPolicy. @@ -402,7 +337,70 @@ public static void createAScaleSetWithScaleInPolicy(com.azure.resourcemanager.co /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProxyAgentSettings.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotPlusPriorityFlex.json + */ + /** + * Sample code: Create a scale set with SpotPlus priority (Flexible). + * + * @param manager Entry point to ComputeManager. + */ + public static void + createAScaleSetWithSpotPlusPriorityFlexible(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}")) + .withStorageProfile(new VirtualMachineScaleSetStorageProfile() + .withImageReference(new ImageReference().withPublisher("Canonical") + .withOffer("0001-com-ubuntu-server-focal") + .withSku("20_04-lts-gen2") + .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) + .withEnableAcceleratedNetworking(false) + .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}")) + .withPrimary(true) + .withPublicIpAddressConfiguration( + new VirtualMachineScaleSetPublicIpAddressConfiguration() + .withName("{vmss-name}") + .withIdleTimeoutInMinutes(15)) + .withApplicationGatewayBackendAddressPools(Arrays.asList()) + .withLoadBalancerBackendAddressPools(Arrays.asList()))) + .withEnableIpForwarding(true))) + .withNetworkApiVersion(NetworkApiVersion.TWO_ZERO_TWO_ZERO_ONE_ONE_ZERO_ONE)) + .withPriority(VirtualMachinePriorityTypes.SPOT_PLUS) + .withEvictionPolicy(VirtualMachineEvictionPolicyTypes.DEALLOCATE) + .withBillingProfile(new BillingProfile().withMaxPrice(-1.0D))) + .withSinglePlacementGroup(false) + .withPlatformFaultDomainCount(1) + .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)), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProxyAgentSettings.json */ /** * Sample code: Create a scale set with ProxyAgent Settings of enabled and mode. @@ -453,7 +451,7 @@ public static void createAScaleSetWithProxyAgentSettingsOfEnabledAndMode( /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVM.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVM.json */ /** * Sample code: Create a scale set with SecurityType as ConfidentialVM. @@ -504,7 +502,7 @@ public static void createAScaleSetWithProxyAgentSettingsOfEnabledAndMode( /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureApplicationGateway.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureApplicationGateway.json */ /** * Sample code: Create a scale set with an azure application gateway. @@ -551,7 +549,7 @@ public static void createAScaleSetWithProxyAgentSettingsOfEnabledAndMode( /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMCreationPolicy.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMCreationPolicy.json */ /** * Sample code: Create a scale set with Resilient VM Creation enabled. @@ -596,7 +594,7 @@ public static void createAScaleSetWithProxyAgentSettingsOfEnabledAndMode( } /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/ + * x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/ * VirtualMachineScaleSet_Create_CustomImageFromAnUnmanagedGeneralizedOsImage.json */ /** @@ -634,7 +632,7 @@ public static void createACustomImageScaleSetFromAnUnmanagedGeneralizedOsImage( /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithZonalPlatformFaultDomainAlignMode. + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithZonalPlatformFaultDomainAlignMode. * json */ /** @@ -685,7 +683,7 @@ public static void createAScaleSetWithZonalPlatformFaultDomainAlignModeAsAligned /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsTimeBudget.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsTimeBudget.json */ /** * Sample code: Create a scale set with extension time budget. @@ -742,7 +740,7 @@ public static void createAScaleSetWithExtensionTimeBudget(com.azure.resourcemana /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithApplicationProfile.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithApplicationProfile.json */ /** * Sample code: Create a scale set with Application Profile. @@ -797,7 +795,7 @@ public static void createAScaleSetWithApplicationProfile(com.azure.resourcemanag /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskEncryptionSetResource.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskEncryptionSetResource.json */ /** * Sample code: Create a scale set with DiskEncryptionSet resource in os disk and data disk. @@ -845,7 +843,7 @@ public static void createAScaleSetWithDiskEncryptionSetResourceInOsDiskAndDataDi /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPremiumStorage.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPremiumStorage.json */ /** * Sample code: Create a scale set with premium storage. @@ -887,7 +885,7 @@ public static void createAScaleSetWithPremiumStorage(com.azure.resourcemanager.c } /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/ + * x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/ * VirtualMachineScaleSet_Create_FromWithDisableTcpStateTrackingNetworkInterface.json */ /** @@ -939,7 +937,7 @@ public static void createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProper /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithTerminateScheduledEventEnabled.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithTerminateScheduledEventEnabled.json */ /** * Sample code: Create a scale set with terminate scheduled events enabled. @@ -985,62 +983,7 @@ public static void createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProper /* * x-ms-original-file: - * 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. + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExtensionsSuppressFailuresEnabled. * json */ /** @@ -1097,7 +1040,7 @@ public static void createAVMSSWithAnExtensionThatHasSuppressFailuresEnabled( /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPasswordAuthentication.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPasswordAuthentication.json */ /** * Sample code: Create a scale set with password authentication. @@ -1141,7 +1084,7 @@ public static void createAVMSSWithAnExtensionThatHasSuppressFailuresEnabled( /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskControllerType.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiskControllerType.json */ /** * Sample code: Create a scale set with Disk Controller Type. @@ -1196,112 +1139,7 @@ public static void createAScaleSetWithDiskControllerType(com.azure.resourcemanag /* * x-ms-original-file: - * 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. - * - * @param manager Entry point to ComputeManager. - */ - public static void - createAScaleSetWithOperationRecoverySettingsEnabled(com.azure.resourcemanager.compute.ComputeManager manager) { - manager.serviceClient() - .getVirtualMachineScaleSets() - .createOrUpdate("myResourceGroup", "{vmss-name}", - new VirtualMachineScaleSetInner().withLocation("westus") - .withSku(new Sku().withName("Standard_D1_v2").withTier("Standard").withCapacity(3L)) - .withUpgradePolicy(new UpgradePolicy().withMode(UpgradeMode.MANUAL)) - .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))))) - .withOverprovision(false) - .withResiliencyPolicy( - new ResiliencyPolicy().withOperationRecoverySettings(new OperationRecoverySettings() - .withRestartRecoveryPolicy(new RestartRecoveryPolicy().withEnabled(true)) - .withStartRecoveryPolicy(new StartRecoveryPolicy().withEnabled(true)) - .withReimageRecoveryPolicy(new ReimageRecoveryPolicy().withEnabled(true)))), - null, null, com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromAGeneralizedSharedImage.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromAGeneralizedSharedImage.json */ /** * Sample code: Create a scale set from a generalized shared image. @@ -1338,7 +1176,7 @@ public static void createAScaleSetWithDiskControllerType(com.azure.resourcemanag } /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithMaxZoneCount.json + * x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithMaxZoneCount.json */ /** * Sample code: Create a zones-auto scale set with Max Zone Count. @@ -1385,7 +1223,7 @@ public static void createAScaleSetWithDiskControllerType(com.azure.resourcemanag /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithHighSpeedInterconnectPlacement.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithHighSpeedInterconnectPlacement.json */ /** * Sample code: Create a virtual machine scale set with high-speed interconnect placement. @@ -1439,7 +1277,7 @@ public static void createAVirtualMachineScaleSetWithHighSpeedInterconnectPlaceme /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOSImageScheduledEventEnabled.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOSImageScheduledEventEnabled.json */ /** * Sample code: Create a scale set with OS image scheduled events enabled. @@ -1485,7 +1323,7 @@ public static void createAVirtualMachineScaleSetWithHighSpeedInterconnectPlaceme /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithFpgaNetworkInterface.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithFpgaNetworkInterface.json */ /** * Sample code: Create a scale set with Fpga Network Interfaces. @@ -1533,7 +1371,53 @@ public static void createAVirtualMachineScaleSetWithHighSpeedInterconnectPlaceme } /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSkuProfile.json + * x-ms-original-file: + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithOpportunisticProcessorMode.json + */ + /** + * Sample code: Create a VMSS with Opportunistic Processor Mode. + * + * @param manager Entry point to ComputeManager. + */ + public static void + createAVMSSWithOpportunisticProcessorMode(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineScaleSets() + .createOrUpdate("myResourceGroup", "{vmss-name}", + new VirtualMachineScaleSetInner().withLocation("westus") + .withSku(new Sku().withName("Standard_D2s_v5").withTier("Standard").withCapacity(3L)) + .withUpgradePolicy(new UpgradePolicy().withMode(UpgradeMode.MANUAL)) + .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("2019-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)))) + .withHardwareProfile( + new VirtualMachineScaleSetHardwareProfile().withProcessorMode(ProcessorMode.OPPORTUNISTIC))) + .withOverprovision(true), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSkuProfile.json */ /** * Sample code: Create a scale set with sku profile. @@ -1585,7 +1469,7 @@ public static void createAScaleSetWithSkuProfile(com.azure.resourcemanager.compu } /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/ + * x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/ * VirtualMachineScaleSet_CreateA_WithDiffOsDiskUsingDiffDiskPlacementAsNvmeDisk.json */ /** @@ -1636,7 +1520,7 @@ public static void createAScaleSetWithEphemeralOsDiskProvisioningInNvmeDiskUsing /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticZoneRebalancingPolicy.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticZoneRebalancingPolicy.json */ /** * Sample code: Create a scale set with Automatic Zone Rebalancing enabled. @@ -1684,7 +1568,7 @@ public static void createAScaleSetWithEphemeralOsDiskProvisioningInNvmeDiskUsing /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithServiceArtifactReference.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithServiceArtifactReference.json */ /** * Sample code: Create a scale set with Service Artifact Reference. @@ -1727,7 +1611,7 @@ public static void createAScaleSetWithEphemeralOsDiskProvisioningInNvmeDiskUsing /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEncryptionAtHost.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithEncryptionAtHost.json */ /** * Sample code: Create a scale set with Host Encryption using encryptionAtHost property. @@ -1775,54 +1659,7 @@ public static void createAScaleSetWithHostEncryptionUsingEncryptionAtHostPropert /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithLifecycleHooksProfile.json - */ - /** - * Sample code: Create a virtual machine scale set with LifecycleHooksProfile. - * - * @param manager Entry point to ComputeManager. - */ - public static void createAVirtualMachineScaleSetWithLifecycleHooksProfile( - com.azure.resourcemanager.compute.ComputeManager manager) { - manager.serviceClient() - .getVirtualMachineScaleSets() - .createOrUpdate("myResourceGroup", "{vmss-name}", - new VirtualMachineScaleSetInner().withLocation("westus") - .withSku(new Sku().withName("Standard_D1_v2").withTier("Standard").withCapacity(4L)) - .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))))) - .withLifecycleHooksProfile( - new LifecycleHooksProfile().withLifecycleHooks(Arrays.asList(new LifecycleHook() - .withType(VMScaleSetLifecycleHookEventType.UPGRADE_AUTO_OSROLLING_BATCH_STARTING) - .withWaitDuration(Duration.parse("PT20M")) - .withDefaultAction(LifecycleHookAction.APPROVE)))), - null, null, com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureLoadBalancer.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAzureLoadBalancer.json */ /** * Sample code: Create a scale set with an azure load balancer. @@ -1875,7 +1712,7 @@ public static void createAVirtualMachineScaleSetWithLifecycleHooksProfile( /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProtectedSettingsFromKeyVault.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithProtectedSettingsFromKeyVault.json */ /** * Sample code: Create a VMSS with an extension with protectedSettingsFromKeyVault. @@ -1935,7 +1772,7 @@ public static void createAVMSSWithAnExtensionWithProtectedSettingsFromKeyVault( /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithManagedBootDiagnostics.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithManagedBootDiagnostics.json */ /** * Sample code: Create a scale set with managed boot diagnostics. @@ -1981,7 +1818,7 @@ public static void createAVMSSWithAnExtensionWithProtectedSettingsFromKeyVault( /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAMarketplaceImagePlan.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAMarketplaceImagePlan.json */ /** * Sample code: Create a scale set with a marketplace image plan. @@ -2027,7 +1864,7 @@ public static void createAVMSSWithAnExtensionWithProtectedSettingsFromKeyVault( } /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiffOsDisk.json + * x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDiffOsDisk.json */ /** * Sample code: Create a scale set with ephemeral os disks. @@ -2074,61 +1911,7 @@ public static void createAScaleSetWithEphemeralOsDisks(com.azure.resourcemanager /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithExternalHealthPolicy.json - */ - /** - * Sample code: Create a scale set with external health policy enabled. - * - * @param manager Entry point to ComputeManager. - */ - public static void - createAScaleSetWithExternalHealthPolicyEnabled(com.azure.resourcemanager.compute.ComputeManager manager) { - manager.serviceClient() - .getVirtualMachineScaleSets() - .createOrUpdate("myResourceGroup", "{vmss-name}", - new VirtualMachineScaleSetInner().withLocation("westus") - .withSku(new Sku().withName("Standard_D1_v2").withTier("Standard").withCapacity(3L)) - .withUpgradePolicy(new UpgradePolicy().withMode(UpgradeMode.MANUAL)) - .withScheduledEventsPolicy(new ScheduledEventsPolicy() - .withUserInitiatedRedeploy(new UserInitiatedRedeploy().withAutomaticallyApprove(true)) - .withUserInitiatedReboot(new UserInitiatedReboot().withAutomaticallyApprove(true)) - .withScheduledEventsAdditionalPublishingTargets(new ScheduledEventsAdditionalPublishingTargets() - .withEventGridAndResourceGraph(new EventGridAndResourceGraph().withEnable(true) - .withScheduledEventsApiVersion("2020-07-01"))) - .withAllInstancesDown(new AllInstancesDown().withAutomaticallyApprove(true))) - .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))))) - .withOverprovision(true) - .withExternalHealthPolicy(new ExternalHealthPolicy().withEnabled(true) - .withExpiryDuration(Duration.parse("PT10M")) - .withGracePeriod(Duration.parse("PT4H"))), - null, null, com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMsInDifferentZones.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMsInDifferentZones.json */ /** * Sample code: Create a scale set with virtual machines in different zones. @@ -2182,7 +1965,7 @@ public static void createAScaleSetWithEphemeralOsDisks(com.azure.resourcemanager /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithCapacityReservation.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithCapacityReservation.json */ /** * Sample code: Create or update a scale set with capacity reservation. @@ -2229,7 +2012,7 @@ public static void createAScaleSetWithEphemeralOsDisks(com.azure.resourcemanager /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMDeletionPolicy.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithResilientVMDeletionPolicy.json */ /** * Sample code: Create a scale set with Resilient VM Deletion enabled. @@ -2275,7 +2058,7 @@ public static void createAScaleSetWithEphemeralOsDisks(com.azure.resourcemanager /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSshAuthentication.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSshAuthentication.json */ /** * Sample code: Create a scale set with ssh authentication. @@ -2317,7 +2100,7 @@ public static void createAScaleSetWithSshAuthentication(com.azure.resourcemanage /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSkuProfile_Prioritized.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSkuProfile_Prioritized.json */ /** * Sample code: Create a scale set with sku profile and prioritized allocation strategy. @@ -2371,58 +2154,7 @@ public static void createAScaleSetWithSkuProfileAndPrioritizedAllocationStrategy /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithStorageFaultDomainAlignment.json - */ - /** - * Sample code: Create a scale set containing disks with storage fault domain alignment. - * - * @param manager Entry point to ComputeManager. - */ - public static void createAScaleSetContainingDisksWithStorageFaultDomainAlignment( - com.azure.resourcemanager.compute.ComputeManager manager) { - manager.serviceClient() - .getVirtualMachineScaleSets() - .createOrUpdate("myResourceGroup", "{vmss-name}", - new VirtualMachineScaleSetInner().withLocation("westus") - .withSku(new Sku().withName("Standard_D1_v2").withTier("Standard").withCapacity(3L)) - .withUpgradePolicy(new UpgradePolicy().withMode(UpgradeMode.MANUAL)) - .withScheduledEventsPolicy(new ScheduledEventsPolicy() - .withUserInitiatedRedeploy(new UserInitiatedRedeploy().withAutomaticallyApprove(true)) - .withUserInitiatedReboot(new UserInitiatedReboot().withAutomaticallyApprove(true)) - .withScheduledEventsAdditionalPublishingTargets(new ScheduledEventsAdditionalPublishingTargets() - .withEventGridAndResourceGraph(new EventGridAndResourceGraph().withEnable(true)))) - .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) - .withStorageFaultDomainAlignment(StorageFaultDomainAlignmentType.BEST_EFFORT_ALIGNED) - .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))))) - .withOverprovision(true) - .withZonalPlatformFaultDomainAlignMode(ZonalPlatformFaultDomainAlignMode.ALIGNED), - null, null, com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMSizeProperties.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithVMSizeProperties.json */ /** * Sample code: Create a scale set with vm size properties. @@ -2468,7 +2200,7 @@ public static void createAScaleSetWithVmSizeProperties(com.azure.resourcemanager /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithNetworkInterfaceWithDnsSettings. + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromWithNetworkInterfaceWithDnsSettings. * json */ /** @@ -2531,7 +2263,7 @@ public static void createAScaleSetWithNetworkInterfacesWithPublicIpAddressDnsSet /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_PlatformImageWithUnmanagedOsDisks.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_PlatformImageWithUnmanagedOsDisks.json */ /** * Sample code: Create a platform-image scale set with unmanaged os disks. @@ -2580,7 +2312,7 @@ public static void createAScaleSetWithNetworkInterfacesWithPublicIpAddressDnsSet } /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUefiSettings.json + * x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithUefiSettings.json */ /** * Sample code: Create a scale set with Uefi Settings of secureBoot and vTPM. @@ -2627,7 +2359,7 @@ public static void createAScaleSetWithNetworkInterfacesWithPublicIpAddressDnsSet /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPriorityMixPolicy.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPriorityMixPolicy.json */ /** * Sample code: Create a scale set with priority mix policy. @@ -2681,7 +2413,7 @@ public static void createAScaleSetWithPriorityMixPolicy(com.azure.resourcemanage /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityPostureReference.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSecurityPostureReference.json */ /** * Sample code: Create a scale set with Security Posture Reference. @@ -2724,7 +2456,54 @@ public static void createAScaleSetWithPriorityMixPolicy(com.azure.resourcemanage /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticRepairs.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotPlusPriority.json + */ + /** + * Sample code: Create a scale set with SpotPlus priority (Uniform). + * + * @param manager Entry point to ComputeManager. + */ + public static void + createAScaleSetWithSpotPlusPriorityUniform(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineScaleSets() + .createOrUpdate("myResourceGroup", "{vmss-name}", + new VirtualMachineScaleSetInner().withLocation("westus") + .withSku(new Sku().withName("Standard_D2s_v5").withTier("Standard").withCapacity(2L)) + .withUpgradePolicy(new UpgradePolicy().withMode(UpgradeMode.MANUAL)) + .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_PLUS) + .withEvictionPolicy(VirtualMachineEvictionPolicyTypes.DEALLOCATE) + .withBillingProfile(new BillingProfile().withMaxPrice(-1.0D))) + .withOverprovision(true), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithAutomaticRepairs.json */ /** * Sample code: Create a scale set with automatic repairs enabled. @@ -2775,7 +2554,7 @@ public static void createAScaleSetWithPriorityMixPolicy(com.azure.resourcemanage } /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPlacement.json + * x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithPlacement.json */ /** * Sample code: Create a scale set with placement policy 'Auto'. @@ -2821,7 +2600,7 @@ public static void createAScaleSetWithPriorityMixPolicy(com.azure.resourcemanage /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotRestorePolicy.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithSpotRestorePolicy.json */ /** * Sample code: Create a scale set with spot restore policy. @@ -2867,7 +2646,7 @@ public static void createAScaleSetWithSpotRestorePolicy(com.azure.resourcemanage } /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/ + * x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/ * VirtualMachineScaleSet_Create_WithSecurityTypeConfidentialVMWithNonPersistedTPM.json */ /** @@ -2919,7 +2698,53 @@ public static void createAScaleSetWithSecurityTypeAsConfidentialVMAndNonPersiste /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithMaxInstancePercentPerZonePolicy.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithDeterministicProcessorMode.json + */ + /** + * Sample code: Create a VMSS with Deterministic Processor Mode. + * + * @param manager Entry point to ComputeManager. + */ + public static void + createAVMSSWithDeterministicProcessorMode(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineScaleSets() + .createOrUpdate("myResourceGroup", "{vmss-name}", + new VirtualMachineScaleSetInner().withLocation("westus") + .withSku(new Sku().withName("Standard_E2pds_v8").withTier("Standard").withCapacity(3L)) + .withUpgradePolicy(new UpgradePolicy().withMode(UpgradeMode.MANUAL)) + .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("2019-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)))) + .withHardwareProfile( + new VirtualMachineScaleSetHardwareProfile().withProcessorMode(ProcessorMode.DETERMINISTIC))) + .withOverprovision(true), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithMaxInstancePercentPerZonePolicy.json */ /** * Sample code: Create a scale set with Max Instance Percent Per Zone Policy enabled. @@ -2966,7 +2791,7 @@ public static void createAScaleSetWithMaxInstancePercentPerZonePolicyEnabled( /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithBootDiagnostics.json + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_WithBootDiagnostics.json */ /** * Sample code: Create a scale set with boot diagnostics. @@ -3012,7 +2837,7 @@ public static void createAScaleSetWithBootDiagnostics(com.azure.resourcemanager. /* * x-ms-original-file: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Create_FromASpecializedSharedImage.json + * 2026-04-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 cee4c51f4dda..e0d6e4be0e4d 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MaximumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Deallocate_MinimumSet_Gen.json + * 2026-04-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 84574d25fd28..e637881a121f 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MaximumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_DeleteInstances_MinimumSet_Gen.json + * 2026-04-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 235bb2e05a89..0ec0f064d57c 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Delete_Force.json + * x-ms-original-file: 2026-04-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 4d52af126300..0d58ffd6508b 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: 2026-03-01/virtualMachineScaleSetExamples/ + * x-ms-original-file: 2026-04-01/virtualMachineScaleSetExamples/ * VirtualMachineScaleSet_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen.json */ /** @@ -26,7 +26,7 @@ public static void virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdat } /* - * x-ms-original-file: 2026-03-01/virtualMachineScaleSetExamples/ + * x-ms-original-file: 2026-04-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 d92ce3585c4c..f80e53fb1b59 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_AutoPlacedOnDedicatedHostGroup.json + * 2026-04-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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithUserData.json + * x-ms-original-file: 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Get_WithDiskControllerType.json + * 2026-04-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 6fd4c557752d..8c7c6240448d 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MaximumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetInstanceView_MinimumSet_Gen.json + * 2026-04-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 e08ac7e580d1..195e8b9a1b76 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MinimumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_GetOSUpgradeHistory_MaximumSet_Gen.json + * 2026-04-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 8d71ee90df39..19b98a9c675a 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListBySubscription_ByLocation.json + * 2026-04-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 98454fb539a4..8ae40f6daf6a 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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 a23a08a1db33..4187fac3495b 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListAll_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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 ccb130c1732e..821ac2e583b4 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ListSkus_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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/VirtualMachineScaleSetsMigrateVMAvailabilityZoneSamples.java b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsMigrateVMAvailabilityZoneSamples.java new file mode 100644 index 000000000000..3aea58ead188 --- /dev/null +++ b/sdk/compute/azure-resourcemanager-compute/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsMigrateVMAvailabilityZoneSamples.java @@ -0,0 +1,31 @@ +// 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.MigrateVMAvailabilityZoneInput; +import java.util.Arrays; + +/** + * Samples for VirtualMachineScaleSets MigrateVMAvailabilityZone. + */ +public final class VirtualMachineScaleSetsMigrateVMAvailabilityZoneSamples { + /* + * x-ms-original-file: + * 2026-04-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_MigrateVMAvailabilityZone.json + */ + /** + * Sample code: VirtualMachineScaleSet Migrate VM Availability Zone. + * + * @param manager Entry point to ComputeManager. + */ + public static void + virtualMachineScaleSetMigrateVMAvailabilityZone(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachineScaleSets() + .migrateVMAvailabilityZone("myResourceGroup", "{vmss-name}", + new MigrateVMAvailabilityZoneInput().withInstanceIds(Arrays.asList("0", "1", "2")).withTargetZone("2"), + com.azure.core.util.Context.NONE); + } +} 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 47f9614ff497..985ee9e6bfbc 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MinimumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PerformMaintenance_MaximumSet_Gen.json + * 2026-04-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 77586f4f11d6..a28d88a7f41d 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_PowerOff_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 8cb5264d19ca..81e4d3ce2fa1 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reapply_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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 9ae44371f87e..debb1249a052 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Redeploy_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 73680138e48c..2c27d18b3b0d 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MaximumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ReimageAll_MinimumSet_Gen.json + * 2026-04-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 7ac878c3d4d2..088cd82a2bee 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Reimage_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 56e602cfa40a..e59d4544dcfd 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Restart_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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 f01f15a8eec8..ed4d1d318026 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_ScaleOut.json + * x-ms-original-file: 2026-04-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 3d38ba361285..efa1f00cd4eb 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MinimumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_SetOrchestrationServiceState_MaximumSet_Gen.json + * 2026-04-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 3ee90de67a56..baaec6bbc417 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Start_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 3170ebe1fa82..edecf65cb9fd 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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MinimumSet_Gen.json + * 2026-04-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: - * 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_UpdateInstances_MaximumSet_Gen.json + * 2026-04-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 cdbb9da69802..954ecd07fcef 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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineScaleSetExamples/VirtualMachineScaleSet_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 f719126a344b..f38435e793ba 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: 2026-03-01/computeRPCommonExamples/VirtualMachineSizes_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/computeRPCommonExamples/VirtualMachineSizes_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 e26c7e73a3d7..67e320f8bf52 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: 2026-03-01/virtualMachineExamples/VirtualMachine_AssessPatches.json + * x-ms-original-file: 2026-04-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 99dd17066e95..9b9e88c2aa37 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: 2026-03-01/virtualMachineExamples/VirtualMachine_AttachDetachDataDisks_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachine_AttachDetachDataDisks_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 4a74eb8506c4..bd81ddeff082 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: 2026-03-01/virtualMachineExamples/VirtualMachine_Capture_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachine_Capture_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 c79b1ad1a0ee..10a668dae35a 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: 2026-03-01/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachine_ConvertToManagedDisks_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 5ba51481c6e5..0c177b995846 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 @@ -7,9 +7,11 @@ import com.azure.core.management.SubResource; import com.azure.resourcemanager.compute.fluent.models.VirtualMachineInner; import com.azure.resourcemanager.compute.models.AdditionalCapabilities; +import com.azure.resourcemanager.compute.models.AdditionalDiskProperties; import com.azure.resourcemanager.compute.models.AllInstancesDown; import com.azure.resourcemanager.compute.models.ApiEntityReference; import com.azure.resourcemanager.compute.models.ApplicationProfile; +import com.azure.resourcemanager.compute.models.BillingProfile; import com.azure.resourcemanager.compute.models.BootDiagnostics; import com.azure.resourcemanager.compute.models.CachingTypes; import com.azure.resourcemanager.compute.models.CapacityReservationProfile; @@ -19,6 +21,7 @@ import com.azure.resourcemanager.compute.models.DiffDiskOptions; import com.azure.resourcemanager.compute.models.DiffDiskPlacement; import com.azure.resourcemanager.compute.models.DiffDiskSettings; +import com.azure.resourcemanager.compute.models.DiskApiVersion; import com.azure.resourcemanager.compute.models.DiskControllerTypes; import com.azure.resourcemanager.compute.models.DiskCreateOptionTypes; import com.azure.resourcemanager.compute.models.DiskEncryptionSetParameters; @@ -28,8 +31,6 @@ 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; @@ -48,12 +49,12 @@ import com.azure.resourcemanager.compute.models.PatchSettings; import com.azure.resourcemanager.compute.models.Placement; import com.azure.resourcemanager.compute.models.Plan; +import com.azure.resourcemanager.compute.models.ProcessorMode; import com.azure.resourcemanager.compute.models.ProxyAgentSettings; import com.azure.resourcemanager.compute.models.PublicIpAddressSku; import com.azure.resourcemanager.compute.models.PublicIpAddressSkuName; import com.azure.resourcemanager.compute.models.PublicIpAddressSkuTier; import com.azure.resourcemanager.compute.models.PublicIpAllocationMethod; -import com.azure.resourcemanager.compute.models.ResiliencyProfile; import com.azure.resourcemanager.compute.models.ResourceIdentityType; import com.azure.resourcemanager.compute.models.ScheduledEventsAdditionalPublishingTargets; import com.azure.resourcemanager.compute.models.ScheduledEventsPolicy; @@ -73,10 +74,14 @@ import com.azure.resourcemanager.compute.models.VMGalleryApplication; import com.azure.resourcemanager.compute.models.VMSizeProperties; import com.azure.resourcemanager.compute.models.VirtualHardDisk; +import com.azure.resourcemanager.compute.models.VirtualMachineDiskNetworkAccessPolicy; +import com.azure.resourcemanager.compute.models.VirtualMachineDiskProperties; +import com.azure.resourcemanager.compute.models.VirtualMachineEvictionPolicyTypes; import com.azure.resourcemanager.compute.models.VirtualMachineIdentity; import com.azure.resourcemanager.compute.models.VirtualMachineIdentityUserAssignedIdentities; import com.azure.resourcemanager.compute.models.VirtualMachineNetworkInterfaceConfiguration; import com.azure.resourcemanager.compute.models.VirtualMachineNetworkInterfaceIpConfiguration; +import com.azure.resourcemanager.compute.models.VirtualMachinePriorityTypes; import com.azure.resourcemanager.compute.models.VirtualMachinePublicIpAddressConfiguration; import com.azure.resourcemanager.compute.models.VirtualMachinePublicIpAddressDnsSettingsConfiguration; import com.azure.resourcemanager.compute.models.VirtualMachineSizeTypes; @@ -85,7 +90,6 @@ import com.azure.resourcemanager.compute.models.WindowsVMGuestPatchAutomaticByPlatformRebootSetting; import com.azure.resourcemanager.compute.models.WindowsVMGuestPatchAutomaticByPlatformSettings; import com.azure.resourcemanager.compute.models.WindowsVMGuestPatchMode; -import com.azure.resourcemanager.compute.models.ZoneMovement; import com.azure.resourcemanager.compute.models.ZonePlacementPolicyType; import java.util.Arrays; import java.util.HashMap; @@ -97,7 +101,7 @@ public final class VirtualMachinesCreateOrUpdateSamples { /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsCacheDisk.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsCacheDisk.json */ /** * Sample code: Create a vm with ephemeral os disk provisioning in Cache disk using placement property. @@ -140,7 +144,7 @@ public static void createAVmWithEphemeralOsDiskProvisioningInCacheDiskUsingPlace /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByOS.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByOS.json */ /** * Sample code: Create a Windows vm with a patch setting patchMode of AutomaticByOS. @@ -183,7 +187,7 @@ public static void createAWindowsVmWithAPatchSettingPatchModeOfAutomaticByOS( /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModesOfAutomaticByPlatform.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModesOfAutomaticByPlatform.json */ /** * Sample code: Create a Windows vm with patch settings patchMode and assessmentMode set to AutomaticByPlatform. @@ -224,7 +228,7 @@ public static void createAWindowsVmWithPatchSettingsPatchModeAndAssessmentModeSe } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithEncryptionIdentity.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithEncryptionIdentity.json */ /** * Sample code: Create a VM with encryption identity. @@ -265,7 +269,7 @@ public static void createAVMWithEncryptionIdentity(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservation.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservation.json */ /** * Sample code: Create or update a VM with capacity reservation. @@ -308,7 +312,7 @@ public static void createAVMWithEncryptionIdentity(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithPremiumStorage.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithPremiumStorage.json */ /** * Sample code: Create a vm with premium storage. @@ -345,7 +349,7 @@ public static void createAVmWithPremiumStorage(com.azure.resourcemanager.compute /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingAssessmentModeOfImageDefault.json */ /** * Sample code: Create a Linux vm with a patch setting assessmentMode of ImageDefault. @@ -387,7 +391,7 @@ public static void createALinuxVmWithAPatchSettingAssessmentModeOfImageDefault( /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_CustomImageVmFromAnUnmanagedGeneralizedOsImage.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_CustomImageVmFromAnUnmanagedGeneralizedOsImage.json */ /** * Sample code: Create a custom-image vm from an unmanaged generalized os image. @@ -420,7 +424,58 @@ public static void createACustomImageVmFromAnUnmanagedGeneralizedOsImage( } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithEncryptionAtHost.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithAdditionalDiskProperties.json + */ + /** + * Sample code: Create a vm with additional disk properties (network access policy and tier). + * + * @param manager Entry point to ComputeManager. + */ + public static void createAVmWithAdditionalDiskPropertiesNetworkAccessPolicyAndTier( + com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachines() + .createOrUpdate("myResourceGroup", "myVM", new VirtualMachineInner().withLocation("westus") + .withHardwareProfile(new HardwareProfile().withVmSize(VirtualMachineSizeTypes.STANDARD_D4S_V3)) + .withStorageProfile(new StorageProfile() + .withImageReference(new ImageReference().withPublisher("MicrosoftWindowsServer") + .withOffer("WindowsServer") + .withSku("2022-datacenter-azure-edition") + .withVersion("latest")) + .withOsDisk(new OSDisk().withName("myVMosdisk") + .withCaching(CachingTypes.READ_WRITE) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withManagedDisk(new ManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS) + .withAdditionalDiskProperties(new AdditionalDiskProperties() + .withManagedDiskProperties(new VirtualMachineDiskProperties() + .withNetworkAccessPolicy(VirtualMachineDiskNetworkAccessPolicy.ALLOW_PRIVATE) + .withDiskAccessId( + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess"))))) + .withDataDisks(Arrays.asList(new DataDisk().withLun(0) + .withName("myDataDisk") + .withCreateOption(DiskCreateOptionTypes.EMPTY) + .withDiskSizeGB(1024) + .withManagedDisk(new ManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS) + .withAdditionalDiskProperties(new AdditionalDiskProperties() + .withManagedDiskProperties(new VirtualMachineDiskProperties().withTier("P30") + .withNetworkAccessPolicy(VirtualMachineDiskNetworkAccessPolicy.ALLOW_PRIVATE) + .withDiskAccessId( + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/myDiskAccess")))))) + .withDiskApiVersion(DiskApiVersion.TWO_ZERO_TWO_SIX_ZERO_THREE_ZERO_TWO)) + .withOsProfile(new OSProfile().withComputerName("myVM") + .withAdminUsername("{your-username}") + .withAdminPassword("fakeTokenPlaceholder")) + .withNetworkProfile( + new NetworkProfile().withNetworkInterfaces(Arrays.asList(new NetworkInterfaceReference().withId( + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}") + .withPrimary(true)))), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithEncryptionAtHost.json */ /** * Sample code: Create a vm with Host Encryption using encryptionAtHost property. @@ -461,7 +516,7 @@ public static void createAVmWithHostEncryptionUsingEncryptionAtHostProperty( } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_InAnAvailabilitySet.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_InAnAvailabilitySet.json */ /** * Sample code: Create a vm in an availability set. @@ -500,7 +555,7 @@ public static void createAVmInAnAvailabilitySet(com.azure.resourcemanager.comput /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsNvmeDisk.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsNvmeDisk.json */ /** * Sample code: Create a vm with ephemeral os disk provisioning in Nvme disk using placement property. @@ -543,7 +598,7 @@ public static void createAVmWithEphemeralOsDiskProvisioningInNvmeDiskUsingPlacem /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfiguration.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfiguration.json */ /** * Sample code: Create a VM with network interface configuration. @@ -592,7 +647,7 @@ public static void createAVmWithEphemeralOsDiskProvisioningInNvmeDiskUsingPlacem } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_FromASpecializedSharedImage.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_FromASpecializedSharedImage.json */ /** * Sample code: Create a vm from a specialized shared image. @@ -619,7 +674,7 @@ public static void createAVmFromASpecializedSharedImage(com.azure.resourcemanage } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithPasswordAuthentication.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithPasswordAuthentication.json */ /** * Sample code: Create a vm with password authentication. @@ -655,7 +710,47 @@ public static void createAVmWithPasswordAuthentication(com.azure.resourcemanager } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithScheduledEventsProfile.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithSpotPlusPriority.json + */ + /** + * Sample code: Create a vm with SpotPlus priority. + * + * @param manager Entry point to ComputeManager. + */ + public static void createAVmWithSpotPlusPriority(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachines() + .createOrUpdate("myResourceGroup", "myVM", + new VirtualMachineInner().withLocation("westus") + .withHardwareProfile( + new HardwareProfile().withVmSize(VirtualMachineSizeTypes.fromString("Standard_D2s_v5"))) + .withStorageProfile( + new StorageProfile() + .withImageReference(new ImageReference().withPublisher("MicrosoftWindowsServer") + .withOffer("WindowsServer") + .withSku("2016-Datacenter") + .withVersion("latest")) + .withOsDisk(new OSDisk().withName("myVMosdisk") + .withCaching(CachingTypes.READ_WRITE) + .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) + .withManagedDisk(new ManagedDiskParameters() + .withStorageAccountType(StorageAccountTypes.STANDARD_LRS)))) + .withOsProfile(new OSProfile() + .withComputerName("myVM") + .withAdminUsername("{your-username}") + .withAdminPassword("fakeTokenPlaceholder")) + .withNetworkProfile( + new NetworkProfile().withNetworkInterfaces(Arrays.asList(new NetworkInterfaceReference().withId( + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}") + .withPrimary(true)))) + .withPriority(VirtualMachinePriorityTypes.SPOT_PLUS) + .withEvictionPolicy(VirtualMachineEvictionPolicyTypes.DEALLOCATE) + .withBillingProfile(new BillingProfile().withMaxPrice(-1.0D)), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithScheduledEventsProfile.json */ /** * Sample code: Create a vm with Scheduled Events Profile. @@ -707,7 +802,7 @@ public static void createAVmWithScheduledEventsProfile(com.azure.resourcemanager /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsResourceDisk.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskUsingDiffDiskPlacementAsResourceDisk.json */ /** * Sample code: Create a vm with ephemeral os disk provisioning in Resource disk using placement property. @@ -749,7 +844,7 @@ public static void createAVmWithEphemeralOsDiskProvisioningInResourceDiskUsingPl } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDisk.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDisk.json */ /** * Sample code: Create a vm with ephemeral os disk. @@ -788,9 +883,48 @@ public static void createAVmWithEphemeralOsDisk(com.azure.resourcemanager.comput null, null, com.azure.core.util.Context.NONE); } + /* + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithOpportunisticProcessorMode.json + */ + /** + * Sample code: Create a VM with Opportunistic Processor Mode. + * + * @param manager Entry point to ComputeManager. + */ + public static void + createAVMWithOpportunisticProcessorMode(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachines() + .createOrUpdate("myResourceGroup", "myVM", + new VirtualMachineInner().withLocation("westus") + .withHardwareProfile( + new HardwareProfile().withVmSize(VirtualMachineSizeTypes.fromString("Standard_D2s_v5")) + .withProcessorMode(ProcessorMode.OPPORTUNISTIC)) + .withStorageProfile( + new StorageProfile() + .withImageReference(new ImageReference().withPublisher("MicrosoftWindowsServer") + .withOffer("WindowsServer") + .withSku("2019-Datacenter") + .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")) + .withNetworkProfile( + new NetworkProfile().withNetworkInterfaces(Arrays.asList(new NetworkInterfaceReference().withId( + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}") + .withPrimary(true)))), + null, null, com.azure.core.util.Context.NONE); + } + /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithCustomerManagedKeys. + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithCustomerManagedKeys. * json */ /** @@ -833,7 +967,7 @@ public static void createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKey } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithDiskEncryptionSetResource.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithDiskEncryptionSetResource.json */ /** * Sample code: Create a vm with DiskEncryptionSet resource id in the os disk and data disk. @@ -883,7 +1017,7 @@ public static void createAVmWithDiskEncryptionSetResourceIdInTheOsDiskAndDataDis } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithDiskControllerType.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithDiskControllerType.json */ /** * Sample code: Create a VM with Disk Controller Type. @@ -931,7 +1065,7 @@ public static void createAVMWithDiskControllerType(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_FromASharedGalleryImage.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_FromASharedGalleryImage.json */ /** * Sample code: Create a VM from a shared gallery image. @@ -961,57 +1095,9 @@ 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: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_PlatformImageVmWithUnmanagedOsAndDataDisks.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_PlatformImageVmWithUnmanagedOsAndDataDisks.json */ /** * Sample code: Create a platform-image vm with unmanaged os and data disks. @@ -1055,7 +1141,7 @@ public static void createAVMFromASharedGalleryImage(com.azure.resourcemanager.co } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithVMSizeProperties.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithVMSizeProperties.json */ /** * Sample code: Create a VM with VM Size Properties. @@ -1097,7 +1183,7 @@ public static void createAVMWithVMSizeProperties(com.azure.resourcemanager.compu /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModesOfAutomaticByPlatform.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModesOfAutomaticByPlatform.json */ /** * Sample code: Create a Linux vm with a patch settings patchMode and assessmentMode set to AutomaticByPlatform. @@ -1138,7 +1224,7 @@ public static void createALinuxVmWithAPatchSettingsPatchModeAndAssessmentModeSet /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithNonPersistedTPM.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVMWithNonPersistedTPM.json */ /** * Sample code: Create a VM with securityType ConfidentialVM with NonPersistedTPM securityEncryptionType. @@ -1181,7 +1267,7 @@ public static void createAVMWithSecurityTypeConfidentialVMWithNonPersistedTPMSec } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithAMarketplaceImagePlan.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithAMarketplaceImagePlan.json */ /** * Sample code: Create a vm with a marketplace image plan. @@ -1221,7 +1307,7 @@ public static void createAVmWithAMarketplaceImagePlan(com.azure.resourcemanager. /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingAssessmentModeOfImageDefault. + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingAssessmentModeOfImageDefault. * json */ /** @@ -1264,53 +1350,7 @@ public static void createAWindowsVmWithAPatchSettingAssessmentModeOfImageDefault } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithZoneMovementEnabled.json - */ - /** - * Sample code: Create a vm with resiliency profile and zone movement enabled. - * - * @param manager Entry point to ComputeManager. - */ - public static void - createAVmWithResiliencyProfileAndZoneMovementEnabled(com.azure.resourcemanager.compute.ComputeManager manager) { - manager.serviceClient() - .getVirtualMachines() - .createOrUpdate("myResourceGroup", "myVM", - new VirtualMachineInner().withLocation("westus") - .withHardwareProfile(new HardwareProfile().withVmSize(VirtualMachineSizeTypes.STANDARD_D2S_V3)) - .withStorageProfile( - new StorageProfile() - .withImageReference(new ImageReference().withPublisher("MicrosoftWindowsServer") - .withOffer("WindowsServer") - .withSku("2016-Datacenter") - .withVersion("latest")) - .withOsDisk(new OSDisk().withName("myVMosdisk") - .withCaching(CachingTypes.READ_WRITE) - .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) - .withManagedDisk(new ManagedDiskParameters() - .withStorageAccountType(StorageAccountTypes.PREMIUM_ZRS))) - .withDataDisks(Arrays.asList(new DataDisk().withLun(0) - .withName("myVMdatadisk1") - .withCaching(CachingTypes.READ_WRITE) - .withCreateOption(DiskCreateOptionTypes.EMPTY) - .withDiskSizeGB(128) - .withManagedDisk(new ManagedDiskParameters() - .withStorageAccountType(StorageAccountTypes.PREMIUM_ZRS))))) - .withOsProfile(new OSProfile() - .withComputerName("myVM") - .withAdminUsername("{your-username}") - .withAdminPassword("fakeTokenPlaceholder")) - .withNetworkProfile( - new NetworkProfile().withNetworkInterfaces(Arrays.asList(new NetworkInterfaceReference().withId( - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}") - .withPrimary(true)))) - .withResiliencyProfile( - new ResiliencyProfile().withZoneMovement(new ZoneMovement().withIsEnabled(true))), - null, null, com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/ + * x-ms-original-file: 2026-04-01/virtualMachineExamples/ * VirtualMachine_Create_WindowsVmWithPatchSettingModeOfAutomaticByPlatformAndEnableHotPatchingTrue.json */ /** @@ -1354,7 +1394,7 @@ public static void createAWindowsVmWithAPatchSettingPatchModeOfAutomaticByPlatfo } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithExtensionsTimeBudget.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithExtensionsTimeBudget.json */ /** * Sample code: Create a vm with an extensions time budget. @@ -1394,7 +1434,7 @@ public static void createAVmWithAnExtensionsTimeBudget(com.azure.resourcemanager } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithEmptyDataDisks.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithEmptyDataDisks.json */ /** * Sample code: Create a vm with empty data disks. @@ -1431,34 +1471,28 @@ public static void createAVmWithEmptyDataDisks(com.azure.resourcemanager.compute /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithADiffOsDiskAndFullCachingEnabled.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithCapacityReservationAssignmentDisabled.json */ /** - * Sample code: Create a vm with ephemeral os disk and enableFullCaching set to true. + * Sample code: Create a VM with capacity reservation assignment disabled. * * @param manager Entry point to ComputeManager. */ - public static void createAVmWithEphemeralOsDiskAndEnableFullCachingSetToTrue( - com.azure.resourcemanager.compute.ComputeManager manager) { + public static void + createAVMWithCapacityReservationAssignmentDisabled(com.azure.resourcemanager.compute.ComputeManager manager) { manager.serviceClient() .getVirtualMachines() .createOrUpdate("myResourceGroup", "myVM", new VirtualMachineInner().withLocation("westus") - .withPlan(new Plan().withName("windows2016") - .withPublisher("microsoft-ads") - .withProduct("windows-data-science-vm")) .withHardwareProfile(new HardwareProfile().withVmSize(VirtualMachineSizeTypes.STANDARD_DS1_V2)) .withStorageProfile( new StorageProfile() - .withImageReference(new ImageReference().withPublisher("microsoft-ads") - .withOffer("windows-data-science-vm") - .withSku("windows2016") + .withImageReference(new ImageReference().withPublisher("MicrosoftWindowsServer") + .withOffer("WindowsServer") + .withSku("2016-Datacenter") .withVersion("latest")) .withOsDisk(new OSDisk().withName("myVMosdisk") - .withCaching(CachingTypes.READ_ONLY) - .withDiffDiskSettings(new DiffDiskSettings().withOption(DiffDiskOptions.LOCAL) - .withPlacement(DiffDiskPlacement.fromString("TempDisk")) - .withEnableFullCaching(true)) + .withCaching(CachingTypes.READ_WRITE) .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE) .withManagedDisk(new ManagedDiskParameters() .withStorageAccountType(StorageAccountTypes.STANDARD_LRS)))) @@ -1469,12 +1503,14 @@ public static void createAVmWithEphemeralOsDiskAndEnableFullCachingSetToTrue( .withNetworkProfile( new NetworkProfile().withNetworkInterfaces(Arrays.asList(new NetworkInterfaceReference().withId( "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}") - .withPrimary(true)))), + .withPrimary(true)))) + .withCapacityReservation( + new CapacityReservationProfile().withDisableCapacityReservationAssignment(true)), null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithDataDisksFromSourceResource.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithDataDisksFromSourceResource.json */ /** * Sample code: Create a vm with data disks using 'Copy' and 'Restore' options. @@ -1523,7 +1559,7 @@ public static void createAVmWithEphemeralOsDiskAndEnableFullCachingSetToTrue( } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVM.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithSecurityTypeConfidentialVM.json */ /** * Sample code: Create a VM with securityType ConfidentialVM with Platform Managed Keys. @@ -1566,7 +1602,7 @@ public static void createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKey } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_FromACustomImage.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_FromACustomImage.json */ /** * Sample code: Create a vm from a custom image. @@ -1596,7 +1632,7 @@ public static void createAVmFromACustomImage(com.azure.resourcemanager.compute.C } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithHibernationEnabled.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithHibernationEnabled.json */ /** * Sample code: Create a VM with HibernationEnabled. @@ -1636,7 +1672,7 @@ public static void createAVMWithHibernationEnabled(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithApplicationProfile.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithApplicationProfile.json */ /** * Sample code: Create a vm with Application Profile. @@ -1683,7 +1719,7 @@ public static void createAVmWithApplicationProfile(com.azure.resourcemanager.com } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithUefiSettings.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithUefiSettings.json */ /** * Sample code: Create a VM with Uefi Settings of secureBoot and vTPM. @@ -1721,9 +1757,48 @@ public static void createAVmWithApplicationProfile(com.azure.resourcemanager.com null, null, com.azure.core.util.Context.NONE); } + /* + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithDeterministicProcessorMode.json + */ + /** + * Sample code: Create a VM with Deterministic Processor Mode. + * + * @param manager Entry point to ComputeManager. + */ + public static void + createAVMWithDeterministicProcessorMode(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachines() + .createOrUpdate("myResourceGroup", "myVM", + new VirtualMachineInner().withLocation("westus") + .withHardwareProfile( + new HardwareProfile().withVmSize(VirtualMachineSizeTypes.fromString("Standard_E2pds_v8")) + .withProcessorMode(ProcessorMode.DETERMINISTIC)) + .withStorageProfile( + new StorageProfile() + .withImageReference(new ImageReference().withPublisher("MicrosoftWindowsServer") + .withOffer("WindowsServer") + .withSku("2019-Datacenter") + .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")) + .withNetworkProfile( + new NetworkProfile().withNetworkInterfaces(Arrays.asList(new NetworkInterfaceReference().withId( + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}") + .withPrimary(true)))), + null, null, com.azure.core.util.Context.NONE); + } + /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfigurationDnsSettings.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithNetworkInterfaceConfigurationDnsSettings.json */ /** * Sample code: Create a VM with network interface configuration with public ip address dns settings. @@ -1774,7 +1849,7 @@ public static void createAVMWithNetworkInterfaceConfigurationWithPublicIpAddress /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_InAVmssWithCustomerAssignedPlatformFaultDomain.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_InAVmssWithCustomerAssignedPlatformFaultDomain.json */ /** * Sample code: Create a vm in a Virtual Machine Scale Set with customer assigned platformFaultDomain. @@ -1814,7 +1889,7 @@ public static void createAVmInAVirtualMachineScaleSetWithCustomerAssignedPlatfor } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithBootDiagnostics.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithBootDiagnostics.json */ /** * Sample code: Create a vm with boot diagnostics. @@ -1853,7 +1928,7 @@ public static void createAVmWithBootDiagnostics(com.azure.resourcemanager.comput } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithSshAuthentication.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithSshAuthentication.json */ /** * Sample code: Create a vm with ssh authentication. @@ -1891,7 +1966,7 @@ public static void createAVmWithSshAuthentication(com.azure.resourcemanager.comp } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_FromACommunityGalleryImage.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_FromACommunityGalleryImage.json */ /** * Sample code: Create a VM from a community gallery image. @@ -1922,7 +1997,7 @@ public static void createAVMFromACommunityGalleryImage(com.azure.resourcemanager } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithUserData.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithUserData.json */ /** * Sample code: Create a VM with UserData. @@ -1962,7 +2037,7 @@ public static void createAVMWithUserData(com.azure.resourcemanager.compute.Compu } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_FromAGeneralizedSharedImage.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_FromAGeneralizedSharedImage.json */ /** * Sample code: Create a vm from a generalized shared image. @@ -1993,7 +2068,7 @@ public static void createAVmFromAGeneralizedSharedImage(com.azure.resourcemanage /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithAutomaticByPlatformSettings.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithAutomaticByPlatformSettings.json */ /** * Sample code: Create a Linux vm with a patch setting patchMode of AutomaticByPlatform and @@ -2039,7 +2114,7 @@ public static void createALinuxVmWithAPatchSettingPatchModeOfAutomaticByPlatform /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfManual.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithPatchSettingModeOfManual.json */ /** * Sample code: Create a Windows vm with a patch setting patchMode of Manual. @@ -2080,7 +2155,7 @@ public static void createALinuxVmWithAPatchSettingPatchModeOfAutomaticByPlatform } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithFips1403Enabled.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithFips1403Enabled.json */ /** * Sample code: Create a VM with FIPS 140-3 Enabled. @@ -2120,7 +2195,7 @@ public static void createAVMWithFIPS1403Enabled(com.azure.resourcemanager.comput } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithProxyAgentSettings.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithProxyAgentSettings.json */ /** * Sample code: Create a VM with ProxyAgent Settings of enabled and mode. @@ -2161,7 +2236,7 @@ public static void createAVMWithFIPS1403Enabled(com.azure.resourcemanager.comput /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModeOfImageDefault.json + * 2026-04-01/virtualMachineExamples/VirtualMachine_Create_LinuxVmWithPatchSettingModeOfImageDefault.json */ /** * Sample code: Create a Linux vm with a patch setting patchMode of ImageDefault. @@ -2202,7 +2277,7 @@ public static void createALinuxVmWithAPatchSettingPatchModeOfImageDefault( } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithManagedBootDiagnostics.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithManagedBootDiagnostics.json */ /** * Sample code: Create a vm with managed boot diagnostics. @@ -2240,7 +2315,7 @@ public static void createAVmWithManagedBootDiagnostics(com.azure.resourcemanager } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WithPlacement.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Create_WithPlacement.json */ /** * Sample code: Create a VM with automatic zone placement. @@ -2282,7 +2357,7 @@ public static void createAVMWithAutomaticZonePlacement(com.azure.resourcemanager /* * x-ms-original-file: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Create_WindowsVmWithAutomaticByPlatformSettings.json + * 2026-04-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 42e6f7f747d8..0be3e4270146 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,22 +9,21 @@ */ public final class VirtualMachinesDeallocateSamples { /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Deallocate_WithForceDeallocate.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Deallocate_MaximumSet_Gen.json */ /** - * Sample code: VirtualMachine_Deallocate_WithForceDeallocate. + * Sample code: VirtualMachine_Deallocate_MaximumSet_Gen. * * @param manager Entry point to ComputeManager. */ - public static void - virtualMachineDeallocateWithForceDeallocate(com.azure.resourcemanager.compute.ComputeManager manager) { + public static void virtualMachineDeallocateMaximumSetGen(com.azure.resourcemanager.compute.ComputeManager manager) { manager.serviceClient() .getVirtualMachines() - .deallocate("rgcompute", "aaaaaaaaaaaaaaaa", null, true, com.azure.core.util.Context.NONE); + .deallocate("rgcompute", "aaaaaaaaaa", true, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Deallocate_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Deallocate_MinimumSet_Gen.json */ /** * Sample code: VirtualMachine_Deallocate_MinimumSet_Gen. @@ -36,19 +35,4 @@ public static void virtualMachineDeallocateMinimumSetGen(com.azure.resourcemanag .getVirtualMachines() .deallocate("rgcompute", "aaaaaaaaaaaaaaaa", null, 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, null, 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 1a732af31b55..b9a66daa48e3 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: 2026-03-01/virtualMachineExamples/VirtualMachine_Delete_Force.json + * x-ms-original-file: 2026-04-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 867b4ca1800d..89367eb8fe26 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: 2026-03-01/virtualMachineExamples/VirtualMachine_Generalize.json + * x-ms-original-file: 2026-04-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 4e522563e4e5..d97232dcf98d 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: 2026-03-01/virtualMachineExamples/VirtualMachine_Get_WithVMSizeProperties.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Get_WithVMSizeProperties.json */ /** * Sample code: Get a virtual machine with VM Size Properties. @@ -26,7 +26,37 @@ public final class VirtualMachinesGetByResourceGroupSamples { } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get_AutoPlacedOnDedicatedHostGroup.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Get_WithDeterministicProcessorMode.json + */ + /** + * Sample code: Get a virtual machine with Deterministic Processor Mode. + * + * @param manager Entry point to ComputeManager. + */ + public static void + getAVirtualMachineWithDeterministicProcessorMode(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachines() + .getByResourceGroupWithResponse("myResourceGroup", "myVM", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Get_WithOpportunisticProcessorMode.json + */ + /** + * Sample code: Get a virtual machine with Opportunistic Processor Mode. + * + * @param manager Entry point to ComputeManager. + */ + public static void + getAVirtualMachineWithOpportunisticProcessorMode(com.azure.resourcemanager.compute.ComputeManager manager) { + manager.serviceClient() + .getVirtualMachines() + .getByResourceGroupWithResponse("myResourceGroup", "myVM", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Get_AutoPlacedOnDedicatedHostGroup.json */ /** * Sample code: Get a virtual machine placed on a dedicated host group through automatic placement. @@ -41,7 +71,7 @@ public static void getAVirtualMachinePlacedOnADedicatedHostGroupThroughAutomatic } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get_WithDiskControllerType.json + * x-ms-original-file: 2026-04-01/virtualMachineExamples/VirtualMachine_Get_WithDiskControllerType.json */ /** * Sample code: Get a virtual machine with Disk Controller Type Properties. @@ -57,7 +87,7 @@ public static void getAVirtualMachinePlacedOnADedicatedHostGroupThroughAutomatic } /* - * x-ms-original-file: 2026-03-01/virtualMachineExamples/VirtualMachine_Get.json + * x-ms-original-file: 2026-04-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 e3e82845a6e3..2eb9e5d35b0f 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: 2026-03-01/virtualMachineExamples/VirtualMachine_InstallPatches.json + * x-ms-original-file: 2026-04-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 8c8a21e41f23..2f2640d42e07 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: 2026-03-01/virtualMachineExamples/VirtualMachine_Get_InstanceView.json + * x-ms-original-file: 2026-04-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: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Get_InstanceViewAutoPlacedOnDedicatedHostGroup.json + * 2026-04-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,19 +37,4 @@ 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 fef5efe50106..4bc8633309b4 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: 2026-03-01/virtualMachineExamples/VirtualMachine_ListAvailableVmSizes.json + * x-ms-original-file: 2026-04-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 3bb68ea7f07d..ffb81bc54c8b 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: 2026-03-01/virtualMachineExamples/VirtualMachine_ListBySubscription_ByLocation.json + * x-ms-original-file: 2026-04-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 261406bd4fbd..800ed2d90d36 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: 2026-03-01/virtualMachineExamples/VirtualMachine_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachine_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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 9c09ce43b5d7..3ed88e4835dc 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: 2026-03-01/virtualMachineExamples/VirtualMachine_ListAll_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachine_ListAll_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 a0ace70722eb..56f1904007c5 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: 2026-03-01/virtualMachineExamples/VirtualMachine_MigrateToVirtualMachineScaleSet.json + * x-ms-original-file: 2026-04-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 743803475f6d..c1e9da03a5ac 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: 2026-03-01/virtualMachineExamples/VirtualMachine_PerformMaintenance_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachine_PerformMaintenance_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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 fed22cf872c4..8ab35294bc85 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: 2026-03-01/virtualMachineExamples/VirtualMachine_PowerOff_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachine_PowerOff_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 507f934467a0..8b6533277703 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: 2026-03-01/virtualMachineExamples/VirtualMachine_Reapply.json + * x-ms-original-file: 2026-04-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 c21ca9fa2080..dd285e552bf0 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: 2026-03-01/virtualMachineExamples/VirtualMachine_Redeploy_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachine_Redeploy_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 81b0a1cccb56..70459b21d42e 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: 2026-03-01/virtualMachineExamples/VirtualMachine_Reimage.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachine_Reimage_NonEphemeralVMs.json + * x-ms-original-file: 2026-04-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 fd19b48d35e3..51139998c8ed 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: 2026-03-01/virtualMachineExamples/VirtualMachine_Restart_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachine_Restart_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 a08ecba0be52..5006d4c86191 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: 2026-03-01/virtualMachineExamples/VirtualMachine_RetrieveBootDiagnosticsData.json + * x-ms-original-file: 2026-04-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 c66d23ae694a..589a9f04a7d7 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: 2026-03-01/runCommandExamples/VirtualMachineRunCommand.json + * x-ms-original-file: 2026-04-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 960982bd987e..c71c07e9d464 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: 2026-03-01/virtualMachineExamples/VirtualMachine_SimulateEviction.json + * x-ms-original-file: 2026-04-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 4dd2f552f6cb..a5350c9877c0 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: 2026-03-01/virtualMachineExamples/VirtualMachine_Start_MinimumSet_Gen.json + * x-ms-original-file: 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachine_Start_MaximumSet_Gen.json + * x-ms-original-file: 2026-04-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 76507470da7f..d754e98f9418 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: - * 2026-03-01/virtualMachineExamples/VirtualMachine_Update_DetachDataDiskUsingToBeDetachedProperty.json + * 2026-04-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: 2026-03-01/virtualMachineExamples/VirtualMachine_Update_ForceDetachDataDisk.json + * x-ms-original-file: 2026-04-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 b24776124c47..d169f298e2d5 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: 3afe65f7239e0e1f26202c75d960266adddb1eeb +commit: f033bb63819c74607f4086c49ae7b07a22c35f78 repo: Azure/azure-rest-api-specs additionalDirectories: