oci_storage_config.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. from typing import Optional
  2. from pydantic import Field
  3. from pydantic_settings import BaseSettings
  4. class OCIStorageConfig(BaseSettings):
  5. """
  6. Configuration settings for Oracle Cloud Infrastructure (OCI) Object Storage
  7. """
  8. OCI_ENDPOINT: Optional[str] = Field(
  9. description="URL of the OCI Object Storage endpoint (e.g., 'https://objectstorage.us-phoenix-1.oraclecloud.com')",
  10. default=None,
  11. )
  12. OCI_REGION: Optional[str] = Field(
  13. description="OCI region where the bucket is located (e.g., 'us-phoenix-1')",
  14. default=None,
  15. )
  16. OCI_BUCKET_NAME: Optional[str] = Field(
  17. description="Name of the OCI Object Storage bucket to store and retrieve objects (e.g., 'my-oci-bucket')",
  18. default=None,
  19. )
  20. OCI_ACCESS_KEY: Optional[str] = Field(
  21. description="Access key (also known as API key) for authenticating with OCI Object Storage",
  22. default=None,
  23. )
  24. OCI_SECRET_KEY: Optional[str] = Field(
  25. description="Secret key associated with the access key for authenticating with OCI Object Storage",
  26. default=None,
  27. )