Google cloud upload dynamic path

Hi, I’m using the google-cloud-storage plugin to save my files into the cloud. I would like to organize them in folder etc. And for that I would like to be able to change the path of each uploaded file depending from where it gets uploaded (the parent model, basically). How can I tap into the lifecycle for example to do that? Or is there a better way for me to actually do this?

Thx