autorest.typescript icon indicating copy to clipboard operation
autorest.typescript copied to clipboard

How to handle the client-level parameters for method with non-required that parameters?

Open MaryGao opened this issue 8 months ago • 0 comments

In ARM service team may prompt subscriptionId into client-level parameters. Usually this mean most operations would require subscriptionId but not all. So we received customer's ask if there is a way to bypass the subscriptionId parameter for tenant-level operations and see issues.

In HLC we implemented this with the constructor overloading and see pr. But this would lead to issues when customers create client without subscriptionId but call any methods which require that parameter. Finally this would cause operation failure.

In this issue we'd like to look for a better solution in this issue.

MaryGao avatar Jun 20 '24 13:06 MaryGao