Skip to content

view

Canonical path: o6.view

view

view(
    *,
    nodeId=None,
    browseName=None,
    displayName=None,
    description=None,
    containsNoLoops=True,
    eventNotifier=0,
    writeMask=0,
    userWriteMask=0,
    rolePermissions=None,
    accessRestrictions=0,
    parent="i=87",
    referenceType="i=35",
    references=None,
    ns=None,
    server=_UNSET
)

Declare or immediately create an OPC UA View node.

A View narrows browsing to a chosen subset of the address space. The references listed in references are the View's members; nodes stay owned by their original parents.

The return value is a live ViewNode when a server is resolved, and an unmaterialized declaration otherwise. Resolution follows the same rules as declared type instances: an explicit server wins, then a live parent, and calls made while a registered namespace module is being evaluated stay declarations until server.ns.append(module) runs.

Parameters:

Name Type Description Default
nodeId Optional[NodeIdLike]

NodeId of the View node. Allocated in ns when omitted.

None
browseName Optional[str]

BrowseName of the node. Defaults to "View".

None
displayName Optional[LocalizedTextLike]

DisplayName of the node. Defaults to the BrowseName.

None
description Optional[LocalizedTextLike]

Description attribute of the node.

None
containsNoLoops bool

ContainsNoLoops attribute, asserting that browsing the View cannot revisit a node.

True
eventNotifier int

EventNotifier attribute of the node.

0
writeMask int

WriteMask attribute of the node.

0
userWriteMask int

UserWriteMask attribute of the node.

0
rolePermissions Optional[Mapping[Any, int]]

RolePermissions, as a mapping of role to o6.Permission mask.

None
accessRestrictions int

AccessRestrictions attribute of the node.

0
parent Any

Node or declaration that owns the View. Defaults to the standard ViewsFolder (i=87).

'i=87'
referenceType NodeIdLike

ReferenceType linking the View to its parent. Defaults to Organizes.

'i=35'
references Optional[list[Any]]

Nodes that make up the View's contents.

None
ns Optional[str]

Shortname of the declaring namespace. Inferred from nodeId when that carries a namespace.

None
server Any

Server that should create the node. None forces a declaration.

_UNSET

See Views.