Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ref.ReferenceTypeId = ua.NodeId.from_string("i=38")
ref.SourceNodeId = ua.NodeId.from_string("i=888")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=887")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=39")
ref.SourceNodeId = ua.NodeId.from_string("i=888")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=8876")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=40")
ref.SourceNodeId = ua.NodeId.from_string("i=888")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=76")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=12173")
node.BrowseName = ua.QualifiedName.from_string("Default XML")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=12171")
node.ReferenceTypeId = ua.NodeId.from_string("i=38")
node.TypeDefinition = ua.NodeId.from_string("i=76")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("Default XML")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
node.RequestedNewNodeId = ua.NodeId.from_string("i=12207")
node.BrowseName = ua.QualifiedName.from_string("Default Binary")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=12189")
node.ReferenceTypeId = ua.NodeId.from_string("i=38")
node.TypeDefinition = ua.NodeId.from_string("i=76")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("Default Binary")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=39")
ref.SourceNodeId = ua.NodeId.from_string("i=12207")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=12213")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=306")
node.BrowseName = ua.QualifiedName.from_string("Default Binary")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=304")
node.ReferenceTypeId = ua.NodeId.from_string("i=38")
node.TypeDefinition = ua.NodeId.from_string("i=76")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("Default Binary")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=12756")
node.ReferenceTypeId = ua.NodeId.from_string("i=38")
node.TypeDefinition = ua.NodeId.from_string("i=76")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("Default XML")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = False
ref.ReferenceTypeId = ua.NodeId.from_string("i=38")
ref.SourceNodeId = ua.NodeId.from_string("i=12758")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=12756")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=39")
ref.SourceNodeId = ua.NodeId.from_string("i=12758")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=12762")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=40")
ref.SourceNodeId = ua.NodeId.from_string("i=12758")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=76")
refs.append(ref)
server.add_references(refs)
attrs.Description = ua.LocalizedText("An image encoded in JPEG format.")
attrs.DisplayName = ua.LocalizedText("ImageJPG")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = False
ref.ReferenceTypeId = ua.NodeId.from_string("i=45")
ref.SourceNodeId = ua.NodeId.from_string("i=2002")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=30")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2003")
node.BrowseName = ua.QualifiedName.from_string("ImagePNG")
node.NodeClass = ua.NodeClass.DataType
node.ParentNodeId = ua.NodeId.from_string("i=30")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.DataTypeAttributes()
attrs.Description = ua.LocalizedText("An image encoded in PNG format.")
attrs.DisplayName = ua.LocalizedText("ImagePNG")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = False
ref.ReferenceTypeId = ua.NodeId.from_string("i=45")
ref.SourceNodeId = ua.NodeId.from_string("i=2003")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=30")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=601")
node.ReferenceTypeId = ua.NodeId.from_string("i=38")
node.TypeDefinition = ua.NodeId.from_string("i=76")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("Default Binary")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=39")
ref.SourceNodeId = ua.NodeId.from_string("i=603")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=7947")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=661")
node.BrowseName = ua.QualifiedName.from_string("Default Binary")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=659")
node.ReferenceTypeId = ua.NodeId.from_string("i=38")
node.TypeDefinition = ua.NodeId.from_string("i=76")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("Default Binary")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=589")
node.ReferenceTypeId = ua.NodeId.from_string("i=38")
node.TypeDefinition = ua.NodeId.from_string("i=76")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("Default Binary")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=39")
ref.SourceNodeId = ua.NodeId.from_string("i=591")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=7935")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=594")
node.BrowseName = ua.QualifiedName.from_string("Default Binary")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=592")
node.ReferenceTypeId = ua.NodeId.from_string("i=38")
node.TypeDefinition = ua.NodeId.from_string("i=76")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("Default Binary")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref.SourceNodeId = ua.NodeId.from_string("i=2368")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2365")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2370")
node.BrowseName = ua.QualifiedName.from_string("InstrumentRange")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2368")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("InstrumentRange")
attrs.DataType = ua.NodeId.from_string("i=884")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=40")
ref.SourceNodeId = ua.NodeId.from_string("i=2370")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=68")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=2370")
ref.TargetNodeClass = ua.NodeClass.DataType
attrs.DataType = ua.NodeId.from_string("i=8912")
attrs.ValueRank = -2
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=40")
ref.SourceNodeId = ua.NodeId.from_string("i=3069")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=68")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=3070")
node.BrowseName = ua.QualifiedName.from_string("AllowNulls")
node.NodeClass = ua.NodeClass.Variable
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.Description = ua.LocalizedText("Whether the value of the owning variable is allowed to be null.")
attrs.DisplayName = ua.LocalizedText("AllowNulls")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -2
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=40")
ref.SourceNodeId = ua.NodeId.from_string("i=3070")
ref.TargetNodeClass = ua.NodeClass.DataType
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=11203")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("UseSlopedExtrapolation")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11208")
node.BrowseName = ua.QualifiedName.from_string("Stepped")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=11202")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Stepped")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11215")
node.BrowseName = ua.QualifiedName.from_string("HistoricalEventFilter")
node.NodeClass = ua.NodeClass.Variable
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("HistoricalEventFilter")
attrs.DisplayName = ua.LocalizedText("Default XML")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=39")
ref.SourceNodeId = ua.NodeId.from_string("i=596")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=8576")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=599")
node.BrowseName = ua.QualifiedName.from_string("Default XML")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=598")
node.ReferenceTypeId = ua.NodeId.from_string("i=38")
node.TypeDefinition = ua.NodeId.from_string("i=76")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("Default XML")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=39")
ref.SourceNodeId = ua.NodeId.from_string("i=599")
ref.TargetNodeClass = ua.NodeClass.DataType