I need some examples. My build step works fine but i do not know how to upload Python folders to google drive.
Have you looked into the tools or APIs you want to use to communicate with Drive? What’s the specific problem you’re stuck on?
@benlaverriere
Well yes,but still not sure about the credentials.
example from their site
creds, _ = google.auth.default()
what are the creds?
Can you link to where you found that example? Out of context, I can’t say anything about what that one line of code means.
Thanks for the link! It looks like that line of code comes from the “multipart upload” section. Does the “simple upload” method not work for your needs? It seems a lot simpler to implement.
But if you do need to use a multipart upload, the code you linked seems to be using Python’s destructuring syntax to capture one piece of data returned by the google.auth
library’s default()
method. I’d recommend finding the docs on that auth
library to understand what default()
returns, and then reviewing the sample code you linked to see how that creds
variable gets used.
Your project seems more like a question about how to use Google’s APIs, rather than about how to use Circle, so you might find someone with more expertise in a Google Developer forum or something like that. I’m happy to take my best guess but I don’t have specific experience here
No,I have problem with authentication.
AccessDeniedException: 403 The billing account for the owning project is disabled in state closed
Where can I check my credentials?
Yes,that is true I Have problem with Google’s APIs.
In particular, working with the gsuite / workspace APIs can be a bit of a challenge.
But in practical terms, you likely want to either setup auth with OIDC (generally preferred / safest) and use that to generate a credential file (you can google "gcp circleci oidc if you want to find examples of that), or create a service account and use a JSON credential. Getting the appropriate permissions from a Google Cloud service account mapped to Google Workspace may be a little tricky. You’re probably going to need a separate project and some permissions to handle that.
I would try to get whatever you’re trying to do working locally first. In both cases, reading this article may be a good idea if you haven’t read it before:
Maybe also take a look at this article
If gcs is a viable alternative, you can use gsutil
to copy files, which there are probably some easier / better examples for.