Skip to content

project.object.block_model

3 functions / 0 types

Index

FunctionDescription
getGet the ProjectBlockModelSchema of the given ProjectNodeSchema if one exists
removeRemove the ProjectBlockModelSchema of the given ProjectNodeSchema if one exists
setAdd a ProjectBlockModelSchema to the given ProjectNodeSchema

get

def get(
    *,
    node: types.project.object.ProjectNode,
    _transaction_id: str | None = None
) -> types.project.object.ProjectBlockModel | None

Get the ProjectBlockModelSchema of the given ProjectNodeSchema if one exists

Returns ProjectBlockModel | None.

node : ProjectNode

ProjectNodeSchema to get the ProjectBlockModelSchema of

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.

remove

def remove(
    *,
    node: types.project.object.ProjectNode,
    _transaction_id: str | None = None
) -> types.project.object.ProjectBlockModel | None

Remove the ProjectBlockModelSchema of the given ProjectNodeSchema if one exists

Returns the old ProjectBlockModelSchema if available

Returns ProjectBlockModel | None.

node : ProjectNode

ProjectNodeSchema to remove the ProjectBlockModelSchema of

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.

set

def set(
    *,
    node: types.project.object.ProjectNode,
    block_model: types.project.object.ProjectBlockModel,
    _transaction_id: str | None = None
) -> None

Add a ProjectBlockModelSchema to the given ProjectNodeSchema

Returns None.

node : ProjectNode

ProjectNodeSchema to change the ProjectBlockModelSchema of

block_model : ProjectBlockModel

The new ProjectBlockModelSchema

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.