Package org.apache.opendal
Class ServiceConfig.Oss
java.lang.Object
org.apache.opendal.ServiceConfig.Oss
- All Implemented Interfaces:
ServiceConfig
- Enclosing interface:
- ServiceConfig
Configuration for service oss.
-
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
Access key id for oss.final String
Access key secret for oss.final Boolean
Allow anonymous for oss.final Long
Deprecated.Please use `delete_max_size` instead of `batch_max_operations`final @NonNull String
Bucket for oss.final Long
The size of max delete operations.final Boolean
is bucket versioning enabled for this bucketfinal String
Endpoint for oss.final String
oidc_provider_arn
will be loaded fromfinal String
oidc_token_file
will be loaded fromfinal String
Presign endpoint for oss.final String
Ifrole_arn
is set, we will use already known config as source credential to assume role withrole_arn
.final String
role_session_name for this backend.final String
Root for oss.final String
Server side encryption for oss.final String
Server side encryption key id for oss.final String
sts_endpoint
will be loaded from -
Constructor Summary
-
Method Summary
-
Field Details
-
bucket
Bucket for oss.
-
root
Root for oss.
-
endpoint
Endpoint for oss.
-
presignEndpoint
Presign endpoint for oss.
-
enableVersioning
is bucket versioning enabled for this bucket
-
serverSideEncryption
Server side encryption for oss.
-
serverSideEncryptionKeyId
Server side encryption key id for oss.
-
allowAnonymous
Allow anonymous for oss.
-
accessKeyId
Access key id for oss.
-
accessKeySecret
Access key secret for oss.
-
batchMaxOperations
Deprecated.Please use `delete_max_size` instead of `batch_max_operations`The size of max batch operations.
-
deleteMaxSize
The size of max delete operations.
-
roleArn
If
role_arn
is set, we will use already known config as source credential to assume role withrole_arn
. -
roleSessionName
role_session_name for this backend.
-
oidcProviderArn
oidc_provider_arn
will be loaded from- this field if it's
is_some
- env value: [
ALIBABA_CLOUD_OIDC_PROVIDER_ARN
]
- this field if it's
-
oidcTokenFile
oidc_token_file
will be loaded from- this field if it's
is_some
- env value: [
ALIBABA_CLOUD_OIDC_TOKEN_FILE
]
- this field if it's
-
stsEndpoint
sts_endpoint
will be loaded from- this field if it's
is_some
- env value: [
ALIBABA_CLOUD_STS_ENDPOINT
]
- this field if it's
-
-
Constructor Details
-
Oss
public Oss()
-
-
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
-