How can I change the operation template of an operation in newer versions
Symtoms
If you are switching to a different operation template in a new version, you may run into compilation errors if you only leverage @added
and @removed
versioning decorators.
Workaround
In the example below, you are switch from an old deprecated operation template to the new one. Note the uses of @sharedRoute
and renamedFrom
to avoid name and route conflict errors.
Please note: In the delete is ArmResourceDeleteAsync
example above, if you are RPSaaS service, you CAN do a direct replacement with delete is ArmResourceDeleteWithoutOkAsync
. This is because RPSaaS will never send 200 OK
. Update in-place is just an API spec bug fix.