mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 10:56:48 +00:00
15 lines
332 B
Python
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])
|