2020-06-01 10:00:35 +00:00
|
|
|
from jsonmodels import fields, models
|
|
|
|
|
2022-07-08 14:32:56 +00:00
|
|
|
from apiserver.apimodels import DictField
|
|
|
|
|
2020-06-01 10:00:35 +00:00
|
|
|
|
|
|
|
class Filter(models.Base):
|
2020-06-21 20:54:05 +00:00
|
|
|
tags = fields.ListField([str])
|
2020-06-01 10:00:35 +00:00
|
|
|
system_tags = fields.ListField([str])
|
|
|
|
|
|
|
|
|
|
|
|
class TagsRequest(models.Base):
|
|
|
|
include_system = fields.BoolField(default=False)
|
|
|
|
filter = fields.EmbeddedField(Filter)
|
2022-07-08 14:32:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
class EntitiesCountRequest(models.Base):
|
|
|
|
projects = DictField()
|
|
|
|
tasks = DictField()
|
|
|
|
models = DictField()
|
|
|
|
pipelines = DictField()
|
2022-07-08 14:45:03 +00:00
|
|
|
datasets = DictField()
|