1 | <?php |
||
21 | class FloatingIp extends AbstractApi |
||
22 | { |
||
23 | /** |
||
24 | * @return FloatingIpEntity[] |
||
25 | */ |
||
26 | public function getAll() |
||
40 | |||
41 | /** |
||
42 | * @param int $id |
||
43 | * |
||
44 | * @return FloatingIpEntity |
||
45 | */ |
||
46 | public function getById($id) |
||
54 | |||
55 | /** |
||
56 | * @param int $dropletId |
||
57 | * |
||
58 | * @throws HttpException |
||
59 | * |
||
60 | * @return FloatingIpEntity |
||
61 | */ |
||
62 | public function createAssigned($dropletId) |
||
70 | |||
71 | /** |
||
72 | * @param string $regionSlug |
||
73 | * |
||
74 | * @throws HttpException |
||
75 | * |
||
76 | * @return FloatingIpEntity |
||
77 | */ |
||
78 | public function createReserved($regionSlug) |
||
86 | |||
87 | /** |
||
88 | * @param int $id |
||
89 | * |
||
90 | * @throws HttpException |
||
91 | */ |
||
92 | public function delete($id) |
||
96 | |||
97 | /** |
||
98 | * @param int $id |
||
99 | * |
||
100 | * @return ActionEntity[] |
||
101 | */ |
||
102 | public function getActions($id) |
||
114 | |||
115 | /** |
||
116 | * @param int $id |
||
117 | * @param int $actionId |
||
118 | * |
||
119 | * @return ActionEntity |
||
120 | */ |
||
121 | public function getActionById($id, $actionId) |
||
129 | |||
130 | /** |
||
131 | * @param int $id |
||
132 | * @param int $dropletId |
||
133 | * |
||
134 | * @throws HttpException |
||
135 | * |
||
136 | * @return ActionEntity |
||
137 | */ |
||
138 | public function assign($id, $dropletId) |
||
142 | |||
143 | /** |
||
144 | * @param int $id |
||
145 | * |
||
146 | * @throws HttpException |
||
147 | * |
||
148 | * @return ActionEntity |
||
149 | */ |
||
150 | public function unassign($id) |
||
154 | |||
155 | /** |
||
156 | * @param int $id |
||
157 | * @param array $options |
||
158 | * |
||
159 | * @throws HttpException |
||
160 | * |
||
161 | * @return ActionEntity |
||
162 | */ |
||
163 | private function executeAction($id, array $options) |
||
171 | } |
||
172 |