PSHttpResponseExtensions.PaginateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Fetch all data from a paginated AzureOperationResponse by following each nextLink until reaching the max limit, and combine the results into one PSHttpResponse.
public static System.Threading.Tasks.Task<Microsoft.Azure.Commands.Profile.Models.PSHttpResponse> PaginateAsync(this Microsoft.Rest.Azure.AzureOperationResponse<string> response, Microsoft.Azure.Internal.Common.IAzureRestClient serviceClient, string apiVersion, string pageableItemName = "value", string nextLinkName = "nextLink", int maxPageSize = 2147483647);
static member PaginateAsync : Microsoft.Rest.Azure.AzureOperationResponse<string> * Microsoft.Azure.Internal.Common.IAzureRestClient * string * string * string * int -> System.Threading.Tasks.Task<Microsoft.Azure.Commands.Profile.Models.PSHttpResponse>
<Extension()>
Public Function PaginateAsync (response As AzureOperationResponse(Of String), serviceClient As IAzureRestClient, apiVersion As String, Optional pageableItemName As String = "value", Optional nextLinkName As String = "nextLink", Optional maxPageSize As Integer = 2147483647) As Task(Of PSHttpResponse)
Parameters
- response
- AzureOperationResponse<String>
- serviceClient
- IAzureRestClient
- apiVersion
- String
- pageableItemName
- String
- nextLinkName
- String
- maxPageSize
- Int32