1 | <?php |
||
8 | class VolumeResource extends Resource |
||
9 | { |
||
10 | /** |
||
11 | * List volumes. |
||
12 | * |
||
13 | * @param array $parameters List of parameters |
||
14 | * @param string $fetch Fetch mode (object or response) |
||
15 | * |
||
16 | * @return \Psr\Http\Message\ResponseInterface |
||
17 | */ |
||
18 | public function findAll($parameters = [], $fetch = self::FETCH_OBJECT) |
||
35 | |||
36 | /** |
||
37 | * Create a volume. |
||
38 | * |
||
39 | * @param mixed $volumeConfig Volume configuration |
||
40 | * @param array $parameters List of parameters |
||
41 | * @param string $fetch Fetch mode (object or response) |
||
42 | * |
||
43 | * @return \Psr\Http\Message\ResponseInterface |
||
44 | */ |
||
45 | public function create($volumeConfig, $parameters = [], $fetch = self::FETCH_OBJECT) |
||
61 | |||
62 | /** |
||
63 | * Instruct the driver to remove the volume. |
||
64 | * |
||
65 | * @param mixed $name Volume name or id |
||
66 | * @param array $parameters List of parameters |
||
67 | * @param string $fetch Fetch mode (object or response) |
||
68 | * |
||
69 | * @return \Psr\Http\Message\ResponseInterface |
||
70 | */ |
||
71 | public function remove($name, $parameters = [], $fetch = self::FETCH_OBJECT) |
||
84 | |||
85 | /** |
||
86 | * Inspect a volume. |
||
87 | * |
||
88 | * @param mixed $name Volume name or id |
||
89 | * @param array $parameters List of parameters |
||
90 | * @param string $fetch Fetch mode (object or response) |
||
91 | * |
||
92 | * @return \Psr\Http\Message\ResponseInterface |
||
93 | */ |
||
94 | public function find($name, $parameters = [], $fetch = self::FETCH_OBJECT) |
||
110 | } |
||
111 |