コード例 #1
0
ファイル: NetworkService.php プロジェクト: mheydt/scalr
 /**
  * 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);
 }