Add support for status 200, 201
for LRO delete
operation
#2255
Labels
cli/psh
Issues for Azure CLI/PSH features
200, 201
for LRO delete
operation
#2255
Clear and concise description of the problem
For now, autorest asks for
202, 204 and default error
response for long-running delete operation (according to openapi validator here: https://github.com/Azure/azure-openapi-validator/blob/main/docs/delete-response-codes.md#output-message), conceptually. And tsp compiler also emits only202, 204 and default error
response forLRO delete
operation.However, in execution level, all sdks and other autogen tools need to append an additional operation for
200 or 201
status after getting a successful202
polling result, which normally is in status200
.And, there remains some apis whose
LRO delete
operation contains a200
response for a successful202
polling result (like this one: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/monitor/resource-manager/Microsoft.Insights/PrivateLinkScopes/preview/2023-06-01-preview/privateLinkScopes_API.json#L543-L599),If
200
is dropped for these apis, I believe this might be a breaking change from swagger side?Also, as a new spec language, it should be better to fill the concept and practice gap on
LRO delete
operation, and to simplify all the downstream's emitters' code base with no redundance on these field.Checklist
The text was updated successfully, but these errors were encountered: