Skip to main content

gdrive

5 configuration options · available in Rust, Python, Node.js, Java

Quick start
use opendal::Operator;

let op = Operator::via_iter("gdrive", [
])?;
All configuration options (copy & trim)
Full reference
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.

Configuration reference

General5
KeyTypeRequiredDescription
rootstringnoThe root for gdrive
access_tokenstringnoAccess token for gdrive.
refresh_tokenstringnoRefresh token for gdrive.
client_idstringnoClient id for gdrive.
client_secretstringnoClient secret for gdrive.