[Translation] Regenerate Azure.AI.Translation.Document from 2026-03-01 spec#60219
Open
jrjrguo wants to merge 3 commits into
Open
[Translation] Regenerate Azure.AI.Translation.Document from 2026-03-01 spec#60219jrjrguo wants to merge 3 commits into
jrjrguo wants to merge 3 commits into
Conversation
added 2 commits
June 24, 2026 15:48
Regenerated from azure-rest-api-specs commit 1e6bbad15be9637f81306ce9ea62db9e3523702c (DocumentTranslation 2026-03-01). Includes new deploymentName support and updated ServiceVersion. Build fixes for customization drift to follow.
- Update ServiceVersion mapping in DocumentTranslationClientOptions to 2026-03-01 - Add deploymentName to hand-written single-document Translate convenience overloads and suppress the generated experimental duplicates - Update DocumentStatusResult model-factory CodeGenSuppress signature for new deploymentName param - Regenerate public API listings - Fill in 3.0.0 changelog
Contributor
There was a problem hiding this comment.
Pull request overview
Regenerates Azure.AI.Translation.Document against the 2026-03-01 Document Translation REST API spec, updates the SDK’s custom convenience layer to match the new protocol surface, and prepares the library for the 3.0.0 release.
Changes:
- Updates the default service API version to
2026-03-01and removes preview service versions fromDocumentTranslationClientOptions.ServiceVersion. - Adds support for
deploymentNameacross the single-document translate convenience APIs and the generated protocol request pipeline. - Adds
DeploymentNameto the relevant models (TranslationTarget,DocumentStatusResult), updates public API listings, package metadata, and changelog/versioning.
Reviewed changes
Copilot reviewed 10 out of 18 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/translation/Azure.AI.Translation.Document/tsp-location.yaml | Bumps the spec repo commit used for regeneration. |
| sdk/translation/Azure.AI.Translation.Document/src/SingleDocumentTranslationClient.cs | Updates handwritten convenience overloads to include deploymentName and suppresses generated duplicates. |
| sdk/translation/Azure.AI.Translation.Document/src/Generated/SingleDocumentTranslationClient.RestClient.cs | Adds deploymentName as a query parameter to the translate request. |
| sdk/translation/Azure.AI.Translation.Document/src/Generated/SingleDocumentTranslationClient.cs | Updates protocol method signatures to accept deploymentName and wires it into request creation. |
| sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationTarget.Serialization.cs | Serializes/deserializes deploymentName on TranslationTarget. |
| sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/TranslationTarget.cs | Adds TranslationTarget.DeploymentName. |
| sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentStatusResult.Serialization.cs | Serializes/deserializes deploymentName on DocumentStatusResult. |
| sdk/translation/Azure.AI.Translation.Document/src/Generated/Models/DocumentStatusResult.cs | Adds DocumentStatusResult.DeploymentName. |
| sdk/translation/Azure.AI.Translation.Document/src/Generated/DocumentTranslationModelFactory.cs | Updates TranslationTarget factory overloads to include deploymentName and retains a hidden compatibility overload. |
| sdk/translation/Azure.AI.Translation.Document/src/Generated/DocumentTranslationClientOptions.cs | Updates generated defaults/enum to V2026_03_01 and 2026-03-01. |
| sdk/translation/Azure.AI.Translation.Document/src/DocumentTranslationModelFactory.cs | Updates [CodeGenSuppress] signature for DocumentStatusResult to include the new deploymentName parameter. |
| sdk/translation/Azure.AI.Translation.Document/src/DocumentTranslationClientOptions.cs | Updates ServiceVersion→api-version mapping to include only stable V2026_03_01 (plus V2024_05_01). |
| sdk/translation/Azure.AI.Translation.Document/src/Azure.AI.Translation.Document.csproj | Sets package version to 3.0.0. |
| sdk/translation/Azure.AI.Translation.Document/metadata.json | Updates recorded service apiVersion to 2026-03-01. |
| sdk/translation/Azure.AI.Translation.Document/CHANGELOG.md | Adds 3.0.0 changelog entry documenting additions and breaking changes. |
| sdk/translation/Azure.AI.Translation.Document/api/Azure.AI.Translation.Document.netstandard2.0.cs | Updates public API baseline for new model members and updated overloads/options. |
| sdk/translation/Azure.AI.Translation.Document/api/Azure.AI.Translation.Document.net8.0.cs | Updates public API baseline for new model members and updated overloads/options. |
| sdk/translation/Azure.AI.Translation.Document/api/Azure.AI.Translation.Document.net10.0.cs | Updates public API baseline for new model members and updated overloads/options. |
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
Regenerates Azure.AI.Translation.Document from the latest Document Translation API spec (
2026-03-01) and reconciles the SDK customizations to build cleanly against the new generated surface. Prepares the3.0.0release.Regenerated from
azure-rest-api-specscommit1e6bbad15be9637f81306ce9ea62db9e3523702c.API changes (spec
2026-03-01)2026-03-01is now the default. The2024-11-01-previewand2025-12-01-previewpreview versions were removed fromDocumentTranslationClientOptions.ServiceVersion.DeploymentNameproperty on inputTranslationTargetand outputDocumentStatusResult.deploymentNameparameter on the single-documentTranslate/TranslateAsyncoperations.Customization / build fixes
DocumentTranslationClientOptions.cs: updated theServiceVersion→ api-version mapping forV2026_03_01.SingleDocumentTranslationClient.cs: addeddeploymentNameto the stable hand-writtenTranslate/TranslateAsyncconvenience overloads, fixed delegating calls for the new protocol signature, and suppressed the generator's new[Experimental]multipart convenience duplicates.DocumentTranslationModelFactory.cs: updated theDocumentStatusResult[CodeGenSuppress]signature for the newdeploymentNameparameter, avoiding anAZC0014JsonElementleak.api/*.cs).3.0.0CHANGELOG entry.Validation
srcandtestsbuild clean (Release).Follow-ups (not in this PR)
3.0.0major bump (breaking changes are intentional).deploymentNameand the new api-version.deploymentName.