Skip to content

Commit 54fedc3

Browse files
[AutoPR azure-resourcemanager-keyvault]-generated-from-SDK Generation - Java-5500355 (#47100)
* Configurations: 'specification/keyvault/KeyVault.Management/tspconfig.yaml', API Version: 2025-05-01, SDK Release Type: stable, and CommitSHA: '0cb64d42641af4650a90a716afc321b3f0cb4057' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5500355 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * fix unreleased version in version_client.txt * remove unused unreleased entry * module-info.java * remove error generated tests * regen * fix tests * disable user creation * revapi.json * assets.json from Hui * record failed recordings, other fixes * fix changelog * update tsp-location.yaml, azure-resourcemanager changelog * add back containerservice revapi * more customization * Configurations: 'specification/keyvault/KeyVault.Management/tspconfig.yaml', API Version: 2025-05-01, SDK Release Type: stable, and CommitSHA: '65b006ebe6d231dd1831fdfc3adb898b8e134d3e' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5536584 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Remove incorrect keyvault dependency entry Removed entry for unreleased keyvault dependency. * Configurations: 'specification/keyvault/KeyVault.Management/tspconfig.yaml', API Version: 2025-05-01, SDK Release Type: stable, and CommitSHA: 'f17f8a4c10b849aa2101140ecf4d78cad78ab299' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5536672 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * remove error generated tests * add customization for client-default-value * Configurations: 'specification/keyvault/KeyVault.Management/tspconfig.yaml', API Version: 2025-05-01, SDK Release Type: stable, and CommitSHA: '7eb7eaf5d0ebb12a9f0ade8e4433cfb0f6c32840' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5545875 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * remove error generated tests * clean-up changelog * Update release date for version 2.54.0 --------- Co-authored-by: Xiaofei Cao <[email protected]> Co-authored-by: XiaofeiCao <[email protected]>
1 parent 8c2d35a commit 54fedc3

File tree

288 files changed

+6935
-5502
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

288 files changed

+6935
-5502
lines changed

eng/lintingconfigs/revapi/track2/revapi.json

Lines changed: 53 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -654,14 +654,6 @@
654654
"old": "method java.util.Map<java.lang.String, java.util.List<com.azure.search.documents.models.FacetResult>> com.azure.search.documents.util.SearchPagedResponse::getFacets()",
655655
"justification": "Non-breaking change as class is final."
656656
},
657-
{
658-
"code": "java.field.enumConstantOrderChanged",
659-
"old": {
660-
"matcher": "regex",
661-
"match": "field com\\.azure\\.resourcemanager\\.storage\\.models\\.ProvisioningState\\.(CANCELED|DELETING|FAILED)"
662-
},
663-
"justification": "Add Accepted to ProvisioningState."
664-
},
665657
{
666658
"code": "java.method.varargOverloadsOnlyDifferInVarargParameter",
667659
"old": {
@@ -703,6 +695,59 @@
703695
"code": "java.method.removed",
704696
"old": "method com.azure.resourcemanager.monitor.models.AutoscaleNotification com.azure.resourcemanager.monitor.models.AutoscaleNotification::withOperation(java.lang.String)",
705697
"justification": "The property is a constant, and hence not settable."
698+
},
699+
{
700+
"ignore": true,
701+
"code": "java.class.removed",
702+
"old" : {
703+
"matcher": "regex",
704+
"match": "class com\\.azure\\.resourcemanager\\.keyvault\\.models\\..*ListResult"
705+
},
706+
"justification": "Pageable models moved to implementation package. Unlikely used by user."
707+
},
708+
{
709+
"ignore": true,
710+
"code": "java.method.visibilityReduced",
711+
"old" : {
712+
"matcher": "regex",
713+
"match": "method void com\\.azure\\.resourcemanager\\.keyvault\\.models\\..*\\:\\:\\<init\\>\\(\\)"
714+
},
715+
"justification": "Output-only immutable models' constructors are now private."
716+
},
717+
{
718+
"ignore": true,
719+
"code": "java.method.removed",
720+
"old" : {
721+
"matcher": "regex",
722+
"match": "method .* com\\.azure\\.resourcemanager\\.keyvault\\.models\\..*\\:\\:with.*\\(.*\\).*"
723+
},
724+
"justification": "Output-only immutable models' setters are now package-private if it's being used by child class."
725+
},
726+
{
727+
"ignore": true,
728+
"code": "java.method.visibilityReduced",
729+
"old" : {
730+
"matcher": "regex",
731+
"match": "method .* com\\.azure\\.resourcemanager\\.keyvault\\.models\\..*\\:\\:with.*\\(.*\\).*"
732+
},
733+
"justification": "Output-only immutable models' setters are removed if no explicit usage."
734+
},
735+
{
736+
"regex": true,
737+
"code": "java\\.missing\\.(oldSuperType|newSuperType)",
738+
"old" : "class com\\.azure\\.resourcemanager\\.keyvault\\.models\\..*Resource",
739+
"justification": "TypeSpec fix for base resource class."
740+
},
741+
{
742+
"code": "java.class.removed",
743+
"old" : "class com.azure.resourcemanager.keyvault.models.ProxyResourceWithoutSystemData",
744+
"justification": "TypeSpec fix for base resource class."
745+
},
746+
{
747+
"regex": true,
748+
"code": ".*",
749+
"old": ".*com.azure.resourcemanager.keyvault.models.Reason.*",
750+
"justification": "\"Reason\" enum has changed from sealed to expandable."
706751
}
707752
]
708753
}

eng/versioning/version_client.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ com.azure.resourcemanager:azure-resourcemanager-containerservice;2.55.1;2.56.0-b
281281
com.azure.resourcemanager:azure-resourcemanager-cosmos;2.53.4;2.54.0-beta.1
282282
com.azure.resourcemanager:azure-resourcemanager-dns;2.53.4;2.54.0-beta.1
283283
com.azure.resourcemanager:azure-resourcemanager-eventhubs;2.53.4;2.54.0-beta.1
284-
com.azure.resourcemanager:azure-resourcemanager-keyvault;2.53.4;2.54.0-beta.1
284+
com.azure.resourcemanager:azure-resourcemanager-keyvault;2.53.4;2.54.0
285285
com.azure.resourcemanager:azure-resourcemanager-monitor;2.53.4;2.54.0-beta.2
286286
com.azure.resourcemanager:azure-resourcemanager-msi;2.53.4;2.54.0-beta.1
287287
com.azure.resourcemanager:azure-resourcemanager-network;2.55.0;2.56.0-beta.1
@@ -549,6 +549,7 @@ unreleased_com.azure.v2:azure-core;2.0.0-beta.1
549549
unreleased_com.azure.v2:azure-identity;2.0.0-beta.1
550550
unreleased_com.azure.v2:azure-data-appconfiguration;2.0.0-beta.1
551551
unreleased_io.clientcore:http-netty4;1.0.0-beta.1
552+
unreleased_com.azure.resourcemanager:azure-resourcemanager-keyvault;2.54.0
552553

553554
# Released Beta dependencies: Copy the entry from above, prepend "beta_", remove the current
554555
# version and set the version to the released beta. Released beta dependencies are only valid

sdk/keyvault/azure-resourcemanager-keyvault/CHANGELOG.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
# Release History
22

3-
## 2.54.0-beta.1 (Unreleased)
3+
## 2.54.0 (2025-11-10)
44

5-
### Features Added
6-
7-
### Breaking Changes
5+
### Other Changes
86

9-
### Bugs Fixed
7+
#### Dependency Updates
108

11-
### Other Changes
9+
- Updated `api-version` to `2025-05-01`.
1210

1311
## 2.53.4 (2025-10-27)
1412

sdk/keyvault/azure-resourcemanager-keyvault/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra
1818
<dependency>
1919
<groupId>com.azure.resourcemanager</groupId>
2020
<artifactId>azure-resourcemanager-keyvault</artifactId>
21-
<version>2.53.1</version>
21+
<version>2.54.0</version>
2222
</dependency>
2323
```
2424
[//]: # ({x-version-update-end})

sdk/keyvault/azure-resourcemanager-keyvault/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-resourcemanager-keyvault",
5-
"Tag": "java/keyvault/azure-resourcemanager-keyvault_bc88138bf3"
5+
"Tag": "java/keyvault/azure-resourcemanager-keyvault_055c9278d0"
66
}

sdk/keyvault/azure-resourcemanager-keyvault/customization/src/main/java/KeyVaultCustomization.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ public void customize(LibraryCustomization customization, Logger logger) {
1818
// change base class from `ProxyResource` to `Resource`, to avoid breaking changes and compilation errors
1919
customizeResourceBaseClass(fluentModelsPackage.getClass("VaultInner"));
2020
customizeResourceBaseClass(fluentModelsPackage.getClass("ManagedHsmInner"));
21+
customizeResourceBaseClass(fluentModelsPackage.getClass("KeyInner"));
22+
customizeResourceBaseClass(fluentModelsPackage.getClass("SecretInner"));
23+
customizeResourceBaseClass(fluentModelsPackage.getClass("PrivateEndpointConnectionInner"));
24+
25+
PackageCustomization modelsPackage = customization.getPackage("com.azure.resourcemanager.keyvault.models");
26+
27+
addBackClientDefaultValueForSku(modelsPackage.getClass("Sku"));
2128
}
2229

2330
/**
@@ -35,4 +42,21 @@ private static void customizeResourceBaseClass(ClassCustomization customization)
3542
});
3643
});
3744
}
45+
46+
/**
47+
* Add back client-default-value for Sku.SkuFamily.
48+
*/
49+
private void addBackClientDefaultValueForSku(ClassCustomization customization) {
50+
customization.customizeAst(ast -> {
51+
ast.getClassByName(customization.getClassName()).ifPresent(clazz -> {
52+
clazz.getFieldByName("family").ifPresent(skuFamily -> {
53+
skuFamily.getVariables().forEach(var -> {
54+
if (var.getNameAsString().equals("family")) {
55+
var.setInitializer("SkuFamily.A");
56+
}
57+
});
58+
});
59+
});
60+
});
61+
}
3862
}

sdk/keyvault/azure-resourcemanager-keyvault/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<groupId>com.azure.resourcemanager</groupId>
1616
<artifactId>azure-resourcemanager-keyvault</artifactId>
17-
<version>2.54.0-beta.1</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-keyvault;current} -->
17+
<version>2.54.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-keyvault;current} -->
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for Key Vault Management</name>
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
3-
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
44

55
package com.azure.resourcemanager.keyvault.fluent;
66

@@ -12,27 +12,26 @@
1212
*/
1313
public interface KeyVaultManagementClient {
1414
/**
15-
* Gets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
16-
* part of the URI for every service call.
17-
*
18-
* @return the subscriptionId value.
19-
*/
20-
String getSubscriptionId();
21-
22-
/**
23-
* Gets server parameter.
15+
* Gets Service host.
2416
*
2517
* @return the endpoint value.
2618
*/
2719
String getEndpoint();
2820

2921
/**
30-
* Gets Api Version.
22+
* Gets Version parameter.
3123
*
3224
* @return the apiVersion value.
3325
*/
3426
String getApiVersion();
3527

28+
/**
29+
* Gets The ID of the target subscription. The value must be an UUID.
30+
*
31+
* @return the subscriptionId value.
32+
*/
33+
String getSubscriptionId();
34+
3635
/**
3736
* Gets The HTTP pipeline to send requests through.
3837
*
@@ -48,18 +47,11 @@ public interface KeyVaultManagementClient {
4847
Duration getDefaultPollInterval();
4948

5049
/**
51-
* Gets the KeysClient object to access its operations.
52-
*
53-
* @return the KeysClient object.
54-
*/
55-
KeysClient getKeys();
56-
57-
/**
58-
* Gets the ManagedHsmKeysClient object to access its operations.
50+
* Gets the OperationsClient object to access its operations.
5951
*
60-
* @return the ManagedHsmKeysClient object.
52+
* @return the OperationsClient object.
6153
*/
62-
ManagedHsmKeysClient getManagedHsmKeys();
54+
OperationsClient getOperations();
6355

6456
/**
6557
* Gets the VaultsClient object to access its operations.
@@ -75,13 +67,6 @@ public interface KeyVaultManagementClient {
7567
*/
7668
PrivateEndpointConnectionsClient getPrivateEndpointConnections();
7769

78-
/**
79-
* Gets the PrivateLinkResourcesClient object to access its operations.
80-
*
81-
* @return the PrivateLinkResourcesClient object.
82-
*/
83-
PrivateLinkResourcesClient getPrivateLinkResources();
84-
8570
/**
8671
* Gets the ManagedHsmsClient object to access its operations.
8772
*
@@ -97,30 +82,44 @@ public interface KeyVaultManagementClient {
9782
MhsmPrivateEndpointConnectionsClient getMhsmPrivateEndpointConnections();
9883

9984
/**
100-
* Gets the MhsmPrivateLinkResourcesClient object to access its operations.
85+
* Gets the SecretsClient object to access its operations.
10186
*
102-
* @return the MhsmPrivateLinkResourcesClient object.
87+
* @return the SecretsClient object.
10388
*/
104-
MhsmPrivateLinkResourcesClient getMhsmPrivateLinkResources();
89+
SecretsClient getSecrets();
10590

10691
/**
107-
* Gets the MhsmRegionsClient object to access its operations.
92+
* Gets the KeysClient object to access its operations.
10893
*
109-
* @return the MhsmRegionsClient object.
94+
* @return the KeysClient object.
11095
*/
111-
MhsmRegionsClient getMhsmRegions();
96+
KeysClient getKeys();
11297

11398
/**
114-
* Gets the OperationsClient object to access its operations.
99+
* Gets the ManagedHsmKeysClient object to access its operations.
115100
*
116-
* @return the OperationsClient object.
101+
* @return the ManagedHsmKeysClient object.
117102
*/
118-
OperationsClient getOperations();
103+
ManagedHsmKeysClient getManagedHsmKeys();
119104

120105
/**
121-
* Gets the SecretsClient object to access its operations.
106+
* Gets the PrivateLinkResourcesClient object to access its operations.
122107
*
123-
* @return the SecretsClient object.
108+
* @return the PrivateLinkResourcesClient object.
124109
*/
125-
SecretsClient getSecrets();
110+
PrivateLinkResourcesClient getPrivateLinkResources();
111+
112+
/**
113+
* Gets the MhsmPrivateLinkResourcesClient object to access its operations.
114+
*
115+
* @return the MhsmPrivateLinkResourcesClient object.
116+
*/
117+
MhsmPrivateLinkResourcesClient getMhsmPrivateLinkResources();
118+
119+
/**
120+
* Gets the MhsmRegionsClient object to access its operations.
121+
*
122+
* @return the MhsmRegionsClient object.
123+
*/
124+
MhsmRegionsClient getMhsmRegions();
126125
}

0 commit comments

Comments
 (0)