Re-enable 'Bucket.requester_pays' feature by tseaver · Pull Request #4056 · googleapis/google-cloud-python

@tseaver added api: storage

Issues related to the Cloud Storage API.

do not merge

Indicates a pull request not ready for merge, due to either quality or timing.

type: feature request

‘Nice-to-have’ improvement, new feature or different behavior or design.

labels

Sep 25, 2017

@googlebot googlebot added the cla: yes

This human has signed the Contributor License Agreement.

label

Sep 25, 2017

@tseaver tseaver removed the do not merge

Indicates a pull request not ready for merge, due to either quality or timing.

label

Oct 5, 2017
Also, add 'requester_pays' argument to 'Client.create_bucket'.

Add a system test which exercises the feature.

Note that the new system test is skipped, because 'Buckets.insert' fails
with the 'billing/requesterPays' field set, both in our system tests and
in the 'Try It!' form in the docs.

Toward #3474.
* Add abstract '_PropertyMixin.user_project' property.

* Support 'user_project' in '_PropertyMixin.{reload,patch}'.

* Add 'user_project' param to 'Bucket.__init__'.

* Save and expose via read-only 'user_project' property.

* Implement 'Blob.user_property' via bucket's value.
* Block 'Bucket.create' if 'user_project' set:  the API does not accept that parameter.

@tseaver

@tseaver

@tseaver

Back-end used to reject it, but now allows it.

@tseaver

…ct' set (#4084)

* Pass through extra posargs for system tests.

* Plumb 'user_project' arg through 'Client.bucket'.

@tseaver

@tseaver

@tseaver

@tseaver

@tseaver

@tseaver

@tseaver

Test 'Blob.rewrite' w/ 'user_project' set.

@tseaver tseaver deleted the storage-requester_pays-feature branch

October 12, 2017 14:43

parthea pushed a commit that referenced this pull request

Mar 9, 2026
* Add '{Bucket,Blob}.user_project' properties, and pass the corresponding
  'userProject' query parameter in API requests.

Closes #3474.