public function describeVolumes(ListDataType $volumeIdList = null, VolumeFilterList $filter = null)
{
$result = null;
$options = array();
if ($volumeIdList !== null) {
$options = array_merge($options, $volumeIdList->getQueryArrayBare('VolumeId'));
}
if ($filter !== null) {
$options = array_merge($options, $filter->getQueryArrayBare('Filter'));
}
$response = $this->client->call(ucfirst(__FUNCTION__), $options);
if ($response->getError() === false) {
//Success
$sxml = simplexml_load_string($response->getRawContent());
$response = null;
$result = new VolumeList();
$result->setEc2($this->ec2);
$result->setRequestId((string) $sxml->requestId);
if (!empty($sxml->volumeSet->item)) {
foreach ($sxml->volumeSet->item as $v) {
$result->append($this->_loadVolumeData($v));
}
}
}
return $result;
}