Total Complexity | 7 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | class CDROM extends InitClass |
||
12 | { |
||
13 | use MOID; |
||
|
|||
14 | public function getListCdRom($moid=null){ |
||
16 | } |
||
17 | public function createCdRom($config,$moid=null){ |
||
18 | return ApiResponse::BodyResponse($this->HttpClient->post("vm/{$this->getMoid($moid)}/hardware/cdrom",[ |
||
19 | "json"=>$config |
||
20 | ])); |
||
21 | } |
||
22 | public function getCdRom($cdrom,$moid=null){ |
||
23 | return ApiResponse::BodyResponse($this->HttpClient->get("vm/{$this->getMoid($moid)}/hardware/cdrom/$cdrom")); |
||
24 | } |
||
25 | public function deleteCdRom($cdrom,$moid=null){ |
||
26 | return ApiResponse::BodyResponse($this->HttpClient->delete("vm/{$this->getMoid($moid)}/hardware/cdrom/$cdrom")); |
||
27 | } |
||
28 | public function connectCdRom($cdrom,$moid=null){ |
||
29 | return ApiResponse::BodyResponse($this->HttpClient->post("vm/{$this->getMoid($moid)}/hardware/cdrom/$cdrom/connect")); |
||
30 | } |
||
31 | public function disconnectCdRom($cdrom,$moid=null){ |
||
32 | return ApiResponse::BodyResponse($this->HttpClient->post("vm/{$this->getMoid($moid)}/hardware/cdrom/$cdrom/disconnect")); |
||
33 | } |
||
34 | public function updateCdRom($cdrom,$config,$moid=null){ |
||
37 | ])); |
||
38 | } |
||
39 | |||
40 | } |