Open pshao25 opened 2 weeks ago
@pshao25 Let's discuss. Other than provider actions, non-resource operations should be modeled using Azure.Core or low-level http operations.
I'm thinking from SDK perspective, assume we now have getAllOperations
from TCGC, resolveArmResources
from TypeSpec library. We have to do below to filter out all the resource operations when generating all the non-resource operations. It's inconvenient.
foreach (operation in getAllOperations()) {
if (operation in resolveArmResources().AllOperations) continue;
else /* generate this operation */
}
It's better if we have some API called getNonResourceOperations
, then we could do
foreach (operation in getNonResourceOperations()) {
/* generate this operation */
}
Following up the design for multi path issue and the API
getArmResources
it provides, we also need an API for the rest operations which are not resource operations.