2019-10-31 12.0.0
Breaking changes
set_container_access_policy
has required parametersigned_identifiers
.NoRetry
policy has been removed. Use keyword argumentretry_total=0
for no retries.StorageStreamDownloader
is no longer iterable. To iterate over the blob data stream, useStorageStreamDownloader.chunks
.- The public attributes of
StorageStreamDownloader
have been limited to:name
(str): The name of the blob.container
(str): The container the blob is being downloaded from.properties
(BlobProperties
): The properties of the blob.size
(int): The size of the download. Either the total blob size, or the length of a subsection if sepcified. Previously calleddownload_size
.
StorageStreamDownloader
now has new functions:readall()
: Reads the complete download stream, returning bytes. This replaces the functionscontent_as_bytes
andcontent_as_text
which have been deprecated.readinto(stream)
: Download the complete stream into the supplied writable stream, returning the number of bytes written. This replaces the functiondownload_to_stream
which has been deprecated.
- Module level functions
upload_blob_to_url
anddownload_blob_from_url
functions options are now keyword only:overwrite
max_concurrency
encoding
- Removed types that were accidentally exposed from two modules. Only
BlobServiceClient
,ContainerClient
,
BlobClient
andBlobLeaseClient
should be imported from azure.storage.blob.aio Logging
has been renamed toBlobAnalyticsLogging
.- Client and model files have been made internal. Users should import from the top level modules
azure.storage.blob
andazure.storage.blob.aio
only. - All operations that take Etag conditional parameters (
if_match
andif_none_match
) now take explicitetag
andmatch_condition
parameters, whereetag
is the Etag value, andmatch_condition
is an instance ofazure.core.MatchConditions
. - The
generate_shared_access_signature
methods on each ofBlobServiceClient
,ContainerClient
andBlobClient
have been replaced by module level functionsgenerate_account_sas
,generate_container_sas
andgenerate_blob_sas
. - The batch APIs now have an additional keyword only argument
raise_on_any_failure
which defaults to True. This will raise an error even if there's a partial batch failure. LeaseClient
has been renamed toBlobLeaseClient
.get_service_stats
now returns a dictget_service_properties
now returns a dict with keys consistent toset_service_properties
New features
- Added async module-level
upload_blob_to_url
anddownload_blob_from_url
functions. ResourceTypes
, andServices
now have methodfrom_string
which takes parameters as a string.