Skip to content

project.object.visibility

3 functions / 0 types

Index

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

get

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

Get 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 | None

Remove 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
) -> None

Add 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.