radiens_data_catalog.auth
Service account authentication for the Google Drive API.
| FUNCTION | DESCRIPTION |
|---|---|
build_drive_service |
Build an authenticated Google Drive API service client. |
Functions
build_drive_service
build_drive_service(
credentials_path: str, *, scopes: list[str] = READ_SCOPES
) -> DriveService
Build an authenticated Google Drive API service client.
Uses a service account credentials file for authentication. The Drive folders you want to access must be shared with the service account email found in the credentials JSON.
| PARAMETER | DESCRIPTION |
|---|---|
credentials_path
|
Path to the Google service account credentials JSON file.
TYPE:
|
scopes
|
OAuth scopes to request. |
| RETURNS | DESCRIPTION |
|---|---|
DriveService
|
An authenticated Drive API service object. |