diff --git a/sdk/storage/azure-storage-file-share/CHANGELOG.md b/sdk/storage/azure-storage-file-share/CHANGELOG.md index 6b5c3d7f4f0f..5102f303de8d 100644 --- a/sdk/storage/azure-storage-file-share/CHANGELOG.md +++ b/sdk/storage/azure-storage-file-share/CHANGELOG.md @@ -6,13 +6,14 @@ - Added support for getting access tier on a share through ShareClient.getProperties, ShareServiceClient.listShares - Renamed setAccessTier to setProperties and deprecated setQuotaInGb in favor of setProperties. - Renamed DeleteSnapshotsOptionType to ShareSnapshotsDeleteOptionType in ShareClient.delete +- Removed ability to create a ShareLeaseClient for a Share or Share Snapshot. This feature has been rescheduled for future release. ## 12.7.0-beta.1 (2020-10-01) - Added support for the 2020-02-10 service version. - Added support to getFileRanges on a previous snapshot by adding the getFileRangesDiff API. - Added support to set whether or not smb multichannel is enabled. - Added support to lease shares and snapshot shares. -- Added support to specify a lease id for share operations. +- Added support to specify a lease id for share operations. - Fixed a bug where getProperties on a file client would throw a HttpResponseException instead of ShareStorageException. - Fixed a bug where snapshot would be appended to a share snapshot instead of sharesnapshot. - Fixed a bug that would cause auth failures when building a client by passing an endpoint which had a sas token with protocol set to https,http diff --git a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/specialized/ShareLeaseClientBuilder.java b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/specialized/ShareLeaseClientBuilder.java index cce3a5c8954c..1dae3d679e44 100644 --- a/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/specialized/ShareLeaseClientBuilder.java +++ b/sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/specialized/ShareLeaseClientBuilder.java @@ -112,7 +112,7 @@ public ShareLeaseClientBuilder fileAsyncClient(ShareFileAsyncClient fileAsyncCli * @return the updated ShareLeaseClientBuilder object * @throws NullPointerException If {@code fileClient} is {@code null}. */ - public ShareLeaseClientBuilder shareClient(ShareClient shareClient) { + ShareLeaseClientBuilder shareClient(ShareClient shareClient) { Objects.requireNonNull(shareClient); this.pipeline = shareClient.getHttpPipeline(); this.url = shareClient.getShareUrl(); @@ -130,7 +130,7 @@ public ShareLeaseClientBuilder shareClient(ShareClient shareClient) { * @return the updated ShareLeaseClientBuilder object * @throws NullPointerException If {@code fileAsyncClient} is {@code null}. */ - public ShareLeaseClientBuilder shareAsyncClient(ShareAsyncClient shareAsyncClient) { + ShareLeaseClientBuilder shareAsyncClient(ShareAsyncClient shareAsyncClient) { Objects.requireNonNull(shareAsyncClient); this.pipeline = shareAsyncClient.getHttpPipeline(); this.url = shareAsyncClient.getShareUrl();