volcengine_tos_storage_config.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. from typing import Optional
  2. from pydantic import Field
  3. from pydantic_settings import BaseSettings
  4. class VolcengineTOSStorageConfig(BaseSettings):
  5. """
  6. Configuration settings for Volcengine Tinder Object Storage (TOS)
  7. """
  8. VOLCENGINE_TOS_BUCKET_NAME: Optional[str] = Field(
  9. description="Name of the Volcengine TOS bucket to store and retrieve objects (e.g., 'my-tos-bucket')",
  10. default=None,
  11. )
  12. VOLCENGINE_TOS_ACCESS_KEY: Optional[str] = Field(
  13. description="Access Key ID for authenticating with Volcengine TOS",
  14. default=None,
  15. )
  16. VOLCENGINE_TOS_SECRET_KEY: Optional[str] = Field(
  17. description="Secret Access Key for authenticating with Volcengine TOS",
  18. default=None,
  19. )
  20. VOLCENGINE_TOS_ENDPOINT: Optional[str] = Field(
  21. description="URL of the Volcengine TOS endpoint (e.g., 'https://tos-cn-beijing.volces.com')",
  22. default=None,
  23. )
  24. VOLCENGINE_TOS_REGION: Optional[str] = Field(
  25. description="Volcengine region where the TOS bucket is located (e.g., 'cn-beijing')",
  26. default=None,
  27. )