talkiq / gcloud-aio

(Asyncio OR Threadsafe) Google Cloud Client Library for Python
https://talkiq.github.io/gcloud-aio
264 stars 90 forks source link

How to specify the storage class? #763

Open rzvoncek opened 4 weeks ago

rzvoncek commented 4 weeks ago

Hello.

GCP supports storage classes.

In our Cassandra backup tool, we use your library to interact with GCP, and we'd like to allow users to specify what storage class they want to make their backup with.

However, I'm unable to make this work. I've tried several things already:

Could you perhaps help me somehow to work this out?

A final note; I'm aware that GCS storage have the auto-class feature where any new object would be created with the given class by default. However, other cloud providers don't have this (I think) and we still have to specify the class per each object. It'd be nice to stay consistent in our tool regardless of the storage provider.

edit: I've also tried this header and it didn't help

edit2: I've also looked at the reference for the json api and that doesn't seem to work either.