Azure / typespec-azure

About TypeSpec Azure Libraries
https://azure.github.io/typespec-azure/
MIT License
8 stars 28 forks source link

[TCGC] LRO, add polling info to the `SdkLroServiceMethod` and `SdkLroPagingServiceMethod` #1062

Open haolingdong-msft opened 2 weeks ago

haolingdong-msft commented 2 weeks ago

typespec-azure-core's LroMetaData contains pollingInfo. Currently Java emitter will use the pollingInfo.responseModel to get polling type and calculate which polling strategy to use. More details can be found in Java emitter's logic.

I guess other languages also needs polling info. So it's better to have TCGC to add polling info instead of using raw LroMetaData. For now, Java emitter only needs polling response type. Not sure what polling info other language needs, language owners, please feel free to use this issue to add your requirements.

iscai-msft commented 2 weeks ago

thanks for starting the conversation @haolingdong-msft, we purposefully didn't add too much information to start with, so our plan was always to add what emitters need here