Class ServiceConfig.Tos

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

public static class ServiceConfig.Tos extends Object implements ServiceConfig
Configuration for service tos.
  • Field Details

    • accessKeyId

      public final String accessKeyId

      access_key_id of this backend.

      • If access_key_id is set, we will take user's input first.
      • If not, we will try to load it from environment.
    • bucket

      @NonNull public final @NonNull String bucket

      bucket name of this backend.

      required.

    • disableConfigLoad

      public final Boolean disableConfigLoad

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

      For examples:

      • envs like TOS_ACCESS_KEY_ID
    • endpoint

      public final String endpoint

      endpoint of this backend.

      Endpoint must be full uri, e.g.

      • TOS: https://tos-cn-beijing.volces.com
      • TOS with region: https://tos-{region}.volces.com

      If user inputs endpoint without scheme like "tos-cn-beijing.volces.com", we will prepend "https://" before it.

    • region

      public final String region

      Region represent the signing region of this endpoint.

      Required if endpoint is not provided.

      • If region is set, we will take user's input first.
      • If not, we will try to load it from environment.
      • If still not set, default to cn-beijing.
    • root

      public final String root

      root of this backend.

      All operations will happen under this root.

      default to / if not set.

    • secretAccessKey

      public final String secretAccessKey

      secret_access_key of this backend.

      • If secret_access_key is set, we will take user's input first.
      • If not, we will try to load it from environment.
    • securityToken

      public final String securityToken

      security_token of this backend.

      This token will expire after sometime, it's recommended to set security_token by hand.

    • skipSignature

      public final Boolean skipSignature

      Skip signature will skip loading credentials and signing requests.

  • Constructor Details

    • Tos

      public Tos()
  • Method Details