Skip to content

Commit 4c7cb71

Browse files
authored
Merge pull request #3066 from GoogleCloudPlatform/auth-cleanup
Update auth snippets.
2 parents b7102bb + d4a179e commit 4c7cb71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/StorageSnippets.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ public List<Acl> listBlobAcls(String bucketName, String blobName, long blobGener
10321032
* Example of default auth
10331033
*/
10341034
public Page<Bucket> authListBuckets() {
1035-
// [START authListBucket]
1035+
// [START auth_cloud_implicit]
10361036
// If you don't specify credentials when constructing the client, the
10371037
// client library will look for credentials in the environment.
10381038

@@ -1042,7 +1042,7 @@ public Page<Bucket> authListBuckets() {
10421042
for (Bucket bucket : buckets.iterateAll()) {
10431043
// do something with the info
10441044
}
1045-
// [END authListBucket]
1045+
// [END auth_cloud_implicit]
10461046
return buckets;
10471047
}
10481048

0 commit comments

Comments
 (0)