1 | <?php |
||
21 | class VolumeApi extends BaseLinodeApi |
||
22 | { |
||
23 | /** |
||
24 | * Creates a new block storage volume. |
||
25 | * |
||
26 | * @param int $DatacenterID [required] Sets the datacenter where the volume should be provisioned |
||
27 | * @param string $Label [required] A unique name for the volume |
||
28 | * @param int $Size [required] Sets the size of the new volume in GiB |
||
29 | * @param int $LinodeID [optional] The Linode which this volume is attached to |
||
30 | * |
||
31 | * @return array |
||
32 | */ |
||
33 | 1 | public function create($DatacenterID, $Label, $Size, $LinodeID = null) |
|
42 | |||
43 | /** |
||
44 | * Deletes a block storage volume. |
||
45 | * |
||
46 | * @param int $VolumeID [required] The VolumeID to delete |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | 1 | public function delete($VolumeID) |
|
56 | |||
57 | /** |
||
58 | * Returns a list of block storage Volumes. |
||
59 | * |
||
60 | * @param int $VolumeID [optional] Limits the list to the specified Volume |
||
61 | * |
||
62 | * @return array |
||
63 | */ |
||
64 | 1 | public function getList($VolumeID = null) |
|
70 | |||
71 | /** |
||
72 | * Updates a volume's properties. |
||
73 | * |
||
74 | * @param int $VolumeID [required] The volume to modify |
||
75 | * @param string $Label [optional] A unique name for the volume |
||
76 | * @param int $Size [optional] Sets the new size of the new volume in GiB; volumes can only be made larger |
||
77 | * @param int $LinodeID [optional] The Linode to attach the volume to, or 0 to detach |
||
78 | * |
||
79 | * @return array |
||
80 | */ |
||
81 | 1 | public function update($VolumeID, $Label = null, $Size = null, $LinodeID = null) |
|
90 | } |
||
91 |