Package org.apache.opendal
Class ServiceConfig.AliyunDrive
java.lang.Object
org.apache.opendal.ServiceConfig.AliyunDrive
- All Implemented Interfaces:
ServiceConfig
- Enclosing interface:
- ServiceConfig
Configuration for service aliyun_drive.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.opendal.ServiceConfig
ServiceConfig.AliyunDrive, ServiceConfig.Alluxio, ServiceConfig.Atomicserver, ServiceConfig.Azblob, ServiceConfig.Azdls, ServiceConfig.Azfile, ServiceConfig.B2, ServiceConfig.Cacache, ServiceConfig.Chainsafe, ServiceConfig.CloudflareKv, ServiceConfig.Compfs, ServiceConfig.Cos, ServiceConfig.D1, ServiceConfig.Dashmap, ServiceConfig.Dbfs, ServiceConfig.Dropbox, ServiceConfig.Etcd, ServiceConfig.Fs, ServiceConfig.Gcs, ServiceConfig.Gdrive, ServiceConfig.Ghac, ServiceConfig.Github, ServiceConfig.Gridfs, ServiceConfig.HdfsNative, ServiceConfig.Http, ServiceConfig.Huggingface, ServiceConfig.Icloud, ServiceConfig.Ipfs, ServiceConfig.Ipmfs, ServiceConfig.Koofr, ServiceConfig.Lakefs, ServiceConfig.Libsql, ServiceConfig.Memcached, ServiceConfig.Memory, ServiceConfig.MiniMoka, ServiceConfig.Moka, ServiceConfig.Mongodb, ServiceConfig.Monoiofs, ServiceConfig.Mysql, ServiceConfig.NebulaGraph, ServiceConfig.Obs, ServiceConfig.Onedrive, ServiceConfig.Oss, ServiceConfig.Pcloud, ServiceConfig.Persy, ServiceConfig.Postgresql, ServiceConfig.Redb, ServiceConfig.Redis, ServiceConfig.S3, ServiceConfig.Seafile, ServiceConfig.Sftp, ServiceConfig.Sled, ServiceConfig.Sqlite, ServiceConfig.Supabase, ServiceConfig.Surrealdb, ServiceConfig.Swift, ServiceConfig.Upyun, ServiceConfig.VercelArtifacts, ServiceConfig.VercelBlob, ServiceConfig.Webdav, ServiceConfig.Webhdfs, ServiceConfig.YandexDisk
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
The access_token of this backend.final String
The client_id of this backend.final String
The client_secret of this backend.final @NonNull String
The drive_type of this backend.final String
The refresh_token of this backend.final String
The Root of this backend. -
Constructor Summary
-
Method Summary
-
Field Details
-
driveType
The drive_type of this backend.
All operations will happen under this type of drive.
Available values are
default
,backup
andresource
.Fallback to default if not set or no other drives can be found.
-
root
The Root of this backend.
All operations will happen under this root.
Default to
/
if not set. -
accessToken
The access_token of this backend.
Solution for client-only purpose. #4733
Required if no client_id, client_secret and refresh_token are provided.
-
clientId
The client_id of this backend.
Required if no access_token is provided.
-
clientSecret
The client_secret of this backend.
Required if no access_token is provided.
-
refreshToken
The refresh_token of this backend.
Required if no access_token is provided.
-
-
Constructor Details
-
AliyunDrive
public AliyunDrive()
-
-
Method Details
-
scheme
Description copied from interface:ServiceConfig
The scheme of the service.- Specified by:
scheme
in interfaceServiceConfig
- Returns:
- the scheme
-
configMap
Description copied from interface:ServiceConfig
Convert the structured config to a type erased config map.- Specified by:
configMap
in interfaceServiceConfig
- Returns:
- the config map
-