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-01 UTC."],[[["This webpage provides access to documentation for various versions of the `UserProject` structure within the Google Cloud Storage C++ library, ranging from version 2.11.0 to the latest release candidate 2.37.0-rc."],["The `UserProject` structure is used to specify the billing project for operations on \"requester pays\" Google Cloud Storage Buckets, allowing the requester to be charged instead of the Bucket's owner."],["Using `UserProject` requires the caller to have the necessary permissions in the designated billing project, otherwise, operations will fail."],["The document provides a static function called `well_known_parameter_name()`, which is used to retrieve parameter name information."],["Detailed information about the \"requester pays\" feature, associated charges, and required permissions can be found at the provided link to the Google Cloud Storage documentation."]]],[]]