Skip to content

Commit ecfa73b

Browse files
committed
Add recursion parameter for getting networks
1 parent 2935722 commit ecfa73b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
88

99
## Added
1010
- Recursion parameter for getting snapshots
11+
- Recursion parameter for getting networks
1112

1213
## Fixed
1314
- Cant create storage pool when sending empty config

src/Endpoint/Networks.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ protected function getEndpoint()
1616
*
1717
* @return array
1818
*/
19-
public function all()
19+
public function all($recursion = 0)
2020
{
2121
$networks = [];
2222

2323
$config = [
24-
"project"=>$this->client->getProject()
24+
"project"=>$this->client->getProject(),
25+
"recursion"=>$recursion
2526
];
2627

2728
foreach ($this->get($this->getEndpoint(), $config) as $network) {

0 commit comments

Comments
 (0)