Releases: MindFlavor/AzureSDKForRust
Blob storage - Copy blob from URL function support
This release adds the Copy blob from URL function support to the Blob crate as requested by Matthias P. Braendli in issue #73.
As usual, please refer to the example folder for a working example on how to use it.
Better macro ergonomics
This release improves the ergonomics of some of the most used of the Core
crate's macros .
- PR #256 thanks to Kim Christensen.
CosmosDB - Attachments support
This release adds attachments support (both reference and slug) to the Cosmos DB crate. There are few small breaking changes (most notably the ConsistenctLevel
enum now supports a Cow
instead of a raw &str
for better ergonomics so it loses the Copy
auto trait). You should not be impacted by the changes, however (I hope!).
All the attachments methods are supported and there are E2E tests as well. As usual, please refer to the examples folder for how to use it (as this time there is this example: attachment00.rs).
Mixed crate release 20200402
This release includes these PRs:
- Update service bus peek lock method to accept timeout. PR 247 thanks to Pedro Martin and his team.
- Try to parse into a known error on fail. PR 248 thanks to Murph Murphy.
- Add
azure_sas
associated function toTableClient
. PR 249 thanks to Ben Sully. - Support for stream in list blobs. PR 252.
The other crates have compatible increments because of the updated reference of the core
crate. The tag has a weird format because I could not find a common version for every crate. Every crate, however, is following its own versioning as explained in the README.
Maintenance release 0.42.0
Minor release. News:
- Exposed partition keys option in CosmosDB stored procedure (issue #242).
- Added many new methods to service bus. PR #243 by Pedro Martin.
- Tweaked Azure AAD auth. PR #246 by Dirkjan Ochtman.
CosmosDB: Stored procedure methods
0.40.0
This version incorporates:
- All the newest Azure Table changes thanks to: gzp-crey. Many thanks man!
- Fixed the dependencies using non alpha/beta crates (also thanks to: gzp-crey).
- More CosmosDB methods (please refer to milestone 3 for CosmosDB progress).
- Azure_aad_auth serde 1.0 compatible (PR #233 thanks to Jeffrey Shen).
- Global breaking change on how the ranges are passed to Azure (now it is more idiomatic in Rust) (PR #222).
As usual if I forgot to properly give credit to someone please let me know!
Fix blob streaming
CosmosDB: implemented Permissions
Implemented features
- All the Permission REST APIs methods have been implemented.
- A new specific client has been created:
PermissionClient
. - Modified the authentication code to accept seamlessly either the master tokens (the one you get from the Azure Portal) and the user permission tokens (the one you get by explicitly granting access to a resource). Please refer to the examples as usual for how to create and use user permission tokens.
Breaking changes
- Removed enum
azure_sdk_cosmos::TokenType
- Refactored struct
azure_sdk_cosmos::AuthorizationToken
into an enum to properly handle the permission based token. It also loses the account information (which goes into theazure_sdk_cosmos::Client
struct instead). In practice you should replace in your code:
let authorization_token = AuthorizationToken::new(account, TokenType::Master, &master_key)?;
let client = ClientBuilder::new(authorization_token)?;
with:
let authorization_token = AuthorizationToken::new_master(&master_key)?;
let client = ClientBuilder::new(account, authorization_token)?;
The other variant can be constructed from a azure_sdk_cosmos::PermissionToken
struct (regardless on how obtained). For example:
let new_authorization_token: AuthorizationToken = create_permission_response
.permission
.permission_token
.into();
Issues closed
CosmosDB - User methods
Implemented as per REST API specification
- Create User
- List Users
- Delete User
- Replace User
- Get User
New structs
- Added
UserClient
specific client. User
struct (exact copy of https://docs.microsoft.com/en-us/rest/api/cosmos-db/users).