def with_bound_by( self: "NQ", bound_by_query: Optional["IProcessInboundConnectionQuery"] = None, ) -> "NQ": bound_by = bound_by_query or ProcessInboundConnectionQuery() bound_by.with_bound_port(cast(IpPortQuery, self)) return self
def with_inbound_connections( self: "NQ", inbound_connection_query: Optional[ "IProcessInboundConnectionQuery"] = None, ) -> "NQ": from grapl_analyzerlib.nodes.process_inbound_network_connection import ( ProcessInboundConnectionQuery, ) inbound_connection = (inbound_connection_query or ProcessInboundConnectionQuery() ) # type: ProcessInboundConnectionQuery inbound_connection._bound_by = self cast("ProcessQuery", self)._inbound_connections = inbound_connection return self