Code Duplication    Length = 33-38 lines in 5 locations

opcua/ua/uaprotocol_auto.py 5 locations

@@ 5020-5057 (lines=38) @@
5017
    __repr__ = __str__
5018
5019
5020
class AttributeOperand(FrozenClass):
5021
    '''
5022
    :ivar NodeId:
5023
    :vartype NodeId: NodeId
5024
    :ivar Alias:
5025
    :vartype Alias: String
5026
    :ivar BrowsePath:
5027
    :vartype BrowsePath: RelativePath
5028
    :ivar AttributeId:
5029
    :vartype AttributeId: UInt32
5030
    :ivar IndexRange:
5031
    :vartype IndexRange: String
5032
    '''
5033
5034
    ua_types = [
5035
        ('NodeId', 'NodeId'),
5036
        ('Alias', 'String'),
5037
        ('BrowsePath', 'RelativePath'),
5038
        ('AttributeId', 'UInt32'),
5039
        ('IndexRange', 'String'),
5040
               ]
5041
5042
    def __init__(self):
5043
        self.NodeId = NodeId()
5044
        self.Alias = None
5045
        self.BrowsePath = RelativePath()
5046
        self.AttributeId = 0
5047
        self.IndexRange = None
5048
        self._freeze = True
5049
5050
    def __str__(self):
5051
        return 'AttributeOperand(' + 'NodeId:' + str(self.NodeId) + ', ' + \
5052
               'Alias:' + str(self.Alias) + ', ' + \
5053
               'BrowsePath:' + str(self.BrowsePath) + ', ' + \
5054
               'AttributeId:' + str(self.AttributeId) + ', ' + \
5055
               'IndexRange:' + str(self.IndexRange) + ')'
5056
5057
    __repr__ = __str__
5058
5059
5060
class SimpleAttributeOperand(FrozenClass):
@@ 5976-6008 (lines=33) @@
5973
    __repr__ = __str__
5974
5975
5976
class WriteValue(FrozenClass):
5977
    '''
5978
    :ivar NodeId:
5979
    :vartype NodeId: NodeId
5980
    :ivar AttributeId:
5981
    :vartype AttributeId: UInt32
5982
    :ivar IndexRange:
5983
    :vartype IndexRange: String
5984
    :ivar Value:
5985
    :vartype Value: DataValue
5986
    '''
5987
5988
    ua_types = [
5989
        ('NodeId', 'NodeId'),
5990
        ('AttributeId', 'UInt32'),
5991
        ('IndexRange', 'String'),
5992
        ('Value', 'DataValue'),
5993
               ]
5994
5995
    def __init__(self):
5996
        self.NodeId = NodeId()
5997
        self.AttributeId = 0
5998
        self.IndexRange = None
5999
        self.Value = DataValue()
6000
        self._freeze = True
6001
6002
    def __str__(self):
6003
        return 'WriteValue(' + 'NodeId:' + str(self.NodeId) + ', ' + \
6004
               'AttributeId:' + str(self.AttributeId) + ', ' + \
6005
               'IndexRange:' + str(self.IndexRange) + ', ' + \
6006
               'Value:' + str(self.Value) + ')'
6007
6008
    __repr__ = __str__
6009
6010
6011
class WriteParameters(FrozenClass):
@@ 5560-5592 (lines=33) @@
5557
    __repr__ = __str__
5558
5559
5560
class HistoryReadValueId(FrozenClass):
5561
    '''
5562
    :ivar NodeId:
5563
    :vartype NodeId: NodeId
5564
    :ivar IndexRange:
5565
    :vartype IndexRange: String
5566
    :ivar DataEncoding:
5567
    :vartype DataEncoding: QualifiedName
5568
    :ivar ContinuationPoint:
5569
    :vartype ContinuationPoint: ByteString
5570
    '''
5571
5572
    ua_types = [
5573
        ('NodeId', 'NodeId'),
5574
        ('IndexRange', 'String'),
5575
        ('DataEncoding', 'QualifiedName'),
5576
        ('ContinuationPoint', 'ByteString'),
5577
               ]
5578
5579
    def __init__(self):
5580
        self.NodeId = NodeId()
5581
        self.IndexRange = None
5582
        self.DataEncoding = QualifiedName()
5583
        self.ContinuationPoint = None
5584
        self._freeze = True
5585
5586
    def __str__(self):
5587
        return 'HistoryReadValueId(' + 'NodeId:' + str(self.NodeId) + ', ' + \
5588
               'IndexRange:' + str(self.IndexRange) + ', ' + \
5589
               'DataEncoding:' + str(self.DataEncoding) + ', ' + \
5590
               'ContinuationPoint:' + str(self.ContinuationPoint) + ')'
5591
5592
    __repr__ = __str__
5593
5594
5595
class HistoryReadResult(FrozenClass):
@@ 5430-5462 (lines=33) @@
5427
    __repr__ = __str__
5428
5429
5430
class ReadValueId(FrozenClass):
5431
    '''
5432
    :ivar NodeId:
5433
    :vartype NodeId: NodeId
5434
    :ivar AttributeId:
5435
    :vartype AttributeId: UInt32
5436
    :ivar IndexRange:
5437
    :vartype IndexRange: String
5438
    :ivar DataEncoding:
5439
    :vartype DataEncoding: QualifiedName
5440
    '''
5441
5442
    ua_types = [
5443
        ('NodeId', 'NodeId'),
5444
        ('AttributeId', 'UInt32'),
5445
        ('IndexRange', 'String'),
5446
        ('DataEncoding', 'QualifiedName'),
5447
               ]
5448
5449
    def __init__(self):
5450
        self.NodeId = NodeId()
5451
        self.AttributeId = 0
5452
        self.IndexRange = None
5453
        self.DataEncoding = QualifiedName()
5454
        self._freeze = True
5455
5456
    def __str__(self):
5457
        return 'ReadValueId(' + 'NodeId:' + str(self.NodeId) + ', ' + \
5458
               'AttributeId:' + str(self.AttributeId) + ', ' + \
5459
               'IndexRange:' + str(self.IndexRange) + ', ' + \
5460
               'DataEncoding:' + str(self.DataEncoding) + ')'
5461
5462
    __repr__ = __str__
5463
5464
5465
class ReadParameters(FrozenClass):
@@ 5060-5092 (lines=33) @@
5057
    __repr__ = __str__
5058
5059
5060
class SimpleAttributeOperand(FrozenClass):
5061
    '''
5062
    :ivar TypeDefinitionId:
5063
    :vartype TypeDefinitionId: NodeId
5064
    :ivar BrowsePath:
5065
    :vartype BrowsePath: QualifiedName
5066
    :ivar AttributeId:
5067
    :vartype AttributeId: UInt32
5068
    :ivar IndexRange:
5069
    :vartype IndexRange: String
5070
    '''
5071
5072
    ua_types = [
5073
        ('TypeDefinitionId', 'NodeId'),
5074
        ('BrowsePath', 'ListOfQualifiedName'),
5075
        ('AttributeId', 'UInt32'),
5076
        ('IndexRange', 'String'),
5077
               ]
5078
5079
    def __init__(self):
5080
        self.TypeDefinitionId = NodeId()
5081
        self.BrowsePath = []
5082
        self.AttributeId = 0
5083
        self.IndexRange = None
5084
        self._freeze = True
5085
5086
    def __str__(self):
5087
        return 'SimpleAttributeOperand(' + 'TypeDefinitionId:' + str(self.TypeDefinitionId) + ', ' + \
5088
               'BrowsePath:' + str(self.BrowsePath) + ', ' + \
5089
               'AttributeId:' + str(self.AttributeId) + ', ' + \
5090
               'IndexRange:' + str(self.IndexRange) + ')'
5091
5092
    __repr__ = __str__
5093
5094
5095
class ContentFilterElementResult(FrozenClass):