/** * ListSubnets action (GET /subnets[/subnet-id]) * * Lists all subnets that are accessible to the tenant who submits the * request. * * @param string $subnetId optional The ID of the subnet to show detailed info * @param ListSubnetsFilter|array $filter optional The filter. * @return DefaultPaginationList|object Returns the list of the subnets or one subnet * @throws RestClientException */ public function listSubnets($subnetId = null, $filter = null) { if ($filter !== null && !$filter instanceof ListSubnetsFilter) { $filter = ListSubnetsFilter::initArray($filter); } return $this->getApiHandler()->listSubnets($subnetId, $filter); }