@@ 6101-6163 (lines=63) @@ | ||
6098 | __repr__ = __str__ |
|
6099 | ||
6100 | ||
6101 | class TranslateBrowsePathsToNodeIdsResponse(FrozenClass): |
|
6102 | ''' |
|
6103 | Translates one or more paths in the server address space. |
|
6104 | ||
6105 | :ivar TypeId: |
|
6106 | :vartype TypeId: NodeId |
|
6107 | :ivar ResponseHeader: |
|
6108 | :vartype ResponseHeader: ResponseHeader |
|
6109 | :ivar Results: |
|
6110 | :vartype Results: BrowsePathResult |
|
6111 | :ivar DiagnosticInfos: |
|
6112 | :vartype DiagnosticInfos: DiagnosticInfo |
|
6113 | ''' |
|
6114 | def __init__(self, binary=None): |
|
6115 | if binary is not None: |
|
6116 | self._binary_init(binary) |
|
6117 | self._freeze = True |
|
6118 | return |
|
6119 | self.TypeId = FourByteNodeId(ObjectIds.TranslateBrowsePathsToNodeIdsResponse_Encoding_DefaultBinary) |
|
6120 | self.ResponseHeader = ResponseHeader() |
|
6121 | self.Results = [] |
|
6122 | self.DiagnosticInfos = [] |
|
6123 | self._freeze = True |
|
6124 | ||
6125 | def to_binary(self): |
|
6126 | packet = [] |
|
6127 | packet.append(self.TypeId.to_binary()) |
|
6128 | packet.append(self.ResponseHeader.to_binary()) |
|
6129 | packet.append(uatype_Int32.pack(len(self.Results))) |
|
6130 | for fieldname in self.Results: |
|
6131 | packet.append(fieldname.to_binary()) |
|
6132 | packet.append(uatype_Int32.pack(len(self.DiagnosticInfos))) |
|
6133 | for fieldname in self.DiagnosticInfos: |
|
6134 | packet.append(fieldname.to_binary()) |
|
6135 | return b''.join(packet) |
|
6136 | ||
6137 | @staticmethod |
|
6138 | def from_binary(data): |
|
6139 | return TranslateBrowsePathsToNodeIdsResponse(data) |
|
6140 | ||
6141 | def _binary_init(self, data): |
|
6142 | self.TypeId = NodeId.from_binary(data) |
|
6143 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
6144 | length = uatype_Int32.unpack(data.read(4))[0] |
|
6145 | array = [] |
|
6146 | if length != -1: |
|
6147 | for _ in range(0, length): |
|
6148 | array.append(BrowsePathResult.from_binary(data)) |
|
6149 | self.Results = array |
|
6150 | length = uatype_Int32.unpack(data.read(4))[0] |
|
6151 | array = [] |
|
6152 | if length != -1: |
|
6153 | for _ in range(0, length): |
|
6154 | array.append(DiagnosticInfo.from_binary(data)) |
|
6155 | self.DiagnosticInfos = array |
|
6156 | ||
6157 | def __str__(self): |
|
6158 | return 'TranslateBrowsePathsToNodeIdsResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
6159 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
6160 | 'Results:' + str(self.Results) + ', ' + \ |
|
6161 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
6162 | ||
6163 | __repr__ = __str__ |
|
6164 | ||
6165 | ||
6166 | class RegisterNodesParameters(FrozenClass): |
|
@@ 5558-5620 (lines=63) @@ | ||
5555 | __repr__ = __str__ |
|
5556 | ||
5557 | ||
5558 | class BrowseResponse(FrozenClass): |
|
5559 | ''' |
|
5560 | Browse the references for one or more nodes from the server address space. |
|
5561 | ||
5562 | :ivar TypeId: |
|
5563 | :vartype TypeId: NodeId |
|
5564 | :ivar ResponseHeader: |
|
5565 | :vartype ResponseHeader: ResponseHeader |
|
5566 | :ivar Results: |
|
5567 | :vartype Results: BrowseResult |
|
5568 | :ivar DiagnosticInfos: |
|
5569 | :vartype DiagnosticInfos: DiagnosticInfo |
|
5570 | ''' |
|
5571 | def __init__(self, binary=None): |
|
5572 | if binary is not None: |
|
5573 | self._binary_init(binary) |
|
5574 | self._freeze = True |
|
5575 | return |
|
5576 | self.TypeId = FourByteNodeId(ObjectIds.BrowseResponse_Encoding_DefaultBinary) |
|
5577 | self.ResponseHeader = ResponseHeader() |
|
5578 | self.Results = [] |
|
5579 | self.DiagnosticInfos = [] |
|
5580 | self._freeze = True |
|
5581 | ||
5582 | def to_binary(self): |
|
5583 | packet = [] |
|
5584 | packet.append(self.TypeId.to_binary()) |
|
5585 | packet.append(self.ResponseHeader.to_binary()) |
|
5586 | packet.append(uatype_Int32.pack(len(self.Results))) |
|
5587 | for fieldname in self.Results: |
|
5588 | packet.append(fieldname.to_binary()) |
|
5589 | packet.append(uatype_Int32.pack(len(self.DiagnosticInfos))) |
|
5590 | for fieldname in self.DiagnosticInfos: |
|
5591 | packet.append(fieldname.to_binary()) |
|
5592 | return b''.join(packet) |
|
5593 | ||
5594 | @staticmethod |
|
5595 | def from_binary(data): |
|
5596 | return BrowseResponse(data) |
|
5597 | ||
5598 | def _binary_init(self, data): |
|
5599 | self.TypeId = NodeId.from_binary(data) |
|
5600 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
5601 | length = uatype_Int32.unpack(data.read(4))[0] |
|
5602 | array = [] |
|
5603 | if length != -1: |
|
5604 | for _ in range(0, length): |
|
5605 | array.append(BrowseResult.from_binary(data)) |
|
5606 | self.Results = array |
|
5607 | length = uatype_Int32.unpack(data.read(4))[0] |
|
5608 | array = [] |
|
5609 | if length != -1: |
|
5610 | for _ in range(0, length): |
|
5611 | array.append(DiagnosticInfo.from_binary(data)) |
|
5612 | self.DiagnosticInfos = array |
|
5613 | ||
5614 | def __str__(self): |
|
5615 | return 'BrowseResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
5616 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
5617 | 'Results:' + str(self.Results) + ', ' + \ |
|
5618 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
5619 | ||
5620 | __repr__ = __str__ |
|
5621 | ||
5622 | ||
5623 | class BrowseNextParameters(FrozenClass): |
|
@@ 4933-4995 (lines=63) @@ | ||
4930 | __repr__ = __str__ |
|
4931 | ||
4932 | ||
4933 | class DeleteNodesResponse(FrozenClass): |
|
4934 | ''' |
|
4935 | Delete one or more nodes from the server address space. |
|
4936 | ||
4937 | :ivar TypeId: |
|
4938 | :vartype TypeId: NodeId |
|
4939 | :ivar ResponseHeader: |
|
4940 | :vartype ResponseHeader: ResponseHeader |
|
4941 | :ivar Results: |
|
4942 | :vartype Results: StatusCode |
|
4943 | :ivar DiagnosticInfos: |
|
4944 | :vartype DiagnosticInfos: DiagnosticInfo |
|
4945 | ''' |
|
4946 | def __init__(self, binary=None): |
|
4947 | if binary is not None: |
|
4948 | self._binary_init(binary) |
|
4949 | self._freeze = True |
|
4950 | return |
|
4951 | self.TypeId = FourByteNodeId(ObjectIds.DeleteNodesResponse_Encoding_DefaultBinary) |
|
4952 | self.ResponseHeader = ResponseHeader() |
|
4953 | self.Results = [] |
|
4954 | self.DiagnosticInfos = [] |
|
4955 | self._freeze = True |
|
4956 | ||
4957 | def to_binary(self): |
|
4958 | packet = [] |
|
4959 | packet.append(self.TypeId.to_binary()) |
|
4960 | packet.append(self.ResponseHeader.to_binary()) |
|
4961 | packet.append(uatype_Int32.pack(len(self.Results))) |
|
4962 | for fieldname in self.Results: |
|
4963 | packet.append(fieldname.to_binary()) |
|
4964 | packet.append(uatype_Int32.pack(len(self.DiagnosticInfos))) |
|
4965 | for fieldname in self.DiagnosticInfos: |
|
4966 | packet.append(fieldname.to_binary()) |
|
4967 | return b''.join(packet) |
|
4968 | ||
4969 | @staticmethod |
|
4970 | def from_binary(data): |
|
4971 | return DeleteNodesResponse(data) |
|
4972 | ||
4973 | def _binary_init(self, data): |
|
4974 | self.TypeId = NodeId.from_binary(data) |
|
4975 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
4976 | length = uatype_Int32.unpack(data.read(4))[0] |
|
4977 | array = [] |
|
4978 | if length != -1: |
|
4979 | for _ in range(0, length): |
|
4980 | array.append(StatusCode.from_binary(data)) |
|
4981 | self.Results = array |
|
4982 | length = uatype_Int32.unpack(data.read(4))[0] |
|
4983 | array = [] |
|
4984 | if length != -1: |
|
4985 | for _ in range(0, length): |
|
4986 | array.append(DiagnosticInfo.from_binary(data)) |
|
4987 | self.DiagnosticInfos = array |
|
4988 | ||
4989 | def __str__(self): |
|
4990 | return 'DeleteNodesResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
4991 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
4992 | 'Results:' + str(self.Results) + ', ' + \ |
|
4993 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
4994 | ||
4995 | __repr__ = __str__ |
|
4996 | ||
4997 | ||
4998 | class DeleteReferencesItem(FrozenClass): |
|
@@ 4746-4808 (lines=63) @@ | ||
4743 | __repr__ = __str__ |
|
4744 | ||
4745 | ||
4746 | class AddReferencesResponse(FrozenClass): |
|
4747 | ''' |
|
4748 | Adds one or more references to the server address space. |
|
4749 | ||
4750 | :ivar TypeId: |
|
4751 | :vartype TypeId: NodeId |
|
4752 | :ivar ResponseHeader: |
|
4753 | :vartype ResponseHeader: ResponseHeader |
|
4754 | :ivar Results: |
|
4755 | :vartype Results: StatusCode |
|
4756 | :ivar DiagnosticInfos: |
|
4757 | :vartype DiagnosticInfos: DiagnosticInfo |
|
4758 | ''' |
|
4759 | def __init__(self, binary=None): |
|
4760 | if binary is not None: |
|
4761 | self._binary_init(binary) |
|
4762 | self._freeze = True |
|
4763 | return |
|
4764 | self.TypeId = FourByteNodeId(ObjectIds.AddReferencesResponse_Encoding_DefaultBinary) |
|
4765 | self.ResponseHeader = ResponseHeader() |
|
4766 | self.Results = [] |
|
4767 | self.DiagnosticInfos = [] |
|
4768 | self._freeze = True |
|
4769 | ||
4770 | def to_binary(self): |
|
4771 | packet = [] |
|
4772 | packet.append(self.TypeId.to_binary()) |
|
4773 | packet.append(self.ResponseHeader.to_binary()) |
|
4774 | packet.append(uatype_Int32.pack(len(self.Results))) |
|
4775 | for fieldname in self.Results: |
|
4776 | packet.append(fieldname.to_binary()) |
|
4777 | packet.append(uatype_Int32.pack(len(self.DiagnosticInfos))) |
|
4778 | for fieldname in self.DiagnosticInfos: |
|
4779 | packet.append(fieldname.to_binary()) |
|
4780 | return b''.join(packet) |
|
4781 | ||
4782 | @staticmethod |
|
4783 | def from_binary(data): |
|
4784 | return AddReferencesResponse(data) |
|
4785 | ||
4786 | def _binary_init(self, data): |
|
4787 | self.TypeId = NodeId.from_binary(data) |
|
4788 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
4789 | length = uatype_Int32.unpack(data.read(4))[0] |
|
4790 | array = [] |
|
4791 | if length != -1: |
|
4792 | for _ in range(0, length): |
|
4793 | array.append(StatusCode.from_binary(data)) |
|
4794 | self.Results = array |
|
4795 | length = uatype_Int32.unpack(data.read(4))[0] |
|
4796 | array = [] |
|
4797 | if length != -1: |
|
4798 | for _ in range(0, length): |
|
4799 | array.append(DiagnosticInfo.from_binary(data)) |
|
4800 | self.DiagnosticInfos = array |
|
4801 | ||
4802 | def __str__(self): |
|
4803 | return 'AddReferencesResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
4804 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
4805 | 'Results:' + str(self.Results) + ', ' + \ |
|
4806 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
4807 | ||
4808 | __repr__ = __str__ |
|
4809 | ||
4810 | ||
4811 | class DeleteNodesItem(FrozenClass): |
|
@@ 4566-4628 (lines=63) @@ | ||
4563 | __repr__ = __str__ |
|
4564 | ||
4565 | ||
4566 | class AddNodesResponse(FrozenClass): |
|
4567 | ''' |
|
4568 | Adds one or more nodes to the server address space. |
|
4569 | ||
4570 | :ivar TypeId: |
|
4571 | :vartype TypeId: NodeId |
|
4572 | :ivar ResponseHeader: |
|
4573 | :vartype ResponseHeader: ResponseHeader |
|
4574 | :ivar Results: |
|
4575 | :vartype Results: AddNodesResult |
|
4576 | :ivar DiagnosticInfos: |
|
4577 | :vartype DiagnosticInfos: DiagnosticInfo |
|
4578 | ''' |
|
4579 | def __init__(self, binary=None): |
|
4580 | if binary is not None: |
|
4581 | self._binary_init(binary) |
|
4582 | self._freeze = True |
|
4583 | return |
|
4584 | self.TypeId = FourByteNodeId(ObjectIds.AddNodesResponse_Encoding_DefaultBinary) |
|
4585 | self.ResponseHeader = ResponseHeader() |
|
4586 | self.Results = [] |
|
4587 | self.DiagnosticInfos = [] |
|
4588 | self._freeze = True |
|
4589 | ||
4590 | def to_binary(self): |
|
4591 | packet = [] |
|
4592 | packet.append(self.TypeId.to_binary()) |
|
4593 | packet.append(self.ResponseHeader.to_binary()) |
|
4594 | packet.append(uatype_Int32.pack(len(self.Results))) |
|
4595 | for fieldname in self.Results: |
|
4596 | packet.append(fieldname.to_binary()) |
|
4597 | packet.append(uatype_Int32.pack(len(self.DiagnosticInfos))) |
|
4598 | for fieldname in self.DiagnosticInfos: |
|
4599 | packet.append(fieldname.to_binary()) |
|
4600 | return b''.join(packet) |
|
4601 | ||
4602 | @staticmethod |
|
4603 | def from_binary(data): |
|
4604 | return AddNodesResponse(data) |
|
4605 | ||
4606 | def _binary_init(self, data): |
|
4607 | self.TypeId = NodeId.from_binary(data) |
|
4608 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
4609 | length = uatype_Int32.unpack(data.read(4))[0] |
|
4610 | array = [] |
|
4611 | if length != -1: |
|
4612 | for _ in range(0, length): |
|
4613 | array.append(AddNodesResult.from_binary(data)) |
|
4614 | self.Results = array |
|
4615 | length = uatype_Int32.unpack(data.read(4))[0] |
|
4616 | array = [] |
|
4617 | if length != -1: |
|
4618 | for _ in range(0, length): |
|
4619 | array.append(DiagnosticInfo.from_binary(data)) |
|
4620 | self.DiagnosticInfos = array |
|
4621 | ||
4622 | def __str__(self): |
|
4623 | return 'AddNodesResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
4624 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
4625 | 'Results:' + str(self.Results) + ', ' + \ |
|
4626 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
4627 | ||
4628 | __repr__ = __str__ |
|
4629 | ||
4630 | ||
4631 | class AddReferencesItem(FrozenClass): |
|
@@ 12506-12566 (lines=61) @@ | ||
12503 | __repr__ = __str__ |
|
12504 | ||
12505 | ||
12506 | class DeleteSubscriptionsResponse(FrozenClass): |
|
12507 | ''' |
|
12508 | :ivar TypeId: |
|
12509 | :vartype TypeId: NodeId |
|
12510 | :ivar ResponseHeader: |
|
12511 | :vartype ResponseHeader: ResponseHeader |
|
12512 | :ivar Results: |
|
12513 | :vartype Results: StatusCode |
|
12514 | :ivar DiagnosticInfos: |
|
12515 | :vartype DiagnosticInfos: DiagnosticInfo |
|
12516 | ''' |
|
12517 | def __init__(self, binary=None): |
|
12518 | if binary is not None: |
|
12519 | self._binary_init(binary) |
|
12520 | self._freeze = True |
|
12521 | return |
|
12522 | self.TypeId = FourByteNodeId(ObjectIds.DeleteSubscriptionsResponse_Encoding_DefaultBinary) |
|
12523 | self.ResponseHeader = ResponseHeader() |
|
12524 | self.Results = [] |
|
12525 | self.DiagnosticInfos = [] |
|
12526 | self._freeze = True |
|
12527 | ||
12528 | def to_binary(self): |
|
12529 | packet = [] |
|
12530 | packet.append(self.TypeId.to_binary()) |
|
12531 | packet.append(self.ResponseHeader.to_binary()) |
|
12532 | packet.append(uatype_Int32.pack(len(self.Results))) |
|
12533 | for fieldname in self.Results: |
|
12534 | packet.append(fieldname.to_binary()) |
|
12535 | packet.append(uatype_Int32.pack(len(self.DiagnosticInfos))) |
|
12536 | for fieldname in self.DiagnosticInfos: |
|
12537 | packet.append(fieldname.to_binary()) |
|
12538 | return b''.join(packet) |
|
12539 | ||
12540 | @staticmethod |
|
12541 | def from_binary(data): |
|
12542 | return DeleteSubscriptionsResponse(data) |
|
12543 | ||
12544 | def _binary_init(self, data): |
|
12545 | self.TypeId = NodeId.from_binary(data) |
|
12546 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
12547 | length = uatype_Int32.unpack(data.read(4))[0] |
|
12548 | array = [] |
|
12549 | if length != -1: |
|
12550 | for _ in range(0, length): |
|
12551 | array.append(StatusCode.from_binary(data)) |
|
12552 | self.Results = array |
|
12553 | length = uatype_Int32.unpack(data.read(4))[0] |
|
12554 | array = [] |
|
12555 | if length != -1: |
|
12556 | for _ in range(0, length): |
|
12557 | array.append(DiagnosticInfo.from_binary(data)) |
|
12558 | self.DiagnosticInfos = array |
|
12559 | ||
12560 | def __str__(self): |
|
12561 | return 'DeleteSubscriptionsResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
12562 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
12563 | 'Results:' + str(self.Results) + ', ' + \ |
|
12564 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
12565 | ||
12566 | __repr__ = __str__ |
|
12567 | ||
12568 | ||
12569 | class BuildInfo(FrozenClass): |
|
@@ 10907-10967 (lines=61) @@ | ||
10904 | __repr__ = __str__ |
|
10905 | ||
10906 | ||
10907 | class DeleteMonitoredItemsResponse(FrozenClass): |
|
10908 | ''' |
|
10909 | :ivar TypeId: |
|
10910 | :vartype TypeId: NodeId |
|
10911 | :ivar ResponseHeader: |
|
10912 | :vartype ResponseHeader: ResponseHeader |
|
10913 | :ivar Results: |
|
10914 | :vartype Results: StatusCode |
|
10915 | :ivar DiagnosticInfos: |
|
10916 | :vartype DiagnosticInfos: DiagnosticInfo |
|
10917 | ''' |
|
10918 | def __init__(self, binary=None): |
|
10919 | if binary is not None: |
|
10920 | self._binary_init(binary) |
|
10921 | self._freeze = True |
|
10922 | return |
|
10923 | self.TypeId = FourByteNodeId(ObjectIds.DeleteMonitoredItemsResponse_Encoding_DefaultBinary) |
|
10924 | self.ResponseHeader = ResponseHeader() |
|
10925 | self.Results = [] |
|
10926 | self.DiagnosticInfos = [] |
|
10927 | self._freeze = True |
|
10928 | ||
10929 | def to_binary(self): |
|
10930 | packet = [] |
|
10931 | packet.append(self.TypeId.to_binary()) |
|
10932 | packet.append(self.ResponseHeader.to_binary()) |
|
10933 | packet.append(uatype_Int32.pack(len(self.Results))) |
|
10934 | for fieldname in self.Results: |
|
10935 | packet.append(fieldname.to_binary()) |
|
10936 | packet.append(uatype_Int32.pack(len(self.DiagnosticInfos))) |
|
10937 | for fieldname in self.DiagnosticInfos: |
|
10938 | packet.append(fieldname.to_binary()) |
|
10939 | return b''.join(packet) |
|
10940 | ||
10941 | @staticmethod |
|
10942 | def from_binary(data): |
|
10943 | return DeleteMonitoredItemsResponse(data) |
|
10944 | ||
10945 | def _binary_init(self, data): |
|
10946 | self.TypeId = NodeId.from_binary(data) |
|
10947 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
10948 | length = uatype_Int32.unpack(data.read(4))[0] |
|
10949 | array = [] |
|
10950 | if length != -1: |
|
10951 | for _ in range(0, length): |
|
10952 | array.append(StatusCode.from_binary(data)) |
|
10953 | self.Results = array |
|
10954 | length = uatype_Int32.unpack(data.read(4))[0] |
|
10955 | array = [] |
|
10956 | if length != -1: |
|
10957 | for _ in range(0, length): |
|
10958 | array.append(DiagnosticInfo.from_binary(data)) |
|
10959 | self.DiagnosticInfos = array |
|
10960 | ||
10961 | def __str__(self): |
|
10962 | return 'DeleteMonitoredItemsResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
10963 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
10964 | 'Results:' + str(self.Results) + ', ' + \ |
|
10965 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
10966 | ||
10967 | __repr__ = __str__ |
|
10968 | ||
10969 | ||
10970 | class CreateSubscriptionParameters(FrozenClass): |
|
@@ 10364-10424 (lines=61) @@ | ||
10361 | __repr__ = __str__ |
|
10362 | ||
10363 | ||
10364 | class ModifyMonitoredItemsResponse(FrozenClass): |
|
10365 | ''' |
|
10366 | :ivar TypeId: |
|
10367 | :vartype TypeId: NodeId |
|
10368 | :ivar ResponseHeader: |
|
10369 | :vartype ResponseHeader: ResponseHeader |
|
10370 | :ivar Results: |
|
10371 | :vartype Results: MonitoredItemModifyResult |
|
10372 | :ivar DiagnosticInfos: |
|
10373 | :vartype DiagnosticInfos: DiagnosticInfo |
|
10374 | ''' |
|
10375 | def __init__(self, binary=None): |
|
10376 | if binary is not None: |
|
10377 | self._binary_init(binary) |
|
10378 | self._freeze = True |
|
10379 | return |
|
10380 | self.TypeId = FourByteNodeId(ObjectIds.ModifyMonitoredItemsResponse_Encoding_DefaultBinary) |
|
10381 | self.ResponseHeader = ResponseHeader() |
|
10382 | self.Results = [] |
|
10383 | self.DiagnosticInfos = [] |
|
10384 | self._freeze = True |
|
10385 | ||
10386 | def to_binary(self): |
|
10387 | packet = [] |
|
10388 | packet.append(self.TypeId.to_binary()) |
|
10389 | packet.append(self.ResponseHeader.to_binary()) |
|
10390 | packet.append(uatype_Int32.pack(len(self.Results))) |
|
10391 | for fieldname in self.Results: |
|
10392 | packet.append(fieldname.to_binary()) |
|
10393 | packet.append(uatype_Int32.pack(len(self.DiagnosticInfos))) |
|
10394 | for fieldname in self.DiagnosticInfos: |
|
10395 | packet.append(fieldname.to_binary()) |
|
10396 | return b''.join(packet) |
|
10397 | ||
10398 | @staticmethod |
|
10399 | def from_binary(data): |
|
10400 | return ModifyMonitoredItemsResponse(data) |
|
10401 | ||
10402 | def _binary_init(self, data): |
|
10403 | self.TypeId = NodeId.from_binary(data) |
|
10404 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
10405 | length = uatype_Int32.unpack(data.read(4))[0] |
|
10406 | array = [] |
|
10407 | if length != -1: |
|
10408 | for _ in range(0, length): |
|
10409 | array.append(MonitoredItemModifyResult.from_binary(data)) |
|
10410 | self.Results = array |
|
10411 | length = uatype_Int32.unpack(data.read(4))[0] |
|
10412 | array = [] |
|
10413 | if length != -1: |
|
10414 | for _ in range(0, length): |
|
10415 | array.append(DiagnosticInfo.from_binary(data)) |
|
10416 | self.DiagnosticInfos = array |
|
10417 | ||
10418 | def __str__(self): |
|
10419 | return 'ModifyMonitoredItemsResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
10420 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
10421 | 'Results:' + str(self.Results) + ', ' + \ |
|
10422 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
10423 | ||
10424 | __repr__ = __str__ |
|
10425 | ||
10426 | ||
10427 | class SetMonitoringModeParameters(FrozenClass): |
|
@@ 10122-10182 (lines=61) @@ | ||
10119 | __repr__ = __str__ |
|
10120 | ||
10121 | ||
10122 | class CreateMonitoredItemsResponse(FrozenClass): |
|
10123 | ''' |
|
10124 | :ivar TypeId: |
|
10125 | :vartype TypeId: NodeId |
|
10126 | :ivar ResponseHeader: |
|
10127 | :vartype ResponseHeader: ResponseHeader |
|
10128 | :ivar Results: |
|
10129 | :vartype Results: MonitoredItemCreateResult |
|
10130 | :ivar DiagnosticInfos: |
|
10131 | :vartype DiagnosticInfos: DiagnosticInfo |
|
10132 | ''' |
|
10133 | def __init__(self, binary=None): |
|
10134 | if binary is not None: |
|
10135 | self._binary_init(binary) |
|
10136 | self._freeze = True |
|
10137 | return |
|
10138 | self.TypeId = FourByteNodeId(ObjectIds.CreateMonitoredItemsResponse_Encoding_DefaultBinary) |
|
10139 | self.ResponseHeader = ResponseHeader() |
|
10140 | self.Results = [] |
|
10141 | self.DiagnosticInfos = [] |
|
10142 | self._freeze = True |
|
10143 | ||
10144 | def to_binary(self): |
|
10145 | packet = [] |
|
10146 | packet.append(self.TypeId.to_binary()) |
|
10147 | packet.append(self.ResponseHeader.to_binary()) |
|
10148 | packet.append(uatype_Int32.pack(len(self.Results))) |
|
10149 | for fieldname in self.Results: |
|
10150 | packet.append(fieldname.to_binary()) |
|
10151 | packet.append(uatype_Int32.pack(len(self.DiagnosticInfos))) |
|
10152 | for fieldname in self.DiagnosticInfos: |
|
10153 | packet.append(fieldname.to_binary()) |
|
10154 | return b''.join(packet) |
|
10155 | ||
10156 | @staticmethod |
|
10157 | def from_binary(data): |
|
10158 | return CreateMonitoredItemsResponse(data) |
|
10159 | ||
10160 | def _binary_init(self, data): |
|
10161 | self.TypeId = NodeId.from_binary(data) |
|
10162 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
10163 | length = uatype_Int32.unpack(data.read(4))[0] |
|
10164 | array = [] |
|
10165 | if length != -1: |
|
10166 | for _ in range(0, length): |
|
10167 | array.append(MonitoredItemCreateResult.from_binary(data)) |
|
10168 | self.Results = array |
|
10169 | length = uatype_Int32.unpack(data.read(4))[0] |
|
10170 | array = [] |
|
10171 | if length != -1: |
|
10172 | for _ in range(0, length): |
|
10173 | array.append(DiagnosticInfo.from_binary(data)) |
|
10174 | self.DiagnosticInfos = array |
|
10175 | ||
10176 | def __str__(self): |
|
10177 | return 'CreateMonitoredItemsResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
10178 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
10179 | 'Results:' + str(self.Results) + ', ' + \ |
|
10180 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
10181 | ||
10182 | __repr__ = __str__ |
|
10183 | ||
10184 | ||
10185 | class MonitoredItemModifyRequest(FrozenClass): |
|
@@ 9468-9528 (lines=61) @@ | ||
9465 | __repr__ = __str__ |
|
9466 | ||
9467 | ||
9468 | class CallResponse(FrozenClass): |
|
9469 | ''' |
|
9470 | :ivar TypeId: |
|
9471 | :vartype TypeId: NodeId |
|
9472 | :ivar ResponseHeader: |
|
9473 | :vartype ResponseHeader: ResponseHeader |
|
9474 | :ivar Results: |
|
9475 | :vartype Results: CallMethodResult |
|
9476 | :ivar DiagnosticInfos: |
|
9477 | :vartype DiagnosticInfos: DiagnosticInfo |
|
9478 | ''' |
|
9479 | def __init__(self, binary=None): |
|
9480 | if binary is not None: |
|
9481 | self._binary_init(binary) |
|
9482 | self._freeze = True |
|
9483 | return |
|
9484 | self.TypeId = FourByteNodeId(ObjectIds.CallResponse_Encoding_DefaultBinary) |
|
9485 | self.ResponseHeader = ResponseHeader() |
|
9486 | self.Results = [] |
|
9487 | self.DiagnosticInfos = [] |
|
9488 | self._freeze = True |
|
9489 | ||
9490 | def to_binary(self): |
|
9491 | packet = [] |
|
9492 | packet.append(self.TypeId.to_binary()) |
|
9493 | packet.append(self.ResponseHeader.to_binary()) |
|
9494 | packet.append(uatype_Int32.pack(len(self.Results))) |
|
9495 | for fieldname in self.Results: |
|
9496 | packet.append(fieldname.to_binary()) |
|
9497 | packet.append(uatype_Int32.pack(len(self.DiagnosticInfos))) |
|
9498 | for fieldname in self.DiagnosticInfos: |
|
9499 | packet.append(fieldname.to_binary()) |
|
9500 | return b''.join(packet) |
|
9501 | ||
9502 | @staticmethod |
|
9503 | def from_binary(data): |
|
9504 | return CallResponse(data) |
|
9505 | ||
9506 | def _binary_init(self, data): |
|
9507 | self.TypeId = NodeId.from_binary(data) |
|
9508 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
9509 | length = uatype_Int32.unpack(data.read(4))[0] |
|
9510 | array = [] |
|
9511 | if length != -1: |
|
9512 | for _ in range(0, length): |
|
9513 | array.append(CallMethodResult.from_binary(data)) |
|
9514 | self.Results = array |
|
9515 | length = uatype_Int32.unpack(data.read(4))[0] |
|
9516 | array = [] |
|
9517 | if length != -1: |
|
9518 | for _ in range(0, length): |
|
9519 | array.append(DiagnosticInfo.from_binary(data)) |
|
9520 | self.DiagnosticInfos = array |
|
9521 | ||
9522 | def __str__(self): |
|
9523 | return 'CallResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
9524 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
9525 | 'Results:' + str(self.Results) + ', ' + \ |
|
9526 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
9527 | ||
9528 | __repr__ = __str__ |
|
9529 | ||
9530 | ||
9531 | class MonitoringFilter(FrozenClass): |
|
@@ 9204-9264 (lines=61) @@ | ||
9201 | __repr__ = __str__ |
|
9202 | ||
9203 | ||
9204 | class HistoryUpdateResponse(FrozenClass): |
|
9205 | ''' |
|
9206 | :ivar TypeId: |
|
9207 | :vartype TypeId: NodeId |
|
9208 | :ivar ResponseHeader: |
|
9209 | :vartype ResponseHeader: ResponseHeader |
|
9210 | :ivar Results: |
|
9211 | :vartype Results: HistoryUpdateResult |
|
9212 | :ivar DiagnosticInfos: |
|
9213 | :vartype DiagnosticInfos: DiagnosticInfo |
|
9214 | ''' |
|
9215 | def __init__(self, binary=None): |
|
9216 | if binary is not None: |
|
9217 | self._binary_init(binary) |
|
9218 | self._freeze = True |
|
9219 | return |
|
9220 | self.TypeId = FourByteNodeId(ObjectIds.HistoryUpdateResponse_Encoding_DefaultBinary) |
|
9221 | self.ResponseHeader = ResponseHeader() |
|
9222 | self.Results = [] |
|
9223 | self.DiagnosticInfos = [] |
|
9224 | self._freeze = True |
|
9225 | ||
9226 | def to_binary(self): |
|
9227 | packet = [] |
|
9228 | packet.append(self.TypeId.to_binary()) |
|
9229 | packet.append(self.ResponseHeader.to_binary()) |
|
9230 | packet.append(uatype_Int32.pack(len(self.Results))) |
|
9231 | for fieldname in self.Results: |
|
9232 | packet.append(fieldname.to_binary()) |
|
9233 | packet.append(uatype_Int32.pack(len(self.DiagnosticInfos))) |
|
9234 | for fieldname in self.DiagnosticInfos: |
|
9235 | packet.append(fieldname.to_binary()) |
|
9236 | return b''.join(packet) |
|
9237 | ||
9238 | @staticmethod |
|
9239 | def from_binary(data): |
|
9240 | return HistoryUpdateResponse(data) |
|
9241 | ||
9242 | def _binary_init(self, data): |
|
9243 | self.TypeId = NodeId.from_binary(data) |
|
9244 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
9245 | length = uatype_Int32.unpack(data.read(4))[0] |
|
9246 | array = [] |
|
9247 | if length != -1: |
|
9248 | for _ in range(0, length): |
|
9249 | array.append(HistoryUpdateResult.from_binary(data)) |
|
9250 | self.Results = array |
|
9251 | length = uatype_Int32.unpack(data.read(4))[0] |
|
9252 | array = [] |
|
9253 | if length != -1: |
|
9254 | for _ in range(0, length): |
|
9255 | array.append(DiagnosticInfo.from_binary(data)) |
|
9256 | self.DiagnosticInfos = array |
|
9257 | ||
9258 | def __str__(self): |
|
9259 | return 'HistoryUpdateResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
9260 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
9261 | 'Results:' + str(self.Results) + ', ' + \ |
|
9262 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
9263 | ||
9264 | __repr__ = __str__ |
|
9265 | ||
9266 | ||
9267 | class CallMethodRequest(FrozenClass): |
|
@@ 8689-8749 (lines=61) @@ | ||
8686 | __repr__ = __str__ |
|
8687 | ||
8688 | ||
8689 | class WriteResponse(FrozenClass): |
|
8690 | ''' |
|
8691 | :ivar TypeId: |
|
8692 | :vartype TypeId: NodeId |
|
8693 | :ivar ResponseHeader: |
|
8694 | :vartype ResponseHeader: ResponseHeader |
|
8695 | :ivar Results: |
|
8696 | :vartype Results: StatusCode |
|
8697 | :ivar DiagnosticInfos: |
|
8698 | :vartype DiagnosticInfos: DiagnosticInfo |
|
8699 | ''' |
|
8700 | def __init__(self, binary=None): |
|
8701 | if binary is not None: |
|
8702 | self._binary_init(binary) |
|
8703 | self._freeze = True |
|
8704 | return |
|
8705 | self.TypeId = FourByteNodeId(ObjectIds.WriteResponse_Encoding_DefaultBinary) |
|
8706 | self.ResponseHeader = ResponseHeader() |
|
8707 | self.Results = [] |
|
8708 | self.DiagnosticInfos = [] |
|
8709 | self._freeze = True |
|
8710 | ||
8711 | def to_binary(self): |
|
8712 | packet = [] |
|
8713 | packet.append(self.TypeId.to_binary()) |
|
8714 | packet.append(self.ResponseHeader.to_binary()) |
|
8715 | packet.append(uatype_Int32.pack(len(self.Results))) |
|
8716 | for fieldname in self.Results: |
|
8717 | packet.append(fieldname.to_binary()) |
|
8718 | packet.append(uatype_Int32.pack(len(self.DiagnosticInfos))) |
|
8719 | for fieldname in self.DiagnosticInfos: |
|
8720 | packet.append(fieldname.to_binary()) |
|
8721 | return b''.join(packet) |
|
8722 | ||
8723 | @staticmethod |
|
8724 | def from_binary(data): |
|
8725 | return WriteResponse(data) |
|
8726 | ||
8727 | def _binary_init(self, data): |
|
8728 | self.TypeId = NodeId.from_binary(data) |
|
8729 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
8730 | length = uatype_Int32.unpack(data.read(4))[0] |
|
8731 | array = [] |
|
8732 | if length != -1: |
|
8733 | for _ in range(0, length): |
|
8734 | array.append(StatusCode.from_binary(data)) |
|
8735 | self.Results = array |
|
8736 | length = uatype_Int32.unpack(data.read(4))[0] |
|
8737 | array = [] |
|
8738 | if length != -1: |
|
8739 | for _ in range(0, length): |
|
8740 | array.append(DiagnosticInfo.from_binary(data)) |
|
8741 | self.DiagnosticInfos = array |
|
8742 | ||
8743 | def __str__(self): |
|
8744 | return 'WriteResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
8745 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
8746 | 'Results:' + str(self.Results) + ', ' + \ |
|
8747 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
8748 | ||
8749 | __repr__ = __str__ |
|
8750 | ||
8751 | ||
8752 | class HistoryUpdateDetails(FrozenClass): |
|
@@ 8496-8556 (lines=61) @@ | ||
8493 | __repr__ = __str__ |
|
8494 | ||
8495 | ||
8496 | class HistoryReadResponse(FrozenClass): |
|
8497 | ''' |
|
8498 | :ivar TypeId: |
|
8499 | :vartype TypeId: NodeId |
|
8500 | :ivar ResponseHeader: |
|
8501 | :vartype ResponseHeader: ResponseHeader |
|
8502 | :ivar Results: |
|
8503 | :vartype Results: HistoryReadResult |
|
8504 | :ivar DiagnosticInfos: |
|
8505 | :vartype DiagnosticInfos: DiagnosticInfo |
|
8506 | ''' |
|
8507 | def __init__(self, binary=None): |
|
8508 | if binary is not None: |
|
8509 | self._binary_init(binary) |
|
8510 | self._freeze = True |
|
8511 | return |
|
8512 | self.TypeId = FourByteNodeId(ObjectIds.HistoryReadResponse_Encoding_DefaultBinary) |
|
8513 | self.ResponseHeader = ResponseHeader() |
|
8514 | self.Results = [] |
|
8515 | self.DiagnosticInfos = [] |
|
8516 | self._freeze = True |
|
8517 | ||
8518 | def to_binary(self): |
|
8519 | packet = [] |
|
8520 | packet.append(self.TypeId.to_binary()) |
|
8521 | packet.append(self.ResponseHeader.to_binary()) |
|
8522 | packet.append(uatype_Int32.pack(len(self.Results))) |
|
8523 | for fieldname in self.Results: |
|
8524 | packet.append(fieldname.to_binary()) |
|
8525 | packet.append(uatype_Int32.pack(len(self.DiagnosticInfos))) |
|
8526 | for fieldname in self.DiagnosticInfos: |
|
8527 | packet.append(fieldname.to_binary()) |
|
8528 | return b''.join(packet) |
|
8529 | ||
8530 | @staticmethod |
|
8531 | def from_binary(data): |
|
8532 | return HistoryReadResponse(data) |
|
8533 | ||
8534 | def _binary_init(self, data): |
|
8535 | self.TypeId = NodeId.from_binary(data) |
|
8536 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
8537 | length = uatype_Int32.unpack(data.read(4))[0] |
|
8538 | array = [] |
|
8539 | if length != -1: |
|
8540 | for _ in range(0, length): |
|
8541 | array.append(HistoryReadResult.from_binary(data)) |
|
8542 | self.Results = array |
|
8543 | length = uatype_Int32.unpack(data.read(4))[0] |
|
8544 | array = [] |
|
8545 | if length != -1: |
|
8546 | for _ in range(0, length): |
|
8547 | array.append(DiagnosticInfo.from_binary(data)) |
|
8548 | self.DiagnosticInfos = array |
|
8549 | ||
8550 | def __str__(self): |
|
8551 | return 'HistoryReadResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
8552 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
8553 | 'Results:' + str(self.Results) + ', ' + \ |
|
8554 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
8555 | ||
8556 | __repr__ = __str__ |
|
8557 | ||
8558 | ||
8559 | class WriteValue(FrozenClass): |
|
@@ 7840-7900 (lines=61) @@ | ||
7837 | __repr__ = __str__ |
|
7838 | ||
7839 | ||
7840 | class ReadResponse(FrozenClass): |
|
7841 | ''' |
|
7842 | :ivar TypeId: |
|
7843 | :vartype TypeId: NodeId |
|
7844 | :ivar ResponseHeader: |
|
7845 | :vartype ResponseHeader: ResponseHeader |
|
7846 | :ivar Results: |
|
7847 | :vartype Results: DataValue |
|
7848 | :ivar DiagnosticInfos: |
|
7849 | :vartype DiagnosticInfos: DiagnosticInfo |
|
7850 | ''' |
|
7851 | def __init__(self, binary=None): |
|
7852 | if binary is not None: |
|
7853 | self._binary_init(binary) |
|
7854 | self._freeze = True |
|
7855 | return |
|
7856 | self.TypeId = FourByteNodeId(ObjectIds.ReadResponse_Encoding_DefaultBinary) |
|
7857 | self.ResponseHeader = ResponseHeader() |
|
7858 | self.Results = [] |
|
7859 | self.DiagnosticInfos = [] |
|
7860 | self._freeze = True |
|
7861 | ||
7862 | def to_binary(self): |
|
7863 | packet = [] |
|
7864 | packet.append(self.TypeId.to_binary()) |
|
7865 | packet.append(self.ResponseHeader.to_binary()) |
|
7866 | packet.append(uatype_Int32.pack(len(self.Results))) |
|
7867 | for fieldname in self.Results: |
|
7868 | packet.append(fieldname.to_binary()) |
|
7869 | packet.append(uatype_Int32.pack(len(self.DiagnosticInfos))) |
|
7870 | for fieldname in self.DiagnosticInfos: |
|
7871 | packet.append(fieldname.to_binary()) |
|
7872 | return b''.join(packet) |
|
7873 | ||
7874 | @staticmethod |
|
7875 | def from_binary(data): |
|
7876 | return ReadResponse(data) |
|
7877 | ||
7878 | def _binary_init(self, data): |
|
7879 | self.TypeId = NodeId.from_binary(data) |
|
7880 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
7881 | length = uatype_Int32.unpack(data.read(4))[0] |
|
7882 | array = [] |
|
7883 | if length != -1: |
|
7884 | for _ in range(0, length): |
|
7885 | array.append(DataValue.from_binary(data)) |
|
7886 | self.Results = array |
|
7887 | length = uatype_Int32.unpack(data.read(4))[0] |
|
7888 | array = [] |
|
7889 | if length != -1: |
|
7890 | for _ in range(0, length): |
|
7891 | array.append(DiagnosticInfo.from_binary(data)) |
|
7892 | self.DiagnosticInfos = array |
|
7893 | ||
7894 | def __str__(self): |
|
7895 | return 'ReadResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
7896 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
7897 | 'Results:' + str(self.Results) + ', ' + \ |
|
7898 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
7899 | ||
7900 | __repr__ = __str__ |
|
7901 | ||
7902 | ||
7903 | class HistoryReadValueId(FrozenClass): |
|
@@ 2321-2381 (lines=61) @@ | ||
2318 | __repr__ = __str__ |
|
2319 | ||
2320 | ||
2321 | class RegisterServer2Response(FrozenClass): |
|
2322 | ''' |
|
2323 | :ivar TypeId: |
|
2324 | :vartype TypeId: NodeId |
|
2325 | :ivar ResponseHeader: |
|
2326 | :vartype ResponseHeader: ResponseHeader |
|
2327 | :ivar ConfigurationResults: |
|
2328 | :vartype ConfigurationResults: StatusCode |
|
2329 | :ivar DiagnosticInfos: |
|
2330 | :vartype DiagnosticInfos: DiagnosticInfo |
|
2331 | ''' |
|
2332 | def __init__(self, binary=None): |
|
2333 | if binary is not None: |
|
2334 | self._binary_init(binary) |
|
2335 | self._freeze = True |
|
2336 | return |
|
2337 | self.TypeId = FourByteNodeId(ObjectIds.RegisterServer2Response_Encoding_DefaultBinary) |
|
2338 | self.ResponseHeader = ResponseHeader() |
|
2339 | self.ConfigurationResults = [] |
|
2340 | self.DiagnosticInfos = [] |
|
2341 | self._freeze = True |
|
2342 | ||
2343 | def to_binary(self): |
|
2344 | packet = [] |
|
2345 | packet.append(self.TypeId.to_binary()) |
|
2346 | packet.append(self.ResponseHeader.to_binary()) |
|
2347 | packet.append(uatype_Int32.pack(len(self.ConfigurationResults))) |
|
2348 | for fieldname in self.ConfigurationResults: |
|
2349 | packet.append(fieldname.to_binary()) |
|
2350 | packet.append(uatype_Int32.pack(len(self.DiagnosticInfos))) |
|
2351 | for fieldname in self.DiagnosticInfos: |
|
2352 | packet.append(fieldname.to_binary()) |
|
2353 | return b''.join(packet) |
|
2354 | ||
2355 | @staticmethod |
|
2356 | def from_binary(data): |
|
2357 | return RegisterServer2Response(data) |
|
2358 | ||
2359 | def _binary_init(self, data): |
|
2360 | self.TypeId = NodeId.from_binary(data) |
|
2361 | self.ResponseHeader = ResponseHeader.from_binary(data) |
|
2362 | length = uatype_Int32.unpack(data.read(4))[0] |
|
2363 | array = [] |
|
2364 | if length != -1: |
|
2365 | for _ in range(0, length): |
|
2366 | array.append(StatusCode.from_binary(data)) |
|
2367 | self.ConfigurationResults = array |
|
2368 | length = uatype_Int32.unpack(data.read(4))[0] |
|
2369 | array = [] |
|
2370 | if length != -1: |
|
2371 | for _ in range(0, length): |
|
2372 | array.append(DiagnosticInfo.from_binary(data)) |
|
2373 | self.DiagnosticInfos = array |
|
2374 | ||
2375 | def __str__(self): |
|
2376 | return 'RegisterServer2Response(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
2377 | 'ResponseHeader:' + str(self.ResponseHeader) + ', ' + \ |
|
2378 | 'ConfigurationResults:' + str(self.ConfigurationResults) + ', ' + \ |
|
2379 | 'DiagnosticInfos:' + str(self.DiagnosticInfos) + ')' |
|
2380 | ||
2381 | __repr__ = __str__ |
|
2382 | ||
2383 | ||
2384 | class ChannelSecurityToken(FrozenClass): |