I am using the googlecloudstorageclient for manipulating files in a bucket. The bucket is not and should not be public readable, but I need to set public-read ({'x-goog-acl': 'public-read'}) for single files via python code.
How can I programmatically in python change the ACL or metadata on an existing GCS-file to public-read or remove that?
I tried copy2(), but it resets the content-type to binary/octet-stream if I pass in permissions.
https://cloud.google.com/appengine/docs/python/googlecloudstorageclient/functions