diff --git a/eng/scripts/Compare-CurrentToCodegeneration.ps1 b/eng/scripts/Compare-CurrentToCodegeneration.ps1
index 99a394a57d2a..b83b754245a9 100644
--- a/eng/scripts/Compare-CurrentToCodegeneration.ps1
+++ b/eng/scripts/Compare-CurrentToCodegeneration.ps1
@@ -171,8 +171,7 @@ $generateScript = {
}
# prevent warning related to EOL differences which triggers an exception for some reason
- (& git -c core.safecrlf=false diff --ignore-space-at-eol --exit-code -- "$directory/*.java" ":(exclude)**/src/test/**" ":
- (exclude)**/src/samples/**" ":(exclude)**/src/main/**/implementation/**") | Out-Null
+ (& git -c core.safecrlf=false diff --ignore-space-at-eol --exit-code -- "$directory/*.java" ":(exclude)**/src/test/**" ":(exclude)**/src/samples/**" ":(exclude)**/src/main/**/implementation/**") | Out-Null
if ($LastExitCode -ne 0) {
$status = (git status -s "$directory" | Out-String)
diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 4fe236ac7b87..041ebeab530c 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -281,7 +281,7 @@ com.azure.resourcemanager:azure-resourcemanager-appplatform;2.51.0;2.52.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-appservice;2.55.2;2.56.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-authorization;2.53.9;2.54.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-cdn;2.53.8;2.54.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-compute;2.57.1;2.58.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-compute;2.57.1;2.58.0
com.azure.resourcemanager:azure-resourcemanager-containerinstance;2.53.10;2.54.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-containerregistry;2.55.2;2.56.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-containerservice;2.61.0;2.62.0-beta.2
diff --git a/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md b/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md
index f4c7528b8f20..868bc7b6ef9d 100644
--- a/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md
+++ b/sdk/compute/azure-resourcemanager-compute/CHANGELOG.md
@@ -1,15 +1,64 @@
# Release History
-## 2.58.0-beta.1 (Unreleased)
+## 2.58.0 (2026-06-17)
### Features Added
-### Breaking Changes
+* `models.InterconnectBlockProperties` was added
-### Bugs Fixed
+* `models.InterconnectInstanceView` was added
+
+* `models.AutomaticSkuMigrationPolicy` was added
+
+* `models.InterconnectBlockProfile` was added
+
+* `models.InterconnectBlockUpdate` was added
+
+* `models.InterconnectBlockExpandTypes` was added
+
+* `models.InterconnectGroupProfile` was added
+
+* `models.InterconnectBlockInstanceView` was added
+
+#### `models.VirtualMachineScaleSetVMProfile` was modified
+
+* `interconnectBlockProfile()` was added
+* `withInterconnectBlockProfile(models.InterconnectBlockProfile)` was added
+
+#### `models.VirtualMachineScaleSetVMNetworkProfileConfiguration` was modified
+
+* `interconnectGroupProfile()` was added
+* `withInterconnectGroupProfile(models.InterconnectGroupProfile)` was added
+
+#### `models.NetworkProfile` was modified
+
+* `interconnectGroupProfile()` was added
+* `withInterconnectGroupProfile(models.InterconnectGroupProfile)` was added
+
+#### `models.VirtualMachineScaleSetNetworkProfile` was modified
+
+* `interconnectGroupProfile()` was added
+* `withInterconnectGroupProfile(models.InterconnectGroupProfile)` was added
+
+#### `models.VirtualMachineScaleSetUpdateVMProfile` was modified
+
+* `interconnectBlockProfile()` was added
+* `withInterconnectBlockProfile(models.InterconnectBlockProfile)` was added
+
+#### `models.VirtualMachineScaleSetUpdateNetworkProfile` was modified
+
+* `withInterconnectGroupProfile(models.InterconnectGroupProfile)` was added
+* `interconnectGroupProfile()` was added
+
+#### `models.SkuProfile` was modified
+
+* `automaticSkuMigrationPolicy()` was added
+* `withAutomaticSkuMigrationPolicy(models.AutomaticSkuMigrationPolicy)` was added
### Other Changes
+- Updated `ComputeRP api-version` to `2026-03-01`.
+
## 2.57.1 (2026-05-05)
### Other Changes
diff --git a/sdk/compute/azure-resourcemanager-compute/README.md b/sdk/compute/azure-resourcemanager-compute/README.md
index 7b60e5b1ee20..e812842ded3d 100644
--- a/sdk/compute/azure-resourcemanager-compute/README.md
+++ b/sdk/compute/azure-resourcemanager-compute/README.md
@@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra
com.azure.resourcemanager
azure-resourcemanager-compute
- 2.57.0
+ 2.58.0
```
[//]: # ({x-version-update-end})
diff --git a/sdk/compute/azure-resourcemanager-compute/pom.xml b/sdk/compute/azure-resourcemanager-compute/pom.xml
index 60811d1e68a9..fbbd31f50010 100644
--- a/sdk/compute/azure-resourcemanager-compute/pom.xml
+++ b/sdk/compute/azure-resourcemanager-compute/pom.xml
@@ -14,7 +14,7 @@
com.azure.resourcemanager
azure-resourcemanager-compute
- 2.58.0-beta.1
+ 2.58.0
jar
Microsoft Azure SDK for Compute Management
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/ComputeManagementClient.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/ComputeManagementClient.java
index 7dc02ab0e3da..b4ef4834f363 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/ComputeManagementClient.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/ComputeManagementClient.java
@@ -158,6 +158,13 @@ public interface ComputeManagementClient {
*/
CapacityReservationsClient getCapacityReservations();
+ /**
+ * Gets the InterconnectBlocksClient object to access its operations.
+ *
+ * @return the InterconnectBlocksClient object.
+ */
+ InterconnectBlocksClient getInterconnectBlocks();
+
/**
* Gets the VirtualMachineRunCommandsClient object to access its operations.
*
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/InterconnectBlocksClient.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/InterconnectBlocksClient.java
new file mode 100644
index 000000000000..6e9eacbbdef0
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/InterconnectBlocksClient.java
@@ -0,0 +1,489 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.compute.fluent.models.InterconnectBlockInner;
+import com.azure.resourcemanager.compute.models.InterconnectBlockExpandTypes;
+import com.azure.resourcemanager.compute.models.InterconnectBlockUpdate;
+import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete;
+import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet;
+import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in InterconnectBlocksClient.
+ */
+public interface InterconnectBlocksClient extends InnerSupportsGet,
+ InnerSupportsListing, InnerSupportsDelete {
+ /**
+ * Retrieves information about an Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param expand The expand expression to apply on the operation. 'instanceView' retrieves a snapshot of the runtime
+ * properties of the Interconnect Block that is managed by the platform and can change outside of control plane
+ * operations.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockExpandTypes expand);
+
+ /**
+ * Retrieves information about an Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono getByResourceGroupAsync(String resourceGroupName, String interconnectBlockName);
+
+ /**
+ * Retrieves information about an Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param expand The expand expression to apply on the operation. 'instanceView' retrieves a snapshot of the runtime
+ * properties of the Interconnect Block that is managed by the platform and can change outside of control plane
+ * operations.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockExpandTypes expand, Context context);
+
+ /**
+ * Retrieves information about an Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ InterconnectBlockInner getByResourceGroup(String resourceGroupName, String interconnectBlockName);
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockInner resource);
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, InterconnectBlockInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String interconnectBlockName, InterconnectBlockInner resource);
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, InterconnectBlockInner> beginCreateOrUpdate(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockInner resource);
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, InterconnectBlockInner> beginCreateOrUpdate(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockInner resource, Context context);
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono createOrUpdateAsync(String resourceGroupName, String interconnectBlockName,
+ InterconnectBlockInner resource);
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ InterconnectBlockInner createOrUpdate(String resourceGroupName, String interconnectBlockName,
+ InterconnectBlockInner resource);
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ InterconnectBlockInner createOrUpdate(String resourceGroupName, String interconnectBlockName,
+ InterconnectBlockInner resource, Context context);
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> updateWithResponseAsync(String resourceGroupName, String interconnectBlockName,
+ InterconnectBlockUpdate properties);
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, InterconnectBlockInner> beginUpdateAsync(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockUpdate properties);
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, InterconnectBlockInner> beginUpdate(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockUpdate properties);
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, InterconnectBlockInner> beginUpdate(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockUpdate properties, Context context);
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono updateAsync(String resourceGroupName, String interconnectBlockName,
+ InterconnectBlockUpdate properties);
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ InterconnectBlockInner update(String resourceGroupName, String interconnectBlockName,
+ InterconnectBlockUpdate properties);
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ InterconnectBlockInner update(String resourceGroupName, String interconnectBlockName,
+ InterconnectBlockUpdate properties, Context context);
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deleteWithResponseAsync(String resourceGroupName, String interconnectBlockName);
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String interconnectBlockName);
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String interconnectBlockName);
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String interconnectBlockName,
+ Context context);
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deleteAsync(String resourceGroupName, String interconnectBlockName);
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String interconnectBlockName);
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String interconnectBlockName, Context context);
+
+ /**
+ * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response
+ * to get the next page of Interconnect Blocks.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listByResourceGroupAsync(String resourceGroupName);
+
+ /**
+ * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response
+ * to get the next page of Interconnect Blocks.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response
+ * to get the next page of Interconnect Blocks.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the
+ * next page of Interconnect Blocks.
+ *
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedFlux listAsync();
+
+ /**
+ * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the
+ * next page of Interconnect Blocks.
+ *
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the
+ * next page of Interconnect Blocks.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachinesClient.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachinesClient.java
index 05454ef12fa2..076f6a9375f7 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachinesClient.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachinesClient.java
@@ -1113,6 +1113,22 @@ SyncPoller, Void> beginConvertToManagedDisks(String resourceGro
Mono>> deallocateWithResponseAsync(String resourceGroupName, String vmName,
Boolean hibernate, Boolean forceDeallocate);
+ /**
+ * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources
+ * that this virtual machine uses.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param vmName The name of the virtual machine.
+ * @param hibernate Optional parameter to hibernate a virtual machine.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono>> deallocateWithResponseAsync(String resourceGroupName, String vmName,
+ Boolean hibernate);
+
/**
* Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources
* that this virtual machine uses.
@@ -1144,6 +1160,21 @@ PollerFlux, Void> beginDeallocateAsync(String resourceGroupName
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux, Void> beginDeallocateAsync(String resourceGroupName, String vmName);
+ /**
+ * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources
+ * that this virtual machine uses.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param vmName The name of the virtual machine.
+ * @param hibernate Optional parameter to hibernate a virtual machine.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ PollerFlux, Void> beginDeallocateAsync(String resourceGroupName, String vmName, Boolean hibernate);
+
/**
* Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources
* that this virtual machine uses.
@@ -1176,6 +1207,23 @@ PollerFlux, Void> beginDeallocateAsync(String resourceGroupName
SyncPoller, Void> beginDeallocate(String resourceGroupName, String vmName, Boolean hibernate,
Boolean forceDeallocate, Context context);
+ /**
+ * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources
+ * that this virtual machine uses.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param vmName The name of the virtual machine.
+ * @param hibernate Optional parameter to hibernate a virtual machine.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeallocate(String resourceGroupName, String vmName, Boolean hibernate,
+ Context context);
+
/**
* Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources
* that this virtual machine uses.
@@ -1206,6 +1254,21 @@ SyncPoller, Void> beginDeallocate(String resourceGroupName, Str
@ServiceMethod(returns = ReturnType.SINGLE)
Mono deallocateAsync(String resourceGroupName, String vmName);
+ /**
+ * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources
+ * that this virtual machine uses.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param vmName The name of the virtual machine.
+ * @param hibernate Optional parameter to hibernate a virtual machine.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono deallocateAsync(String resourceGroupName, String vmName, Boolean hibernate);
+
/**
* Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources
* that this virtual machine uses.
@@ -1236,6 +1299,21 @@ SyncPoller, Void> beginDeallocate(String resourceGroupName, Str
void deallocate(String resourceGroupName, String vmName, Boolean hibernate, Boolean forceDeallocate,
Context context);
+ /**
+ * Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources
+ * that this virtual machine uses.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param vmName The name of the virtual machine.
+ * @param hibernate Optional parameter to hibernate a virtual machine.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.compute.models.ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deallocate(String resourceGroupName, String vmName, Boolean hibernate, Context context);
+
/**
* Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before
* performing this operation. For Windows, please refer to [Create a managed image of a generalized VM in
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/InterconnectBlockInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/InterconnectBlockInner.java
new file mode 100644
index 000000000000..599ac5e78012
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/InterconnectBlockInner.java
@@ -0,0 +1,298 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.models.InterconnectBlockProperties;
+import com.azure.resourcemanager.compute.models.Placement;
+import com.azure.resourcemanager.compute.models.Sku;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Specifies information about the Interconnect Block.
+ */
+@Fluent
+public final class InterconnectBlockInner extends Resource {
+ /*
+ * Properties of the Interconnect Block.
+ */
+ private InterconnectBlockProperties properties;
+
+ /*
+ * SKU of the resource for which capacity needs to be pre-allocated. Both `sku.name` and `sku.capacity` are required
+ * at create. After create, only `sku.capacity` can be updated.
+ */
+ private Sku sku;
+
+ /*
+ * The availability zones.
+ */
+ private List zones;
+
+ /*
+ * Placement section specifies the user-defined constraints for Interconnect Block hardware placement. This property
+ * cannot be changed once Interconnect Block is provisioned.
+ */
+ private Placement placement;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of InterconnectBlockInner class.
+ */
+ public InterconnectBlockInner() {
+ }
+
+ /**
+ * Get the properties property: Properties of the Interconnect Block.
+ *
+ * @return the properties value.
+ */
+ public InterconnectBlockProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of the Interconnect Block.
+ *
+ * @param properties the properties value to set.
+ * @return the InterconnectBlockInner object itself.
+ */
+ public InterconnectBlockInner withProperties(InterconnectBlockProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the sku property: SKU of the resource for which capacity needs to be pre-allocated. Both `sku.name` and
+ * `sku.capacity` are required at create. After create, only `sku.capacity` can be updated.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: SKU of the resource for which capacity needs to be pre-allocated. Both `sku.name` and
+ * `sku.capacity` are required at create. After create, only `sku.capacity` can be updated.
+ *
+ * @param sku the sku value to set.
+ * @return the InterconnectBlockInner object itself.
+ */
+ public InterconnectBlockInner withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the zones property: The availability zones.
+ *
+ * @return the zones value.
+ */
+ public List zones() {
+ return this.zones;
+ }
+
+ /**
+ * Set the zones property: The availability zones.
+ *
+ * @param zones the zones value to set.
+ * @return the InterconnectBlockInner object itself.
+ */
+ public InterconnectBlockInner withZones(List zones) {
+ this.zones = zones;
+ return this;
+ }
+
+ /**
+ * Get the placement property: Placement section specifies the user-defined constraints for Interconnect Block
+ * hardware placement. This property cannot be changed once Interconnect Block is provisioned.
+ *
+ * @return the placement value.
+ */
+ public Placement placement() {
+ return this.placement;
+ }
+
+ /**
+ * Set the placement property: Placement section specifies the user-defined constraints for Interconnect Block
+ * hardware placement. This property cannot be changed once Interconnect Block is provisioned.
+ *
+ * @param placement the placement value to set.
+ * @return the InterconnectBlockInner object itself.
+ */
+ public InterconnectBlockInner withPlacement(Placement placement) {
+ this.placement = placement;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public InterconnectBlockInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public InterconnectBlockInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ if (sku() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property sku in model InterconnectBlockInner"));
+ } else {
+ sku().validate();
+ }
+ if (placement() != null) {
+ placement().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(InterconnectBlockInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("sku", this.sku);
+ jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("placement", this.placement);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of InterconnectBlockInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of InterconnectBlockInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the InterconnectBlockInner.
+ */
+ public static InterconnectBlockInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ InterconnectBlockInner deserializedInterconnectBlockInner = new InterconnectBlockInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedInterconnectBlockInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedInterconnectBlockInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedInterconnectBlockInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedInterconnectBlockInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedInterconnectBlockInner.withTags(tags);
+ } else if ("sku".equals(fieldName)) {
+ deserializedInterconnectBlockInner.sku = Sku.fromJson(reader);
+ } else if ("properties".equals(fieldName)) {
+ deserializedInterconnectBlockInner.properties = InterconnectBlockProperties.fromJson(reader);
+ } else if ("zones".equals(fieldName)) {
+ List zones = reader.readArray(reader1 -> reader1.getString());
+ deserializedInterconnectBlockInner.zones = zones;
+ } else if ("placement".equals(fieldName)) {
+ deserializedInterconnectBlockInner.placement = Placement.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedInterconnectBlockInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedInterconnectBlockInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInner.java
index 38b3deeb9d7d..11a9d0ac6e90 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInner.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInner.java
@@ -18,6 +18,7 @@
import com.azure.resourcemanager.compute.models.DiagnosticsProfile;
import com.azure.resourcemanager.compute.models.ExtendedLocation;
import com.azure.resourcemanager.compute.models.HardwareProfile;
+import com.azure.resourcemanager.compute.models.InterconnectBlockProfile;
import com.azure.resourcemanager.compute.models.NetworkProfile;
import com.azure.resourcemanager.compute.models.OSProfile;
import com.azure.resourcemanager.compute.models.Placement;
@@ -936,6 +937,31 @@ public VirtualMachineInner withCapacityReservation(CapacityReservationProfile ca
return this;
}
+ /**
+ * Get the interconnectBlockProfile property: Specifies information about the Interconnect Block that is used to
+ * allocate the Virtual Machine. Minimum api-version: 2026-03-01.
+ *
+ * @return the interconnectBlockProfile value.
+ */
+ public InterconnectBlockProfile interconnectBlockProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().interconnectBlockProfile();
+ }
+
+ /**
+ * Set the interconnectBlockProfile property: Specifies information about the Interconnect Block that is used to
+ * allocate the Virtual Machine. Minimum api-version: 2026-03-01.
+ *
+ * @param interconnectBlockProfile the interconnectBlockProfile value to set.
+ * @return the VirtualMachineInner object itself.
+ */
+ public VirtualMachineInner withInterconnectBlockProfile(InterconnectBlockProfile interconnectBlockProfile) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualMachinePropertiesInner();
+ }
+ this.innerProperties().withInterconnectBlockProfile(interconnectBlockProfile);
+ return this;
+ }
+
/**
* Get the applicationProfile property: Specifies the gallery applications that should be made available to the
* VM/VMSS.
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInstanceViewInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInstanceViewInner.java
index 6d1775e1f38b..58e63b66cd54 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInstanceViewInner.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineInstanceViewInner.java
@@ -13,6 +13,7 @@
import com.azure.resourcemanager.compute.models.DiskInstanceView;
import com.azure.resourcemanager.compute.models.HyperVGenerationType;
import com.azure.resourcemanager.compute.models.InstanceViewStatus;
+import com.azure.resourcemanager.compute.models.InterconnectInstanceView;
import com.azure.resourcemanager.compute.models.MaintenanceRedeployStatus;
import com.azure.resourcemanager.compute.models.VirtualMachineAgentInstanceView;
import com.azure.resourcemanager.compute.models.VirtualMachineExtensionInstanceView;
@@ -115,6 +116,11 @@ public final class VirtualMachineInstanceViewInner implements JsonSerializable e.validate());
}
+ if (interconnectInstanceView() != null) {
+ interconnectInstanceView().validate();
+ }
}
/**
@@ -386,6 +405,9 @@ public static VirtualMachineScaleSetVMInstanceViewInner fromJson(JsonReader json
} else if ("hyperVGeneration".equals(fieldName)) {
deserializedVirtualMachineScaleSetVMInstanceViewInner.hyperVGeneration
= HyperVGeneration.fromString(reader.getString());
+ } else if ("interconnectInstanceView".equals(fieldName)) {
+ deserializedVirtualMachineScaleSetVMInstanceViewInner.interconnectInstanceView
+ = InterconnectInstanceView.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMPropertiesInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMPropertiesInner.java
index d3670b865cbd..ab3c4ef4f279 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMPropertiesInner.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMPropertiesInner.java
@@ -14,6 +14,7 @@
import com.azure.resourcemanager.compute.models.AdditionalCapabilities;
import com.azure.resourcemanager.compute.models.DiagnosticsProfile;
import com.azure.resourcemanager.compute.models.HardwareProfile;
+import com.azure.resourcemanager.compute.models.InterconnectBlockProfile;
import com.azure.resourcemanager.compute.models.NetworkProfile;
import com.azure.resourcemanager.compute.models.OSProfile;
import com.azure.resourcemanager.compute.models.ResilientVMDeletionStatus;
@@ -148,6 +149,11 @@ public final class VirtualMachineScaleSetVMPropertiesInner
*/
private String virtualMachineResourceId;
+ /*
+ * Specifies the Interconnect Block related details of a Scale Set VM instance. Minimum api-version: 2026-03-01.
+ */
+ private InterconnectBlockProfile interconnectBlockProfile;
+
/**
* Creates an instance of VirtualMachineScaleSetVMPropertiesInner class.
*/
@@ -521,6 +527,29 @@ public String virtualMachineResourceId() {
return this.virtualMachineResourceId;
}
+ /**
+ * Get the interconnectBlockProfile property: Specifies the Interconnect Block related details of a Scale Set VM
+ * instance. Minimum api-version: 2026-03-01.
+ *
+ * @return the interconnectBlockProfile value.
+ */
+ public InterconnectBlockProfile interconnectBlockProfile() {
+ return this.interconnectBlockProfile;
+ }
+
+ /**
+ * Set the interconnectBlockProfile property: Specifies the Interconnect Block related details of a Scale Set VM
+ * instance. Minimum api-version: 2026-03-01.
+ *
+ * @param interconnectBlockProfile the interconnectBlockProfile value to set.
+ * @return the VirtualMachineScaleSetVMPropertiesInner object itself.
+ */
+ public VirtualMachineScaleSetVMPropertiesInner
+ withInterconnectBlockProfile(InterconnectBlockProfile interconnectBlockProfile) {
+ this.interconnectBlockProfile = interconnectBlockProfile;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -557,6 +586,9 @@ public void validate() {
if (protectionPolicy() != null) {
protectionPolicy().validate();
}
+ if (interconnectBlockProfile() != null) {
+ interconnectBlockProfile().validate();
+ }
}
/**
@@ -579,6 +611,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("licenseType", this.licenseType);
jsonWriter.writeJsonField("protectionPolicy", this.protectionPolicy);
jsonWriter.writeStringField("userData", this.userData);
+ jsonWriter.writeJsonField("interconnectBlockProfile", this.interconnectBlockProfile);
return jsonWriter.writeEndObject();
}
@@ -650,6 +683,9 @@ public static VirtualMachineScaleSetVMPropertiesInner fromJson(JsonReader jsonRe
.getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
} else if ("virtualMachineResourceId".equals(fieldName)) {
deserializedVirtualMachineScaleSetVMPropertiesInner.virtualMachineResourceId = reader.getString();
+ } else if ("interconnectBlockProfile".equals(fieldName)) {
+ deserializedVirtualMachineScaleSetVMPropertiesInner.interconnectBlockProfile
+ = InterconnectBlockProfile.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineUpdateInner.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineUpdateInner.java
index 130dbbf37654..fc0c57756b34 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineUpdateInner.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineUpdateInner.java
@@ -15,6 +15,7 @@
import com.azure.resourcemanager.compute.models.CapacityReservationProfile;
import com.azure.resourcemanager.compute.models.DiagnosticsProfile;
import com.azure.resourcemanager.compute.models.HardwareProfile;
+import com.azure.resourcemanager.compute.models.InterconnectBlockProfile;
import com.azure.resourcemanager.compute.models.NetworkProfile;
import com.azure.resourcemanager.compute.models.OSProfile;
import com.azure.resourcemanager.compute.models.Plan;
@@ -766,6 +767,31 @@ public VirtualMachineUpdateInner withCapacityReservation(CapacityReservationProf
return this;
}
+ /**
+ * Get the interconnectBlockProfile property: Specifies information about the Interconnect Block that is used to
+ * allocate the Virtual Machine. Minimum api-version: 2026-03-01.
+ *
+ * @return the interconnectBlockProfile value.
+ */
+ public InterconnectBlockProfile interconnectBlockProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().interconnectBlockProfile();
+ }
+
+ /**
+ * Set the interconnectBlockProfile property: Specifies information about the Interconnect Block that is used to
+ * allocate the Virtual Machine. Minimum api-version: 2026-03-01.
+ *
+ * @param interconnectBlockProfile the interconnectBlockProfile value to set.
+ * @return the VirtualMachineUpdateInner object itself.
+ */
+ public VirtualMachineUpdateInner withInterconnectBlockProfile(InterconnectBlockProfile interconnectBlockProfile) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new VirtualMachinePropertiesInner();
+ }
+ this.innerProperties().withInterconnectBlockProfile(interconnectBlockProfile);
+ return this;
+ }
+
/**
* Get the applicationProfile property: Specifies the gallery applications that should be made available to the
* VM/VMSS.
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/AvailabilitySetsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/AvailabilitySetsClientImpl.java
index bd75653443a9..7fe3adf7829a 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/AvailabilitySetsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/AvailabilitySetsClientImpl.java
@@ -243,7 +243,7 @@ public Mono> getByResourceGroupWithResponseAsync(
return Mono
.error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion,
@@ -282,7 +282,7 @@ private Mono> getByResourceGroupWithResponseAsync
return Mono
.error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -375,7 +375,7 @@ public Mono> createOrUpdateWithResponseAsync(Stri
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -422,7 +422,7 @@ private Mono> createOrUpdateWithResponseAsync(Str
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -521,7 +521,7 @@ public Mono> updateWithResponseAsync(String resou
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -568,7 +568,7 @@ private Mono> updateWithResponseAsync(String reso
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -659,7 +659,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St
return Mono
.error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, availabilitySetName, context))
@@ -696,7 +696,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
return Mono
.error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
availabilitySetName, context);
@@ -771,7 +771,7 @@ private Mono> listByResourceGroupSinglePageA
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion,
@@ -807,7 +807,7 @@ private Mono> listByResourceGroupSinglePageA
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -897,7 +897,7 @@ private Mono> listSinglePageAsync(String exp
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -928,7 +928,7 @@ private Mono> listSinglePageAsync(String exp
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1041,7 +1041,7 @@ private Mono> listAvailableSizesSinglePag
return Mono
.error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listAvailableSizes(this.client.getEndpoint(), apiVersion,
@@ -1083,7 +1083,7 @@ private Mono> listAvailableSizesSinglePag
return Mono
.error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1202,7 +1202,7 @@ public Mono> startMigrationToVirtualMachineScaleSetWithResponseAs
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
return FluxUtil
.withContext(context -> service.startMigrationToVirtualMachineScaleSet(this.client.getEndpoint(),
@@ -1249,7 +1249,7 @@ private Mono> startMigrationToVirtualMachineScaleSetWithResponseA
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
context = this.client.mergeContext(context);
return service.startMigrationToVirtualMachineScaleSet(this.client.getEndpoint(), apiVersion,
@@ -1345,7 +1345,7 @@ public Mono> cancelMigrationToVirtualMachineScaleSetWithResponseA
return Mono
.error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
return FluxUtil
.withContext(context -> service.cancelMigrationToVirtualMachineScaleSet(this.client.getEndpoint(),
apiVersion, this.client.getSubscriptionId(), resourceGroupName, availabilitySetName, context))
@@ -1382,7 +1382,7 @@ private Mono> cancelMigrationToVirtualMachineScaleSetWithResponse
return Mono
.error(new IllegalArgumentException("Parameter availabilitySetName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
context = this.client.mergeContext(context);
return service.cancelMigrationToVirtualMachineScaleSet(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, availabilitySetName, context);
@@ -1473,7 +1473,7 @@ public Mono> validateMigrationToVirtualMachineScaleSetWithRespons
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
return FluxUtil
.withContext(context -> service.validateMigrationToVirtualMachineScaleSet(this.client.getEndpoint(),
@@ -1519,7 +1519,7 @@ private Mono> validateMigrationToVirtualMachineScaleSetWithRespon
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
context = this.client.mergeContext(context);
return service.validateMigrationToVirtualMachineScaleSet(this.client.getEndpoint(), apiVersion,
@@ -1617,7 +1617,7 @@ public Mono>> convertToVirtualMachineScaleSetWithRespo
if (parameters != null) {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
return FluxUtil
.withContext(context -> service.convertToVirtualMachineScaleSet(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, availabilitySetName, parameters, context))
@@ -1659,7 +1659,7 @@ private Mono>> convertToVirtualMachineScaleSetWithResp
if (parameters != null) {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
context = this.client.mergeContext(context);
return service.convertToVirtualMachineScaleSet(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, availabilitySetName, parameters, context);
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationGroupsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationGroupsClientImpl.java
index 144340c9c645..1d14c801bfef 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationGroupsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationGroupsClientImpl.java
@@ -185,7 +185,7 @@ public Mono> getByResourceGroupWithRespo
return Mono.error(
new IllegalArgumentException("Parameter capacityReservationGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, capacityReservationGroupName, expand, accept, context))
@@ -227,7 +227,7 @@ private Mono> getByResourceGroupWithResp
return Mono.error(
new IllegalArgumentException("Parameter capacityReservationGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -332,7 +332,7 @@ public Mono> createOrUpdateWithResponseA
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -380,7 +380,7 @@ private Mono> createOrUpdateWithResponse
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -486,7 +486,7 @@ public Mono> updateWithResponseAsync(Str
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -534,7 +534,7 @@ private Mono> updateWithResponseAsync(St
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -631,7 +631,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St
return Mono.error(
new IllegalArgumentException("Parameter capacityReservationGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, capacityReservationGroupName, context))
@@ -670,7 +670,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
return Mono.error(
new IllegalArgumentException("Parameter capacityReservationGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
capacityReservationGroupName, context);
@@ -758,7 +758,7 @@ private Mono> listByResourceGroupSi
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion,
@@ -798,7 +798,7 @@ private Mono> listByResourceGroupSi
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -937,7 +937,7 @@ private Mono> listSinglePageAsync(
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -978,7 +978,7 @@ private Mono> listSinglePageAsync(
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationsClientImpl.java
index 7fa3a274780e..6793d0fea9ae 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CapacityReservationsClientImpl.java
@@ -178,7 +178,7 @@ public Mono> getWithResponseAsync(String reso
return Mono.error(
new IllegalArgumentException("Parameter capacityReservationName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -226,7 +226,7 @@ private Mono> getWithResponseAsync(String res
return Mono.error(
new IllegalArgumentException("Parameter capacityReservationName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -336,7 +336,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -390,7 +390,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -619,7 +619,7 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -672,7 +672,7 @@ private Mono>> updateWithResponseAsync(String resource
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -887,7 +887,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(
new IllegalArgumentException("Parameter capacityReservationName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
return FluxUtil
.withContext(
context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -933,7 +933,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(
new IllegalArgumentException("Parameter capacityReservationName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
capacityReservationGroupName, capacityReservationName, context);
@@ -1147,7 +1147,7 @@ private Mono> listByCapacityReservationG
return Mono.error(
new IllegalArgumentException("Parameter capacityReservationGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByCapacityReservationGroup(this.client.getEndpoint(), apiVersion,
@@ -1194,7 +1194,7 @@ private Mono> listByCapacityReservationG
return Mono.error(
new IllegalArgumentException("Parameter capacityReservationGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientImpl.java
index 40a7001e15d8..49151b041f0f 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ComputeManagementClientImpl.java
@@ -32,6 +32,7 @@
import com.azure.resourcemanager.compute.fluent.GalleryScriptsClient;
import com.azure.resourcemanager.compute.fluent.GallerySharingProfilesClient;
import com.azure.resourcemanager.compute.fluent.ImagesClient;
+import com.azure.resourcemanager.compute.fluent.InterconnectBlocksClient;
import com.azure.resourcemanager.compute.fluent.LogAnalyticsClient;
import com.azure.resourcemanager.compute.fluent.OperationsClient;
import com.azure.resourcemanager.compute.fluent.ProximityPlacementGroupsClient;
@@ -375,6 +376,20 @@ public CapacityReservationsClient getCapacityReservations() {
return this.capacityReservations;
}
+ /**
+ * The InterconnectBlocksClient object to access its operations.
+ */
+ private final InterconnectBlocksClient interconnectBlocks;
+
+ /**
+ * Gets the InterconnectBlocksClient object to access its operations.
+ *
+ * @return the InterconnectBlocksClient object.
+ */
+ public InterconnectBlocksClient getInterconnectBlocks() {
+ return this.interconnectBlocks;
+ }
+
/**
* The VirtualMachineRunCommandsClient object to access its operations.
*/
@@ -872,6 +887,7 @@ public GallerySharingProfilesClient getGallerySharingProfiles() {
this.restorePoints = new RestorePointsClientImpl(this);
this.capacityReservationGroups = new CapacityReservationGroupsClientImpl(this);
this.capacityReservations = new CapacityReservationsClientImpl(this);
+ this.interconnectBlocks = new InterconnectBlocksClientImpl(this);
this.virtualMachineRunCommands = new VirtualMachineRunCommandsClientImpl(this);
this.virtualMachineScaleSetVMRunCommands = new VirtualMachineScaleSetVMRunCommandsClientImpl(this);
this.disks = new DisksClientImpl(this);
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostGroupsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostGroupsClientImpl.java
index e7fcf5b597ba..8c7319ac80ac 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostGroupsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostGroupsClientImpl.java
@@ -174,7 +174,7 @@ public Mono> getByResourceGroupWithResponseAsy
if (hostGroupName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion,
@@ -215,7 +215,7 @@ private Mono> getByResourceGroupWithResponseAs
if (hostGroupName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -313,7 +313,7 @@ public Mono> createOrUpdateWithResponseAsync(S
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -360,7 +360,7 @@ private Mono> createOrUpdateWithResponseAsync(
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -461,7 +461,7 @@ public Mono> updateWithResponseAsync(String re
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -507,7 +507,7 @@ private Mono> updateWithResponseAsync(String r
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -597,7 +597,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St
if (hostGroupName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, hostGroupName, context))
@@ -633,7 +633,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
if (hostGroupName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
hostGroupName, context);
@@ -709,7 +709,7 @@ private Mono> listByResourceGroupSinglePa
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion,
@@ -746,7 +746,7 @@ private Mono> listByResourceGroupSinglePa
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -841,7 +841,7 @@ private Mono> listSinglePageAsync() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -872,7 +872,7 @@ private Mono> listSinglePageAsync(Context
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostsClientImpl.java
index d9da6bedac4b..04360eb3d58f 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DedicatedHostsClientImpl.java
@@ -202,7 +202,7 @@ public Mono> getWithResponseAsync(String resourceGr
if (hostName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -246,7 +246,7 @@ private Mono> getWithResponseAsync(String resourceG
if (hostName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -347,7 +347,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -397,7 +397,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -603,7 +603,7 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -653,7 +653,7 @@ private Mono>> updateWithResponseAsync(String resource
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -850,7 +850,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
if (hostName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, hostGroupName, hostName, context))
@@ -890,7 +890,7 @@ private Mono>> deleteWithResponseAsync(String resource
if (hostName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
hostGroupName, hostName, context);
@@ -1068,7 +1068,7 @@ private Mono> listByHostGroupSinglePageAsync(S
if (hostGroupName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByHostGroup(this.client.getEndpoint(), apiVersion,
@@ -1109,7 +1109,7 @@ private Mono> listByHostGroupSinglePageAsync(S
if (hostGroupName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1223,7 +1223,7 @@ private Mono> listAvailableSizesSinglePageAsync(String res
if (hostName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listAvailableSizes(this.client.getEndpoint(), apiVersion,
@@ -1268,7 +1268,7 @@ private Mono> listAvailableSizesSinglePageAsync(String res
if (hostName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1388,7 +1388,7 @@ public Mono>> redeployWithResponseAsync(String resourc
if (hostName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
return FluxUtil
.withContext(context -> service.redeploy(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, hostGroupName, hostName, context))
@@ -1431,7 +1431,7 @@ private Mono>> redeployWithResponseAsync(String resour
if (hostName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
context = this.client.mergeContext(context);
return service.redeploy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
resourceGroupName, hostGroupName, hostName, context);
@@ -1638,7 +1638,7 @@ public Mono>> restartWithResponseAsync(String resource
if (hostName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
return FluxUtil
.withContext(context -> service.restart(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, hostGroupName, hostName, context))
@@ -1681,7 +1681,7 @@ private Mono>> restartWithResponseAsync(String resourc
if (hostName == null) {
return Mono.error(new IllegalArgumentException("Parameter hostName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
context = this.client.mergeContext(context);
return service.restart(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
resourceGroupName, hostGroupName, hostName, context);
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ImagesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ImagesClientImpl.java
index b5fe7440345a..13cba9dd2eba 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ImagesClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ImagesClientImpl.java
@@ -173,7 +173,7 @@ public Mono> getByResourceGroupWithResponseAsync(String res
if (imageName == null) {
return Mono.error(new IllegalArgumentException("Parameter imageName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion,
@@ -211,7 +211,7 @@ private Mono> getByResourceGroupWithResponseAsync(String re
if (imageName == null) {
return Mono.error(new IllegalArgumentException("Parameter imageName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -304,7 +304,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil.withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
@@ -348,7 +348,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -538,7 +538,7 @@ public Mono>> updateWithResponseAsync(String resourceG
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -584,7 +584,7 @@ private Mono>> updateWithResponseAsync(String resource
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -764,7 +764,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
if (imageName == null) {
return Mono.error(new IllegalArgumentException("Parameter imageName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, imageName, context))
@@ -800,7 +800,7 @@ private Mono>> deleteWithResponseAsync(String resource
if (imageName == null) {
return Mono.error(new IllegalArgumentException("Parameter imageName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
imageName, context);
@@ -960,7 +960,7 @@ private Mono> listByResourceGroupSinglePageAsync(Strin
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion,
@@ -997,7 +997,7 @@ private Mono> listByResourceGroupSinglePageAsync(Strin
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -1090,7 +1090,7 @@ private Mono> listSinglePageAsync() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -1121,7 +1121,7 @@ private Mono> listSinglePageAsync(Context context) {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/InterconnectBlocksClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/InterconnectBlocksClientImpl.java
new file mode 100644
index 000000000000..cd0fedf259ed
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/InterconnectBlocksClientImpl.java
@@ -0,0 +1,1361 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.compute.fluent.InterconnectBlocksClient;
+import com.azure.resourcemanager.compute.fluent.models.InterconnectBlockInner;
+import com.azure.resourcemanager.compute.implementation.models.InterconnectBlockListResult;
+import com.azure.resourcemanager.compute.models.ApiErrorException;
+import com.azure.resourcemanager.compute.models.InterconnectBlockExpandTypes;
+import com.azure.resourcemanager.compute.models.InterconnectBlockUpdate;
+import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete;
+import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet;
+import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in InterconnectBlocksClient.
+ */
+public final class InterconnectBlocksClientImpl implements InnerSupportsGet,
+ InnerSupportsListing, InnerSupportsDelete, InterconnectBlocksClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final InterconnectBlocksService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ComputeManagementClientImpl client;
+
+ /**
+ * Initializes an instance of InterconnectBlocksClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ InterconnectBlocksClientImpl(ComputeManagementClientImpl client) {
+ this.service = RestProxy.create(InterconnectBlocksService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ComputeManagementClientInterconnectBlocks to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "ComputeManagementClientInterconnectBlocks")
+ public interface InterconnectBlocksService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks/{interconnectBlockName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("interconnectBlockName") String interconnectBlockName,
+ @QueryParam("$expand") InterconnectBlockExpandTypes expand, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks/{interconnectBlockName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("interconnectBlockName") String interconnectBlockName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") InterconnectBlockInner resource, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks/{interconnectBlockName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("interconnectBlockName") String interconnectBlockName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") InterconnectBlockUpdate properties, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks/{interconnectBlockName}")
+ @ExpectedResponses({ 200, 202, 204 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("interconnectBlockName") String interconnectBlockName, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/interconnectBlocks")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ApiErrorException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Retrieves information about an Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param expand The expand expression to apply on the operation. 'instanceView' retrieves a snapshot of the runtime
+ * properties of the Interconnect Block that is managed by the platform and can change outside of control plane
+ * operations.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockExpandTypes expand) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (interconnectBlockName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null."));
+ }
+ final String apiVersion = "2026-03-01";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, interconnectBlockName, expand, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Retrieves information about an Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param expand The expand expression to apply on the operation. 'instanceView' retrieves a snapshot of the runtime
+ * properties of the Interconnect Block that is managed by the platform and can change outside of control plane
+ * operations.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockExpandTypes expand, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (interconnectBlockName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null."));
+ }
+ final String apiVersion = "2026-03-01";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, interconnectBlockName, expand, accept, context);
+ }
+
+ /**
+ * Retrieves information about an Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono getByResourceGroupAsync(String resourceGroupName,
+ String interconnectBlockName) {
+ final InterconnectBlockExpandTypes expand = null;
+ return getByResourceGroupWithResponseAsync(resourceGroupName, interconnectBlockName, expand)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Retrieves information about an Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param expand The expand expression to apply on the operation. 'instanceView' retrieves a snapshot of the runtime
+ * properties of the Interconnect Block that is managed by the platform and can change outside of control plane
+ * operations.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockExpandTypes expand, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, interconnectBlockName, expand, context).block();
+ }
+
+ /**
+ * Retrieves information about an Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public InterconnectBlockInner getByResourceGroup(String resourceGroupName, String interconnectBlockName) {
+ final InterconnectBlockExpandTypes expand = null;
+ return getByResourceGroupWithResponse(resourceGroupName, interconnectBlockName, expand, Context.NONE)
+ .getValue();
+ }
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockInner resource) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (interconnectBlockName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null."));
+ }
+ if (resource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String apiVersion = "2026-03-01";
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, interconnectBlockName, contentType, accept,
+ resource, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockInner resource, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (interconnectBlockName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null."));
+ }
+ if (resource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String apiVersion = "2026-03-01";
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, interconnectBlockName, contentType, accept, resource, context);
+ }
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, InterconnectBlockInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String interconnectBlockName, InterconnectBlockInner resource) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, interconnectBlockName, resource);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), InterconnectBlockInner.class, InterconnectBlockInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, InterconnectBlockInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String interconnectBlockName, InterconnectBlockInner resource, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, interconnectBlockName, resource, context);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), InterconnectBlockInner.class, InterconnectBlockInner.class, context);
+ }
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, InterconnectBlockInner>
+ beginCreateOrUpdate(String resourceGroupName, String interconnectBlockName, InterconnectBlockInner resource) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, interconnectBlockName, resource).getSyncPoller();
+ }
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, InterconnectBlockInner> beginCreateOrUpdate(
+ String resourceGroupName, String interconnectBlockName, InterconnectBlockInner resource, Context context) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, interconnectBlockName, resource, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono createOrUpdateAsync(String resourceGroupName, String interconnectBlockName,
+ InterconnectBlockInner resource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, interconnectBlockName, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String interconnectBlockName,
+ InterconnectBlockInner resource, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, interconnectBlockName, resource, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public InterconnectBlockInner createOrUpdate(String resourceGroupName, String interconnectBlockName,
+ InterconnectBlockInner resource) {
+ return createOrUpdateAsync(resourceGroupName, interconnectBlockName, resource).block();
+ }
+
+ /**
+ * Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be
+ * modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param resource Parameters supplied to the Create Interconnect Block.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public InterconnectBlockInner createOrUpdate(String resourceGroupName, String interconnectBlockName,
+ InterconnectBlockInner resource, Context context) {
+ return createOrUpdateAsync(resourceGroupName, interconnectBlockName, resource, context).block();
+ }
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> updateWithResponseAsync(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockUpdate properties) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (interconnectBlockName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null."));
+ }
+ if (properties == null) {
+ return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ } else {
+ properties.validate();
+ }
+ final String apiVersion = "2026-03-01";
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, interconnectBlockName, contentType, accept, properties, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockUpdate properties, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (interconnectBlockName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null."));
+ }
+ if (properties == null) {
+ return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
+ } else {
+ properties.validate();
+ }
+ final String apiVersion = "2026-03-01";
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.update(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
+ interconnectBlockName, contentType, accept, properties, context);
+ }
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, InterconnectBlockInner>
+ beginUpdateAsync(String resourceGroupName, String interconnectBlockName, InterconnectBlockUpdate properties) {
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, interconnectBlockName, properties);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), InterconnectBlockInner.class, InterconnectBlockInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, InterconnectBlockInner> beginUpdateAsync(
+ String resourceGroupName, String interconnectBlockName, InterconnectBlockUpdate properties, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, interconnectBlockName, properties, context);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), InterconnectBlockInner.class, InterconnectBlockInner.class, context);
+ }
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, InterconnectBlockInner> beginUpdate(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockUpdate properties) {
+ return this.beginUpdateAsync(resourceGroupName, interconnectBlockName, properties).getSyncPoller();
+ }
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, InterconnectBlockInner> beginUpdate(String resourceGroupName,
+ String interconnectBlockName, InterconnectBlockUpdate properties, Context context) {
+ return this.beginUpdateAsync(resourceGroupName, interconnectBlockName, properties, context).getSyncPoller();
+ }
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono updateAsync(String resourceGroupName, String interconnectBlockName,
+ InterconnectBlockUpdate properties) {
+ return beginUpdateAsync(resourceGroupName, interconnectBlockName, properties).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String interconnectBlockName,
+ InterconnectBlockUpdate properties, Context context) {
+ return beginUpdateAsync(resourceGroupName, interconnectBlockName, properties, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public InterconnectBlockInner update(String resourceGroupName, String interconnectBlockName,
+ InterconnectBlockUpdate properties) {
+ return updateAsync(resourceGroupName, interconnectBlockName, properties).block();
+ }
+
+ /**
+ * Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param properties Parameters supplied to the Update Interconnect Block operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return specifies information about the Interconnect Block.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public InterconnectBlockInner update(String resourceGroupName, String interconnectBlockName,
+ InterconnectBlockUpdate properties, Context context) {
+ return updateAsync(resourceGroupName, interconnectBlockName, properties, context).block();
+ }
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String interconnectBlockName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (interconnectBlockName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null."));
+ }
+ final String apiVersion = "2026-03-01";
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, interconnectBlockName, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String interconnectBlockName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (interconnectBlockName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter interconnectBlockName is required and cannot be null."));
+ }
+ final String apiVersion = "2026-03-01";
+ context = this.client.mergeContext(context);
+ return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
+ interconnectBlockName, context);
+ }
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String interconnectBlockName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, interconnectBlockName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String interconnectBlockName,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, interconnectBlockName, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
+ }
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String interconnectBlockName) {
+ return this.beginDeleteAsync(resourceGroupName, interconnectBlockName).getSyncPoller();
+ }
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String interconnectBlockName,
+ Context context) {
+ return this.beginDeleteAsync(resourceGroupName, interconnectBlockName, context).getSyncPoller();
+ }
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono deleteAsync(String resourceGroupName, String interconnectBlockName) {
+ return beginDeleteAsync(resourceGroupName, interconnectBlockName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String interconnectBlockName, Context context) {
+ return beginDeleteAsync(resourceGroupName, interconnectBlockName, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String interconnectBlockName) {
+ deleteAsync(resourceGroupName, interconnectBlockName).block();
+ }
+
+ /**
+ * Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM
+ * instances associated with the Interconnect Block.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param interconnectBlockName The name of the Interconnect Block.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String interconnectBlockName, Context context) {
+ deleteAsync(resourceGroupName, interconnectBlockName, context).block();
+ }
+
+ /**
+ * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response
+ * to get the next page of Interconnect Blocks.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String apiVersion = "2026-03-01";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion,
+ this.client.getSubscriptionId(), resourceGroupName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response
+ * to get the next page of Interconnect Blocks.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String apiVersion = "2026-03-01";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ resourceGroupName, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response
+ * to get the next page of Interconnect Blocks.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response
+ * to get the next page of Interconnect Blocks.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response
+ * to get the next page of Interconnect Blocks.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName));
+ }
+
+ /**
+ * Lists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response
+ * to get the next page of Interconnect Blocks.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context));
+ }
+
+ /**
+ * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the
+ * next page of Interconnect Blocks.
+ *
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String apiVersion = "2026-03-01";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
+ accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the
+ * next page of Interconnect Blocks.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String apiVersion = "2026-03-01";
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the
+ * next page of Interconnect Blocks.
+ *
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the
+ * next page of Interconnect Blocks.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(context),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the
+ * next page of Interconnect Blocks.
+ *
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * Lists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the
+ * next page of Interconnect Blocks.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ApiErrorException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list Interconnect Block operation response along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink,
+ Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/LogAnalyticsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/LogAnalyticsClientImpl.java
index 4428db8b3bfb..688a743818bf 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/LogAnalyticsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/LogAnalyticsClientImpl.java
@@ -114,7 +114,7 @@ public Mono>> exportRequestRateByIntervalWithResponseA
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -155,7 +155,7 @@ private Mono>> exportRequestRateByIntervalWithResponse
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -343,7 +343,7 @@ public Mono>> exportThrottledRequestsWithResponseAsync
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -383,7 +383,7 @@ private Mono>> exportThrottledRequestsWithResponseAsyn
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/OperationsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/OperationsClientImpl.java
index 5bcd22a878d0..cd95c02ad8f8 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/OperationsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/OperationsClientImpl.java
@@ -91,7 +91,7 @@ private Mono> listSinglePageAsync() {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
@@ -115,7 +115,7 @@ private Mono> listSinglePageAsync(Context context)
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.list(this.client.getEndpoint(), apiVersion, accept, context)
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ProximityPlacementGroupsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ProximityPlacementGroupsClientImpl.java
index 6b5760d91cd8..d9ec5c203499 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ProximityPlacementGroupsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/ProximityPlacementGroupsClientImpl.java
@@ -177,7 +177,7 @@ public Mono> getByResourceGroupWithRespon
return Mono.error(
new IllegalArgumentException("Parameter proximityPlacementGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion,
@@ -219,7 +219,7 @@ private Mono> getByResourceGroupWithRespo
return Mono.error(
new IllegalArgumentException("Parameter proximityPlacementGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -318,7 +318,7 @@ public Mono> createOrUpdateWithResponseAs
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -365,7 +365,7 @@ private Mono> createOrUpdateWithResponseA
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -464,7 +464,7 @@ public Mono> updateWithResponseAsync(Stri
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -511,7 +511,7 @@ private Mono> updateWithResponseAsync(Str
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -600,7 +600,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St
return Mono.error(
new IllegalArgumentException("Parameter proximityPlacementGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, proximityPlacementGroupName, context))
@@ -637,7 +637,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
return Mono.error(
new IllegalArgumentException("Parameter proximityPlacementGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
proximityPlacementGroupName, context);
@@ -714,7 +714,7 @@ public void delete(String resourceGroupName, String proximityPlacementGroupName)
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion,
@@ -750,7 +750,7 @@ public void delete(String resourceGroupName, String proximityPlacementGroupName)
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -839,7 +839,7 @@ private Mono> listSinglePageAsync()
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -869,7 +869,7 @@ private Mono> listSinglePageAsync(Co
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointCollectionsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointCollectionsClientImpl.java
index 2b5759211657..91a3a250f7c0 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointCollectionsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointCollectionsClientImpl.java
@@ -183,7 +183,7 @@ public Mono> getByResourceGroupWithRespons
return Mono.error(
new IllegalArgumentException("Parameter restorePointCollectionName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, restorePointCollectionName, expand, accept, context))
@@ -223,7 +223,7 @@ private Mono> getByResourceGroupWithRespon
return Mono.error(
new IllegalArgumentException("Parameter restorePointCollectionName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -322,7 +322,7 @@ public Mono> createOrUpdateWithResponseAsy
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -370,7 +370,7 @@ private Mono> createOrUpdateWithResponseAs
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -472,7 +472,7 @@ public Mono> updateWithResponseAsync(Strin
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -519,7 +519,7 @@ private Mono> updateWithResponseAsync(Stri
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -610,7 +610,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono.error(
new IllegalArgumentException("Parameter restorePointCollectionName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, restorePointCollectionName, context))
@@ -648,7 +648,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono.error(
new IllegalArgumentException("Parameter restorePointCollectionName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
restorePointCollectionName, context);
@@ -820,7 +820,7 @@ public void delete(String resourceGroupName, String restorePointCollectionName,
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion,
@@ -856,7 +856,7 @@ public void delete(String resourceGroupName, String restorePointCollectionName,
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -948,7 +948,7 @@ private Mono> listSinglePageAsync() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -980,7 +980,7 @@ private Mono> listSinglePageAsync(Con
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointsClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointsClientImpl.java
index f549128bdf5b..e701c7080d4e 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointsClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/RestorePointsClientImpl.java
@@ -136,7 +136,7 @@ public Mono> getWithResponseAsync(String resourceGro
return Mono
.error(new IllegalArgumentException("Parameter restorePointName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -181,7 +181,7 @@ private Mono> getWithResponseAsync(String resourceGr
return Mono
.error(new IllegalArgumentException("Parameter restorePointName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
@@ -286,7 +286,7 @@ public Mono>> createWithResponseAsync(String resourceG
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -337,7 +337,7 @@ private Mono>> createWithResponseAsync(String resource
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -541,7 +541,7 @@ public Mono>> deleteWithResponseAsync(String resourceG
return Mono
.error(new IllegalArgumentException("Parameter restorePointName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
return FluxUtil
.withContext(
context -> service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -584,7 +584,7 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono
.error(new IllegalArgumentException("Parameter restorePointName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
restorePointCollectionName, restorePointName, context);
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SshPublicKeysClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SshPublicKeysClientImpl.java
index 4608f97afd69..adbac53a056f 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SshPublicKeysClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/SshPublicKeysClientImpl.java
@@ -187,7 +187,7 @@ public Mono> getByResourceGroupWithResponseA
return Mono
.error(new IllegalArgumentException("Parameter sshPublicKeyName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), apiVersion,
@@ -226,7 +226,7 @@ private Mono> getByResourceGroupWithResponse
return Mono
.error(new IllegalArgumentException("Parameter sshPublicKeyName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.getByResourceGroup(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -317,7 +317,7 @@ public Mono> createWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -364,7 +364,7 @@ private Mono> createWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -461,7 +461,7 @@ public Mono> updateWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -508,7 +508,7 @@ private Mono> updateWithResponseAsync(String
} else {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
@@ -597,7 +597,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St
return Mono
.error(new IllegalArgumentException("Parameter sshPublicKeyName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
return FluxUtil
.withContext(context -> service.delete(this.client.getEndpoint(), apiVersion,
this.client.getSubscriptionId(), resourceGroupName, sshPublicKeyName, context))
@@ -634,7 +634,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
return Mono
.error(new IllegalArgumentException("Parameter sshPublicKeyName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
context = this.client.mergeContext(context);
return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName,
sshPublicKeyName, context);
@@ -711,7 +711,7 @@ public void delete(String resourceGroupName, String sshPublicKeyName) {
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), apiVersion,
@@ -748,7 +748,7 @@ private Mono> listByResourceGroupSingle
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
@@ -841,7 +841,7 @@ private Mono> listSinglePageAsync() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -872,7 +872,7 @@ private Mono> listSinglePageAsync(Conte
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context)
@@ -973,7 +973,7 @@ public Mono> generateKeyPairWit
if (parameters != null) {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.generateKeyPair(this.client.getEndpoint(), apiVersion,
@@ -1018,7 +1018,7 @@ private Mono> generateKeyPairWi
if (parameters != null) {
parameters.validate();
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.generateKeyPair(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/UsagesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/UsagesClientImpl.java
index 7ed6b4d733b5..dac82a7629d5 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/UsagesClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/UsagesClientImpl.java
@@ -101,7 +101,7 @@ private Mono> listSinglePageAsync(String location) {
if (location == null) {
return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -136,7 +136,7 @@ private Mono> listSinglePageAsync(String location, Con
if (location == null) {
return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
diff --git a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionImagesClientImpl.java b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionImagesClientImpl.java
index 92d70d5626af..ccafeafcb115 100644
--- a/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionImagesClientImpl.java
+++ b/sdk/compute/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineExtensionImagesClientImpl.java
@@ -123,7 +123,7 @@ public Mono> getWithResponseAsync(St
if (version == null) {
return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(),
@@ -167,7 +167,7 @@ private Mono> getWithResponseAsync(S
if (version == null) {
return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location,
@@ -257,7 +257,7 @@ public Mono>> listTypesWithResp
if (publisherName == null) {
return Mono.error(new IllegalArgumentException("Parameter publisherName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listTypes(this.client.getEndpoint(), apiVersion,
@@ -294,7 +294,7 @@ private Mono>> listTypesWithRes
if (publisherName == null) {
return Mono.error(new IllegalArgumentException("Parameter publisherName is required and cannot be null."));
}
- final String apiVersion = "2025-11-01";
+ final String apiVersion = "2026-03-01";
final String accept = "application/json";
context = this.client.mergeContext(context);
return service.listTypes(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), location,
@@ -383,7 +383,7 @@ public Mono