-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new dedup utility method to Option classes (#2063)
When providing options duplicates are not allowed, however there are times when you might end up providing two options which would collide. These new utility methods encapsulate the logic necessary to deduplicate any overlap wil returing an array which can be passed directly to the respective operation method. `dedupe` utility methods added to each of the following Option classes: * Storage.BlobGetOption.dedupe(); * Storage.BlobListOption.dedupe(); * Storage.BlobSourceOption.dedupe(); * Storage.BlobTargetOption.dedupe(); * Storage.BlobWriteOption.dedupe(); * Storage.BucketGetOption.dedupe(); * Storage.BucketListOption.dedupe(); * Storage.BucketSourceOption.dedupe(); * Storage.BucketTargetOption.dedupe(); * Storage.CreateHmacKeyOption.dedupe(); * Storage.DeleteHmacKeyOption.dedupe(); * Storage.GetHmacKeyOption.dedupe(); * Storage.ListHmacKeysOption.dedupe(); * Storage.UpdateHmacKeyOption.dedupe(); * Bucket.BlobTargetOption.dedupe(); * Bucket.BlobWriteOption.dedupe(); * Bucket.BucketSourceOption.dedupe(); * Blob.BlobSourceOption.dedupe(); There are overloads which accept a collection or array in addition to varargs.
- Loading branch information
1 parent
e48862a
commit 2ad196c
Showing
5 changed files
with
818 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.