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
Allow supplying custom metadata to a blob data to specify things such as the content-type or encryption key while uploading files to Google Cloud Storage
Problem description
Allow supplying custom metadata to a blob data to specify things such as the content-type or encryption key while uploading files to Google Cloud Storage
Implementation
Create an additional parameter,
metadata
, to pass tosmart_open.gcs.open
that takes in an dictionary to use when uploading a file. This should get applied to the underlyinggoogle.cloud.storage.blob.Blob.metadata
(https://googleapis.dev/python/storage/latest/blobs.html#google.cloud.storage.blob.Blob.metadata)EDIT: Generalized from encryption keys to any arbitrary metadata available on Google Cloud Storage
The text was updated successfully, but these errors were encountered: