@@ 7582-7624 (lines=43) @@ | ||
7579 | __repr__ = __str__ |
|
7580 | ||
7581 | ||
7582 | class ModifySubscriptionParameters(FrozenClass): |
|
7583 | ''' |
|
7584 | :ivar SubscriptionId: |
|
7585 | :vartype SubscriptionId: UInt32 |
|
7586 | :ivar RequestedPublishingInterval: |
|
7587 | :vartype RequestedPublishingInterval: Double |
|
7588 | :ivar RequestedLifetimeCount: |
|
7589 | :vartype RequestedLifetimeCount: UInt32 |
|
7590 | :ivar RequestedMaxKeepAliveCount: |
|
7591 | :vartype RequestedMaxKeepAliveCount: UInt32 |
|
7592 | :ivar MaxNotificationsPerPublish: |
|
7593 | :vartype MaxNotificationsPerPublish: UInt32 |
|
7594 | :ivar Priority: |
|
7595 | :vartype Priority: Byte |
|
7596 | ''' |
|
7597 | ||
7598 | ua_types = [ |
|
7599 | ('SubscriptionId', 'UInt32'), |
|
7600 | ('RequestedPublishingInterval', 'Double'), |
|
7601 | ('RequestedLifetimeCount', 'UInt32'), |
|
7602 | ('RequestedMaxKeepAliveCount', 'UInt32'), |
|
7603 | ('MaxNotificationsPerPublish', 'UInt32'), |
|
7604 | ('Priority', 'Byte'), |
|
7605 | ] |
|
7606 | ||
7607 | def __init__(self): |
|
7608 | self.SubscriptionId = 0 |
|
7609 | self.RequestedPublishingInterval = 0 |
|
7610 | self.RequestedLifetimeCount = 0 |
|
7611 | self.RequestedMaxKeepAliveCount = 0 |
|
7612 | self.MaxNotificationsPerPublish = 0 |
|
7613 | self.Priority = 0 |
|
7614 | self._freeze = True |
|
7615 | ||
7616 | def __str__(self): |
|
7617 | return 'ModifySubscriptionParameters(' + 'SubscriptionId:' + str(self.SubscriptionId) + ', ' + \ |
|
7618 | 'RequestedPublishingInterval:' + str(self.RequestedPublishingInterval) + ', ' + \ |
|
7619 | 'RequestedLifetimeCount:' + str(self.RequestedLifetimeCount) + ', ' + \ |
|
7620 | 'RequestedMaxKeepAliveCount:' + str(self.RequestedMaxKeepAliveCount) + ', ' + \ |
|
7621 | 'MaxNotificationsPerPublish:' + str(self.MaxNotificationsPerPublish) + ', ' + \ |
|
7622 | 'Priority:' + str(self.Priority) + ')' |
|
7623 | ||
7624 | __repr__ = __str__ |
|
7625 | ||
7626 | ||
7627 | class ModifySubscriptionRequest(FrozenClass): |
|
@@ 7442-7484 (lines=43) @@ | ||
7439 | __repr__ = __str__ |
|
7440 | ||
7441 | ||
7442 | class CreateSubscriptionParameters(FrozenClass): |
|
7443 | ''' |
|
7444 | :ivar RequestedPublishingInterval: |
|
7445 | :vartype RequestedPublishingInterval: Double |
|
7446 | :ivar RequestedLifetimeCount: |
|
7447 | :vartype RequestedLifetimeCount: UInt32 |
|
7448 | :ivar RequestedMaxKeepAliveCount: |
|
7449 | :vartype RequestedMaxKeepAliveCount: UInt32 |
|
7450 | :ivar MaxNotificationsPerPublish: |
|
7451 | :vartype MaxNotificationsPerPublish: UInt32 |
|
7452 | :ivar PublishingEnabled: |
|
7453 | :vartype PublishingEnabled: Boolean |
|
7454 | :ivar Priority: |
|
7455 | :vartype Priority: Byte |
|
7456 | ''' |
|
7457 | ||
7458 | ua_types = [ |
|
7459 | ('RequestedPublishingInterval', 'Double'), |
|
7460 | ('RequestedLifetimeCount', 'UInt32'), |
|
7461 | ('RequestedMaxKeepAliveCount', 'UInt32'), |
|
7462 | ('MaxNotificationsPerPublish', 'UInt32'), |
|
7463 | ('PublishingEnabled', 'Boolean'), |
|
7464 | ('Priority', 'Byte'), |
|
7465 | ] |
|
7466 | ||
7467 | def __init__(self): |
|
7468 | self.RequestedPublishingInterval = 0 |
|
7469 | self.RequestedLifetimeCount = 0 |
|
7470 | self.RequestedMaxKeepAliveCount = 0 |
|
7471 | self.MaxNotificationsPerPublish = 0 |
|
7472 | self.PublishingEnabled = True |
|
7473 | self.Priority = 0 |
|
7474 | self._freeze = True |
|
7475 | ||
7476 | def __str__(self): |
|
7477 | return 'CreateSubscriptionParameters(' + 'RequestedPublishingInterval:' + str(self.RequestedPublishingInterval) + ', ' + \ |
|
7478 | 'RequestedLifetimeCount:' + str(self.RequestedLifetimeCount) + ', ' + \ |
|
7479 | 'RequestedMaxKeepAliveCount:' + str(self.RequestedMaxKeepAliveCount) + ', ' + \ |
|
7480 | 'MaxNotificationsPerPublish:' + str(self.MaxNotificationsPerPublish) + ', ' + \ |
|
7481 | 'PublishingEnabled:' + str(self.PublishingEnabled) + ', ' + \ |
|
7482 | 'Priority:' + str(self.Priority) + ')' |
|
7483 | ||
7484 | __repr__ = __str__ |
|
7485 | ||
7486 | ||
7487 | class CreateSubscriptionRequest(FrozenClass): |