1 | <?php |
||
2 | |||
3 | //---------------------------------------------------------------------- |
||
4 | // |
||
5 | // Copyright (C) 2015-2017 Artem Rodygin |
||
6 | // |
||
7 | // This file is part of Linode API Client Library for PHP. |
||
8 | // |
||
9 | // You should have received a copy of the MIT License along with |
||
10 | // the library. If not, see <http://opensource.org/licenses/MIT>. |
||
11 | // |
||
12 | //---------------------------------------------------------------------- |
||
13 | |||
14 | namespace Linode; |
||
15 | |||
16 | /** |
||
17 | * This class is autogenerated. |
||
18 | * |
||
19 | * @version Linode API v3.3 |
||
20 | */ |
||
21 | class ImageApi extends BaseLinodeApi |
||
22 | { |
||
23 | /** |
||
24 | * Deletes a gold-master image. |
||
25 | * |
||
26 | * @param int $ImageID [required] The ID of the gold-master image to delete |
||
27 | * |
||
28 | * @return array |
||
29 | */ |
||
30 | 1 | public function delete($ImageID) |
|
31 | { |
||
32 | 1 | return $this->call('image.delete', [ |
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
![]() |
|||
33 | 1 | 'ImageID' => $ImageID, |
|
34 | ]); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Lists available gold-master images. |
||
39 | * |
||
40 | * @param int $ImageID [optional] Request information for a specific gold-master image |
||
41 | * @param int $pending [optional] Show images currently being created. |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | 1 | public function getList($ImageID = null, $pending = null) |
|
46 | { |
||
47 | 1 | return $this->call('image.list', [ |
|
0 ignored issues
–
show
|
|||
48 | 1 | 'ImageID' => $ImageID, |
|
49 | 1 | 'pending' => $pending, |
|
50 | ]); |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * Update an Image record. |
||
55 | * |
||
56 | * @param int $ImageID [required] The ID of the Image to modify. |
||
57 | * @param string $label [optional] The label of the Image. |
||
58 | * @param string $description [optional] An optional description of the Image. |
||
59 | * |
||
60 | * @return array |
||
61 | */ |
||
62 | 1 | public function update($ImageID, $label = null, $description = null) |
|
63 | { |
||
64 | 1 | return $this->call('image.update', [ |
|
0 ignored issues
–
show
|
|||
65 | 1 | 'ImageID' => $ImageID, |
|
66 | 1 | 'label' => $label, |
|
67 | 1 | 'description' => $description, |
|
68 | ]); |
||
69 | } |
||
70 | } |
||
71 |