1 | <?php |
||
10 | class Servers |
||
11 | { |
||
12 | /** |
||
13 | * @var Client |
||
14 | */ |
||
15 | protected $client; |
||
16 | |||
17 | /** |
||
18 | * @var WebServiceGateway |
||
19 | */ |
||
20 | protected $gateway; |
||
21 | |||
22 | /** |
||
23 | * @param WebServiceGateway $gateway |
||
24 | */ |
||
25 | 4 | public function __construct(WebServiceGateway $gateway) { |
|
28 | |||
29 | /** |
||
30 | * @return Server[] |
||
31 | * @throws \Exception |
||
32 | */ |
||
33 | 1 | public function getAllServers() { |
|
44 | |||
45 | /** |
||
46 | * @param $serverId |
||
47 | * @return Server |
||
48 | * @throws \Exception |
||
49 | */ |
||
50 | 1 | public function getServer($serverId) { |
|
55 | |||
56 | /** |
||
57 | * @param $name |
||
58 | * @param $organizationId |
||
59 | * @param $imageId |
||
60 | * @param $commercialType |
||
61 | * @return Server |
||
62 | * @throws \Exception |
||
63 | */ |
||
64 | 1 | public function createServer($name, $organizationId, $imageId, $commercialType) { |
|
69 | |||
70 | /** |
||
71 | * @param $serverId |
||
72 | * @return mixed |
||
73 | * @throws \Exception |
||
74 | */ |
||
75 | public function deleteServer($serverId) { |
||
80 | |||
81 | /** |
||
82 | * @param $serverId |
||
83 | * @param $action |
||
84 | * @return Task |
||
85 | * @throws \Exception |
||
86 | */ |
||
87 | 1 | public function setAction($serverId, $action) { |
|
92 | } |
||
93 |