Package org.apache.opendal
Class ServiceConfig.Gcs
java.lang.Object
org.apache.opendal.ServiceConfig.Gcs
- All Implemented Interfaces:
ServiceConfig
- Enclosing interface:
- ServiceConfig
Configuration for service gcs.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.opendal.ServiceConfig
ServiceConfig.AliyunDrive, ServiceConfig.Alluxio, 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.Ipfs, ServiceConfig.Ipmfs, ServiceConfig.Koofr, ServiceConfig.Lakefs, ServiceConfig.Memcached, ServiceConfig.Memory, ServiceConfig.MiniMoka, ServiceConfig.Moka, ServiceConfig.Mongodb, ServiceConfig.Monoiofs, ServiceConfig.Mysql, 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 BooleanAllow opendal to send requests without signing when credentials are not loaded.final @NonNull Stringbucket namefinal StringCredentials string for GCS service OAuth2 authentication.final StringLocal path to credentials file for GCS service OAuth2 authentication.final StringThe default storage class used by gcs.final BooleanDisable loading configuration from the environment.final BooleanDisable attempting to load credentials from the GCE metadata server when running within Google Cloud.final Stringendpoint URI of GCS service, default ishttps://storage.googleapis.comfinal StringThe predefined acl for GCS.final Stringroot URI, all operations happens underrootfinal StringScope for gcs.final StringService Account for gcs.final StringA Google Cloud OAuth2 token. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
allowAnonymous
Allow opendal to send requests without signing when credentials are not loaded.
-
bucket
bucket name
-
credential
Credentials string for GCS service OAuth2 authentication.
-
credentialPath
Local path to credentials file for GCS service OAuth2 authentication.
-
defaultStorageClass
The default storage class used by gcs.
-
disableConfigLoad
Disable loading configuration from the environment.
-
disableVmMetadata
Disable attempting to load credentials from the GCE metadata server when running within Google Cloud.
-
endpoint
endpoint URI of GCS service, default is
https://storage.googleapis.com -
predefinedAcl
The predefined acl for GCS.
-
root
root URI, all operations happens under
root -
scope
Scope for gcs.
-
serviceAccount
Service Account for gcs.
-
token
A Google Cloud OAuth2 token.
Takes precedence over
credentialandcredential_path.
-
-
Constructor Details
-
Gcs
public Gcs()
-
-
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
-