2021-08-27 21:33:42 -07:00
|
|
|
# generated by datamodel-codegen:
|
|
|
|
# filename: schema/api/data/createChart.json
|
2021-11-16 01:02:45 -08:00
|
|
|
# timestamp: 2021-11-16T07:44:38+00:00
|
2021-08-27 21:33:42 -07:00
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from typing import List, Optional
|
|
|
|
|
|
|
|
from pydantic import AnyUrl, BaseModel, Field, constr
|
|
|
|
|
|
|
|
from ...entity.data import chart
|
|
|
|
from ...type import entityReference, tagLabel
|
|
|
|
|
|
|
|
|
|
|
|
class CreateChartEntityRequest(BaseModel):
|
|
|
|
name: constr(min_length=1, max_length=64) = Field(
|
2021-09-27 10:41:19 -07:00
|
|
|
..., description='Name that identifies this Chart.'
|
2021-08-27 21:33:42 -07:00
|
|
|
)
|
2021-08-31 23:49:01 -07:00
|
|
|
displayName: Optional[str] = Field(
|
|
|
|
None,
|
|
|
|
description='Display Name that identifies this Chart. It could be title or label from the source services',
|
|
|
|
)
|
2021-08-27 21:33:42 -07:00
|
|
|
description: Optional[str] = Field(
|
|
|
|
None,
|
2021-09-27 10:41:19 -07:00
|
|
|
description='Description of the chart instance. What it has and how to use it.',
|
2021-08-27 21:33:42 -07:00
|
|
|
)
|
|
|
|
chartType: Optional[chart.ChartType] = None
|
|
|
|
chartUrl: Optional[AnyUrl] = Field(
|
|
|
|
None, description='Chart URL, pointing to its own Service URL'
|
|
|
|
)
|
|
|
|
tables: Optional[entityReference.EntityReferenceList] = Field(
|
|
|
|
None, description='Link to tables used in this chart.'
|
|
|
|
)
|
|
|
|
tags: Optional[List[tagLabel.TagLabel]] = Field(
|
|
|
|
None, description='Tags for this chart'
|
|
|
|
)
|
|
|
|
owner: Optional[entityReference.EntityReference] = Field(
|
|
|
|
None, description='Owner of this database'
|
|
|
|
)
|
|
|
|
service: entityReference.EntityReference = Field(
|
|
|
|
..., description='Link to the database service where this database is hosted in'
|
|
|
|
)
|