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
176
stars
75
forks
source link
Support Page<T> in LRO response type in TypeSpec in RLC #1688
This issue was reported in dotnet https://github.com/Azure/autorest.csharp/issues/2905, but I expect JS RLC should also support this.
Below is an example TypeSpec with LRO POST action that generates a pageable collection of file URIs.
#suppress "@azure-tools/cadl-azure-core/use-standard-operations" "ADP data-plane API uses custom LRO response template the LRO actions."
@doc("Initiates the process of generating SAS signed URIs for accessing the data-stream files.")
@extension("x-ms-long-running-operation", true)
@asyncOperationOptions("location")
@pollingOperation(LongRunningOperationStatus)
generate is CustomLongRunningResourceCollectionAction<
DataStreamFile,
{},
Page<DataStreamFile>
>;
This issue was reported in dotnet https://github.com/Azure/autorest.csharp/issues/2905, but I expect JS RLC should also support this. Below is an example TypeSpec with LRO POST action that generates a pageable collection of file URIs.