-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Blob Create Snapshot Returns a Client #4472
Blob Create Snapshot Returns a Client #4472
Conversation
* SAS implementation * Fixed some minor formatting issues * Fixed checkstyle problems and test issue
Removes RawClients from Storage Blobs
…construct clients
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.
Why are account SAS changes in this PR?
We need to be able to get specialized blob clients for snapshots, as there are blob-type-specific APIs that don't modify. Right now, we only let this functionality get us BlobClient and BlobAsyncClient, and we'd have to pull the snapshot id out and manually construct the specific one. I guess we don't technically need this for append blobs, but I feel we should add that anyway for consistency.
sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobAsyncClient.java
Show resolved
Hide resolved
sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/SASTest.groovy
Outdated
Show resolved
Hide resolved
sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/SASTest.groovy
Outdated
Show resolved
Hide resolved
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.
LGTM
* Removed raw clients * Added deleteContainer to StorageClient * Merged Blob client builders into BlobClientBuilder * Storage SAS implementation (Azure#4404) * SAS implementation * Fixed some minor formatting issues * Fixed checkstyle problems and test issue * Remove RawClients from Blobs (Azure#4375) Removes RawClients from Storage Blobs * Added getAppendBlob with snapshot to ContainerClient * Updated Storage and Container clients to use AzureBlobStorageImpl to construct clients * Updating unit tests * Fix a snapshot test
Fixes #4453
createSnapshot in Storage Blobs returns a new BlobClient that is used to interact with the snapshot that was created. Convenience method was added to create a new client by passing a snapshot instead of needing to create a new builder and configuring it.