Skip to content

[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

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

vincenttran-msft
Copy link
Member

No description provided.

@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Jul 23, 2025
Copy link

github-actions bot commented Jul 23, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

azure_storage_blob

@vincenttran-msft vincenttran-msft changed the title [Storage] set_legal_hold, set/get_immutability_policy for BlobClient, set/get_access_policy for ContainerClient, get_service_stats, get_user_delegation_key for ServiceClient [Storage] set_legal_hold, set/get_immutability_policy for BlobClient, set/get_access_policy for ContainerClient, get_service_stats Jul 28, 2025
Comment on lines +461 to +463
// 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?;
Copy link
Member Author

@vincenttran-msft vincenttran-msft Jul 28, 2025

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.

Comment on lines +489 to +492
// 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()?;
Copy link
Member Author

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)
Copy link
Member Author

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant