Skip to content

Commit 8a3cf43

Browse files
authored
[KeyVault] Update Certificates with service version 7.6 (Azure#50588)
* Update versions * Move PreserveCertificateOrder to parent class * Export API * record tests * Addressing comments
1 parent 15d6edf commit 8a3cf43

9 files changed

+26
-28
lines changed

sdk/keyvault/Azure.Security.KeyVault.Certificates/CHANGELOG.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
# Release History
22

3-
## 4.8.0-beta.2 (Unreleased)
3+
## 4.8.0 (2025-06-16)
44

55
### Acknowledgments
66

77
Thank you to our developer community members who helped to make the Key Vault client libraries better with their contributions to this release:
88

99
- James Gould _([GitHub](https://github.com/james-gould))_
1010

11-
### Features Added
12-
13-
### Breaking Changes
14-
1511
### Bugs Fixed
1612

1713
- Removed additional forward slash in `RestoreCertificateBackup` and `RestoreCertificateBackupAsync`.
1814

1915
### Other Changes
2016

17+
- The default service version is now "7.6".
18+
2119
## 4.8.0-beta.1 (2025-04-08)
2220

2321
### Features Added

sdk/keyvault/Azure.Security.KeyVault.Certificates/api/Azure.Security.KeyVault.Certificates.net8.0.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public CertificateClient(System.Uri vaultUri, Azure.Core.TokenCredential credent
7777
}
7878
public partial class CertificateClientOptions : Azure.Core.ClientOptions
7979
{
80-
public CertificateClientOptions(Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion version = Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion.V7_6_Preview_2) { }
80+
public CertificateClientOptions(Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion version = Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion.V7_6) { }
8181
public bool DisableChallengeResourceVerification { get { throw null; } set { } }
8282
public Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion Version { get { throw null; } }
8383
public enum ServiceVersion
@@ -88,7 +88,7 @@ public enum ServiceVersion
8888
V7_3 = 3,
8989
V7_4 = 4,
9090
V7_5 = 5,
91-
V7_6_Preview_2 = 6,
91+
V7_6 = 6,
9292
}
9393
}
9494
public partial class CertificateContact
@@ -370,6 +370,7 @@ internal KeyVaultCertificate() { }
370370
public System.Uri Id { get { throw null; } }
371371
public System.Uri KeyId { get { throw null; } }
372372
public string Name { get { throw null; } }
373+
public bool? PreserveCertificateOrder { get { throw null; } }
373374
public Azure.Security.KeyVault.Certificates.CertificateProperties Properties { get { throw null; } }
374375
public System.Uri SecretId { get { throw null; } }
375376
}
@@ -396,7 +397,6 @@ public partial class KeyVaultCertificateWithPolicy : Azure.Security.KeyVault.Cer
396397
{
397398
internal KeyVaultCertificateWithPolicy() { }
398399
public Azure.Security.KeyVault.Certificates.CertificatePolicy Policy { get { throw null; } }
399-
public bool? PreserveCertificateOrder { get { throw null; } }
400400
}
401401
public partial class LifetimeAction
402402
{

sdk/keyvault/Azure.Security.KeyVault.Certificates/api/Azure.Security.KeyVault.Certificates.netstandard2.0.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public CertificateClient(System.Uri vaultUri, Azure.Core.TokenCredential credent
7777
}
7878
public partial class CertificateClientOptions : Azure.Core.ClientOptions
7979
{
80-
public CertificateClientOptions(Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion version = Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion.V7_6_Preview_2) { }
80+
public CertificateClientOptions(Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion version = Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion.V7_6) { }
8181
public bool DisableChallengeResourceVerification { get { throw null; } set { } }
8282
public Azure.Security.KeyVault.Certificates.CertificateClientOptions.ServiceVersion Version { get { throw null; } }
8383
public enum ServiceVersion
@@ -88,7 +88,7 @@ public enum ServiceVersion
8888
V7_3 = 3,
8989
V7_4 = 4,
9090
V7_5 = 5,
91-
V7_6_Preview_2 = 6,
91+
V7_6 = 6,
9292
}
9393
}
9494
public partial class CertificateContact
@@ -370,6 +370,7 @@ internal KeyVaultCertificate() { }
370370
public System.Uri Id { get { throw null; } }
371371
public System.Uri KeyId { get { throw null; } }
372372
public string Name { get { throw null; } }
373+
public bool? PreserveCertificateOrder { get { throw null; } }
373374
public Azure.Security.KeyVault.Certificates.CertificateProperties Properties { get { throw null; } }
374375
public System.Uri SecretId { get { throw null; } }
375376
}
@@ -396,7 +397,6 @@ public partial class KeyVaultCertificateWithPolicy : Azure.Security.KeyVault.Cer
396397
{
397398
internal KeyVaultCertificateWithPolicy() { }
398399
public Azure.Security.KeyVault.Certificates.CertificatePolicy Policy { get { throw null; } }
399-
public bool? PreserveCertificateOrder { get { throw null; } }
400400
}
401401
public partial class LifetimeAction
402402
{

sdk/keyvault/Azure.Security.KeyVault.Certificates/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/keyvault/Azure.Security.KeyVault.Certificates",
5-
"Tag": "net/keyvault/Azure.Security.KeyVault.Certificates_4f83772441"
5+
"Tag": "net/keyvault/Azure.Security.KeyVault.Certificates_42c799d783"
66
}

sdk/keyvault/Azure.Security.KeyVault.Certificates/src/Azure.Security.KeyVault.Certificates.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Description>This is the Microsoft Azure Key Vault Certificates client library</Description>
55
<AssemblyTitle>Microsoft Azure.Security.KeyVault.Certificates client library</AssemblyTitle>
6-
<Version>4.8.0-beta.2</Version>
6+
<Version>4.8.0</Version>
77
<!--The ApiCompatVersion is managed automatically and should not generally be modified manually.-->
88
<ApiCompatVersion>4.7.0</ApiCompatVersion>
99
<PackageTags>Microsoft Azure Key Vault Certificates;$(PackageCommonTags)</PackageTags>

sdk/keyvault/Azure.Security.KeyVault.Certificates/src/CertificateClientOptions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class CertificateClientOptions : ClientOptions
1616
/// For more information, see
1717
/// <see href="https://docs.microsoft.com/rest/api/keyvault/key-vault-versions">Key Vault versions</see>.
1818
/// </summary>
19-
internal const ServiceVersion LatestVersion = ServiceVersion.V7_6_Preview_2;
19+
internal const ServiceVersion LatestVersion = ServiceVersion.V7_6;
2020

2121
/// <summary>
2222
/// The versions of Azure Key Vault supported by this client
@@ -58,7 +58,7 @@ public enum ServiceVersion
5858
/// <summary>
5959
/// The Key Vault API version 7.6 preview 2.
6060
/// </summary>
61-
V7_6_Preview_2 = 6,
61+
V7_6 = 6,
6262
#pragma warning restore CA1707 // Identifiers should not contain underscores
6363
}
6464

@@ -99,7 +99,7 @@ internal string GetVersionString()
9999
ServiceVersion.V7_3 => "7.3",
100100
ServiceVersion.V7_4 => "7.4",
101101
ServiceVersion.V7_5 => "7.5",
102-
ServiceVersion.V7_6_Preview_2 => "7.6-preview.2",
102+
ServiceVersion.V7_6 => "7.6",
103103
_ => throw new ArgumentException(Version.ToString()),
104104
};
105105
}

sdk/keyvault/Azure.Security.KeyVault.Certificates/src/KeyVaultCertificate.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public class KeyVaultCertificate : IJsonDeserializable
1414
private const string KeyIdPropertyName = "kid";
1515
private const string SecretIdPropertyName = "sid";
1616
private const string CERPropertyName = "cer";
17+
private const string PreserveCertificateOrderPropertyName = "preserveCertOrder";
1718

1819
private string _keyId;
1920
private string _secretId;
@@ -66,6 +67,12 @@ public Uri SecretId
6667
/// </remarks>
6768
public byte[] Cer { get; internal set; }
6869

70+
/// <summary>
71+
/// Gets a value indicating whether the certificate chain preserves its original order.
72+
/// The default value is false, which sets the leaf certificate at index 0.
73+
/// </summary>
74+
public bool? PreserveCertificateOrder { get; internal set; }
75+
6976
internal virtual void ReadProperty(JsonProperty prop)
7077
{
7178
switch (prop.Name)
@@ -82,6 +89,10 @@ internal virtual void ReadProperty(JsonProperty prop)
8289
Cer = prop.Value.GetBytesFromBase64();
8390
break;
8491

92+
case PreserveCertificateOrderPropertyName:
93+
PreserveCertificateOrder = prop.Value.GetBoolean();
94+
break;
95+
8596
default:
8697
Properties.ReadProperty(prop);
8798
break;

sdk/keyvault/Azure.Security.KeyVault.Certificates/src/KeyVaultCertificateWithPolicy.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ namespace Azure.Security.KeyVault.Certificates
1111
public class KeyVaultCertificateWithPolicy : KeyVaultCertificate
1212
{
1313
private const string PolicyPropertyName = "policy";
14-
private const string PreserveCertificateOrderPropertyName = "preserveCertOrder";
1514

1615
internal KeyVaultCertificateWithPolicy(CertificateProperties properties = null) : base(properties)
1716
{
@@ -22,12 +21,6 @@ internal KeyVaultCertificateWithPolicy(CertificateProperties properties = null)
2221
/// </summary>
2322
public CertificatePolicy Policy { get; internal set; }
2423

25-
/// <summary>
26-
/// Gets a value indicating whether the certificate chain preserves its original order.
27-
/// The default value is false, which sets the leaf certificate at index 0.
28-
/// </summary>
29-
public bool? PreserveCertificateOrder { get; internal set; }
30-
3124
internal override void ReadProperty(JsonProperty prop)
3225
{
3326
switch (prop.Name)
@@ -37,10 +30,6 @@ internal override void ReadProperty(JsonProperty prop)
3730
((IJsonDeserializable)Policy).ReadProperties(prop.Value);
3831
break;
3932

40-
case PreserveCertificateOrderPropertyName:
41-
PreserveCertificateOrder = prop.Value.GetBoolean();
42-
break;
43-
4433
default:
4534
base.ReadProperty(prop);
4635
break;

sdk/keyvault/Azure.Security.KeyVault.Certificates/tests/CertificatesTestBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Azure.Security.KeyVault.Certificates.Tests
1919
CertificateClientOptions.ServiceVersion.V7_2,
2020
CertificateClientOptions.ServiceVersion.V7_1,
2121
CertificateClientOptions.ServiceVersion.V7_0,
22-
CertificateClientOptions.ServiceVersion.V7_6_Preview_2)]
22+
CertificateClientOptions.ServiceVersion.V7_6)]
2323
public abstract class CertificatesTestBase : RecordedTestBase<KeyVaultTestEnvironment>
2424
{
2525
protected TimeSpan PollingInterval => Recording.Mode == RecordedTestMode.Playback

0 commit comments

Comments
 (0)