Total Complexity | 3 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class Servers extends CloudApiBase |
||
15 | { |
||
16 | /** |
||
17 | * Gets information about a single server. |
||
18 | */ |
||
19 | public function get(string $environmentUuid, string $serverId): ServerResponse |
||
20 | { |
||
21 | return new ServerResponse( |
||
22 | $this->client->request( |
||
23 | 'get', |
||
24 | "/environments/$environmentUuid/servers/$serverId" |
||
25 | ) |
||
26 | ); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Modifies configuration settings for a server. |
||
31 | * |
||
32 | * @param mixed[] $config |
||
33 | */ |
||
34 | public function update(string $environmentUuid, string $serverId, array $config): OperationResponse |
||
41 | ) |
||
42 | ); |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Show all servers associated with an environment. |
||
47 | * |
||
48 | * @return ServersResponse<ServerResponse> |
||
49 | */ |
||
50 | public function getAll(string $environmentUuid): ServersResponse |
||
60 |