def __json__(self, topology_dump=False):
        """
        :param topology_dump: Filter to keep only properties require for saving on disk
        """
        if topology_dump:
            return {
                "compute_id": self._id,
                "name": self._name,
                "protocol": self._protocol,
                "host": self._host,
                "port": self._port
            }
        return {
            "compute_id": self._id,
            "name": self._name,
            "protocol": self._protocol,
            "host": self._host,
            "port": self._port,
            "user": self._user,
            "connected": self._connected,
            "cpu_usage_percent": self._cpu_usage_percent,
            "memory_usage_percent": self._memory_usage_percent,
            "capabilities": self._capabilities
        }
def __json__ ( self , topology_dump = False ) : if topology_dump : return { "compute_id" : self . _id , "name" : self . _name , "protocol" : self . _protocol , "host" : self . _host , "port" : self . _port } return { "compute_id" : self . _id , "name" : self . _name , "protocol" : self . _protocol , "host" : self . _host , "port" : self . _port , "user" : self . _user , "connected" : self . _connected , "cpu_usage_percent" : self . _cpu_usage_percent , "memory_usage_percent" : self . _memory_usage_percent , "capabilities" : self . _capabilities }
:param topology_dump: Filter to keep only properties require for saving on disk