[docs]classModeChart(Mode):"""Description"""type_name:str=Field(default="ModeChart",allow_mutation=False)@validator("type_name")defvalidate_type_name(cls,v):ifv!="ModeChart":raiseValueError("must be ModeChart")returnvdef__setattr__(self,name,value):ifnameinModeChart._convenience_properties:returnobject.__setattr__(self,name,value)super().__setattr__(name,value)MODE_CHART_TYPE:ClassVar[KeywordField]=KeywordField("modeChartType","modeChartType")""" Type of chart. """MODE_QUERY:ClassVar[RelationField]=RelationField("modeQuery")""" TBC """_convenience_properties:ClassVar[List[str]]=["mode_chart_type","mode_query",]@propertydefmode_chart_type(self)->Optional[str]:returnNoneifself.attributesisNoneelseself.attributes.mode_chart_type@mode_chart_type.setterdefmode_chart_type(self,mode_chart_type:Optional[str]):ifself.attributesisNone:self.attributes=self.Attributes()self.attributes.mode_chart_type=mode_chart_type@propertydefmode_query(self)->Optional[ModeQuery]:returnNoneifself.attributesisNoneelseself.attributes.mode_query@mode_query.setterdefmode_query(self,mode_query:Optional[ModeQuery]):ifself.attributesisNone:self.attributes=self.Attributes()self.attributes.mode_query=mode_queryclassAttributes(Mode.Attributes):mode_chart_type:Optional[str]=Field(default=None,description="")mode_query:Optional[ModeQuery]=Field(default=None,description="")# relationshipattributes:ModeChart.Attributes=Field(default_factory=lambda:ModeChart.Attributes(),description=("Map of attributes in the instance and their values. ""The specific keys of this map will vary by type, ""so are described in the sub-types of this schema."),)