clearml-server/apiserver/apimodels/batch.py
2021-05-03 17:52:54 +03:00

15 lines
332 B
Python

from typing import Sequence
from jsonmodels.models import Base
from jsonmodels.validators import Length
from apiserver.apimodels import ListField
class BatchRequest(Base):
ids: Sequence[str] = ListField([str], validators=Length(minimum_value=1))
class BatchResponse(Base):
failures: Sequence[dict] = ListField([dict])