In this repository, you will see my practice solution that accomplishes 3 main tasks. The goal was to integrate with GCP (specifically the consumer Drive APIs) to evalute a source directory and copy the content to a destination.
pip3 install virtualenv
virtualenv nfxi-ta
source nfxi-ta/bin/activate
nfxi-ta/bin/pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib
Follow the steps on this page to setup your authentication.
You will need to setup the below scopes at a minimum (least privileged revision to come).
Rename your project OAuth credential file to credentials.json
and place it inside of the local
directory.
- Offload secrets into env vars from JSON or offload secrets to a key vault
Key | Description | Default |
---|---|---|
loggingLevel | Set the level of logging in the script such that
|
1 |
sourceFolderID | The folder ID for the source directory | Null |
destinationFolderID | The folder ID for the destination directory | Null |
scopes | An array of Google API scopes | https://www.googleapis.com/auth/drive |