LRO properties should be omitted in generated code unless needed
(This applies to C#; I haven't checked if it applies to other languages too.)
Not all SDKs support long-running operations, but AutoRest includes the LongRunningOperationRetryTimeout property in the generated ServiceClient anyway. This is confusing to end users looking for information on how to control the client's retry behavior.
There should be a way to prevent AutoRest from generating this property when it's not needed.
Which language are you talking about?
- C#, node.js, ruby, python, java, go - support long running operations.
I know for sure the issue affects C#. I haven't looked at generated code in the other languages.
Since the generated clients inherit from IAzureClient, they have to implement LongRunningOperationRetryTimeout.
I'd suggest implementing the property explicitly, in case there are no LROs, so at least it is somewhat hidden from end users.
@olydis Or factor the interface differently, since not all clients support LRO.
IAzureClient is part of the Azure client runtime, which is now owned by azure-sdk-for-net and not AutoRest
Your proposal would require generating a custom client runtime, which is something we'll think about in the 2.0 time frame. Until then, the Azure client runtime is considered unchangeable ;-)
@olydis As long as that is an explicit decision to ease package versioning pain for customers at the cost of a slightly awkward interface. I'm ok with that tradeoff. :-)
Adding to vNext generator/client runtime feature list.