[docs]classPreset(BI):"""Description"""type_name:str=Field(default="Preset",allow_mutation=False)@validator("type_name")defvalidate_type_name(cls,v):ifv!="Preset":raiseValueError("must be Preset")returnvdef__setattr__(self,name,value):ifnameinPreset._convenience_properties:returnobject.__setattr__(self,name,value)super().__setattr__(name,value)PRESET_WORKSPACE_ID:ClassVar[NumericField]=NumericField("presetWorkspaceId","presetWorkspaceId")""" Identifier of the workspace in which this asset exists, in Preset. """PRESET_WORKSPACE_QUALIFIED_NAME:ClassVar[KeywordTextField]=KeywordTextField("presetWorkspaceQualifiedName","presetWorkspaceQualifiedName","presetWorkspaceQualifiedName.text",)""" Unique name of the workspace in which this asset exists. """PRESET_DASHBOARD_ID:ClassVar[NumericField]=NumericField("presetDashboardId","presetDashboardId")""" Identifier of the dashboard in which this asset exists, in Preset. """PRESET_DASHBOARD_QUALIFIED_NAME:ClassVar[KeywordTextField]=KeywordTextField("presetDashboardQualifiedName","presetDashboardQualifiedName","presetDashboardQualifiedName.text",)""" Unique name of the dashboard in which this asset exists. """_convenience_properties:ClassVar[List[str]]=["preset_workspace_id","preset_workspace_qualified_name","preset_dashboard_id","preset_dashboard_qualified_name",]@propertydefpreset_workspace_id(self)->Optional[int]:returnNoneifself.attributesisNoneelseself.attributes.preset_workspace_id@preset_workspace_id.setterdefpreset_workspace_id(self,preset_workspace_id:Optional[int]):ifself.attributesisNone:self.attributes=self.Attributes()self.attributes.preset_workspace_id=preset_workspace_id@propertydefpreset_workspace_qualified_name(self)->Optional[str]:return(Noneifself.attributesisNoneelseself.attributes.preset_workspace_qualified_name)@preset_workspace_qualified_name.setterdefpreset_workspace_qualified_name(self,preset_workspace_qualified_name:Optional[str]):ifself.attributesisNone:self.attributes=self.Attributes()self.attributes.preset_workspace_qualified_name=(preset_workspace_qualified_name)@propertydefpreset_dashboard_id(self)->Optional[int]:returnNoneifself.attributesisNoneelseself.attributes.preset_dashboard_id@preset_dashboard_id.setterdefpreset_dashboard_id(self,preset_dashboard_id:Optional[int]):ifself.attributesisNone:self.attributes=self.Attributes()self.attributes.preset_dashboard_id=preset_dashboard_id@propertydefpreset_dashboard_qualified_name(self)->Optional[str]:return(Noneifself.attributesisNoneelseself.attributes.preset_dashboard_qualified_name)@preset_dashboard_qualified_name.setterdefpreset_dashboard_qualified_name(self,preset_dashboard_qualified_name:Optional[str]):ifself.attributesisNone:self.attributes=self.Attributes()self.attributes.preset_dashboard_qualified_name=(preset_dashboard_qualified_name)classAttributes(BI.Attributes):preset_workspace_id:Optional[int]=Field(default=None,description="")preset_workspace_qualified_name:Optional[str]=Field(default=None,description="")preset_dashboard_id:Optional[int]=Field(default=None,description="")preset_dashboard_qualified_name:Optional[str]=Field(default=None,description="")attributes:Preset.Attributes=Field(default_factory=lambda:Preset.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."),)