Class ServiceConfig.Dropbox

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

public static class ServiceConfig.Dropbox extends Object implements ServiceConfig
Configuration for service dropbox.
  • Field Details

    • accessToken

      public final String accessToken

      access token for dropbox.

    • clientId

      public final String clientId

      client_id for dropbox.

    • clientSecret

      public final String clientSecret

      client_secret for dropbox.

    • refreshToken

      public final String refreshToken

      refresh_token for dropbox.

    • root

      public final String root

      root path for dropbox.

  • Constructor Details

    • Dropbox

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