Let me know if I'm doing this wrong but for the docs PR #1905 I'm trying to grant cloud-logs@google.com owner permissions on a bucket but it throws an InvalidArgument HTTP 400 error when I try to save it.
from gcloud import storage
client = storage.Client()
bucket = client.get_bucket('my-bucket-name')
acl = bucket.acl
acl.user('cloud-logs@google.com').grant_owner()
acl.save()
Traceback:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "gcloud/storage/acl.py", line 464, in save
self._save(acl, None, client)
File "gcloud/storage/acl.py", line 440, in _save
query_params=query_params)
File "gcloud/connection.py", line 344, in api_request
error_info=method + ' ' + url)
gcloud.exceptions.BadRequest: 400 Invalid argument. (PATCH https://www.googleapis.com/storage/v1/b/ferrous-arena-my-test-bucket?projection=full)
Did I do it wrong somehow?
I'm looking into the API call deeper to find out, but I wanted to make sure I didn't miss a step.
Let me know if I'm doing this wrong but for the docs PR #1905 I'm trying to grant
cloud-logs@google.comowner permissions on a bucket but it throws anInvalidArgumentHTTP 400 error when I try to save it.Traceback:
Did I do it wrong somehow?
I'm looking into the API call deeper to find out, but I wanted to make sure I didn't miss a step.