google_cloud_storage_config.py 616 B

123456789101112131415161718192021
  1. from typing import Optional
  2. from pydantic import Field
  3. from pydantic_settings import BaseSettings
  4. class GoogleCloudStorageConfig(BaseSettings):
  5. """
  6. Configuration settings for Google Cloud Storage
  7. """
  8. GOOGLE_STORAGE_BUCKET_NAME: Optional[str] = Field(
  9. description="Name of the Google Cloud Storage bucket to store and retrieve objects (e.g., 'my-gcs-bucket')",
  10. default=None,
  11. )
  12. GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64: Optional[str] = Field(
  13. description="Base64-encoded JSON key file for Google Cloud service account authentication",
  14. default=None,
  15. )