azure_blob_storage_config.py 908 B

12345678910111213141516171819202122232425262728293031
  1. from typing import Optional
  2. from pydantic import Field
  3. from pydantic_settings import BaseSettings
  4. class AzureBlobStorageConfig(BaseSettings):
  5. """
  6. Configuration settings for Azure Blob Storage
  7. """
  8. AZURE_BLOB_ACCOUNT_NAME: Optional[str] = Field(
  9. description="Name of the Azure Storage account (e.g., 'mystorageaccount')",
  10. default=None,
  11. )
  12. AZURE_BLOB_ACCOUNT_KEY: Optional[str] = Field(
  13. description="Access key for authenticating with the Azure Storage account",
  14. default=None,
  15. )
  16. AZURE_BLOB_CONTAINER_NAME: Optional[str] = Field(
  17. description="Name of the Azure Blob container to store and retrieve objects",
  18. default=None,
  19. )
  20. AZURE_BLOB_ACCOUNT_URL: Optional[str] = Field(
  21. description="URL of the Azure Blob storage endpoint (e.g., 'https://mystorageaccount.blob.core.windows.net')",
  22. default=None,
  23. )