Skip to content

Commit c083c5f

Browse files
author
Dragos Avadanei
committed
addressing breaking change issues uncovered by the official build
1 parent ee24b97 commit c083c5f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/ResourceManager/KeyVault/Commands.KeyVault/Models/KeyIdentityItem.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ internal KeyIdentityItem(Azure.KeyVault.Models.KeyItem keyItem, VaultUriHelper v
3838
Updated = keyItem.Attributes.Updated;
3939
RecoveryLevel = keyItem.Attributes.RecoveryLevel;
4040
Tags = (keyItem.Tags == null) ? null : keyItem.Tags.ConvertToHashtable();
41+
42+
43+
// the PurgeDisabled field was deprecated, but is kept in the
44+
// PSH SDK until the first breaking-change release.
45+
PurgeDisabled = false;
4146
}
4247

4348
internal KeyIdentityItem(KeyBundle keyBundle)
@@ -56,6 +61,10 @@ internal KeyIdentityItem(KeyBundle keyBundle)
5661
Updated = keyBundle.Attributes.Updated;
5762
RecoveryLevel = keyBundle.Attributes.RecoveryLevel;
5863
Tags = keyBundle.Attributes.Tags;
64+
65+
// the PurgeDisabled field was deprecated, but is kept in the
66+
// PSH SDK until the first breaking-change release.
67+
PurgeDisabled = false;
5968
}
6069

6170
public bool? Enabled { get; set; }
@@ -68,6 +77,8 @@ internal KeyIdentityItem(KeyBundle keyBundle)
6877

6978
public DateTime? Updated { get; private set; }
7079

80+
public bool PurgeDisabled { get; private set; }
81+
7182
public string RecoveryLevel { get; private set; }
7283

7384
public Hashtable Tags { get; set; }

0 commit comments

Comments
 (0)