def with_connections_from( self: "NQ", connections_from_query: Optional["IIpPortQuery"] = None ) -> "NQ": connections_from = connections_from_query or IpPortQuery() connections_from.with_network_connections(cast(NetworkConnectionQuery, self)) return self
def with_bound_port( self: "NQ", bound_port_query: Optional["IIpPortQuery"] = None) -> "NQ": bound_port = bound_port_query or IpPortQuery() self.set_forward_edge_filter("bound_port", bound_port) bound_port.set_reverse_edge_filter("~bound_port", self, "bound_port") return self
def with_connected_to( self: "NQ", connected_to_query: Optional["IpPortQuery"] = None ) -> "NQ": connected_to = connected_to_query or IpPortQuery() self.set_forward_edge_filter("connected_to", connected_to) connected_to.set_reverse_edge_filter("~connected_to", self, "connected_to") return self
def with_connecting_processess( self: "NQ", connecting_processess_query: Optional["ProcessQuery"] = None ) -> "NQ": connecting_processess = connecting_processess_query or IpPortQuery() connecting_processess._created_connections = self cast( ProcessOutboundConnectionQuery, self )._connecting_processes = connecting_processess return self
def with_inbound_connection_to( self: "NQ", inbound_connection_to_query: Optional["IIpPortQuery"] = None ) -> "NQ": inbound_connection_to = inbound_connection_to_query or IpPortQuery() self.set_forward_edge_filter("inbound_connection_to", inbound_connection_to) inbound_connection_to.set_reverse_edge_filter("~inbound_connection_to", self, "inbound_connection_to") return self