2024-07-01 17:21:44 +08:00
|
|
|
from typing import Optional
|
|
|
|
|
2024-07-07 12:18:15 +08:00
|
|
|
from pydantic import Field
|
|
|
|
from pydantic_settings import BaseSettings
|
2024-07-01 17:21:44 +08:00
|
|
|
|
|
|
|
|
2024-07-07 12:18:15 +08:00
|
|
|
class OCIStorageConfig(BaseSettings):
|
2024-07-01 17:21:44 +08:00
|
|
|
"""
|
|
|
|
OCI storage configs
|
|
|
|
"""
|
|
|
|
|
|
|
|
OCI_ENDPOINT: Optional[str] = Field(
|
2024-08-23 23:46:01 +08:00
|
|
|
description="OCI storage endpoint",
|
2024-07-01 17:21:44 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
OCI_REGION: Optional[str] = Field(
|
2024-08-23 23:46:01 +08:00
|
|
|
description="OCI storage region",
|
2024-07-01 17:21:44 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
OCI_BUCKET_NAME: Optional[str] = Field(
|
2024-08-23 23:46:01 +08:00
|
|
|
description="OCI storage bucket name",
|
2024-07-01 17:21:44 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
OCI_ACCESS_KEY: Optional[str] = Field(
|
2024-08-23 23:46:01 +08:00
|
|
|
description="OCI storage access key",
|
2024-07-01 17:21:44 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
OCI_SECRET_KEY: Optional[str] = Field(
|
2024-08-23 23:46:01 +08:00
|
|
|
description="OCI storage secret key",
|
2024-07-01 17:21:44 +08:00
|
|
|
default=None,
|
|
|
|
)
|