mirror of
https://github.com/clearml/clearml-server
synced 2025-02-07 13:33:42 +00:00
16 lines
374 B
Python
16 lines
374 B
Python
from typing import Sequence
|
|
|
|
from jsonmodels.models import Base
|
|
from jsonmodels.validators import Length
|
|
|
|
from apiserver.apimodels import ListField, IntField
|
|
|
|
|
|
class BatchRequest(Base):
|
|
ids: Sequence[str] = ListField([str], validators=Length(minimum_value=1))
|
|
|
|
|
|
class BatchResponse(Base):
|
|
succeeded: int = IntField()
|
|
failures: Sequence[dict] = ListField([dict])
|