Skip to content
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

[Storage] stage_block, commit_block_list for BlobClient, get_container_properties for ContainerClient, get_service_properties for ServiceClient #2273

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

vincenttran-msft
Copy link
Member

@vincenttran-msft vincenttran-msft commented Mar 4, 2025

This PR introduces the following:

BlobClient

  • stage_block
  • commit_block_list

ContainerClient

  • get_container_properties

ServiceClient

  • Initial introduction of ServiceClient
  • get_service_properties

This PR also moves to the standardized way to fetch randomized seeded names (random_string) and includes a helper utility for test setup.

@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Mar 4, 2025
@@ -0,0 +1,23 @@
[package]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need/want a whole new crate for these helpers?

Copy link
Member Author

@vincenttran-msft vincenttran-msft Mar 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I was following the convention that:

I am happy to move these into the main azure_storage_blob crate, but we should check with Azure SDK what is idiomatic here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this should probably be a helper sub-module in the test module of the SDK itself. The core test package provides all the stuff for other packages so that makes sense and keyvault has some actual tests in there so I don't think plain utilities have a precedent here.

Curious on Heath's thoughts though.

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.

2 participants