Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add system test of updating/deleting bucket labels. #3715

Merged
merged 3 commits into from
Aug 7, 2017
Merged

Add system test of updating/deleting bucket labels. #3715

merged 3 commits into from
Aug 7, 2017

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Aug 1, 2017

Uses #3714 as a base.

Note that the test uses the new Bucket.update method, rather than Bucket.patch, because patch semantics might require that we remember deleted labels (in order to pass null as their value).

Closes #3711

Turns out some properties (i.e., 'labels', see #3711) behave differently
under 'patch semantics'[1], which makes 'update' useful.

[1] https://cloud.google.com/storage/docs/json_api/v1/how-tos/performance#patch
Note that the test uses the new 'Bucket.update' method, rather than
'Bucket.patch', because patch semantics would require that we remember
deleted labels (in order to pass 'null' as their value).

Closes #7311
Show using 'bucket.update()' to avoid running into patch semantics.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 1, 2017
@tseaver tseaver added api: storage Issues related to the Cloud Storage API. docs testing labels Aug 1, 2017
@tseaver tseaver merged commit ac1b23b into googleapis:master Aug 7, 2017
@tseaver tseaver deleted the 3711-storage-delete-bucket-labels branch August 7, 2017 16:11
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 21, 2017
…is#3715)

Turns out some properties (i.e., 'labels', see googleapis#3711) behave differently under 'patch semantics'[1], which makes 'update' useful.

[1] https://cloud.google.com/storage/docs/json_api/v1/how-tos/performance#patch

Closes googleapis#7311
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
…is#3715)

Turns out some properties (i.e., 'labels', see googleapis#3711) behave differently under 'patch semantics'[1], which makes 'update' useful.

[1] https://cloud.google.com/storage/docs/json_api/v1/how-tos/performance#patch

Closes googleapis#7311
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
…is#3715)

Turns out some properties (i.e., 'labels', see googleapis#3711) behave differently under 'patch semantics'[1], which makes 'update' useful.

[1] https://cloud.google.com/storage/docs/json_api/v1/how-tos/performance#patch

Closes googleapis#7311
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement. testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants