Class ServiceConfig.GcsGrpc

java.lang.Object
org.apache.opendal.ServiceConfig.GcsGrpc
All Implemented Interfaces:
ServiceConfig
Enclosing interface:
ServiceConfig

public static class ServiceConfig.GcsGrpc extends Object implements ServiceConfig
Configuration for service gcs-grpc.
  • Field Details

    • bucket

      @NonNull public final @NonNull String bucket

      Bucket name.

    • credential

      public final String credential

      Base64-encoded service account credential.

    • credentialPath

      public final String credentialPath

      Path to a service account credential file.

    • disableConfigLoad

      public final Boolean disableConfigLoad

      Disable environment and well-known credential loading.

    • disableVmMetadata

      public final Boolean disableVmMetadata

      Disable the GCE metadata credential provider.

    • endpoint

      public final String endpoint

      gRPC endpoint.

    • root

      public final String root

      Root path for all operations.

    • scope

      public final String scope

      OAuth 2.0 scope.

    • serviceAccount

      public final String serviceAccount

      Service account used by the GCE metadata server.

    • skipSignature

      public final Boolean skipSignature

      Send requests without authentication.

    • token

      public final String token

      OAuth 2.0 access token.

  • Constructor Details

    • GcsGrpc

      public GcsGrpc()
  • Method Details

    • scheme

      public String scheme()
      Description copied from interface: ServiceConfig
      The scheme of the service.
      Specified by:
      scheme in interface ServiceConfig
      Returns:
      the scheme
    • configMap

      public Map<String,String> configMap()
      Description copied from interface: ServiceConfig
      Convert 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:
      configMap in interface ServiceConfig
      Returns:
      the config map