azure-storage-blob_12.0.0b4
Pre-release
Pre-release
Breaking changes
- Permission models.
AccountPermissions
,BlobPermissions
andContainerPermissions
have been renamed to
AccountSasPermissions
,BlobSasPermissions
andContainerSasPermissions
respectively.- enum-like list parameters have been removed from all three of them.
__add__
and__or__
methods are removed.
max_connections
is now renamed tomax_concurrency
.ContainerClient
now accepts onlyaccount_url
with a mandatory string paramcontainer_name
.
To use a container_url, the methodfrom_container_url
must be used.BlobClient
now accepts onlyaccount_url
with mandatory string paramscontainer_name
and
blob_name
. To use a blob_url, the methodfrom_blob_url
must be used.- Some parameters have become keyword only, rather than positional. Some examples include:
loop
max_concurrency
validate_content
timeout
etc.
- APIs now take in
offset
andlength
instead ofrange_start
andrange_end
consistently.
length
is the number of bytes to take in starting from theoffset
. The APIs that have been
changed include:get_page_ranges
upload_page
upload_pages_from_url
clear_page
append_block_from_url
block_id
is not optional inBlobBlock
model.
New features
- Add support for delete_blobs API to ContainerClient (Python 3 only)
- Add support for set_standard_blob_tier_blobs to ContainerClient (Python 3 only)
- Add support for set_premium_page_blob_tier_blobs to ContainerClient (Python 3 only)
- Added support to set rehydrate blob priority for Block Blob, including Set Standard Blob Tier/Copy Blob APIs
- Added blob tier support for Block Blob, including Upload Blob/Commit Block List/Copy Blob APIs.
Fixes and improvements
- Downloading page blobs now take advantage of their sparseness.
- The
length
param indownload_blob
now takes the number of bytes to take in starting from theoffset
instead of a harde set end value.
Dependency updates
-
Adopted azure-core 1.0.0b4
- If you later want to revert to previous versions of azure-storage-blob, or another Azure SDK
library requiring azure-core 1.0.0b1 or azure-core 1.0.0b2, you must explicitly install
the specific version of azure-core as well. For example:
pip install azure-core==1.0.0b2 azure-storage-blob==12.0.0b2
- If you later want to revert to previous versions of azure-storage-blob, or another Azure SDK