Migrate resource manager resources generation to TypeSpec - #50111
Open
Weidong Xu (weidongxu-microsoft) wants to merge 42 commits into
Open
Migrate resource manager resources generation to TypeSpec#50111Weidong Xu (weidongxu-microsoft) wants to merge 42 commits into
Weidong Xu (weidongxu-microsoft) wants to merge 42 commits into
Conversation
Regenerate the features, locks, and changes Swagger projects while removing generated code owned by projects migrating to TypeSpec. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Remove generated policy samples that are no longer owned by the retained Swagger projects. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Replace the AutoRest deletion marker in files owned by the retained Swagger projects so TypeSpec regeneration does not remove them. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Add the data boundaries TypeSpec checkpoint, scoped metadata, and ResourceManager-based generated samples. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Record the data boundaries checkpoint and reusable workflow for the remaining multi-source generation steps. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Add the deployment stacks TypeSpec-generated client at API version 2024-03-01 and preserve the legacy ActionOnUnmanage enum signatures. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Regenerate deployment stacks with the legacy Java properties flattening used by the original Swagger client. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Generate the policy client at API version 2026-07-01 and preserve the legacy policy exemption client and models for compatibility. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Add an AST customization limited to PolicyClient and PolicyClientImpl so the preserved policy exemption client remains accessible. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Target the generated PolicyClient interface declaration and emit a marker Override annotation on its implementation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Apply the Java AST customization to expose the preserved PolicyExemptionsClient through PolicyClient and PolicyClientImpl. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Add policy samples for the TypeSpec-generated 2026-07-01 surface while retaining earlier project samples and excluding stale generated tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Generate the subscription client into the combined resources package while preserving the original client grouping and API version. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Use the package-specific subscription client accessor from the shared ResourceManager entry point. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Keep ResourceReference extensible for the deployment-stacks ManagedResourceReference model after deployments generation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Generate deployment clients and models into the combined resources package while preserving premium inner models, UUID types, and ResourceReference inheritance. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Use the package-specific deployment client accessor from the handwritten ResourceManager entry point. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Complete the combined resources package generation with the original client grouping, tag client name, and shared-model compatibility. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Add TypeSpec samples for providers, resource groups, provider resource types, and tag operations. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Restore AssignmentScopeValidation required by policy exemption compatibility. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Refresh playback assets for TypeSpec URI casing and trailing slash changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Allow azure-core to deserialize TypeSpec paging models through reflection. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Regenerate deployment stacks with separate model and delete parameter enum types, document accepted Policy service removals, and suppress reviewed migration differences. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Skip pre-generation source cleanup for azure-resourcemanager-resources so generating one TypeSpec project does not delete outputs from the package's other projects. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Generate the PolicyExemptions accessor without an explicit public modifier on the PolicyClient interface. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Use the core resources project in the Azure azure-rest-api-specs repository as the package's default generation location. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Add the Policy Exemptions client accessor and implementation only when the selected API version does not generate them. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Remove the task working notes from the pull request while retaining the local file. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Weidong Xu (weidongxu-microsoft)
marked this pull request as ready for review
August 12, 2026 16:25
Weidong Xu (weidongxu-microsoft)
requested review from
a team,
Arthur Ma (ArthurMa1978),
Jonathan Giles (JonathanGiles),
Xiaofei Cao (XiaofeiCao),
Alan Zimmer (alzimmermsft),
Ben Broderick Phillips (benbp),
Haoling Dong (haolingdong-msft),
Moary Chen (moarychan),
Ray Chen (raych1),
Rujun Chen (rujche) and
Xiaolu Dai (saragluna)
as code owners
August 12, 2026 16:25
|
Azure Pipelines: Successfully started running 2 pipeline(s). 33 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Xiaofei Cao (XiaofeiCao)
approved these changes
Aug 13, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 156aa207-7554-4621-9b96-07761ca52455
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4fc3370c-93f9-4237-862a-f239ff79cc86
Xiaofei Cao (XiaofeiCao)
approved these changes
Aug 17, 2026
Xiaofei Cao (XiaofeiCao)
approved these changes
Aug 17, 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.
Summary
Fixes #49803.
Testing
mvn -f sdk/resources/azure-resourcemanager-resources/pom.xml test2.54.2completes without API compatibility failures.