Skip to content

Commit 56d3583

Browse files
author
Frank Natividad
committed
---
yaml --- r: 8547 b: refs/heads/snehashah-bugfix c: ff8130f h: refs/heads/master i: 8545: 3777343 8543: cfb88dd
1 parent f901216 commit 56d3583

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • branches/snehashah-bugfix/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ refs/heads/vkedia-patch-3: 4d128043acaa7db9160faf439d2ca6104e8a88cb
7373
refs/tags/v0.23.0: e5405e1f6d144441b889acd3b6405fdcc3cdfd72
7474
refs/tags/v0.23.1: 30bcf8076ef9d71cc5a858d026cb907bb0954bec
7575
refs/tags/v0.24.0: b3cf61898d9c63d028fe088c14486721318d5fd5
76-
refs/heads/snehashah-bugfix: 454eaa278c10681f9950ca29d9c857b278ad0e01
76+
refs/heads/snehashah-bugfix: ff8130f6357d303e4ee0bf5ab00941947f6ad3f0

branches/snehashah-bugfix/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
@@ -66,7 +66,6 @@
6666
import java.net.URL;
6767
import java.nio.ByteBuffer;
6868
import java.nio.file.Path;
69-
import java.nio.file.Paths;
7069
import java.util.HashMap;
7170
import java.util.LinkedList;
7271
import java.util.List;
@@ -1101,7 +1100,8 @@ public Bucket getRequesterPaysStatus(String bucketName) throws StorageException
11011100
// The name of the bucket to retrieve requester-pays status, eg. "my-bucket"
11021101
// String bucketName = "my-bucket"
11031102
// Retrieve the bucket, throws StorageException on failure
1104-
Bucket bucket = storage.get(bucketName);
1103+
Bucket bucket = storage.get(bucketName,
1104+
Storage.BucketGetOption.fields(BucketField.BILLING));
11051105

11061106
System.out.println("Requester pays status : " + bucket.requesterPays());
11071107
// [END get_requester_pays_status]

0 commit comments

Comments
 (0)