File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,10 @@ public function getSubnets(): array
118
118
return [
119
119
'method ' => 'GET ' ,
120
120
'path ' => $ this ->pathPrefix . '/subnets ' ,
121
- 'params ' => [],
121
+ 'params ' => [
122
+ 'name ' => $ this ->params ->queryName (),
123
+ 'tenantId ' => $ this ->params ->queryTenantId ()
124
+ ],
122
125
];
123
126
}
124
127
Original file line number Diff line number Diff line change @@ -99,7 +99,10 @@ public function getRouters(): array
99
99
return [
100
100
'method ' => 'GET ' ,
101
101
'path ' => $ this ->pathPrefix . '/routers ' ,
102
- 'params ' => [],
102
+ 'params ' => [
103
+ 'name ' => $ this ->params ->queryName (),
104
+ 'tenantId ' => $ this ->params ->queryTenantId ()
105
+ ],
103
106
];
104
107
}
105
108
Original file line number Diff line number Diff line change @@ -66,10 +66,12 @@ public function getRouter($id): Router
66
66
}
67
67
68
68
/**
69
+ * @param array $options
70
+ *
69
71
* @return \Generator
70
72
*/
71
- public function listRouters (): \Generator
73
+ public function listRouters (array $ options = [] ): \Generator
72
74
{
73
- return $ this ->router ()->enumerate ($ this ->api ->getRouters ());
75
+ return $ this ->router ()->enumerate ($ this ->api ->getRouters (), $ options );
74
76
}
75
77
}
You can’t perform that action at this time.
0 commit comments