You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, I am unable to retrieve any metadata for a blob using this script:
from google.cloud import storage
storage_client = storage.Client()
bucket = storage_client.bucket("best bucket")
blob = bucket.get_blob("sweetest blob") # has metadata visible in the UI
metadata = blob.metadata # is none
Maybe it helps: the blob does not have the fixed metadata (content_type) either. This makes me wonder, if there is something similar to the .patch() thing going on. E.g. that another call to the object is necessary to load the metadata.
The existing answers are for patching or setting metadata. I have looked at your discussion and stackoverflow.
Regarding viewing there is one unresolved stackoverflow question.
Help is greatly appreciated!
The text was updated successfully, but these errors were encountered:
Unfortunately, I am unable to retrieve any metadata for a blob using this script:
Maybe it helps: the blob does not have the fixed metadata (content_type) either. This makes me wonder, if there is something similar to the
.patch()
thing going on. E.g. that another call to the object is necessary to load the metadata.The existing answers are for patching or setting metadata. I have looked at your discussion and stackoverflow.
Regarding viewing there is one unresolved stackoverflow question.
Help is greatly appreciated!
The text was updated successfully, but these errors were encountered: