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.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 Boolean
Allow opendal to send requests without signing when credentials are not loaded.final @NonNull String
bucket namefinal String
Credentials string for GCS service OAuth2 authentication.final String
Local path to credentials file for GCS service OAuth2 authentication.final String
The default storage class used by gcs.final Boolean
Disable loading configuration from the environment.final Boolean
Disable attempting to load credentials from the GCE metadata server when running within Google Cloud.final String
endpoint URI of GCS service, default ishttps://storage.googleapis.com
final String
The predefined acl for GCS.final String
root URI, all operations happens underroot
final String
Scope for gcs.final String
Service Account for gcs.final String
A Google Cloud OAuth2 token. -
Constructor Summary
-
Method Summary
-
Field Details
-
bucket
bucket name
-
root
root URI, all operations happens under
root
-
endpoint
endpoint URI of GCS service, default is
https://storage.googleapis.com
-
scope
Scope for gcs.
-
serviceAccount
Service Account for gcs.
-
credential
Credentials string for GCS service OAuth2 authentication.
-
credentialPath
Local path to credentials file for GCS service OAuth2 authentication.
-
predefinedAcl
The predefined acl for GCS.
-
defaultStorageClass
The default storage class used by gcs.
-
allowAnonymous
Allow opendal to send requests without signing when credentials are not loaded.
-
disableVmMetadata
Disable attempting to load credentials from the GCE metadata server when running within Google Cloud.
-
disableConfigLoad
Disable loading configuration from the environment.
-
token
A Google Cloud OAuth2 token.
Takes precedence over
credential
andcredential_path
.
-
-
Constructor Details
-
Gcs
public Gcs()
-
-
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
-