def edit_node( self, session_id: int, node_id: int, position: core_pb2.Position = None, icon: str = None, source: str = None, geo: core_pb2.Geo = None, ) -> core_pb2.EditNodeResponse: """ Edit a node, currently only changes position. :param session_id: session id :param node_id: node id :param position: position to set node to :param icon: path to icon for gui to use for node :param source: application source editing node :param geo: lon,lat,alt location for node :return: response with result of success or failure :raises grpc.RpcError: when session or node doesn't exist """ request = core_pb2.EditNodeRequest( session_id=session_id, node_id=node_id, position=position, icon=icon, source=source, geo=geo, ) return self.stub.EditNode(request)
def edit_node(self, session_id, node_id, position): """ Edit a node, currently only changes position. :param int session_id: session id :param int node_id: node id :param core_pb2.Position position: position to set node to :return: response with result of success or failure :rtype: core_pb2.EditNodeResponse :raises grpc.RpcError: when session or node doesn't exist """ request = core_pb2.EditNodeRequest(session_id=session_id, node_id=node_id, position=position) return self.stub.EditNode(request)
def edit_node(self, session_id, node_id, position, icon=None, source=None): """ Edit a node, currently only changes position. :param int session_id: session id :param int node_id: node id :param core_pb2.Position position: position to set node to :param str icon: path to icon for gui to use for node :param str source: application source editing node :return: response with result of success or failure :rtype: core_pb2.EditNodeResponse :raises grpc.RpcError: when session or node doesn't exist """ request = core_pb2.EditNodeRequest( session_id=session_id, node_id=node_id, position=position, icon=icon, source=source, ) return self.stub.EditNode(request)
def edit_node(self, session_id: int, node_id: int, icon: str = None, source: str = None) -> bool: """ Edit a node's icon and/or location, can only use position(x,y) or geo(lon, lat, alt), not both. :param session_id: session id :param node_id: node id :param icon: path to icon for gui to use for node :param source: application source :return: True for success, False otherwise :raises grpc.RpcError: when session or node doesn't exist """ request = core_pb2.EditNodeRequest(session_id=session_id, node_id=node_id, icon=icon, source=source) response = self.stub.EditNode(request) return response.result