Code Duplication    Length = 41-50 lines in 45 locations

opcua/ua/uaprotocol_auto.py 45 locations

@@ 2412-2456 (lines=45) @@
2409
    __repr__ = __str__
2410
2411
2412
class MdnsDiscoveryConfiguration(FrozenClass):
2413
    '''
2414
    The discovery information needed for mDNS registration.
2415
2416
    :ivar MdnsServerName:
2417
    :vartype MdnsServerName: String
2418
    :ivar ServerCapabilities:
2419
    :vartype ServerCapabilities: String
2420
    '''
2421
2422
    ua_types = {
2423
        'MdnsServerName': 'String',
2424
        'ServerCapabilities': 'String',
2425
               }
2426
2427
    def __init__(self, binary=None):
2428
        if binary is not None:
2429
            self._binary_init(binary)
2430
            self._freeze = True
2431
            return
2432
        self.MdnsServerName = None
2433
        self.ServerCapabilities = []
2434
        self._freeze = True
2435
2436
    def to_binary(self):
2437
        packet = []
2438
        packet.append(uabin.Primitives.String.pack(self.MdnsServerName))
2439
        packet.append(uabin.Primitives.Int32.pack(len(self.ServerCapabilities)))
2440
        for fieldname in self.ServerCapabilities:
2441
            packet.append(uabin.Primitives.String.pack(fieldname))
2442
        return b''.join(packet)
2443
2444
    @staticmethod
2445
    def from_binary(data):
2446
        return MdnsDiscoveryConfiguration(data)
2447
2448
    def _binary_init(self, data):
2449
        self.MdnsServerName = uabin.Primitives.String.unpack(data)
2450
        self.ServerCapabilities = uabin.Primitives.String.unpack_array(data)
2451
2452
    def __str__(self):
2453
        return 'MdnsDiscoveryConfiguration(' + 'MdnsServerName:' + str(self.MdnsServerName) + ', ' + \
2454
               'ServerCapabilities:' + str(self.ServerCapabilities) + ')'
2455
2456
    __repr__ = __str__
2457
2458
2459
class RegisterServer2Parameters(FrozenClass):
@@ 13961-14003 (lines=43) @@
13958
    __repr__ = __str__
13959
13960
13961
class TransferSubscriptionsParameters(FrozenClass):
13962
    '''
13963
    :ivar SubscriptionIds:
13964
    :vartype SubscriptionIds: UInt32
13965
    :ivar SendInitialValues:
13966
    :vartype SendInitialValues: Boolean
13967
    '''
13968
13969
    ua_types = {
13970
        'SubscriptionIds': 'UInt32',
13971
        'SendInitialValues': 'Boolean',
13972
               }
13973
13974
    def __init__(self, binary=None):
13975
        if binary is not None:
13976
            self._binary_init(binary)
13977
            self._freeze = True
13978
            return
13979
        self.SubscriptionIds = []
13980
        self.SendInitialValues = True
13981
        self._freeze = True
13982
13983
    def to_binary(self):
13984
        packet = []
13985
        packet.append(uabin.Primitives.Int32.pack(len(self.SubscriptionIds)))
13986
        for fieldname in self.SubscriptionIds:
13987
            packet.append(uabin.Primitives.UInt32.pack(fieldname))
13988
        packet.append(uabin.Primitives.Boolean.pack(self.SendInitialValues))
13989
        return b''.join(packet)
13990
13991
    @staticmethod
13992
    def from_binary(data):
13993
        return TransferSubscriptionsParameters(data)
13994
13995
    def _binary_init(self, data):
13996
        self.SubscriptionIds = uabin.Primitives.UInt32.unpack_array(data)
13997
        self.SendInitialValues = uabin.Primitives.Boolean.unpack(data)
13998
13999
    def __str__(self):
14000
        return 'TransferSubscriptionsParameters(' + 'SubscriptionIds:' + str(self.SubscriptionIds) + ', ' + \
14001
               'SendInitialValues:' + str(self.SendInitialValues) + ')'
14002
14003
    __repr__ = __str__
14004
14005
14006
class TransferSubscriptionsRequest(FrozenClass):
@@ 12931-12973 (lines=43) @@
12928
    __repr__ = __str__
12929
12930
12931
class SetPublishingModeParameters(FrozenClass):
12932
    '''
12933
    :ivar PublishingEnabled:
12934
    :vartype PublishingEnabled: Boolean
12935
    :ivar SubscriptionIds:
12936
    :vartype SubscriptionIds: UInt32
12937
    '''
12938
12939
    ua_types = {
12940
        'PublishingEnabled': 'Boolean',
12941
        'SubscriptionIds': 'UInt32',
12942
               }
12943
12944
    def __init__(self, binary=None):
12945
        if binary is not None:
12946
            self._binary_init(binary)
12947
            self._freeze = True
12948
            return
12949
        self.PublishingEnabled = True
12950
        self.SubscriptionIds = []
12951
        self._freeze = True
12952
12953
    def to_binary(self):
12954
        packet = []
12955
        packet.append(uabin.Primitives.Boolean.pack(self.PublishingEnabled))
12956
        packet.append(uabin.Primitives.Int32.pack(len(self.SubscriptionIds)))
12957
        for fieldname in self.SubscriptionIds:
12958
            packet.append(uabin.Primitives.UInt32.pack(fieldname))
12959
        return b''.join(packet)
12960
12961
    @staticmethod
12962
    def from_binary(data):
12963
        return SetPublishingModeParameters(data)
12964
12965
    def _binary_init(self, data):
12966
        self.PublishingEnabled = uabin.Primitives.Boolean.unpack(data)
12967
        self.SubscriptionIds = uabin.Primitives.UInt32.unpack_array(data)
12968
12969
    def __str__(self):
12970
        return 'SetPublishingModeParameters(' + 'PublishingEnabled:' + str(self.PublishingEnabled) + ', ' + \
12971
               'SubscriptionIds:' + str(self.SubscriptionIds) + ')'
12972
12973
    __repr__ = __str__
12974
12975
12976
class SetPublishingModeRequest(FrozenClass):
@@ 12316-12358 (lines=43) @@
12313
    __repr__ = __str__
12314
12315
12316
class DeleteMonitoredItemsParameters(FrozenClass):
12317
    '''
12318
    :ivar SubscriptionId:
12319
    :vartype SubscriptionId: UInt32
12320
    :ivar MonitoredItemIds:
12321
    :vartype MonitoredItemIds: UInt32
12322
    '''
12323
12324
    ua_types = {
12325
        'SubscriptionId': 'UInt32',
12326
        'MonitoredItemIds': 'UInt32',
12327
               }
12328
12329
    def __init__(self, binary=None):
12330
        if binary is not None:
12331
            self._binary_init(binary)
12332
            self._freeze = True
12333
            return
12334
        self.SubscriptionId = 0
12335
        self.MonitoredItemIds = []
12336
        self._freeze = True
12337
12338
    def to_binary(self):
12339
        packet = []
12340
        packet.append(uabin.Primitives.UInt32.pack(self.SubscriptionId))
12341
        packet.append(uabin.Primitives.Int32.pack(len(self.MonitoredItemIds)))
12342
        for fieldname in self.MonitoredItemIds:
12343
            packet.append(uabin.Primitives.UInt32.pack(fieldname))
12344
        return b''.join(packet)
12345
12346
    @staticmethod
12347
    def from_binary(data):
12348
        return DeleteMonitoredItemsParameters(data)
12349
12350
    def _binary_init(self, data):
12351
        self.SubscriptionId = uabin.Primitives.UInt32.unpack(data)
12352
        self.MonitoredItemIds = uabin.Primitives.UInt32.unpack_array(data)
12353
12354
    def __str__(self):
12355
        return 'DeleteMonitoredItemsParameters(' + 'SubscriptionId:' + str(self.SubscriptionId) + ', ' + \
12356
               'MonitoredItemIds:' + str(self.MonitoredItemIds) + ')'
12357
12358
    __repr__ = __str__
12359
12360
12361
class DeleteMonitoredItemsRequest(FrozenClass):
@@ 10258-10300 (lines=43) @@
10255
    __repr__ = __str__
10256
10257
10258
class DeleteEventDetails(FrozenClass):
10259
    '''
10260
    :ivar NodeId:
10261
    :vartype NodeId: NodeId
10262
    :ivar EventIds:
10263
    :vartype EventIds: ByteString
10264
    '''
10265
10266
    ua_types = {
10267
        'NodeId': 'NodeId',
10268
        'EventIds': 'ByteString',
10269
               }
10270
10271
    def __init__(self, binary=None):
10272
        if binary is not None:
10273
            self._binary_init(binary)
10274
            self._freeze = True
10275
            return
10276
        self.NodeId = NodeId()
10277
        self.EventIds = []
10278
        self._freeze = True
10279
10280
    def to_binary(self):
10281
        packet = []
10282
        packet.append(self.NodeId.to_binary())
10283
        packet.append(uabin.Primitives.Int32.pack(len(self.EventIds)))
10284
        for fieldname in self.EventIds:
10285
            packet.append(uabin.Primitives.ByteString.pack(fieldname))
10286
        return b''.join(packet)
10287
10288
    @staticmethod
10289
    def from_binary(data):
10290
        return DeleteEventDetails(data)
10291
10292
    def _binary_init(self, data):
10293
        self.NodeId = NodeId.from_binary(data)
10294
        self.EventIds = uabin.Primitives.ByteString.unpack_array(data)
10295
10296
    def __str__(self):
10297
        return 'DeleteEventDetails(' + 'NodeId:' + str(self.NodeId) + ', ' + \
10298
               'EventIds:' + str(self.EventIds) + ')'
10299
10300
    __repr__ = __str__
10301
10302
10303
class HistoryUpdateResult(FrozenClass):
@@ 9298-9340 (lines=43) @@
9295
    __repr__ = __str__
9296
9297
9298
class ReadAtTimeDetails(FrozenClass):
9299
    '''
9300
    :ivar ReqTimes:
9301
    :vartype ReqTimes: DateTime
9302
    :ivar UseSimpleBounds:
9303
    :vartype UseSimpleBounds: Boolean
9304
    '''
9305
9306
    ua_types = {
9307
        'ReqTimes': 'DateTime',
9308
        'UseSimpleBounds': 'Boolean',
9309
               }
9310
9311
    def __init__(self, binary=None):
9312
        if binary is not None:
9313
            self._binary_init(binary)
9314
            self._freeze = True
9315
            return
9316
        self.ReqTimes = []
9317
        self.UseSimpleBounds = True
9318
        self._freeze = True
9319
9320
    def to_binary(self):
9321
        packet = []
9322
        packet.append(uabin.Primitives.Int32.pack(len(self.ReqTimes)))
9323
        for fieldname in self.ReqTimes:
9324
            packet.append(uabin.Primitives.DateTime.pack(fieldname))
9325
        packet.append(uabin.Primitives.Boolean.pack(self.UseSimpleBounds))
9326
        return b''.join(packet)
9327
9328
    @staticmethod
9329
    def from_binary(data):
9330
        return ReadAtTimeDetails(data)
9331
9332
    def _binary_init(self, data):
9333
        self.ReqTimes = uabin.Primitives.DateTime.unpack_array(data)
9334
        self.UseSimpleBounds = uabin.Primitives.Boolean.unpack(data)
9335
9336
    def __str__(self):
9337
        return 'ReadAtTimeDetails(' + 'ReqTimes:' + str(self.ReqTimes) + ', ' + \
9338
               'UseSimpleBounds:' + str(self.UseSimpleBounds) + ')'
9339
9340
    __repr__ = __str__
9341
9342
9343
class HistoryData(FrozenClass):
@@ 6712-6754 (lines=43) @@
6709
    __repr__ = __str__
6710
6711
6712
class BrowsePathTarget(FrozenClass):
6713
    '''
6714
    The target of the translated path.
6715
6716
    :ivar TargetId:
6717
    :vartype TargetId: ExpandedNodeId
6718
    :ivar RemainingPathIndex:
6719
    :vartype RemainingPathIndex: UInt32
6720
    '''
6721
6722
    ua_types = {
6723
        'TargetId': 'ExpandedNodeId',
6724
        'RemainingPathIndex': 'UInt32',
6725
               }
6726
6727
    def __init__(self, binary=None):
6728
        if binary is not None:
6729
            self._binary_init(binary)
6730
            self._freeze = True
6731
            return
6732
        self.TargetId = ExpandedNodeId()
6733
        self.RemainingPathIndex = 0
6734
        self._freeze = True
6735
6736
    def to_binary(self):
6737
        packet = []
6738
        packet.append(self.TargetId.to_binary())
6739
        packet.append(uabin.Primitives.UInt32.pack(self.RemainingPathIndex))
6740
        return b''.join(packet)
6741
6742
    @staticmethod
6743
    def from_binary(data):
6744
        return BrowsePathTarget(data)
6745
6746
    def _binary_init(self, data):
6747
        self.TargetId = ExpandedNodeId.from_binary(data)
6748
        self.RemainingPathIndex = uabin.Primitives.UInt32.unpack(data)
6749
6750
    def __str__(self):
6751
        return 'BrowsePathTarget(' + 'TargetId:' + str(self.TargetId) + ', ' + \
6752
               'RemainingPathIndex:' + str(self.RemainingPathIndex) + ')'
6753
6754
    __repr__ = __str__
6755
6756
6757
class BrowsePathResult(FrozenClass):
@@ 6357-6399 (lines=43) @@
6354
    __repr__ = __str__
6355
6356
6357
class BrowseNextParameters(FrozenClass):
6358
    '''
6359
    :ivar ReleaseContinuationPoints:
6360
    :vartype ReleaseContinuationPoints: Boolean
6361
    :ivar ContinuationPoints:
6362
    :vartype ContinuationPoints: ByteString
6363
    '''
6364
6365
    ua_types = {
6366
        'ReleaseContinuationPoints': 'Boolean',
6367
        'ContinuationPoints': 'ByteString',
6368
               }
6369
6370
    def __init__(self, binary=None):
6371
        if binary is not None:
6372
            self._binary_init(binary)
6373
            self._freeze = True
6374
            return
6375
        self.ReleaseContinuationPoints = True
6376
        self.ContinuationPoints = []
6377
        self._freeze = True
6378
6379
    def to_binary(self):
6380
        packet = []
6381
        packet.append(uabin.Primitives.Boolean.pack(self.ReleaseContinuationPoints))
6382
        packet.append(uabin.Primitives.Int32.pack(len(self.ContinuationPoints)))
6383
        for fieldname in self.ContinuationPoints:
6384
            packet.append(uabin.Primitives.ByteString.pack(fieldname))
6385
        return b''.join(packet)
6386
6387
    @staticmethod
6388
    def from_binary(data):
6389
        return BrowseNextParameters(data)
6390
6391
    def _binary_init(self, data):
6392
        self.ReleaseContinuationPoints = uabin.Primitives.Boolean.unpack(data)
6393
        self.ContinuationPoints = uabin.Primitives.ByteString.unpack_array(data)
6394
6395
    def __str__(self):
6396
        return 'BrowseNextParameters(' + 'ReleaseContinuationPoints:' + str(self.ReleaseContinuationPoints) + ', ' + \
6397
               'ContinuationPoints:' + str(self.ContinuationPoints) + ')'
6398
6399
    __repr__ = __str__
6400
6401
6402
class BrowseNextRequest(FrozenClass):
@@ 5428-5470 (lines=43) @@
5425
    __repr__ = __str__
5426
5427
5428
class DeleteNodesItem(FrozenClass):
5429
    '''
5430
    A request to delete a node to the server address space.
5431
5432
    :ivar NodeId:
5433
    :vartype NodeId: NodeId
5434
    :ivar DeleteTargetReferences:
5435
    :vartype DeleteTargetReferences: Boolean
5436
    '''
5437
5438
    ua_types = {
5439
        'NodeId': 'NodeId',
5440
        'DeleteTargetReferences': 'Boolean',
5441
               }
5442
5443
    def __init__(self, binary=None):
5444
        if binary is not None:
5445
            self._binary_init(binary)
5446
            self._freeze = True
5447
            return
5448
        self.NodeId = NodeId()
5449
        self.DeleteTargetReferences = True
5450
        self._freeze = True
5451
5452
    def to_binary(self):
5453
        packet = []
5454
        packet.append(self.NodeId.to_binary())
5455
        packet.append(uabin.Primitives.Boolean.pack(self.DeleteTargetReferences))
5456
        return b''.join(packet)
5457
5458
    @staticmethod
5459
    def from_binary(data):
5460
        return DeleteNodesItem(data)
5461
5462
    def _binary_init(self, data):
5463
        self.NodeId = NodeId.from_binary(data)
5464
        self.DeleteTargetReferences = uabin.Primitives.Boolean.unpack(data)
5465
5466
    def __str__(self):
5467
        return 'DeleteNodesItem(' + 'NodeId:' + str(self.NodeId) + ', ' + \
5468
               'DeleteTargetReferences:' + str(self.DeleteTargetReferences) + ')'
5469
5470
    __repr__ = __str__
5471
5472
5473
class DeleteNodesParameters(FrozenClass):
@@ 3517-3559 (lines=43) @@
3514
    __repr__ = __str__
3515
3516
3517
class X509IdentityToken(FrozenClass):
3518
    '''
3519
    A token representing a user identified by an X509 certificate.
3520
3521
    :ivar PolicyId:
3522
    :vartype PolicyId: String
3523
    :ivar CertificateData:
3524
    :vartype CertificateData: ByteString
3525
    '''
3526
3527
    ua_types = {
3528
        'PolicyId': 'String',
3529
        'CertificateData': 'ByteString',
3530
               }
3531
3532
    def __init__(self, binary=None):
3533
        if binary is not None:
3534
            self._binary_init(binary)
3535
            self._freeze = True
3536
            return
3537
        self.PolicyId = None
3538
        self.CertificateData = None
3539
        self._freeze = True
3540
3541
    def to_binary(self):
3542
        packet = []
3543
        packet.append(uabin.Primitives.String.pack(self.PolicyId))
3544
        packet.append(uabin.Primitives.ByteString.pack(self.CertificateData))
3545
        return b''.join(packet)
3546
3547
    @staticmethod
3548
    def from_binary(data):
3549
        return X509IdentityToken(data)
3550
3551
    def _binary_init(self, data):
3552
        self.PolicyId = uabin.Primitives.String.unpack(data)
3553
        self.CertificateData = uabin.Primitives.ByteString.unpack(data)
3554
3555
    def __str__(self):
3556
        return 'X509IdentityToken(' + 'PolicyId:' + str(self.PolicyId) + ', ' + \
3557
               'CertificateData:' + str(self.CertificateData) + ')'
3558
3559
    __repr__ = __str__
3560
3561
3562
class KerberosIdentityToken(FrozenClass):
@@ 3042-3084 (lines=43) @@
3039
    __repr__ = __str__
3040
3041
3042
class SignatureData(FrozenClass):
3043
    '''
3044
    A digital signature.
3045
3046
    :ivar Algorithm:
3047
    :vartype Algorithm: String
3048
    :ivar Signature:
3049
    :vartype Signature: ByteString
3050
    '''
3051
3052
    ua_types = {
3053
        'Algorithm': 'String',
3054
        'Signature': 'ByteString',
3055
               }
3056
3057
    def __init__(self, binary=None):
3058
        if binary is not None:
3059
            self._binary_init(binary)
3060
            self._freeze = True
3061
            return
3062
        self.Algorithm = None
3063
        self.Signature = None
3064
        self._freeze = True
3065
3066
    def to_binary(self):
3067
        packet = []
3068
        packet.append(uabin.Primitives.String.pack(self.Algorithm))
3069
        packet.append(uabin.Primitives.ByteString.pack(self.Signature))
3070
        return b''.join(packet)
3071
3072
    @staticmethod
3073
    def from_binary(data):
3074
        return SignatureData(data)
3075
3076
    def _binary_init(self, data):
3077
        self.Algorithm = uabin.Primitives.String.unpack(data)
3078
        self.Signature = uabin.Primitives.ByteString.unpack(data)
3079
3080
    def __str__(self):
3081
        return 'SignatureData(' + 'Algorithm:' + str(self.Algorithm) + ', ' + \
3082
               'Signature:' + str(self.Signature) + ')'
3083
3084
    __repr__ = __str__
3085
3086
3087
class CreateSessionParameters(FrozenClass):
@@ 2997-3039 (lines=43) @@
2994
    __repr__ = __str__
2995
2996
2997
class SignedSoftwareCertificate(FrozenClass):
2998
    '''
2999
    A software certificate with a digital signature.
3000
3001
    :ivar CertificateData:
3002
    :vartype CertificateData: ByteString
3003
    :ivar Signature:
3004
    :vartype Signature: ByteString
3005
    '''
3006
3007
    ua_types = {
3008
        'CertificateData': 'ByteString',
3009
        'Signature': 'ByteString',
3010
               }
3011
3012
    def __init__(self, binary=None):
3013
        if binary is not None:
3014
            self._binary_init(binary)
3015
            self._freeze = True
3016
            return
3017
        self.CertificateData = None
3018
        self.Signature = None
3019
        self._freeze = True
3020
3021
    def to_binary(self):
3022
        packet = []
3023
        packet.append(uabin.Primitives.ByteString.pack(self.CertificateData))
3024
        packet.append(uabin.Primitives.ByteString.pack(self.Signature))
3025
        return b''.join(packet)
3026
3027
    @staticmethod
3028
    def from_binary(data):
3029
        return SignedSoftwareCertificate(data)
3030
3031
    def _binary_init(self, data):
3032
        self.CertificateData = uabin.Primitives.ByteString.unpack(data)
3033
        self.Signature = uabin.Primitives.ByteString.unpack(data)
3034
3035
    def __str__(self):
3036
        return 'SignedSoftwareCertificate(' + 'CertificateData:' + str(self.CertificateData) + ', ' + \
3037
               'Signature:' + str(self.Signature) + ')'
3038
3039
    __repr__ = __str__
3040
3041
3042
class SignatureData(FrozenClass):
@@ 1032-1074 (lines=43) @@
1029
    __repr__ = __str__
1030
1031
1032
class OptionSet(FrozenClass):
1033
    '''
1034
    This abstract Structured DataType is the base DataType for all DataTypes representing a bit mask.
1035
1036
    :ivar Value:
1037
    :vartype Value: ByteString
1038
    :ivar ValidBits:
1039
    :vartype ValidBits: ByteString
1040
    '''
1041
1042
    ua_types = {
1043
        'Value': 'ByteString',
1044
        'ValidBits': 'ByteString',
1045
               }
1046
1047
    def __init__(self, binary=None):
1048
        if binary is not None:
1049
            self._binary_init(binary)
1050
            self._freeze = True
1051
            return
1052
        self.Value = None
1053
        self.ValidBits = None
1054
        self._freeze = True
1055
1056
    def to_binary(self):
1057
        packet = []
1058
        packet.append(uabin.Primitives.ByteString.pack(self.Value))
1059
        packet.append(uabin.Primitives.ByteString.pack(self.ValidBits))
1060
        return b''.join(packet)
1061
1062
    @staticmethod
1063
    def from_binary(data):
1064
        return OptionSet(data)
1065
1066
    def _binary_init(self, data):
1067
        self.Value = uabin.Primitives.ByteString.unpack(data)
1068
        self.ValidBits = uabin.Primitives.ByteString.unpack(data)
1069
1070
    def __str__(self):
1071
        return 'OptionSet(' + 'Value:' + str(self.Value) + ', ' + \
1072
               'ValidBits:' + str(self.ValidBits) + ')'
1073
1074
    __repr__ = __str__
1075
1076
1077
class Union(FrozenClass):
@@ 15875-15915 (lines=41) @@
15872
    __repr__ = __str__
15873
15874
15875
class XVType(FrozenClass):
15876
    '''
15877
    :ivar X:
15878
    :vartype X: Double
15879
    :ivar Value:
15880
    :vartype Value: Float
15881
    '''
15882
15883
    ua_types = {
15884
        'X': 'Double',
15885
        'Value': 'Float',
15886
               }
15887
15888
    def __init__(self, binary=None):
15889
        if binary is not None:
15890
            self._binary_init(binary)
15891
            self._freeze = True
15892
            return
15893
        self.X = 0
15894
        self.Value = 0
15895
        self._freeze = True
15896
15897
    def to_binary(self):
15898
        packet = []
15899
        packet.append(uabin.Primitives.Double.pack(self.X))
15900
        packet.append(uabin.Primitives.Float.pack(self.Value))
15901
        return b''.join(packet)
15902
15903
    @staticmethod
15904
    def from_binary(data):
15905
        return XVType(data)
15906
15907
    def _binary_init(self, data):
15908
        self.X = uabin.Primitives.Double.unpack(data)
15909
        self.Value = uabin.Primitives.Float.unpack(data)
15910
15911
    def __str__(self):
15912
        return 'XVType(' + 'X:' + str(self.X) + ', ' + \
15913
               'Value:' + str(self.Value) + ')'
15914
15915
    __repr__ = __str__
15916
15917
15918
class ProgramDiagnosticDataType(FrozenClass):
@@ 15766-15806 (lines=41) @@
15763
    __repr__ = __str__
15764
15765
15766
class DoubleComplexNumberType(FrozenClass):
15767
    '''
15768
    :ivar Real:
15769
    :vartype Real: Double
15770
    :ivar Imaginary:
15771
    :vartype Imaginary: Double
15772
    '''
15773
15774
    ua_types = {
15775
        'Real': 'Double',
15776
        'Imaginary': 'Double',
15777
               }
15778
15779
    def __init__(self, binary=None):
15780
        if binary is not None:
15781
            self._binary_init(binary)
15782
            self._freeze = True
15783
            return
15784
        self.Real = 0
15785
        self.Imaginary = 0
15786
        self._freeze = True
15787
15788
    def to_binary(self):
15789
        packet = []
15790
        packet.append(uabin.Primitives.Double.pack(self.Real))
15791
        packet.append(uabin.Primitives.Double.pack(self.Imaginary))
15792
        return b''.join(packet)
15793
15794
    @staticmethod
15795
    def from_binary(data):
15796
        return DoubleComplexNumberType(data)
15797
15798
    def _binary_init(self, data):
15799
        self.Real = uabin.Primitives.Double.unpack(data)
15800
        self.Imaginary = uabin.Primitives.Double.unpack(data)
15801
15802
    def __str__(self):
15803
        return 'DoubleComplexNumberType(' + 'Real:' + str(self.Real) + ', ' + \
15804
               'Imaginary:' + str(self.Imaginary) + ')'
15805
15806
    __repr__ = __str__
15807
15808
15809
class AxisInformation(FrozenClass):
@@ 15723-15763 (lines=41) @@
15720
    __repr__ = __str__
15721
15722
15723
class ComplexNumberType(FrozenClass):
15724
    '''
15725
    :ivar Real:
15726
    :vartype Real: Float
15727
    :ivar Imaginary:
15728
    :vartype Imaginary: Float
15729
    '''
15730
15731
    ua_types = {
15732
        'Real': 'Float',
15733
        'Imaginary': 'Float',
15734
               }
15735
15736
    def __init__(self, binary=None):
15737
        if binary is not None:
15738
            self._binary_init(binary)
15739
            self._freeze = True
15740
            return
15741
        self.Real = 0
15742
        self.Imaginary = 0
15743
        self._freeze = True
15744
15745
    def to_binary(self):
15746
        packet = []
15747
        packet.append(uabin.Primitives.Float.pack(self.Real))
15748
        packet.append(uabin.Primitives.Float.pack(self.Imaginary))
15749
        return b''.join(packet)
15750
15751
    @staticmethod
15752
    def from_binary(data):
15753
        return ComplexNumberType(data)
15754
15755
    def _binary_init(self, data):
15756
        self.Real = uabin.Primitives.Float.unpack(data)
15757
        self.Imaginary = uabin.Primitives.Float.unpack(data)
15758
15759
    def __str__(self):
15760
        return 'ComplexNumberType(' + 'Real:' + str(self.Real) + ', ' + \
15761
               'Imaginary:' + str(self.Imaginary) + ')'
15762
15763
    __repr__ = __str__
15764
15765
15766
class DoubleComplexNumberType(FrozenClass):
@@ 15623-15663 (lines=41) @@
15620
    __repr__ = __str__
15621
15622
15623
class Range(FrozenClass):
15624
    '''
15625
    :ivar Low:
15626
    :vartype Low: Double
15627
    :ivar High:
15628
    :vartype High: Double
15629
    '''
15630
15631
    ua_types = {
15632
        'Low': 'Double',
15633
        'High': 'Double',
15634
               }
15635
15636
    def __init__(self, binary=None):
15637
        if binary is not None:
15638
            self._binary_init(binary)
15639
            self._freeze = True
15640
            return
15641
        self.Low = 0
15642
        self.High = 0
15643
        self._freeze = True
15644
15645
    def to_binary(self):
15646
        packet = []
15647
        packet.append(uabin.Primitives.Double.pack(self.Low))
15648
        packet.append(uabin.Primitives.Double.pack(self.High))
15649
        return b''.join(packet)
15650
15651
    @staticmethod
15652
    def from_binary(data):
15653
        return Range(data)
15654
15655
    def _binary_init(self, data):
15656
        self.Low = uabin.Primitives.Double.unpack(data)
15657
        self.High = uabin.Primitives.Double.unpack(data)
15658
15659
    def __str__(self):
15660
        return 'Range(' + 'Low:' + str(self.Low) + ', ' + \
15661
               'High:' + str(self.High) + ')'
15662
15663
    __repr__ = __str__
15664
15665
15666
class EUInformation(FrozenClass):
@@ 15198-15238 (lines=41) @@
15195
    __repr__ = __str__
15196
15197
15198
class ServiceCounterDataType(FrozenClass):
15199
    '''
15200
    :ivar TotalCount:
15201
    :vartype TotalCount: UInt32
15202
    :ivar ErrorCount:
15203
    :vartype ErrorCount: UInt32
15204
    '''
15205
15206
    ua_types = {
15207
        'TotalCount': 'UInt32',
15208
        'ErrorCount': 'UInt32',
15209
               }
15210
15211
    def __init__(self, binary=None):
15212
        if binary is not None:
15213
            self._binary_init(binary)
15214
            self._freeze = True
15215
            return
15216
        self.TotalCount = 0
15217
        self.ErrorCount = 0
15218
        self._freeze = True
15219
15220
    def to_binary(self):
15221
        packet = []
15222
        packet.append(uabin.Primitives.UInt32.pack(self.TotalCount))
15223
        packet.append(uabin.Primitives.UInt32.pack(self.ErrorCount))
15224
        return b''.join(packet)
15225
15226
    @staticmethod
15227
    def from_binary(data):
15228
        return ServiceCounterDataType(data)
15229
15230
    def _binary_init(self, data):
15231
        self.TotalCount = uabin.Primitives.UInt32.unpack(data)
15232
        self.ErrorCount = uabin.Primitives.UInt32.unpack(data)
15233
15234
    def __str__(self):
15235
        return 'ServiceCounterDataType(' + 'TotalCount:' + str(self.TotalCount) + ', ' + \
15236
               'ErrorCount:' + str(self.ErrorCount) + ')'
15237
15238
    __repr__ = __str__
15239
15240
15241
class StatusResult(FrozenClass):
@@ 13773-13813 (lines=41) @@
13770
    __repr__ = __str__
13771
13772
13773
class RepublishParameters(FrozenClass):
13774
    '''
13775
    :ivar SubscriptionId:
13776
    :vartype SubscriptionId: UInt32
13777
    :ivar RetransmitSequenceNumber:
13778
    :vartype RetransmitSequenceNumber: UInt32
13779
    '''
13780
13781
    ua_types = {
13782
        'SubscriptionId': 'UInt32',
13783
        'RetransmitSequenceNumber': 'UInt32',
13784
               }
13785
13786
    def __init__(self, binary=None):
13787
        if binary is not None:
13788
            self._binary_init(binary)
13789
            self._freeze = True
13790
            return
13791
        self.SubscriptionId = 0
13792
        self.RetransmitSequenceNumber = 0
13793
        self._freeze = True
13794
13795
    def to_binary(self):
13796
        packet = []
13797
        packet.append(uabin.Primitives.UInt32.pack(self.SubscriptionId))
13798
        packet.append(uabin.Primitives.UInt32.pack(self.RetransmitSequenceNumber))
13799
        return b''.join(packet)
13800
13801
    @staticmethod
13802
    def from_binary(data):
13803
        return RepublishParameters(data)
13804
13805
    def _binary_init(self, data):
13806
        self.SubscriptionId = uabin.Primitives.UInt32.unpack(data)
13807
        self.RetransmitSequenceNumber = uabin.Primitives.UInt32.unpack(data)
13808
13809
    def __str__(self):
13810
        return 'RepublishParameters(' + 'SubscriptionId:' + str(self.SubscriptionId) + ', ' + \
13811
               'RetransmitSequenceNumber:' + str(self.RetransmitSequenceNumber) + ')'
13812
13813
    __repr__ = __str__
13814
13815
13816
class RepublishRequest(FrozenClass):
@@ 13500-13540 (lines=41) @@
13497
    __repr__ = __str__
13498
13499
13500
class SubscriptionAcknowledgement(FrozenClass):
13501
    '''
13502
    :ivar SubscriptionId:
13503
    :vartype SubscriptionId: UInt32
13504
    :ivar SequenceNumber:
13505
    :vartype SequenceNumber: UInt32
13506
    '''
13507
13508
    ua_types = {
13509
        'SubscriptionId': 'UInt32',
13510
        'SequenceNumber': 'UInt32',
13511
               }
13512
13513
    def __init__(self, binary=None):
13514
        if binary is not None:
13515
            self._binary_init(binary)
13516
            self._freeze = True
13517
            return
13518
        self.SubscriptionId = 0
13519
        self.SequenceNumber = 0
13520
        self._freeze = True
13521
13522
    def to_binary(self):
13523
        packet = []
13524
        packet.append(uabin.Primitives.UInt32.pack(self.SubscriptionId))
13525
        packet.append(uabin.Primitives.UInt32.pack(self.SequenceNumber))
13526
        return b''.join(packet)
13527
13528
    @staticmethod
13529
    def from_binary(data):
13530
        return SubscriptionAcknowledgement(data)
13531
13532
    def _binary_init(self, data):
13533
        self.SubscriptionId = uabin.Primitives.UInt32.unpack(data)
13534
        self.SequenceNumber = uabin.Primitives.UInt32.unpack(data)
13535
13536
    def __str__(self):
13537
        return 'SubscriptionAcknowledgement(' + 'SubscriptionId:' + str(self.SubscriptionId) + ', ' + \
13538
               'SequenceNumber:' + str(self.SequenceNumber) + ')'
13539
13540
    __repr__ = __str__
13541
13542
13543
class PublishParameters(FrozenClass):
@@ 13278-13318 (lines=41) @@
13275
    __repr__ = __str__
13276
13277
13278
class MonitoredItemNotification(FrozenClass):
13279
    '''
13280
    :ivar ClientHandle:
13281
    :vartype ClientHandle: UInt32
13282
    :ivar Value:
13283
    :vartype Value: DataValue
13284
    '''
13285
13286
    ua_types = {
13287
        'ClientHandle': 'UInt32',
13288
        'Value': 'DataValue',
13289
               }
13290
13291
    def __init__(self, binary=None):
13292
        if binary is not None:
13293
            self._binary_init(binary)
13294
            self._freeze = True
13295
            return
13296
        self.ClientHandle = 0
13297
        self.Value = DataValue()
13298
        self._freeze = True
13299
13300
    def to_binary(self):
13301
        packet = []
13302
        packet.append(uabin.Primitives.UInt32.pack(self.ClientHandle))
13303
        packet.append(self.Value.to_binary())
13304
        return b''.join(packet)
13305
13306
    @staticmethod
13307
    def from_binary(data):
13308
        return MonitoredItemNotification(data)
13309
13310
    def _binary_init(self, data):
13311
        self.ClientHandle = uabin.Primitives.UInt32.unpack(data)
13312
        self.Value = DataValue.from_binary(data)
13313
13314
    def __str__(self):
13315
        return 'MonitoredItemNotification(' + 'ClientHandle:' + str(self.ClientHandle) + ', ' + \
13316
               'Value:' + str(self.Value) + ')'
13317
13318
    __repr__ = __str__
13319
13320
13321
class EventNotificationList(FrozenClass):
@@ 11583-11623 (lines=41) @@
11580
    __repr__ = __str__
11581
11582
11583
class MonitoredItemModifyRequest(FrozenClass):
11584
    '''
11585
    :ivar MonitoredItemId:
11586
    :vartype MonitoredItemId: UInt32
11587
    :ivar RequestedParameters:
11588
    :vartype RequestedParameters: MonitoringParameters
11589
    '''
11590
11591
    ua_types = {
11592
        'MonitoredItemId': 'UInt32',
11593
        'RequestedParameters': 'MonitoringParameters',
11594
               }
11595
11596
    def __init__(self, binary=None):
11597
        if binary is not None:
11598
            self._binary_init(binary)
11599
            self._freeze = True
11600
            return
11601
        self.MonitoredItemId = 0
11602
        self.RequestedParameters = MonitoringParameters()
11603
        self._freeze = True
11604
11605
    def to_binary(self):
11606
        packet = []
11607
        packet.append(uabin.Primitives.UInt32.pack(self.MonitoredItemId))
11608
        packet.append(self.RequestedParameters.to_binary())
11609
        return b''.join(packet)
11610
11611
    @staticmethod
11612
    def from_binary(data):
11613
        return MonitoredItemModifyRequest(data)
11614
11615
    def _binary_init(self, data):
11616
        self.MonitoredItemId = uabin.Primitives.UInt32.unpack(data)
11617
        self.RequestedParameters = MonitoringParameters.from_binary(data)
11618
11619
    def __str__(self):
11620
        return 'MonitoredItemModifyRequest(' + 'MonitoredItemId:' + str(self.MonitoredItemId) + ', ' + \
11621
               'RequestedParameters:' + str(self.RequestedParameters) + ')'
11622
11623
    __repr__ = __str__
11624
11625
11626
class MonitoredItemModifyResult(FrozenClass):
@@ 8540-8580 (lines=41) @@
8537
    __repr__ = __str__
8538
8539
8540
class QueryNextParameters(FrozenClass):
8541
    '''
8542
    :ivar ReleaseContinuationPoint:
8543
    :vartype ReleaseContinuationPoint: Boolean
8544
    :ivar ContinuationPoint:
8545
    :vartype ContinuationPoint: ByteString
8546
    '''
8547
8548
    ua_types = {
8549
        'ReleaseContinuationPoint': 'Boolean',
8550
        'ContinuationPoint': 'ByteString',
8551
               }
8552
8553
    def __init__(self, binary=None):
8554
        if binary is not None:
8555
            self._binary_init(binary)
8556
            self._freeze = True
8557
            return
8558
        self.ReleaseContinuationPoint = True
8559
        self.ContinuationPoint = None
8560
        self._freeze = True
8561
8562
    def to_binary(self):
8563
        packet = []
8564
        packet.append(uabin.Primitives.Boolean.pack(self.ReleaseContinuationPoint))
8565
        packet.append(uabin.Primitives.ByteString.pack(self.ContinuationPoint))
8566
        return b''.join(packet)
8567
8568
    @staticmethod
8569
    def from_binary(data):
8570
        return QueryNextParameters(data)
8571
8572
    def _binary_init(self, data):
8573
        self.ReleaseContinuationPoint = uabin.Primitives.Boolean.unpack(data)
8574
        self.ContinuationPoint = uabin.Primitives.ByteString.unpack(data)
8575
8576
    def __str__(self):
8577
        return 'QueryNextParameters(' + 'ReleaseContinuationPoint:' + str(self.ReleaseContinuationPoint) + ', ' + \
8578
               'ContinuationPoint:' + str(self.ContinuationPoint) + ')'
8579
8580
    __repr__ = __str__
8581
8582
8583
class QueryNextRequest(FrozenClass):
@@ 3562-3602 (lines=41) @@
3559
    __repr__ = __str__
3560
3561
3562
class KerberosIdentityToken(FrozenClass):
3563
    '''
3564
    :ivar PolicyId:
3565
    :vartype PolicyId: String
3566
    :ivar TicketData:
3567
    :vartype TicketData: ByteString
3568
    '''
3569
3570
    ua_types = {
3571
        'PolicyId': 'String',
3572
        'TicketData': 'ByteString',
3573
               }
3574
3575
    def __init__(self, binary=None):
3576
        if binary is not None:
3577
            self._binary_init(binary)
3578
            self._freeze = True
3579
            return
3580
        self.PolicyId = None
3581
        self.TicketData = None
3582
        self._freeze = True
3583
3584
    def to_binary(self):
3585
        packet = []
3586
        packet.append(uabin.Primitives.String.pack(self.PolicyId))
3587
        packet.append(uabin.Primitives.ByteString.pack(self.TicketData))
3588
        return b''.join(packet)
3589
3590
    @staticmethod
3591
    def from_binary(data):
3592
        return KerberosIdentityToken(data)
3593
3594
    def _binary_init(self, data):
3595
        self.PolicyId = uabin.Primitives.String.unpack(data)
3596
        self.TicketData = uabin.Primitives.ByteString.unpack(data)
3597
3598
    def __str__(self):
3599
        return 'KerberosIdentityToken(' + 'PolicyId:' + str(self.PolicyId) + ', ' + \
3600
               'TicketData:' + str(self.TicketData) + ')'
3601
3602
    __repr__ = __str__
3603
3604
3605
class IssuedIdentityToken(FrozenClass):
@@ 1110-1150 (lines=41) @@
1107
    __repr__ = __str__
1108
1109
1110
class TimeZoneDataType(FrozenClass):
1111
    '''
1112
    :ivar Offset:
1113
    :vartype Offset: Int16
1114
    :ivar DaylightSavingInOffset:
1115
    :vartype DaylightSavingInOffset: Boolean
1116
    '''
1117
1118
    ua_types = {
1119
        'Offset': 'Int16',
1120
        'DaylightSavingInOffset': 'Boolean',
1121
               }
1122
1123
    def __init__(self, binary=None):
1124
        if binary is not None:
1125
            self._binary_init(binary)
1126
            self._freeze = True
1127
            return
1128
        self.Offset = 0
1129
        self.DaylightSavingInOffset = True
1130
        self._freeze = True
1131
1132
    def to_binary(self):
1133
        packet = []
1134
        packet.append(uabin.Primitives.Int16.pack(self.Offset))
1135
        packet.append(uabin.Primitives.Boolean.pack(self.DaylightSavingInOffset))
1136
        return b''.join(packet)
1137
1138
    @staticmethod
1139
    def from_binary(data):
1140
        return TimeZoneDataType(data)
1141
1142
    def _binary_init(self, data):
1143
        self.Offset = uabin.Primitives.Int16.unpack(data)
1144
        self.DaylightSavingInOffset = uabin.Primitives.Boolean.unpack(data)
1145
1146
    def __str__(self):
1147
        return 'TimeZoneDataType(' + 'Offset:' + str(self.Offset) + ', ' + \
1148
               'DaylightSavingInOffset:' + str(self.DaylightSavingInOffset) + ')'
1149
1150
    __repr__ = __str__
1151
1152
1153
class ApplicationDescription(FrozenClass):
@@ 5911-5960 (lines=50) @@
5908
    __repr__ = __str__
5909
5910
5911
class ViewDescription(FrozenClass):
5912
    '''
5913
    The view to browse.
5914
5915
    :ivar ViewId:
5916
    :vartype ViewId: NodeId
5917
    :ivar Timestamp:
5918
    :vartype Timestamp: DateTime
5919
    :ivar ViewVersion:
5920
    :vartype ViewVersion: UInt32
5921
    '''
5922
5923
    ua_types = {
5924
        'ViewId': 'NodeId',
5925
        'Timestamp': 'DateTime',
5926
        'ViewVersion': 'UInt32',
5927
               }
5928
5929
    def __init__(self, binary=None):
5930
        if binary is not None:
5931
            self._binary_init(binary)
5932
            self._freeze = True
5933
            return
5934
        self.ViewId = NodeId()
5935
        self.Timestamp = datetime.now()
5936
        self.ViewVersion = 0
5937
        self._freeze = True
5938
5939
    def to_binary(self):
5940
        packet = []
5941
        packet.append(self.ViewId.to_binary())
5942
        packet.append(uabin.Primitives.DateTime.pack(self.Timestamp))
5943
        packet.append(uabin.Primitives.UInt32.pack(self.ViewVersion))
5944
        return b''.join(packet)
5945
5946
    @staticmethod
5947
    def from_binary(data):
5948
        return ViewDescription(data)
5949
5950
    def _binary_init(self, data):
5951
        self.ViewId = NodeId.from_binary(data)
5952
        self.Timestamp = uabin.Primitives.DateTime.unpack(data)
5953
        self.ViewVersion = uabin.Primitives.UInt32.unpack(data)
5954
5955
    def __str__(self):
5956
        return 'ViewDescription(' + 'ViewId:' + str(self.ViewId) + ', ' + \
5957
               'Timestamp:' + str(self.Timestamp) + ', ' + \
5958
               'ViewVersion:' + str(self.ViewVersion) + ')'
5959
5960
    __repr__ = __str__
5961
5962
5963
class BrowseDescription(FrozenClass):
@@ 980-1029 (lines=50) @@
977
    __repr__ = __str__
978
979
980
class EnumValueType(FrozenClass):
981
    '''
982
    A mapping between a value of an enumerated type and a name and description.
983
984
    :ivar Value:
985
    :vartype Value: Int64
986
    :ivar DisplayName:
987
    :vartype DisplayName: LocalizedText
988
    :ivar Description:
989
    :vartype Description: LocalizedText
990
    '''
991
992
    ua_types = {
993
        'Value': 'Int64',
994
        'DisplayName': 'LocalizedText',
995
        'Description': 'LocalizedText',
996
               }
997
998
    def __init__(self, binary=None):
999
        if binary is not None:
1000
            self._binary_init(binary)
1001
            self._freeze = True
1002
            return
1003
        self.Value = 0
1004
        self.DisplayName = LocalizedText()
1005
        self.Description = LocalizedText()
1006
        self._freeze = True
1007
1008
    def to_binary(self):
1009
        packet = []
1010
        packet.append(uabin.Primitives.Int64.pack(self.Value))
1011
        packet.append(self.DisplayName.to_binary())
1012
        packet.append(self.Description.to_binary())
1013
        return b''.join(packet)
1014
1015
    @staticmethod
1016
    def from_binary(data):
1017
        return EnumValueType(data)
1018
1019
    def _binary_init(self, data):
1020
        self.Value = uabin.Primitives.Int64.unpack(data)
1021
        self.DisplayName = LocalizedText.from_binary(data)
1022
        self.Description = LocalizedText.from_binary(data)
1023
1024
    def __str__(self):
1025
        return 'EnumValueType(' + 'Value:' + str(self.Value) + ', ' + \
1026
               'DisplayName:' + str(self.DisplayName) + ', ' + \
1027
               'Description:' + str(self.Description) + ')'
1028
1029
    __repr__ = __str__
1030
1031
1032
class OptionSet(FrozenClass):
@@ 15530-15577 (lines=48) @@
15527
    __repr__ = __str__
15528
15529
15530
class ModelChangeStructureDataType(FrozenClass):
15531
    '''
15532
    :ivar Affected:
15533
    :vartype Affected: NodeId
15534
    :ivar AffectedType:
15535
    :vartype AffectedType: NodeId
15536
    :ivar Verb:
15537
    :vartype Verb: Byte
15538
    '''
15539
15540
    ua_types = {
15541
        'Affected': 'NodeId',
15542
        'AffectedType': 'NodeId',
15543
        'Verb': 'Byte',
15544
               }
15545
15546
    def __init__(self, binary=None):
15547
        if binary is not None:
15548
            self._binary_init(binary)
15549
            self._freeze = True
15550
            return
15551
        self.Affected = NodeId()
15552
        self.AffectedType = NodeId()
15553
        self.Verb = 0
15554
        self._freeze = True
15555
15556
    def to_binary(self):
15557
        packet = []
15558
        packet.append(self.Affected.to_binary())
15559
        packet.append(self.AffectedType.to_binary())
15560
        packet.append(uabin.Primitives.Byte.pack(self.Verb))
15561
        return b''.join(packet)
15562
15563
    @staticmethod
15564
    def from_binary(data):
15565
        return ModelChangeStructureDataType(data)
15566
15567
    def _binary_init(self, data):
15568
        self.Affected = NodeId.from_binary(data)
15569
        self.AffectedType = NodeId.from_binary(data)
15570
        self.Verb = uabin.Primitives.Byte.unpack(data)
15571
15572
    def __str__(self):
15573
        return 'ModelChangeStructureDataType(' + 'Affected:' + str(self.Affected) + ', ' + \
15574
               'AffectedType:' + str(self.AffectedType) + ', ' + \
15575
               'Verb:' + str(self.Verb) + ')'
15576
15577
    __repr__ = __str__
15578
15579
15580
class SemanticChangeStructureDataType(FrozenClass):
@@ 11177-11224 (lines=48) @@
11174
    __repr__ = __str__
11175
11176
11177
class AggregateFilterResult(FrozenClass):
11178
    '''
11179
    :ivar RevisedStartTime:
11180
    :vartype RevisedStartTime: DateTime
11181
    :ivar RevisedProcessingInterval:
11182
    :vartype RevisedProcessingInterval: Double
11183
    :ivar RevisedAggregateConfiguration:
11184
    :vartype RevisedAggregateConfiguration: AggregateConfiguration
11185
    '''
11186
11187
    ua_types = {
11188
        'RevisedStartTime': 'DateTime',
11189
        'RevisedProcessingInterval': 'Double',
11190
        'RevisedAggregateConfiguration': 'AggregateConfiguration',
11191
               }
11192
11193
    def __init__(self, binary=None):
11194
        if binary is not None:
11195
            self._binary_init(binary)
11196
            self._freeze = True
11197
            return
11198
        self.RevisedStartTime = datetime.now()
11199
        self.RevisedProcessingInterval = 0
11200
        self.RevisedAggregateConfiguration = AggregateConfiguration()
11201
        self._freeze = True
11202
11203
    def to_binary(self):
11204
        packet = []
11205
        packet.append(uabin.Primitives.DateTime.pack(self.RevisedStartTime))
11206
        packet.append(uabin.Primitives.Double.pack(self.RevisedProcessingInterval))
11207
        packet.append(self.RevisedAggregateConfiguration.to_binary())
11208
        return b''.join(packet)
11209
11210
    @staticmethod
11211
    def from_binary(data):
11212
        return AggregateFilterResult(data)
11213
11214
    def _binary_init(self, data):
11215
        self.RevisedStartTime = uabin.Primitives.DateTime.unpack(data)
11216
        self.RevisedProcessingInterval = uabin.Primitives.Double.unpack(data)
11217
        self.RevisedAggregateConfiguration = AggregateConfiguration.from_binary(data)
11218
11219
    def __str__(self):
11220
        return 'AggregateFilterResult(' + 'RevisedStartTime:' + str(self.RevisedStartTime) + ', ' + \
11221
               'RevisedProcessingInterval:' + str(self.RevisedProcessingInterval) + ', ' + \
11222
               'RevisedAggregateConfiguration:' + str(self.RevisedAggregateConfiguration) + ')'
11223
11224
    __repr__ = __str__
11225
11226
11227
class MonitoringParameters(FrozenClass):
@@ 9025-9072 (lines=48) @@
9022
    __repr__ = __str__
9023
9024
9025
class HistoryReadResult(FrozenClass):
9026
    '''
9027
    :ivar StatusCode:
9028
    :vartype StatusCode: StatusCode
9029
    :ivar ContinuationPoint:
9030
    :vartype ContinuationPoint: ByteString
9031
    :ivar HistoryData:
9032
    :vartype HistoryData: ExtensionObject
9033
    '''
9034
9035
    ua_types = {
9036
        'StatusCode': 'StatusCode',
9037
        'ContinuationPoint': 'ByteString',
9038
        'HistoryData': 'ExtensionObject',
9039
               }
9040
9041
    def __init__(self, binary=None):
9042
        if binary is not None:
9043
            self._binary_init(binary)
9044
            self._freeze = True
9045
            return
9046
        self.StatusCode = StatusCode()
9047
        self.ContinuationPoint = None
9048
        self.HistoryData = None
9049
        self._freeze = True
9050
9051
    def to_binary(self):
9052
        packet = []
9053
        packet.append(self.StatusCode.to_binary())
9054
        packet.append(uabin.Primitives.ByteString.pack(self.ContinuationPoint))
9055
        packet.append(extensionobject_to_binary(self.HistoryData))
9056
        return b''.join(packet)
9057
9058
    @staticmethod
9059
    def from_binary(data):
9060
        return HistoryReadResult(data)
9061
9062
    def _binary_init(self, data):
9063
        self.StatusCode = StatusCode.from_binary(data)
9064
        self.ContinuationPoint = uabin.Primitives.ByteString.unpack(data)
9065
        self.HistoryData = extensionobject_from_binary(data)
9066
9067
    def __str__(self):
9068
        return 'HistoryReadResult(' + 'StatusCode:' + str(self.StatusCode) + ', ' + \
9069
               'ContinuationPoint:' + str(self.ContinuationPoint) + ', ' + \
9070
               'HistoryData:' + str(self.HistoryData) + ')'
9071
9072
    __repr__ = __str__
9073
9074
9075
class HistoryReadDetails(FrozenClass):
@@ 7578-7625 (lines=48) @@
7575
    __repr__ = __str__
7576
7577
7578
class QueryDataDescription(FrozenClass):
7579
    '''
7580
    :ivar RelativePath:
7581
    :vartype RelativePath: RelativePath
7582
    :ivar AttributeId:
7583
    :vartype AttributeId: UInt32
7584
    :ivar IndexRange:
7585
    :vartype IndexRange: String
7586
    '''
7587
7588
    ua_types = {
7589
        'RelativePath': 'RelativePath',
7590
        'AttributeId': 'UInt32',
7591
        'IndexRange': 'String',
7592
               }
7593
7594
    def __init__(self, binary=None):
7595
        if binary is not None:
7596
            self._binary_init(binary)
7597
            self._freeze = True
7598
            return
7599
        self.RelativePath = RelativePath()
7600
        self.AttributeId = 0
7601
        self.IndexRange = None
7602
        self._freeze = True
7603
7604
    def to_binary(self):
7605
        packet = []
7606
        packet.append(self.RelativePath.to_binary())
7607
        packet.append(uabin.Primitives.UInt32.pack(self.AttributeId))
7608
        packet.append(uabin.Primitives.String.pack(self.IndexRange))
7609
        return b''.join(packet)
7610
7611
    @staticmethod
7612
    def from_binary(data):
7613
        return QueryDataDescription(data)
7614
7615
    def _binary_init(self, data):
7616
        self.RelativePath = RelativePath.from_binary(data)
7617
        self.AttributeId = uabin.Primitives.UInt32.unpack(data)
7618
        self.IndexRange = uabin.Primitives.String.unpack(data)
7619
7620
    def __str__(self):
7621
        return 'QueryDataDescription(' + 'RelativePath:' + str(self.RelativePath) + ', ' + \
7622
               'AttributeId:' + str(self.AttributeId) + ', ' + \
7623
               'IndexRange:' + str(self.IndexRange) + ')'
7624
7625
    __repr__ = __str__
7626
7627
7628
class NodeTypeDescription(FrozenClass):
@@ 2805-2852 (lines=48) @@
2802
    __repr__ = __str__
2803
2804
2805
class OpenSecureChannelResult(FrozenClass):
2806
    '''
2807
    :ivar ServerProtocolVersion:
2808
    :vartype ServerProtocolVersion: UInt32
2809
    :ivar SecurityToken:
2810
    :vartype SecurityToken: ChannelSecurityToken
2811
    :ivar ServerNonce:
2812
    :vartype ServerNonce: ByteString
2813
    '''
2814
2815
    ua_types = {
2816
        'ServerProtocolVersion': 'UInt32',
2817
        'SecurityToken': 'ChannelSecurityToken',
2818
        'ServerNonce': 'ByteString',
2819
               }
2820
2821
    def __init__(self, binary=None):
2822
        if binary is not None:
2823
            self._binary_init(binary)
2824
            self._freeze = True
2825
            return
2826
        self.ServerProtocolVersion = 0
2827
        self.SecurityToken = ChannelSecurityToken()
2828
        self.ServerNonce = None
2829
        self._freeze = True
2830
2831
    def to_binary(self):
2832
        packet = []
2833
        packet.append(uabin.Primitives.UInt32.pack(self.ServerProtocolVersion))
2834
        packet.append(self.SecurityToken.to_binary())
2835
        packet.append(uabin.Primitives.ByteString.pack(self.ServerNonce))
2836
        return b''.join(packet)
2837
2838
    @staticmethod
2839
    def from_binary(data):
2840
        return OpenSecureChannelResult(data)
2841
2842
    def _binary_init(self, data):
2843
        self.ServerProtocolVersion = uabin.Primitives.UInt32.unpack(data)
2844
        self.SecurityToken = ChannelSecurityToken.from_binary(data)
2845
        self.ServerNonce = uabin.Primitives.ByteString.unpack(data)
2846
2847
    def __str__(self):
2848
        return 'OpenSecureChannelResult(' + 'ServerProtocolVersion:' + str(self.ServerProtocolVersion) + ', ' + \
2849
               'SecurityToken:' + str(self.SecurityToken) + ', ' + \
2850
               'ServerNonce:' + str(self.ServerNonce) + ')'
2851
2852
    __repr__ = __str__
2853
2854
2855
class OpenSecureChannelResponse(FrozenClass):
@@ 13916-13958 (lines=43) @@
13913
    __repr__ = __str__
13914
13915
13916
class TransferResult(FrozenClass):
13917
    '''
13918
    :ivar StatusCode:
13919
    :vartype StatusCode: StatusCode
13920
    :ivar AvailableSequenceNumbers:
13921
    :vartype AvailableSequenceNumbers: UInt32
13922
    '''
13923
13924
    ua_types = {
13925
        'StatusCode': 'StatusCode',
13926
        'AvailableSequenceNumbers': 'UInt32',
13927
               }
13928
13929
    def __init__(self, binary=None):
13930
        if binary is not None:
13931
            self._binary_init(binary)
13932
            self._freeze = True
13933
            return
13934
        self.StatusCode = StatusCode()
13935
        self.AvailableSequenceNumbers = []
13936
        self._freeze = True
13937
13938
    def to_binary(self):
13939
        packet = []
13940
        packet.append(self.StatusCode.to_binary())
13941
        packet.append(uabin.Primitives.Int32.pack(len(self.AvailableSequenceNumbers)))
13942
        for fieldname in self.AvailableSequenceNumbers:
13943
            packet.append(uabin.Primitives.UInt32.pack(fieldname))
13944
        return b''.join(packet)
13945
13946
    @staticmethod
13947
    def from_binary(data):
13948
        return TransferResult(data)
13949
13950
    def _binary_init(self, data):
13951
        self.StatusCode = StatusCode.from_binary(data)
13952
        self.AvailableSequenceNumbers = uabin.Primitives.UInt32.unpack_array(data)
13953
13954
    def __str__(self):
13955
        return 'TransferResult(' + 'StatusCode:' + str(self.StatusCode) + ', ' + \
13956
               'AvailableSequenceNumbers:' + str(self.AvailableSequenceNumbers) + ')'
13957
13958
    __repr__ = __str__
13959
13960
13961
class TransferSubscriptionsParameters(FrozenClass):
@@ 10213-10255 (lines=43) @@
10210
    __repr__ = __str__
10211
10212
10213
class DeleteAtTimeDetails(FrozenClass):
10214
    '''
10215
    :ivar NodeId:
10216
    :vartype NodeId: NodeId
10217
    :ivar ReqTimes:
10218
    :vartype ReqTimes: DateTime
10219
    '''
10220
10221
    ua_types = {
10222
        'NodeId': 'NodeId',
10223
        'ReqTimes': 'DateTime',
10224
               }
10225
10226
    def __init__(self, binary=None):
10227
        if binary is not None:
10228
            self._binary_init(binary)
10229
            self._freeze = True
10230
            return
10231
        self.NodeId = NodeId()
10232
        self.ReqTimes = []
10233
        self._freeze = True
10234
10235
    def to_binary(self):
10236
        packet = []
10237
        packet.append(self.NodeId.to_binary())
10238
        packet.append(uabin.Primitives.Int32.pack(len(self.ReqTimes)))
10239
        for fieldname in self.ReqTimes:
10240
            packet.append(uabin.Primitives.DateTime.pack(fieldname))
10241
        return b''.join(packet)
10242
10243
    @staticmethod
10244
    def from_binary(data):
10245
        return DeleteAtTimeDetails(data)
10246
10247
    def _binary_init(self, data):
10248
        self.NodeId = NodeId.from_binary(data)
10249
        self.ReqTimes = uabin.Primitives.DateTime.unpack_array(data)
10250
10251
    def __str__(self):
10252
        return 'DeleteAtTimeDetails(' + 'NodeId:' + str(self.NodeId) + ', ' + \
10253
               'ReqTimes:' + str(self.ReqTimes) + ')'
10254
10255
    __repr__ = __str__
10256
10257
10258
class DeleteEventDetails(FrozenClass):
@@ 7262-7304 (lines=43) @@
7259
    __repr__ = __str__
7260
7261
7262
class UnregisterNodesResponse(FrozenClass):
7263
    '''
7264
    Unregisters one or more previously registered nodes.
7265
7266
    :ivar TypeId:
7267
    :vartype TypeId: NodeId
7268
    :ivar ResponseHeader:
7269
    :vartype ResponseHeader: ResponseHeader
7270
    '''
7271
7272
    ua_types = {
7273
        'TypeId': 'NodeId',
7274
        'ResponseHeader': 'ResponseHeader',
7275
               }
7276
7277
    def __init__(self, binary=None):
7278
        if binary is not None:
7279
            self._binary_init(binary)
7280
            self._freeze = True
7281
            return
7282
        self.TypeId = FourByteNodeId(ObjectIds.UnregisterNodesResponse_Encoding_DefaultBinary)
7283
        self.ResponseHeader = ResponseHeader()
7284
        self._freeze = True
7285
7286
    def to_binary(self):
7287
        packet = []
7288
        packet.append(self.TypeId.to_binary())
7289
        packet.append(self.ResponseHeader.to_binary())
7290
        return b''.join(packet)
7291
7292
    @staticmethod
7293
    def from_binary(data):
7294
        return UnregisterNodesResponse(data)
7295
7296
    def _binary_init(self, data):
7297
        self.TypeId = NodeId.from_binary(data)
7298
        self.ResponseHeader = ResponseHeader.from_binary(data)
7299
7300
    def __str__(self):
7301
        return 'UnregisterNodesResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \
7302
               'ResponseHeader:' + str(self.ResponseHeader) + ')'
7303
7304
    __repr__ = __str__
7305
7306
7307
class EndpointConfiguration(FrozenClass):
@@ 6667-6709 (lines=43) @@
6664
    __repr__ = __str__
6665
6666
6667
class BrowsePath(FrozenClass):
6668
    '''
6669
    A request to translate a path into a node id.
6670
6671
    :ivar StartingNode:
6672
    :vartype StartingNode: NodeId
6673
    :ivar RelativePath:
6674
    :vartype RelativePath: RelativePath
6675
    '''
6676
6677
    ua_types = {
6678
        'StartingNode': 'NodeId',
6679
        'RelativePath': 'RelativePath',
6680
               }
6681
6682
    def __init__(self, binary=None):
6683
        if binary is not None:
6684
            self._binary_init(binary)
6685
            self._freeze = True
6686
            return
6687
        self.StartingNode = NodeId()
6688
        self.RelativePath = RelativePath()
6689
        self._freeze = True
6690
6691
    def to_binary(self):
6692
        packet = []
6693
        packet.append(self.StartingNode.to_binary())
6694
        packet.append(self.RelativePath.to_binary())
6695
        return b''.join(packet)
6696
6697
    @staticmethod
6698
    def from_binary(data):
6699
        return BrowsePath(data)
6700
6701
    def _binary_init(self, data):
6702
        self.StartingNode = NodeId.from_binary(data)
6703
        self.RelativePath = RelativePath.from_binary(data)
6704
6705
    def __str__(self):
6706
        return 'BrowsePath(' + 'StartingNode:' + str(self.StartingNode) + ', ' + \
6707
               'RelativePath:' + str(self.RelativePath) + ')'
6708
6709
    __repr__ = __str__
6710
6711
6712
class BrowsePathTarget(FrozenClass):
@@ 5010-5052 (lines=43) @@
5007
    __repr__ = __str__
5008
5009
5010
class AddNodesResult(FrozenClass):
5011
    '''
5012
    A result of an add node operation.
5013
5014
    :ivar StatusCode:
5015
    :vartype StatusCode: StatusCode
5016
    :ivar AddedNodeId:
5017
    :vartype AddedNodeId: NodeId
5018
    '''
5019
5020
    ua_types = {
5021
        'StatusCode': 'StatusCode',
5022
        'AddedNodeId': 'NodeId',
5023
               }
5024
5025
    def __init__(self, binary=None):
5026
        if binary is not None:
5027
            self._binary_init(binary)
5028
            self._freeze = True
5029
            return
5030
        self.StatusCode = StatusCode()
5031
        self.AddedNodeId = NodeId()
5032
        self._freeze = True
5033
5034
    def to_binary(self):
5035
        packet = []
5036
        packet.append(self.StatusCode.to_binary())
5037
        packet.append(self.AddedNodeId.to_binary())
5038
        return b''.join(packet)
5039
5040
    @staticmethod
5041
    def from_binary(data):
5042
        return AddNodesResult(data)
5043
5044
    def _binary_init(self, data):
5045
        self.StatusCode = StatusCode.from_binary(data)
5046
        self.AddedNodeId = NodeId.from_binary(data)
5047
5048
    def __str__(self):
5049
        return 'AddNodesResult(' + 'StatusCode:' + str(self.StatusCode) + ', ' + \
5050
               'AddedNodeId:' + str(self.AddedNodeId) + ')'
5051
5052
    __repr__ = __str__
5053
5054
5055
class AddNodesParameters(FrozenClass):
@@ 3950-3992 (lines=43) @@
3947
    __repr__ = __str__
3948
3949
3950
class CloseSessionResponse(FrozenClass):
3951
    '''
3952
    Closes a session with the server.
3953
3954
    :ivar TypeId:
3955
    :vartype TypeId: NodeId
3956
    :ivar ResponseHeader:
3957
    :vartype ResponseHeader: ResponseHeader
3958
    '''
3959
3960
    ua_types = {
3961
        'TypeId': 'NodeId',
3962
        'ResponseHeader': 'ResponseHeader',
3963
               }
3964
3965
    def __init__(self, binary=None):
3966
        if binary is not None:
3967
            self._binary_init(binary)
3968
            self._freeze = True
3969
            return
3970
        self.TypeId = FourByteNodeId(ObjectIds.CloseSessionResponse_Encoding_DefaultBinary)
3971
        self.ResponseHeader = ResponseHeader()
3972
        self._freeze = True
3973
3974
    def to_binary(self):
3975
        packet = []
3976
        packet.append(self.TypeId.to_binary())
3977
        packet.append(self.ResponseHeader.to_binary())
3978
        return b''.join(packet)
3979
3980
    @staticmethod
3981
    def from_binary(data):
3982
        return CloseSessionResponse(data)
3983
3984
    def _binary_init(self, data):
3985
        self.TypeId = NodeId.from_binary(data)
3986
        self.ResponseHeader = ResponseHeader.from_binary(data)
3987
3988
    def __str__(self):
3989
        return 'CloseSessionResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \
3990
               'ResponseHeader:' + str(self.ResponseHeader) + ')'
3991
3992
    __repr__ = __str__
3993
3994
3995
class CancelParameters(FrozenClass):
@@ 2952-2994 (lines=43) @@
2949
    __repr__ = __str__
2950
2951
2952
class CloseSecureChannelResponse(FrozenClass):
2953
    '''
2954
    Closes a secure channel.
2955
2956
    :ivar TypeId:
2957
    :vartype TypeId: NodeId
2958
    :ivar ResponseHeader:
2959
    :vartype ResponseHeader: ResponseHeader
2960
    '''
2961
2962
    ua_types = {
2963
        'TypeId': 'NodeId',
2964
        'ResponseHeader': 'ResponseHeader',
2965
               }
2966
2967
    def __init__(self, binary=None):
2968
        if binary is not None:
2969
            self._binary_init(binary)
2970
            self._freeze = True
2971
            return
2972
        self.TypeId = FourByteNodeId(ObjectIds.CloseSecureChannelResponse_Encoding_DefaultBinary)
2973
        self.ResponseHeader = ResponseHeader()
2974
        self._freeze = True
2975
2976
    def to_binary(self):
2977
        packet = []
2978
        packet.append(self.TypeId.to_binary())
2979
        packet.append(self.ResponseHeader.to_binary())
2980
        return b''.join(packet)
2981
2982
    @staticmethod
2983
    def from_binary(data):
2984
        return CloseSecureChannelResponse(data)
2985
2986
    def _binary_init(self, data):
2987
        self.TypeId = NodeId.from_binary(data)
2988
        self.ResponseHeader = ResponseHeader.from_binary(data)
2989
2990
    def __str__(self):
2991
        return 'CloseSecureChannelResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \
2992
               'ResponseHeader:' + str(self.ResponseHeader) + ')'
2993
2994
    __repr__ = __str__
2995
2996
2997
class SignedSoftwareCertificate(FrozenClass):
@@ 2907-2949 (lines=43) @@
2904
    __repr__ = __str__
2905
2906
2907
class CloseSecureChannelRequest(FrozenClass):
2908
    '''
2909
    Closes a secure channel.
2910
2911
    :ivar TypeId:
2912
    :vartype TypeId: NodeId
2913
    :ivar RequestHeader:
2914
    :vartype RequestHeader: RequestHeader
2915
    '''
2916
2917
    ua_types = {
2918
        'TypeId': 'NodeId',
2919
        'RequestHeader': 'RequestHeader',
2920
               }
2921
2922
    def __init__(self, binary=None):
2923
        if binary is not None:
2924
            self._binary_init(binary)
2925
            self._freeze = True
2926
            return
2927
        self.TypeId = FourByteNodeId(ObjectIds.CloseSecureChannelRequest_Encoding_DefaultBinary)
2928
        self.RequestHeader = RequestHeader()
2929
        self._freeze = True
2930
2931
    def to_binary(self):
2932
        packet = []
2933
        packet.append(self.TypeId.to_binary())
2934
        packet.append(self.RequestHeader.to_binary())
2935
        return b''.join(packet)
2936
2937
    @staticmethod
2938
    def from_binary(data):
2939
        return CloseSecureChannelRequest(data)
2940
2941
    def _binary_init(self, data):
2942
        self.TypeId = NodeId.from_binary(data)
2943
        self.RequestHeader = RequestHeader.from_binary(data)
2944
2945
    def __str__(self):
2946
        return 'CloseSecureChannelRequest(' + 'TypeId:' + str(self.TypeId) + ', ' + \
2947
               'RequestHeader:' + str(self.RequestHeader) + ')'
2948
2949
    __repr__ = __str__
2950
2951
2952
class CloseSecureChannelResponse(FrozenClass):
@@ 2334-2376 (lines=43) @@
2331
    __repr__ = __str__
2332
2333
2334
class RegisterServerResponse(FrozenClass):
2335
    '''
2336
    Registers a server with the discovery server.
2337
2338
    :ivar TypeId:
2339
    :vartype TypeId: NodeId
2340
    :ivar ResponseHeader:
2341
    :vartype ResponseHeader: ResponseHeader
2342
    '''
2343
2344
    ua_types = {
2345
        'TypeId': 'NodeId',
2346
        'ResponseHeader': 'ResponseHeader',
2347
               }
2348
2349
    def __init__(self, binary=None):
2350
        if binary is not None:
2351
            self._binary_init(binary)
2352
            self._freeze = True
2353
            return
2354
        self.TypeId = FourByteNodeId(ObjectIds.RegisterServerResponse_Encoding_DefaultBinary)
2355
        self.ResponseHeader = ResponseHeader()
2356
        self._freeze = True
2357
2358
    def to_binary(self):
2359
        packet = []
2360
        packet.append(self.TypeId.to_binary())
2361
        packet.append(self.ResponseHeader.to_binary())
2362
        return b''.join(packet)
2363
2364
    @staticmethod
2365
    def from_binary(data):
2366
        return RegisterServerResponse(data)
2367
2368
    def _binary_init(self, data):
2369
        self.TypeId = NodeId.from_binary(data)
2370
        self.ResponseHeader = ResponseHeader.from_binary(data)
2371
2372
    def __str__(self):
2373
        return 'RegisterServerResponse(' + 'TypeId:' + str(self.TypeId) + ', ' + \
2374
               'ResponseHeader:' + str(self.ResponseHeader) + ')'
2375
2376
    __repr__ = __str__
2377
2378
2379
class DiscoveryConfiguration(FrozenClass):
@@ 1390-1432 (lines=43) @@
1387
    __repr__ = __str__
1388
1389
1390
class ServiceFault(FrozenClass):
1391
    '''
1392
    The response returned by all services when there is a service level error.
1393
1394
    :ivar TypeId:
1395
    :vartype TypeId: NodeId
1396
    :ivar ResponseHeader:
1397
    :vartype ResponseHeader: ResponseHeader
1398
    '''
1399
1400
    ua_types = {
1401
        'TypeId': 'NodeId',
1402
        'ResponseHeader': 'ResponseHeader',
1403
               }
1404
1405
    def __init__(self, binary=None):
1406
        if binary is not None:
1407
            self._binary_init(binary)
1408
            self._freeze = True
1409
            return
1410
        self.TypeId = FourByteNodeId(ObjectIds.ServiceFault_Encoding_DefaultBinary)
1411
        self.ResponseHeader = ResponseHeader()
1412
        self._freeze = True
1413
1414
    def to_binary(self):
1415
        packet = []
1416
        packet.append(self.TypeId.to_binary())
1417
        packet.append(self.ResponseHeader.to_binary())
1418
        return b''.join(packet)
1419
1420
    @staticmethod
1421
    def from_binary(data):
1422
        return ServiceFault(data)
1423
1424
    def _binary_init(self, data):
1425
        self.TypeId = NodeId.from_binary(data)
1426
        self.ResponseHeader = ResponseHeader.from_binary(data)
1427
1428
    def __str__(self):
1429
        return 'ServiceFault(' + 'TypeId:' + str(self.TypeId) + ', ' + \
1430
               'ResponseHeader:' + str(self.ResponseHeader) + ')'
1431
1432
    __repr__ = __str__
1433
1434
1435
class FindServersParameters(FrozenClass):
@@ 15580-15620 (lines=41) @@
15577
    __repr__ = __str__
15578
15579
15580
class SemanticChangeStructureDataType(FrozenClass):
15581
    '''
15582
    :ivar Affected:
15583
    :vartype Affected: NodeId
15584
    :ivar AffectedType:
15585
    :vartype AffectedType: NodeId
15586
    '''
15587
15588
    ua_types = {
15589
        'Affected': 'NodeId',
15590
        'AffectedType': 'NodeId',
15591
               }
15592
15593
    def __init__(self, binary=None):
15594
        if binary is not None:
15595
            self._binary_init(binary)
15596
            self._freeze = True
15597
            return
15598
        self.Affected = NodeId()
15599
        self.AffectedType = NodeId()
15600
        self._freeze = True
15601
15602
    def to_binary(self):
15603
        packet = []
15604
        packet.append(self.Affected.to_binary())
15605
        packet.append(self.AffectedType.to_binary())
15606
        return b''.join(packet)
15607
15608
    @staticmethod
15609
    def from_binary(data):
15610
        return SemanticChangeStructureDataType(data)
15611
15612
    def _binary_init(self, data):
15613
        self.Affected = NodeId.from_binary(data)
15614
        self.AffectedType = NodeId.from_binary(data)
15615
15616
    def __str__(self):
15617
        return 'SemanticChangeStructureDataType(' + 'Affected:' + str(self.Affected) + ', ' + \
15618
               'AffectedType:' + str(self.AffectedType) + ')'
15619
15620
    __repr__ = __str__
15621
15622
15623
class Range(FrozenClass):
@@ 15241-15281 (lines=41) @@
15238
    __repr__ = __str__
15239
15240
15241
class StatusResult(FrozenClass):
15242
    '''
15243
    :ivar StatusCode:
15244
    :vartype StatusCode: StatusCode
15245
    :ivar DiagnosticInfo:
15246
    :vartype DiagnosticInfo: DiagnosticInfo
15247
    '''
15248
15249
    ua_types = {
15250
        'StatusCode': 'StatusCode',
15251
        'DiagnosticInfo': 'DiagnosticInfo',
15252
               }
15253
15254
    def __init__(self, binary=None):
15255
        if binary is not None:
15256
            self._binary_init(binary)
15257
            self._freeze = True
15258
            return
15259
        self.StatusCode = StatusCode()
15260
        self.DiagnosticInfo = DiagnosticInfo()
15261
        self._freeze = True
15262
15263
    def to_binary(self):
15264
        packet = []
15265
        packet.append(self.StatusCode.to_binary())
15266
        packet.append(self.DiagnosticInfo.to_binary())
15267
        return b''.join(packet)
15268
15269
    @staticmethod
15270
    def from_binary(data):
15271
        return StatusResult(data)
15272
15273
    def _binary_init(self, data):
15274
        self.StatusCode = StatusCode.from_binary(data)
15275
        self.DiagnosticInfo = DiagnosticInfo.from_binary(data)
15276
15277
    def __str__(self):
15278
        return 'StatusResult(' + 'StatusCode:' + str(self.StatusCode) + ', ' + \
15279
               'DiagnosticInfo:' + str(self.DiagnosticInfo) + ')'
15280
15281
    __repr__ = __str__
15282
15283
15284
class SubscriptionDiagnosticsDataType(FrozenClass):
@@ 13457-13497 (lines=41) @@
13454
    __repr__ = __str__
13455
13456
13457
class StatusChangeNotification(FrozenClass):
13458
    '''
13459
    :ivar Status:
13460
    :vartype Status: StatusCode
13461
    :ivar DiagnosticInfo:
13462
    :vartype DiagnosticInfo: DiagnosticInfo
13463
    '''
13464
13465
    ua_types = {
13466
        'Status': 'StatusCode',
13467
        'DiagnosticInfo': 'DiagnosticInfo',
13468
               }
13469
13470
    def __init__(self, binary=None):
13471
        if binary is not None:
13472
            self._binary_init(binary)
13473
            self._freeze = True
13474
            return
13475
        self.Status = StatusCode()
13476
        self.DiagnosticInfo = DiagnosticInfo()
13477
        self._freeze = True
13478
13479
    def to_binary(self):
13480
        packet = []
13481
        packet.append(self.Status.to_binary())
13482
        packet.append(self.DiagnosticInfo.to_binary())
13483
        return b''.join(packet)
13484
13485
    @staticmethod
13486
    def from_binary(data):
13487
        return StatusChangeNotification(data)
13488
13489
    def _binary_init(self, data):
13490
        self.Status = StatusCode.from_binary(data)
13491
        self.DiagnosticInfo = DiagnosticInfo.from_binary(data)
13492
13493
    def __str__(self):
13494
        return 'StatusChangeNotification(' + 'Status:' + str(self.Status) + ', ' + \
13495
               'DiagnosticInfo:' + str(self.DiagnosticInfo) + ')'
13496
13497
    __repr__ = __str__
13498
13499
13500
class SubscriptionAcknowledgement(FrozenClass):