aliyun_oss_storage_config.py 905 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. from typing import Optional
  2. from pydantic import BaseModel, Field
  3. class AliyunOSSStorageConfig(BaseModel):
  4. """
  5. Aliyun storage configs
  6. """
  7. ALIYUN_OSS_BUCKET_NAME: Optional[str] = Field(
  8. description='Aliyun OSS bucket name',
  9. default=None,
  10. )
  11. ALIYUN_OSS_ACCESS_KEY: Optional[str] = Field(
  12. description='Aliyun OSS access key',
  13. default=None,
  14. )
  15. ALIYUN_OSS_SECRET_KEY: Optional[str] = Field(
  16. description='Aliyun OSS secret key',
  17. default=None,
  18. )
  19. ALIYUN_OSS_ENDPOINT: Optional[str] = Field(
  20. description='Aliyun OSS endpoint URL',
  21. default=None,
  22. )
  23. ALIYUN_OSS_REGION: Optional[str] = Field(
  24. description='Aliyun OSS region',
  25. default=None,
  26. )
  27. ALIYUN_OSS_AUTH_VERSION: Optional[str] = Field(
  28. description='Aliyun OSS authentication version',
  29. default=None,
  30. )