5 configuration options · available in Rust, Python, Node.js, Java
use opendal::Operator;
let op = Operator::via_iter("gdrive", [
])?;
use opendal::Operator;
let op = Operator::via_iter("gdrive", [
// The root for gdrive
// ("root".to_string(), "...".to_string()),
// Access token for gdrive.
// ("access_token".to_string(), "...".to_string()),
// Refresh token for gdrive.
// ("refresh_token".to_string(), "...".to_string()),
// Client id for gdrive.
// ("client_id".to_string(), "...".to_string()),
// Client secret for gdrive.
// ("client_secret".to_string(), "...".to_string()),
])?;
Every option is passed as a string key; OpenDAL parses it into the right type. Some services may require building the binding with the matching services-* feature enabled.
| Key | Type | Required | Description |
|---|---|---|---|
root | string | no | The root for gdrive |
access_token | string | no | Access token for gdrive. |
refresh_token | string | no | Refresh token for gdrive. |
client_id | string | no | Client id for gdrive. |
client_secret | string | no | Client secret for gdrive. |