Code Duplication    Length = 41-45 lines in 25 locations

opcua/ua/uaprotocol_auto.py 25 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):