FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add 'Bucket.labels' property. by tseaver · Pull Request #3478 · googleapis/google-cloud-python · GitHub

Add 'Bucket.labels' property. - #3478

Merged
tseaver merged 2 commits into
googleapis:masterfrom
tseaver:3473-storage-bucket_labels
Jun 6, 2017
Merged

Add 'Bucket.labels' property.#3478
tseaver merged 2 commits into
googleapis:masterfrom
tseaver:3473-storage-bucket_labels

Conversation

tseaver commented Jun 6, 2017

Copy link
Copy Markdown
Contributor

tseaver added api: storage Issues related to the Cloud Storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Jun 6, 2017
tseaver requested review from dhermes and lukesneeringer June 6, 2017 21:19
googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 6, 2017

dhermes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM pending nits


:setter: Set labels for this bucket.
:getter: Gets the labels for this bucket.

This comment was marked as spam.

blob = self._make_one(blob_name, bucket=None)
unicode_name = u'wet \N{sailboat}'
self.assertNotEqual(blob.name, blob_name)
self.assertNotIsInstance(blob.name, bytes)

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Comment thread storage/tests/unit/test_blob.py Outdated
unicode_name = u'wet \N{sailboat}'
self.assertNotEqual(blob.name, blob_name)
self.assertNotIsInstance(blob.name, bytes)
self.assertIsInstance(blob.name, type(unicode_name))

This comment was marked as spam.

This comment was marked as spam.

Comment thread storage/tests/unit/test_bucket.py Outdated
self.assertEqual(bucket.labels, {})
bucket.labels = LABELS
self.assertEqual(bucket.labels, LABELS)
self.assertTrue('labels' in bucket._changes)

This comment was marked as spam.

This comment was marked as spam.

tseaver commented Jun 6, 2017

Copy link
Copy Markdown
Contributor Author

I will merge when CI is green.

Comment thread storage/tests/unit/test_bucket.py Outdated
self.assertEqual(bucket.labels, {})
bucket.labels = LABELS
self.assertEqual(bucket.labels, LABELS)
self.assertIsNot(bucket.labels, LABELS)

This comment was marked as spam.

This comment was marked as spam.

tseaver merged commit 179997e into googleapis:master Jun 6, 2017
tseaver deleted the 3473-storage-bucket_labels branch June 6, 2017 23:01
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 21, 2017
* Avoid UnicodeWarning reported by new py.test

* Add 'Bucket.labels' property.

See: https://cloud.google.com/storage/docs/json_api/v1/buckets#labels

Closes googleapis#3473.
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
* Avoid UnicodeWarning reported by new py.test

* Add 'Bucket.labels' property.

See: https://cloud.google.com/storage/docs/json_api/v1/buckets#labels

Closes googleapis#3473.
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
* Avoid UnicodeWarning reported by new py.test

* Add 'Bucket.labels' property.

See: https://cloud.google.com/storage/docs/json_api/v1/buckets#labels

Closes googleapis#3473.
parthea pushed a commit that referenced this pull request Oct 21, 2023
parthea pushed a commit that referenced this pull request Mar 9, 2026
* Avoid UnicodeWarning reported by new py.test

* Add 'Bucket.labels' property.

See: https://cloud.google.com/storage/docs/json_api/v1/buckets#labels

Closes #3473.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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. 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


Back | FazBrowse Home | New Git URL