clearml-server/server/apimodels/users.py

18 lines
424 B
Python
Raw Normal View History

2019-06-10 21:24:35 +00:00
from jsonmodels.fields import StringField
from jsonmodels.models import Base
from 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)