Code Duplication    Length = 32-32 lines in 2 locations

opcua/ua/uaprotocol_auto.py 2 locations

@@ 13723-13754 (lines=32) @@
13720
        ('EndpointUrl', 'String'),
13721
        ('LocaleIds', 'ListOfString'),
13722
        ('ActualSessionTimeout', 'Double'),
13723
        ('MaxResponseMessageSize', 'UInt32'),
13724
        ('ClientConnectionTime', 'DateTime'),
13725
        ('ClientLastContactTime', 'DateTime'),
13726
        ('CurrentSubscriptionsCount', 'UInt32'),
13727
        ('CurrentMonitoredItemsCount', 'UInt32'),
13728
        ('CurrentPublishRequestsInQueue', 'UInt32'),
13729
        ('TotalRequestCount', 'ServiceCounterDataType'),
13730
        ('UnauthorizedRequestCount', 'UInt32'),
13731
        ('ReadCount', 'ServiceCounterDataType'),
13732
        ('HistoryReadCount', 'ServiceCounterDataType'),
13733
        ('WriteCount', 'ServiceCounterDataType'),
13734
        ('HistoryUpdateCount', 'ServiceCounterDataType'),
13735
        ('CallCount', 'ServiceCounterDataType'),
13736
        ('CreateMonitoredItemsCount', 'ServiceCounterDataType'),
13737
        ('ModifyMonitoredItemsCount', 'ServiceCounterDataType'),
13738
        ('SetMonitoringModeCount', 'ServiceCounterDataType'),
13739
        ('SetTriggeringCount', 'ServiceCounterDataType'),
13740
        ('DeleteMonitoredItemsCount', 'ServiceCounterDataType'),
13741
        ('CreateSubscriptionCount', 'ServiceCounterDataType'),
13742
        ('ModifySubscriptionCount', 'ServiceCounterDataType'),
13743
        ('SetPublishingModeCount', 'ServiceCounterDataType'),
13744
        ('PublishCount', 'ServiceCounterDataType'),
13745
        ('RepublishCount', 'ServiceCounterDataType'),
13746
        ('TransferSubscriptionsCount', 'ServiceCounterDataType'),
13747
        ('DeleteSubscriptionsCount', 'ServiceCounterDataType'),
13748
        ('AddNodesCount', 'ServiceCounterDataType'),
13749
        ('AddReferencesCount', 'ServiceCounterDataType'),
13750
        ('DeleteNodesCount', 'ServiceCounterDataType'),
13751
        ('DeleteReferencesCount', 'ServiceCounterDataType'),
13752
        ('BrowseCount', 'ServiceCounterDataType'),
13753
        ('BrowseNextCount', 'ServiceCounterDataType'),
13754
        ('TranslateBrowsePathsToNodeIdsCount', 'ServiceCounterDataType'),
13755
        ('QueryFirstCount', 'ServiceCounterDataType'),
13756
        ('QueryNextCount', 'ServiceCounterDataType'),
13757
        ('RegisterNodesCount', 'ServiceCounterDataType'),
@@ 13463-13494 (lines=32) @@
13460
    :vartype SecurityRejectedSessionCount: UInt32
13461
    :ivar RejectedSessionCount:
13462
    :vartype RejectedSessionCount: UInt32
13463
    :ivar SessionTimeoutCount:
13464
    :vartype SessionTimeoutCount: UInt32
13465
    :ivar SessionAbortCount:
13466
    :vartype SessionAbortCount: UInt32
13467
    :ivar CurrentSubscriptionCount:
13468
    :vartype CurrentSubscriptionCount: UInt32
13469
    :ivar CumulatedSubscriptionCount:
13470
    :vartype CumulatedSubscriptionCount: UInt32
13471
    :ivar PublishingIntervalCount:
13472
    :vartype PublishingIntervalCount: UInt32
13473
    :ivar SecurityRejectedRequestsCount:
13474
    :vartype SecurityRejectedRequestsCount: UInt32
13475
    :ivar RejectedRequestsCount:
13476
    :vartype RejectedRequestsCount: UInt32
13477
    '''
13478
13479
    ua_types = [
13480
        ('ServerViewCount', 'UInt32'),
13481
        ('CurrentSessionCount', 'UInt32'),
13482
        ('CumulatedSessionCount', 'UInt32'),
13483
        ('SecurityRejectedSessionCount', 'UInt32'),
13484
        ('RejectedSessionCount', 'UInt32'),
13485
        ('SessionTimeoutCount', 'UInt32'),
13486
        ('SessionAbortCount', 'UInt32'),
13487
        ('CurrentSubscriptionCount', 'UInt32'),
13488
        ('CumulatedSubscriptionCount', 'UInt32'),
13489
        ('PublishingIntervalCount', 'UInt32'),
13490
        ('SecurityRejectedRequestsCount', 'UInt32'),
13491
        ('RejectedRequestsCount', 'UInt32'),
13492
               ]
13493
13494
    def __init__(self):
13495
        self.ServerViewCount = 0
13496
        self.CurrentSessionCount = 0
13497
        self.CumulatedSessionCount = 0