Skip to content

Commit d4a179e

Browse files
committed
Update auth snippets.
1 parent 7499e96 commit d4a179e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)