Class ServiceConfig.Obs

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

public static class ServiceConfig.Obs extends Object implements ServiceConfig
Configuration for service obs.
  • Field Details

    • accessKeyId

      public final String accessKeyId

      Access key id for obs.

    • bucket

      public final String bucket

      Bucket for obs.

    • disableConfigLoad

      public final Boolean disableConfigLoad

      Disable config load so that opendal will not load config from environment.

      For examples:

      • envs like HUAWEI_CLOUD_ACCESS_KEY_ID
    • enableVersioning

      public final Boolean 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

      public final String endpoint

      Endpoint for obs.

    • root

      public final String root

      Root for obs.

    • secretAccessKey

      public final String secretAccessKey

      Secret access key for obs.

    • securityToken

      public final String securityToken

      Security token (a.k.a. session token) for obs.

      Temporary credentials sign with access_key_id, secret_access_key and this token, and the signer attaches the token as the x-obs-security-token header.

      If this field is not set, OpenDAL reads the token from the environment variable HUAWEI_CLOUD_SECURITY_TOKEN (unless disable_config_load is enabled).

    • skipSignature

      public final Boolean skipSignature

      Skip signature will skip loading credentials and signing requests.

  • Constructor Details

    • Obs

      public Obs()
  • 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