Skip to content

Commit 966398c

Browse files
rohitsinghal4usinghalrohit4uCopilot
authored
Set default service version to 2025-07-01 for keyvault secrets (#48690)
* Set default service version to 2025-07-01 for keyvault secrets - Added V2025_07_01 enum constant to SecretServiceVersion - Updated getLatest() to return V2025_07_01 - Updated SecretsCustomizations.java codegen to include 2025-07-01 - Re-recorded all tests (sync + async) against live service with 2025-07-01 * Add CHANGELOG entry for 2025-07-01 service version support Agent-Logs-Url: https://github.com/Azure/azure-sdk-for-java/sessions/2124764f-44a6-4fa3-bed7-60d87aea7f67 Co-authored-by: rohitsinghal4u <5697065+rohitsinghal4u@users.noreply.github.com> --------- Co-authored-by: Rohit Singhal <singhalrohit@microsoft.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rohitsinghal4u <5697065+rohitsinghal4u@users.noreply.github.com>
1 parent 0ce561c commit 966398c

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

sdk/keyvault/azure-security-keyvault-secrets/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
applicable. Applies only to secrets created after June 1, 2025.
99
- Added `outContentType` parameter overloads to `SecretClient` and `SecretAsyncClient` `getSecret` and
1010
`getSecretWithResponse` methods, allowing PFX-to-PEM conversion when retrieving certificate-backed secrets.
11+
- Added support for service API version `2025-07-01`. This is now the default service version used by the client.
1112

1213
## 4.10.6 (2026-03-23)
1314

sdk/keyvault/azure-security-keyvault-secrets/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": "java",
44
"TagPrefix": "java/keyvault/azure-security-keyvault-secrets",
5-
"Tag": "java/keyvault/azure-security-keyvault-secrets_edb82c74be"
5+
"Tag": "java/keyvault/azure-security-keyvault-secrets_d3c81a13be"
66
}

sdk/keyvault/azure-security-keyvault-secrets/customizations/src/main/java/SecretsCustomizations.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private static void customizeServiceVersion(LibraryCustomization customization)
4949
.addImplementedType("ServiceVersion")
5050
.setJavadocComment("The versions of Azure Key Vault Secrets supported by this client library.");
5151

52-
for (String version : Arrays.asList("7.0", "7.1", "7.2", "7.3", "7.4", "7.5", "7.6")) {
52+
for (String version : Arrays.asList("7.0", "7.1", "7.2", "7.3", "7.4", "7.5", "7.6", "2025-07-01")) {
5353
enumDeclaration.addEnumConstant("V" + version.replace('.', '_').replace('-', '_').toUpperCase())
5454
.setJavadocComment("Service version {@code " + version + "}.")
5555
.addArgument(new StringLiteralExpr(version));
@@ -70,7 +70,7 @@ private static void customizeServiceVersion(LibraryCustomization customization)
7070
.setType("SecretServiceVersion")
7171
.setJavadocComment(new Javadoc(parseText("Gets the latest service version supported by this client library."))
7272
.addBlockTag("return", "The latest {@link SecretServiceVersion}."))
73-
.setBody(StaticJavaParser.parseBlock("{ return V7_6; }"));
73+
.setBody(StaticJavaParser.parseBlock("{ return V2025_07_01; }"));
7474

7575
customization.getRawEditor()
7676
.addFile("src/main/java/com/azure/security/keyvault/secrets/SecretServiceVersion.java",

sdk/keyvault/azure-security-keyvault-secrets/src/main/java/com/azure/security/keyvault/secrets/SecretServiceVersion.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ public enum SecretServiceVersion implements ServiceVersion {
3737
/**
3838
* Service version {@code 7.6}.
3939
*/
40-
V7_6("7.6");
40+
V7_6("7.6"),
41+
/**
42+
* Service version {@code 2025-07-01}.
43+
*/
44+
V2025_07_01("2025-07-01");
4145

4246
private final String version;
4347

@@ -59,6 +63,6 @@ public String getVersion() {
5963
* @return The latest {@link SecretServiceVersion}.
6064
*/
6165
public static SecretServiceVersion getLatest() {
62-
return V7_6;
66+
return V2025_07_01;
6367
}
6468
}

0 commit comments

Comments
 (0)