Class R2ObjectPage
- Namespace
- Cloudflare.NET.R2.Models
- Assembly
- Cloudflare.NET.R2.dll
One page of an R2 prefix listing: the objects this ListObjectsV2 call returned, plus the token that
fetches the next page.
public record R2ObjectPage : IEquatable<R2ObjectPage>
- Inheritance
-
R2ObjectPage
- Implements
- Inherited Members
Remarks
The caller-driven counterpart of ListObjectsAsync(string, string?, CancellationToken), which walks every page internally. A caller that must bound how many pages it reads per run, and resume later, needs one page and a token instead of the whole prefix.
Constructors
R2ObjectPage(IReadOnlyList<S3Object>, string?, bool)
One page of an R2 prefix listing: the objects this ListObjectsV2 call returned, plus the token that
fetches the next page.
public R2ObjectPage(IReadOnlyList<S3Object> Objects, string? NextContinuationToken, bool IsTruncated)
Parameters
ObjectsIReadOnlyList<S3Object>The objects in this page, in the order R2 returned them (ordinal by key).
NextContinuationTokenstringThe token to pass on the next call to continue the listing, or
nullwhen this page is the last one.IsTruncatedbooltruewhen R2 has more objects under the prefix than this page carries.
Remarks
The caller-driven counterpart of ListObjectsAsync(string, string?, CancellationToken), which walks every page internally. A caller that must bound how many pages it reads per run, and resume later, needs one page and a token instead of the whole prefix.
Properties
IsTruncated
true when R2 has more objects under the prefix than this page carries.
public bool IsTruncated { get; init; }
Property Value
NextContinuationToken
The token to pass on the next call to continue the listing, or null when this page is the last one.
public string? NextContinuationToken { get; init; }
Property Value
Objects
The objects in this page, in the order R2 returned them (ordinal by key).
public IReadOnlyList<S3Object> Objects { get; init; }