Enable setting 'Blob.storage_class' before upload #3062
Labels
api: storage
Issues related to the Cloud Storage API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
status: blocked
Resolving the issue is dependent on other work.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
From #3051.
Because of #754, there currently is no point in allowing the user to set
storage_class
on a blob instance before uploading it: the value won't be transmitted. Once that issue is cleared, we should either: a) allow passingstorage_class
toBlob.__init__
, or b) add a "setter" for thestorage_class
property (it would need to reject setting values for already-created blobs). We would then need to ensure that thestorageClass
field was set appropriately in the property mapping sent with the upload.The text was updated successfully, but these errors were encountered: