예제 #1
0
 /**
  * Returns a Collection of Volume objects
  *
  * @api
  * @param boolean $details if TRUE, return all details
  * @param array $filter array of filter key/value pairs
  * @return \OpenCloud\Common\Collection
  */
 public function volumeList($details = true, $filter = array())
 {
     $url = clone $this->getUrl(Resource\Volume::ResourceName());
     if ($details) {
         $url->addPath('detail');
     }
     return $this->collection('OpenCloud\\Volume\\Resource\\Volume', $url);
 }
예제 #2
0
 /**
  * Returns a Collection of Volume objects
  *
  * @param boolean $details if TRUE, return all details
  * @param array   $filter  array of filter key/value pairs
  * @return \OpenCloud\Common\Collection
  */
 public function volumeList($details = true, $filter = array())
 {
     $url = clone $this->getUrl(Resource\Volume::ResourceName());
     if ($details === true) {
         $url->addPath('detail');
     }
     $url->setQuery($filter);
     return $this->resourceList('Volume', $url);
 }