mgmt, cosmos, add customization that would be needed by typespec source#48155
Merged
weidongxu-microsoft merged 2 commits intoAzure:mainfrom Feb 28, 2026
Merged
mgmt, cosmos, add customization that would be needed by typespec source#48155weidongxu-microsoft merged 2 commits intoAzure:mainfrom
weidongxu-microsoft merged 2 commits intoAzure:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds customization code for the Azure Cosmos DB management plane library in preparation for TypeSpec-based code generation. The customization ensures backward compatibility by maintaining the current inheritance structure when the code is regenerated from TypeSpec.
Changes:
- Adds customization to change the base class of
DatabaseAccountGetResultsInnerfromProxyResource(TypeSpec default) toResource(current implementation) - Follows the established pattern used in other management plane libraries (KeyVault, ServiceBus) for TypeSpec migration
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| sdk/cosmos/azure-resourcemanager-cosmos/customization/src/main/java/CosmosCustomization.java | Implements base class customization to maintain backward compatibility during TypeSpec migration |
| sdk/cosmos/azure-resourcemanager-cosmos/customization/pom.xml | Maven configuration for customization module using azure-code-customization-parent |
Member
Author
|
/azp run java - cosmos |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
Author
|
/azp run java - pullrequest |
|
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
Member
Author
|
/check-enforcer override |
XiaofeiCao
approved these changes
Feb 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
done by skill Azure/autorest.java#3297
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines