# ------------------------------------------------------------------------------# Output# ------------------------------------------------------------------------------# --- Result item ---
[docs]@dataclasses.dataclass(frozen=True)classGetLabelsResponseResult(BaseResponse):"""Label schema - represents a single label in the results array."""@cached_propertydefid(self)->str:returnself._get("id")@cached_propertydefname(self)->str:returnself._get("name")@cached_propertydefprefix(self)->str:returnself._get("prefix")
# --- Top level response ---
[docs]@dataclasses.dataclass(frozen=True)classGetLabelsResponse(BaseResponse):"""MultiEntityResult<Label> schema - top level response."""@cached_propertydefresults(self)->list[GetLabelsResponseResult]:returnself._new_many(GetLabelsResponseResult,"results")@cached_propertydeflinks(self)->Links:returnself._new(Links,"_links")