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."],[[["The webpage provides documentation for the `UserProject` structure within the Google Cloud Storage C++ library, specifically detailing its use in \"requester pays\" scenarios for GCS Buckets."],["The content outlines the different library versions, starting from version 2.11.0 up to the latest release candidate 2.37.0-rc, each with links to the documentation of the `UserProject` structure for that version."],["\"Requester pays\" allows GCS Bucket owners to charge operation costs to the requester instead of the Bucket owner, and `UserProject` is used to specify the project to be charged in these instances."],["The documentation references a function called `well_known_parameter_name()` with a return type of `char const *` but does not provide any additional description for it."],["The documentation also refers to a page, linked in the content, which gives a more in-depth description of the \"requester pays\" feature, including what it charges and the exact permissions needed to be able to make use of it."]]],[]]