[docs]classResource(Catalog):"""Description"""type_name:str=Field(default="Resource",allow_mutation=False)@validator("type_name")defvalidate_type_name(cls,v):ifv!="Resource":raiseValueError("must be Resource")returnvdef__setattr__(self,name,value):ifnameinResource._convenience_properties:returnobject.__setattr__(self,name,value)super().__setattr__(name,value)LINK:ClassVar[TextField]=TextField("link","link")""" URL to the resource. """IS_GLOBAL:ClassVar[BooleanField]=BooleanField("isGlobal","isGlobal")""" Whether the resource is global (true) or not (false). """REFERENCE:ClassVar[TextField]=TextField("reference","reference")""" Reference to the resource. """RESOURCE_METADATA:ClassVar[KeywordField]=KeywordField("resourceMetadata","resourceMetadata")""" Metadata of the resource. """_convenience_properties:ClassVar[List[str]]=["link","is_global","reference","resource_metadata",]@propertydeflink(self)->Optional[str]:returnNoneifself.attributesisNoneelseself.attributes.link@link.setterdeflink(self,link:Optional[str]):ifself.attributesisNone:self.attributes=self.Attributes()self.attributes.link=link@propertydefis_global(self)->Optional[bool]:returnNoneifself.attributesisNoneelseself.attributes.is_global@is_global.setterdefis_global(self,is_global:Optional[bool]):ifself.attributesisNone:self.attributes=self.Attributes()self.attributes.is_global=is_global@propertydefreference(self)->Optional[str]:returnNoneifself.attributesisNoneelseself.attributes.reference@reference.setterdefreference(self,reference:Optional[str]):ifself.attributesisNone:self.attributes=self.Attributes()self.attributes.reference=reference@propertydefresource_metadata(self)->Optional[Dict[str,str]]:returnNoneifself.attributesisNoneelseself.attributes.resource_metadata@resource_metadata.setterdefresource_metadata(self,resource_metadata:Optional[Dict[str,str]]):ifself.attributesisNone:self.attributes=self.Attributes()self.attributes.resource_metadata=resource_metadataclassAttributes(Catalog.Attributes):link:Optional[str]=Field(default=None,description="")is_global:Optional[bool]=Field(default=None,description="")reference:Optional[str]=Field(default=None,description="")resource_metadata:Optional[Dict[str,str]]=Field(default=None,description="")attributes:Resource.Attributes=Field(default_factory=lambda:Resource.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."),)