Skip to main content

infrahub_sdk.protocols_base

Classes

RelatedNodeBase

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

RelatedNode

RelatedNodeSync

Attribute

String

StringOptional

DateTime

DateTimeOptional

HashedPassword

HashedPasswordOptional

URL

URLOptional

MacAddress

MacAddressOptional

Enum

EnumOptional

Integer

IntegerOptional

IPHost

IPHostOptional

IPNetwork

IPNetworkOptional

Boolean

BooleanOptional

ListAttribute

ListAttributeOptional

JSONAttribute

JSONAttributeOptional

AnyAttribute

AnyAttributeOptional

CoreNodeBase

Methods:

hfid

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

hfid_str

hfid_str(self) -> str | None

get_human_friendly_id

get_human_friendly_id(self) -> list[str] | None

get_human_friendly_id_as_string

get_human_friendly_id_as_string(self, include_kind: bool = False) -> str | None

get_kind

get_kind(self) -> str

get_all_kinds

get_all_kinds(self) -> list[str]

get_branch

get_branch(self) -> str

is_ip_prefix

is_ip_prefix(self) -> bool

is_ip_address

is_ip_address(self) -> bool

is_resource_pool

is_resource_pool(self) -> bool

get_raw_graphql_data

get_raw_graphql_data(self) -> dict | None

extract

extract(self, params: dict[str, str]) -> dict[str, Any]

CoreNode

Methods:

save

save(self, allow_upsert: bool = False, update_group_context: bool | None = None, timeout: int | None = None, request_context: RequestContext | None = None) -> None

delete

delete(self, timeout: int | None = None, request_context: RequestContext | None = None) -> None

update

update(self, do_full_update: bool, timeout: int | None = None, request_context: RequestContext | None = None) -> None

create

create(self, allow_upsert: bool = False, timeout: int | None = None, request_context: RequestContext | None = None) -> None

add_relationships

add_relationships(self, relation_to_update: str, related_nodes: list[str]) -> None

remove_relationships

remove_relationships(self, relation_to_update: str, related_nodes: list[str]) -> None

CoreNodeSync

Methods:

save

save(self, allow_upsert: bool = False, update_group_context: bool | None = None, timeout: int | None = None, request_context: RequestContext | None = None) -> None

delete

delete(self, timeout: int | None = None, request_context: RequestContext | None = None) -> None

update

update(self, do_full_update: bool, timeout: int | None = None, request_context: RequestContext | None = None) -> None

create

create(self, allow_upsert: bool = False, timeout: int | None = None, request_context: RequestContext | None = None) -> None

add_relationships

add_relationships(self, relation_to_update: str, related_nodes: list[str]) -> None

remove_relationships

remove_relationships(self, relation_to_update: str, related_nodes: list[str]) -> None