@@ 5854-5891 (lines=38) @@ | ||
5851 | __repr__ = __str__ |
|
5852 | ||
5853 | ||
5854 | class RelativePath(FrozenClass): |
|
5855 | ''' |
|
5856 | A relative path constructed from reference types and browse names. |
|
5857 | ||
5858 | :ivar Elements: |
|
5859 | :vartype Elements: RelativePathElement |
|
5860 | ''' |
|
5861 | def __init__(self, binary=None): |
|
5862 | if binary is not None: |
|
5863 | self._binary_init(binary) |
|
5864 | self._freeze = True |
|
5865 | return |
|
5866 | self.Elements = [] |
|
5867 | self._freeze = True |
|
5868 | ||
5869 | def to_binary(self): |
|
5870 | packet = [] |
|
5871 | packet.append(uatype_Int32.pack(len(self.Elements))) |
|
5872 | for fieldname in self.Elements: |
|
5873 | packet.append(fieldname.to_binary()) |
|
5874 | return b''.join(packet) |
|
5875 | ||
5876 | @staticmethod |
|
5877 | def from_binary(data): |
|
5878 | return RelativePath(data) |
|
5879 | ||
5880 | def _binary_init(self, data): |
|
5881 | length = uatype_Int32.unpack(data.read(4))[0] |
|
5882 | array = [] |
|
5883 | if length != -1: |
|
5884 | for _ in range(0, length): |
|
5885 | array.append(RelativePathElement.from_binary(data)) |
|
5886 | self.Elements = array |
|
5887 | ||
5888 | def __str__(self): |
|
5889 | return 'RelativePath(' + 'Elements:' + str(self.Elements) + ')' |
|
5890 | ||
5891 | __repr__ = __str__ |
|
5892 | ||
5893 | ||
5894 | class BrowsePath(FrozenClass): |
|
@@ 12254-12290 (lines=37) @@ | ||
12251 | __repr__ = __str__ |
|
12252 | ||
12253 | ||
12254 | class TransferSubscriptionsParameters(FrozenClass): |
|
12255 | ''' |
|
12256 | :ivar SubscriptionIds: |
|
12257 | :vartype SubscriptionIds: UInt32 |
|
12258 | :ivar SendInitialValues: |
|
12259 | :vartype SendInitialValues: Boolean |
|
12260 | ''' |
|
12261 | def __init__(self, binary=None): |
|
12262 | if binary is not None: |
|
12263 | self._binary_init(binary) |
|
12264 | self._freeze = True |
|
12265 | return |
|
12266 | self.SubscriptionIds = [] |
|
12267 | self.SendInitialValues = True |
|
12268 | self._freeze = True |
|
12269 | ||
12270 | def to_binary(self): |
|
12271 | packet = [] |
|
12272 | packet.append(uatype_Int32.pack(len(self.SubscriptionIds))) |
|
12273 | for fieldname in self.SubscriptionIds: |
|
12274 | packet.append(uatype_UInt32.pack(fieldname)) |
|
12275 | packet.append(uatype_Boolean.pack(self.SendInitialValues)) |
|
12276 | return b''.join(packet) |
|
12277 | ||
12278 | @staticmethod |
|
12279 | def from_binary(data): |
|
12280 | return TransferSubscriptionsParameters(data) |
|
12281 | ||
12282 | def _binary_init(self, data): |
|
12283 | self.SubscriptionIds = unpack_uatype_array('UInt32', data) |
|
12284 | self.SendInitialValues = uatype_Boolean.unpack(data.read(1))[0] |
|
12285 | ||
12286 | def __str__(self): |
|
12287 | return 'TransferSubscriptionsParameters(' + 'SubscriptionIds:' + str(self.SubscriptionIds) + ', ' + \ |
|
12288 | 'SendInitialValues:' + str(self.SendInitialValues) + ')' |
|
12289 | ||
12290 | __repr__ = __str__ |
|
12291 | ||
12292 | ||
12293 | class TransferSubscriptionsRequest(FrozenClass): |
|
@@ 11356-11392 (lines=37) @@ | ||
11353 | __repr__ = __str__ |
|
11354 | ||
11355 | ||
11356 | class SetPublishingModeParameters(FrozenClass): |
|
11357 | ''' |
|
11358 | :ivar PublishingEnabled: |
|
11359 | :vartype PublishingEnabled: Boolean |
|
11360 | :ivar SubscriptionIds: |
|
11361 | :vartype SubscriptionIds: UInt32 |
|
11362 | ''' |
|
11363 | def __init__(self, binary=None): |
|
11364 | if binary is not None: |
|
11365 | self._binary_init(binary) |
|
11366 | self._freeze = True |
|
11367 | return |
|
11368 | self.PublishingEnabled = True |
|
11369 | self.SubscriptionIds = [] |
|
11370 | self._freeze = True |
|
11371 | ||
11372 | def to_binary(self): |
|
11373 | packet = [] |
|
11374 | packet.append(uatype_Boolean.pack(self.PublishingEnabled)) |
|
11375 | packet.append(uatype_Int32.pack(len(self.SubscriptionIds))) |
|
11376 | for fieldname in self.SubscriptionIds: |
|
11377 | packet.append(uatype_UInt32.pack(fieldname)) |
|
11378 | return b''.join(packet) |
|
11379 | ||
11380 | @staticmethod |
|
11381 | def from_binary(data): |
|
11382 | return SetPublishingModeParameters(data) |
|
11383 | ||
11384 | def _binary_init(self, data): |
|
11385 | self.PublishingEnabled = uatype_Boolean.unpack(data.read(1))[0] |
|
11386 | self.SubscriptionIds = unpack_uatype_array('UInt32', data) |
|
11387 | ||
11388 | def __str__(self): |
|
11389 | return 'SetPublishingModeParameters(' + 'PublishingEnabled:' + str(self.PublishingEnabled) + ', ' + \ |
|
11390 | 'SubscriptionIds:' + str(self.SubscriptionIds) + ')' |
|
11391 | ||
11392 | __repr__ = __str__ |
|
11393 | ||
11394 | ||
11395 | class SetPublishingModeRequest(FrozenClass): |
|
@@ 10825-10861 (lines=37) @@ | ||
10822 | __repr__ = __str__ |
|
10823 | ||
10824 | ||
10825 | class DeleteMonitoredItemsParameters(FrozenClass): |
|
10826 | ''' |
|
10827 | :ivar SubscriptionId: |
|
10828 | :vartype SubscriptionId: UInt32 |
|
10829 | :ivar MonitoredItemIds: |
|
10830 | :vartype MonitoredItemIds: UInt32 |
|
10831 | ''' |
|
10832 | def __init__(self, binary=None): |
|
10833 | if binary is not None: |
|
10834 | self._binary_init(binary) |
|
10835 | self._freeze = True |
|
10836 | return |
|
10837 | self.SubscriptionId = 0 |
|
10838 | self.MonitoredItemIds = [] |
|
10839 | self._freeze = True |
|
10840 | ||
10841 | def to_binary(self): |
|
10842 | packet = [] |
|
10843 | packet.append(uatype_UInt32.pack(self.SubscriptionId)) |
|
10844 | packet.append(uatype_Int32.pack(len(self.MonitoredItemIds))) |
|
10845 | for fieldname in self.MonitoredItemIds: |
|
10846 | packet.append(uatype_UInt32.pack(fieldname)) |
|
10847 | return b''.join(packet) |
|
10848 | ||
10849 | @staticmethod |
|
10850 | def from_binary(data): |
|
10851 | return DeleteMonitoredItemsParameters(data) |
|
10852 | ||
10853 | def _binary_init(self, data): |
|
10854 | self.SubscriptionId = uatype_UInt32.unpack(data.read(4))[0] |
|
10855 | self.MonitoredItemIds = unpack_uatype_array('UInt32', data) |
|
10856 | ||
10857 | def __str__(self): |
|
10858 | return 'DeleteMonitoredItemsParameters(' + 'SubscriptionId:' + str(self.SubscriptionId) + ', ' + \ |
|
10859 | 'MonitoredItemIds:' + str(self.MonitoredItemIds) + ')' |
|
10860 | ||
10861 | __repr__ = __str__ |
|
10862 | ||
10863 | ||
10864 | class DeleteMonitoredItemsRequest(FrozenClass): |
|
@@ 11891-11926 (lines=36) @@ | ||
11888 | __repr__ = __str__ |
|
11889 | ||
11890 | ||
11891 | class PublishParameters(FrozenClass): |
|
11892 | ''' |
|
11893 | :ivar SubscriptionAcknowledgements: |
|
11894 | :vartype SubscriptionAcknowledgements: SubscriptionAcknowledgement |
|
11895 | ''' |
|
11896 | def __init__(self, binary=None): |
|
11897 | if binary is not None: |
|
11898 | self._binary_init(binary) |
|
11899 | self._freeze = True |
|
11900 | return |
|
11901 | self.SubscriptionAcknowledgements = [] |
|
11902 | self._freeze = True |
|
11903 | ||
11904 | def to_binary(self): |
|
11905 | packet = [] |
|
11906 | packet.append(uatype_Int32.pack(len(self.SubscriptionAcknowledgements))) |
|
11907 | for fieldname in self.SubscriptionAcknowledgements: |
|
11908 | packet.append(fieldname.to_binary()) |
|
11909 | return b''.join(packet) |
|
11910 | ||
11911 | @staticmethod |
|
11912 | def from_binary(data): |
|
11913 | return PublishParameters(data) |
|
11914 | ||
11915 | def _binary_init(self, data): |
|
11916 | length = uatype_Int32.unpack(data.read(4))[0] |
|
11917 | array = [] |
|
11918 | if length != -1: |
|
11919 | for _ in range(0, length): |
|
11920 | array.append(SubscriptionAcknowledgement.from_binary(data)) |
|
11921 | self.SubscriptionAcknowledgements = array |
|
11922 | ||
11923 | def __str__(self): |
|
11924 | return 'PublishParameters(' + 'SubscriptionAcknowledgements:' + str(self.SubscriptionAcknowledgements) + ')' |
|
11925 | ||
11926 | __repr__ = __str__ |
|
11927 | ||
11928 | ||
11929 | class PublishRequest(FrozenClass): |
|
@@ 11779-11814 (lines=36) @@ | ||
11776 | __repr__ = __str__ |
|
11777 | ||
11778 | ||
11779 | class HistoryEventFieldList(FrozenClass): |
|
11780 | ''' |
|
11781 | :ivar EventFields: |
|
11782 | :vartype EventFields: Variant |
|
11783 | ''' |
|
11784 | def __init__(self, binary=None): |
|
11785 | if binary is not None: |
|
11786 | self._binary_init(binary) |
|
11787 | self._freeze = True |
|
11788 | return |
|
11789 | self.EventFields = [] |
|
11790 | self._freeze = True |
|
11791 | ||
11792 | def to_binary(self): |
|
11793 | packet = [] |
|
11794 | packet.append(uatype_Int32.pack(len(self.EventFields))) |
|
11795 | for fieldname in self.EventFields: |
|
11796 | packet.append(fieldname.to_binary()) |
|
11797 | return b''.join(packet) |
|
11798 | ||
11799 | @staticmethod |
|
11800 | def from_binary(data): |
|
11801 | return HistoryEventFieldList(data) |
|
11802 | ||
11803 | def _binary_init(self, data): |
|
11804 | length = uatype_Int32.unpack(data.read(4))[0] |
|
11805 | array = [] |
|
11806 | if length != -1: |
|
11807 | for _ in range(0, length): |
|
11808 | array.append(Variant.from_binary(data)) |
|
11809 | self.EventFields = array |
|
11810 | ||
11811 | def __str__(self): |
|
11812 | return 'HistoryEventFieldList(' + 'EventFields:' + str(self.EventFields) + ')' |
|
11813 | ||
11814 | __repr__ = __str__ |
|
11815 | ||
11816 | ||
11817 | class StatusChangeNotification(FrozenClass): |
|
@@ 11697-11732 (lines=36) @@ | ||
11694 | __repr__ = __str__ |
|
11695 | ||
11696 | ||
11697 | class EventNotificationList(FrozenClass): |
|
11698 | ''' |
|
11699 | :ivar Events: |
|
11700 | :vartype Events: EventFieldList |
|
11701 | ''' |
|
11702 | def __init__(self, binary=None): |
|
11703 | if binary is not None: |
|
11704 | self._binary_init(binary) |
|
11705 | self._freeze = True |
|
11706 | return |
|
11707 | self.Events = [] |
|
11708 | self._freeze = True |
|
11709 | ||
11710 | def to_binary(self): |
|
11711 | packet = [] |
|
11712 | packet.append(uatype_Int32.pack(len(self.Events))) |
|
11713 | for fieldname in self.Events: |
|
11714 | packet.append(fieldname.to_binary()) |
|
11715 | return b''.join(packet) |
|
11716 | ||
11717 | @staticmethod |
|
11718 | def from_binary(data): |
|
11719 | return EventNotificationList(data) |
|
11720 | ||
11721 | def _binary_init(self, data): |
|
11722 | length = uatype_Int32.unpack(data.read(4))[0] |
|
11723 | array = [] |
|
11724 | if length != -1: |
|
11725 | for _ in range(0, length): |
|
11726 | array.append(EventFieldList.from_binary(data)) |
|
11727 | self.Events = array |
|
11728 | ||
11729 | def __str__(self): |
|
11730 | return 'EventNotificationList(' + 'Events:' + str(self.Events) + ')' |
|
11731 | ||
11732 | __repr__ = __str__ |
|
11733 | ||
11734 | ||
11735 | class EventFieldList(FrozenClass): |
|
@@ 9387-9422 (lines=36) @@ | ||
9384 | __repr__ = __str__ |
|
9385 | ||
9386 | ||
9387 | class CallParameters(FrozenClass): |
|
9388 | ''' |
|
9389 | :ivar MethodsToCall: |
|
9390 | :vartype MethodsToCall: CallMethodRequest |
|
9391 | ''' |
|
9392 | def __init__(self, binary=None): |
|
9393 | if binary is not None: |
|
9394 | self._binary_init(binary) |
|
9395 | self._freeze = True |
|
9396 | return |
|
9397 | self.MethodsToCall = [] |
|
9398 | self._freeze = True |
|
9399 | ||
9400 | def to_binary(self): |
|
9401 | packet = [] |
|
9402 | packet.append(uatype_Int32.pack(len(self.MethodsToCall))) |
|
9403 | for fieldname in self.MethodsToCall: |
|
9404 | packet.append(fieldname.to_binary()) |
|
9405 | return b''.join(packet) |
|
9406 | ||
9407 | @staticmethod |
|
9408 | def from_binary(data): |
|
9409 | return CallParameters(data) |
|
9410 | ||
9411 | def _binary_init(self, data): |
|
9412 | length = uatype_Int32.unpack(data.read(4))[0] |
|
9413 | array = [] |
|
9414 | if length != -1: |
|
9415 | for _ in range(0, length): |
|
9416 | array.append(CallMethodRequest.from_binary(data)) |
|
9417 | self.MethodsToCall = array |
|
9418 | ||
9419 | def __str__(self): |
|
9420 | return 'CallParameters(' + 'MethodsToCall:' + str(self.MethodsToCall) + ')' |
|
9421 | ||
9422 | __repr__ = __str__ |
|
9423 | ||
9424 | ||
9425 | class CallRequest(FrozenClass): |
|
@@ 9123-9158 (lines=36) @@ | ||
9120 | __repr__ = __str__ |
|
9121 | ||
9122 | ||
9123 | class HistoryUpdateParameters(FrozenClass): |
|
9124 | ''' |
|
9125 | :ivar HistoryUpdateDetails: |
|
9126 | :vartype HistoryUpdateDetails: ExtensionObject |
|
9127 | ''' |
|
9128 | def __init__(self, binary=None): |
|
9129 | if binary is not None: |
|
9130 | self._binary_init(binary) |
|
9131 | self._freeze = True |
|
9132 | return |
|
9133 | self.HistoryUpdateDetails = [] |
|
9134 | self._freeze = True |
|
9135 | ||
9136 | def to_binary(self): |
|
9137 | packet = [] |
|
9138 | packet.append(uatype_Int32.pack(len(self.HistoryUpdateDetails))) |
|
9139 | for fieldname in self.HistoryUpdateDetails: |
|
9140 | packet.append(extensionobject_to_binary(fieldname)) |
|
9141 | return b''.join(packet) |
|
9142 | ||
9143 | @staticmethod |
|
9144 | def from_binary(data): |
|
9145 | return HistoryUpdateParameters(data) |
|
9146 | ||
9147 | def _binary_init(self, data): |
|
9148 | length = uatype_Int32.unpack(data.read(4))[0] |
|
9149 | array = [] |
|
9150 | if length != -1: |
|
9151 | for _ in range(0, length): |
|
9152 | array.append(extensionobject_from_binary(data)) |
|
9153 | self.HistoryUpdateDetails = array |
|
9154 | ||
9155 | def __str__(self): |
|
9156 | return 'HistoryUpdateParameters(' + 'HistoryUpdateDetails:' + str(self.HistoryUpdateDetails) + ')' |
|
9157 | ||
9158 | __repr__ = __str__ |
|
9159 | ||
9160 | ||
9161 | class HistoryUpdateRequest(FrozenClass): |
|
@@ 8608-8643 (lines=36) @@ | ||
8605 | __repr__ = __str__ |
|
8606 | ||
8607 | ||
8608 | class WriteParameters(FrozenClass): |
|
8609 | ''' |
|
8610 | :ivar NodesToWrite: |
|
8611 | :vartype NodesToWrite: WriteValue |
|
8612 | ''' |
|
8613 | def __init__(self, binary=None): |
|
8614 | if binary is not None: |
|
8615 | self._binary_init(binary) |
|
8616 | self._freeze = True |
|
8617 | return |
|
8618 | self.NodesToWrite = [] |
|
8619 | self._freeze = True |
|
8620 | ||
8621 | def to_binary(self): |
|
8622 | packet = [] |
|
8623 | packet.append(uatype_Int32.pack(len(self.NodesToWrite))) |
|
8624 | for fieldname in self.NodesToWrite: |
|
8625 | packet.append(fieldname.to_binary()) |
|
8626 | return b''.join(packet) |
|
8627 | ||
8628 | @staticmethod |
|
8629 | def from_binary(data): |
|
8630 | return WriteParameters(data) |
|
8631 | ||
8632 | def _binary_init(self, data): |
|
8633 | length = uatype_Int32.unpack(data.read(4))[0] |
|
8634 | array = [] |
|
8635 | if length != -1: |
|
8636 | for _ in range(0, length): |
|
8637 | array.append(WriteValue.from_binary(data)) |
|
8638 | self.NodesToWrite = array |
|
8639 | ||
8640 | def __str__(self): |
|
8641 | return 'WriteParameters(' + 'NodesToWrite:' + str(self.NodesToWrite) + ')' |
|
8642 | ||
8643 | __repr__ = __str__ |
|
8644 | ||
8645 | ||
8646 | class WriteRequest(FrozenClass): |
|
@@ 8359-8394 (lines=36) @@ | ||
8356 | __repr__ = __str__ |
|
8357 | ||
8358 | ||
8359 | class HistoryEvent(FrozenClass): |
|
8360 | ''' |
|
8361 | :ivar Events: |
|
8362 | :vartype Events: HistoryEventFieldList |
|
8363 | ''' |
|
8364 | def __init__(self, binary=None): |
|
8365 | if binary is not None: |
|
8366 | self._binary_init(binary) |
|
8367 | self._freeze = True |
|
8368 | return |
|
8369 | self.Events = [] |
|
8370 | self._freeze = True |
|
8371 | ||
8372 | def to_binary(self): |
|
8373 | packet = [] |
|
8374 | packet.append(uatype_Int32.pack(len(self.Events))) |
|
8375 | for fieldname in self.Events: |
|
8376 | packet.append(fieldname.to_binary()) |
|
8377 | return b''.join(packet) |
|
8378 | ||
8379 | @staticmethod |
|
8380 | def from_binary(data): |
|
8381 | return HistoryEvent(data) |
|
8382 | ||
8383 | def _binary_init(self, data): |
|
8384 | length = uatype_Int32.unpack(data.read(4))[0] |
|
8385 | array = [] |
|
8386 | if length != -1: |
|
8387 | for _ in range(0, length): |
|
8388 | array.append(HistoryEventFieldList.from_binary(data)) |
|
8389 | self.Events = array |
|
8390 | ||
8391 | def __str__(self): |
|
8392 | return 'HistoryEvent(' + 'Events:' + str(self.Events) + ')' |
|
8393 | ||
8394 | __repr__ = __str__ |
|
8395 | ||
8396 | ||
8397 | class HistoryReadParameters(FrozenClass): |
|
@@ 8227-8262 (lines=36) @@ | ||
8224 | __repr__ = __str__ |
|
8225 | ||
8226 | ||
8227 | class HistoryData(FrozenClass): |
|
8228 | ''' |
|
8229 | :ivar DataValues: |
|
8230 | :vartype DataValues: DataValue |
|
8231 | ''' |
|
8232 | def __init__(self, binary=None): |
|
8233 | if binary is not None: |
|
8234 | self._binary_init(binary) |
|
8235 | self._freeze = True |
|
8236 | return |
|
8237 | self.DataValues = [] |
|
8238 | self._freeze = True |
|
8239 | ||
8240 | def to_binary(self): |
|
8241 | packet = [] |
|
8242 | packet.append(uatype_Int32.pack(len(self.DataValues))) |
|
8243 | for fieldname in self.DataValues: |
|
8244 | packet.append(fieldname.to_binary()) |
|
8245 | return b''.join(packet) |
|
8246 | ||
8247 | @staticmethod |
|
8248 | def from_binary(data): |
|
8249 | return HistoryData(data) |
|
8250 | ||
8251 | def _binary_init(self, data): |
|
8252 | length = uatype_Int32.unpack(data.read(4))[0] |
|
8253 | array = [] |
|
8254 | if length != -1: |
|
8255 | for _ in range(0, length): |
|
8256 | array.append(DataValue.from_binary(data)) |
|
8257 | self.DataValues = array |
|
8258 | ||
8259 | def __str__(self): |
|
8260 | return 'HistoryData(' + 'DataValues:' + str(self.DataValues) + ')' |
|
8261 | ||
8262 | __repr__ = __str__ |
|
8263 | ||
8264 | ||
8265 | class ModificationInfo(FrozenClass): |
|
@@ 6931-6966 (lines=36) @@ | ||
6928 | __repr__ = __str__ |
|
6929 | ||
6930 | ||
6931 | class ContentFilter(FrozenClass): |
|
6932 | ''' |
|
6933 | :ivar Elements: |
|
6934 | :vartype Elements: ContentFilterElement |
|
6935 | ''' |
|
6936 | def __init__(self, binary=None): |
|
6937 | if binary is not None: |
|
6938 | self._binary_init(binary) |
|
6939 | self._freeze = True |
|
6940 | return |
|
6941 | self.Elements = [] |
|
6942 | self._freeze = True |
|
6943 | ||
6944 | def to_binary(self): |
|
6945 | packet = [] |
|
6946 | packet.append(uatype_Int32.pack(len(self.Elements))) |
|
6947 | for fieldname in self.Elements: |
|
6948 | packet.append(fieldname.to_binary()) |
|
6949 | return b''.join(packet) |
|
6950 | ||
6951 | @staticmethod |
|
6952 | def from_binary(data): |
|
6953 | return ContentFilter(data) |
|
6954 | ||
6955 | def _binary_init(self, data): |
|
6956 | length = uatype_Int32.unpack(data.read(4))[0] |
|
6957 | array = [] |
|
6958 | if length != -1: |
|
6959 | for _ in range(0, length): |
|
6960 | array.append(ContentFilterElement.from_binary(data)) |
|
6961 | self.Elements = array |
|
6962 | ||
6963 | def __str__(self): |
|
6964 | return 'ContentFilter(' + 'Elements:' + str(self.Elements) + ')' |
|
6965 | ||
6966 | __repr__ = __str__ |
|
6967 | ||
6968 | ||
6969 | class ElementOperand(FrozenClass): |
|
@@ 6332-6367 (lines=36) @@ | ||
6329 | __repr__ = __str__ |
|
6330 | ||
6331 | ||
6332 | class UnregisterNodesParameters(FrozenClass): |
|
6333 | ''' |
|
6334 | :ivar NodesToUnregister: |
|
6335 | :vartype NodesToUnregister: NodeId |
|
6336 | ''' |
|
6337 | def __init__(self, binary=None): |
|
6338 | if binary is not None: |
|
6339 | self._binary_init(binary) |
|
6340 | self._freeze = True |
|
6341 | return |
|
6342 | self.NodesToUnregister = [] |
|
6343 | self._freeze = True |
|
6344 | ||
6345 | def to_binary(self): |
|
6346 | packet = [] |
|
6347 | packet.append(uatype_Int32.pack(len(self.NodesToUnregister))) |
|
6348 | for fieldname in self.NodesToUnregister: |
|
6349 | packet.append(fieldname.to_binary()) |
|
6350 | return b''.join(packet) |
|
6351 | ||
6352 | @staticmethod |
|
6353 | def from_binary(data): |
|
6354 | return UnregisterNodesParameters(data) |
|
6355 | ||
6356 | def _binary_init(self, data): |
|
6357 | length = uatype_Int32.unpack(data.read(4))[0] |
|
6358 | array = [] |
|
6359 | if length != -1: |
|
6360 | for _ in range(0, length): |
|
6361 | array.append(NodeId.from_binary(data)) |
|
6362 | self.NodesToUnregister = array |
|
6363 | ||
6364 | def __str__(self): |
|
6365 | return 'UnregisterNodesParameters(' + 'NodesToUnregister:' + str(self.NodesToUnregister) + ')' |
|
6366 | ||
6367 | __repr__ = __str__ |
|
6368 | ||
6369 | ||
6370 | class UnregisterNodesRequest(FrozenClass): |
|
@@ 6249-6284 (lines=36) @@ | ||
6246 | __repr__ = __str__ |
|
6247 | ||
6248 | ||
6249 | class RegisterNodesResult(FrozenClass): |
|
6250 | ''' |
|
6251 | :ivar RegisteredNodeIds: |
|
6252 | :vartype RegisteredNodeIds: NodeId |
|
6253 | ''' |
|
6254 | def __init__(self, binary=None): |
|
6255 | if binary is not None: |
|
6256 | self._binary_init(binary) |
|
6257 | self._freeze = True |
|
6258 | return |
|
6259 | self.RegisteredNodeIds = [] |
|
6260 | self._freeze = True |
|
6261 | ||
6262 | def to_binary(self): |
|
6263 | packet = [] |
|
6264 | packet.append(uatype_Int32.pack(len(self.RegisteredNodeIds))) |
|
6265 | for fieldname in self.RegisteredNodeIds: |
|
6266 | packet.append(fieldname.to_binary()) |
|
6267 | return b''.join(packet) |
|
6268 | ||
6269 | @staticmethod |
|
6270 | def from_binary(data): |
|
6271 | return RegisterNodesResult(data) |
|
6272 | ||
6273 | def _binary_init(self, data): |
|
6274 | length = uatype_Int32.unpack(data.read(4))[0] |
|
6275 | array = [] |
|
6276 | if length != -1: |
|
6277 | for _ in range(0, length): |
|
6278 | array.append(NodeId.from_binary(data)) |
|
6279 | self.RegisteredNodeIds = array |
|
6280 | ||
6281 | def __str__(self): |
|
6282 | return 'RegisterNodesResult(' + 'RegisteredNodeIds:' + str(self.RegisteredNodeIds) + ')' |
|
6283 | ||
6284 | __repr__ = __str__ |
|
6285 | ||
6286 | ||
6287 | class RegisterNodesResponse(FrozenClass): |
|
@@ 6166-6201 (lines=36) @@ | ||
6163 | __repr__ = __str__ |
|
6164 | ||
6165 | ||
6166 | class RegisterNodesParameters(FrozenClass): |
|
6167 | ''' |
|
6168 | :ivar NodesToRegister: |
|
6169 | :vartype NodesToRegister: NodeId |
|
6170 | ''' |
|
6171 | def __init__(self, binary=None): |
|
6172 | if binary is not None: |
|
6173 | self._binary_init(binary) |
|
6174 | self._freeze = True |
|
6175 | return |
|
6176 | self.NodesToRegister = [] |
|
6177 | self._freeze = True |
|
6178 | ||
6179 | def to_binary(self): |
|
6180 | packet = [] |
|
6181 | packet.append(uatype_Int32.pack(len(self.NodesToRegister))) |
|
6182 | for fieldname in self.NodesToRegister: |
|
6183 | packet.append(fieldname.to_binary()) |
|
6184 | return b''.join(packet) |
|
6185 | ||
6186 | @staticmethod |
|
6187 | def from_binary(data): |
|
6188 | return RegisterNodesParameters(data) |
|
6189 | ||
6190 | def _binary_init(self, data): |
|
6191 | length = uatype_Int32.unpack(data.read(4))[0] |
|
6192 | array = [] |
|
6193 | if length != -1: |
|
6194 | for _ in range(0, length): |
|
6195 | array.append(NodeId.from_binary(data)) |
|
6196 | self.NodesToRegister = array |
|
6197 | ||
6198 | def __str__(self): |
|
6199 | return 'RegisterNodesParameters(' + 'NodesToRegister:' + str(self.NodesToRegister) + ')' |
|
6200 | ||
6201 | __repr__ = __str__ |
|
6202 | ||
6203 | ||
6204 | class RegisterNodesRequest(FrozenClass): |
|
@@ 6018-6053 (lines=36) @@ | ||
6015 | __repr__ = __str__ |
|
6016 | ||
6017 | ||
6018 | class TranslateBrowsePathsToNodeIdsParameters(FrozenClass): |
|
6019 | ''' |
|
6020 | :ivar BrowsePaths: |
|
6021 | :vartype BrowsePaths: BrowsePath |
|
6022 | ''' |
|
6023 | def __init__(self, binary=None): |
|
6024 | if binary is not None: |
|
6025 | self._binary_init(binary) |
|
6026 | self._freeze = True |
|
6027 | return |
|
6028 | self.BrowsePaths = [] |
|
6029 | self._freeze = True |
|
6030 | ||
6031 | def to_binary(self): |
|
6032 | packet = [] |
|
6033 | packet.append(uatype_Int32.pack(len(self.BrowsePaths))) |
|
6034 | for fieldname in self.BrowsePaths: |
|
6035 | packet.append(fieldname.to_binary()) |
|
6036 | return b''.join(packet) |
|
6037 | ||
6038 | @staticmethod |
|
6039 | def from_binary(data): |
|
6040 | return TranslateBrowsePathsToNodeIdsParameters(data) |
|
6041 | ||
6042 | def _binary_init(self, data): |
|
6043 | length = uatype_Int32.unpack(data.read(4))[0] |
|
6044 | array = [] |
|
6045 | if length != -1: |
|
6046 | for _ in range(0, length): |
|
6047 | array.append(BrowsePath.from_binary(data)) |
|
6048 | self.BrowsePaths = array |
|
6049 | ||
6050 | def __str__(self): |
|
6051 | return 'TranslateBrowsePathsToNodeIdsParameters(' + 'BrowsePaths:' + str(self.BrowsePaths) + ')' |
|
6052 | ||
6053 | __repr__ = __str__ |
|
6054 | ||
6055 | ||
6056 | class TranslateBrowsePathsToNodeIdsRequest(FrozenClass): |
|
@@ 5055-5090 (lines=36) @@ | ||
5052 | __repr__ = __str__ |
|
5053 | ||
5054 | ||
5055 | class DeleteReferencesParameters(FrozenClass): |
|
5056 | ''' |
|
5057 | :ivar ReferencesToDelete: |
|
5058 | :vartype ReferencesToDelete: DeleteReferencesItem |
|
5059 | ''' |
|
5060 | def __init__(self, binary=None): |
|
5061 | if binary is not None: |
|
5062 | self._binary_init(binary) |
|
5063 | self._freeze = True |
|
5064 | return |
|
5065 | self.ReferencesToDelete = [] |
|
5066 | self._freeze = True |
|
5067 | ||
5068 | def to_binary(self): |
|
5069 | packet = [] |
|
5070 | packet.append(uatype_Int32.pack(len(self.ReferencesToDelete))) |
|
5071 | for fieldname in self.ReferencesToDelete: |
|
5072 | packet.append(fieldname.to_binary()) |
|
5073 | return b''.join(packet) |
|
5074 | ||
5075 | @staticmethod |
|
5076 | def from_binary(data): |
|
5077 | return DeleteReferencesParameters(data) |
|
5078 | ||
5079 | def _binary_init(self, data): |
|
5080 | length = uatype_Int32.unpack(data.read(4))[0] |
|
5081 | array = [] |
|
5082 | if length != -1: |
|
5083 | for _ in range(0, length): |
|
5084 | array.append(DeleteReferencesItem.from_binary(data)) |
|
5085 | self.ReferencesToDelete = array |
|
5086 | ||
5087 | def __str__(self): |
|
5088 | return 'DeleteReferencesParameters(' + 'ReferencesToDelete:' + str(self.ReferencesToDelete) + ')' |
|
5089 | ||
5090 | __repr__ = __str__ |
|
5091 | ||
5092 | ||
5093 | class DeleteReferencesRequest(FrozenClass): |
|
@@ 4850-4885 (lines=36) @@ | ||
4847 | __repr__ = __str__ |
|
4848 | ||
4849 | ||
4850 | class DeleteNodesParameters(FrozenClass): |
|
4851 | ''' |
|
4852 | :ivar NodesToDelete: |
|
4853 | :vartype NodesToDelete: DeleteNodesItem |
|
4854 | ''' |
|
4855 | def __init__(self, binary=None): |
|
4856 | if binary is not None: |
|
4857 | self._binary_init(binary) |
|
4858 | self._freeze = True |
|
4859 | return |
|
4860 | self.NodesToDelete = [] |
|
4861 | self._freeze = True |
|
4862 | ||
4863 | def to_binary(self): |
|
4864 | packet = [] |
|
4865 | packet.append(uatype_Int32.pack(len(self.NodesToDelete))) |
|
4866 | for fieldname in self.NodesToDelete: |
|
4867 | packet.append(fieldname.to_binary()) |
|
4868 | return b''.join(packet) |
|
4869 | ||
4870 | @staticmethod |
|
4871 | def from_binary(data): |
|
4872 | return DeleteNodesParameters(data) |
|
4873 | ||
4874 | def _binary_init(self, data): |
|
4875 | length = uatype_Int32.unpack(data.read(4))[0] |
|
4876 | array = [] |
|
4877 | if length != -1: |
|
4878 | for _ in range(0, length): |
|
4879 | array.append(DeleteNodesItem.from_binary(data)) |
|
4880 | self.NodesToDelete = array |
|
4881 | ||
4882 | def __str__(self): |
|
4883 | return 'DeleteNodesParameters(' + 'NodesToDelete:' + str(self.NodesToDelete) + ')' |
|
4884 | ||
4885 | __repr__ = __str__ |
|
4886 | ||
4887 | ||
4888 | class DeleteNodesRequest(FrozenClass): |
|
@@ 4483-4518 (lines=36) @@ | ||
4480 | __repr__ = __str__ |
|
4481 | ||
4482 | ||
4483 | class AddNodesParameters(FrozenClass): |
|
4484 | ''' |
|
4485 | :ivar NodesToAdd: |
|
4486 | :vartype NodesToAdd: AddNodesItem |
|
4487 | ''' |
|
4488 | def __init__(self, binary=None): |
|
4489 | if binary is not None: |
|
4490 | self._binary_init(binary) |
|
4491 | self._freeze = True |
|
4492 | return |
|
4493 | self.NodesToAdd = [] |
|
4494 | self._freeze = True |
|
4495 | ||
4496 | def to_binary(self): |
|
4497 | packet = [] |
|
4498 | packet.append(uatype_Int32.pack(len(self.NodesToAdd))) |
|
4499 | for fieldname in self.NodesToAdd: |
|
4500 | packet.append(fieldname.to_binary()) |
|
4501 | return b''.join(packet) |
|
4502 | ||
4503 | @staticmethod |
|
4504 | def from_binary(data): |
|
4505 | return AddNodesParameters(data) |
|
4506 | ||
4507 | def _binary_init(self, data): |
|
4508 | length = uatype_Int32.unpack(data.read(4))[0] |
|
4509 | array = [] |
|
4510 | if length != -1: |
|
4511 | for _ in range(0, length): |
|
4512 | array.append(AddNodesItem.from_binary(data)) |
|
4513 | self.NodesToAdd = array |
|
4514 | ||
4515 | def __str__(self): |
|
4516 | return 'AddNodesParameters(' + 'NodesToAdd:' + str(self.NodesToAdd) + ')' |
|
4517 | ||
4518 | __repr__ = __str__ |
|
4519 | ||
4520 | ||
4521 | class AddNodesRequest(FrozenClass): |