Support resume for pagers #23795
Labels
Azure.Core
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
feature-request
This issue requires a new behavior in the product in order be resolved.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
needs-team-triage
Workflow: This issue needs the team to triage.
It seems that there's no way currently to resume a listing of resources via a pager. This makes it hard to implement asynchronous APIs where a client requests resource listings in chunks, and the service uses the Azure SDK to retrieve the resource list.
Details:
armresources.Client
andarmresources.ResourceGroupsClient
, and possibly other clients as well, support listing resources via runtime.Pager. The types returned by the pager, such as ResourceGroupListResult, have aNextLink
property. Even though the property is public, it's not used anywhere else except internally. There's no equivalent toNewPollerFromResumeToken
that would create a Pager that continues from a givennextLink
.If that's truly not possible, why expose
NextLink
? I hope it can be added, though.The text was updated successfully, but these errors were encountered: