Buckets:

download
raw
1.42 kB
"""API models for backup endpoints."""
from pydantic import BaseModel, Field
class S3Config(BaseModel):
"""S3 backup configuration model for API."""
access_key_id: str = Field(..., description="AWS S3 access key ID")
secret_access_key: str = Field(..., description="AWS S3 secret access key")
bucket_name: str = Field(..., description="S3 bucket name")
region: str = Field(default="us-east-1", description="AWS S3 region")
endpoint_url: str | None = Field(default=None, description="Custom S3 endpoint URL")
path_style: bool = Field(default=False, description="Use path-style addressing")
enabled: bool = Field(default=True, description="Enable S3 backups")
class BackupSettings(BaseModel):
"""Backup settings model for API."""
s3: S3Config | None = None
class BackupTest(BaseModel):
"""Backup connection test request model."""
service: str = Field(..., description="Backup service type (s3)")
config: S3Config = Field(..., description="S3 configuration to test")
class BackupInfo(BaseModel):
"""Metadata of one stored backup"""
key: str
last_modified: str
size: int
class BackupOperation(BaseModel):
"""Backup operation request model."""
operation: str = Field(..., description="Operation type (backup, restore)")
backup_key: str | None = Field(
default=None, description="Backup key for restore operations"
)

Xet Storage Details

Size:
1.42 kB
·
Xet hash:
732d0fcd77b6a88db002cfce13ccdb11c967cf9b2d2c2fb6d9ef355cd2e4af10

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.