diff --git a/cognite/client/data_classes/data_modeling/ids.py b/cognite/client/data_classes/data_modeling/ids.py index 9dec53adf4..b753c9dae4 100644 --- a/cognite/client/data_classes/data_modeling/ids.py +++ b/cognite/client/data_classes/data_modeling/ids.py @@ -152,12 +152,12 @@ class PropertyId(CogniteObject): @classmethod def _load(cls, resource: dict[str, Any], cognite_client: CogniteClient | None = None) -> Self: return cls( - source=cls.load_view_or_container_id(resource["source"]), + source=cls.__load_view_or_container_id(resource["source"]), property=resource["identifier"], ) @staticmethod - def load_view_or_container_id(view_or_container_id: dict[str, Any]) -> ViewId | ContainerId: + def __load_view_or_container_id(view_or_container_id: dict[str, Any]) -> ViewId | ContainerId: if "type" in view_or_container_id and view_or_container_id["type"] in {"view", "container"}: if view_or_container_id["type"] == "view": return ViewId.load(view_or_container_id)