Skip to content

Commit

Permalink
fix(doc): lro delete should adopt a special status operation
Browse files Browse the repository at this point in the history
This is found during investigation of Azure/autorest.csharp#4827
Normally an lro delete status operation should not return content at the end, so when defining lro deelte operation, it should use a special status operation.
  • Loading branch information
archerzz committed Jul 30, 2024
1 parent 4e9ca53 commit dfaad4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/getstarted/azure-core/step06.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ alias Operations = Azure.Core.ResourceOperations<ServiceTraits>;
interface Widgets {
@doc("Gets status of a Widget operation.")
@sharedRoute
getWidgetOperationStatus is Operations.GetResourceOperationStatus<Widget>;
@sharedRoute
getWidgetDeleteOperationStatus is Operations.GetResourceOperationStatus<Widget, never>;
@doc("Fetch a Widget by name.")
getWidget is Operations.ResourceRead<Widget>;
Expand All @@ -28,7 +31,7 @@ interface Widgets {
createOrUpdateWidget is Operations.LongRunningResourceCreateOrUpdate<Widget>;
@doc("Delete a Widget asynchronously.")
@pollingOperation(Widgets.getWidgetOperationStatus)
@pollingOperation(Widgets.getWidgetDeleteOperationStatus)
deleteWidget is Operations.LongRunningResourceDelete<Widget>;
@doc("List Widget resources.")
Expand Down

0 comments on commit dfaad4c

Please sign in to comment.