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
|
|
|
"""
|
2024-09-22 12:38:41 +07:00
|
|
|
Configuration settings for Oracle Cloud Infrastructure (OCI) Object Storage
|
2024-07-01 17:21:44 +08:00
|
|
|
"""
|
|
|
|
|
|
|
|
OCI_ENDPOINT: Optional[str] = Field(
|
2024-09-22 12:38:41 +07:00
|
|
|
description="URL of the OCI Object Storage endpoint (e.g., 'https://objectstorage.us-phoenix-1.oraclecloud.com')",
|
2024-07-01 17:21:44 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
OCI_REGION: Optional[str] = Field(
|
2024-09-22 12:38:41 +07:00
|
|
|
description="OCI region where the bucket is located (e.g., 'us-phoenix-1')",
|
2024-07-01 17:21:44 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
OCI_BUCKET_NAME: Optional[str] = Field(
|
2024-09-22 12:38:41 +07:00
|
|
|
description="Name of the OCI Object Storage bucket to store and retrieve objects (e.g., 'my-oci-bucket')",
|
2024-07-01 17:21:44 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
OCI_ACCESS_KEY: Optional[str] = Field(
|
2024-09-22 12:38:41 +07:00
|
|
|
description="Access key (also known as API key) for authenticating with OCI Object Storage",
|
2024-07-01 17:21:44 +08:00
|
|
|
default=None,
|
|
|
|
)
|
|
|
|
|
|
|
|
OCI_SECRET_KEY: Optional[str] = Field(
|
2024-09-22 12:38:41 +07:00
|
|
|
description="Secret key associated with the access key for authenticating with OCI Object Storage",
|
2024-07-01 17:21:44 +08:00
|
|
|
default=None,
|
|
|
|
)
|