@@ 12215-12251 (lines=37) @@ | ||
12212 | __repr__ = __str__ |
|
12213 | ||
12214 | ||
12215 | class TransferResult(FrozenClass): |
|
12216 | ''' |
|
12217 | :ivar StatusCode: |
|
12218 | :vartype StatusCode: StatusCode |
|
12219 | :ivar AvailableSequenceNumbers: |
|
12220 | :vartype AvailableSequenceNumbers: UInt32 |
|
12221 | ''' |
|
12222 | def __init__(self, binary=None): |
|
12223 | if binary is not None: |
|
12224 | self._binary_init(binary) |
|
12225 | self._freeze = True |
|
12226 | return |
|
12227 | self.StatusCode = StatusCode() |
|
12228 | self.AvailableSequenceNumbers = [] |
|
12229 | self._freeze = True |
|
12230 | ||
12231 | def to_binary(self): |
|
12232 | packet = [] |
|
12233 | packet.append(self.StatusCode.to_binary()) |
|
12234 | packet.append(uatype_Int32.pack(len(self.AvailableSequenceNumbers))) |
|
12235 | for fieldname in self.AvailableSequenceNumbers: |
|
12236 | packet.append(uatype_UInt32.pack(fieldname)) |
|
12237 | return b''.join(packet) |
|
12238 | ||
12239 | @staticmethod |
|
12240 | def from_binary(data): |
|
12241 | return TransferResult(data) |
|
12242 | ||
12243 | def _binary_init(self, data): |
|
12244 | self.StatusCode = StatusCode.from_binary(data) |
|
12245 | self.AvailableSequenceNumbers = unpack_uatype_array('UInt32', data) |
|
12246 | ||
12247 | def __str__(self): |
|
12248 | return 'TransferResult(' + 'StatusCode:' + str(self.StatusCode) + ', ' + \ |
|
12249 | 'AvailableSequenceNumbers:' + str(self.AvailableSequenceNumbers) + ')' |
|
12250 | ||
12251 | __repr__ = __str__ |
|
12252 | ||
12253 | ||
12254 | class TransferSubscriptionsParameters(FrozenClass): |
|
@@ 9027-9063 (lines=37) @@ | ||
9024 | __repr__ = __str__ |
|
9025 | ||
9026 | ||
9027 | class DeleteEventDetails(FrozenClass): |
|
9028 | ''' |
|
9029 | :ivar NodeId: |
|
9030 | :vartype NodeId: NodeId |
|
9031 | :ivar EventIds: |
|
9032 | :vartype EventIds: ByteString |
|
9033 | ''' |
|
9034 | def __init__(self, binary=None): |
|
9035 | if binary is not None: |
|
9036 | self._binary_init(binary) |
|
9037 | self._freeze = True |
|
9038 | return |
|
9039 | self.NodeId = NodeId() |
|
9040 | self.EventIds = [] |
|
9041 | self._freeze = True |
|
9042 | ||
9043 | def to_binary(self): |
|
9044 | packet = [] |
|
9045 | packet.append(self.NodeId.to_binary()) |
|
9046 | packet.append(uatype_Int32.pack(len(self.EventIds))) |
|
9047 | for fieldname in self.EventIds: |
|
9048 | packet.append(pack_bytes(fieldname)) |
|
9049 | return b''.join(packet) |
|
9050 | ||
9051 | @staticmethod |
|
9052 | def from_binary(data): |
|
9053 | return DeleteEventDetails(data) |
|
9054 | ||
9055 | def _binary_init(self, data): |
|
9056 | self.NodeId = NodeId.from_binary(data) |
|
9057 | self.EventIds = unpack_uatype_array('ByteString', data) |
|
9058 | ||
9059 | def __str__(self): |
|
9060 | return 'DeleteEventDetails(' + 'NodeId:' + str(self.NodeId) + ', ' + \ |
|
9061 | 'EventIds:' + str(self.EventIds) + ')' |
|
9062 | ||
9063 | __repr__ = __str__ |
|
9064 | ||
9065 | ||
9066 | class HistoryUpdateResult(FrozenClass): |
|
@@ 8988-9024 (lines=37) @@ | ||
8985 | __repr__ = __str__ |
|
8986 | ||
8987 | ||
8988 | class DeleteAtTimeDetails(FrozenClass): |
|
8989 | ''' |
|
8990 | :ivar NodeId: |
|
8991 | :vartype NodeId: NodeId |
|
8992 | :ivar ReqTimes: |
|
8993 | :vartype ReqTimes: DateTime |
|
8994 | ''' |
|
8995 | def __init__(self, binary=None): |
|
8996 | if binary is not None: |
|
8997 | self._binary_init(binary) |
|
8998 | self._freeze = True |
|
8999 | return |
|
9000 | self.NodeId = NodeId() |
|
9001 | self.ReqTimes = [] |
|
9002 | self._freeze = True |
|
9003 | ||
9004 | def to_binary(self): |
|
9005 | packet = [] |
|
9006 | packet.append(self.NodeId.to_binary()) |
|
9007 | packet.append(uatype_Int32.pack(len(self.ReqTimes))) |
|
9008 | for fieldname in self.ReqTimes: |
|
9009 | packet.append(pack_datetime(fieldname)) |
|
9010 | return b''.join(packet) |
|
9011 | ||
9012 | @staticmethod |
|
9013 | def from_binary(data): |
|
9014 | return DeleteAtTimeDetails(data) |
|
9015 | ||
9016 | def _binary_init(self, data): |
|
9017 | self.NodeId = NodeId.from_binary(data) |
|
9018 | self.ReqTimes = unpack_uatype_array('DateTime', data) |
|
9019 | ||
9020 | def __str__(self): |
|
9021 | return 'DeleteAtTimeDetails(' + 'NodeId:' + str(self.NodeId) + ', ' + \ |
|
9022 | 'ReqTimes:' + str(self.ReqTimes) + ')' |
|
9023 | ||
9024 | __repr__ = __str__ |
|
9025 | ||
9026 | ||
9027 | class DeleteEventDetails(FrozenClass): |
|
@@ 6415-6451 (lines=37) @@ | ||
6412 | __repr__ = __str__ |
|
6413 | ||
6414 | ||
6415 | class UnregisterNodesResponse(FrozenClass): |
|
6416 | ''' |
|
6417 | Unregisters one or more previously registered nodes. |
|
6418 | ||
6419 | :ivar TypeId: |
|
6420 | :vartype TypeId: NodeId |
|
6421 | :ivar ResponseHeader: |
|
6422 | :vartype ResponseHeader: ResponseHeader |
|
6423 | ''' |
|
6424 | def __init__(self, binary=None): |
|
6425 | if binary is not None: |
|
6426 | self._binary_init(binary) |
|
6427 | self._freeze = True |
|
6428 | return |
|
6429 | self.TypeId = FourByteNodeId(ObjectIds.UnregisterNodesResponse_Encoding_DefaultBinary) |
|
6430 | self.ResponseHeader = ResponseHeader() |
|
6431 | self._freeze = True |
|
6432 | ||
6433 | def to_binary(self): |
|
6434 | packet = [] |
|
6435 | packet.append(self.TypeId.to_binary()) |
|
6436 | packet.append(self.ResponseHeader.to_binary()) |
|
6437 | return b''.join(packet) |
|
6438 | ||
6439 | @staticmethod |
|
6440 | def from_binary(data): |
|
6441 | return UnregisterNodesResponse(data) |
|
6442 | ||
6443 | def _binary_init(self, data): |
|
6444 | self.TypeId = NodeId.from_binary(data) |
|
6445 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
6446 | ||
6447 | def __str__(self): |
|
6448 | return 'UnregisterNodesResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
6449 | 'ResponseHeader:' + str(self.ResponseHeader) + ')' |
|
6450 | ||
6451 | __repr__ = __str__ |
|
6452 | ||
6453 | ||
6454 | class EndpointConfiguration(FrozenClass): |
|
@@ 5933-5969 (lines=37) @@ | ||
5930 | __repr__ = __str__ |
|
5931 | ||
5932 | ||
5933 | class BrowsePathTarget(FrozenClass): |
|
5934 | ''' |
|
5935 | The target of the translated path. |
|
5936 | ||
5937 | :ivar TargetId: |
|
5938 | :vartype TargetId: ExpandedNodeId |
|
5939 | :ivar RemainingPathIndex: |
|
5940 | :vartype RemainingPathIndex: UInt32 |
|
5941 | ''' |
|
5942 | def __init__(self, binary=None): |
|
5943 | if binary is not None: |
|
5944 | self._binary_init(binary) |
|
5945 | self._freeze = True |
|
5946 | return |
|
5947 | self.TargetId = ExpandedNodeId() |
|
5948 | self.RemainingPathIndex = 0 |
|
5949 | self._freeze = True |
|
5950 | ||
5951 | def to_binary(self): |
|
5952 | packet = [] |
|
5953 | packet.append(self.TargetId.to_binary()) |
|
5954 | packet.append(uatype_UInt32.pack(self.RemainingPathIndex)) |
|
5955 | return b''.join(packet) |
|
5956 | ||
5957 | @staticmethod |
|
5958 | def from_binary(data): |
|
5959 | return BrowsePathTarget(data) |
|
5960 | ||
5961 | def _binary_init(self, data): |
|
5962 | self.TargetId = ExpandedNodeId.from_binary(data) |
|
5963 | self.RemainingPathIndex = uatype_UInt32.unpack(data.read(4))[0] |
|
5964 | ||
5965 | def __str__(self): |
|
5966 | return 'BrowsePathTarget(' + 'TargetId:' + str(self.TargetId) + ', ' + \ |
|
5967 | 'RemainingPathIndex:' + str(self.RemainingPathIndex) + ')' |
|
5968 | ||
5969 | __repr__ = __str__ |
|
5970 | ||
5971 | ||
5972 | class BrowsePathResult(FrozenClass): |
|
@@ 5894-5930 (lines=37) @@ | ||
5891 | __repr__ = __str__ |
|
5892 | ||
5893 | ||
5894 | class BrowsePath(FrozenClass): |
|
5895 | ''' |
|
5896 | A request to translate a path into a node id. |
|
5897 | ||
5898 | :ivar StartingNode: |
|
5899 | :vartype StartingNode: NodeId |
|
5900 | :ivar RelativePath: |
|
5901 | :vartype RelativePath: RelativePath |
|
5902 | ''' |
|
5903 | def __init__(self, binary=None): |
|
5904 | if binary is not None: |
|
5905 | self._binary_init(binary) |
|
5906 | self._freeze = True |
|
5907 | return |
|
5908 | self.StartingNode = NodeId() |
|
5909 | self.RelativePath = RelativePath() |
|
5910 | self._freeze = True |
|
5911 | ||
5912 | def to_binary(self): |
|
5913 | packet = [] |
|
5914 | packet.append(self.StartingNode.to_binary()) |
|
5915 | packet.append(self.RelativePath.to_binary()) |
|
5916 | return b''.join(packet) |
|
5917 | ||
5918 | @staticmethod |
|
5919 | def from_binary(data): |
|
5920 | return BrowsePath(data) |
|
5921 | ||
5922 | def _binary_init(self, data): |
|
5923 | self.StartingNode = NodeId.from_binary(data) |
|
5924 | self.RelativePath = RelativePath.from_binary(data) |
|
5925 | ||
5926 | def __str__(self): |
|
5927 | return 'BrowsePath(' + 'StartingNode:' + str(self.StartingNode) + ', ' + \ |
|
5928 | 'RelativePath:' + str(self.RelativePath) + ')' |
|
5929 | ||
5930 | __repr__ = __str__ |
|
5931 | ||
5932 | ||
5933 | class BrowsePathTarget(FrozenClass): |
|
@@ 4811-4847 (lines=37) @@ | ||
4808 | __repr__ = __str__ |
|
4809 | ||
4810 | ||
4811 | class DeleteNodesItem(FrozenClass): |
|
4812 | ''' |
|
4813 | A request to delete a node to the server address space. |
|
4814 | ||
4815 | :ivar NodeId: |
|
4816 | :vartype NodeId: NodeId |
|
4817 | :ivar DeleteTargetReferences: |
|
4818 | :vartype DeleteTargetReferences: Boolean |
|
4819 | ''' |
|
4820 | def __init__(self, binary=None): |
|
4821 | if binary is not None: |
|
4822 | self._binary_init(binary) |
|
4823 | self._freeze = True |
|
4824 | return |
|
4825 | self.NodeId = NodeId() |
|
4826 | self.DeleteTargetReferences = True |
|
4827 | self._freeze = True |
|
4828 | ||
4829 | def to_binary(self): |
|
4830 | packet = [] |
|
4831 | packet.append(self.NodeId.to_binary()) |
|
4832 | packet.append(uatype_Boolean.pack(self.DeleteTargetReferences)) |
|
4833 | return b''.join(packet) |
|
4834 | ||
4835 | @staticmethod |
|
4836 | def from_binary(data): |
|
4837 | return DeleteNodesItem(data) |
|
4838 | ||
4839 | def _binary_init(self, data): |
|
4840 | self.NodeId = NodeId.from_binary(data) |
|
4841 | self.DeleteTargetReferences = uatype_Boolean.unpack(data.read(1))[0] |
|
4842 | ||
4843 | def __str__(self): |
|
4844 | return 'DeleteNodesItem(' + 'NodeId:' + str(self.NodeId) + ', ' + \ |
|
4845 | 'DeleteTargetReferences:' + str(self.DeleteTargetReferences) + ')' |
|
4846 | ||
4847 | __repr__ = __str__ |
|
4848 | ||
4849 | ||
4850 | class DeleteNodesParameters(FrozenClass): |
|
@@ 4444-4480 (lines=37) @@ | ||
4441 | __repr__ = __str__ |
|
4442 | ||
4443 | ||
4444 | class AddNodesResult(FrozenClass): |
|
4445 | ''' |
|
4446 | A result of an add node operation. |
|
4447 | ||
4448 | :ivar StatusCode: |
|
4449 | :vartype StatusCode: StatusCode |
|
4450 | :ivar AddedNodeId: |
|
4451 | :vartype AddedNodeId: NodeId |
|
4452 | ''' |
|
4453 | def __init__(self, binary=None): |
|
4454 | if binary is not None: |
|
4455 | self._binary_init(binary) |
|
4456 | self._freeze = True |
|
4457 | return |
|
4458 | self.StatusCode = StatusCode() |
|
4459 | self.AddedNodeId = NodeId() |
|
4460 | self._freeze = True |
|
4461 | ||
4462 | def to_binary(self): |
|
4463 | packet = [] |
|
4464 | packet.append(self.StatusCode.to_binary()) |
|
4465 | packet.append(self.AddedNodeId.to_binary()) |
|
4466 | return b''.join(packet) |
|
4467 | ||
4468 | @staticmethod |
|
4469 | def from_binary(data): |
|
4470 | return AddNodesResult(data) |
|
4471 | ||
4472 | def _binary_init(self, data): |
|
4473 | self.StatusCode = StatusCode.from_binary(data) |
|
4474 | self.AddedNodeId = NodeId.from_binary(data) |
|
4475 | ||
4476 | def __str__(self): |
|
4477 | return 'AddNodesResult(' + 'StatusCode:' + str(self.StatusCode) + ', ' + \ |
|
4478 | 'AddedNodeId:' + str(self.AddedNodeId) + ')' |
|
4479 | ||
4480 | __repr__ = __str__ |
|
4481 | ||
4482 | ||
4483 | class AddNodesParameters(FrozenClass): |
|
@@ 3529-3565 (lines=37) @@ | ||
3526 | __repr__ = __str__ |
|
3527 | ||
3528 | ||
3529 | class CloseSessionResponse(FrozenClass): |
|
3530 | ''' |
|
3531 | Closes a session with the server. |
|
3532 | ||
3533 | :ivar TypeId: |
|
3534 | :vartype TypeId: NodeId |
|
3535 | :ivar ResponseHeader: |
|
3536 | :vartype ResponseHeader: ResponseHeader |
|
3537 | ''' |
|
3538 | def __init__(self, binary=None): |
|
3539 | if binary is not None: |
|
3540 | self._binary_init(binary) |
|
3541 | self._freeze = True |
|
3542 | return |
|
3543 | self.TypeId = FourByteNodeId(ObjectIds.CloseSessionResponse_Encoding_DefaultBinary) |
|
3544 | self.ResponseHeader = ResponseHeader() |
|
3545 | self._freeze = True |
|
3546 | ||
3547 | def to_binary(self): |
|
3548 | packet = [] |
|
3549 | packet.append(self.TypeId.to_binary()) |
|
3550 | packet.append(self.ResponseHeader.to_binary()) |
|
3551 | return b''.join(packet) |
|
3552 | ||
3553 | @staticmethod |
|
3554 | def from_binary(data): |
|
3555 | return CloseSessionResponse(data) |
|
3556 | ||
3557 | def _binary_init(self, data): |
|
3558 | self.TypeId = NodeId.from_binary(data) |
|
3559 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
3560 | ||
3561 | def __str__(self): |
|
3562 | return 'CloseSessionResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
3563 | 'ResponseHeader:' + str(self.ResponseHeader) + ')' |
|
3564 | ||
3565 | __repr__ = __str__ |
|
3566 | ||
3567 | ||
3568 | class CancelParameters(FrozenClass): |
|
@@ 2662-2698 (lines=37) @@ | ||
2659 | __repr__ = __str__ |
|
2660 | ||
2661 | ||
2662 | class CloseSecureChannelResponse(FrozenClass): |
|
2663 | ''' |
|
2664 | Closes a secure channel. |
|
2665 | ||
2666 | :ivar TypeId: |
|
2667 | :vartype TypeId: NodeId |
|
2668 | :ivar ResponseHeader: |
|
2669 | :vartype ResponseHeader: ResponseHeader |
|
2670 | ''' |
|
2671 | def __init__(self, binary=None): |
|
2672 | if binary is not None: |
|
2673 | self._binary_init(binary) |
|
2674 | self._freeze = True |
|
2675 | return |
|
2676 | self.TypeId = FourByteNodeId(ObjectIds.CloseSecureChannelResponse_Encoding_DefaultBinary) |
|
2677 | self.ResponseHeader = ResponseHeader() |
|
2678 | self._freeze = True |
|
2679 | ||
2680 | def to_binary(self): |
|
2681 | packet = [] |
|
2682 | packet.append(self.TypeId.to_binary()) |
|
2683 | packet.append(self.ResponseHeader.to_binary()) |
|
2684 | return b''.join(packet) |
|
2685 | ||
2686 | @staticmethod |
|
2687 | def from_binary(data): |
|
2688 | return CloseSecureChannelResponse(data) |
|
2689 | ||
2690 | def _binary_init(self, data): |
|
2691 | self.TypeId = NodeId.from_binary(data) |
|
2692 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
2693 | ||
2694 | def __str__(self): |
|
2695 | return 'CloseSecureChannelResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
2696 | 'ResponseHeader:' + str(self.ResponseHeader) + ')' |
|
2697 | ||
2698 | __repr__ = __str__ |
|
2699 | ||
2700 | ||
2701 | class SignedSoftwareCertificate(FrozenClass): |
|
@@ 2623-2659 (lines=37) @@ | ||
2620 | __repr__ = __str__ |
|
2621 | ||
2622 | ||
2623 | class CloseSecureChannelRequest(FrozenClass): |
|
2624 | ''' |
|
2625 | Closes a secure channel. |
|
2626 | ||
2627 | :ivar TypeId: |
|
2628 | :vartype TypeId: NodeId |
|
2629 | :ivar RequestHeader: |
|
2630 | :vartype RequestHeader: RequestHeader |
|
2631 | ''' |
|
2632 | def __init__(self, binary=None): |
|
2633 | if binary is not None: |
|
2634 | self._binary_init(binary) |
|
2635 | self._freeze = True |
|
2636 | return |
|
2637 | self.TypeId = FourByteNodeId(ObjectIds.CloseSecureChannelRequest_Encoding_DefaultBinary) |
|
2638 | self.RequestHeader = RequestHeader() |
|
2639 | self._freeze = True |
|
2640 | ||
2641 | def to_binary(self): |
|
2642 | packet = [] |
|
2643 | packet.append(self.TypeId.to_binary()) |
|
2644 | packet.append(self.RequestHeader.to_binary()) |
|
2645 | return b''.join(packet) |
|
2646 | ||
2647 | @staticmethod |
|
2648 | def from_binary(data): |
|
2649 | return CloseSecureChannelRequest(data) |
|
2650 | ||
2651 | def _binary_init(self, data): |
|
2652 | self.TypeId = NodeId.from_binary(data) |
|
2653 | self.RequestHeader = RequestHeader.from_binary(data) |
|
2654 | ||
2655 | def __str__(self): |
|
2656 | return 'CloseSecureChannelRequest(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
2657 | 'RequestHeader:' + str(self.RequestHeader) + ')' |
|
2658 | ||
2659 | __repr__ = __str__ |
|
2660 | ||
2661 | ||
2662 | class CloseSecureChannelResponse(FrozenClass): |
|
@@ 2125-2161 (lines=37) @@ | ||
2122 | __repr__ = __str__ |
|
2123 | ||
2124 | ||
2125 | class RegisterServerResponse(FrozenClass): |
|
2126 | ''' |
|
2127 | Registers a server with the discovery server. |
|
2128 | ||
2129 | :ivar TypeId: |
|
2130 | :vartype TypeId: NodeId |
|
2131 | :ivar ResponseHeader: |
|
2132 | :vartype ResponseHeader: ResponseHeader |
|
2133 | ''' |
|
2134 | def __init__(self, binary=None): |
|
2135 | if binary is not None: |
|
2136 | self._binary_init(binary) |
|
2137 | self._freeze = True |
|
2138 | return |
|
2139 | self.TypeId = FourByteNodeId(ObjectIds.RegisterServerResponse_Encoding_DefaultBinary) |
|
2140 | self.ResponseHeader = ResponseHeader() |
|
2141 | self._freeze = True |
|
2142 | ||
2143 | def to_binary(self): |
|
2144 | packet = [] |
|
2145 | packet.append(self.TypeId.to_binary()) |
|
2146 | packet.append(self.ResponseHeader.to_binary()) |
|
2147 | return b''.join(packet) |
|
2148 | ||
2149 | @staticmethod |
|
2150 | def from_binary(data): |
|
2151 | return RegisterServerResponse(data) |
|
2152 | ||
2153 | def _binary_init(self, data): |
|
2154 | self.TypeId = NodeId.from_binary(data) |
|
2155 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
2156 | ||
2157 | def __str__(self): |
|
2158 | return 'RegisterServerResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
2159 | 'ResponseHeader:' + str(self.ResponseHeader) + ')' |
|
2160 | ||
2161 | __repr__ = __str__ |
|
2162 | ||
2163 | ||
2164 | class DiscoveryConfiguration(FrozenClass): |
|
@@ 1304-1340 (lines=37) @@ | ||
1301 | __repr__ = __str__ |
|
1302 | ||
1303 | ||
1304 | class ServiceFault(FrozenClass): |
|
1305 | ''' |
|
1306 | The response returned by all services when there is a service level error. |
|
1307 | ||
1308 | :ivar TypeId: |
|
1309 | :vartype TypeId: NodeId |
|
1310 | :ivar ResponseHeader: |
|
1311 | :vartype ResponseHeader: ResponseHeader |
|
1312 | ''' |
|
1313 | def __init__(self, binary=None): |
|
1314 | if binary is not None: |
|
1315 | self._binary_init(binary) |
|
1316 | self._freeze = True |
|
1317 | return |
|
1318 | self.TypeId = FourByteNodeId(ObjectIds.ServiceFault_Encoding_DefaultBinary) |
|
1319 | self.ResponseHeader = ResponseHeader() |
|
1320 | self._freeze = True |
|
1321 | ||
1322 | def to_binary(self): |
|
1323 | packet = [] |
|
1324 | packet.append(self.TypeId.to_binary()) |
|
1325 | packet.append(self.ResponseHeader.to_binary()) |
|
1326 | return b''.join(packet) |
|
1327 | ||
1328 | @staticmethod |
|
1329 | def from_binary(data): |
|
1330 | return ServiceFault(data) |
|
1331 | ||
1332 | def _binary_init(self, data): |
|
1333 | self.TypeId = NodeId.from_binary(data) |
|
1334 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
1335 | ||
1336 | def __str__(self): |
|
1337 | return 'ServiceFault(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
1338 | 'ResponseHeader:' + str(self.ResponseHeader) + ')' |
|
1339 | ||
1340 | __repr__ = __str__ |
|
1341 | ||
1342 | ||
1343 | class FindServersParameters(FrozenClass): |
|
@@ 13651-13685 (lines=35) @@ | ||
13648 | __repr__ = __str__ |
|
13649 | ||
13650 | ||
13651 | class SemanticChangeStructureDataType(FrozenClass): |
|
13652 | ''' |
|
13653 | :ivar Affected: |
|
13654 | :vartype Affected: NodeId |
|
13655 | :ivar AffectedType: |
|
13656 | :vartype AffectedType: NodeId |
|
13657 | ''' |
|
13658 | def __init__(self, binary=None): |
|
13659 | if binary is not None: |
|
13660 | self._binary_init(binary) |
|
13661 | self._freeze = True |
|
13662 | return |
|
13663 | self.Affected = NodeId() |
|
13664 | self.AffectedType = NodeId() |
|
13665 | self._freeze = True |
|
13666 | ||
13667 | def to_binary(self): |
|
13668 | packet = [] |
|
13669 | packet.append(self.Affected.to_binary()) |
|
13670 | packet.append(self.AffectedType.to_binary()) |
|
13671 | return b''.join(packet) |
|
13672 | ||
13673 | @staticmethod |
|
13674 | def from_binary(data): |
|
13675 | return SemanticChangeStructureDataType(data) |
|
13676 | ||
13677 | def _binary_init(self, data): |
|
13678 | self.Affected = NodeId.from_binary(data) |
|
13679 | self.AffectedType = NodeId.from_binary(data) |
|
13680 | ||
13681 | def __str__(self): |
|
13682 | return 'SemanticChangeStructureDataType(' + 'Affected:' + str(self.Affected) + ', ' + \ |
|
13683 | 'AffectedType:' + str(self.AffectedType) + ')' |
|
13684 | ||
13685 | __repr__ = __str__ |
|
13686 | ||
13687 | ||
13688 | class Range(FrozenClass): |
|
@@ 13360-13394 (lines=35) @@ | ||
13357 | __repr__ = __str__ |
|
13358 | ||
13359 | ||
13360 | class StatusResult(FrozenClass): |
|
13361 | ''' |
|
13362 | :ivar StatusCode: |
|
13363 | :vartype StatusCode: StatusCode |
|
13364 | :ivar DiagnosticInfo: |
|
13365 | :vartype DiagnosticInfo: DiagnosticInfo |
|
13366 | ''' |
|
13367 | def __init__(self, binary=None): |
|
13368 | if binary is not None: |
|
13369 | self._binary_init(binary) |
|
13370 | self._freeze = True |
|
13371 | return |
|
13372 | self.StatusCode = StatusCode() |
|
13373 | self.DiagnosticInfo = DiagnosticInfo() |
|
13374 | self._freeze = True |
|
13375 | ||
13376 | def to_binary(self): |
|
13377 | packet = [] |
|
13378 | packet.append(self.StatusCode.to_binary()) |
|
13379 | packet.append(self.DiagnosticInfo.to_binary()) |
|
13380 | return b''.join(packet) |
|
13381 | ||
13382 | @staticmethod |
|
13383 | def from_binary(data): |
|
13384 | return StatusResult(data) |
|
13385 | ||
13386 | def _binary_init(self, data): |
|
13387 | self.StatusCode = StatusCode.from_binary(data) |
|
13388 | self.DiagnosticInfo = DiagnosticInfo.from_binary(data) |
|
13389 | ||
13390 | def __str__(self): |
|
13391 | return 'StatusResult(' + 'StatusCode:' + str(self.StatusCode) + ', ' + \ |
|
13392 | 'DiagnosticInfo:' + str(self.DiagnosticInfo) + ')' |
|
13393 | ||
13394 | __repr__ = __str__ |
|
13395 | ||
13396 | ||
13397 | class SubscriptionDiagnosticsDataType(FrozenClass): |
|
@@ 11817-11851 (lines=35) @@ | ||
11814 | __repr__ = __str__ |
|
11815 | ||
11816 | ||
11817 | class StatusChangeNotification(FrozenClass): |
|
11818 | ''' |
|
11819 | :ivar Status: |
|
11820 | :vartype Status: StatusCode |
|
11821 | :ivar DiagnosticInfo: |
|
11822 | :vartype DiagnosticInfo: DiagnosticInfo |
|
11823 | ''' |
|
11824 | def __init__(self, binary=None): |
|
11825 | if binary is not None: |
|
11826 | self._binary_init(binary) |
|
11827 | self._freeze = True |
|
11828 | return |
|
11829 | self.Status = StatusCode() |
|
11830 | self.DiagnosticInfo = DiagnosticInfo() |
|
11831 | self._freeze = True |
|
11832 | ||
11833 | def to_binary(self): |
|
11834 | packet = [] |
|
11835 | packet.append(self.Status.to_binary()) |
|
11836 | packet.append(self.DiagnosticInfo.to_binary()) |
|
11837 | return b''.join(packet) |
|
11838 | ||
11839 | @staticmethod |
|
11840 | def from_binary(data): |
|
11841 | return StatusChangeNotification(data) |
|
11842 | ||
11843 | def _binary_init(self, data): |
|
11844 | self.Status = StatusCode.from_binary(data) |
|
11845 | self.DiagnosticInfo = DiagnosticInfo.from_binary(data) |
|
11846 | ||
11847 | def __str__(self): |
|
11848 | return 'StatusChangeNotification(' + 'Status:' + str(self.Status) + ', ' + \ |
|
11849 | 'DiagnosticInfo:' + str(self.DiagnosticInfo) + ')' |
|
11850 | ||
11851 | __repr__ = __str__ |
|
11852 | ||
11853 | ||
11854 | class SubscriptionAcknowledgement(FrozenClass): |
|
@@ 11660-11694 (lines=35) @@ | ||
11657 | __repr__ = __str__ |
|
11658 | ||
11659 | ||
11660 | class MonitoredItemNotification(FrozenClass): |
|
11661 | ''' |
|
11662 | :ivar ClientHandle: |
|
11663 | :vartype ClientHandle: UInt32 |
|
11664 | :ivar Value: |
|
11665 | :vartype Value: DataValue |
|
11666 | ''' |
|
11667 | def __init__(self, binary=None): |
|
11668 | if binary is not None: |
|
11669 | self._binary_init(binary) |
|
11670 | self._freeze = True |
|
11671 | return |
|
11672 | self.ClientHandle = 0 |
|
11673 | self.Value = DataValue() |
|
11674 | self._freeze = True |
|
11675 | ||
11676 | def to_binary(self): |
|
11677 | packet = [] |
|
11678 | packet.append(uatype_UInt32.pack(self.ClientHandle)) |
|
11679 | packet.append(self.Value.to_binary()) |
|
11680 | return b''.join(packet) |
|
11681 | ||
11682 | @staticmethod |
|
11683 | def from_binary(data): |
|
11684 | return MonitoredItemNotification(data) |
|
11685 | ||
11686 | def _binary_init(self, data): |
|
11687 | self.ClientHandle = uatype_UInt32.unpack(data.read(4))[0] |
|
11688 | self.Value = DataValue.from_binary(data) |
|
11689 | ||
11690 | def __str__(self): |
|
11691 | return 'MonitoredItemNotification(' + 'ClientHandle:' + str(self.ClientHandle) + ', ' + \ |
|
11692 | 'Value:' + str(self.Value) + ')' |
|
11693 | ||
11694 | __repr__ = __str__ |
|
11695 | ||
11696 | ||
11697 | class EventNotificationList(FrozenClass): |
|
@@ 10185-10219 (lines=35) @@ | ||
10182 | __repr__ = __str__ |
|
10183 | ||
10184 | ||
10185 | class MonitoredItemModifyRequest(FrozenClass): |
|
10186 | ''' |
|
10187 | :ivar MonitoredItemId: |
|
10188 | :vartype MonitoredItemId: UInt32 |
|
10189 | :ivar RequestedParameters: |
|
10190 | :vartype RequestedParameters: MonitoringParameters |
|
10191 | ''' |
|
10192 | def __init__(self, binary=None): |
|
10193 | if binary is not None: |
|
10194 | self._binary_init(binary) |
|
10195 | self._freeze = True |
|
10196 | return |
|
10197 | self.MonitoredItemId = 0 |
|
10198 | self.RequestedParameters = MonitoringParameters() |
|
10199 | self._freeze = True |
|
10200 | ||
10201 | def to_binary(self): |
|
10202 | packet = [] |
|
10203 | packet.append(uatype_UInt32.pack(self.MonitoredItemId)) |
|
10204 | packet.append(self.RequestedParameters.to_binary()) |
|
10205 | return b''.join(packet) |
|
10206 | ||
10207 | @staticmethod |
|
10208 | def from_binary(data): |
|
10209 | return MonitoredItemModifyRequest(data) |
|
10210 | ||
10211 | def _binary_init(self, data): |
|
10212 | self.MonitoredItemId = uatype_UInt32.unpack(data.read(4))[0] |
|
10213 | self.RequestedParameters = MonitoringParameters.from_binary(data) |
|
10214 | ||
10215 | def __str__(self): |
|
10216 | return 'MonitoredItemModifyRequest(' + 'MonitoredItemId:' + str(self.MonitoredItemId) + ', ' + \ |
|
10217 | 'RequestedParameters:' + str(self.RequestedParameters) + ')' |
|
10218 | ||
10219 | __repr__ = __str__ |
|
10220 | ||
10221 | ||
10222 | class MonitoredItemModifyResult(FrozenClass): |