frostfs-testcases/pytest_tests/helpers/storage_object_info.py
Andrey Berezin 30ea4ab54e Add grpc lock tests
Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
2022-11-25 16:45:49 +03:00

27 lines
507 B
Python

import logging
from dataclasses import dataclass
logger = logging.getLogger("NeoLogger")
@dataclass
class ObjectRef:
cid: str
oid: str
@dataclass
class LockObjectInfo(ObjectRef):
lifetime: int = None
expire_at: int = None
@dataclass
class StorageObjectInfo(ObjectRef):
size: str = None
wallet_file_path: str = None
file_path: str = None
file_hash: str = None
attributes: list[dict[str, str]] = None
tombstone: str = None
locks: list[LockObjectInfo] = None