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

initial work to support x-ms-pageable for generated specs #742

Merged
merged 4 commits into from
May 5, 2022

Conversation

bmc-msft
Copy link
Contributor

@bmc-msft bmc-msft commented May 4, 2022

API endpoints that define x-ms-pageable supports generating a Pageable stream (via into_stream) instead of an into_future builder.

At the moment, the generator does not support endpoints that use the HTTP header x-ms-continuation (seen as not providing a next_link_name in the x-ms-pageable spec). For functions that this does not work, there is now a doc comment added such that users are informed that the generated API does not page.

In order to fully flesh this out, we need to support including header values in the response object due to how Pageable works. See #446 for more information.

As this is similar to LRO support, endpoints that would typically be polled but do not yet poll, a doc comment is also added such that the users are informed that the polling does not occur.
Adding support for this is tracked as #741.

Brian Caswell added 3 commits May 4, 2022 10:48
API endpoints that define x-ms-pageable supports generating a `Pageable`
stream (via `into_stream`) instead of an `into_future` builder.

At the moment, the generator does not support endpoints that use
the HTTP header `x-ms-continuation` (seen as not providing a
next_link_name in the x-ms-pageable spec).
@bmc-msft
Copy link
Contributor Author

bmc-msft commented May 4, 2022

@bmc-msft bmc-msft requested a review from cataggar May 4, 2022 16:02
Copy link
Member

@cataggar cataggar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fantastic! I reviewed the commits after a gh pr checkout 742.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants