For a client I’ve pieced together a small example program that will upload a file from your local host to a GCP bucket and download it again, saving it as a copy of the original.
The code uses explicit authentication. For this to work, you will need a JSON format key file from your GCP account.
The code is available here: https://gist.github.com/henrikj242/af06ac41fc9554dab387c0bb3a994f85