Skip to content

Conversation

@alzimmermsft
Copy link
Member

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.

@alzimmermsft alzimmermsft self-assigned this Jul 18, 2019
@alzimmermsft alzimmermsft added Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files) labels Jul 18, 2019
@alzimmermsft alzimmermsft changed the base branch from storage-post-review1-dev to master July 26, 2019 02:06
Copy link
Member

@jaschrep-msft jaschrep-msft left a 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.

@alzimmermsft alzimmermsft requested a review from jianghaolu August 1, 2019 23:52
Copy link
Contributor

@sima-zhu sima-zhu left a comment

Choose a reason for hiding this comment

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

LGTM

@alzimmermsft alzimmermsft merged commit 3aafbc4 into Azure:master Aug 2, 2019
@alzimmermsft alzimmermsft deleted the AzStorage_CreateSnapshot_Returns_Client branch August 2, 2019 20:43
srnagar pushed a commit to srnagar/azure-sdk-for-java that referenced this pull request Aug 5, 2019
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

createSnapshot Returning Client

4 participants