BlobPrefix Class
An Iterable of Blob properties.
Returned from walk_blobs when a delimiter is used. Can be thought of as a virtual blob directory.
- Inheritance
-
BlobPrefixazure.storage.blob._shared.models.DictMixinBlobPrefix
Constructor
BlobPrefix(*args, **kwargs)
Parameters
Name | Description |
---|---|
command
Required
|
Function to retrieve the next page of items. |
prefix
Required
|
Filters the results to return only blobs whose names begin with the specified prefix. |
results_per_page
Required
|
The maximum number of blobs to retrieve per call. |
marker
Required
|
An opaque continuation token. |
delimiter
Required
|
Used to capture blobs whose names begin with the same substring up to the appearance of the delimiter character. The delimiter may be a single character or a string. |
location_mode
Required
|
Specifies the location the request should be sent to. This mode only applies for RA-GRS accounts which allow secondary read access. Options include 'primary' or 'secondary'. |
Variables
Name | Description |
---|---|
name
|
The prefix, or "directory name" of the blob. |
service_endpoint
|
The service URL. |
prefix
|
A blob name prefix being used to filter the list. |
marker
|
The continuation token of the current page of results. |
results_per_page
|
The maximum number of results retrieved per API call. |
next_marker
|
The continuation token to retrieve the next page of results. |
location_mode
|
The location mode being used to list results. The available options include "primary" and "secondary". |
current_page
|
The current page of listed results. |
container
|
The container that the blobs are listed from. |
delimiter
|
A delimiting character used for hierarchy listing. |
Methods
by_page |
Get an iterator of pages of objects, instead of an iterator of objects. |
get | |
has_key | |
items | |
keys | |
next | |
update | |
values |
by_page
Get an iterator of pages of objects, instead of an iterator of objects.
by_page(continuation_token: str | None = None) -> Iterator[Iterator[ReturnType]]
Parameters
Name | Description |
---|---|
continuation_token
|
An opaque continuation token. This value can be retrieved from the continuation_token field of a previous generator object. If specified, this generator will begin returning results from this point. default value: None
|
Returns
Type | Description |
---|---|
<xref:iterator>[<xref:iterator>[<xref:ReturnType>]]
|
An iterator of pages (themselves iterator of objects) |
get
get(key, default=None)
Parameters
Name | Description |
---|---|
key
Required
|
|
default
|
default value: None
|
has_key
has_key(k)
Parameters
Name | Description |
---|---|
k
Required
|
|
items
items()
keys
keys()
next
next() -> ReturnType
update
update(*args, **kwargs)
values
values()
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for