Skip to content

Commit 07a5ee3

Browse files
authored
Convert properties of type Uri to type string in DataProtectionBackup (Azure#47465)
* regen * update * Update DataProtectionIdentityDetails.cs * regen * Update CHANGELOG.md
1 parent bc37ff1 commit 07a5ee3

File tree

7 files changed

+45
-13
lines changed

7 files changed

+45
-13
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
### Bugs Fixed
1212

13+
Convert properties of type Uri to type string in DataProtectionIdentityDetails. Issue at https://github.com/Azure/azure-sdk-for-net/issues/47031
14+
1315
### Other Changes
1416

1517
## 1.5.0 (2024-06-17)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,7 +1986,10 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
19861986
public partial class DataProtectionIdentityDetails : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionIdentityDetails>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionIdentityDetails>
19871987
{
19881988
public DataProtectionIdentityDetails() { }
1989+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
1990+
[System.ObsoleteAttribute("This property has been replaced by UserAssignedIdentityArmUriString", false)]
19891991
public System.Uri UserAssignedIdentityArmUri { get { throw null; } set { } }
1992+
public string UserAssignedIdentityArmUriString { get { throw null; } set { } }
19901993
public bool? UseSystemAssignedIdentity { get { throw null; } set { } }
19911994
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
19921995
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,7 +1986,10 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
19861986
public partial class DataProtectionIdentityDetails : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionIdentityDetails>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionIdentityDetails>
19871987
{
19881988
public DataProtectionIdentityDetails() { }
1989+
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
1990+
[System.ObsoleteAttribute("This property has been replaced by UserAssignedIdentityArmUriString", false)]
19891991
public System.Uri UserAssignedIdentityArmUri { get { throw null; } set { } }
1992+
public string UserAssignedIdentityArmUriString { get { throw null; } set { } }
19901993
public bool? UseSystemAssignedIdentity { get { throw null; } set { } }
19911994
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
19921995
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; }
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#nullable disable
5+
6+
using System;
7+
using System.Collections.Generic;
8+
using System.ComponentModel;
9+
using Azure.Core;
10+
using Azure.ResourceManager.Models;
11+
12+
namespace Azure.ResourceManager.DataProtectionBackup.Models
13+
{
14+
public partial class DataProtectionIdentityDetails
15+
{
16+
/// <summary>
17+
/// ARM URL for User Assigned Identity.
18+
/// </summary>
19+
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
20+
[ObsoleteAttribute("This property has been replaced by UserAssignedIdentityArmUriString", false)]
21+
public Uri UserAssignedIdentityArmUri
22+
{
23+
get => string.IsNullOrEmpty(UserAssignedIdentityArmUriString) ? null : new Uri(UserAssignedIdentityArmUriString);
24+
set => UserAssignedIdentityArmUriString = value?.AbsoluteUri;
25+
}
26+
}
27+
}

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

Lines changed: 4 additions & 8 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: 4 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ modelerfour:
1717
flatten-payloads: false
1818
use-model-reader-writer: true
1919

20-
#mgmt-debug:
20+
# mgmt-debug:
2121
# show-serialized-names: true
2222

2323
format-by-name-rules:
@@ -257,6 +257,7 @@ rename-mapping:
257257
SecureScoreLevel: BackupVaultSecureScoreLevel
258258
FeatureSettings: BackupVaultFeatureSettings
259259
IdentityDetails: DataProtectionIdentityDetails
260+
IdentityDetails.userAssignedIdentityArmUrl: UserAssignedIdentityArmUriString
260261
NamespacedNameResource: NamespacedName
261262
CrossRegionRestoreDetails.sourceBackupInstanceId : -|arm-id
262263
CrossRegionRestoreDetails.sourceRegion : -|azure-location

0 commit comments

Comments
 (0)