Class ServiceConfig.Onedrive

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

public static class ServiceConfig.Onedrive extends Object implements ServiceConfig
Configuration for service onedrive.
  • Field Details

    • accessToken

      public final String accessToken

      Microsoft Graph API (also OneDrive API) access token

    • clientId

      public final String clientId

      Microsoft Graph API Application (client) ID that is in the Azure's app registration portal

    • clientSecret

      public final String clientSecret

      Microsoft Graph API Application client secret that is in the Azure's app registration portal

    • enableVersioning

      public final Boolean enableVersioning
      Deprecated.
      OneDrive supports version listing without this option.

      Deprecated: OneDrive supports version listing without this option.

    • refreshToken

      public final String refreshToken

      Microsoft Graph API (also OneDrive API) refresh token

    • root

      public final String root

      The root path for the OneDrive service for the file access

  • Constructor Details

    • Onedrive

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