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.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.Memcached, ServiceConfig.Memory, ServiceConfig.MiniMoka, ServiceConfig.Moka, ServiceConfig.Mongodb, ServiceConfig.Monoiofs, ServiceConfig.Mysql, ServiceConfig.NebulaGraph, ServiceConfig.Obs, ServiceConfig.Onedrive, ServiceConfig.Opfs, ServiceConfig.Oss, ServiceConfig.Pcloud, ServiceConfig.Persy, ServiceConfig.Postgresql, ServiceConfig.Redb, ServiceConfig.Redis, ServiceConfig.S3, ServiceConfig.Seafile, ServiceConfig.Sftp, ServiceConfig.Sled, ServiceConfig.Sqlite, ServiceConfig.Surrealdb, ServiceConfig.Swift, ServiceConfig.Upyun, ServiceConfig.VercelArtifacts, ServiceConfig.VercelBlob, ServiceConfig.Webdav, ServiceConfig.Webhdfs, ServiceConfig.YandexDisk -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringAccess key id for oss.final StringAccess key secret for oss.final BooleanAllow anonymous for oss.final LongDeprecated.Please use `delete_max_size` instead of `batch_max_operations`final @NonNull StringBucket for oss.final LongThe size of max delete operations.final Booleanis bucket versioning enabled for this bucketfinal StringEndpoint for oss.final Stringoidc_provider_arnwill be loaded fromfinal Stringoidc_token_filewill be loaded fromfinal StringPresign endpoint for oss.final StringIfrole_arnis set, we will use already known config as source credential to assume role withrole_arn.final Stringrole_session_name for this backend.final StringRoot for oss.final StringServer side encryption for oss.final StringServer side encryption key id for oss.final Stringsts_endpointwill be loaded from -
Constructor Summary
Constructors -
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_arnis 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_arnwill 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_filewill be loaded from- this field if it's
is_some - env value: [
ALIBABA_CLOUD_OIDC_TOKEN_FILE]
- this field if it's
-
stsEndpoint
sts_endpointwill 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:ServiceConfigThe scheme of the service.- Specified by:
schemein interfaceServiceConfig- Returns:
- the scheme
-
configMap
Description copied from interface:ServiceConfigConvert the structured config to a type erased config map.- Specified by:
configMapin interfaceServiceConfig- Returns:
- the config map
-