You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: -As parameter to cast objects to a type as part of the query #1055
Support a -As parameter that either has an enum or just takes a string of supported types that will append this to the request URI, and type it to the same appropriate type in powershell models.
Justin Grote (@JustinGrote). Thanks for taking the time to open this issue. Your proposal of adding a -As parameter of the derived types as an enum sounds like a good idea. We will first need to implement #19, then add -As parameter to all commands that support OData cast.
The SDK does not currently support OData cast due to a lack of derived types in the CSDL metadata/OpenAPI file. We are tracking OData cast support via OpenAPI discriminator in #19.
Activity
peombwa commentedon Mar 31, 2022
Justin Grote (@JustinGrote). Thanks for taking the time to open this issue. Your proposal of adding a
-Asparameter of the derived types as an enum sounds like a good idea. We will first need to implement #19, then add-Asparameter to all commands that support OData cast.The SDK does not currently support OData cast due to a lack of derived types in the CSDL metadata/OpenAPI file. We are tracking OData cast support via OpenAPI discriminator in #19.
peombwa commentedon Apr 7, 2023
Closing as duplicate of https://github.com/microsoftgraph/microsoft-graph-devx-api/issues/1228.
The implementation will be something like
Get-MgGroupMemberAsUserdue to how the API is structured and what's supported by the code generator.