[Automation] Generate SDK based on TypeSpec 0.43.0#48412
Merged
weidongxu-microsoft merged 6 commits intoMar 13, 2026
Conversation
weidongxu-microsoft
approved these changes
Mar 13, 2026
XiaofeiCao
approved these changes
Mar 13, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the repo’s TypeSpec/Java emitter toolchain to TypeSpec Java 0.43.0 and refreshes generated Java SDK code across several services to align with the new generator output (including model/type renames and regenerated client surfaces/metadata).
Changes:
- Bump TypeSpec Java emitter and TypeSpec core packages in
eng/emitter-package*.jsonto the 0.43.0 / 1.10.0 generation stack. - Regenerate multiple SDKs, updating generated metadata JSON and fixing numeric-suffix artifacts in generated request model names (e.g.,
*Request1→*Request). - Traffic Manager management SDK generation updates: removes
HeatMapTypeenum and updates HeatMaps client method signatures and implementation.
Reviewed changes
Copilot reviewed 38 out of 41 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/trafficmanager/azure-resourcemanager-trafficmanager/tsp-location.yaml | Updates the source azure-rest-api-specs commit used for generation. |
| sdk/trafficmanager/azure-resourcemanager-trafficmanager/src/main/resources/META-INF/azure-resourcemanager-trafficmanager_metadata.json | Regenerated metadata reflecting updated generated file set (incl. HeatMapType removal). |
| sdk/trafficmanager/azure-resourcemanager-trafficmanager/src/main/java/com/azure/resourcemanager/trafficmanager/models/HeatMapType.java | Removes generated enum previously used by HeatMaps APIs. |
| sdk/trafficmanager/azure-resourcemanager-trafficmanager/src/main/java/com/azure/resourcemanager/trafficmanager/implementation/HeatMapsClientImpl.java | Updates HeatMaps REST proxy and hardcodes heat map type to "default", adds client config validation. |
| sdk/trafficmanager/azure-resourcemanager-trafficmanager/src/main/java/com/azure/resourcemanager/trafficmanager/fluent/HeatMapsClient.java | Updates public HeatMaps client surface to remove heatMapType parameter. |
| sdk/openai/azure-ai-openai-assistants/src/main/java/com/azure/ai/openai/assistants/models/MessageTextContentType.java | Fixes enum naming to match file/type purpose. |
| sdk/openai/azure-ai-openai-assistants/src/main/java/com/azure/ai/openai/assistants/models/FileSearchToolCallResultContentItem.java | Updates enum type usage to the renamed MessageTextContentType. |
| sdk/loadtesting/azure-developer-loadtesting/src/main/resources/META-INF/azure-developer-loadtesting_metadata.json | Regenerated metadata reflecting renamed request model type. |
| sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/implementation/models/CloneTestRequest.java | Renames generated request model to remove numeric suffix. |
| sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/implementation/LoadTestAdministrationClientImpl.java | Updates parameter names/types to match regenerated request model naming. |
| sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestAdministrationClient.java | Updates convenience methods to use renamed request model. |
| sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestAdministrationAsyncClient.java | Updates convenience methods to use renamed request model. |
| sdk/contentunderstanding/azure-ai-contentunderstanding/src/main/resources/META-INF/azure-ai-contentunderstanding_metadata.json | Regenerated metadata reflecting renamed request models. |
| sdk/contentunderstanding/azure-ai-contentunderstanding/src/main/java/com/azure/ai/contentunderstanding/implementation/models/GrantCopyAuthorizationRequest.java | Renames generated request model to remove numeric suffix. |
| sdk/contentunderstanding/azure-ai-contentunderstanding/src/main/java/com/azure/ai/contentunderstanding/implementation/models/AnalyzeRequest.java | Renames generated request model to remove numeric suffix. |
| sdk/contentunderstanding/azure-ai-contentunderstanding/src/main/java/com/azure/ai/contentunderstanding/implementation/ContentUnderstandingClientImpl.java | Updates request parameter names to match regenerated models. |
| sdk/contentunderstanding/azure-ai-contentunderstanding/src/main/java/com/azure/ai/contentunderstanding/ContentUnderstandingClient.java | Updates convenience overloads to use renamed request models. |
| sdk/contentunderstanding/azure-ai-contentunderstanding/src/main/java/com/azure/ai/contentunderstanding/ContentUnderstandingAsyncClient.java | Updates convenience overloads to use renamed request models. |
| sdk/contentunderstanding/azure-ai-contentunderstanding/customization/src/main/java/ContentUnderstandingCustomizations.java | Disables a now-obsolete parameter-rename customization and updates related comments/imports. |
| sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/models/*Status.java | Renames several generated enums to match updated schema/type names. |
| sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/models/InputItem*.java | Updates generated model types to use renamed enums and adjusts constructor placement/signatures. |
| eng/emitter-package.json | Bumps TypeSpec Java emitter + TypeSpec dependencies to the new generation stack. |
| eng/emitter-package-lock.json | Lockfile update matching the dependency bumps. |
Files not reviewed (1)
- eng/emitter-package-lock.json: Language not supported
Comment on lines
+89
to
+92
| if (this.client.getEndpoint() == null) { | ||
| return Mono.error( | ||
| new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); | ||
| } |
Comment on lines
+93
to
+96
| if (this.client.getSubscriptionId() == null) { | ||
| return Mono.error(new IllegalArgumentException( | ||
| "Parameter this.client.getSubscriptionId() is required and cannot be null.")); | ||
| } |
Comment on lines
167
to
171
| // Strip trailing numeric suffixes from emitter-generated parameter names | ||
| // e.g., analyzeRequest1 -> analyzeRequest, grantCopyAuthorizationRequest1 -> grantCopyAuthorizationRequest | ||
| renameRequestParameters(customization, logger); | ||
| // This should no longer needed, after the fixes in emitter dependency lib. | ||
| // renameRequestParameters(customization, logger); | ||
|
|
| // Strip trailing numeric suffixes from emitter-generated parameter names | ||
| // e.g., analyzeRequest1 -> analyzeRequest, grantCopyAuthorizationRequest1 -> grantCopyAuthorizationRequest | ||
| renameRequestParameters(customization, logger); | ||
| // This should no longer needed, after the fixes in emitter dependency lib. |
Comment on lines
32
to
+34
| @ServiceMethod(returns = ReturnType.SINGLE) | ||
| Mono<Response<HeatMapModelInner>> getWithResponseAsync(String resourceGroupName, String profileName, | ||
| HeatMapType heatMapType, List<Double> topLeft, List<Double> botRight); | ||
| List<Double> topLeft, List<Double> botRight); |
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.
[Automation] Generate SDK based on TypeSpec 0.43.0