Skip to content

Commit 6e0b314

Browse files
Prepare release of data protection backup (Azure#48127)
* change the name and type of the property * change the way of fixing the issue * prepare release
1 parent d56cd4f commit 6e0b314

File tree

7 files changed

+24
-26
lines changed

7 files changed

+24
-26
lines changed

sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
# Release History
22

3-
## 1.6.0-beta.1 (Unreleased)
3+
## 1.6.0-beta.1 (2025-02-11)
44

55
### Features Added
66

77
- Exposed `JsonModelWriteCore` for model serialization procedure.
88

9-
### Breaking Changes
10-
119
### Bugs Fixed
1210

13-
Convert properties of type Uri to type string in DataProtectionIdentityDetails. Issue at https://github.com/Azure/azure-sdk-for-net/issues/47031
14-
15-
### Other Changes
11+
- Added a new property `UserAssignedIdentityId` in `DataProtectionIdentityDetails` to replace the old property `UserAssignedIdentityArmUri` with wrong type (https://github.com/Azure/azure-sdk-for-net/issues/47031).
1612

1713
## 1.5.0 (2024-06-17)
1814

sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/api/Azure.ResourceManager.DataProtectionBackup.net8.0.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1992,9 +1992,9 @@ public partial class DataProtectionIdentityDetails : System.ClientModel.Primitiv
19921992
{
19931993
public DataProtectionIdentityDetails() { }
19941994
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
1995-
[System.ObsoleteAttribute("This property has been replaced by UserAssignedIdentityArmUriString", false)]
1995+
[System.ObsoleteAttribute("This property has been replaced by UserAssignedIdentityId", false)]
19961996
public System.Uri UserAssignedIdentityArmUri { get { throw null; } set { } }
1997-
public string UserAssignedIdentityArmUriString { get { throw null; } set { } }
1997+
public Azure.Core.ResourceIdentifier UserAssignedIdentityId { get { throw null; } set { } }
19981998
public bool? UseSystemAssignedIdentity { get { throw null; } set { } }
19991999
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
20002000
Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionIdentityDetails System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionIdentityDetails>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }

sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/api/Azure.ResourceManager.DataProtectionBackup.netstandard2.0.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1992,9 +1992,9 @@ public partial class DataProtectionIdentityDetails : System.ClientModel.Primitiv
19921992
{
19931993
public DataProtectionIdentityDetails() { }
19941994
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
1995-
[System.ObsoleteAttribute("This property has been replaced by UserAssignedIdentityArmUriString", false)]
1995+
[System.ObsoleteAttribute("This property has been replaced by UserAssignedIdentityId", false)]
19961996
public System.Uri UserAssignedIdentityArmUri { get { throw null; } set { } }
1997-
public string UserAssignedIdentityArmUriString { get { throw null; } set { } }
1997+
public Azure.Core.ResourceIdentifier UserAssignedIdentityId { get { throw null; } set { } }
19981998
public bool? UseSystemAssignedIdentity { get { throw null; } set { } }
19991999
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
20002000
Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionIdentityDetails System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionIdentityDetails>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }

sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Customized/Models/DataProtectionIdentityDetails.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
#nullable disable
55

66
using System;
7-
using System.Collections.Generic;
87
using System.ComponentModel;
9-
using Azure.Core;
10-
using Azure.ResourceManager.Models;
118

129
namespace Azure.ResourceManager.DataProtectionBackup.Models
1310
{
@@ -16,12 +13,12 @@ public partial class DataProtectionIdentityDetails
1613
/// <summary>
1714
/// ARM URL for User Assigned Identity.
1815
/// </summary>
19-
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
20-
[ObsoleteAttribute("This property has been replaced by UserAssignedIdentityArmUriString", false)]
16+
[EditorBrowsable(EditorBrowsableState.Never)]
17+
[Obsolete("This property has been replaced by UserAssignedIdentityId", false)]
2118
public Uri UserAssignedIdentityArmUri
2219
{
23-
get => string.IsNullOrEmpty(UserAssignedIdentityArmUriString) ? null : new Uri(UserAssignedIdentityArmUriString);
24-
set => UserAssignedIdentityArmUriString = value?.AbsoluteUri;
20+
get => string.IsNullOrEmpty(UserAssignedIdentityId) ? null : new Uri(UserAssignedIdentityId);
21+
set => UserAssignedIdentityId = new(value?.AbsoluteUri);
2522
}
2623
}
2724
}

sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionIdentityDetails.Serialization.cs

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/Generated/Models/DataProtectionIdentityDetails.cs

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/src/autorest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ rename-mapping:
257257
SecureScoreLevel: BackupVaultSecureScoreLevel
258258
FeatureSettings: BackupVaultFeatureSettings
259259
IdentityDetails: DataProtectionIdentityDetails
260-
IdentityDetails.userAssignedIdentityArmUrl: UserAssignedIdentityArmUriString
260+
IdentityDetails.userAssignedIdentityArmUrl: UserAssignedIdentityId|arm-id
261261
NamespacedNameResource: NamespacedName
262262
CrossRegionRestoreDetails.sourceBackupInstanceId : -|arm-id
263263
CrossRegionRestoreDetails.sourceRegion : -|azure-location

0 commit comments

Comments
 (0)