Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Page<T> in LRO response type in TypeSpec in RLC #1688

Open
Tracked by #2134
lirenhe opened this issue Dec 7, 2022 · 3 comments
Open
Tracked by #2134

Support Page<T> in LRO response type in TypeSpec in RLC #1688

lirenhe opened this issue Dec 7, 2022 · 3 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. DPG/RLC v2.0 GA Epic: Convenience methods with models https://github.com/Azure/cadl-azure/issues/1943 P1 priority 1 RLC

Comments

@lirenhe
Copy link
Member

lirenhe commented Dec 7, 2022

This issue was reported in dotnet Azure/autorest.csharp#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>
  >;
@lirenhe lirenhe added Client This issue points to a problem in the data-plane of the library. RLC DPG/RLC v2.0 GA Epic: Convenience methods with models https://github.com/Azure/cadl-azure/issues/1943 labels Dec 7, 2022
@deyaaeldeen
Copy link
Member

Related to #944

@qiaozha qiaozha self-assigned this Dec 14, 2022
@qiaozha
Copy link
Member

qiaozha commented Feb 23, 2023

Have some document and verification work on this.

@qiaozha qiaozha assigned MaryGao and unassigned qiaozha Feb 23, 2023
@MaryGao MaryGao changed the title Support Page<T> in LRO response type in CADL Support Page<T> in LRO response type in TypeSpec Dec 14, 2023
@MaryGao MaryGao changed the title Support Page<T> in LRO response type in TypeSpec Support Page<T> in LRO response type in TypeSpec in RLC Jan 24, 2024
@qiaozha qiaozha added P1 priority 1 and removed priority-1 labels Apr 4, 2024
@lirenhe
Copy link
Member Author

lirenhe commented Aug 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. DPG/RLC v2.0 GA Epic: Convenience methods with models https://github.com/Azure/cadl-azure/issues/1943 P1 priority 1 RLC
Projects
None yet
Development

No branches or pull requests

4 participants