@@ 3902-3947 (lines=46) @@ | ||
3899 | __repr__ = __str__ |
|
3900 | ||
3901 | ||
3902 | class CloseSessionRequest(FrozenClass): |
|
3903 | ''' |
|
3904 | Closes a session with the server. |
|
3905 | ||
3906 | :ivar TypeId: |
|
3907 | :vartype TypeId: NodeId |
|
3908 | :ivar RequestHeader: |
|
3909 | :vartype RequestHeader: RequestHeader |
|
3910 | :ivar DeleteSubscriptions: |
|
3911 | :vartype DeleteSubscriptions: Boolean |
|
3912 | ''' |
|
3913 | ||
3914 | ua_types = [ |
|
3915 | ||
3916 | ('TypeId', 'NodeId'), |
|
3917 | ('RequestHeader', 'RequestHeader'), |
|
3918 | ('DeleteSubscriptions', 'Boolean'), |
|
3919 | ] |
|
3920 | ||
3921 | def __init__(self): |
|
3922 | self.TypeId = FourByteNodeId(ObjectIds.CloseSessionRequest_Encoding_DefaultBinary) |
|
3923 | self.RequestHeader = RequestHeader() |
|
3924 | self.DeleteSubscriptions = True |
|
3925 | self._freeze = True |
|
3926 | ||
3927 | def to_binary(self): |
|
3928 | packet = [] |
|
3929 | packet.append(self.TypeId.to_binary()) |
|
3930 | packet.append(self.RequestHeader.to_binary()) |
|
3931 | packet.append(uabin.Primitives.Boolean.pack(self.DeleteSubscriptions)) |
|
3932 | return b''.join(packet) |
|
3933 | ||
3934 | @staticmethod |
|
3935 | def from_binary(data): |
|
3936 | obj = CloseSessionRequest() |
|
3937 | obj.TypeId = NodeId.from_binary(data) |
|
3938 | obj.RequestHeader = RequestHeader.from_binary(data) |
|
3939 | self.DeleteSubscriptions = uabin.Primitives.Boolean.unpack(data) |
|
3940 | return obj |
|
3941 | ||
3942 | def __str__(self): |
|
3943 | return 'CloseSessionRequest(' + 'TypeId:' + str(self.TypeId) + ', ' + \ |
|
3944 | 'RequestHeader:' + str(self.RequestHeader) + ', ' + \ |
|
3945 | 'DeleteSubscriptions:' + str(self.DeleteSubscriptions) + ')' |
|
3946 | ||
3947 | __repr__ = __str__ |
|
3948 | ||
3949 | ||
3950 | class CloseSessionResponse(FrozenClass): |
|
@@ 1194-1239 (lines=46) @@ | ||
1191 | __repr__ = __str__ |
|
1192 | ||
1193 | ||
1194 | class EnumValueType(FrozenClass): |
|
1195 | ''' |
|
1196 | A mapping between a value of an enumerated type and a name and description. |
|
1197 | ||
1198 | :ivar Value: |
|
1199 | :vartype Value: Int64 |
|
1200 | :ivar DisplayName: |
|
1201 | :vartype DisplayName: LocalizedText |
|
1202 | :ivar Description: |
|
1203 | :vartype Description: LocalizedText |
|
1204 | ''' |
|
1205 | ||
1206 | ua_types = [ |
|
1207 | ||
1208 | ('Value', 'Int64'), |
|
1209 | ('DisplayName', 'LocalizedText'), |
|
1210 | ('Description', 'LocalizedText'), |
|
1211 | ] |
|
1212 | ||
1213 | def __init__(self): |
|
1214 | self.Value = 0 |
|
1215 | self.DisplayName = LocalizedText() |
|
1216 | self.Description = LocalizedText() |
|
1217 | self._freeze = True |
|
1218 | ||
1219 | def to_binary(self): |
|
1220 | packet = [] |
|
1221 | packet.append(uabin.Primitives.Int64.pack(self.Value)) |
|
1222 | packet.append(self.DisplayName.to_binary()) |
|
1223 | packet.append(self.Description.to_binary()) |
|
1224 | return b''.join(packet) |
|
1225 | ||
1226 | @staticmethod |
|
1227 | def from_binary(data): |
|
1228 | obj = EnumValueType() |
|
1229 | self.Value = uabin.Primitives.Int64.unpack(data) |
|
1230 | obj.DisplayName = LocalizedText.from_binary(data) |
|
1231 | obj.Description = LocalizedText.from_binary(data) |
|
1232 | return obj |
|
1233 | ||
1234 | def __str__(self): |
|
1235 | return 'EnumValueType(' + 'Value:' + str(self.Value) + ', ' + \ |
|
1236 | 'DisplayName:' + str(self.DisplayName) + ', ' + \ |
|
1237 | 'Description:' + str(self.Description) + ')' |
|
1238 | ||
1239 | __repr__ = __str__ |
|
1240 | ||
1241 | ||
1242 | class OptionSet(FrozenClass): |
|
@@ 14770-14813 (lines=44) @@ | ||
14767 | __repr__ = __str__ |
|
14768 | ||
14769 | ||
14770 | class ModelChangeStructureDataType(FrozenClass): |
|
14771 | ''' |
|
14772 | :ivar Affected: |
|
14773 | :vartype Affected: NodeId |
|
14774 | :ivar AffectedType: |
|
14775 | :vartype AffectedType: NodeId |
|
14776 | :ivar Verb: |
|
14777 | :vartype Verb: Byte |
|
14778 | ''' |
|
14779 | ||
14780 | ua_types = [ |
|
14781 | ||
14782 | ('Affected', 'NodeId'), |
|
14783 | ('AffectedType', 'NodeId'), |
|
14784 | ('Verb', 'Byte'), |
|
14785 | ] |
|
14786 | ||
14787 | def __init__(self): |
|
14788 | self.Affected = NodeId() |
|
14789 | self.AffectedType = NodeId() |
|
14790 | self.Verb = 0 |
|
14791 | self._freeze = True |
|
14792 | ||
14793 | def to_binary(self): |
|
14794 | packet = [] |
|
14795 | packet.append(self.Affected.to_binary()) |
|
14796 | packet.append(self.AffectedType.to_binary()) |
|
14797 | packet.append(uabin.Primitives.Byte.pack(self.Verb)) |
|
14798 | return b''.join(packet) |
|
14799 | ||
14800 | @staticmethod |
|
14801 | def from_binary(data): |
|
14802 | obj = ModelChangeStructureDataType() |
|
14803 | obj.Affected = NodeId.from_binary(data) |
|
14804 | obj.AffectedType = NodeId.from_binary(data) |
|
14805 | self.Verb = uabin.Primitives.Byte.unpack(data) |
|
14806 | return obj |
|
14807 | ||
14808 | def __str__(self): |
|
14809 | return 'ModelChangeStructureDataType(' + 'Affected:' + str(self.Affected) + ', ' + \ |
|
14810 | 'AffectedType:' + str(self.AffectedType) + ', ' + \ |
|
14811 | 'Verb:' + str(self.Verb) + ')' |
|
14812 | ||
14813 | __repr__ = __str__ |
|
14814 | ||
14815 | ||
14816 | class SemanticChangeStructureDataType(FrozenClass): |
|
@@ 10808-10851 (lines=44) @@ | ||
10805 | __repr__ = __str__ |
|
10806 | ||
10807 | ||
10808 | class MonitoredItemCreateRequest(FrozenClass): |
|
10809 | ''' |
|
10810 | :ivar ItemToMonitor: |
|
10811 | :vartype ItemToMonitor: ReadValueId |
|
10812 | :ivar MonitoringMode: |
|
10813 | :vartype MonitoringMode: MonitoringMode |
|
10814 | :ivar RequestedParameters: |
|
10815 | :vartype RequestedParameters: MonitoringParameters |
|
10816 | ''' |
|
10817 | ||
10818 | ua_types = [ |
|
10819 | ||
10820 | ('ItemToMonitor', 'ReadValueId'), |
|
10821 | ('MonitoringMode', 'MonitoringMode'), |
|
10822 | ('RequestedParameters', 'MonitoringParameters'), |
|
10823 | ] |
|
10824 | ||
10825 | def __init__(self): |
|
10826 | self.ItemToMonitor = ReadValueId() |
|
10827 | self.MonitoringMode = MonitoringMode(0) |
|
10828 | self.RequestedParameters = MonitoringParameters() |
|
10829 | self._freeze = True |
|
10830 | ||
10831 | def to_binary(self): |
|
10832 | packet = [] |
|
10833 | packet.append(self.ItemToMonitor.to_binary()) |
|
10834 | packet.append(uabin.Primitives.UInt32.pack(self.MonitoringMode.value)) |
|
10835 | packet.append(self.RequestedParameters.to_binary()) |
|
10836 | return b''.join(packet) |
|
10837 | ||
10838 | @staticmethod |
|
10839 | def from_binary(data): |
|
10840 | obj = MonitoredItemCreateRequest() |
|
10841 | obj.ItemToMonitor = ReadValueId.from_binary(data) |
|
10842 | self.MonitoringMode = MonitoringMode(uabin.Primitives.UInt32.unpack(data)) |
|
10843 | obj.RequestedParameters = MonitoringParameters.from_binary(data) |
|
10844 | return obj |
|
10845 | ||
10846 | def __str__(self): |
|
10847 | return 'MonitoredItemCreateRequest(' + 'ItemToMonitor:' + str(self.ItemToMonitor) + ', ' + \ |
|
10848 | 'MonitoringMode:' + str(self.MonitoringMode) + ', ' + \ |
|
10849 | 'RequestedParameters:' + str(self.RequestedParameters) + ')' |
|
10850 | ||
10851 | __repr__ = __str__ |
|
10852 | ||
10853 | ||
10854 | class MonitoredItemCreateResult(FrozenClass): |
|
@@ 8713-8756 (lines=44) @@ | ||
8710 | __repr__ = __str__ |
|
8711 | ||
8712 | ||
8713 | class HistoryReadResult(FrozenClass): |
|
8714 | ''' |
|
8715 | :ivar StatusCode: |
|
8716 | :vartype StatusCode: StatusCode |
|
8717 | :ivar ContinuationPoint: |
|
8718 | :vartype ContinuationPoint: ByteString |
|
8719 | :ivar HistoryData: |
|
8720 | :vartype HistoryData: ExtensionObject |
|
8721 | ''' |
|
8722 | ||
8723 | ua_types = [ |
|
8724 | ||
8725 | ('StatusCode', 'StatusCode'), |
|
8726 | ('ContinuationPoint', 'ByteString'), |
|
8727 | ('HistoryData', 'ExtensionObject'), |
|
8728 | ] |
|
8729 | ||
8730 | def __init__(self): |
|
8731 | self.StatusCode = StatusCode() |
|
8732 | self.ContinuationPoint = None |
|
8733 | self.HistoryData = None |
|
8734 | self._freeze = True |
|
8735 | ||
8736 | def to_binary(self): |
|
8737 | packet = [] |
|
8738 | packet.append(self.StatusCode.to_binary()) |
|
8739 | packet.append(uabin.Primitives.ByteString.pack(self.ContinuationPoint)) |
|
8740 | packet.append(extensionobject_to_binary(self.HistoryData)) |
|
8741 | return b''.join(packet) |
|
8742 | ||
8743 | @staticmethod |
|
8744 | def from_binary(data): |
|
8745 | obj = HistoryReadResult() |
|
8746 | obj.StatusCode = StatusCode.from_binary(data) |
|
8747 | self.ContinuationPoint = uabin.Primitives.ByteString.unpack(data) |
|
8748 | obj.HistoryData = extensionobject_from_binary(data) |
|
8749 | return obj |
|
8750 | ||
8751 | def __str__(self): |
|
8752 | return 'HistoryReadResult(' + 'StatusCode:' + str(self.StatusCode) + ', ' + \ |
|
8753 | 'ContinuationPoint:' + str(self.ContinuationPoint) + ', ' + \ |
|
8754 | 'HistoryData:' + str(self.HistoryData) + ')' |
|
8755 | ||
8756 | __repr__ = __str__ |
|
8757 | ||
8758 | ||
8759 | class HistoryReadDetails(FrozenClass): |
|
@@ 7370-7413 (lines=44) @@ | ||
7367 | __repr__ = __str__ |
|
7368 | ||
7369 | ||
7370 | class QueryDataDescription(FrozenClass): |
|
7371 | ''' |
|
7372 | :ivar RelativePath: |
|
7373 | :vartype RelativePath: RelativePath |
|
7374 | :ivar AttributeId: |
|
7375 | :vartype AttributeId: UInt32 |
|
7376 | :ivar IndexRange: |
|
7377 | :vartype IndexRange: String |
|
7378 | ''' |
|
7379 | ||
7380 | ua_types = [ |
|
7381 | ||
7382 | ('RelativePath', 'RelativePath'), |
|
7383 | ('AttributeId', 'UInt32'), |
|
7384 | ('IndexRange', 'String'), |
|
7385 | ] |
|
7386 | ||
7387 | def __init__(self): |
|
7388 | self.RelativePath = RelativePath() |
|
7389 | self.AttributeId = 0 |
|
7390 | self.IndexRange = None |
|
7391 | self._freeze = True |
|
7392 | ||
7393 | def to_binary(self): |
|
7394 | packet = [] |
|
7395 | packet.append(self.RelativePath.to_binary()) |
|
7396 | packet.append(uabin.Primitives.UInt32.pack(self.AttributeId)) |
|
7397 | packet.append(uabin.Primitives.String.pack(self.IndexRange)) |
|
7398 | return b''.join(packet) |
|
7399 | ||
7400 | @staticmethod |
|
7401 | def from_binary(data): |
|
7402 | obj = QueryDataDescription() |
|
7403 | obj.RelativePath = RelativePath.from_binary(data) |
|
7404 | self.AttributeId = uabin.Primitives.UInt32.unpack(data) |
|
7405 | self.IndexRange = uabin.Primitives.String.unpack(data) |
|
7406 | return obj |
|
7407 | ||
7408 | def __str__(self): |
|
7409 | return 'QueryDataDescription(' + 'RelativePath:' + str(self.RelativePath) + ', ' + \ |
|
7410 | 'AttributeId:' + str(self.AttributeId) + ', ' + \ |
|
7411 | 'IndexRange:' + str(self.IndexRange) + ')' |
|
7412 | ||
7413 | __repr__ = __str__ |
|
7414 | ||
7415 | ||
7416 | class NodeTypeDescription(FrozenClass): |
|
@@ 2889-2932 (lines=44) @@ | ||
2886 | __repr__ = __str__ |
|
2887 | ||
2888 | ||
2889 | class OpenSecureChannelResult(FrozenClass): |
|
2890 | ''' |
|
2891 | :ivar ServerProtocolVersion: |
|
2892 | :vartype ServerProtocolVersion: UInt32 |
|
2893 | :ivar SecurityToken: |
|
2894 | :vartype SecurityToken: ChannelSecurityToken |
|
2895 | :ivar ServerNonce: |
|
2896 | :vartype ServerNonce: ByteString |
|
2897 | ''' |
|
2898 | ||
2899 | ua_types = [ |
|
2900 | ||
2901 | ('ServerProtocolVersion', 'UInt32'), |
|
2902 | ('SecurityToken', 'ChannelSecurityToken'), |
|
2903 | ('ServerNonce', 'ByteString'), |
|
2904 | ] |
|
2905 | ||
2906 | def __init__(self): |
|
2907 | self.ServerProtocolVersion = 0 |
|
2908 | self.SecurityToken = ChannelSecurityToken() |
|
2909 | self.ServerNonce = None |
|
2910 | self._freeze = True |
|
2911 | ||
2912 | def to_binary(self): |
|
2913 | packet = [] |
|
2914 | packet.append(uabin.Primitives.UInt32.pack(self.ServerProtocolVersion)) |
|
2915 | packet.append(self.SecurityToken.to_binary()) |
|
2916 | packet.append(uabin.Primitives.ByteString.pack(self.ServerNonce)) |
|
2917 | return b''.join(packet) |
|
2918 | ||
2919 | @staticmethod |
|
2920 | def from_binary(data): |
|
2921 | obj = OpenSecureChannelResult() |
|
2922 | self.ServerProtocolVersion = uabin.Primitives.UInt32.unpack(data) |
|
2923 | obj.SecurityToken = ChannelSecurityToken.from_binary(data) |
|
2924 | self.ServerNonce = uabin.Primitives.ByteString.unpack(data) |
|
2925 | return obj |
|
2926 | ||
2927 | def __str__(self): |
|
2928 | return 'OpenSecureChannelResult(' + 'ServerProtocolVersion:' + str(self.ServerProtocolVersion) + ', ' + \ |
|
2929 | 'SecurityToken:' + str(self.SecurityToken) + ', ' + \ |
|
2930 | 'ServerNonce:' + str(self.ServerNonce) + ')' |
|
2931 | ||
2932 | __repr__ = __str__ |
|
2933 | ||
2934 | ||
2935 | class OpenSecureChannelResponse(FrozenClass): |