Skip to content

Commit 96afddf

Browse files
committed
---
yaml --- r: 26775 b: refs/heads/v4support c: 5534b2f h: refs/heads/master i: 26773: 0858f6e 26771: 664e3ae 26767: 8f29d59
1 parent 8a16079 commit 96afddf

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ refs/heads/igorbernstein2-patch-1: f62464ee14df1e44a3b173cdc3976563d1b3078b
176176
refs/heads/mrschmidt-collectiongroup: a6d948bf3731a7e1ce1fcd3db8ab733a3c9b17de
177177
refs/heads/release-google-cloud-java-v0.83.0: 4b55ec1b81b3886ede61ae868391a3cdf7eed90e
178178
refs/heads/release-google-cloud-java-v0.83.1-SNAPSHOT: 8d6db7ee534d12b1df38d8cf314871df76f87577
179-
refs/heads/v4support: 836d7d5860578ab5ac2c05a26e4386707dda7eb6
179+
refs/heads/v4support: 5534b2fbfa035085bce28cf8cee03c45bc8bac8a
180180
refs/tags/v0.82.0: 7b9807d5d0a400c757b8905fee768be4c85eba25
181181
refs/tags/v0.83.0: 370ec5a1131a86b36db8efce4f1a943607de8a60
182182
refs/tags/v0.84.0: 71e85198495a39f4524afa2669434b5075c17c3d

branches/v4support/google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/Storage.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,6 +2123,15 @@ Blob create(
21232123
* TimeUnit.DAYS);
21242124
* }</pre>
21252125
*
2126+
* <p>Example of creating a signed URL passing the {@link SignUrlOption#withV4Signature()} option,
2127+
* which enables V4 signing.
2128+
* <pre>{@code
2129+
* String bucketName = "my_unique_bucket";
2130+
* String blobName = "my_blob_name";
2131+
* URL signedUrl = storage.signUrl(BlobInfo.newBuilder(bucketName, blobName).build(),
2132+
* 7, TimeUnit.DAYS, Storage.SignUrlOption.withV4Signature());
2133+
* }</pre>
2134+
*
21262135
* <p>Example of creating a signed URL passing the {@link
21272136
* SignUrlOption#signWith(ServiceAccountSigner)} option, that will be used for signing the URL.
21282137
*

branches/v4support/google-cloud-clients/google-cloud-storage/src/test/java/com/google/cloud/storage/V4SigningTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015 Google LLC
2+
* Copyright 2019 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)