mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 19:06:55 +00:00
18 lines
434 B
Python
18 lines
434 B
Python
from jsonmodels.fields import StringField
|
|
from jsonmodels.models import Base
|
|
|
|
from apiserver.apimodels import DictField
|
|
|
|
|
|
class CreateRequest(Base):
|
|
id = StringField(required=True)
|
|
name = StringField(required=True)
|
|
company = StringField(required=True)
|
|
family_name = StringField()
|
|
given_name = StringField()
|
|
avatar = StringField()
|
|
|
|
|
|
class SetPreferencesRequest(Base):
|
|
preferences = DictField(required=True)
|