volcengine_tos_storage_config.py 1.0 KB

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