@@ 1581-1635 (lines=55) @@ | ||
1578 | __repr__ = __str__ |
|
1579 | ||
1580 | ||
1581 | class RegisteredServer(FrozenClass): |
|
1582 | ''' |
|
1583 | The information required to register a server with a discovery server. |
|
1584 | ||
1585 | :ivar ServerUri: |
|
1586 | :vartype ServerUri: String |
|
1587 | :ivar ProductUri: |
|
1588 | :vartype ProductUri: String |
|
1589 | :ivar ServerNames: |
|
1590 | :vartype ServerNames: LocalizedText |
|
1591 | :ivar ServerType: |
|
1592 | :vartype ServerType: ApplicationType |
|
1593 | :ivar GatewayServerUri: |
|
1594 | :vartype GatewayServerUri: String |
|
1595 | :ivar DiscoveryUrls: |
|
1596 | :vartype DiscoveryUrls: String |
|
1597 | :ivar SemaphoreFilePath: |
|
1598 | :vartype SemaphoreFilePath: String |
|
1599 | :ivar IsOnline: |
|
1600 | :vartype IsOnline: Boolean |
|
1601 | ''' |
|
1602 | ||
1603 | ua_types = [ |
|
1604 | ('ServerUri', 'String'), |
|
1605 | ('ProductUri', 'String'), |
|
1606 | ('ServerNames', 'ListOfLocalizedText'), |
|
1607 | ('ServerType', 'ApplicationType'), |
|
1608 | ('GatewayServerUri', 'String'), |
|
1609 | ('DiscoveryUrls', 'ListOfString'), |
|
1610 | ('SemaphoreFilePath', 'String'), |
|
1611 | ('IsOnline', 'Boolean'), |
|
1612 | ] |
|
1613 | ||
1614 | def __init__(self): |
|
1615 | self.ServerUri = None |
|
1616 | self.ProductUri = None |
|
1617 | self.ServerNames = [] |
|
1618 | self.ServerType = ApplicationType(0) |
|
1619 | self.GatewayServerUri = None |
|
1620 | self.DiscoveryUrls = [] |
|
1621 | self.SemaphoreFilePath = None |
|
1622 | self.IsOnline = True |
|
1623 | self._freeze = True |
|
1624 | ||
1625 | def __str__(self): |
|
1626 | return 'RegisteredServer(' + 'ServerUri:' + str(self.ServerUri) + ', ' + \ |
|
1627 | 'ProductUri:' + str(self.ProductUri) + ', ' + \ |
|
1628 | 'ServerNames:' + str(self.ServerNames) + ', ' + \ |
|
1629 | 'ServerType:' + str(self.ServerType) + ', ' + \ |
|
1630 | 'GatewayServerUri:' + str(self.GatewayServerUri) + ', ' + \ |
|
1631 | 'DiscoveryUrls:' + str(self.DiscoveryUrls) + ', ' + \ |
|
1632 | 'SemaphoreFilePath:' + str(self.SemaphoreFilePath) + ', ' + \ |
|
1633 | 'IsOnline:' + str(self.IsOnline) + ')' |
|
1634 | ||
1635 | __repr__ = __str__ |
|
1636 | ||
1637 | ||
1638 | class RegisterServerRequest(FrozenClass): |
|
@@ 966-1015 (lines=50) @@ | ||
963 | __repr__ = __str__ |
|
964 | ||
965 | ||
966 | class ApplicationDescription(FrozenClass): |
|
967 | ''' |
|
968 | Describes an application and how to find it. |
|
969 | ||
970 | :ivar ApplicationUri: |
|
971 | :vartype ApplicationUri: String |
|
972 | :ivar ProductUri: |
|
973 | :vartype ProductUri: String |
|
974 | :ivar ApplicationName: |
|
975 | :vartype ApplicationName: LocalizedText |
|
976 | :ivar ApplicationType: |
|
977 | :vartype ApplicationType: ApplicationType |
|
978 | :ivar GatewayServerUri: |
|
979 | :vartype GatewayServerUri: String |
|
980 | :ivar DiscoveryProfileUri: |
|
981 | :vartype DiscoveryProfileUri: String |
|
982 | :ivar DiscoveryUrls: |
|
983 | :vartype DiscoveryUrls: String |
|
984 | ''' |
|
985 | ||
986 | ua_types = [ |
|
987 | ('ApplicationUri', 'String'), |
|
988 | ('ProductUri', 'String'), |
|
989 | ('ApplicationName', 'LocalizedText'), |
|
990 | ('ApplicationType', 'ApplicationType'), |
|
991 | ('GatewayServerUri', 'String'), |
|
992 | ('DiscoveryProfileUri', 'String'), |
|
993 | ('DiscoveryUrls', 'ListOfString'), |
|
994 | ] |
|
995 | ||
996 | def __init__(self): |
|
997 | self.ApplicationUri = None |
|
998 | self.ProductUri = None |
|
999 | self.ApplicationName = LocalizedText() |
|
1000 | self.ApplicationType = ApplicationType(0) |
|
1001 | self.GatewayServerUri = None |
|
1002 | self.DiscoveryProfileUri = None |
|
1003 | self.DiscoveryUrls = [] |
|
1004 | self._freeze = True |
|
1005 | ||
1006 | def __str__(self): |
|
1007 | return 'ApplicationDescription(' + 'ApplicationUri:' + str(self.ApplicationUri) + ', ' + \ |
|
1008 | 'ProductUri:' + str(self.ProductUri) + ', ' + \ |
|
1009 | 'ApplicationName:' + str(self.ApplicationName) + ', ' + \ |
|
1010 | 'ApplicationType:' + str(self.ApplicationType) + ', ' + \ |
|
1011 | 'GatewayServerUri:' + str(self.GatewayServerUri) + ', ' + \ |
|
1012 | 'DiscoveryProfileUri:' + str(self.DiscoveryProfileUri) + ', ' + \ |
|
1013 | 'DiscoveryUrls:' + str(self.DiscoveryUrls) + ')' |
|
1014 | ||
1015 | __repr__ = __str__ |
|
1016 | ||
1017 | ||
1018 | class RequestHeader(FrozenClass): |