Skip to content
6 changes: 4 additions & 2 deletions sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
- Added `InstantAccess` property to `RestorePointGroupPatch` class.
- Added `InstantAccessDurationMinutes` property to `RestorePointData` class.
- Added `EnableFips1403Encryption` property to `AdditionalCapabilities` class.
- Modified `DiskIOPSReadWrite` and `DiskMBpsReadWrite` properties under the `VirtualMachineDataDisk` class to make the properties writable, and expanded the scope of usage from only VMSS to also include Virtual Machines and Flexible VMs.

### Breaking Changes

Modified `DiskIOPSReadWrite` and `DiskMBpsReadWrite` properties under the `VirtualMachineDataDisk` class to make the properties writable, and expanded the scope of usage from only VMSS to also include Virtual Machines and Flexible VMs.
- `CommunityGallery`, `CommunityGalleryImage`, `CommunityGalleryImageVersion` are no longer ARM resources in the library, their corresponding `*Resource` and `*Collection` classes are now hidden. Please use related methods added in `ComputeExtensions` class instead.
- `SharedGallery`, `SharedGalleryImage`, `SharedGalleryImageVersion` are no longer ARM resources in the library, their corresponding `*Resource` and `*Collection` classes are now hidden. Please use related methods added in `ComputeExtensions` class instead.

## 1.12.0 (2025-09-26)

Expand Down Expand Up @@ -51,7 +53,7 @@ Modified `DiskIOPSReadWrite` and `DiskMBpsReadWrite` properties under the `Virtu

### Breaking Changes

- Removed `GetVirtualMachineImagesWithPropertiesExpand` class as it has no utility.
- Removed `GetVirtualMachineImagesWithPropertiesExpand` class as it has no utility.

## 1.10.0 (2025-06-30)

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
Expand All @@ -20,6 +19,7 @@ namespace Azure.ResourceManager.Compute
/// Each <see cref="CommunityGalleryResource"/> in the collection will belong to the same instance of <see cref="SubscriptionResource"/>.
/// To get a <see cref="CommunityGalleryCollection"/> instance call the GetCommunityGalleries method from an instance of <see cref="SubscriptionResource"/>.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public partial class CommunityGalleryCollection : ArmCollection
{
private readonly ClientDiagnostics _communityGalleryClientDiagnostics;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable disable

using System.ComponentModel;
using Azure.Core;

namespace Azure.ResourceManager.Compute
{
// we have this customization here to change its namespace to avoid breaking changes
[CodeGenType("CommunityGalleryData")]
public partial class CommunityGalleryData
{
// we also must add back this property to avoid breaking changes, but its payload never have this property.
/// <summary>
/// The resource identifier.
///
/// This property is depracated and will be removed in a future release.
/// There is possibility that this property will be null.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public ResourceIdentifier Id { get; internal set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Autorest.CSharp.Core;
Expand All @@ -22,6 +22,7 @@ namespace Azure.ResourceManager.Compute
/// Each <see cref="CommunityGalleryImageResource"/> in the collection will belong to the same instance of <see cref="CommunityGalleryResource"/>.
/// To get a <see cref="CommunityGalleryImageCollection"/> instance call the GetCommunityGalleryImages method from an instance of <see cref="CommunityGalleryResource"/>.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public partial class CommunityGalleryImageCollection : ArmCollection, IEnumerable<CommunityGalleryImageResource>, IAsyncEnumerable<CommunityGalleryImageResource>
{
private readonly ClientDiagnostics _communityGalleryImageClientDiagnostics;
Expand Down Expand Up @@ -170,7 +171,7 @@ public virtual AsyncPageable<CommunityGalleryImageResource> GetAllAsync(Cancella
{
HttpMessage FirstPageRequest(int? pageSizeHint) => _communityGalleryImageRestClient.CreateListRequest(Id.SubscriptionId, new AzureLocation(Id.Parent.Name), Id.Name);
HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _communityGalleryImageRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, new AzureLocation(Id.Parent.Name), Id.Name);
return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new CommunityGalleryImageResource(Client, CommunityGalleryImageData.DeserializeCommunityGalleryImageData(e)), _communityGalleryImageClientDiagnostics, Pipeline, "CommunityGalleryImageCollection.GetAll", "value", "nextLink", cancellationToken);
return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new CommunityGalleryImageResource(Client, DeserializeCommunityGalleryImageData(e)), _communityGalleryImageClientDiagnostics, Pipeline, "CommunityGalleryImageCollection.GetAll", "value", "nextLink", cancellationToken);
}

/// <summary>
Expand Down Expand Up @@ -200,7 +201,14 @@ public virtual Pageable<CommunityGalleryImageResource> GetAll(CancellationToken
{
HttpMessage FirstPageRequest(int? pageSizeHint) => _communityGalleryImageRestClient.CreateListRequest(Id.SubscriptionId, new AzureLocation(Id.Parent.Name), Id.Name);
HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _communityGalleryImageRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, new AzureLocation(Id.Parent.Name), Id.Name);
return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new CommunityGalleryImageResource(Client, CommunityGalleryImageData.DeserializeCommunityGalleryImageData(e)), _communityGalleryImageClientDiagnostics, Pipeline, "CommunityGalleryImageCollection.GetAll", "value", "nextLink", cancellationToken);
return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new CommunityGalleryImageResource(Client, DeserializeCommunityGalleryImageData(e)), _communityGalleryImageClientDiagnostics, Pipeline, "CommunityGalleryImageCollection.GetAll", "value", "nextLink", cancellationToken);
}

private CommunityGalleryImageData DeserializeCommunityGalleryImageData(JsonElement element)
{
var data = CommunityGalleryImageData.DeserializeCommunityGalleryImageData(element);
data.Id = CommunityGalleryImageResource.CreateResourceIdentifier(Id.SubscriptionId, new AzureLocation(Id.Parent.Name), Id.Name, data.Name);
return data;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
#nullable disable

using System.ComponentModel;
using Azure.Core;
using Azure.ResourceManager.Compute.Models;

namespace Azure.ResourceManager.Compute
{
// we have this customization here to change its namespace to avoid breaking changes
[CodeGenType("CommunityGalleryImageData")]
public partial class CommunityGalleryImageData
{
/// <summary> This is the gallery image definition identifier. </summary>
Expand All @@ -18,5 +21,15 @@ public partial class CommunityGalleryImageData
Offer = ImageIdentifier.Offer,
Sku = ImageIdentifier.Sku
};

// we also must add back this property to avoid breaking changes, but its payload never have this property.
/// <summary>
/// The resource identifier.
///
/// This property is depracated and will be removed in a future release.
/// There is possibility that this property will be null.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public ResourceIdentifier Id { get; internal set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
Expand All @@ -20,6 +19,7 @@ namespace Azure.ResourceManager.Compute
/// from an instance of <see cref="ArmClient"/> using the GetCommunityGalleryImageResource method.
/// Otherwise you can get one from its parent resource <see cref="CommunityGalleryResource"/> using the GetCommunityGalleryImage method.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public partial class CommunityGalleryImageResource : ArmResource
{
/// <summary> Generate the resource identifier of a <see cref="CommunityGalleryImageResource"/> instance. </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Autorest.CSharp.Core;
Expand All @@ -22,6 +22,7 @@ namespace Azure.ResourceManager.Compute
/// Each <see cref="CommunityGalleryImageVersionResource"/> in the collection will belong to the same instance of <see cref="CommunityGalleryImageResource"/>.
/// To get a <see cref="CommunityGalleryImageVersionCollection"/> instance call the GetCommunityGalleryImageVersions method from an instance of <see cref="CommunityGalleryImageResource"/>.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public partial class CommunityGalleryImageVersionCollection : ArmCollection, IEnumerable<CommunityGalleryImageVersionResource>, IAsyncEnumerable<CommunityGalleryImageVersionResource>
{
private readonly ClientDiagnostics _communityGalleryImageVersionClientDiagnostics;
Expand Down Expand Up @@ -170,7 +171,7 @@ public virtual AsyncPageable<CommunityGalleryImageVersionResource> GetAllAsync(C
{
HttpMessage FirstPageRequest(int? pageSizeHint) => _communityGalleryImageVersionRestClient.CreateListRequest(Id.SubscriptionId, new AzureLocation(Id.Parent.Parent.Name), Id.Parent.Name, Id.Name);
HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _communityGalleryImageVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, new AzureLocation(Id.Parent.Parent.Name), Id.Parent.Name, Id.Name);
return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new CommunityGalleryImageVersionResource(Client, CommunityGalleryImageVersionData.DeserializeCommunityGalleryImageVersionData(e)), _communityGalleryImageVersionClientDiagnostics, Pipeline, "CommunityGalleryImageVersionCollection.GetAll", "value", "nextLink", cancellationToken);
return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new CommunityGalleryImageVersionResource(Client, DeserializeCommunityGalleryImageVersionData(e)), _communityGalleryImageVersionClientDiagnostics, Pipeline, "CommunityGalleryImageVersionCollection.GetAll", "value", "nextLink", cancellationToken);
}

/// <summary>
Expand Down Expand Up @@ -200,7 +201,14 @@ public virtual Pageable<CommunityGalleryImageVersionResource> GetAll(Cancellatio
{
HttpMessage FirstPageRequest(int? pageSizeHint) => _communityGalleryImageVersionRestClient.CreateListRequest(Id.SubscriptionId, new AzureLocation(Id.Parent.Parent.Name), Id.Parent.Name, Id.Name);
HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _communityGalleryImageVersionRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, new AzureLocation(Id.Parent.Parent.Name), Id.Parent.Name, Id.Name);
return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new CommunityGalleryImageVersionResource(Client, CommunityGalleryImageVersionData.DeserializeCommunityGalleryImageVersionData(e)), _communityGalleryImageVersionClientDiagnostics, Pipeline, "CommunityGalleryImageVersionCollection.GetAll", "value", "nextLink", cancellationToken);
return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new CommunityGalleryImageVersionResource(Client, DeserializeCommunityGalleryImageVersionData(e)), _communityGalleryImageVersionClientDiagnostics, Pipeline, "CommunityGalleryImageVersionCollection.GetAll", "value", "nextLink", cancellationToken);
}

private CommunityGalleryImageVersionData DeserializeCommunityGalleryImageVersionData(JsonElement element)
{
var data = CommunityGalleryImageVersionData.DeserializeCommunityGalleryImageVersionData(element);
data.Id = CommunityGalleryImageVersionResource.CreateResourceIdentifier(Id.SubscriptionId, new AzureLocation(Id.Parent.Parent.Name), Id.Parent.Name, Id.Name, data.Name);
return data;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,28 @@
#nullable disable

using System.ComponentModel;
using Azure.Core;

namespace Azure.ResourceManager.Compute
{
// we have this customization here to change its namespace to avoid breaking changes
[CodeGenType("CommunityGalleryImageVersionData")]
public partial class CommunityGalleryImageVersionData
{
/// <summary>
/// If set to true, Virtual Machines deployed from the latest version of the Image Definition won&apos;t use this Image Version.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool? ExcludeFromLatest { get => IsExcludedFromLatest; }

// we also must add back this property to avoid breaking changes, but its payload never have this property.
/// <summary>
/// The resource identifier.
///
/// This property is depracated and will be removed in a future release.
/// There is possibility that this property will be null.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public ResourceIdentifier Id { get; internal set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
Expand All @@ -20,6 +19,7 @@ namespace Azure.ResourceManager.Compute
/// from an instance of <see cref="ArmClient"/> using the GetCommunityGalleryImageVersionResource method.
/// Otherwise you can get one from its parent resource <see cref="CommunityGalleryImageResource"/> using the GetCommunityGalleryImageVersion method.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public partial class CommunityGalleryImageVersionResource : ArmResource
{
/// <summary> Generate the resource identifier of a <see cref="CommunityGalleryImageVersionResource"/> instance. </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System;
using System.ComponentModel;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
Expand All @@ -21,6 +20,7 @@ namespace Azure.ResourceManager.Compute
/// from an instance of <see cref="ArmClient"/> using the GetCommunityGalleryResource method.
/// Otherwise you can get one from its parent resource <see cref="SubscriptionResource"/> using the GetCommunityGallery method.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public partial class CommunityGalleryResource : ArmResource
{
/// <summary> Generate the resource identifier of a <see cref="CommunityGalleryResource"/> instance. </summary>
Expand Down
Loading