Skip to content

Commit

Permalink
Adding the final model to return after LRO call
Browse files Browse the repository at this point in the history
  • Loading branch information
hamshavathimunibyraiah committed Oct 11, 2024
1 parent fda3d5e commit a2b9e58
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ interface DocumentTranslationOperations {
destination, it will be overwritten. The targetUrl for each target language
must be unique.
""")
@finalOperation(DocumentTranslationOperations.getTranslationStatus)
@pollingOperation(DocumentTranslationOperations.getTranslationStatus)
@route("/document/batches")
@post
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ linter:
options:
"@azure-tools/typespec-autorest":
azure-resource-provider-folder: "data-plane"
emit-lro-options: "none"
emit-lro-options: "all"
emitter-output-dir: "{project-root}/.."
output-file: "{azure-resource-provider-folder}/Azure.AI.DocumentTranslation/{version-status}/{version}/openapi.json"
"@azure-tools/typespec-csharp":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@
"$ref": "./examples/batch.json"
}
},
"x-ms-long-running-operation-options": {
"final-state-via": "operation-location",
"final-state-schema": "#/definitions/TranslationStatus"
},
"x-ms-long-running-operation": true
}
},
Expand Down

0 comments on commit a2b9e58

Please sign in to comment.