Skip to content

Re-enable 'Bucket.requester_pays' feature - #4056

Merged
tseaver merged 17 commits into
masterfrom
storage-requester_pays-feature
Oct 12, 2017
Merged

Re-enable 'Bucket.requester_pays' feature#4056
tseaver merged 17 commits into
masterfrom
storage-requester_pays-feature

Conversation

@tseaver

Copy link
Copy Markdown
Contributor

Closes#3474.

Needs extra system tests which pass user_project to the various APIs which take it, in the context of a bucket which is created with requester_pays enabled.

@tseavertseaver 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
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 25, 2017
@dhermes

Copy link
Copy Markdown
Contributor

@tseaver How much of this has been reviewed and how much is new? (Sorry if that is a question I should know the answer to.)

@tseaver

Copy link
Copy Markdown
ContributorAuthor

@dhermes This was all reviewed back in June: I just re-built the branch because the reversion made it hard to see what would be landed this time.

@dhermes

Copy link
Copy Markdown
Contributor

@tseaver Great. So no review needed?

@tseaver

Copy link
Copy Markdown
ContributorAuthor

@dhermes Not until we resolve whether / how we will implement the additional system tests.

@tseaver
tseaverforce-pushed the storage-requester_pays-feature branch 2 times, most recently from d34dfe5 to ec34758CompareOctober 5, 2017 17:29
@tseaver

Copy link
Copy Markdown
ContributorAuthor

@lukesneeringer I believe that this branch is ready to merge to master. Two open issues:

@tseavertseaver removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Oct 5, 2017
@tseaver

tseaver commented Oct 5, 2017

Copy link
Copy Markdown
ContributorAuthor

Unrelated AppVeyor failure (see #4128).

@tseaver

Copy link
Copy Markdown
ContributorAuthor

@lukesneeringer AFAIK, this branch is ready to merge.

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.
Back-end used to reject it, but now allows it.
…ct' set (#4084)
* Pass through extra posargs for system tests.
* Plumb 'user_project' arg through 'Client.bucket'.
@tseaver
tseaverforce-pushed the storage-requester_pays-feature branch from 41fca6f to b0e1c96CompareOctober 10, 2017 21:19
@tseaver
tseaver merged commit aeb4cd4 into masterOct 12, 2017
@tseaver
tseaver deleted the storage-requester_pays-feature branch October 12, 2017 14:43
@tseavertseaver mentioned this pull request Oct 16, 2017
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.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storageIssues related to the Cloud Storage API.cla: yesThis human has signed the Contributor License Agreement.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@tseaver@dhermes@googlebot