From ac0796ad4cf6115b40431c11ebb7fe122083f6f6 Mon Sep 17 00:00:00 2001 From: Jay Pounder Date: Tue, 5 Jul 2022 14:25:24 +0100 Subject: [PATCH 1/2] added resource tier entity map --- src/eCloud/ResourceTierClient.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/eCloud/ResourceTierClient.php b/src/eCloud/ResourceTierClient.php index 7531250f..f7525ad7 100644 --- a/src/eCloud/ResourceTierClient.php +++ b/src/eCloud/ResourceTierClient.php @@ -2,6 +2,7 @@ namespace UKFast\SDK\eCloud; +use UKFast\SDK\eCloud\Entities\AffinityRule; use UKFast\SDK\Entities\ClientEntityInterface; use UKFast\SDK\Traits\PageItems; use UKFast\SDK\eCloud\Entities\ResourceTier; @@ -12,6 +13,11 @@ class ResourceTierClient extends Client implements ClientEntityInterface protected $collectionPath = 'v2/resource-tiers'; + public function getEntityMap() + { + return ResourceTier::$entityMap; + } + public function loadEntity($data) { return new ResourceTier( From bd92f7d840e31a4064be1661829897fada2a4d05 Mon Sep 17 00:00:00 2001 From: Jay Pounder Date: Tue, 5 Jul 2022 14:27:49 +0100 Subject: [PATCH 2/2] removed unneeded --- src/eCloud/ResourceTierClient.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/eCloud/ResourceTierClient.php b/src/eCloud/ResourceTierClient.php index f7525ad7..903f09d1 100644 --- a/src/eCloud/ResourceTierClient.php +++ b/src/eCloud/ResourceTierClient.php @@ -2,7 +2,6 @@ namespace UKFast\SDK\eCloud; -use UKFast\SDK\eCloud\Entities\AffinityRule; use UKFast\SDK\Entities\ClientEntityInterface; use UKFast\SDK\Traits\PageItems; use UKFast\SDK\eCloud\Entities\ResourceTier;