|
1 | | -from ucloud.core import client |
2 | | - |
3 | | - |
4 | | -class Client(client.Client): |
5 | | - def __init__(self, config: dict, transport=None, middleware=None): |
6 | | - self._config = config |
7 | | - super(Client, self).__init__(config, transport, middleware) |
8 | | - |
9 | | - def udb(self): |
10 | | - from ucloud.services.udb.client import UDBClient |
11 | | - return UDBClient(self._config, self.transport, self.middleware) |
12 | | - |
13 | | - def uphost(self): |
14 | | - from ucloud.services.uphost.client import UPHostClient |
15 | | - return UPHostClient(self._config, self.transport, self.middleware) |
16 | | - |
17 | | - def unet(self): |
18 | | - from ucloud.services.unet.client import UNetClient |
19 | | - return UNetClient(self._config, self.transport, self.middleware) |
20 | | - |
21 | | - def vpc(self): |
22 | | - from ucloud.services.vpc.client import VPCClient |
23 | | - return VPCClient(self._config, self.transport, self.middleware) |
24 | | - |
25 | | - def udpn(self): |
26 | | - from ucloud.services.udpn.client import UDPNClient |
27 | | - return UDPNClient(self._config, self.transport, self.middleware) |
28 | | - |
29 | | - def uaccount(self): |
30 | | - from ucloud.services.uaccount.client import UAccountClient |
31 | | - return UAccountClient(self._config, self.transport, self.middleware) |
32 | | - |
33 | | - def uhost(self): |
34 | | - from ucloud.services.uhost.client import UHostClient |
35 | | - return UHostClient(self._config, self.transport, self.middleware) |
36 | | - |
37 | | - def umem(self): |
38 | | - from ucloud.services.umem.client import UMemClient |
39 | | - return UMemClient(self._config, self.transport, self.middleware) |
40 | | - |
41 | | - def ulb(self): |
42 | | - from ucloud.services.ulb.client import ULBClient |
43 | | - return ULBClient(self._config, self.transport, self.middleware) |
44 | | - |
45 | | - def udisk(self): |
46 | | - from ucloud.services.udisk.client import UDiskClient |
47 | | - return UDiskClient(self._config, self.transport, self.middleware) |
48 | | - |
49 | | - def pathx(self): |
50 | | - from ucloud.services.pathx.client import PathXClient |
51 | | - return PathXClient(self._config, self.transport, self.middleware) |
52 | | - |
| 1 | +from ucloud.core import client |
| 2 | + |
| 3 | + |
| 4 | +class Client(client.Client): |
| 5 | + def __init__(self, config: dict, transport=None, middleware=None): |
| 6 | + self._config = config |
| 7 | + super(Client, self).__init__(config, transport, middleware) |
| 8 | + |
| 9 | + def umem(self): |
| 10 | + from ucloud.services.umem.client import UMemClient |
| 11 | + |
| 12 | + return UMemClient(self._config, self.transport, self.middleware, self.logger) |
| 13 | + |
| 14 | + def unet(self): |
| 15 | + from ucloud.services.unet.client import UNetClient |
| 16 | + |
| 17 | + return UNetClient(self._config, self.transport, self.middleware, self.logger) |
| 18 | + |
| 19 | + def uaccount(self): |
| 20 | + from ucloud.services.uaccount.client import UAccountClient |
| 21 | + |
| 22 | + return UAccountClient( |
| 23 | + self._config, self.transport, self.middleware, self.logger |
| 24 | + ) |
| 25 | + |
| 26 | + def udisk(self): |
| 27 | + from ucloud.services.udisk.client import UDiskClient |
| 28 | + |
| 29 | + return UDiskClient(self._config, self.transport, self.middleware, self.logger) |
| 30 | + |
| 31 | + def udpn(self): |
| 32 | + from ucloud.services.udpn.client import UDPNClient |
| 33 | + |
| 34 | + return UDPNClient(self._config, self.transport, self.middleware, self.logger) |
| 35 | + |
| 36 | + def uhost(self): |
| 37 | + from ucloud.services.uhost.client import UHostClient |
| 38 | + |
| 39 | + return UHostClient(self._config, self.transport, self.middleware, self.logger) |
| 40 | + |
| 41 | + def pathx(self): |
| 42 | + from ucloud.services.pathx.client import PathXClient |
| 43 | + |
| 44 | + return PathXClient(self._config, self.transport, self.middleware, self.logger) |
| 45 | + |
| 46 | + def uphost(self): |
| 47 | + from ucloud.services.uphost.client import UPHostClient |
| 48 | + |
| 49 | + return UPHostClient(self._config, self.transport, self.middleware, self.logger) |
| 50 | + |
| 51 | + def vpc(self): |
| 52 | + from ucloud.services.vpc.client import VPCClient |
| 53 | + |
| 54 | + return VPCClient(self._config, self.transport, self.middleware, self.logger) |
| 55 | + |
| 56 | + def udb(self): |
| 57 | + from ucloud.services.udb.client import UDBClient |
| 58 | + |
| 59 | + return UDBClient(self._config, self.transport, self.middleware, self.logger) |
| 60 | + |
| 61 | + def ulb(self): |
| 62 | + from ucloud.services.ulb.client import ULBClient |
| 63 | + |
| 64 | + return ULBClient(self._config, self.transport, self.middleware, self.logger) |
0 commit comments