Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.2k
Make signUrl take long duration and TimeUnit parameter#243
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
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d60d3f4
Make signUrl take long duration and TimeUnit parameter
mziccard 286065d
Update storage example
mziccard 64121d8
Enhance storage/blob signUrl javadoc
mziccard 194d239
Rename TimeSource to Clock and move it to ServiceOptions
mziccard 3e57ae7
Fix javadoc indent in Blob and Storage
mziccard 6bbfb05
Add readResolve to StorageOptions.DefaultClock
mziccard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
68 changes: 66 additions & 2 deletions
68 gcloud-java-core/src/main/java/com/google/gcloud/ServiceOptions.java
This file contains hidden or 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
6 changes: 2 additions & 4 deletions
6 gcloud-java-examples/src/main/java/com/google/gcloud/examples/StorageExample.java
This file contains hidden or 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
19 changes: 11 additions & 8 deletions
19 gcloud-java-storage/src/main/java/com/google/gcloud/storage/Blob.java
This file contains hidden or 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
19 changes: 11 additions & 8 deletions
19 gcloud-java-storage/src/main/java/com/google/gcloud/storage/Storage.java
This file contains hidden or 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
5 changes: 4 additions & 1 deletion
5 gcloud-java-storage/src/main/java/com/google/gcloud/storage/StorageImpl.java
This file contains hidden or 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
10 changes: 9 additions & 1 deletion
10 gcloud-java-storage/src/main/java/com/google/gcloud/storage/StorageOptions.java
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -47,6 +47,12 @@ private Builder(StorageOptions options) { | ||
| super(options); | ||
| } | ||
| /** | ||
| * Sets the path delimiter for the storage service. | ||
| * | ||
| * @param pathDelimiter the path delimiter to set | ||
This comment was marked as spam.Sorry, something went wrong. Uh oh!There was an error while loading. Please reload this page. | ||
| * @return the builder. | ||
| */ | ||
| public Builder pathDelimiter(String pathDelimiter) { | ||
| this.pathDelimiter = pathDelimiter; | ||
| return this; | ||
| @@ -61,7 +67,6 @@ public StorageOptions build() { | ||
| private StorageOptions(Builder builder) { | ||
| super(builder); | ||
| pathDelimiter = MoreObjects.firstNonNull(builder.pathDelimiter, DEFAULT_PATH_DELIMITER); | ||
| // todo: consider providing read-timeout | ||
| } | ||
| @Override | ||
| @@ -84,6 +89,9 @@ StorageRpc storageRpc() { | ||
| return storageRpc; | ||
| } | ||
| /** | ||
| * Returns the storage service's path delimiter. | ||
| */ | ||
| public String pathDelimiter() { | ||
| return pathDelimiter; | ||
| } | ||
5 changes: 3 additions & 2 deletions
5 gcloud-java-storage/src/test/java/com/google/gcloud/storage/BlobTest.java
This file contains hidden or 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
11 changes: 3 additions & 8 deletions
11 gcloud-java-storage/src/test/java/com/google/gcloud/storage/ITStorageTest.java
This file contains hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.