[docs]@staticmethoddefget_super_domain_qualified_name(domain_qualified_name:str):""" Retrieve the domain's top-most ancestral domain qualified name. :param domain_qualified_name: of the domain, from which to retrieve the top-most ancestral domain qualified name :returns qualified_name: of the top-most ancestral domain, or `None` if it can't be determined """importredomain_qn_prefix=re.compile(r"(default/domain/[a-zA-Z0-9-]+/super)/.*")ifdomain_qualified_name:match=domain_qn_prefix.match(domain_qualified_name)ifmatchandmatch.group(1):returnmatch.group(1)elifdomain_qualified_name.startswith("default/domain/"):returndomain_qualified_namereturnNone
type_name:str=Field(default="DataMesh",allow_mutation=False)@validator("type_name")defvalidate_type_name(cls,v):ifv!="DataMesh":raiseValueError("must be DataMesh")returnvdef__setattr__(self,name,value):ifnameinDataMesh._convenience_properties:returnobject.__setattr__(self,name,value)super().__setattr__(name,value)PARENT_DOMAIN_QUALIFIED_NAME:ClassVar[KeywordTextField]=KeywordTextField("parentDomainQualifiedName","parentDomainQualifiedName","parentDomainQualifiedName.text",)""" Unique name of the parent domain in which this asset exists. """SUPER_DOMAIN_QUALIFIED_NAME:ClassVar[KeywordTextField]=KeywordTextField("superDomainQualifiedName","superDomainQualifiedName","superDomainQualifiedName.text",)""" Unique name of the top-level domain in which this asset exists. """_convenience_properties:ClassVar[List[str]]=["parent_domain_qualified_name","super_domain_qualified_name",]@propertydefparent_domain_qualified_name(self)->Optional[str]:return(Noneifself.attributesisNoneelseself.attributes.parent_domain_qualified_name)@parent_domain_qualified_name.setterdefparent_domain_qualified_name(self,parent_domain_qualified_name:Optional[str]):ifself.attributesisNone:self.attributes=self.Attributes()self.attributes.parent_domain_qualified_name=parent_domain_qualified_name@propertydefsuper_domain_qualified_name(self)->Optional[str]:return(Noneifself.attributesisNoneelseself.attributes.super_domain_qualified_name)@super_domain_qualified_name.setterdefsuper_domain_qualified_name(self,super_domain_qualified_name:Optional[str]):ifself.attributesisNone:self.attributes=self.Attributes()self.attributes.super_domain_qualified_name=super_domain_qualified_nameclassAttributes(Catalog.Attributes):parent_domain_qualified_name:Optional[str]=Field(default=None,description="")super_domain_qualified_name:Optional[str]=Field(default=None,description="")attributes:DataMesh.Attributes=Field(default_factory=lambda:DataMesh.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."),)