Skip to content

project.object.shape

3 functions / 0 types

Index

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

get

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

Get the ProjectShapeSchema of the given ProjectNodeSchema if one exists

Returns ProjectShape | None.

node : ProjectNode

ProjectNodeSchema to get the ProjectShapeSchema 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.ProjectShape | None

Remove the ProjectShapeSchema of the given ProjectNodeSchema if one exists

Returns the old ProjectShapeSchema if available

Returns ProjectShape | None.

node : ProjectNode

ProjectNodeSchema to remove the ProjectShapeSchema 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,
    shape: types.project.object.ProjectShape,
    _transaction_id: str | None = None
) -> None

Add a ProjectShapeSchema to the given ProjectNodeSchema

Returns None.

node : ProjectNode

ProjectNodeSchema to change the ProjectShapeSchema of

shape : ProjectShape

The new ProjectShapeSchema

_transaction_id optional : str | None

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