Skip to main content

infrahub_sdk.node.relationship

Classes​

RelationshipManagerBase ​

Base class for RelationshipManager and RelationshipManagerSync

Methods:

peer_ids ​

peer_ids(self) -> list[str]

peer_hfids ​

peer_hfids(self) -> list[list[Any]]

peer_hfids_str ​

peer_hfids_str(self) -> list[str]

has_update ​

has_update(self) -> bool

RelationshipManager ​

Manages relationships of a node in an asynchronous context.

Methods:

fetch ​

fetch(self) -> None

add ​

add(self, data: str | RelatedNode | dict) -> None

Add a new peer to this relationship.

extend ​

extend(self, data: Iterable[str | RelatedNode | dict]) -> None

Add new peers to this relationship.

remove ​

remove(self, data: str | RelatedNode | dict) -> None

RelationshipManagerSync ​

Manages relationships of a node in a synchronous context.

Methods:

fetch ​

fetch(self) -> None

add ​

add(self, data: str | RelatedNodeSync | dict) -> None

Add a new peer to this relationship.

extend ​

extend(self, data: Iterable[str | RelatedNodeSync | dict]) -> None

Add new peers to this relationship.

remove ​

remove(self, data: str | RelatedNodeSync | dict) -> None