NAME
Azure::SDK::Storage::Blobs::BlobPage - one page of a Blob listing
SYNOPSIS
my $page = $serializer->parse_blob_list($xml);
for my $item ( @{ $page->items } ) { ... }
while ( $page->has_more ) {
$page = $client->list_blobs( marker => $page->next_marker );
}
DESCRIPTION
Holds the Azure::SDK::Storage::Blobs::BlobItem objects from one EnumerationResults response together with the continuation marker.
Subclasses Azure::SDK::Core::Page, which owns items, continuation_token, has_more, and count. This class adds only the two fields the Blob listing API echoes back.
Continuation markers
The marker is opaque and must be round-tripped exactly as received. Azurite happens to return the last blob name, while Azure returns a base64-like token; neither form should be interpreted. The raw, decoded marker is what the next request signs, and the URL builder percent-encodes it separately.
<NextMarker/> on the final page is normalized to undef by the parent class, so has_more is the single check for whether another request is needed.
CONSTRUCTOR
new
Named parameters: items (array reference, defaults to empty), continuation_token, container_name, and prefix.
The constructor parameter is continuation_token, inherited from Azure::SDK::Core::Page. next_marker is a reader only.
METHODS
next_marker
The opaque continuation marker, or undef on the last page. An alias for the inherited continuation_token, named after the NextMarker element in the Blob REST API.
container_name
The container name reported by the service, or undef.
prefix
The prefix echoed by the service, or undef when no prefix was requested.
SEE ALSO
Azure::SDK::Core::Page, Azure::SDK::Storage::Blobs::BlobItem, Azure::SDK::Storage::Blobs::Serializer