Skip to content

Commit 0fdd3cc

Browse files
author
Dragos Avadanei
committed
restoring the PurgeDisabled flag, to prevent this from being a breaking-change release
1 parent 6d44d10 commit 0fdd3cc

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ internal KeyAttributes(bool? enabled, DateTime? expires, DateTime? notBefore, st
3535
this.KeyType = keyType;
3636
this.KeyOps = keyOps;
3737
this.Tags = tags;
38+
this.PurgeDisabled = false;
3839
}
3940

4041
internal KeyAttributes(bool? enabled, DateTime? expires, DateTime? notBefore, string keyType,
@@ -49,6 +50,7 @@ internal KeyAttributes(bool? enabled, DateTime? expires, DateTime? notBefore, st
4950
this.Updated = updated;
5051
this.RecoveryLevel = deletionRecoveryLevel;
5152
this.Tags = (tags == null) ? null : tags.ConvertToHashtable();
53+
this.PurgeDisabled = false;
5254
}
5355

5456
public bool? Enabled { get; set; }
@@ -65,6 +67,14 @@ internal KeyAttributes(bool? enabled, DateTime? expires, DateTime? notBefore, st
6567

6668
public DateTime? Updated { get; private set; }
6769

70+
/// <summary>
71+
/// Obsolete flag indicating that the key is protected against purge.
72+
/// </summary>
73+
/// <remarks>
74+
/// Deprecated, will be removed in the next PowerShell release.
75+
/// </remarks>
76+
public bool PurgeDisabled { get; private set; }
77+
6878
public string RecoveryLevel { get; private set; }
6979

7080
public Hashtable Tags { get; set; }

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ internal SecretAttributes(bool? enabled, DateTime? expires, DateTime? notBefore,
3333
this.NotBefore = notBefore;
3434
this.ContentType = contentType;
3535
this.Tags = tags;
36+
this.PurgeDisabled = false;
3637
}
3738

3839
internal SecretAttributes(bool? enabled, DateTime? expires, DateTime? notBefore,
@@ -46,6 +47,7 @@ internal SecretAttributes(bool? enabled, DateTime? expires, DateTime? notBefore,
4647
this.ContentType = contentType;
4748
this.RecoveryLevel = deletionRecoveryLevel;
4849
this.Tags = (tags == null) ? null : tags.ConvertToHashtable();
50+
this.PurgeDisabled = false;
4951
}
5052

5153
public bool? Enabled { get; set; }
@@ -62,6 +64,14 @@ internal SecretAttributes(bool? enabled, DateTime? expires, DateTime? notBefore,
6264

6365
public Hashtable Tags { get; set; }
6466

67+
/// <summary>
68+
/// Obsolete flag indicating that the secret is protected against purge.
69+
/// </summary>
70+
/// <remarks>
71+
/// Deprecated, will be removed in the next PowerShell release.
72+
/// </remarks>
73+
public bool PurgeDisabled { get; private set; }
74+
6575
public string RecoveryLevel { get; private set; }
6676

6777
public string TagsTable

0 commit comments

Comments
 (0)