Skip to content

Add .userProject() method to Blob.BlobSourceOption to allow using Requester Pays feature on Blob.reader() #2392

@jabubake

Description

@jabubake

Add support in Blob.BlobSourceOption similar to Storage.BlobSourceOption to set the billing project ID.
It will not be able to download blobs using Blob.reader() without defining this parameter when Requester Pays is enabled for a bucket.

Use case: downloading a larger blob using the Blob.reader()

Reference API discovery doc.

[Updated by @frankyn]

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions