Azure / autorest.typescript

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

Open lirenhe opened 1 year ago

lirenhe commented 1 year ago

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>
  >;
deyaaeldeen commented 1 year ago

Related to https://github.com/Azure/autorest.typescript/issues/944

qiaozha commented 1 year ago

Have some document and verification work on this.

lirenhe commented 1 month ago

Let's do the investigation to understand its impact for the existing API design in Dt.