Code Duplication    Length = 33-38 lines in 5 locations

opcua/ua/uaprotocol_auto.py 5 locations

@@ 4984-5021 (lines=38) @@
4981
4982
4983
class AttributeOperand(FrozenClass):
4984
    '''
4985
    :ivar NodeId:
4986
    :vartype NodeId: NodeId
4987
    :ivar Alias:
4988
    :vartype Alias: String
4989
    :ivar BrowsePath:
4990
    :vartype BrowsePath: RelativePath
4991
    :ivar AttributeId:
4992
    :vartype AttributeId: UInt32
4993
    :ivar IndexRange:
4994
    :vartype IndexRange: String
4995
    '''
4996
4997
    ua_types = [
4998
        ('NodeId', 'NodeId'),
4999
        ('Alias', 'String'),
5000
        ('BrowsePath', 'RelativePath'),
5001
        ('AttributeId', 'UInt32'),
5002
        ('IndexRange', 'String'),
5003
               ]
5004
5005
    def __init__(self):
5006
        self.NodeId = NodeId()
5007
        self.Alias = None
5008
        self.BrowsePath = RelativePath()
5009
        self.AttributeId = 0
5010
        self.IndexRange = None
5011
        self._freeze = True
5012
5013
    def __str__(self):
5014
        return 'AttributeOperand(' + 'NodeId:' + str(self.NodeId) + ', ' + \
5015
               'Alias:' + str(self.Alias) + ', ' + \
5016
               'BrowsePath:' + str(self.BrowsePath) + ', ' + \
5017
               'AttributeId:' + str(self.AttributeId) + ', ' + \
5018
               'IndexRange:' + str(self.IndexRange) + ')'
5019
5020
    __repr__ = __str__
5021
5022
5023
class SimpleAttributeOperand(FrozenClass):
5024
    '''
@@ 5940-5972 (lines=33) @@
5937
5938
5939
class WriteValue(FrozenClass):
5940
    '''
5941
    :ivar NodeId:
5942
    :vartype NodeId: NodeId
5943
    :ivar AttributeId:
5944
    :vartype AttributeId: UInt32
5945
    :ivar IndexRange:
5946
    :vartype IndexRange: String
5947
    :ivar Value:
5948
    :vartype Value: DataValue
5949
    '''
5950
5951
    ua_types = [
5952
        ('NodeId', 'NodeId'),
5953
        ('AttributeId', 'UInt32'),
5954
        ('IndexRange', 'String'),
5955
        ('Value', 'DataValue'),
5956
               ]
5957
5958
    def __init__(self):
5959
        self.NodeId = NodeId()
5960
        self.AttributeId = 0
5961
        self.IndexRange = None
5962
        self.Value = DataValue()
5963
        self._freeze = True
5964
5965
    def __str__(self):
5966
        return 'WriteValue(' + 'NodeId:' + str(self.NodeId) + ', ' + \
5967
               'AttributeId:' + str(self.AttributeId) + ', ' + \
5968
               'IndexRange:' + str(self.IndexRange) + ', ' + \
5969
               'Value:' + str(self.Value) + ')'
5970
5971
    __repr__ = __str__
5972
5973
5974
class WriteParameters(FrozenClass):
5975
    '''
@@ 5524-5556 (lines=33) @@
5521
5522
5523
class HistoryReadValueId(FrozenClass):
5524
    '''
5525
    :ivar NodeId:
5526
    :vartype NodeId: NodeId
5527
    :ivar IndexRange:
5528
    :vartype IndexRange: String
5529
    :ivar DataEncoding:
5530
    :vartype DataEncoding: QualifiedName
5531
    :ivar ContinuationPoint:
5532
    :vartype ContinuationPoint: ByteString
5533
    '''
5534
5535
    ua_types = [
5536
        ('NodeId', 'NodeId'),
5537
        ('IndexRange', 'String'),
5538
        ('DataEncoding', 'QualifiedName'),
5539
        ('ContinuationPoint', 'ByteString'),
5540
               ]
5541
5542
    def __init__(self):
5543
        self.NodeId = NodeId()
5544
        self.IndexRange = None
5545
        self.DataEncoding = QualifiedName()
5546
        self.ContinuationPoint = None
5547
        self._freeze = True
5548
5549
    def __str__(self):
5550
        return 'HistoryReadValueId(' + 'NodeId:' + str(self.NodeId) + ', ' + \
5551
               'IndexRange:' + str(self.IndexRange) + ', ' + \
5552
               'DataEncoding:' + str(self.DataEncoding) + ', ' + \
5553
               'ContinuationPoint:' + str(self.ContinuationPoint) + ')'
5554
5555
    __repr__ = __str__
5556
5557
5558
class HistoryReadResult(FrozenClass):
5559
    '''
@@ 5394-5426 (lines=33) @@
5391
5392
5393
class ReadValueId(FrozenClass):
5394
    '''
5395
    :ivar NodeId:
5396
    :vartype NodeId: NodeId
5397
    :ivar AttributeId:
5398
    :vartype AttributeId: UInt32
5399
    :ivar IndexRange:
5400
    :vartype IndexRange: String
5401
    :ivar DataEncoding:
5402
    :vartype DataEncoding: QualifiedName
5403
    '''
5404
5405
    ua_types = [
5406
        ('NodeId', 'NodeId'),
5407
        ('AttributeId', 'UInt32'),
5408
        ('IndexRange', 'String'),
5409
        ('DataEncoding', 'QualifiedName'),
5410
               ]
5411
5412
    def __init__(self):
5413
        self.NodeId = NodeId()
5414
        self.AttributeId = 0
5415
        self.IndexRange = None
5416
        self.DataEncoding = QualifiedName()
5417
        self._freeze = True
5418
5419
    def __str__(self):
5420
        return 'ReadValueId(' + 'NodeId:' + str(self.NodeId) + ', ' + \
5421
               'AttributeId:' + str(self.AttributeId) + ', ' + \
5422
               'IndexRange:' + str(self.IndexRange) + ', ' + \
5423
               'DataEncoding:' + str(self.DataEncoding) + ')'
5424
5425
    __repr__ = __str__
5426
5427
5428
class ReadParameters(FrozenClass):
5429
    '''
@@ 5024-5056 (lines=33) @@
5021
5022
5023
class SimpleAttributeOperand(FrozenClass):
5024
    '''
5025
    :ivar TypeDefinitionId:
5026
    :vartype TypeDefinitionId: NodeId
5027
    :ivar BrowsePath:
5028
    :vartype BrowsePath: QualifiedName
5029
    :ivar AttributeId:
5030
    :vartype AttributeId: UInt32
5031
    :ivar IndexRange:
5032
    :vartype IndexRange: String
5033
    '''
5034
5035
    ua_types = [
5036
        ('TypeDefinitionId', 'NodeId'),
5037
        ('BrowsePath', 'ListOfQualifiedName'),
5038
        ('AttributeId', 'UInt32'),
5039
        ('IndexRange', 'String'),
5040
               ]
5041
5042
    def __init__(self):
5043
        self.TypeDefinitionId = NodeId()
5044
        self.BrowsePath = []
5045
        self.AttributeId = 0
5046
        self.IndexRange = None
5047
        self._freeze = True
5048
5049
    def __str__(self):
5050
        return 'SimpleAttributeOperand(' + 'TypeDefinitionId:' + str(self.TypeDefinitionId) + ', ' + \
5051
               'BrowsePath:' + str(self.BrowsePath) + ', ' + \
5052
               'AttributeId:' + str(self.AttributeId) + ', ' + \
5053
               'IndexRange:' + str(self.IndexRange) + ')'
5054
5055
    __repr__ = __str__
5056
5057
5058
class ContentFilterElementResult(FrozenClass):
5059
    '''