Skip to content

Enable setting 'Blob.storage_class' before upload #3062

@tseaver

Description

@tseaver

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 passing storage_class to Blob.__init__, or b) add a "setter" for the storage_class property (it would need to reject setting values for already-created blobs). We would then need to ensure that the storageClass field was set appropriately in the property mapping sent with the upload.

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.status: blockedResolving the issue is dependent on other work.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions