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: 400Invalidstringvalue: 'public-read'. Allowedvalues: [authenticatedread, bucketownerfullcontrol, bucketownerread, private, projectprivate, publicread]
>>>blob.acl.save_predefined('publicread')
...
ValueError: InvalidpredefinedACL: publicreadCoincidentally, the tests only try private.
From the documentation.
Let's try.
Coincidentally, the tests only try private.