Extension for AutoRest (https://github.com/Azure/autorest) that generates TypeScript code. The transpiled javascript code is isomorphic. It can be run in browser and in node.js environment.
MIT License
177
stars
73
forks
source link
How to handle the client-level parameters for method with non-required that parameters? #2607
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.
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.