Skip to content

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

Merged
tseaver merged 3 commits into
googleapis:masterfrom
tseaver:3711-storage-delete-bucket-labels
Aug 7, 2017
Merged

Add system test of updating/deleting bucket labels.#3715
tseaver merged 3 commits into
googleapis:masterfrom
tseaver:3711-storage-delete-bucket-labels

Conversation

@tseaver

@tseavertseaver commented Aug 1, 2017

Copy link
Copy Markdown
Contributor

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.
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 1, 2017
@tseavertseaver added api: storage Issues related to the Cloud Storage API. docs testing labels Aug 1, 2017
@tseaver
tseaver merged commit ac1b23b into googleapis:masterAug 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#patchClosesgoogleapis#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#patchClosesgoogleapis#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#patchClosesgoogleapis#7311
parthea pushed a commit that referenced this pull request Mar 9, 2026
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#patchCloses#7311
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.testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@tseaver@lukesneeringer@googlebot