Skip to content

Fix requester pays issues: #2392, #2391 and #2439.#2464

Merged
vam-google merged 2 commits intogoogleapis:masterfrom
vam-google:requester_pays
Sep 27, 2017
Merged

Fix requester pays issues: #2392, #2391 and #2439.#2464
vam-google merged 2 commits intogoogleapis:masterfrom
vam-google:requester_pays

Conversation

@vam-google
Copy link
Copy Markdown
Contributor

@vam-google vam-google commented Sep 26, 2017

Fixes for #2392, #2391 and #2439

To get requesterPays info on a bucket:

Bucket bucket = storage.get(bucketName, Storage.BucketGetOption.fields(BucketField.BILLING));

To download a bucket

blob.downloadTo(destFilePath, Blob.BlobSourceOption.userProject(projectId));

or directly use Blob.reader(BlobSourceOption... options) method.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 26, 2017
@vam-google
Copy link
Copy Markdown
Contributor Author

vam-google commented Sep 26, 2017

Fixed the BucketTest, left ITStorageTest untouched as we discussed.
Note, requesterPays() will still return null if it is set to null on server (i.e. even if we request a bucket with BucketField.BILLING option specified, but on server it is set to null, the client will return null, not false) . In such cases null essentially has same meaning as false, but client still returns null to stay consistent and provide accurate information about data returned from server.

@vam-google
Copy link
Copy Markdown
Contributor Author

PTAL

@jabubake
Copy link
Copy Markdown
Contributor

LGTM

@vam-google vam-google merged commit 8f77925 into googleapis:master Sep 27, 2017
@frankyn
Copy link
Copy Markdown
Contributor

frankyn commented Sep 27, 2017

Thanks for picking this up! +1 LGTM.

chingor13 pushed a commit that referenced this pull request Feb 20, 2026
* chore: include recommended_package in repo-metadata.json

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants