diff --git a/src/eCloud/RegionClient.php b/src/eCloud/RegionClient.php index 9c0b969c..0531ec17 100644 --- a/src/eCloud/RegionClient.php +++ b/src/eCloud/RegionClient.php @@ -2,6 +2,7 @@ namespace UKFast\SDK\eCloud; +use UKFast\SDK\eCloud\Entities\AvailabilityZone; use UKFast\SDK\eCloud\Entities\Product; use UKFast\SDK\Entities\ClientEntityInterface; use UKFast\SDK\Traits\PageItems; @@ -34,4 +35,11 @@ public function getProducts($id, $filters = []) return new Product($this->apiToFriendly($data, Product::$entityMap)); }, $filters); } + + public function getAvailabilityZones($id, $filters = []) + { + return $this->getChildResources($id, 'availability-zones', function ($data) { + return new AvailabilityZone($this->apiToFriendly($data, AvailabilityZone::$entityMap)); + }, $filters); + } }