Class ServiceConfig.Obs
- All Implemented Interfaces:
ServiceConfig
- Enclosing interface:
ServiceConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServiceConfig
ServiceConfig.Akamai, ServiceConfig.AliyunDrive, ServiceConfig.Azblob, ServiceConfig.Azdls, ServiceConfig.Azfile, ServiceConfig.B2, ServiceConfig.B2S3, ServiceConfig.BaiduNetdisk, ServiceConfig.Cacache, ServiceConfig.CephRgw, ServiceConfig.CloudflareKv, ServiceConfig.Compfs, ServiceConfig.Cos, ServiceConfig.CosS3, ServiceConfig.D1, ServiceConfig.Dashmap, ServiceConfig.Dbfs, ServiceConfig.Dropbox, ServiceConfig.Etcd, ServiceConfig.Exoscale, ServiceConfig.Foyer, ServiceConfig.Fs, ServiceConfig.Garage, ServiceConfig.Gcs, ServiceConfig.GcsGrpc, ServiceConfig.GcsS3, ServiceConfig.Gdrive, ServiceConfig.Ghac, ServiceConfig.Github, ServiceConfig.Goosefs, ServiceConfig.Gridfs, ServiceConfig.HdfsNative, ServiceConfig.Hetzner, ServiceConfig.Hf, ServiceConfig.Http, ServiceConfig.IbmCos, ServiceConfig.IdriveE2, ServiceConfig.Ionos, ServiceConfig.Ipfs, ServiceConfig.Ipmfs, ServiceConfig.Koofr, ServiceConfig.Lakefs, ServiceConfig.LakefsS3, ServiceConfig.Memcached, ServiceConfig.Memory, ServiceConfig.MiniMoka, ServiceConfig.Minio, ServiceConfig.Moka, ServiceConfig.Mongodb, ServiceConfig.Monoiofs, ServiceConfig.Mysql, ServiceConfig.Neon, ServiceConfig.Obs, ServiceConfig.ObsS3, ServiceConfig.Oci, ServiceConfig.Onedrive, ServiceConfig.Opfs, ServiceConfig.Oss, ServiceConfig.OssS3, ServiceConfig.Ovhcloud, ServiceConfig.Pcloud, ServiceConfig.Persy, ServiceConfig.Postgresql, ServiceConfig.Qingstor, ServiceConfig.R2, ServiceConfig.Redb, ServiceConfig.Redis, ServiceConfig.Rustfs, ServiceConfig.S3, ServiceConfig.Scaleway, ServiceConfig.Seafile, ServiceConfig.Seaweedfs, ServiceConfig.Sftp, ServiceConfig.Sled, ServiceConfig.Spaces, ServiceConfig.Sqlite, ServiceConfig.Storj, ServiceConfig.Supabase, ServiceConfig.Surrealdb, ServiceConfig.Swift, ServiceConfig.SwiftS3api, ServiceConfig.Tigris, ServiceConfig.Tos, ServiceConfig.TosS3, ServiceConfig.Upyun, ServiceConfig.VercelArtifacts, ServiceConfig.VercelBlob, ServiceConfig.Wasabi, ServiceConfig.Webdav, ServiceConfig.Webhdfs, ServiceConfig.YandexDisk -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringAccess key id for obs.final StringBucket for obs.final BooleanDisable config load so that opendal will not load config from environment.final BooleanDeprecated.OBS versioning capability is not controlled by this option and this option is no longer needed.final StringEndpoint for obs.final StringRoot for obs.final StringSecret access key for obs.final StringSecurity token (a.k.a.final BooleanSkip signature will skip loading credentials and signing requests. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
accessKeyId
Access key id for obs.
-
bucket
Bucket for obs.
-
disableConfigLoad
Disable config load so that opendal will not load config from environment.
For examples:
- envs like
HUAWEI_CLOUD_ACCESS_KEY_ID
- envs like
-
enableVersioning
Deprecated.OBS versioning capability is not controlled by this option and this option is no longer needed.Deprecated: OBS versioning capability is not controlled by service config.
-
endpoint
Endpoint for obs.
-
root
Root for obs.
-
secretAccessKey
Secret access key for obs.
-
securityToken
Security token (a.k.a. session token) for obs.
Temporary credentials sign with
access_key_id,secret_access_keyand this token, and the signer attaches the token as thex-obs-security-tokenheader.If this field is not set, OpenDAL reads the token from the environment variable
HUAWEI_CLOUD_SECURITY_TOKEN(unlessdisable_config_loadis enabled). -
skipSignature
Skip signature will skip loading credentials and signing requests.
-
-
Constructor Details
-
Obs
public Obs()
-
-
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.A map-valued field becomes one entry, under the field's option name, whose value is a JSON object string, such as
assume_role_session_tags={"Team":"data"}. The map's entries are not flattened into top-level entries. Its keys are sorted, an empty map becomes{}, and an unset field has no entry.- Specified by:
configMapin interfaceServiceConfig- Returns:
- the config map
-