project.object.shape
3 functions / 0 types
Index
| Function | Description |
|---|---|
| get | Get the ProjectShapeSchema of the given ProjectNodeSchema if one exists |
| remove | Remove the ProjectShapeSchema of the given ProjectNodeSchema if one exists |
| set | Add a ProjectShapeSchema to the given ProjectNodeSchema |
get
def get(
*,
node: types.project.object.ProjectNode,
_transaction_id: str | None = None
) -> types.project.object.ProjectShape | NoneGet 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 | NoneRemove 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
) -> NoneAdd 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.