|
@@ 1617-1671 (lines=55) @@
|
| 1614 |
|
__repr__ = __str__ |
| 1615 |
|
|
| 1616 |
|
|
| 1617 |
|
class RegisteredServer(FrozenClass): |
| 1618 |
|
''' |
| 1619 |
|
The information required to register a server with a discovery server. |
| 1620 |
|
|
| 1621 |
|
:ivar ServerUri: |
| 1622 |
|
:vartype ServerUri: String |
| 1623 |
|
:ivar ProductUri: |
| 1624 |
|
:vartype ProductUri: String |
| 1625 |
|
:ivar ServerNames: |
| 1626 |
|
:vartype ServerNames: LocalizedText |
| 1627 |
|
:ivar ServerType: |
| 1628 |
|
:vartype ServerType: ApplicationType |
| 1629 |
|
:ivar GatewayServerUri: |
| 1630 |
|
:vartype GatewayServerUri: String |
| 1631 |
|
:ivar DiscoveryUrls: |
| 1632 |
|
:vartype DiscoveryUrls: String |
| 1633 |
|
:ivar SemaphoreFilePath: |
| 1634 |
|
:vartype SemaphoreFilePath: String |
| 1635 |
|
:ivar IsOnline: |
| 1636 |
|
:vartype IsOnline: Boolean |
| 1637 |
|
''' |
| 1638 |
|
|
| 1639 |
|
ua_types = [ |
| 1640 |
|
('ServerUri', 'String'), |
| 1641 |
|
('ProductUri', 'String'), |
| 1642 |
|
('ServerNames', 'ListOfLocalizedText'), |
| 1643 |
|
('ServerType', 'ApplicationType'), |
| 1644 |
|
('GatewayServerUri', 'String'), |
| 1645 |
|
('DiscoveryUrls', 'ListOfString'), |
| 1646 |
|
('SemaphoreFilePath', 'String'), |
| 1647 |
|
('IsOnline', 'Boolean'), |
| 1648 |
|
] |
| 1649 |
|
|
| 1650 |
|
def __init__(self): |
| 1651 |
|
self.ServerUri = None |
| 1652 |
|
self.ProductUri = None |
| 1653 |
|
self.ServerNames = [] |
| 1654 |
|
self.ServerType = ApplicationType(0) |
| 1655 |
|
self.GatewayServerUri = None |
| 1656 |
|
self.DiscoveryUrls = [] |
| 1657 |
|
self.SemaphoreFilePath = None |
| 1658 |
|
self.IsOnline = True |
| 1659 |
|
self._freeze = True |
| 1660 |
|
|
| 1661 |
|
def __str__(self): |
| 1662 |
|
return 'RegisteredServer(' + 'ServerUri:' + str(self.ServerUri) + ', ' + \ |
| 1663 |
|
'ProductUri:' + str(self.ProductUri) + ', ' + \ |
| 1664 |
|
'ServerNames:' + str(self.ServerNames) + ', ' + \ |
| 1665 |
|
'ServerType:' + str(self.ServerType) + ', ' + \ |
| 1666 |
|
'GatewayServerUri:' + str(self.GatewayServerUri) + ', ' + \ |
| 1667 |
|
'DiscoveryUrls:' + str(self.DiscoveryUrls) + ', ' + \ |
| 1668 |
|
'SemaphoreFilePath:' + str(self.SemaphoreFilePath) + ', ' + \ |
| 1669 |
|
'IsOnline:' + str(self.IsOnline) + ')' |
| 1670 |
|
|
| 1671 |
|
__repr__ = __str__ |
| 1672 |
|
|
| 1673 |
|
|
| 1674 |
|
class RegisterServerRequest(FrozenClass): |
|
@@ 1002-1051 (lines=50) @@
|
| 999 |
|
__repr__ = __str__ |
| 1000 |
|
|
| 1001 |
|
|
| 1002 |
|
class ApplicationDescription(FrozenClass): |
| 1003 |
|
''' |
| 1004 |
|
Describes an application and how to find it. |
| 1005 |
|
|
| 1006 |
|
:ivar ApplicationUri: |
| 1007 |
|
:vartype ApplicationUri: String |
| 1008 |
|
:ivar ProductUri: |
| 1009 |
|
:vartype ProductUri: String |
| 1010 |
|
:ivar ApplicationName: |
| 1011 |
|
:vartype ApplicationName: LocalizedText |
| 1012 |
|
:ivar ApplicationType: |
| 1013 |
|
:vartype ApplicationType: ApplicationType |
| 1014 |
|
:ivar GatewayServerUri: |
| 1015 |
|
:vartype GatewayServerUri: String |
| 1016 |
|
:ivar DiscoveryProfileUri: |
| 1017 |
|
:vartype DiscoveryProfileUri: String |
| 1018 |
|
:ivar DiscoveryUrls: |
| 1019 |
|
:vartype DiscoveryUrls: String |
| 1020 |
|
''' |
| 1021 |
|
|
| 1022 |
|
ua_types = [ |
| 1023 |
|
('ApplicationUri', 'String'), |
| 1024 |
|
('ProductUri', 'String'), |
| 1025 |
|
('ApplicationName', 'LocalizedText'), |
| 1026 |
|
('ApplicationType', 'ApplicationType'), |
| 1027 |
|
('GatewayServerUri', 'String'), |
| 1028 |
|
('DiscoveryProfileUri', 'String'), |
| 1029 |
|
('DiscoveryUrls', 'ListOfString'), |
| 1030 |
|
] |
| 1031 |
|
|
| 1032 |
|
def __init__(self): |
| 1033 |
|
self.ApplicationUri = None |
| 1034 |
|
self.ProductUri = None |
| 1035 |
|
self.ApplicationName = LocalizedText() |
| 1036 |
|
self.ApplicationType = ApplicationType(0) |
| 1037 |
|
self.GatewayServerUri = None |
| 1038 |
|
self.DiscoveryProfileUri = None |
| 1039 |
|
self.DiscoveryUrls = [] |
| 1040 |
|
self._freeze = True |
| 1041 |
|
|
| 1042 |
|
def __str__(self): |
| 1043 |
|
return 'ApplicationDescription(' + 'ApplicationUri:' + str(self.ApplicationUri) + ', ' + \ |
| 1044 |
|
'ProductUri:' + str(self.ProductUri) + ', ' + \ |
| 1045 |
|
'ApplicationName:' + str(self.ApplicationName) + ', ' + \ |
| 1046 |
|
'ApplicationType:' + str(self.ApplicationType) + ', ' + \ |
| 1047 |
|
'GatewayServerUri:' + str(self.GatewayServerUri) + ', ' + \ |
| 1048 |
|
'DiscoveryProfileUri:' + str(self.DiscoveryProfileUri) + ', ' + \ |
| 1049 |
|
'DiscoveryUrls:' + str(self.DiscoveryUrls) + ')' |
| 1050 |
|
|
| 1051 |
|
__repr__ = __str__ |
| 1052 |
|
|
| 1053 |
|
|
| 1054 |
|
class RequestHeader(FrozenClass): |