Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /rubelw_OSSS /src /OSSS /schemas /post_attachment.py
| # OSSS/schemas/post_attachment.py | |
| from __future__ import annotations | |
| from typing import List, Optional | |
| from pydantic import Field | |
| from OSSS.schemas.base import APIModel | |
| class PostAttachmentBase(APIModel): | |
| post_id: str = Field(...) | |
| file_id: str = Field(...) | |
| class PostAttachmentCreate(PostAttachmentBase): | |
| pass | |
| class PostAttachmentReplace(PostAttachmentBase): | |
| pass | |
| class PostAttachmentPatch(APIModel): | |
| post_id: Optional[str] = None | |
| file_id: Optional[str] = None | |
| class PostAttachmentOut(PostAttachmentBase): | |
| id: str | |
| class PostAttachmentList(APIModel): | |
| items: List[PostAttachmentOut] | |
| total: int | None = None | |
| skip: int = 0 | |
| limit: int = 100 | |
Xet Storage Details
- Size:
- 687 Bytes
- Xet hash:
- bd53016915132c55cf274aeedaacef3d8b7b081309b5fe6cc15ed71d784852c1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.