Set the project used for billing in "requester pays" Buckets.
GCS Buckets can be configured to charge the requester of an operation for all charges, as opposed to the project that owns the Bucket. Use this parameter when accessing such Buckets to control which project is charged. Note that the caller must have the right permissions in the billed project or the operation would fail.
See Also
https://cloud.google.com/storage/docs/requester-pays for a detailed description of the requester pays features, which charges are incurred by the requester, and the exact permissions that you must have to make such a request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-02 UTC."],[[["The latest version available is 2.37.0-rc, with previous versions ranging down to 2.11.0 listed for reference, all versions referring to the google::cloud::storage::UserProject."],["This page provides documentation for the `google::cloud::storage::UserProject` structure, used for specifying the project to be billed when using \"requester pays\" buckets."],["\"Requester pays\" buckets charge the operation's requester instead of the bucket's owner, and this structure helps in controlling which project incurs these charges."],["Users must have the necessary permissions within the specified billing project for operations on \"requester pays\" buckets to succeed, as explained further in the linked documentation."],["The `well_known_parameter_name()` static function is described, although its specific return type is only stated as `char const *`."]]],[]]