Skip to content

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

tseaver added 3 commits August 1, 2017 16:41
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 requested review from dhermes and theacodes August 1, 2017 21:28
@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