baidu_obs_storage_config.py 863 B

123456789101112131415161718192021222324252627282930
  1. from typing import Optional
  2. from pydantic import BaseModel, Field
  3. class BaiduOBSStorageConfig(BaseModel):
  4. """
  5. Configuration settings for Baidu Object Storage Service (OBS)
  6. """
  7. BAIDU_OBS_BUCKET_NAME: Optional[str] = Field(
  8. description="Name of the Baidu OBS bucket to store and retrieve objects (e.g., 'my-obs-bucket')",
  9. default=None,
  10. )
  11. BAIDU_OBS_ACCESS_KEY: Optional[str] = Field(
  12. description="Access Key ID for authenticating with Baidu OBS",
  13. default=None,
  14. )
  15. BAIDU_OBS_SECRET_KEY: Optional[str] = Field(
  16. description="Secret Access Key for authenticating with Baidu OBS",
  17. default=None,
  18. )
  19. BAIDU_OBS_ENDPOINT: Optional[str] = Field(
  20. description="URL of the Baidu OSS endpoint for your chosen region (e.g., 'https://.bj.bcebos.com')",
  21. default=None,
  22. )