1 | <?php |
||
23 | class Ip extends HttpApi |
||
24 | { |
||
25 | /** |
||
26 | * Returns a list of IPs. |
||
27 | * |
||
28 | * @param bool $dedicated |
||
29 | * |
||
30 | * @return IndexResponse|ResponseInterface |
||
31 | */ |
||
32 | public function index($dedicated = false) |
||
44 | |||
45 | /** |
||
46 | * Returns a list of IPs assigned to a domain. |
||
47 | * |
||
48 | * @param string $domain |
||
49 | * |
||
50 | * @return IndexResponse|ResponseInterface |
||
51 | */ |
||
52 | public function domainIndex($domain) |
||
60 | |||
61 | /** |
||
62 | * Returns a single ip. |
||
63 | * |
||
64 | * @param string $ip |
||
65 | * |
||
66 | * @return ShowResponse|ResponseInterface |
||
67 | */ |
||
68 | public function show($ip) |
||
76 | |||
77 | /** |
||
78 | * Assign a dedicated IP to the domain specified. |
||
79 | * |
||
80 | * @param string $domain |
||
81 | * @param string $ip |
||
82 | * |
||
83 | * @return UpdateResponse|ResponseInterface |
||
84 | */ |
||
85 | public function assign($domain, $ip) |
||
98 | |||
99 | /** |
||
100 | * Unassign an IP from the domain specified. |
||
101 | * |
||
102 | * @param string $domain |
||
103 | * @param string $ip |
||
104 | * |
||
105 | * @return UpdateResponse|ResponseInterface |
||
106 | */ |
||
107 | public function unassign($domain, $ip) |
||
116 | } |
||
117 |