|
@@ 6656-6698 (lines=43) @@
|
| 6653 |
|
__repr__ = __str__ |
| 6654 |
|
|
| 6655 |
|
|
| 6656 |
|
class RelativePath(FrozenClass): |
| 6657 |
|
''' |
| 6658 |
|
A relative path constructed from reference types and browse names. |
| 6659 |
|
|
| 6660 |
|
:ivar Elements: |
| 6661 |
|
:vartype Elements: RelativePathElement |
| 6662 |
|
''' |
| 6663 |
|
|
| 6664 |
|
ua_types = { |
| 6665 |
|
'Elements': 'RelativePathElement', |
| 6666 |
|
} |
| 6667 |
|
|
| 6668 |
|
def __init__(self, binary=None): |
| 6669 |
|
if binary is not None: |
| 6670 |
|
self._binary_init(binary) |
| 6671 |
|
self._freeze = True |
| 6672 |
|
return |
| 6673 |
|
self.Elements = [] |
| 6674 |
|
self._freeze = True |
| 6675 |
|
|
| 6676 |
|
def to_binary(self): |
| 6677 |
|
packet = [] |
| 6678 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.Elements))) |
| 6679 |
|
for fieldname in self.Elements: |
| 6680 |
|
packet.append(fieldname.to_binary()) |
| 6681 |
|
return b''.join(packet) |
| 6682 |
|
|
| 6683 |
|
@staticmethod |
| 6684 |
|
def from_binary(data): |
| 6685 |
|
return RelativePath(data) |
| 6686 |
|
|
| 6687 |
|
def _binary_init(self, data): |
| 6688 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 6689 |
|
array = [] |
| 6690 |
|
if length != -1: |
| 6691 |
|
for _ in range(0, length): |
| 6692 |
|
array.append(RelativePathElement.from_binary(data)) |
| 6693 |
|
self.Elements = array |
| 6694 |
|
|
| 6695 |
|
def __str__(self): |
| 6696 |
|
return 'RelativePath(' + 'Elements:' + str(self.Elements) + ')' |
| 6697 |
|
|
| 6698 |
|
__repr__ = __str__ |
| 6699 |
|
|
| 6700 |
|
|
| 6701 |
|
class BrowsePath(FrozenClass): |
|
@@ 13577-13617 (lines=41) @@
|
| 13574 |
|
__repr__ = __str__ |
| 13575 |
|
|
| 13576 |
|
|
| 13577 |
|
class PublishParameters(FrozenClass): |
| 13578 |
|
''' |
| 13579 |
|
:ivar SubscriptionAcknowledgements: |
| 13580 |
|
:vartype SubscriptionAcknowledgements: SubscriptionAcknowledgement |
| 13581 |
|
''' |
| 13582 |
|
|
| 13583 |
|
ua_types = { |
| 13584 |
|
'SubscriptionAcknowledgements': 'SubscriptionAcknowledgement', |
| 13585 |
|
} |
| 13586 |
|
|
| 13587 |
|
def __init__(self, binary=None): |
| 13588 |
|
if binary is not None: |
| 13589 |
|
self._binary_init(binary) |
| 13590 |
|
self._freeze = True |
| 13591 |
|
return |
| 13592 |
|
self.SubscriptionAcknowledgements = [] |
| 13593 |
|
self._freeze = True |
| 13594 |
|
|
| 13595 |
|
def to_binary(self): |
| 13596 |
|
packet = [] |
| 13597 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.SubscriptionAcknowledgements))) |
| 13598 |
|
for fieldname in self.SubscriptionAcknowledgements: |
| 13599 |
|
packet.append(fieldname.to_binary()) |
| 13600 |
|
return b''.join(packet) |
| 13601 |
|
|
| 13602 |
|
@staticmethod |
| 13603 |
|
def from_binary(data): |
| 13604 |
|
return PublishParameters(data) |
| 13605 |
|
|
| 13606 |
|
def _binary_init(self, data): |
| 13607 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 13608 |
|
array = [] |
| 13609 |
|
if length != -1: |
| 13610 |
|
for _ in range(0, length): |
| 13611 |
|
array.append(SubscriptionAcknowledgement.from_binary(data)) |
| 13612 |
|
self.SubscriptionAcknowledgements = array |
| 13613 |
|
|
| 13614 |
|
def __str__(self): |
| 13615 |
|
return 'PublishParameters(' + 'SubscriptionAcknowledgements:' + str(self.SubscriptionAcknowledgements) + ')' |
| 13616 |
|
|
| 13617 |
|
__repr__ = __str__ |
| 13618 |
|
|
| 13619 |
|
|
| 13620 |
|
class PublishRequest(FrozenClass): |
|
@@ 13448-13488 (lines=41) @@
|
| 13445 |
|
__repr__ = __str__ |
| 13446 |
|
|
| 13447 |
|
|
| 13448 |
|
class HistoryEventFieldList(FrozenClass): |
| 13449 |
|
''' |
| 13450 |
|
:ivar EventFields: |
| 13451 |
|
:vartype EventFields: Variant |
| 13452 |
|
''' |
| 13453 |
|
|
| 13454 |
|
ua_types = { |
| 13455 |
|
'EventFields': 'Variant', |
| 13456 |
|
} |
| 13457 |
|
|
| 13458 |
|
def __init__(self, binary=None): |
| 13459 |
|
if binary is not None: |
| 13460 |
|
self._binary_init(binary) |
| 13461 |
|
self._freeze = True |
| 13462 |
|
return |
| 13463 |
|
self.EventFields = [] |
| 13464 |
|
self._freeze = True |
| 13465 |
|
|
| 13466 |
|
def to_binary(self): |
| 13467 |
|
packet = [] |
| 13468 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.EventFields))) |
| 13469 |
|
for fieldname in self.EventFields: |
| 13470 |
|
packet.append(fieldname.to_binary()) |
| 13471 |
|
return b''.join(packet) |
| 13472 |
|
|
| 13473 |
|
@staticmethod |
| 13474 |
|
def from_binary(data): |
| 13475 |
|
return HistoryEventFieldList(data) |
| 13476 |
|
|
| 13477 |
|
def _binary_init(self, data): |
| 13478 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 13479 |
|
array = [] |
| 13480 |
|
if length != -1: |
| 13481 |
|
for _ in range(0, length): |
| 13482 |
|
array.append(Variant.from_binary(data)) |
| 13483 |
|
self.EventFields = array |
| 13484 |
|
|
| 13485 |
|
def __str__(self): |
| 13486 |
|
return 'HistoryEventFieldList(' + 'EventFields:' + str(self.EventFields) + ')' |
| 13487 |
|
|
| 13488 |
|
__repr__ = __str__ |
| 13489 |
|
|
| 13490 |
|
|
| 13491 |
|
class StatusChangeNotification(FrozenClass): |
|
@@ 13355-13395 (lines=41) @@
|
| 13352 |
|
__repr__ = __str__ |
| 13353 |
|
|
| 13354 |
|
|
| 13355 |
|
class EventNotificationList(FrozenClass): |
| 13356 |
|
''' |
| 13357 |
|
:ivar Events: |
| 13358 |
|
:vartype Events: EventFieldList |
| 13359 |
|
''' |
| 13360 |
|
|
| 13361 |
|
ua_types = { |
| 13362 |
|
'Events': 'EventFieldList', |
| 13363 |
|
} |
| 13364 |
|
|
| 13365 |
|
def __init__(self, binary=None): |
| 13366 |
|
if binary is not None: |
| 13367 |
|
self._binary_init(binary) |
| 13368 |
|
self._freeze = True |
| 13369 |
|
return |
| 13370 |
|
self.Events = [] |
| 13371 |
|
self._freeze = True |
| 13372 |
|
|
| 13373 |
|
def to_binary(self): |
| 13374 |
|
packet = [] |
| 13375 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.Events))) |
| 13376 |
|
for fieldname in self.Events: |
| 13377 |
|
packet.append(fieldname.to_binary()) |
| 13378 |
|
return b''.join(packet) |
| 13379 |
|
|
| 13380 |
|
@staticmethod |
| 13381 |
|
def from_binary(data): |
| 13382 |
|
return EventNotificationList(data) |
| 13383 |
|
|
| 13384 |
|
def _binary_init(self, data): |
| 13385 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 13386 |
|
array = [] |
| 13387 |
|
if length != -1: |
| 13388 |
|
for _ in range(0, length): |
| 13389 |
|
array.append(EventFieldList.from_binary(data)) |
| 13390 |
|
self.Events = array |
| 13391 |
|
|
| 13392 |
|
def __str__(self): |
| 13393 |
|
return 'EventNotificationList(' + 'Events:' + str(self.Events) + ')' |
| 13394 |
|
|
| 13395 |
|
__repr__ = __str__ |
| 13396 |
|
|
| 13397 |
|
|
| 13398 |
|
class EventFieldList(FrozenClass): |
|
@@ 10700-10740 (lines=41) @@
|
| 10697 |
|
__repr__ = __str__ |
| 10698 |
|
|
| 10699 |
|
|
| 10700 |
|
class CallParameters(FrozenClass): |
| 10701 |
|
''' |
| 10702 |
|
:ivar MethodsToCall: |
| 10703 |
|
:vartype MethodsToCall: CallMethodRequest |
| 10704 |
|
''' |
| 10705 |
|
|
| 10706 |
|
ua_types = { |
| 10707 |
|
'MethodsToCall': 'CallMethodRequest', |
| 10708 |
|
} |
| 10709 |
|
|
| 10710 |
|
def __init__(self, binary=None): |
| 10711 |
|
if binary is not None: |
| 10712 |
|
self._binary_init(binary) |
| 10713 |
|
self._freeze = True |
| 10714 |
|
return |
| 10715 |
|
self.MethodsToCall = [] |
| 10716 |
|
self._freeze = True |
| 10717 |
|
|
| 10718 |
|
def to_binary(self): |
| 10719 |
|
packet = [] |
| 10720 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.MethodsToCall))) |
| 10721 |
|
for fieldname in self.MethodsToCall: |
| 10722 |
|
packet.append(fieldname.to_binary()) |
| 10723 |
|
return b''.join(packet) |
| 10724 |
|
|
| 10725 |
|
@staticmethod |
| 10726 |
|
def from_binary(data): |
| 10727 |
|
return CallParameters(data) |
| 10728 |
|
|
| 10729 |
|
def _binary_init(self, data): |
| 10730 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 10731 |
|
array = [] |
| 10732 |
|
if length != -1: |
| 10733 |
|
for _ in range(0, length): |
| 10734 |
|
array.append(CallMethodRequest.from_binary(data)) |
| 10735 |
|
self.MethodsToCall = array |
| 10736 |
|
|
| 10737 |
|
def __str__(self): |
| 10738 |
|
return 'CallParameters(' + 'MethodsToCall:' + str(self.MethodsToCall) + ')' |
| 10739 |
|
|
| 10740 |
|
__repr__ = __str__ |
| 10741 |
|
|
| 10742 |
|
|
| 10743 |
|
class CallRequest(FrozenClass): |
|
@@ 10401-10441 (lines=41) @@
|
| 10398 |
|
__repr__ = __str__ |
| 10399 |
|
|
| 10400 |
|
|
| 10401 |
|
class HistoryUpdateParameters(FrozenClass): |
| 10402 |
|
''' |
| 10403 |
|
:ivar HistoryUpdateDetails: |
| 10404 |
|
:vartype HistoryUpdateDetails: ExtensionObject |
| 10405 |
|
''' |
| 10406 |
|
|
| 10407 |
|
ua_types = { |
| 10408 |
|
'HistoryUpdateDetails': 'ExtensionObject', |
| 10409 |
|
} |
| 10410 |
|
|
| 10411 |
|
def __init__(self, binary=None): |
| 10412 |
|
if binary is not None: |
| 10413 |
|
self._binary_init(binary) |
| 10414 |
|
self._freeze = True |
| 10415 |
|
return |
| 10416 |
|
self.HistoryUpdateDetails = [] |
| 10417 |
|
self._freeze = True |
| 10418 |
|
|
| 10419 |
|
def to_binary(self): |
| 10420 |
|
packet = [] |
| 10421 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.HistoryUpdateDetails))) |
| 10422 |
|
for fieldname in self.HistoryUpdateDetails: |
| 10423 |
|
packet.append(extensionobject_to_binary(fieldname)) |
| 10424 |
|
return b''.join(packet) |
| 10425 |
|
|
| 10426 |
|
@staticmethod |
| 10427 |
|
def from_binary(data): |
| 10428 |
|
return HistoryUpdateParameters(data) |
| 10429 |
|
|
| 10430 |
|
def _binary_init(self, data): |
| 10431 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 10432 |
|
array = [] |
| 10433 |
|
if length != -1: |
| 10434 |
|
for _ in range(0, length): |
| 10435 |
|
array.append(extensionobject_from_binary(data)) |
| 10436 |
|
self.HistoryUpdateDetails = array |
| 10437 |
|
|
| 10438 |
|
def __str__(self): |
| 10439 |
|
return 'HistoryUpdateParameters(' + 'HistoryUpdateDetails:' + str(self.HistoryUpdateDetails) + ')' |
| 10440 |
|
|
| 10441 |
|
__repr__ = __str__ |
| 10442 |
|
|
| 10443 |
|
|
| 10444 |
|
class HistoryUpdateRequest(FrozenClass): |
|
@@ 9812-9852 (lines=41) @@
|
| 9809 |
|
__repr__ = __str__ |
| 9810 |
|
|
| 9811 |
|
|
| 9812 |
|
class WriteParameters(FrozenClass): |
| 9813 |
|
''' |
| 9814 |
|
:ivar NodesToWrite: |
| 9815 |
|
:vartype NodesToWrite: WriteValue |
| 9816 |
|
''' |
| 9817 |
|
|
| 9818 |
|
ua_types = { |
| 9819 |
|
'NodesToWrite': 'WriteValue', |
| 9820 |
|
} |
| 9821 |
|
|
| 9822 |
|
def __init__(self, binary=None): |
| 9823 |
|
if binary is not None: |
| 9824 |
|
self._binary_init(binary) |
| 9825 |
|
self._freeze = True |
| 9826 |
|
return |
| 9827 |
|
self.NodesToWrite = [] |
| 9828 |
|
self._freeze = True |
| 9829 |
|
|
| 9830 |
|
def to_binary(self): |
| 9831 |
|
packet = [] |
| 9832 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.NodesToWrite))) |
| 9833 |
|
for fieldname in self.NodesToWrite: |
| 9834 |
|
packet.append(fieldname.to_binary()) |
| 9835 |
|
return b''.join(packet) |
| 9836 |
|
|
| 9837 |
|
@staticmethod |
| 9838 |
|
def from_binary(data): |
| 9839 |
|
return WriteParameters(data) |
| 9840 |
|
|
| 9841 |
|
def _binary_init(self, data): |
| 9842 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 9843 |
|
array = [] |
| 9844 |
|
if length != -1: |
| 9845 |
|
for _ in range(0, length): |
| 9846 |
|
array.append(WriteValue.from_binary(data)) |
| 9847 |
|
self.NodesToWrite = array |
| 9848 |
|
|
| 9849 |
|
def __str__(self): |
| 9850 |
|
return 'WriteParameters(' + 'NodesToWrite:' + str(self.NodesToWrite) + ')' |
| 9851 |
|
|
| 9852 |
|
__repr__ = __str__ |
| 9853 |
|
|
| 9854 |
|
|
| 9855 |
|
class WriteRequest(FrozenClass): |
|
@@ 9527-9567 (lines=41) @@
|
| 9524 |
|
__repr__ = __str__ |
| 9525 |
|
|
| 9526 |
|
|
| 9527 |
|
class HistoryEvent(FrozenClass): |
| 9528 |
|
''' |
| 9529 |
|
:ivar Events: |
| 9530 |
|
:vartype Events: HistoryEventFieldList |
| 9531 |
|
''' |
| 9532 |
|
|
| 9533 |
|
ua_types = { |
| 9534 |
|
'Events': 'HistoryEventFieldList', |
| 9535 |
|
} |
| 9536 |
|
|
| 9537 |
|
def __init__(self, binary=None): |
| 9538 |
|
if binary is not None: |
| 9539 |
|
self._binary_init(binary) |
| 9540 |
|
self._freeze = True |
| 9541 |
|
return |
| 9542 |
|
self.Events = [] |
| 9543 |
|
self._freeze = True |
| 9544 |
|
|
| 9545 |
|
def to_binary(self): |
| 9546 |
|
packet = [] |
| 9547 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.Events))) |
| 9548 |
|
for fieldname in self.Events: |
| 9549 |
|
packet.append(fieldname.to_binary()) |
| 9550 |
|
return b''.join(packet) |
| 9551 |
|
|
| 9552 |
|
@staticmethod |
| 9553 |
|
def from_binary(data): |
| 9554 |
|
return HistoryEvent(data) |
| 9555 |
|
|
| 9556 |
|
def _binary_init(self, data): |
| 9557 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 9558 |
|
array = [] |
| 9559 |
|
if length != -1: |
| 9560 |
|
for _ in range(0, length): |
| 9561 |
|
array.append(HistoryEventFieldList.from_binary(data)) |
| 9562 |
|
self.Events = array |
| 9563 |
|
|
| 9564 |
|
def __str__(self): |
| 9565 |
|
return 'HistoryEvent(' + 'Events:' + str(self.Events) + ')' |
| 9566 |
|
|
| 9567 |
|
__repr__ = __str__ |
| 9568 |
|
|
| 9569 |
|
|
| 9570 |
|
class HistoryReadParameters(FrozenClass): |
|
@@ 9377-9417 (lines=41) @@
|
| 9374 |
|
__repr__ = __str__ |
| 9375 |
|
|
| 9376 |
|
|
| 9377 |
|
class HistoryData(FrozenClass): |
| 9378 |
|
''' |
| 9379 |
|
:ivar DataValues: |
| 9380 |
|
:vartype DataValues: DataValue |
| 9381 |
|
''' |
| 9382 |
|
|
| 9383 |
|
ua_types = { |
| 9384 |
|
'DataValues': 'DataValue', |
| 9385 |
|
} |
| 9386 |
|
|
| 9387 |
|
def __init__(self, binary=None): |
| 9388 |
|
if binary is not None: |
| 9389 |
|
self._binary_init(binary) |
| 9390 |
|
self._freeze = True |
| 9391 |
|
return |
| 9392 |
|
self.DataValues = [] |
| 9393 |
|
self._freeze = True |
| 9394 |
|
|
| 9395 |
|
def to_binary(self): |
| 9396 |
|
packet = [] |
| 9397 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.DataValues))) |
| 9398 |
|
for fieldname in self.DataValues: |
| 9399 |
|
packet.append(fieldname.to_binary()) |
| 9400 |
|
return b''.join(packet) |
| 9401 |
|
|
| 9402 |
|
@staticmethod |
| 9403 |
|
def from_binary(data): |
| 9404 |
|
return HistoryData(data) |
| 9405 |
|
|
| 9406 |
|
def _binary_init(self, data): |
| 9407 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 9408 |
|
array = [] |
| 9409 |
|
if length != -1: |
| 9410 |
|
for _ in range(0, length): |
| 9411 |
|
array.append(DataValue.from_binary(data)) |
| 9412 |
|
self.DataValues = array |
| 9413 |
|
|
| 9414 |
|
def __str__(self): |
| 9415 |
|
return 'HistoryData(' + 'DataValues:' + str(self.DataValues) + ')' |
| 9416 |
|
|
| 9417 |
|
__repr__ = __str__ |
| 9418 |
|
|
| 9419 |
|
|
| 9420 |
|
class ModificationInfo(FrozenClass): |
|
@@ 7890-7930 (lines=41) @@
|
| 7887 |
|
__repr__ = __str__ |
| 7888 |
|
|
| 7889 |
|
|
| 7890 |
|
class ContentFilter(FrozenClass): |
| 7891 |
|
''' |
| 7892 |
|
:ivar Elements: |
| 7893 |
|
:vartype Elements: ContentFilterElement |
| 7894 |
|
''' |
| 7895 |
|
|
| 7896 |
|
ua_types = { |
| 7897 |
|
'Elements': 'ContentFilterElement', |
| 7898 |
|
} |
| 7899 |
|
|
| 7900 |
|
def __init__(self, binary=None): |
| 7901 |
|
if binary is not None: |
| 7902 |
|
self._binary_init(binary) |
| 7903 |
|
self._freeze = True |
| 7904 |
|
return |
| 7905 |
|
self.Elements = [] |
| 7906 |
|
self._freeze = True |
| 7907 |
|
|
| 7908 |
|
def to_binary(self): |
| 7909 |
|
packet = [] |
| 7910 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.Elements))) |
| 7911 |
|
for fieldname in self.Elements: |
| 7912 |
|
packet.append(fieldname.to_binary()) |
| 7913 |
|
return b''.join(packet) |
| 7914 |
|
|
| 7915 |
|
@staticmethod |
| 7916 |
|
def from_binary(data): |
| 7917 |
|
return ContentFilter(data) |
| 7918 |
|
|
| 7919 |
|
def _binary_init(self, data): |
| 7920 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 7921 |
|
array = [] |
| 7922 |
|
if length != -1: |
| 7923 |
|
for _ in range(0, length): |
| 7924 |
|
array.append(ContentFilterElement.from_binary(data)) |
| 7925 |
|
self.Elements = array |
| 7926 |
|
|
| 7927 |
|
def __str__(self): |
| 7928 |
|
return 'ContentFilter(' + 'Elements:' + str(self.Elements) + ')' |
| 7929 |
|
|
| 7930 |
|
__repr__ = __str__ |
| 7931 |
|
|
| 7932 |
|
|
| 7933 |
|
class ElementOperand(FrozenClass): |
|
@@ 7201-7241 (lines=41) @@
|
| 7198 |
|
__repr__ = __str__ |
| 7199 |
|
|
| 7200 |
|
|
| 7201 |
|
class UnregisterNodesParameters(FrozenClass): |
| 7202 |
|
''' |
| 7203 |
|
:ivar NodesToUnregister: |
| 7204 |
|
:vartype NodesToUnregister: NodeId |
| 7205 |
|
''' |
| 7206 |
|
|
| 7207 |
|
ua_types = { |
| 7208 |
|
'NodesToUnregister': 'NodeId', |
| 7209 |
|
} |
| 7210 |
|
|
| 7211 |
|
def __init__(self, binary=None): |
| 7212 |
|
if binary is not None: |
| 7213 |
|
self._binary_init(binary) |
| 7214 |
|
self._freeze = True |
| 7215 |
|
return |
| 7216 |
|
self.NodesToUnregister = [] |
| 7217 |
|
self._freeze = True |
| 7218 |
|
|
| 7219 |
|
def to_binary(self): |
| 7220 |
|
packet = [] |
| 7221 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.NodesToUnregister))) |
| 7222 |
|
for fieldname in self.NodesToUnregister: |
| 7223 |
|
packet.append(fieldname.to_binary()) |
| 7224 |
|
return b''.join(packet) |
| 7225 |
|
|
| 7226 |
|
@staticmethod |
| 7227 |
|
def from_binary(data): |
| 7228 |
|
return UnregisterNodesParameters(data) |
| 7229 |
|
|
| 7230 |
|
def _binary_init(self, data): |
| 7231 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 7232 |
|
array = [] |
| 7233 |
|
if length != -1: |
| 7234 |
|
for _ in range(0, length): |
| 7235 |
|
array.append(NodeId.from_binary(data)) |
| 7236 |
|
self.NodesToUnregister = array |
| 7237 |
|
|
| 7238 |
|
def __str__(self): |
| 7239 |
|
return 'UnregisterNodesParameters(' + 'NodesToUnregister:' + str(self.NodesToUnregister) + ')' |
| 7240 |
|
|
| 7241 |
|
__repr__ = __str__ |
| 7242 |
|
|
| 7243 |
|
|
| 7244 |
|
class UnregisterNodesRequest(FrozenClass): |
|
@@ 7106-7146 (lines=41) @@
|
| 7103 |
|
__repr__ = __str__ |
| 7104 |
|
|
| 7105 |
|
|
| 7106 |
|
class RegisterNodesResult(FrozenClass): |
| 7107 |
|
''' |
| 7108 |
|
:ivar RegisteredNodeIds: |
| 7109 |
|
:vartype RegisteredNodeIds: NodeId |
| 7110 |
|
''' |
| 7111 |
|
|
| 7112 |
|
ua_types = { |
| 7113 |
|
'RegisteredNodeIds': 'NodeId', |
| 7114 |
|
} |
| 7115 |
|
|
| 7116 |
|
def __init__(self, binary=None): |
| 7117 |
|
if binary is not None: |
| 7118 |
|
self._binary_init(binary) |
| 7119 |
|
self._freeze = True |
| 7120 |
|
return |
| 7121 |
|
self.RegisteredNodeIds = [] |
| 7122 |
|
self._freeze = True |
| 7123 |
|
|
| 7124 |
|
def to_binary(self): |
| 7125 |
|
packet = [] |
| 7126 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.RegisteredNodeIds))) |
| 7127 |
|
for fieldname in self.RegisteredNodeIds: |
| 7128 |
|
packet.append(fieldname.to_binary()) |
| 7129 |
|
return b''.join(packet) |
| 7130 |
|
|
| 7131 |
|
@staticmethod |
| 7132 |
|
def from_binary(data): |
| 7133 |
|
return RegisterNodesResult(data) |
| 7134 |
|
|
| 7135 |
|
def _binary_init(self, data): |
| 7136 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 7137 |
|
array = [] |
| 7138 |
|
if length != -1: |
| 7139 |
|
for _ in range(0, length): |
| 7140 |
|
array.append(NodeId.from_binary(data)) |
| 7141 |
|
self.RegisteredNodeIds = array |
| 7142 |
|
|
| 7143 |
|
def __str__(self): |
| 7144 |
|
return 'RegisterNodesResult(' + 'RegisteredNodeIds:' + str(self.RegisteredNodeIds) + ')' |
| 7145 |
|
|
| 7146 |
|
__repr__ = __str__ |
| 7147 |
|
|
| 7148 |
|
|
| 7149 |
|
class RegisterNodesResponse(FrozenClass): |
|
@@ 7011-7051 (lines=41) @@
|
| 7008 |
|
__repr__ = __str__ |
| 7009 |
|
|
| 7010 |
|
|
| 7011 |
|
class RegisterNodesParameters(FrozenClass): |
| 7012 |
|
''' |
| 7013 |
|
:ivar NodesToRegister: |
| 7014 |
|
:vartype NodesToRegister: NodeId |
| 7015 |
|
''' |
| 7016 |
|
|
| 7017 |
|
ua_types = { |
| 7018 |
|
'NodesToRegister': 'NodeId', |
| 7019 |
|
} |
| 7020 |
|
|
| 7021 |
|
def __init__(self, binary=None): |
| 7022 |
|
if binary is not None: |
| 7023 |
|
self._binary_init(binary) |
| 7024 |
|
self._freeze = True |
| 7025 |
|
return |
| 7026 |
|
self.NodesToRegister = [] |
| 7027 |
|
self._freeze = True |
| 7028 |
|
|
| 7029 |
|
def to_binary(self): |
| 7030 |
|
packet = [] |
| 7031 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.NodesToRegister))) |
| 7032 |
|
for fieldname in self.NodesToRegister: |
| 7033 |
|
packet.append(fieldname.to_binary()) |
| 7034 |
|
return b''.join(packet) |
| 7035 |
|
|
| 7036 |
|
@staticmethod |
| 7037 |
|
def from_binary(data): |
| 7038 |
|
return RegisterNodesParameters(data) |
| 7039 |
|
|
| 7040 |
|
def _binary_init(self, data): |
| 7041 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 7042 |
|
array = [] |
| 7043 |
|
if length != -1: |
| 7044 |
|
for _ in range(0, length): |
| 7045 |
|
array.append(NodeId.from_binary(data)) |
| 7046 |
|
self.NodesToRegister = array |
| 7047 |
|
|
| 7048 |
|
def __str__(self): |
| 7049 |
|
return 'RegisterNodesParameters(' + 'NodesToRegister:' + str(self.NodesToRegister) + ')' |
| 7050 |
|
|
| 7051 |
|
__repr__ = __str__ |
| 7052 |
|
|
| 7053 |
|
|
| 7054 |
|
class RegisterNodesRequest(FrozenClass): |
|
@@ 6843-6883 (lines=41) @@
|
| 6840 |
|
__repr__ = __str__ |
| 6841 |
|
|
| 6842 |
|
|
| 6843 |
|
class TranslateBrowsePathsToNodeIdsParameters(FrozenClass): |
| 6844 |
|
''' |
| 6845 |
|
:ivar BrowsePaths: |
| 6846 |
|
:vartype BrowsePaths: BrowsePath |
| 6847 |
|
''' |
| 6848 |
|
|
| 6849 |
|
ua_types = { |
| 6850 |
|
'BrowsePaths': 'BrowsePath', |
| 6851 |
|
} |
| 6852 |
|
|
| 6853 |
|
def __init__(self, binary=None): |
| 6854 |
|
if binary is not None: |
| 6855 |
|
self._binary_init(binary) |
| 6856 |
|
self._freeze = True |
| 6857 |
|
return |
| 6858 |
|
self.BrowsePaths = [] |
| 6859 |
|
self._freeze = True |
| 6860 |
|
|
| 6861 |
|
def to_binary(self): |
| 6862 |
|
packet = [] |
| 6863 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.BrowsePaths))) |
| 6864 |
|
for fieldname in self.BrowsePaths: |
| 6865 |
|
packet.append(fieldname.to_binary()) |
| 6866 |
|
return b''.join(packet) |
| 6867 |
|
|
| 6868 |
|
@staticmethod |
| 6869 |
|
def from_binary(data): |
| 6870 |
|
return TranslateBrowsePathsToNodeIdsParameters(data) |
| 6871 |
|
|
| 6872 |
|
def _binary_init(self, data): |
| 6873 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 6874 |
|
array = [] |
| 6875 |
|
if length != -1: |
| 6876 |
|
for _ in range(0, length): |
| 6877 |
|
array.append(BrowsePath.from_binary(data)) |
| 6878 |
|
self.BrowsePaths = array |
| 6879 |
|
|
| 6880 |
|
def __str__(self): |
| 6881 |
|
return 'TranslateBrowsePathsToNodeIdsParameters(' + 'BrowsePaths:' + str(self.BrowsePaths) + ')' |
| 6882 |
|
|
| 6883 |
|
__repr__ = __str__ |
| 6884 |
|
|
| 6885 |
|
|
| 6886 |
|
class TranslateBrowsePathsToNodeIdsRequest(FrozenClass): |
|
@@ 5741-5781 (lines=41) @@
|
| 5738 |
|
__repr__ = __str__ |
| 5739 |
|
|
| 5740 |
|
|
| 5741 |
|
class DeleteReferencesParameters(FrozenClass): |
| 5742 |
|
''' |
| 5743 |
|
:ivar ReferencesToDelete: |
| 5744 |
|
:vartype ReferencesToDelete: DeleteReferencesItem |
| 5745 |
|
''' |
| 5746 |
|
|
| 5747 |
|
ua_types = { |
| 5748 |
|
'ReferencesToDelete': 'DeleteReferencesItem', |
| 5749 |
|
} |
| 5750 |
|
|
| 5751 |
|
def __init__(self, binary=None): |
| 5752 |
|
if binary is not None: |
| 5753 |
|
self._binary_init(binary) |
| 5754 |
|
self._freeze = True |
| 5755 |
|
return |
| 5756 |
|
self.ReferencesToDelete = [] |
| 5757 |
|
self._freeze = True |
| 5758 |
|
|
| 5759 |
|
def to_binary(self): |
| 5760 |
|
packet = [] |
| 5761 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.ReferencesToDelete))) |
| 5762 |
|
for fieldname in self.ReferencesToDelete: |
| 5763 |
|
packet.append(fieldname.to_binary()) |
| 5764 |
|
return b''.join(packet) |
| 5765 |
|
|
| 5766 |
|
@staticmethod |
| 5767 |
|
def from_binary(data): |
| 5768 |
|
return DeleteReferencesParameters(data) |
| 5769 |
|
|
| 5770 |
|
def _binary_init(self, data): |
| 5771 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 5772 |
|
array = [] |
| 5773 |
|
if length != -1: |
| 5774 |
|
for _ in range(0, length): |
| 5775 |
|
array.append(DeleteReferencesItem.from_binary(data)) |
| 5776 |
|
self.ReferencesToDelete = array |
| 5777 |
|
|
| 5778 |
|
def __str__(self): |
| 5779 |
|
return 'DeleteReferencesParameters(' + 'ReferencesToDelete:' + str(self.ReferencesToDelete) + ')' |
| 5780 |
|
|
| 5781 |
|
__repr__ = __str__ |
| 5782 |
|
|
| 5783 |
|
|
| 5784 |
|
class DeleteReferencesRequest(FrozenClass): |
|
@@ 5507-5547 (lines=41) @@
|
| 5504 |
|
__repr__ = __str__ |
| 5505 |
|
|
| 5506 |
|
|
| 5507 |
|
class DeleteNodesParameters(FrozenClass): |
| 5508 |
|
''' |
| 5509 |
|
:ivar NodesToDelete: |
| 5510 |
|
:vartype NodesToDelete: DeleteNodesItem |
| 5511 |
|
''' |
| 5512 |
|
|
| 5513 |
|
ua_types = { |
| 5514 |
|
'NodesToDelete': 'DeleteNodesItem', |
| 5515 |
|
} |
| 5516 |
|
|
| 5517 |
|
def __init__(self, binary=None): |
| 5518 |
|
if binary is not None: |
| 5519 |
|
self._binary_init(binary) |
| 5520 |
|
self._freeze = True |
| 5521 |
|
return |
| 5522 |
|
self.NodesToDelete = [] |
| 5523 |
|
self._freeze = True |
| 5524 |
|
|
| 5525 |
|
def to_binary(self): |
| 5526 |
|
packet = [] |
| 5527 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.NodesToDelete))) |
| 5528 |
|
for fieldname in self.NodesToDelete: |
| 5529 |
|
packet.append(fieldname.to_binary()) |
| 5530 |
|
return b''.join(packet) |
| 5531 |
|
|
| 5532 |
|
@staticmethod |
| 5533 |
|
def from_binary(data): |
| 5534 |
|
return DeleteNodesParameters(data) |
| 5535 |
|
|
| 5536 |
|
def _binary_init(self, data): |
| 5537 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 5538 |
|
array = [] |
| 5539 |
|
if length != -1: |
| 5540 |
|
for _ in range(0, length): |
| 5541 |
|
array.append(DeleteNodesItem.from_binary(data)) |
| 5542 |
|
self.NodesToDelete = array |
| 5543 |
|
|
| 5544 |
|
def __str__(self): |
| 5545 |
|
return 'DeleteNodesParameters(' + 'NodesToDelete:' + str(self.NodesToDelete) + ')' |
| 5546 |
|
|
| 5547 |
|
__repr__ = __str__ |
| 5548 |
|
|
| 5549 |
|
|
| 5550 |
|
class DeleteNodesRequest(FrozenClass): |
|
@@ 5294-5334 (lines=41) @@
|
| 5291 |
|
__repr__ = __str__ |
| 5292 |
|
|
| 5293 |
|
|
| 5294 |
|
class AddReferencesParameters(FrozenClass): |
| 5295 |
|
''' |
| 5296 |
|
:ivar ReferencesToAdd: |
| 5297 |
|
:vartype ReferencesToAdd: AddReferencesItem |
| 5298 |
|
''' |
| 5299 |
|
|
| 5300 |
|
ua_types = { |
| 5301 |
|
'ReferencesToAdd': 'AddReferencesItem', |
| 5302 |
|
} |
| 5303 |
|
|
| 5304 |
|
def __init__(self, binary=None): |
| 5305 |
|
if binary is not None: |
| 5306 |
|
self._binary_init(binary) |
| 5307 |
|
self._freeze = True |
| 5308 |
|
return |
| 5309 |
|
self.ReferencesToAdd = [] |
| 5310 |
|
self._freeze = True |
| 5311 |
|
|
| 5312 |
|
def to_binary(self): |
| 5313 |
|
packet = [] |
| 5314 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.ReferencesToAdd))) |
| 5315 |
|
for fieldname in self.ReferencesToAdd: |
| 5316 |
|
packet.append(fieldname.to_binary()) |
| 5317 |
|
return b''.join(packet) |
| 5318 |
|
|
| 5319 |
|
@staticmethod |
| 5320 |
|
def from_binary(data): |
| 5321 |
|
return AddReferencesParameters(data) |
| 5322 |
|
|
| 5323 |
|
def _binary_init(self, data): |
| 5324 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 5325 |
|
array = [] |
| 5326 |
|
if length != -1: |
| 5327 |
|
for _ in range(0, length): |
| 5328 |
|
array.append(AddReferencesItem.from_binary(data)) |
| 5329 |
|
self.ReferencesToAdd = array |
| 5330 |
|
|
| 5331 |
|
def __str__(self): |
| 5332 |
|
return 'AddReferencesParameters(' + 'ReferencesToAdd:' + str(self.ReferencesToAdd) + ')' |
| 5333 |
|
|
| 5334 |
|
__repr__ = __str__ |
| 5335 |
|
|
| 5336 |
|
|
| 5337 |
|
class AddReferencesRequest(FrozenClass): |
|
@@ 5053-5093 (lines=41) @@
|
| 5050 |
|
__repr__ = __str__ |
| 5051 |
|
|
| 5052 |
|
|
| 5053 |
|
class AddNodesParameters(FrozenClass): |
| 5054 |
|
''' |
| 5055 |
|
:ivar NodesToAdd: |
| 5056 |
|
:vartype NodesToAdd: AddNodesItem |
| 5057 |
|
''' |
| 5058 |
|
|
| 5059 |
|
ua_types = { |
| 5060 |
|
'NodesToAdd': 'AddNodesItem', |
| 5061 |
|
} |
| 5062 |
|
|
| 5063 |
|
def __init__(self, binary=None): |
| 5064 |
|
if binary is not None: |
| 5065 |
|
self._binary_init(binary) |
| 5066 |
|
self._freeze = True |
| 5067 |
|
return |
| 5068 |
|
self.NodesToAdd = [] |
| 5069 |
|
self._freeze = True |
| 5070 |
|
|
| 5071 |
|
def to_binary(self): |
| 5072 |
|
packet = [] |
| 5073 |
|
packet.append(uabin.Primitives.Int32.pack(len(self.NodesToAdd))) |
| 5074 |
|
for fieldname in self.NodesToAdd: |
| 5075 |
|
packet.append(fieldname.to_binary()) |
| 5076 |
|
return b''.join(packet) |
| 5077 |
|
|
| 5078 |
|
@staticmethod |
| 5079 |
|
def from_binary(data): |
| 5080 |
|
return AddNodesParameters(data) |
| 5081 |
|
|
| 5082 |
|
def _binary_init(self, data): |
| 5083 |
|
length = uabin.Primitives.Int32.unpack(data) |
| 5084 |
|
array = [] |
| 5085 |
|
if length != -1: |
| 5086 |
|
for _ in range(0, length): |
| 5087 |
|
array.append(AddNodesItem.from_binary(data)) |
| 5088 |
|
self.NodesToAdd = array |
| 5089 |
|
|
| 5090 |
|
def __str__(self): |
| 5091 |
|
return 'AddNodesParameters(' + 'NodesToAdd:' + str(self.NodesToAdd) + ')' |
| 5092 |
|
|
| 5093 |
|
__repr__ = __str__ |
| 5094 |
|
|
| 5095 |
|
|
| 5096 |
|
class AddNodesRequest(FrozenClass): |