mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 19:06:55 +00:00
20 lines
498 B
Python
20 lines
498 B
Python
|
from jsonmodels import models, fields
|
||
|
|
||
|
from apiserver.apimodels import ListField
|
||
|
|
||
|
|
||
|
class Arg(models.Base):
|
||
|
name = fields.StringField(required=True)
|
||
|
value = fields.StringField(required=True)
|
||
|
|
||
|
|
||
|
class StartPipelineRequest(models.Base):
|
||
|
task = fields.StringField(required=True)
|
||
|
queue = fields.StringField(required=True)
|
||
|
args = ListField(Arg)
|
||
|
|
||
|
|
||
|
class StartPipelineResponse(models.Base):
|
||
|
pipeline = fields.StringField(required=True)
|
||
|
enqueued = fields.BoolField(required=True)
|