project.object.visibility
3 functions / 0 types
Index
| Function | Description |
|---|---|
| get | Get the ProjectVisibilitySchema of the given ProjectNodeSchema if one exists |
| remove | Remove the ProjectVisibilitySchema of the given ProjectNodeSchema if one exists |
| set | Add a ProjectVisibilitySchema to the given ProjectNodeSchema |
get
def get(
*,
node: types.project.object.ProjectNode,
_transaction_id: str | None = None
) -> types.project.object.ProjectVisibility | NoneGet the ProjectVisibilitySchema of the given ProjectNodeSchema if one exists
Returns ProjectVisibility | None.
node : ProjectNode
ProjectNodeSchema to get the ProjectVisibilitySchema 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.ProjectVisibility | NoneRemove the ProjectVisibilitySchema of the given ProjectNodeSchema if one exists
Returns the old ProjectVisibilitySchema if available
Returns ProjectVisibility | None.
node : ProjectNode
ProjectNodeSchema to remove the ProjectVisibilitySchema 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,
visibility: types.project.object.ProjectVisibility,
_transaction_id: str | None = None
) -> NoneAdd a ProjectVisibilitySchema to the given ProjectNodeSchema
Returns None.
node : ProjectNode
ProjectNodeSchema to change the ProjectVisibilitySchema of
visibility : ProjectVisibility
The new ProjectVisibilitySchema
_transaction_id optional : str | None
Transaction to join. Omit to submit without an explicit transaction. Defaults to None.