From the documentation.
Must be one of the keys in _PREDEFINED_ACLS
_PREDEFINED_ACLS = frozenset([
"private",
"project-private",
"public-read",
"public-read-write",
"authenticated-read",
"bucket-owner-read",
"bucket-owner-full-control",
])
Let's try.
>>> blob.acl.save_predefined('public-read')
...
gcloud.exceptions.BadRequest: 400 Invalid string value: 'public-read'. Allowed values: [authenticatedread, bucketownerfullcontrol, bucketownerread, private, projectprivate, publicread]
>>> blob.acl.save_predefined('publicread')
...
ValueError: Invalid predefined ACL: publicread
Coincidentally, the tests only try private.
From the documentation.
Let's try.
Coincidentally, the tests only try private.