chore(deps): update dependency b2sdk to v1.11.0
This MR contains the following updates:
Package | Update | Change |
---|---|---|
b2sdk | minor |
==1.7.0 -> ==1.11.0
|
Release Notes
Backblaze/b2-sdk-python
v1.11.0
Changed
- apiver
v2
interface released.from b2sdk.v2 import ...
is now the recommended import, butfrom b2sdk.v1 import ...
works as before
v1.10.0
Added
-
get_fresh_state
method added toFileVersion
andBucket
Changed
-
download_file_*
methods refactored to allow for inspecting DownloadVersion before downloading the whole file -
B2Api.get_file_info
returns aFileVersion
object in v2 -
B2RawApi
renamed toB2RawHTTPApi
-
B2HTTP
tests are now common -
B2HttpApiConfig
class introduced to provide parameters likeuser_agent_append
toB2Api
without using internal classes in v2 -
Bucket.update
returns aBucket
object in v2 -
Bucket.ls
argumentshow_versions
renamed tolatest_only
in v2 -
B2Api
application key methods refactored to operate with dataclasses instead of dicts in v2 -
B2Api.list_keys
is a generator lazily fetching all keys in v2 -
account_id
andbucket_id
added to FileVersion
Fixed
- Fix EncryptionSetting.from_response_headers
- Fix FileVersion.size and FileVersion.mod_time_millis type ambiguity
- Old buckets (from past tests) are cleaned up before running integration tests in a single thread
Removed
- Remove deprecated
SyncReport
methods
v1.9.0
Added
-
ScanPoliciesManager
is able to filter b2 files by upload timestamp
Changed
-
Synchronizer.make_file_sync_actions
andSynchronizer.make_folder_sync_actions
were made private in v2 interface - Refactored
sync.file.*File
andsync.file.*FileVersion
tosync.path.*SyncPath
in v2 - Refactored
FileVersionInfo
toFileVersion
in v2 -
ScanPoliciesManager
exclusion interface changed in v2 -
B2Api
unittests for v0, v1 and v2 are now common -
B2Api.cancel_large_file
returns aFileIdAndName
object instead of aFileVersion
object in v2 -
FileVersion
has a mandatoryapi
parameter in v2 -
B2Folder
holds a handle to B2Api -
Bucket
unit tests for v1 and v2 are now common
Fixed
- Fix call to incorrect internal api in
B2Api.get_download_url_for_file_name
v1.8.0
Added
- Add
get_bucket_name_or_none_from_bucket_id
toAccountInfo
andCache
- Add possibility to change realm during integration tests
- Add support for "file locks": file retention, legal hold and default bucket retention
Fixed
- Cleanup sync errors related to directories
- Use proper error handling in
ScanPoliciesManager
- Application key restriction message reverted to previous form
- Added missing apiver wrappers for FileVersionInfo
- Fix crash when Content-Range header is missing
- Pin dependency versions appropriately
Changed
-
b2sdk.v1.sync
refactored to reflectb2sdk.sync
structure - Make
B2Api.get_bucket_by_id
return populated bucket objects in v2 - Add proper support of
recommended_part_size
andabsolute_minimum_part_size
inAccountInfo
- Refactored
minimum_part_size
torecommended_part_size
(tha value used stays the same) - Encryption settings, types and providers are now part of the public API
Removed
- Remove
Bucket.copy_file
andBucket.start_large_file
- Remove
FileVersionInfo.format_ls_entry
andFileVersionInfo.format_folder_ls_entry
Configuration
-
If you want to rebase/retry this MR, check this box.
This MR has been generated by Renovate Bot. The local configuration can be found in the SI Renovate Bot repository.
Edited by Botaniker (Bot)