Skip to content

[Automation] Generate SDK based on TypeSpec 0.43.0#48412

Merged
weidongxu-microsoft merged 6 commits into
Azure:mainfrom
azure-sdk:typespec-java-generation-6006031
Mar 13, 2026
Merged

[Automation] Generate SDK based on TypeSpec 0.43.0#48412
weidongxu-microsoft merged 6 commits into
Azure:mainfrom
azure-sdk:typespec-java-generation-6006031

Conversation

@azure-sdk

Copy link
Copy Markdown
Collaborator

[Automation] Generate SDK based on TypeSpec 0.43.0

@azure-sdk azure-sdk added the DPG label Mar 13, 2026
@weidongxu-microsoft weidongxu-microsoft merged commit 47b1790 into Azure:main Mar 13, 2026
37 of 42 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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*.json to 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 HeatMapType enum 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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants