-
Notifications
You must be signed in to change notification settings - Fork 299
[Storage] set_legal_hold
, set/get_immutability_policy
for BlobClient, set/get_access_policy
for ContainerClient, get_service_stats
#2814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
sdk/storage/azure_storage_blob/src/clients/blob_service_client.rs
Outdated
Show resolved
Hide resolved
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
sdk/storage/azure_storage_blob/src/clients/blob_service_client.rs
Outdated
Show resolved
Hide resolved
set_legal_hold
, set/get_immutability_policy
for BlobClient, set/get_access_policy
for ContainerClient, get_service_stats
, get_user_delegation_key
for ServiceClientset_legal_hold
, set/get_immutability_policy
for BlobClient, set/get_access_policy
for ContainerClient, get_service_stats
// Hitting an error to delete despite also manually deleting all Blobs (and verifying its empty state in Azure Portal) | ||
// However, deleting in Azure Portal works. | ||
container_client.delete_container(None).await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still having issues with deleting container even after 1/1 blobs.
// ERRORS: Error: Error { context: Full(Custom { kind: DataConversion, error: Error { context: Message { kind: DataConversion, message: "unknown variant of BlobImmutabilityPolicyMode found: \"unlocked\"" } } }, | ||
// "unable to parse header 'HeaderName(\"x-ms-immutability-policy-mode\"): HeaderValue' | ||
// into azure_storage_blob::generated::models::enums::BlobImmutabilityPolicyMode") } | ||
let mode = response.immutability_policy_mode()?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parsing issue, started a thread to track this.
}; | ||
|
||
container_client | ||
.set_access_policy(signed_identifier.try_into()?, None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error[E0277]: the trait bound RequestContent<Vec<SignedIdentifier>, XmlFormat>: TryFrom<...>
is not satisfied
--> sdk\storage\azure_storage_blob\tests\blob_container_client.rs:305:46
|
305 | .set_access_policy(signed_identifier.try_into()?, None)
| ^^^^^^^^ unsatisfied trait bound
|
= help: the trait std::convert::From<azure_storage_blob::models::SignedIdentifier>
is not implemented for RequestContent<Vec<SignedIdentifier>, XmlFormat>
No description provided.