Skip to main content

infrahub_sdk.node.related_node

Classes

RelatedNodeBase

Base class for representing a related node in a relationship.

Methods:

id

id(self) -> str | None

hfid

hfid(self) -> list[Any] | None

hfid_str

hfid_str(self) -> str | None

is_resource_pool

is_resource_pool(self) -> bool

initialized

initialized(self) -> bool

display_label

display_label(self) -> str | None

typename

typename(self) -> str | None

kind

kind(self) -> str | None

is_from_profile

is_from_profile(self) -> bool

Return whether this relationship was set from a profile. Done by checking if the source is of a profile kind.

get_relationship_metadata

get_relationship_metadata(self) -> RelationshipMetadata | None

Returns the relationship metadata (updated_at, updated_by) if fetched.

RelatedNode

Represents a RelatedNodeBase in an asynchronous context.

Methods:

fetch

fetch(self, timeout: int | None = None) -> None

peer

peer(self) -> InfrahubNode

get

get(self) -> InfrahubNode

RelatedNodeSync

Represents a related node in a synchronous context.

Methods:

fetch

fetch(self, timeout: int | None = None) -> None

peer

peer(self) -> InfrahubNodeSync

get

get(self) -> InfrahubNodeSync