Skip to content
Snippets Groups Projects
buckets.py 388 B
Newer Older
  • Learn to ignore specific revisions
  • from pydantic import BaseModel
    from datetime import datetime
    from typing import List
    
    
    class BucketRWAccess(BaseModel):
        read: bool
        write: bool
    
    
    
    class BucketInfo(BaseModel):
    
        name: str
        creation_date: datetime
        details: dict
        rw_access: BucketRWAccess
    
    
    class BucketInfoResponse(BaseModel):
    
        buckets: List[BucketInfo]