From dfaad4c5855038b17b0d4adc67220601b84bd2c3 Mon Sep 17 00:00:00 2001 From: Mingzhe Huang Date: Tue, 30 Jul 2024 14:26:39 +0800 Subject: [PATCH] fix(doc): lro delete should adopt a special status operation This is found during investigation of https://github.com/Azure/autorest.csharp/issues/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. --- docs/getstarted/azure-core/step06.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/getstarted/azure-core/step06.md b/docs/getstarted/azure-core/step06.md index 4c408c3ab2..4894aa1553 100644 --- a/docs/getstarted/azure-core/step06.md +++ b/docs/getstarted/azure-core/step06.md @@ -18,7 +18,10 @@ alias Operations = Azure.Core.ResourceOperations; interface Widgets { @doc("Gets status of a Widget operation.") + @sharedRoute getWidgetOperationStatus is Operations.GetResourceOperationStatus; + @sharedRoute + getWidgetDeleteOperationStatus is Operations.GetResourceOperationStatus; @doc("Fetch a Widget by name.") getWidget is Operations.ResourceRead; @@ -28,7 +31,7 @@ interface Widgets { createOrUpdateWidget is Operations.LongRunningResourceCreateOrUpdate; @doc("Delete a Widget asynchronously.") - @pollingOperation(Widgets.getWidgetOperationStatus) + @pollingOperation(Widgets.getWidgetDeleteOperationStatus) deleteWidget is Operations.LongRunningResourceDelete; @doc("List Widget resources.")