File tree Expand file tree Collapse file tree
google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6666import java .net .URL ;
6767import java .nio .ByteBuffer ;
6868import java .nio .file .Path ;
69- import java .nio .file .Paths ;
7069import java .util .HashMap ;
7170import java .util .LinkedList ;
7271import 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]
You can’t perform that action at this time.
0 commit comments