Skip to content

Commit

Permalink
using createOrReplace so that we only needs one polling operation
Browse files Browse the repository at this point in the history
  • Loading branch information
archerzz committed Aug 29, 2024
1 parent 193b20a commit 1c38fb8
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions docs/getstarted/azure-core/step06.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,18 @@ alias ServiceTraits = SupportsRepeatableRequests &
alias Operations = Azure.Core.ResourceOperations<ServiceTraits>;
interface Widgets {
@sharedRoute
@doc("Gets status of a Widget operation.")
getWidgetOperationStatus is Operations.GetResourceOperationStatus<Widget>;
@sharedRoute
@doc("Gets status of a Widget delete operation.")
getWidgetDeleteOperationStatus is Operations.GetResourceOperationStatus<Widget, never>;
@doc("Get status of a Widget operation without result content.")
getWidgetOperationStatus is Operations.GetResourceOperationStatus<Widget, never>;
@doc("Fetch a Widget by name.")
getWidget is Operations.ResourceRead<Widget>;
@doc("Creates or updates a Widget asynchronously.")
@doc("Create or replace a Widget asynchronously.")
@pollingOperation(Widgets.getWidgetOperationStatus)
createOrUpdateWidget is Operations.LongRunningResourceCreateOrUpdate<Widget>;
createOrUpdateWidget is Operations.LongRunningResourceCreateOrReplace<Widget>;
@doc("Delete a Widget asynchronously.")
@pollingOperation(Widgets.getWidgetDeleteOperationStatus)
@pollingOperation(Widgets.getWidgetOperationStatus)
deleteWidget is Operations.LongRunningResourceDelete<Widget>;
@doc("List Widget resources.")
Expand Down

0 comments on commit 1c38fb8

Please sign in to comment.