diff --git a/src/Compute/Compute.Management.Sdk/Generated/AvailabilitySetsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/AvailabilitySetsOperations.cs index aee3fe546597..935fd6b707eb 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/AvailabilitySetsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/AvailabilitySetsOperations.cs @@ -84,7 +84,7 @@ internal AvailabilitySetsOperations (ComputeManagementClient client) } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -303,7 +303,7 @@ internal AvailabilitySetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -527,7 +527,7 @@ internal AvailabilitySetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "availabilitySetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -764,7 +764,7 @@ internal AvailabilitySetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "availabilitySetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1004,7 +1004,7 @@ internal AvailabilitySetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "availabilitySetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1234,7 +1234,7 @@ internal AvailabilitySetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "availabilitySetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1439,7 +1439,7 @@ internal AvailabilitySetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "availabilitySetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1679,7 +1679,7 @@ internal AvailabilitySetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "availabilitySetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; MigrateToVirtualMachineScaleSetInput parameters = new MigrateToVirtualMachineScaleSetInput(); if(virtualMachineScaleSetFlexible != null) { @@ -1901,7 +1901,7 @@ internal AvailabilitySetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "availabilitySetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; MigrateToVirtualMachineScaleSetInput parameters = new MigrateToVirtualMachineScaleSetInput(); if(virtualMachineScaleSetFlexible != null) { @@ -2122,7 +2122,7 @@ internal AvailabilitySetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "availabilitySetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2351,7 +2351,7 @@ internal AvailabilitySetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "availabilitySetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; ConvertToVirtualMachineScaleSetInput parameters = new ConvertToVirtualMachineScaleSetInput(); if(virtualMachineScaleSetName != null) { diff --git a/src/Compute/Compute.Management.Sdk/Generated/CapacityReservationGroupsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/CapacityReservationGroupsOperations.cs index bcf3cf4e91e7..ea0acd5c6efc 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/CapacityReservationGroupsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/CapacityReservationGroupsOperations.cs @@ -98,7 +98,7 @@ internal CapacityReservationGroupsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -331,7 +331,7 @@ internal CapacityReservationGroupsOperations (ComputeManagementClient client) } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -569,7 +569,7 @@ internal CapacityReservationGroupsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -814,7 +814,7 @@ internal CapacityReservationGroupsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "capacityReservationGroupName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1073,7 +1073,7 @@ internal CapacityReservationGroupsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "capacityReservationGroupName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1307,7 +1307,7 @@ internal CapacityReservationGroupsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "capacityReservationGroupName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/CapacityReservationsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/CapacityReservationsOperations.cs index 825b94d95144..5e27cb30cb28 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/CapacityReservationsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/CapacityReservationsOperations.cs @@ -114,7 +114,7 @@ internal CapacityReservationsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -359,7 +359,7 @@ internal CapacityReservationsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -700,7 +700,7 @@ internal CapacityReservationsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "capacityReservationName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -981,7 +981,7 @@ internal CapacityReservationsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "capacityReservationName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1225,7 +1225,7 @@ internal CapacityReservationsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "capacityReservationName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/ComputeManagementClient.cs b/src/Compute/Compute.Management.Sdk/Generated/ComputeManagementClient.cs index 839812535648..33ba9e75e47a 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/ComputeManagementClient.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/ComputeManagementClient.cs @@ -76,6 +76,10 @@ public partial class ComputeManagementClient : Microsoft.Rest.ServiceClient public virtual IImagesOperations Images { get; private set; } /// + /// Gets the IInterconnectBlocksOperations + /// + public virtual IInterconnectBlocksOperations InterconnectBlocks { get; private set; } + /// /// Gets the IVirtualMachineImagesEdgeZoneOperations /// public virtual IVirtualMachineImagesEdgeZoneOperations VirtualMachineImagesEdgeZone { get; private set; } @@ -498,6 +502,7 @@ private void Initialize() this.CapacityReservationGroups = new CapacityReservationGroupsOperations(this); this.DedicatedHostGroups = new DedicatedHostGroupsOperations(this); this.Images = new ImagesOperations(this); + this.InterconnectBlocks = new InterconnectBlocksOperations(this); this.VirtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneOperations(this); this.VirtualMachineImages = new VirtualMachineImagesOperations(this); this.LogAnalytics = new LogAnalyticsOperations(this); diff --git a/src/Compute/Compute.Management.Sdk/Generated/DedicatedHostGroupsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/DedicatedHostGroupsOperations.cs index 2810814429c7..5738d0ae761a 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/DedicatedHostGroupsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/DedicatedHostGroupsOperations.cs @@ -81,7 +81,7 @@ internal DedicatedHostGroupsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -297,7 +297,7 @@ internal DedicatedHostGroupsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -527,7 +527,7 @@ internal DedicatedHostGroupsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -771,7 +771,7 @@ internal DedicatedHostGroupsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "hostGroupName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1029,7 +1029,7 @@ internal DedicatedHostGroupsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "hostGroupName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1259,7 +1259,7 @@ internal DedicatedHostGroupsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "hostGroupName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/DedicatedHostsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/DedicatedHostsOperations.cs index 6066ac23e195..306d20602680 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/DedicatedHostsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/DedicatedHostsOperations.cs @@ -107,7 +107,7 @@ internal DedicatedHostsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "hostGroupName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -347,7 +347,7 @@ internal DedicatedHostsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -671,7 +671,7 @@ internal DedicatedHostsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "hostName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -978,7 +978,7 @@ internal DedicatedHostsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "hostName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1259,7 +1259,7 @@ internal DedicatedHostsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "hostName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1512,7 +1512,7 @@ internal DedicatedHostsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "hostName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1732,7 +1732,7 @@ internal DedicatedHostsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "hostName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1965,7 +1965,7 @@ internal DedicatedHostsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "hostName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/IComputeManagementClient.cs b/src/Compute/Compute.Management.Sdk/Generated/IComputeManagementClient.cs index 3538f3d57855..48ec3cf1e689 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/IComputeManagementClient.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/IComputeManagementClient.cs @@ -87,6 +87,11 @@ public partial interface IComputeManagementClient : System.IDisposable /// IImagesOperations Images { get; } + /// + /// Gets the IInterconnectBlocksOperations + /// + IInterconnectBlocksOperations InterconnectBlocks { get; } + /// /// Gets the IVirtualMachineImagesEdgeZoneOperations /// diff --git a/src/Compute/Compute.Management.Sdk/Generated/IInterconnectBlocksOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/IInterconnectBlocksOperations.cs new file mode 100644 index 000000000000..97bdeffe2936 --- /dev/null +++ b/src/Compute/Compute.Management.Sdk/Generated/IInterconnectBlocksOperations.cs @@ -0,0 +1,327 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.Compute +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// InterconnectBlocksOperations operations. + /// + public partial interface IInterconnectBlocksOperations + { + /// + /// Lists all of the Interconnect Blocks in the subscription. Use the nextLink + /// property in the response to get the next page of Interconnect Blocks. + /// + /// + /// Lists all of the Interconnect Blocks in the subscription. Use the nextLink + /// property in the response to get the next page of Interconnect Blocks. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListBySubscriptionWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// 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. + /// + /// + /// 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. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Retrieves information about an Interconnect Block. + /// + /// + /// Retrieves information about an Interconnect Block. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// 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. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string interconnectBlockName, string expand = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Creates or updates an Interconnect Block. When updating an Interconnect + /// Block, only tags and sku.capacity may be modified. + /// + /// + /// Creates or updates an Interconnect Block. When updating an Interconnect + /// Block, only tags and sku.capacity may be modified. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// Parameters supplied to the Create Interconnect Block. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string interconnectBlockName, InterconnectBlock resource, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Updates an Interconnect Block. When updating an Interconnect Block, only + /// tags and sku.capacity may be modified. + /// + /// + /// Updates an Interconnect Block. When updating an Interconnect Block, only + /// tags and sku.capacity may be modified. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// Parameters supplied to the Update Interconnect Block operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string interconnectBlockName, InterconnectBlockUpdate properties, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Deletes an Interconnect Block. The operation is only allowed when there are + /// no virtual machines or VMSS VM instances associated with the Interconnect + /// 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. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + System.Threading.Tasks.Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string interconnectBlockName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Creates or updates an Interconnect Block. When updating an Interconnect + /// Block, only tags and sku.capacity may be modified. + /// + /// + /// Creates or updates an Interconnect Block. When updating an Interconnect + /// Block, only tags and sku.capacity may be modified. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// Parameters supplied to the Create Interconnect Block. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string interconnectBlockName, InterconnectBlock resource, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Updates an Interconnect Block. When updating an Interconnect Block, only + /// tags and sku.capacity may be modified. + /// + /// + /// Updates an Interconnect Block. When updating an Interconnect Block, only + /// tags and sku.capacity may be modified. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// Parameters supplied to the Update Interconnect Block operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string interconnectBlockName, InterconnectBlockUpdate properties, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Deletes an Interconnect Block. The operation is only allowed when there are + /// no virtual machines or VMSS VM instances associated with the Interconnect + /// 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. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + System.Threading.Tasks.Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string interconnectBlockName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Lists all of the Interconnect Blocks in the subscription. Use the nextLink + /// property in the response to get the next page of Interconnect Blocks. + /// + /// + /// Lists all of the Interconnect Blocks in the subscription. Use the nextLink + /// property in the response to get the next page of Interconnect Blocks. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// 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. + /// + /// + /// 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. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + } +} \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/ImagesOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/ImagesOperations.cs index 4d18794e4afc..278a5acb6fc8 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/ImagesOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/ImagesOperations.cs @@ -81,7 +81,7 @@ internal ImagesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -297,7 +297,7 @@ internal ImagesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -525,7 +525,7 @@ internal ImagesOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -839,7 +839,7 @@ internal ImagesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "imageName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1110,7 +1110,7 @@ internal ImagesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "imageName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1371,7 +1371,7 @@ internal ImagesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "imageName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/InterconnectBlocksOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/InterconnectBlocksOperations.cs new file mode 100644 index 000000000000..9136b67b6a31 --- /dev/null +++ b/src/Compute/Compute.Management.Sdk/Generated/InterconnectBlocksOperations.cs @@ -0,0 +1,1887 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.Compute +{ + using System.Linq; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + + /// + /// InterconnectBlocksOperations operations. + /// + internal partial class InterconnectBlocksOperations : Microsoft.Rest.IServiceOperations, IInterconnectBlocksOperations + { + /// + /// Initializes a new instance of the InterconnectBlocksOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal InterconnectBlocksOperations (ComputeManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + this.Client = client; + } + + /// + /// Gets a reference to the ComputeManagementClient + /// + public ComputeManagementClient Client { get; private set; } + + /// + /// Lists all of the Interconnect Blocks in the subscription. Use the nextLink + /// property in the response to get the next page of Interconnect Blocks. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListBySubscriptionWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (this.Client.SubscriptionId != null) + { + if (this.Client.SubscriptionId.Length < 1) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + string apiVersion = "2026-03-01"; + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Compute/interconnectBlocks").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// 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. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (this.Client.SubscriptionId != null) + { + if (this.Client.SubscriptionId.Length < 1) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); + } + } + string apiVersion = "2026-03-01"; + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// Retrieves information about an Interconnect Block. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// 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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> GetWithHttpMessagesAsync(string resourceGroupName, string interconnectBlockName, string expand = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (this.Client.SubscriptionId != null) + { + if (this.Client.SubscriptionId.Length < 1) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (interconnectBlockName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "interconnectBlockName"); + } + + + string apiVersion = "2026-03-01"; + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("interconnectBlockName", interconnectBlockName); + tracingParameters.Add("expand", expand); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks/{interconnectBlockName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{interconnectBlockName}", System.Uri.EscapeDataString(interconnectBlockName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// Creates or updates an Interconnect Block. When updating an Interconnect + /// Block, only tags and sku.capacity may be modified. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// Parameters supplied to the Create Interconnect Block. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async System.Threading.Tasks.Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string interconnectBlockName, InterconnectBlock resource, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // Send Request + Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, interconnectBlockName, resource, customHeaders, cancellationToken).ConfigureAwait(false); + return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates an Interconnect Block. When updating an Interconnect Block, only + /// tags and sku.capacity may be modified. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// Parameters supplied to the Update Interconnect Block operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string interconnectBlockName, InterconnectBlockUpdate properties, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // Send Request + Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, interconnectBlockName, properties, customHeaders, cancellationToken).ConfigureAwait(false); + return await this.Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes an Interconnect Block. The operation is only allowed when there are + /// no virtual machines or VMSS VM instances associated with the Interconnect + /// Block. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async System.Threading.Tasks.Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string interconnectBlockName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // Send Request + Microsoft.Rest.Azure.AzureOperationHeaderResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, interconnectBlockName, customHeaders, cancellationToken).ConfigureAwait(false); + return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates or updates an Interconnect Block. When updating an Interconnect + /// Block, only tags and sku.capacity may be modified. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// Parameters supplied to the Create Interconnect Block. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string interconnectBlockName, InterconnectBlock resource, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (resource == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resource"); + } + if (resource != null) + { + resource.Validate(); + } + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (this.Client.SubscriptionId != null) + { + if (this.Client.SubscriptionId.Length < 1) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (interconnectBlockName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "interconnectBlockName"); + } + + string apiVersion = "2026-03-01"; + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("interconnectBlockName", interconnectBlockName); + + tracingParameters.Add("resource", resource); + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks/{interconnectBlockName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{interconnectBlockName}", System.Uri.EscapeDataString(interconnectBlockName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + if(resource != null) + { + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(resource, this.Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings)); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// Updates an Interconnect Block. When updating an Interconnect Block, only + /// tags and sku.capacity may be modified. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// Parameters supplied to the Update Interconnect Block operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string interconnectBlockName, InterconnectBlockUpdate properties, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (properties == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "properties"); + } + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (this.Client.SubscriptionId != null) + { + if (this.Client.SubscriptionId.Length < 1) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (interconnectBlockName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "interconnectBlockName"); + } + + string apiVersion = "2026-03-01"; + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("interconnectBlockName", interconnectBlockName); + + tracingParameters.Add("properties", properties); + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks/{interconnectBlockName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{interconnectBlockName}", System.Uri.EscapeDataString(interconnectBlockName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + if(properties != null) + { + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(properties, this.Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings)); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// Deletes an Interconnect Block. The operation is only allowed when there are + /// no virtual machines or VMSS VM instances associated with the Interconnect + /// Block. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string interconnectBlockName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (this.Client.SubscriptionId != null) + { + if (this.Client.SubscriptionId.Length < 1) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (interconnectBlockName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "interconnectBlockName"); + } + + string apiVersion = "2026-03-01"; + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("interconnectBlockName", interconnectBlockName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/interconnectBlocks/{interconnectBlockName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{interconnectBlockName}", System.Uri.EscapeDataString(interconnectBlockName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationHeaderResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings)); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// Lists all of the Interconnect Blocks in the subscription. Use the nextLink + /// property in the response to get the next page of Interconnect Blocks. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + if (nextPageLink == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListBySubscriptionNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// 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. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + if (nextPageLink == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200) + { + var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + } +} \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/InterconnectBlocksOperationsExtensions.cs b/src/Compute/Compute.Management.Sdk/Generated/InterconnectBlocksOperationsExtensions.cs new file mode 100644 index 000000000000..f05dde9b9691 --- /dev/null +++ b/src/Compute/Compute.Management.Sdk/Generated/InterconnectBlocksOperationsExtensions.cs @@ -0,0 +1,453 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +namespace Microsoft.Azure.Management.Compute +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// Extension methods for InterconnectBlocksOperations + /// + public static partial class InterconnectBlocksOperationsExtensions + { + /// + /// Lists all of the Interconnect Blocks in the subscription. Use the nextLink + /// property in the response to get the next page of Interconnect Blocks. + /// + /// + /// The operations group for this extension method. + /// + public static Microsoft.Rest.Azure.IPage ListBySubscription(this IInterconnectBlocksOperations operations) + { + return ((IInterconnectBlocksOperations)operations).ListBySubscriptionAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all of the Interconnect Blocks in the subscription. Use the nextLink + /// property in the response to get the next page of Interconnect Blocks. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListBySubscriptionAsync(this IInterconnectBlocksOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// 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. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static Microsoft.Rest.Azure.IPage ListByResourceGroup(this IInterconnectBlocksOperations operations, string resourceGroupName) + { + return ((IInterconnectBlocksOperations)operations).ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// 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. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListByResourceGroupAsync(this IInterconnectBlocksOperations operations, string resourceGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// Retrieves information about an Interconnect Block. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// 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. + /// + public static InterconnectBlock Get(this IInterconnectBlocksOperations operations, string resourceGroupName, string interconnectBlockName, string expand = default(string)) + { + return ((IInterconnectBlocksOperations)operations).GetAsync(resourceGroupName, interconnectBlockName, expand).GetAwaiter().GetResult(); + } + + /// + /// Retrieves information about an Interconnect Block. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// 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. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task GetAsync(this IInterconnectBlocksOperations operations, string resourceGroupName, string interconnectBlockName, string expand = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, interconnectBlockName, expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// Creates or updates an Interconnect Block. When updating an Interconnect + /// Block, only tags and sku.capacity may be modified. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + public static InterconnectBlock CreateOrUpdate(this IInterconnectBlocksOperations operations, string resourceGroupName, string interconnectBlockName, InterconnectBlock resource) + { + return ((IInterconnectBlocksOperations)operations).CreateOrUpdateAsync(resourceGroupName, interconnectBlockName, resource).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates an Interconnect Block. When updating an Interconnect + /// Block, only tags and sku.capacity may be modified. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task CreateOrUpdateAsync(this IInterconnectBlocksOperations operations, string resourceGroupName, string interconnectBlockName, InterconnectBlock resource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, interconnectBlockName, resource, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// Updates an Interconnect Block. When updating an Interconnect Block, only + /// tags and sku.capacity may be modified. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + public static InterconnectBlock Update(this IInterconnectBlocksOperations operations, string resourceGroupName, string interconnectBlockName, InterconnectBlockUpdate properties) + { + return ((IInterconnectBlocksOperations)operations).UpdateAsync(resourceGroupName, interconnectBlockName, properties).GetAwaiter().GetResult(); + } + + /// + /// Updates an Interconnect Block. When updating an Interconnect Block, only + /// tags and sku.capacity may be modified. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task UpdateAsync(this IInterconnectBlocksOperations operations, string resourceGroupName, string interconnectBlockName, InterconnectBlockUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, interconnectBlockName, properties, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// Deletes an Interconnect Block. The operation is only allowed when there are + /// no virtual machines or VMSS VM instances associated with the Interconnect + /// Block. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + public static InterconnectBlocksDeleteHeaders Delete(this IInterconnectBlocksOperations operations, string resourceGroupName, string interconnectBlockName) + { + return ((IInterconnectBlocksOperations)operations).DeleteAsync(resourceGroupName, interconnectBlockName).GetAwaiter().GetResult(); + } + + /// + /// Deletes an Interconnect Block. The operation is only allowed when there are + /// no virtual machines or VMSS VM instances associated with the Interconnect + /// Block. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task DeleteAsync(this IInterconnectBlocksOperations operations, string resourceGroupName, string interconnectBlockName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, interconnectBlockName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + /// + /// Creates or updates an Interconnect Block. When updating an Interconnect + /// Block, only tags and sku.capacity may be modified. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + public static InterconnectBlock BeginCreateOrUpdate(this IInterconnectBlocksOperations operations, string resourceGroupName, string interconnectBlockName, InterconnectBlock resource) + { + return ((IInterconnectBlocksOperations)operations).BeginCreateOrUpdateAsync(resourceGroupName, interconnectBlockName, resource).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates an Interconnect Block. When updating an Interconnect + /// Block, only tags and sku.capacity may be modified. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task BeginCreateOrUpdateAsync(this IInterconnectBlocksOperations operations, string resourceGroupName, string interconnectBlockName, InterconnectBlock resource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, interconnectBlockName, resource, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// Updates an Interconnect Block. When updating an Interconnect Block, only + /// tags and sku.capacity may be modified. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + public static InterconnectBlock BeginUpdate(this IInterconnectBlocksOperations operations, string resourceGroupName, string interconnectBlockName, InterconnectBlockUpdate properties) + { + return ((IInterconnectBlocksOperations)operations).BeginUpdateAsync(resourceGroupName, interconnectBlockName, properties).GetAwaiter().GetResult(); + } + + /// + /// Updates an Interconnect Block. When updating an Interconnect Block, only + /// tags and sku.capacity may be modified. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task BeginUpdateAsync(this IInterconnectBlocksOperations operations, string resourceGroupName, string interconnectBlockName, InterconnectBlockUpdate properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, interconnectBlockName, properties, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// Deletes an Interconnect Block. The operation is only allowed when there are + /// no virtual machines or VMSS VM instances associated with the Interconnect + /// Block. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + public static InterconnectBlocksDeleteHeaders BeginDelete(this IInterconnectBlocksOperations operations, string resourceGroupName, string interconnectBlockName) + { + return ((IInterconnectBlocksOperations)operations).BeginDeleteAsync(resourceGroupName, interconnectBlockName).GetAwaiter().GetResult(); + } + + /// + /// Deletes an Interconnect Block. The operation is only allowed when there are + /// no virtual machines or VMSS VM instances associated with the Interconnect + /// Block. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the Interconnect Block. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task BeginDeleteAsync(this IInterconnectBlocksOperations operations, string resourceGroupName, string interconnectBlockName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, interconnectBlockName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Headers; + } + } + /// + /// Lists all of the Interconnect Blocks in the subscription. Use the nextLink + /// property in the response to get the next page of Interconnect Blocks. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static Microsoft.Rest.Azure.IPage ListBySubscriptionNext(this IInterconnectBlocksOperations operations, string nextPageLink) + { + return ((IInterconnectBlocksOperations)operations).ListBySubscriptionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all of the Interconnect Blocks in the subscription. Use the nextLink + /// property in the response to get the next page of Interconnect Blocks. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListBySubscriptionNextAsync(this IInterconnectBlocksOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListBySubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// 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. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static Microsoft.Rest.Azure.IPage ListByResourceGroupNext(this IInterconnectBlocksOperations operations, string nextPageLink) + { + return ((IInterconnectBlocksOperations)operations).ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// 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. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task> ListByResourceGroupNextAsync(this IInterconnectBlocksOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } +} diff --git a/src/Compute/Compute.Management.Sdk/Generated/LogAnalyticsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/LogAnalyticsOperations.cs index bb98ce354a32..915fda873af1 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/LogAnalyticsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/LogAnalyticsOperations.cs @@ -151,7 +151,7 @@ internal LogAnalyticsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "location", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -382,7 +382,7 @@ internal LogAnalyticsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "location", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/AutomaticSkuMigrationPolicy.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/AutomaticSkuMigrationPolicy.cs new file mode 100644 index 000000000000..90cd4d4baf40 --- /dev/null +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/AutomaticSkuMigrationPolicy.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.Compute.Models +{ + using System.Linq; + + /// + /// Specifies the configuration parameters used to control automatic SKU + /// migration for the virtual machine scale set. When enabled, the platform may + /// migrate instances to a different VM size from the SKU profile depending on + /// platform demands. + /// + public partial class AutomaticSkuMigrationPolicy + { + /// + /// Initializes a new instance of the AutomaticSkuMigrationPolicy class. + /// + public AutomaticSkuMigrationPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AutomaticSkuMigrationPolicy class. + /// + + /// Specifies whether automatic SKU migration should be enabled on the virtual + /// machine scale set. The default value is false. + /// + public AutomaticSkuMigrationPolicy(bool? enabled = default(bool?)) + + { + this.Enabled = enabled; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets specifies whether automatic SKU migration should be enabled on + /// the virtual machine scale set. The default value is false. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "enabled")] + public bool? Enabled {get; set; } + } +} \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlock.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlock.cs new file mode 100644 index 000000000000..b4f702ef5df3 --- /dev/null +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlock.cs @@ -0,0 +1,125 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.Compute.Models +{ + using System.Linq; + + /// + /// Specifies information about the Interconnect Block. + /// + public partial class InterconnectBlock : TrackedResource + { + /// + /// Initializes a new instance of the InterconnectBlock class. + /// + public InterconnectBlock() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InterconnectBlock class. + /// + + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + + /// The name of the resource + /// + + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// + + /// Resource tags. + /// + + /// The geo-location where the resource lives + /// + + /// Properties of the Interconnect Block. + /// + + /// 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. + /// + + /// The availability zones. + /// + + /// Placement section specifies the user-defined constraints for Interconnect + /// Block hardware placement. This property cannot be changed once Interconnect + /// Block is provisioned. + /// + public InterconnectBlock(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), InterconnectBlockProperties properties = default(InterconnectBlockProperties), System.Collections.Generic.IList zones = default(System.Collections.Generic.IList), Placement placement = default(Placement)) + + : base(location, id, name, type, tags) + { + this.Properties = properties; + this.Sku = sku; + this.Zones = zones; + this.Placement = placement; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets properties of the Interconnect Block. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties")] + public InterconnectBlockProperties Properties {get; set; } + + /// + /// Gets or sets 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. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sku")] + public Sku Sku {get; set; } + + /// + /// Gets or sets the availability zones. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "zones")] + public System.Collections.Generic.IList Zones {get; set; } + + /// + /// Gets or sets placement section specifies the user-defined constraints for + /// Interconnect Block hardware placement. This property cannot be changed once + /// Interconnect Block is provisioned. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "placement")] + public Placement Placement {get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (this.Sku == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Sku"); + } + if (this.Properties != null) + { + this.Properties.Validate(); + } + + + + } + } +} \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlockExpandTypes.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlockExpandTypes.cs new file mode 100644 index 000000000000..975bffc52e7e --- /dev/null +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlockExpandTypes.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.Compute.Models +{ + + /// + /// Defines values for InterconnectBlockExpandTypes. + /// + + + public static class InterconnectBlockExpandTypes + { + /// + /// Retrieve the runtime instance view of the Interconnect Block. + /// + public const string InstanceView = "instanceView"; + } +} \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlockInstanceView.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlockInstanceView.cs new file mode 100644 index 000000000000..71fb75ea24ff --- /dev/null +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlockInstanceView.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.Compute.Models +{ + using System.Linq; + + /// + /// The instance view of an Interconnect Block. + /// + public partial class InterconnectBlockInstanceView + { + /// + /// Initializes a new instance of the InterconnectBlockInstanceView class. + /// + public InterconnectBlockInstanceView() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InterconnectBlockInstanceView class. + /// + + /// The current capacity allocated for this Interconnect Block. + /// + + /// The resource status information. + /// + public InterconnectBlockInstanceView(int? currentCapacity = default(int?), System.Collections.Generic.IList statuses = default(System.Collections.Generic.IList)) + + { + this.CurrentCapacity = currentCapacity; + this.Statuses = statuses; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets the current capacity allocated for this Interconnect Block. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "currentCapacity")] + public int? CurrentCapacity {get; private set; } + + /// + /// Gets the resource status information. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "statuses")] + public System.Collections.Generic.IList Statuses {get; private set; } + } +} \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlockProfile.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlockProfile.cs new file mode 100644 index 000000000000..d295ab68dff2 --- /dev/null +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlockProfile.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.Compute.Models +{ + using System.Linq; + + /// + /// The parameters of an Interconnect Block Profile. + /// + public partial class InterconnectBlockProfile + { + /// + /// Initializes a new instance of the InterconnectBlockProfile class. + /// + public InterconnectBlockProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InterconnectBlockProfile class. + /// + + /// Specifies the Interconnect Block resource ID that should be used for + /// allocating the Virtual Machine or Scale Set VM instances provided enough + /// capacity has been reserved. + /// + public InterconnectBlockProfile(ApiEntityReference interconnectBlock = default(ApiEntityReference)) + + { + this.InterconnectBlock = interconnectBlock; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets specifies the Interconnect Block resource ID that should be + /// used for allocating the Virtual Machine or Scale Set VM instances provided + /// enough capacity has been reserved. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interconnectBlock")] + public ApiEntityReference InterconnectBlock {get; set; } + } +} \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlockProperties.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlockProperties.cs new file mode 100644 index 000000000000..10ebcdde5830 --- /dev/null +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlockProperties.cs @@ -0,0 +1,134 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.Compute.Models +{ + using System.Linq; + + /// + /// Properties of the Interconnect Block. + /// + public partial class InterconnectBlockProperties + { + /// + /// Initializes a new instance of the InterconnectBlockProperties class. + /// + public InterconnectBlockProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InterconnectBlockProperties class. + /// + + /// A list of all virtual machine resource ids that are associated with the + /// Interconnect Block. + /// + + /// The Microsoft.Network/interconnectGroups resource that this Interconnect + /// Block is associated with. Required at create and immutable thereafter. + /// + + /// A unique id (GUID) generated and assigned to the Interconnect Block by the + /// platform which does not change throughout the lifetime of the resource. + /// + + /// The date time when the Interconnect Block was last updated. + /// + + /// The provisioning state, which only appears in the response. + /// + + /// The Interconnect Block instance view. + /// + + /// Specifies the time at which the Interconnect Block resource was created. + /// + public InterconnectBlockProperties(ApiEntityReference interconnectGroup, System.Collections.Generic.IList virtualMachinesAssociated = default(System.Collections.Generic.IList), string interconnectBlockId = default(string), System.DateTime? provisioningTime = default(System.DateTime?), string provisioningState = default(string), InterconnectBlockInstanceView instanceView = default(InterconnectBlockInstanceView), System.DateTime? timeCreated = default(System.DateTime?)) + + { + this.VirtualMachinesAssociated = virtualMachinesAssociated; + this.InterconnectGroup = interconnectGroup; + this.InterconnectBlockId = interconnectBlockId; + this.ProvisioningTime = provisioningTime; + this.ProvisioningState = provisioningState; + this.InstanceView = instanceView; + this.TimeCreated = timeCreated; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets a list of all virtual machine resource ids that are associated with + /// the Interconnect Block. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "virtualMachinesAssociated")] + public System.Collections.Generic.IList VirtualMachinesAssociated {get; private set; } + + /// + /// Gets or sets the Microsoft.Network/interconnectGroups resource that this + /// Interconnect Block is associated with. Required at create and immutable + /// thereafter. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interconnectGroup")] + public ApiEntityReference InterconnectGroup {get; set; } + + /// + /// Gets a unique id (GUID) generated and assigned to the Interconnect Block by + /// the platform which does not change throughout the lifetime of the resource. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interconnectBlockId")] + public string InterconnectBlockId {get; private set; } + + /// + /// Gets the date time when the Interconnect Block was last updated. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "provisioningTime")] + public System.DateTime? ProvisioningTime {get; private set; } + + /// + /// Gets the provisioning state, which only appears in the response. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState {get; private set; } + + /// + /// Gets the Interconnect Block instance view. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "instanceView")] + public InterconnectBlockInstanceView InstanceView {get; private set; } + + /// + /// Gets specifies the time at which the Interconnect Block resource was + /// created. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "timeCreated")] + public System.DateTime? TimeCreated {get; private set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (this.InterconnectGroup == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "InterconnectGroup"); + } + + + + + + } + } +} \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlockUpdate.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlockUpdate.cs new file mode 100644 index 000000000000..07bed502bfa6 --- /dev/null +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlockUpdate.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.Compute.Models +{ + using System.Linq; + + /// + /// Specifies information about the Interconnect Block. Only tags and + /// sku.capacity can be updated. + /// + public partial class InterconnectBlockUpdate : UpdateResource + { + /// + /// Initializes a new instance of the InterconnectBlockUpdate class. + /// + public InterconnectBlockUpdate() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InterconnectBlockUpdate class. + /// + + /// Resource tags + /// + + /// SKU of the resource for which capacity needs to be pre-allocated. Only + /// `sku.capacity` is mutable; `sku.name` is immutable. + /// + public InterconnectBlockUpdate(System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), Sku sku = default(Sku)) + + : base(tags) + { + this.Sku = sku; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets sKU of the resource for which capacity needs to be + /// pre-allocated. Only `sku.capacity` is mutable; `sku.name` is immutable. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "sku")] + public Sku Sku {get; set; } + } +} \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlocksCreateOrUpdateHeaders.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlocksCreateOrUpdateHeaders.cs new file mode 100644 index 000000000000..4fed1a39a0b5 --- /dev/null +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlocksCreateOrUpdateHeaders.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.Compute.Models +{ + using System.Linq; + + public partial class InterconnectBlocksCreateOrUpdateHeaders + { + /// + /// Initializes a new instance of the InterconnectBlocksCreateOrUpdateHeaders class. + /// + public InterconnectBlocksCreateOrUpdateHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InterconnectBlocksCreateOrUpdateHeaders class. + /// + + /// + /// + + /// + /// + public InterconnectBlocksCreateOrUpdateHeaders(string location = default(string), int? retryAfter = default(int?)) + + { + this.Location = location; + this.RetryAfter = retryAfter; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + public string Location {get; set; } + + /// + /// Gets or sets + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + public int? RetryAfter {get; set; } + } +} \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlocksDeleteHeaders.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlocksDeleteHeaders.cs new file mode 100644 index 000000000000..342d78df69b0 --- /dev/null +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlocksDeleteHeaders.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.Compute.Models +{ + using System.Linq; + + public partial class InterconnectBlocksDeleteHeaders + { + /// + /// Initializes a new instance of the InterconnectBlocksDeleteHeaders class. + /// + public InterconnectBlocksDeleteHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InterconnectBlocksDeleteHeaders class. + /// + + /// + /// + + /// + /// + public InterconnectBlocksDeleteHeaders(string location = default(string), int? retryAfter = default(int?)) + + { + this.Location = location; + this.RetryAfter = retryAfter; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + public string Location {get; set; } + + /// + /// Gets or sets + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + public int? RetryAfter {get; set; } + } +} \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlocksUpdateHeaders.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlocksUpdateHeaders.cs new file mode 100644 index 000000000000..82280a319287 --- /dev/null +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectBlocksUpdateHeaders.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.Compute.Models +{ + using System.Linq; + + public partial class InterconnectBlocksUpdateHeaders + { + /// + /// Initializes a new instance of the InterconnectBlocksUpdateHeaders class. + /// + public InterconnectBlocksUpdateHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InterconnectBlocksUpdateHeaders class. + /// + + /// + /// + + /// + /// + public InterconnectBlocksUpdateHeaders(string location = default(string), int? retryAfter = default(int?)) + + { + this.Location = location; + this.RetryAfter = retryAfter; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + public string Location {get; set; } + + /// + /// Gets or sets + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + public int? RetryAfter {get; set; } + } +} \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectGroupProfile.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectGroupProfile.cs new file mode 100644 index 000000000000..33d225a70048 --- /dev/null +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectGroupProfile.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.Compute.Models +{ + using System.Linq; + + /// + /// Specifies the interconnect group profile for a virtual machine, used to + /// associate the VM with an interconnect group and subgroups. + /// + public partial class InterconnectGroupProfile + { + /// + /// Initializes a new instance of the InterconnectGroupProfile class. + /// + public InterconnectGroupProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InterconnectGroupProfile class. + /// + + /// Reference to the interconnect group resource. + /// + + /// The list of subgroup references within the interconnect group. + /// + public InterconnectGroupProfile(SubResource interconnectGroup = default(SubResource), System.Collections.Generic.IList subgroups = default(System.Collections.Generic.IList)) + + { + this.InterconnectGroup = interconnectGroup; + this.Subgroups = subgroups; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets reference to the interconnect group resource. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interconnectGroup")] + public SubResource InterconnectGroup {get; set; } + + /// + /// Gets or sets the list of subgroup references within the interconnect group. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "subgroups")] + public System.Collections.Generic.IList Subgroups {get; set; } + } +} \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectInstanceView.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectInstanceView.cs new file mode 100644 index 000000000000..7f41cb7cba15 --- /dev/null +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/InterconnectInstanceView.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.Compute.Models +{ + using System.Linq; + + /// + /// The Interconnect Block instance view details for a Virtual Machine or Scale + /// Set VM instance. + /// + public partial class InterconnectInstanceView + { + /// + /// Initializes a new instance of the InterconnectInstanceView class. + /// + public InterconnectInstanceView() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InterconnectInstanceView class. + /// + + /// The ID (GUID) of the Interconnect subgroup in which the Virtual Machine was + /// placed. + /// + public InterconnectInstanceView(string interconnectSubgroupId = default(string)) + + { + this.InterconnectSubgroupId = interconnectSubgroupId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets the ID (GUID) of the Interconnect subgroup in which the Virtual + /// Machine was placed. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interconnectSubgroupId")] + public string InterconnectSubgroupId {get; private set; } + } +} \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/NetworkProfile.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/NetworkProfile.cs index 8066c77c7097..fdf5167c0923 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Models/NetworkProfile.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/NetworkProfile.cs @@ -36,12 +36,17 @@ public NetworkProfile() /// Specifies the networking configurations that will be used to create the /// virtual machine networking resources. /// - public NetworkProfile(System.Collections.Generic.IList networkInterfaces = default(System.Collections.Generic.IList), string networkApiVersion = default(string), System.Collections.Generic.IList networkInterfaceConfigurations = default(System.Collections.Generic.IList)) + + /// Specifies the interconnect group profile to associate with the virtual + /// machine. Minimum api-version: 2026-03-01. + /// + public NetworkProfile(System.Collections.Generic.IList networkInterfaces = default(System.Collections.Generic.IList), string networkApiVersion = default(string), System.Collections.Generic.IList networkInterfaceConfigurations = default(System.Collections.Generic.IList), InterconnectGroupProfile interconnectGroupProfile = default(InterconnectGroupProfile)) { this.NetworkInterfaces = networkInterfaces; this.NetworkApiVersion = networkApiVersion; this.NetworkInterfaceConfigurations = networkInterfaceConfigurations; + this.InterconnectGroupProfile = interconnectGroupProfile; CustomInit(); } @@ -71,5 +76,12 @@ public NetworkProfile() /// [Newtonsoft.Json.JsonProperty(PropertyName = "networkInterfaceConfigurations")] public System.Collections.Generic.IList NetworkInterfaceConfigurations {get; set; } + + /// + /// Gets or sets specifies the interconnect group profile to associate with the + /// virtual machine. Minimum api-version: 2026-03-01. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interconnectGroupProfile")] + public InterconnectGroupProfile InterconnectGroupProfile {get; set; } } } \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/SkuProfile.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/SkuProfile.cs index 61cc4dfa47f8..8b17d9612905 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Models/SkuProfile.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/SkuProfile.cs @@ -32,11 +32,18 @@ public SkuProfile() /// Specifies the allocation strategy for the virtual machine scale set based /// on which the VMs will be allocated. /// Possible values include: 'LowestPrice', 'CapacityOptimized', 'Prioritized' - public SkuProfile(System.Collections.Generic.IList vmSizes = default(System.Collections.Generic.IList), string allocationStrategy = default(string)) + + /// Specifies the policy that controls whether the platform may automatically + /// migrate scale set instances to a different VM size from the SKU profile + /// depending on platform demands. When omitted, automatic SKU migration is + /// disabled. + /// + public SkuProfile(System.Collections.Generic.IList vmSizes = default(System.Collections.Generic.IList), string allocationStrategy = default(string), AutomaticSkuMigrationPolicy automaticSkuMigrationPolicy = default(AutomaticSkuMigrationPolicy)) { this.VmSizes = vmSizes; this.AllocationStrategy = allocationStrategy; + this.AutomaticSkuMigrationPolicy = automaticSkuMigrationPolicy; CustomInit(); } @@ -58,5 +65,14 @@ public SkuProfile() /// [Newtonsoft.Json.JsonProperty(PropertyName = "allocationStrategy")] public string AllocationStrategy {get; set; } + + /// + /// Gets or sets specifies the policy that controls whether the platform may + /// automatically migrate scale set instances to a different VM size from the + /// SKU profile depending on platform demands. When omitted, automatic SKU + /// migration is disabled. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "automaticSkuMigrationPolicy")] + public AutomaticSkuMigrationPolicy AutomaticSkuMigrationPolicy {get; set; } } } \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachine.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachine.cs index 166d0dbdeacc..8b00ee293e40 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachine.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachine.cs @@ -214,10 +214,14 @@ public VirtualMachine() /// allocate virtual machine. Minimum api-version: 2021-04-01. /// + /// Specifies information about the Interconnect Block that is used to allocate + /// the Virtual Machine. Minimum api-version: 2026-03-01. + /// + /// Specifies the time at which the Virtual Machine resource was created. /// Minimum api-version: 2021-11-01. /// - public VirtualMachine(string location, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), Plan plan = default(Plan), System.Collections.Generic.IList resources = default(System.Collections.Generic.IList), VirtualMachineIdentity identity = default(VirtualMachineIdentity), System.Collections.Generic.IList zones = default(System.Collections.Generic.IList), ExtendedLocation extendedLocation = default(ExtendedLocation), string managedBy = default(string), string etag = default(string), Placement placement = default(Placement), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), BillingProfile billingProfile = default(BillingProfile), ApplicationProfile applicationProfile = default(ApplicationProfile), ResiliencyProfile resiliencyProfile = default(ResiliencyProfile), ScheduledEventsPolicy scheduledEventsPolicy = default(ScheduledEventsPolicy), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), string priority = default(string), string evictionPolicy = default(string), SubResource host = default(SubResource), SubResource hostGroup = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), string extensionsTimeBudget = default(string), int? platformFaultDomain = default(int?), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), CapacityReservationProfile capacityReservation = default(CapacityReservationProfile), System.DateTime? timeCreated = default(System.DateTime?)) + public VirtualMachine(string location, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), Plan plan = default(Plan), System.Collections.Generic.IList resources = default(System.Collections.Generic.IList), VirtualMachineIdentity identity = default(VirtualMachineIdentity), System.Collections.Generic.IList zones = default(System.Collections.Generic.IList), ExtendedLocation extendedLocation = default(ExtendedLocation), string managedBy = default(string), string etag = default(string), Placement placement = default(Placement), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), BillingProfile billingProfile = default(BillingProfile), ApplicationProfile applicationProfile = default(ApplicationProfile), ResiliencyProfile resiliencyProfile = default(ResiliencyProfile), ScheduledEventsPolicy scheduledEventsPolicy = default(ScheduledEventsPolicy), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), string priority = default(string), string evictionPolicy = default(string), SubResource host = default(SubResource), SubResource hostGroup = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), string extensionsTimeBudget = default(string), int? platformFaultDomain = default(int?), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), CapacityReservationProfile capacityReservation = default(CapacityReservationProfile), InterconnectBlockProfile interconnectBlockProfile = default(InterconnectBlockProfile), System.DateTime? timeCreated = default(System.DateTime?)) : base(location, id, name, type, tags) { @@ -256,6 +260,7 @@ public VirtualMachine() this.ScheduledEventsProfile = scheduledEventsProfile; this.UserData = userData; this.CapacityReservation = capacityReservation; + this.InterconnectBlockProfile = interconnectBlockProfile; this.TimeCreated = timeCreated; CustomInit(); } @@ -548,6 +553,13 @@ public VirtualMachine() [Newtonsoft.Json.JsonProperty(PropertyName = "properties.capacityReservation")] public CapacityReservationProfile CapacityReservation {get; set; } + /// + /// Gets or sets specifies information about the Interconnect Block that is + /// used to allocate the Virtual Machine. Minimum api-version: 2026-03-01. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.interconnectBlockProfile")] + public InterconnectBlockProfile InterconnectBlockProfile {get; set; } + /// /// Gets specifies the time at which the Virtual Machine resource was created. /// Minimum api-version: 2021-11-01. @@ -607,6 +619,7 @@ public override void Validate() + } diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineInstanceView.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineInstanceView.cs index faf930f56d44..1c1ee24915b3 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineInstanceView.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineInstanceView.cs @@ -81,7 +81,11 @@ public VirtualMachineInstanceView() /// [Preview Feature] Specifies whether the VM is currently in or out of the /// Standby Pool. /// - public VirtualMachineInstanceView(int? platformUpdateDomain = default(int?), int? platformFaultDomain = default(int?), string computerName = default(string), string osName = default(string), string osVersion = default(string), string hyperVGeneration = default(string), string rdpThumbPrint = default(string), VirtualMachineAgentInstanceView vmAgent = default(VirtualMachineAgentInstanceView), MaintenanceRedeployStatus maintenanceRedeployStatus = default(MaintenanceRedeployStatus), System.Collections.Generic.IList disks = default(System.Collections.Generic.IList), System.Collections.Generic.IList extensions = default(System.Collections.Generic.IList), VirtualMachineHealthStatus vmHealth = default(VirtualMachineHealthStatus), BootDiagnosticsInstanceView bootDiagnostics = default(BootDiagnosticsInstanceView), string assignedHost = default(string), System.Collections.Generic.IList statuses = default(System.Collections.Generic.IList), VirtualMachinePatchStatus patchStatus = default(VirtualMachinePatchStatus), bool? isVMInStandbyPool = default(bool?)) + + /// The Interconnect runtime view of the Virtual Machine. Minimum api-version: + /// 2026-03-01. + /// + public VirtualMachineInstanceView(int? platformUpdateDomain = default(int?), int? platformFaultDomain = default(int?), string computerName = default(string), string osName = default(string), string osVersion = default(string), string hyperVGeneration = default(string), string rdpThumbPrint = default(string), VirtualMachineAgentInstanceView vmAgent = default(VirtualMachineAgentInstanceView), MaintenanceRedeployStatus maintenanceRedeployStatus = default(MaintenanceRedeployStatus), System.Collections.Generic.IList disks = default(System.Collections.Generic.IList), System.Collections.Generic.IList extensions = default(System.Collections.Generic.IList), VirtualMachineHealthStatus vmHealth = default(VirtualMachineHealthStatus), BootDiagnosticsInstanceView bootDiagnostics = default(BootDiagnosticsInstanceView), string assignedHost = default(string), System.Collections.Generic.IList statuses = default(System.Collections.Generic.IList), VirtualMachinePatchStatus patchStatus = default(VirtualMachinePatchStatus), bool? isVMInStandbyPool = default(bool?), InterconnectInstanceView interconnectInstanceView = default(InterconnectInstanceView)) { this.PlatformUpdateDomain = platformUpdateDomain; @@ -101,6 +105,7 @@ public VirtualMachineInstanceView() this.Statuses = statuses; this.PatchStatus = patchStatus; this.IsVMInStandbyPool = isVMInStandbyPool; + this.InterconnectInstanceView = interconnectInstanceView; CustomInit(); } @@ -220,5 +225,12 @@ public VirtualMachineInstanceView() /// [Newtonsoft.Json.JsonProperty(PropertyName = "isVMInStandbyPool")] public bool? IsVMInStandbyPool {get; private set; } + + /// + /// Gets the Interconnect runtime view of the Virtual Machine. Minimum + /// api-version: 2026-03-01. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interconnectInstanceView")] + public InterconnectInstanceView InterconnectInstanceView {get; private set; } } } \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineProperties.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineProperties.cs index e856c8434f6b..df9aa617fccc 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineProperties.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineProperties.cs @@ -155,6 +155,10 @@ public VirtualMachineProperties() /// allocate virtual machine. Minimum api-version: 2021-04-01. /// + /// Specifies information about the Interconnect Block that is used to allocate + /// the Virtual Machine. Minimum api-version: 2026-03-01. + /// + /// Specifies the gallery applications that should be made available to the /// VM/VMSS. /// @@ -165,7 +169,7 @@ public VirtualMachineProperties() /// Resiliency profile for the virtual machine. /// - public VirtualMachineProperties(HardwareProfile hardwareProfile = default(HardwareProfile), ScheduledEventsPolicy scheduledEventsPolicy = default(ScheduledEventsPolicy), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), SubResource host = default(SubResource), SubResource hostGroup = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), string extensionsTimeBudget = default(string), int? platformFaultDomain = default(int?), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), CapacityReservationProfile capacityReservation = default(CapacityReservationProfile), ApplicationProfile applicationProfile = default(ApplicationProfile), System.DateTime? timeCreated = default(System.DateTime?), ResiliencyProfile resiliencyProfile = default(ResiliencyProfile)) + public VirtualMachineProperties(HardwareProfile hardwareProfile = default(HardwareProfile), ScheduledEventsPolicy scheduledEventsPolicy = default(ScheduledEventsPolicy), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), SubResource host = default(SubResource), SubResource hostGroup = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), string extensionsTimeBudget = default(string), int? platformFaultDomain = default(int?), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), CapacityReservationProfile capacityReservation = default(CapacityReservationProfile), InterconnectBlockProfile interconnectBlockProfile = default(InterconnectBlockProfile), ApplicationProfile applicationProfile = default(ApplicationProfile), System.DateTime? timeCreated = default(System.DateTime?), ResiliencyProfile resiliencyProfile = default(ResiliencyProfile)) { this.HardwareProfile = hardwareProfile; @@ -193,6 +197,7 @@ public VirtualMachineProperties() this.ScheduledEventsProfile = scheduledEventsProfile; this.UserData = userData; this.CapacityReservation = capacityReservation; + this.InterconnectBlockProfile = interconnectBlockProfile; this.ApplicationProfile = applicationProfile; this.TimeCreated = timeCreated; this.ResiliencyProfile = resiliencyProfile; @@ -415,6 +420,13 @@ public VirtualMachineProperties() [Newtonsoft.Json.JsonProperty(PropertyName = "capacityReservation")] public CapacityReservationProfile CapacityReservation {get; set; } + /// + /// Gets or sets specifies information about the Interconnect Block that is + /// used to allocate the Virtual Machine. Minimum api-version: 2026-03-01. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interconnectBlockProfile")] + public InterconnectBlockProfile InterconnectBlockProfile {get; set; } + /// /// Gets or sets specifies the gallery applications that should be made /// available to the VM/VMSS. @@ -469,6 +481,7 @@ public virtual void Validate() + } diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetExtension.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetExtension.cs index 819b5a3e885c..d5300b7e4f25 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetExtension.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetExtension.cs @@ -28,10 +28,10 @@ public VirtualMachineScaleSetExtension() /// Resource Id /// - /// Resource type + /// Resource name /// - /// Resource name + /// Resource type /// /// If a value is provided and is different from the previous value, the @@ -80,12 +80,12 @@ public VirtualMachineScaleSetExtension() /// The extensions protected settings that are passed by reference, and /// consumed from key vault /// - public VirtualMachineScaleSetExtension(string id = default(string), string type = default(string), string name = default(string), string forceUpdateTag = default(string), string publisher = default(string), string virtualMachineExtensionType = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), System.Collections.Generic.IList provisionAfterExtensions = default(System.Collections.Generic.IList), bool? suppressFailures = default(bool?), KeyVaultSecretReference protectedSettingsFromKeyVault = default(KeyVaultSecretReference)) + public VirtualMachineScaleSetExtension(string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), string publisher = default(string), string virtualMachineExtensionType = default(string), string typeHandlerVersion = default(string), bool? autoUpgradeMinorVersion = default(bool?), bool? enableAutomaticUpgrade = default(bool?), object settings = default(object), object protectedSettings = default(object), string provisioningState = default(string), System.Collections.Generic.IList provisionAfterExtensions = default(System.Collections.Generic.IList), bool? suppressFailures = default(bool?), KeyVaultSecretReference protectedSettingsFromKeyVault = default(KeyVaultSecretReference)) : base(id) { - this.Type = type; this.Name = name; + this.Type = type; this.ForceUpdateTag = forceUpdateTag; this.Publisher = publisher; this.VirtualMachineExtensionType = virtualMachineExtensionType; @@ -107,18 +107,18 @@ public VirtualMachineScaleSetExtension() partial void CustomInit(); - /// - /// Gets resource type - /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] - public string Type {get; private set; } - /// /// Gets or sets resource name /// [Newtonsoft.Json.JsonProperty(PropertyName = "name")] public string Name {get; set; } + /// + /// Gets resource type + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "type")] + public string Type {get; private set; } + /// /// Gets or sets if a value is provided and is different from the previous /// value, the extension handler will be forced to update even if the extension diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetNetworkProfile.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetNetworkProfile.cs index 246bf45d990f..a9476c24db45 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetNetworkProfile.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetNetworkProfile.cs @@ -37,12 +37,17 @@ public VirtualMachineScaleSetNetworkProfile() /// resources in the Network Interface Configurations for Virtual Machine Scale /// Set with orchestration mode 'Flexible' /// Possible values include: '2020-11-01', '2022-11-01' - public VirtualMachineScaleSetNetworkProfile(ApiEntityReference healthProbe = default(ApiEntityReference), System.Collections.Generic.IList networkInterfaceConfigurations = default(System.Collections.Generic.IList), string networkApiVersion = default(string)) + + /// Specifies the interconnect group profile to associate with the scale set. + /// Minimum api-version: 2026-03-01. + /// + public VirtualMachineScaleSetNetworkProfile(ApiEntityReference healthProbe = default(ApiEntityReference), System.Collections.Generic.IList networkInterfaceConfigurations = default(System.Collections.Generic.IList), string networkApiVersion = default(string), InterconnectGroupProfile interconnectGroupProfile = default(InterconnectGroupProfile)) { this.HealthProbe = healthProbe; this.NetworkInterfaceConfigurations = networkInterfaceConfigurations; this.NetworkApiVersion = networkApiVersion; + this.InterconnectGroupProfile = interconnectGroupProfile; CustomInit(); } @@ -74,5 +79,12 @@ public VirtualMachineScaleSetNetworkProfile() /// [Newtonsoft.Json.JsonProperty(PropertyName = "networkApiVersion")] public string NetworkApiVersion {get; set; } + + /// + /// Gets or sets specifies the interconnect group profile to associate with the + /// scale set. Minimum api-version: 2026-03-01. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interconnectGroupProfile")] + public InterconnectGroupProfile InterconnectGroupProfile {get; set; } } } \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetUpdateNetworkProfile.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetUpdateNetworkProfile.cs index 519f0a67f3be..95ebf612bb0b 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetUpdateNetworkProfile.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetUpdateNetworkProfile.cs @@ -37,12 +37,17 @@ public VirtualMachineScaleSetUpdateNetworkProfile() /// resources in the Network Interface Configurations for Virtual Machine Scale /// Set with orchestration mode 'Flexible' /// Possible values include: '2020-11-01', '2022-11-01' - public VirtualMachineScaleSetUpdateNetworkProfile(ApiEntityReference healthProbe = default(ApiEntityReference), System.Collections.Generic.IList networkInterfaceConfigurations = default(System.Collections.Generic.IList), string networkApiVersion = default(string)) + + /// Specifies the interconnect group profile to associate with the scale set. + /// Minimum api-version: 2026-03-01. + /// + public VirtualMachineScaleSetUpdateNetworkProfile(ApiEntityReference healthProbe = default(ApiEntityReference), System.Collections.Generic.IList networkInterfaceConfigurations = default(System.Collections.Generic.IList), string networkApiVersion = default(string), InterconnectGroupProfile interconnectGroupProfile = default(InterconnectGroupProfile)) { this.HealthProbe = healthProbe; this.NetworkInterfaceConfigurations = networkInterfaceConfigurations; this.NetworkApiVersion = networkApiVersion; + this.InterconnectGroupProfile = interconnectGroupProfile; CustomInit(); } @@ -74,5 +79,12 @@ public VirtualMachineScaleSetUpdateNetworkProfile() /// [Newtonsoft.Json.JsonProperty(PropertyName = "networkApiVersion")] public string NetworkApiVersion {get; set; } + + /// + /// Gets or sets specifies the interconnect group profile to associate with the + /// scale set. Minimum api-version: 2026-03-01. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interconnectGroupProfile")] + public InterconnectGroupProfile InterconnectGroupProfile {get; set; } } } \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetUpdateVMProfile.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetUpdateVMProfile.cs index bb3013e542ab..9498736508b7 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetUpdateVMProfile.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetUpdateVMProfile.cs @@ -62,7 +62,11 @@ public VirtualMachineScaleSetUpdateVMProfile() /// Specifies the hardware profile related details of a scale set. Minimum /// api-version: 2021-11-01. /// - public VirtualMachineScaleSetUpdateVMProfile(VirtualMachineScaleSetUpdateOSProfile osProfile = default(VirtualMachineScaleSetUpdateOSProfile), VirtualMachineScaleSetUpdateStorageProfile storageProfile = default(VirtualMachineScaleSetUpdateStorageProfile), VirtualMachineScaleSetUpdateNetworkProfile networkProfile = default(VirtualMachineScaleSetUpdateNetworkProfile), SecurityPostureReferenceUpdate securityPostureReference = default(SecurityPostureReferenceUpdate), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), VirtualMachineScaleSetExtensionProfile extensionProfile = default(VirtualMachineScaleSetExtensionProfile), string licenseType = default(string), BillingProfile billingProfile = default(BillingProfile), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), VirtualMachineScaleSetHardwareProfile hardwareProfile = default(VirtualMachineScaleSetHardwareProfile)) + + /// Specifies the Interconnect Block related details of a scale set. Minimum + /// api-version: 2026-03-01. + /// + public VirtualMachineScaleSetUpdateVMProfile(VirtualMachineScaleSetUpdateOSProfile osProfile = default(VirtualMachineScaleSetUpdateOSProfile), VirtualMachineScaleSetUpdateStorageProfile storageProfile = default(VirtualMachineScaleSetUpdateStorageProfile), VirtualMachineScaleSetUpdateNetworkProfile networkProfile = default(VirtualMachineScaleSetUpdateNetworkProfile), SecurityPostureReferenceUpdate securityPostureReference = default(SecurityPostureReferenceUpdate), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), VirtualMachineScaleSetExtensionProfile extensionProfile = default(VirtualMachineScaleSetExtensionProfile), string licenseType = default(string), BillingProfile billingProfile = default(BillingProfile), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), VirtualMachineScaleSetHardwareProfile hardwareProfile = default(VirtualMachineScaleSetHardwareProfile), InterconnectBlockProfile interconnectBlockProfile = default(InterconnectBlockProfile)) { this.OsProfile = osProfile; @@ -77,6 +81,7 @@ public VirtualMachineScaleSetUpdateVMProfile() this.ScheduledEventsProfile = scheduledEventsProfile; this.UserData = userData; this.HardwareProfile = hardwareProfile; + this.InterconnectBlockProfile = interconnectBlockProfile; CustomInit(); } @@ -162,5 +167,12 @@ public VirtualMachineScaleSetUpdateVMProfile() /// [Newtonsoft.Json.JsonProperty(PropertyName = "hardwareProfile")] public VirtualMachineScaleSetHardwareProfile HardwareProfile {get; set; } + + /// + /// Gets or sets specifies the Interconnect Block related details of a scale + /// set. Minimum api-version: 2026-03-01. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interconnectBlockProfile")] + public InterconnectBlockProfile InterconnectBlockProfile {get; set; } } } \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVM.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVM.cs index f10883c9c91b..68680a38df65 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVM.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVM.cs @@ -157,7 +157,11 @@ public VirtualMachineScaleSetVM() /// Scale Sets with Flexible orchestration mode. Minimum api-version: /// 2025-11-01. /// - public VirtualMachineScaleSetVM(string location, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string instanceId = default(string), Sku sku = default(Sku), Plan plan = default(Plan), System.Collections.Generic.IList resources = default(System.Collections.Generic.IList), System.Collections.Generic.IList zones = default(System.Collections.Generic.IList), VirtualMachineIdentity identity = default(VirtualMachineIdentity), string etag = default(string), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), SecurityProfile securityProfile = default(SecurityProfile), NetworkProfile networkProfile = default(NetworkProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), bool? latestModelApplied = default(bool?), string vmId = default(string), VirtualMachineScaleSetVMInstanceView instanceView = default(VirtualMachineScaleSetVMInstanceView), string resilientVMDeletionStatus = default(string), VirtualMachineScaleSetVMNetworkProfileConfiguration networkProfileConfiguration = default(VirtualMachineScaleSetVMNetworkProfileConfiguration), SubResource availabilitySet = default(SubResource), string provisioningState = default(string), string licenseType = default(string), string modelDefinitionApplied = default(string), VirtualMachineScaleSetVMProtectionPolicy protectionPolicy = default(VirtualMachineScaleSetVMProtectionPolicy), string userData = default(string), System.DateTime? timeCreated = default(System.DateTime?), string virtualMachineResourceId = default(string)) + + /// Specifies the Interconnect Block related details of a Scale Set VM + /// instance. Minimum api-version: 2026-03-01. + /// + public VirtualMachineScaleSetVM(string location, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), string instanceId = default(string), Sku sku = default(Sku), Plan plan = default(Plan), System.Collections.Generic.IList resources = default(System.Collections.Generic.IList), System.Collections.Generic.IList zones = default(System.Collections.Generic.IList), VirtualMachineIdentity identity = default(VirtualMachineIdentity), string etag = default(string), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), SecurityProfile securityProfile = default(SecurityProfile), NetworkProfile networkProfile = default(NetworkProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), bool? latestModelApplied = default(bool?), string vmId = default(string), VirtualMachineScaleSetVMInstanceView instanceView = default(VirtualMachineScaleSetVMInstanceView), string resilientVMDeletionStatus = default(string), VirtualMachineScaleSetVMNetworkProfileConfiguration networkProfileConfiguration = default(VirtualMachineScaleSetVMNetworkProfileConfiguration), SubResource availabilitySet = default(SubResource), string provisioningState = default(string), string licenseType = default(string), string modelDefinitionApplied = default(string), VirtualMachineScaleSetVMProtectionPolicy protectionPolicy = default(VirtualMachineScaleSetVMProtectionPolicy), string userData = default(string), System.DateTime? timeCreated = default(System.DateTime?), string virtualMachineResourceId = default(string), InterconnectBlockProfile interconnectBlockProfile = default(InterconnectBlockProfile)) : base(location, id, name, type, tags) { @@ -188,6 +192,7 @@ public VirtualMachineScaleSetVM() this.UserData = userData; this.TimeCreated = timeCreated; this.VirtualMachineResourceId = virtualMachineResourceId; + this.InterconnectBlockProfile = interconnectBlockProfile; CustomInit(); } @@ -400,6 +405,13 @@ public VirtualMachineScaleSetVM() /// [Newtonsoft.Json.JsonProperty(PropertyName = "properties.virtualMachineResourceId")] public string VirtualMachineResourceId {get; private set; } + + /// + /// Gets or sets specifies the Interconnect Block related details of a Scale + /// Set VM instance. Minimum api-version: 2026-03-01. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.interconnectBlockProfile")] + public InterconnectBlockProfile InterconnectBlockProfile {get; set; } /// /// Validate the object. /// @@ -446,6 +458,7 @@ public override void Validate() + } } } \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMInstanceView.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMInstanceView.cs index b48da6563c0f..3dee81e334ce 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMInstanceView.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMInstanceView.cs @@ -83,7 +83,11 @@ public VirtualMachineScaleSetVMInstanceView() /// The hypervisor generation of the Virtual Machine [V1, V2] /// Possible values include: 'V1', 'V2' - public VirtualMachineScaleSetVMInstanceView(int? platformUpdateDomain = default(int?), int? platformFaultDomain = default(int?), string rdpThumbPrint = default(string), VirtualMachineAgentInstanceView vmAgent = default(VirtualMachineAgentInstanceView), MaintenanceRedeployStatus maintenanceRedeployStatus = default(MaintenanceRedeployStatus), System.Collections.Generic.IList disks = default(System.Collections.Generic.IList), System.Collections.Generic.IList extensions = default(System.Collections.Generic.IList), VirtualMachineHealthStatus vmHealth = default(VirtualMachineHealthStatus), BootDiagnosticsInstanceView bootDiagnostics = default(BootDiagnosticsInstanceView), System.Collections.Generic.IList statuses = default(System.Collections.Generic.IList), string assignedHost = default(string), string placementGroupId = default(string), string computerName = default(string), string osName = default(string), string osVersion = default(string), string hyperVGeneration = default(string)) + + /// The Interconnect runtime view of the Scale Set VM instance. Minimum + /// api-version: 2026-03-01. + /// + public VirtualMachineScaleSetVMInstanceView(int? platformUpdateDomain = default(int?), int? platformFaultDomain = default(int?), string rdpThumbPrint = default(string), VirtualMachineAgentInstanceView vmAgent = default(VirtualMachineAgentInstanceView), MaintenanceRedeployStatus maintenanceRedeployStatus = default(MaintenanceRedeployStatus), System.Collections.Generic.IList disks = default(System.Collections.Generic.IList), System.Collections.Generic.IList extensions = default(System.Collections.Generic.IList), VirtualMachineHealthStatus vmHealth = default(VirtualMachineHealthStatus), BootDiagnosticsInstanceView bootDiagnostics = default(BootDiagnosticsInstanceView), System.Collections.Generic.IList statuses = default(System.Collections.Generic.IList), string assignedHost = default(string), string placementGroupId = default(string), string computerName = default(string), string osName = default(string), string osVersion = default(string), string hyperVGeneration = default(string), InterconnectInstanceView interconnectInstanceView = default(InterconnectInstanceView)) { this.PlatformUpdateDomain = platformUpdateDomain; @@ -102,6 +106,7 @@ public VirtualMachineScaleSetVMInstanceView() this.OsName = osName; this.OsVersion = osVersion; this.HyperVGeneration = hyperVGeneration; + this.InterconnectInstanceView = interconnectInstanceView; CustomInit(); } @@ -218,5 +223,12 @@ public VirtualMachineScaleSetVMInstanceView() /// [Newtonsoft.Json.JsonProperty(PropertyName = "hyperVGeneration")] public string HyperVGeneration {get; set; } + + /// + /// Gets the Interconnect runtime view of the Scale Set VM instance. Minimum + /// api-version: 2026-03-01. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interconnectInstanceView")] + public InterconnectInstanceView InterconnectInstanceView {get; private set; } } } \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMNetworkProfileConfiguration.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMNetworkProfileConfiguration.cs index 1cd4132b833b..1d807b865eaa 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMNetworkProfileConfiguration.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMNetworkProfileConfiguration.cs @@ -26,10 +26,15 @@ public VirtualMachineScaleSetVMNetworkProfileConfiguration() /// The list of network configurations. /// - public VirtualMachineScaleSetVMNetworkProfileConfiguration(System.Collections.Generic.IList networkInterfaceConfigurations = default(System.Collections.Generic.IList)) + + /// Specifies the interconnect group profile to associate with the scale set vm + /// instance. Minimum api-version: 2026-03-01. + /// + public VirtualMachineScaleSetVMNetworkProfileConfiguration(System.Collections.Generic.IList networkInterfaceConfigurations = default(System.Collections.Generic.IList), InterconnectGroupProfile interconnectGroupProfile = default(InterconnectGroupProfile)) { this.NetworkInterfaceConfigurations = networkInterfaceConfigurations; + this.InterconnectGroupProfile = interconnectGroupProfile; CustomInit(); } @@ -44,5 +49,12 @@ public VirtualMachineScaleSetVMNetworkProfileConfiguration() /// [Newtonsoft.Json.JsonProperty(PropertyName = "networkInterfaceConfigurations")] public System.Collections.Generic.IList NetworkInterfaceConfigurations {get; set; } + + /// + /// Gets or sets specifies the interconnect group profile to associate with the + /// scale set vm instance. Minimum api-version: 2026-03-01. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interconnectGroupProfile")] + public InterconnectGroupProfile InterconnectGroupProfile {get; set; } } } \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMProfile.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMProfile.cs index d041e0b19809..a1d5ab5644d5 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMProfile.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMProfile.cs @@ -86,6 +86,10 @@ public VirtualMachineScaleSetVMProfile() /// api-version: 2021-04-01. /// + /// Specifies the Interconnect Block related details of a Scale Set. Minimum + /// api-version: 2026-03-01. + /// + /// Specifies the gallery applications that should be made available to the /// VM/VMSS /// @@ -108,7 +112,7 @@ public VirtualMachineScaleSetVMProfile() /// creating/updating the VMSS VM Profile. Minimum API version for this /// property is 2023-09-01. /// - public VirtualMachineScaleSetVMProfile(VirtualMachineScaleSetOSProfile osProfile = default(VirtualMachineScaleSetOSProfile), VirtualMachineScaleSetStorageProfile storageProfile = default(VirtualMachineScaleSetStorageProfile), VirtualMachineScaleSetNetworkProfile networkProfile = default(VirtualMachineScaleSetNetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), VirtualMachineScaleSetExtensionProfile extensionProfile = default(VirtualMachineScaleSetExtensionProfile), string licenseType = default(string), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), CapacityReservationProfile capacityReservation = default(CapacityReservationProfile), ApplicationProfile applicationProfile = default(ApplicationProfile), VirtualMachineScaleSetHardwareProfile hardwareProfile = default(VirtualMachineScaleSetHardwareProfile), ServiceArtifactReference serviceArtifactReference = default(ServiceArtifactReference), SecurityPostureReference securityPostureReference = default(SecurityPostureReference), System.DateTime? timeCreated = default(System.DateTime?)) + public VirtualMachineScaleSetVMProfile(VirtualMachineScaleSetOSProfile osProfile = default(VirtualMachineScaleSetOSProfile), VirtualMachineScaleSetStorageProfile storageProfile = default(VirtualMachineScaleSetStorageProfile), VirtualMachineScaleSetNetworkProfile networkProfile = default(VirtualMachineScaleSetNetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), VirtualMachineScaleSetExtensionProfile extensionProfile = default(VirtualMachineScaleSetExtensionProfile), string licenseType = default(string), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), CapacityReservationProfile capacityReservation = default(CapacityReservationProfile), InterconnectBlockProfile interconnectBlockProfile = default(InterconnectBlockProfile), ApplicationProfile applicationProfile = default(ApplicationProfile), VirtualMachineScaleSetHardwareProfile hardwareProfile = default(VirtualMachineScaleSetHardwareProfile), ServiceArtifactReference serviceArtifactReference = default(ServiceArtifactReference), SecurityPostureReference securityPostureReference = default(SecurityPostureReference), System.DateTime? timeCreated = default(System.DateTime?)) { this.OsProfile = osProfile; @@ -124,6 +128,7 @@ public VirtualMachineScaleSetVMProfile() this.ScheduledEventsProfile = scheduledEventsProfile; this.UserData = userData; this.CapacityReservation = capacityReservation; + this.InterconnectBlockProfile = interconnectBlockProfile; this.ApplicationProfile = applicationProfile; this.HardwareProfile = hardwareProfile; this.ServiceArtifactReference = serviceArtifactReference; @@ -239,6 +244,13 @@ public VirtualMachineScaleSetVMProfile() [Newtonsoft.Json.JsonProperty(PropertyName = "capacityReservation")] public CapacityReservationProfile CapacityReservation {get; set; } + /// + /// Gets or sets specifies the Interconnect Block related details of a Scale + /// Set. Minimum api-version: 2026-03-01. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interconnectBlockProfile")] + public InterconnectBlockProfile InterconnectBlockProfile {get; set; } + /// /// Gets or sets specifies the gallery applications that should be made /// available to the VM/VMSS @@ -303,6 +315,7 @@ public virtual void Validate() + if (this.SecurityPostureReference != null) { this.SecurityPostureReference.Validate(); diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMProperties.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMProperties.cs index faf4438bc635..a9eb98b4d303 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMProperties.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineScaleSetVMProperties.cs @@ -112,7 +112,11 @@ public VirtualMachineScaleSetVMProperties() /// Scale Sets with Flexible orchestration mode. Minimum api-version: /// 2025-11-01. /// - public VirtualMachineScaleSetVMProperties(bool? latestModelApplied = default(bool?), string vmId = default(string), VirtualMachineScaleSetVMInstanceView instanceView = default(VirtualMachineScaleSetVMInstanceView), HardwareProfile hardwareProfile = default(HardwareProfile), string resilientVMDeletionStatus = default(string), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), SecurityProfile securityProfile = default(SecurityProfile), NetworkProfile networkProfile = default(NetworkProfile), VirtualMachineScaleSetVMNetworkProfileConfiguration networkProfileConfiguration = default(VirtualMachineScaleSetVMNetworkProfileConfiguration), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), string provisioningState = default(string), string licenseType = default(string), string modelDefinitionApplied = default(string), VirtualMachineScaleSetVMProtectionPolicy protectionPolicy = default(VirtualMachineScaleSetVMProtectionPolicy), string userData = default(string), System.DateTime? timeCreated = default(System.DateTime?), string virtualMachineResourceId = default(string)) + + /// Specifies the Interconnect Block related details of a Scale Set VM + /// instance. Minimum api-version: 2026-03-01. + /// + public VirtualMachineScaleSetVMProperties(bool? latestModelApplied = default(bool?), string vmId = default(string), VirtualMachineScaleSetVMInstanceView instanceView = default(VirtualMachineScaleSetVMInstanceView), HardwareProfile hardwareProfile = default(HardwareProfile), string resilientVMDeletionStatus = default(string), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), SecurityProfile securityProfile = default(SecurityProfile), NetworkProfile networkProfile = default(NetworkProfile), VirtualMachineScaleSetVMNetworkProfileConfiguration networkProfileConfiguration = default(VirtualMachineScaleSetVMNetworkProfileConfiguration), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), string provisioningState = default(string), string licenseType = default(string), string modelDefinitionApplied = default(string), VirtualMachineScaleSetVMProtectionPolicy protectionPolicy = default(VirtualMachineScaleSetVMProtectionPolicy), string userData = default(string), System.DateTime? timeCreated = default(System.DateTime?), string virtualMachineResourceId = default(string), InterconnectBlockProfile interconnectBlockProfile = default(InterconnectBlockProfile)) { this.LatestModelApplied = latestModelApplied; @@ -135,6 +139,7 @@ public VirtualMachineScaleSetVMProperties() this.UserData = userData; this.TimeCreated = timeCreated; this.VirtualMachineResourceId = virtualMachineResourceId; + this.InterconnectBlockProfile = interconnectBlockProfile; CustomInit(); } @@ -298,6 +303,13 @@ public VirtualMachineScaleSetVMProperties() /// [Newtonsoft.Json.JsonProperty(PropertyName = "virtualMachineResourceId")] public string VirtualMachineResourceId {get; private set; } + + /// + /// Gets or sets specifies the Interconnect Block related details of a Scale + /// Set VM instance. Minimum api-version: 2026-03-01. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interconnectBlockProfile")] + public InterconnectBlockProfile InterconnectBlockProfile {get; set; } /// /// Validate the object. /// @@ -327,6 +339,7 @@ public virtual void Validate() + } } } \ No newline at end of file diff --git a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineUpdate.cs b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineUpdate.cs index 3d551149d94d..26be2ad544d4 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineUpdate.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Models/VirtualMachineUpdate.cs @@ -180,10 +180,14 @@ public VirtualMachineUpdate() /// allocate virtual machine. Minimum api-version: 2021-04-01. /// + /// Specifies information about the Interconnect Block that is used to allocate + /// the Virtual Machine. Minimum api-version: 2026-03-01. + /// + /// Specifies the time at which the Virtual Machine resource was created. /// Minimum api-version: 2021-11-01. /// - public VirtualMachineUpdate(System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), Plan plan = default(Plan), VirtualMachineIdentity identity = default(VirtualMachineIdentity), System.Collections.Generic.IList zones = default(System.Collections.Generic.IList), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), BillingProfile billingProfile = default(BillingProfile), ApplicationProfile applicationProfile = default(ApplicationProfile), ResiliencyProfile resiliencyProfile = default(ResiliencyProfile), ScheduledEventsPolicy scheduledEventsPolicy = default(ScheduledEventsPolicy), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), string priority = default(string), string evictionPolicy = default(string), SubResource host = default(SubResource), SubResource hostGroup = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), string extensionsTimeBudget = default(string), int? platformFaultDomain = default(int?), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), CapacityReservationProfile capacityReservation = default(CapacityReservationProfile), System.DateTime? timeCreated = default(System.DateTime?)) + public VirtualMachineUpdate(System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), Plan plan = default(Plan), VirtualMachineIdentity identity = default(VirtualMachineIdentity), System.Collections.Generic.IList zones = default(System.Collections.Generic.IList), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), BillingProfile billingProfile = default(BillingProfile), ApplicationProfile applicationProfile = default(ApplicationProfile), ResiliencyProfile resiliencyProfile = default(ResiliencyProfile), ScheduledEventsPolicy scheduledEventsPolicy = default(ScheduledEventsPolicy), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), string priority = default(string), string evictionPolicy = default(string), SubResource host = default(SubResource), SubResource hostGroup = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), string extensionsTimeBudget = default(string), int? platformFaultDomain = default(int?), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), CapacityReservationProfile capacityReservation = default(CapacityReservationProfile), InterconnectBlockProfile interconnectBlockProfile = default(InterconnectBlockProfile), System.DateTime? timeCreated = default(System.DateTime?)) : base(tags) { @@ -217,6 +221,7 @@ public VirtualMachineUpdate() this.ScheduledEventsProfile = scheduledEventsProfile; this.UserData = userData; this.CapacityReservation = capacityReservation; + this.InterconnectBlockProfile = interconnectBlockProfile; this.TimeCreated = timeCreated; CustomInit(); } @@ -474,6 +479,13 @@ public VirtualMachineUpdate() [Newtonsoft.Json.JsonProperty(PropertyName = "properties.capacityReservation")] public CapacityReservationProfile CapacityReservation {get; set; } + /// + /// Gets or sets specifies information about the Interconnect Block that is + /// used to allocate the Virtual Machine. Minimum api-version: 2026-03-01. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "properties.interconnectBlockProfile")] + public InterconnectBlockProfile InterconnectBlockProfile {get; set; } + /// /// Gets specifies the time at which the Virtual Machine resource was created. /// Minimum api-version: 2021-11-01. @@ -518,6 +530,7 @@ public virtual void Validate() + } diff --git a/src/Compute/Compute.Management.Sdk/Generated/Operations.cs b/src/Compute/Compute.Management.Sdk/Generated/Operations.cs index 0019b42c113a..aeab21a8370d 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/Operations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/Operations.cs @@ -68,7 +68,7 @@ internal Operations (ComputeManagementClient client) - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/ProximityPlacementGroupsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/ProximityPlacementGroupsOperations.cs index cbd4138b6b6b..536b7550241d 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/ProximityPlacementGroupsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/ProximityPlacementGroupsOperations.cs @@ -79,7 +79,7 @@ internal ProximityPlacementGroupsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -293,7 +293,7 @@ internal ProximityPlacementGroupsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -522,7 +522,7 @@ internal ProximityPlacementGroupsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -764,7 +764,7 @@ internal ProximityPlacementGroupsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "proximityPlacementGroupName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1018,7 +1018,7 @@ internal ProximityPlacementGroupsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "proximityPlacementGroupName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; ProximityPlacementGroupUpdate parameters = new ProximityPlacementGroupUpdate(); if(tags != null) { @@ -1253,7 +1253,7 @@ internal ProximityPlacementGroupsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "proximityPlacementGroupName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/RestorePointCollectionsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/RestorePointCollectionsOperations.cs index 7e4ee4a94179..c4657b9eec1b 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/RestorePointCollectionsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/RestorePointCollectionsOperations.cs @@ -82,7 +82,7 @@ internal RestorePointCollectionsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -296,7 +296,7 @@ internal RestorePointCollectionsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -526,7 +526,7 @@ internal RestorePointCollectionsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -771,7 +771,7 @@ internal RestorePointCollectionsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "restorePointCollectionName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1029,7 +1029,7 @@ internal RestorePointCollectionsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "restorePointCollectionName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1283,7 +1283,7 @@ internal RestorePointCollectionsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "restorePointCollectionName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/RestorePointsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/RestorePointsOperations.cs index 09fde052ba63..fe7552f332d0 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/RestorePointsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/RestorePointsOperations.cs @@ -118,7 +118,7 @@ internal RestorePointsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -425,7 +425,7 @@ internal RestorePointsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "restorePointName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -521,7 +521,7 @@ internal RestorePointsOperations (ComputeManagementClient client) cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 201) + if ((int)_statusCode != 200 && (int)_statusCode != 201) { var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -565,6 +565,24 @@ internal RestorePointsOperations (ComputeManagementClient client) _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response if ((int)_statusCode == 201) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); @@ -678,7 +696,7 @@ internal RestorePointsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "restorePointName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/SshPublicKeysOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/SshPublicKeysOperations.cs index af14e0118ae7..fb14853264a1 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/SshPublicKeysOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/SshPublicKeysOperations.cs @@ -80,7 +80,7 @@ internal SshPublicKeysOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -295,7 +295,7 @@ internal SshPublicKeysOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -519,7 +519,7 @@ internal SshPublicKeysOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "sshPublicKeyName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -756,7 +756,7 @@ internal SshPublicKeysOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "sshPublicKeyName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1014,7 +1014,7 @@ internal SshPublicKeysOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "sshPublicKeyName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1244,7 +1244,7 @@ internal SshPublicKeysOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "sshPublicKeyName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1459,7 +1459,7 @@ internal SshPublicKeysOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "sshPublicKeyName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; SshGenerateKeyPairInputParameters parameters = new SshGenerateKeyPairInputParameters(); if(encryptionType != null) { diff --git a/src/Compute/Compute.Management.Sdk/Generated/UsageOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/UsageOperations.cs index 46d59048348b..2cf0b97bc258 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/UsageOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/UsageOperations.cs @@ -95,7 +95,7 @@ internal UsageOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "location", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineExtensionImagesOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineExtensionImagesOperations.cs index fc47b30c9d6f..7706d1c90e21 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineExtensionImagesOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineExtensionImagesOperations.cs @@ -101,7 +101,7 @@ internal VirtualMachineExtensionImagesOperations (ComputeManagementClient client throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "publisherName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -343,7 +343,7 @@ internal VirtualMachineExtensionImagesOperations (ComputeManagementClient client - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -598,7 +598,7 @@ internal VirtualMachineExtensionImagesOperations (ComputeManagementClient client throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "version"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineExtensionsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineExtensionsOperations.cs index 09b8ba62a842..d1c1c57f0d4c 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineExtensionsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineExtensionsOperations.cs @@ -109,7 +109,7 @@ internal VirtualMachineExtensionsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -352,7 +352,7 @@ internal VirtualMachineExtensionsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -685,7 +685,7 @@ internal VirtualMachineExtensionsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmExtensionName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -966,7 +966,7 @@ internal VirtualMachineExtensionsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmExtensionName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1219,7 +1219,7 @@ internal VirtualMachineExtensionsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmExtensionName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineImagesEdgeZoneOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineImagesEdgeZoneOperations.cs index 2be53028b8df..a7cfc6b74794 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineImagesEdgeZoneOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineImagesEdgeZoneOperations.cs @@ -102,7 +102,7 @@ internal VirtualMachineImagesEdgeZoneOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "edgeZone"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -333,7 +333,7 @@ internal VirtualMachineImagesEdgeZoneOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "publisherName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -574,7 +574,7 @@ internal VirtualMachineImagesEdgeZoneOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "offer"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -838,7 +838,7 @@ internal VirtualMachineImagesEdgeZoneOperations (ComputeManagementClient client) - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1113,7 +1113,7 @@ internal VirtualMachineImagesEdgeZoneOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineImagesOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineImagesOperations.cs index 779efe618131..66b5a2edd71f 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineImagesOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineImagesOperations.cs @@ -102,7 +102,7 @@ internal VirtualMachineImagesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "edgeZone"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -317,7 +317,7 @@ internal VirtualMachineImagesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "location", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -538,7 +538,7 @@ internal VirtualMachineImagesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "publisherName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -769,7 +769,7 @@ internal VirtualMachineImagesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "offer"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1022,7 +1022,7 @@ internal VirtualMachineImagesOperations (ComputeManagementClient client) - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1287,7 +1287,7 @@ internal VirtualMachineImagesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1544,7 +1544,7 @@ internal VirtualMachineImagesOperations (ComputeManagementClient client) - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineRunCommandsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineRunCommandsOperations.cs index 5d9d7ad2d2be..d823b729eb6d 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineRunCommandsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineRunCommandsOperations.cs @@ -93,7 +93,7 @@ internal VirtualMachineRunCommandsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "location", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -316,7 +316,7 @@ internal VirtualMachineRunCommandsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -546,7 +546,7 @@ internal VirtualMachineRunCommandsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -789,7 +789,7 @@ internal VirtualMachineRunCommandsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1122,7 +1122,7 @@ internal VirtualMachineRunCommandsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "runCommandName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1403,7 +1403,7 @@ internal VirtualMachineRunCommandsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "runCommandName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1656,7 +1656,7 @@ internal VirtualMachineRunCommandsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "runCommandName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetExtensionsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetExtensionsOperations.cs index 1a7d872a4bd2..b3f35cb5ae74 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetExtensionsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetExtensionsOperations.cs @@ -105,7 +105,7 @@ internal VirtualMachineScaleSetExtensionsOperations (ComputeManagementClient cli throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -343,7 +343,7 @@ internal VirtualMachineScaleSetExtensionsOperations (ComputeManagementClient cli } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -676,7 +676,7 @@ internal VirtualMachineScaleSetExtensionsOperations (ComputeManagementClient cli throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmssExtensionName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -957,7 +957,7 @@ internal VirtualMachineScaleSetExtensionsOperations (ComputeManagementClient cli throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmssExtensionName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1228,7 +1228,7 @@ internal VirtualMachineScaleSetExtensionsOperations (ComputeManagementClient cli throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmssExtensionName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetLifeCycleHookEventsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetLifeCycleHookEventsOperations.cs index b463de64bc99..a3d79e5b3b32 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetLifeCycleHookEventsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetLifeCycleHookEventsOperations.cs @@ -106,7 +106,7 @@ internal VirtualMachineScaleSetLifeCycleHookEventsOperations (ComputeManagementC throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -340,7 +340,7 @@ internal VirtualMachineScaleSetLifeCycleHookEventsOperations (ComputeManagementC throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "lifecycleHookEventName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -584,7 +584,7 @@ internal VirtualMachineScaleSetLifeCycleHookEventsOperations (ComputeManagementC throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "lifecycleHookEventName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetRollingUpgradesOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetRollingUpgradesOperations.cs index 5c32cbde0feb..2be6c43029cb 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetRollingUpgradesOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetRollingUpgradesOperations.cs @@ -175,7 +175,7 @@ internal VirtualMachineScaleSetRollingUpgradesOperations (ComputeManagementClien throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -400,7 +400,7 @@ internal VirtualMachineScaleSetRollingUpgradesOperations (ComputeManagementClien throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -607,7 +607,7 @@ internal VirtualMachineScaleSetRollingUpgradesOperations (ComputeManagementClien throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -812,7 +812,7 @@ internal VirtualMachineScaleSetRollingUpgradesOperations (ComputeManagementClien throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetVMExtensionsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetVMExtensionsOperations.cs index dda3c6607564..5c1f724eb8c1 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetVMExtensionsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetVMExtensionsOperations.cs @@ -118,7 +118,7 @@ internal VirtualMachineScaleSetVMExtensionsOperations (ComputeManagementClient c } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -371,7 +371,7 @@ internal VirtualMachineScaleSetVMExtensionsOperations (ComputeManagementClient c } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -723,7 +723,7 @@ internal VirtualMachineScaleSetVMExtensionsOperations (ComputeManagementClient c throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmExtensionName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1014,7 +1014,7 @@ internal VirtualMachineScaleSetVMExtensionsOperations (ComputeManagementClient c throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmExtensionName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1277,7 +1277,7 @@ internal VirtualMachineScaleSetVMExtensionsOperations (ComputeManagementClient c throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmExtensionName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetVMRunCommandsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetVMRunCommandsOperations.cs index 7dc1f55da3a2..e3d7fe64fb81 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetVMRunCommandsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetVMRunCommandsOperations.cs @@ -118,7 +118,7 @@ internal VirtualMachineScaleSetVMRunCommandsOperations (ComputeManagementClient } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -371,7 +371,7 @@ internal VirtualMachineScaleSetVMRunCommandsOperations (ComputeManagementClient } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -723,7 +723,7 @@ internal VirtualMachineScaleSetVMRunCommandsOperations (ComputeManagementClient throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "runCommandName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1014,7 +1014,7 @@ internal VirtualMachineScaleSetVMRunCommandsOperations (ComputeManagementClient throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "runCommandName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1277,7 +1277,7 @@ internal VirtualMachineScaleSetVMRunCommandsOperations (ComputeManagementClient throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "runCommandName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetVMsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetVMsOperations.cs index 44e15ac2cd6f..883352e175f0 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetVMsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetVMsOperations.cs @@ -122,7 +122,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -377,7 +377,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -768,7 +768,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "instanceId"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1174,7 +1174,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1441,7 +1441,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "instanceId"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1707,7 +1707,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1988,7 +1988,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2209,7 +2209,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "instanceId"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2452,7 +2452,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "instanceId"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2708,7 +2708,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "instanceId"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2923,7 +2923,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "instanceId"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3146,7 +3146,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3367,7 +3367,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "instanceId"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3587,7 +3587,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "instanceId"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3810,7 +3810,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "instanceId"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4025,7 +4025,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "instanceId"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4254,7 +4254,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "instanceId"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4494,7 +4494,7 @@ internal VirtualMachineScaleSetVMSOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "instanceId"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetsOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetsOperations.cs index 704deda21198..03488476ca00 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetsOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineScaleSetsOperations.cs @@ -94,7 +94,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "location", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -295,7 +295,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "Client.SubscriptionId", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -509,7 +509,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -739,7 +739,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1097,7 +1097,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; VMScaleSetConvertToSinglePlacementGroupInput parameters = new VMScaleSetConvertToSinglePlacementGroupInput(); if(activePlacementGroupId != null) { @@ -1393,7 +1393,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1631,7 +1631,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1883,7 +1883,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2357,7 +2357,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2633,7 +2633,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2934,7 +2934,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3199,7 +3199,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3415,7 +3415,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = new VirtualMachineScaleSetVMInstanceIDs(); if(instanceIds != null) { @@ -3657,7 +3657,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = new VirtualMachineScaleSetVMInstanceIDs(); if(instanceIds != null) { @@ -3887,7 +3887,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs = new VirtualMachineScaleSetVMInstanceRequiredIDs(); if(instanceIds != null) { @@ -4113,7 +4113,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs = new VirtualMachineScaleSetVMInstanceRequiredIDs(); if(instanceIds != null) { @@ -4338,7 +4338,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = new VirtualMachineScaleSetVMInstanceIDs(); if(instanceIds != null) { @@ -4568,7 +4568,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = new VirtualMachineScaleSetVMInstanceIDs(); if(instanceIds != null) { @@ -4791,7 +4791,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -5015,7 +5015,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = new VirtualMachineScaleSetVMInstanceIDs(); if(instanceIds != null) { @@ -5238,7 +5238,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -5456,7 +5456,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = new VirtualMachineScaleSetVMInstanceIDs(); if(instanceIds != null) { @@ -5678,7 +5678,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = new VirtualMachineScaleSetVMInstanceIDs(); if(instanceIds != null) { @@ -5906,7 +5906,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -6142,7 +6142,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -6359,7 +6359,7 @@ internal VirtualMachineScaleSetsOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmScaleSetName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = new VirtualMachineScaleSetVMInstanceIDs(); if(instanceIds != null) { diff --git a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineSizesOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineSizesOperations.cs index 2f3a30f674a4..995d55fb66af 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineSizesOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachineSizesOperations.cs @@ -94,7 +94,7 @@ internal VirtualMachineSizesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "location", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachinesOperations.cs b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachinesOperations.cs index 40cc9e7c1c6f..55f513dc2d00 100644 --- a/src/Compute/Compute.Management.Sdk/Generated/VirtualMachinesOperations.cs +++ b/src/Compute/Compute.Management.Sdk/Generated/VirtualMachinesOperations.cs @@ -94,7 +94,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "location", 1); } } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -310,7 +310,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -552,7 +552,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -795,7 +795,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1250,7 +1250,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1483,7 +1483,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1891,7 +1891,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2144,7 +2144,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2375,7 +2375,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2625,7 +2625,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2926,7 +2926,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3191,7 +3191,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3404,7 +3404,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3642,7 +3642,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3900,7 +3900,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4131,7 +4131,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4345,7 +4345,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4574,7 +4574,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4809,7 +4809,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -5021,7 +5021,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -5234,7 +5234,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -5444,7 +5444,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -5650,7 +5650,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -5865,7 +5865,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -6077,7 +6077,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -6296,7 +6296,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -6526,7 +6526,7 @@ internal VirtualMachinesOperations (ComputeManagementClient client) throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "vmName"); } - string apiVersion = "2025-11-01"; + string apiVersion = "2026-03-01"; // Tracing bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/Compute/Compute.Management.Sdk/README.md b/src/Compute/Compute.Management.Sdk/README.md index 0f0387e7b95b..a30e739491ea 100644 --- a/src/Compute/Compute.Management.Sdk/README.md +++ b/src/Compute/Compute.Management.Sdk/README.md @@ -4,7 +4,6 @@ This directory contains the service clients of Az.Compute module. ## Run Generation In this directory, run AutoRest: ``` -.\Rest-api-specs\preprocess-rest-api-spec.ps1 autorest --reset autorest --use:@autorest/powershell@4.x ``` @@ -25,12 +24,12 @@ title: ComputeManagementClient payload-flattening-threshold: 1 # Azure REST API Specs commit -commit: 0607ac7cf513761c4ffbc3a65dd8a01e1ef9a6da +commit: dddc9b49f352a218d85ca501656ad2270c0c2b2a input-file: - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/common-types/resource-management/v3/types.json - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/compute/resource-manager/Microsoft.Compute/Compute/common-types/v1/common.json - - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2025-11-01/ComputeRP.json + - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2026-03-01/ComputeRP.json - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2025-01-02/DiskRP.json - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2025-03-03/GalleryRP.json - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2021-07-01/skus.json diff --git a/src/Compute/Compute/ChangeLog.md b/src/Compute/Compute/ChangeLog.md index ddb3f7ffe47f..0e517b3aa1bc 100644 --- a/src/Compute/Compute/ChangeLog.md +++ b/src/Compute/Compute/ChangeLog.md @@ -20,6 +20,7 @@ --> ## Upcoming Release +* ComputeRP related cmdlets will now use 2026-03-01 version of the ComputeRP API. * Added support for configuring ScheduledEventsPolicy on Virtual Machines, Virtual Machine Scale Sets, and Availability Sets. - Added `-ScheduledEventsApiVersion` and `-EnableAllInstancesDown` parameters to `Update-AzAvailabilitySet`, `Update-AzVM`, `New-AzVM` (SimpleParameterSet), and `New-AzVmss` cmdlets. - Added `-ScheduledEventsApiVersion` and `-EnableAllInstancesDown` parameters to `Update-AzVmss`. These parameters are only supported when updating via the `-VirtualMachineScaleSet` object parameter (e.g. piping the output of `Get-AzVmss`); using them with the PATCH parameter sets will throw an error.