Skip to content

Commit

Permalink
surfaces default resource tier
Browse files Browse the repository at this point in the history
  • Loading branch information
ecloud-jay committed Jul 4, 2022
1 parent 1879bab commit c7419e9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/eCloud/AvailabilityZoneClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ public function loadEntity($data)

public function getEntityMap()
{
return [
'id' => 'id',
'name' => 'name',
'code' => 'code',
'datacentre_site_id' => 'datacentreSiteId'
];
return AvailabilityZone::$entityMap;
}

public function getProducts($id, $filters = [])
Expand Down
17 changes: 17 additions & 0 deletions src/eCloud/Entities/AvailabilityZone.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,24 @@

use UKFast\SDK\Entity;

/**
* @property int $id
* @property string $name
* @property string $code
* @property string $datacentreSiteId
* @property string $resourceTierId
* @property string $createdAt
* @property string $updatedAt
*/
class AvailabilityZone extends Entity
{
protected $dates = ['createdAt', 'updatedAt'];

public static $entityMap = [
'id' => 'id',
'name' => 'name',
'code' => 'code',
'datacentre_site_id' => 'datacentreSiteId',
'resource_tier_id' => 'resourceTierId',
];
}

0 comments on commit c7419e9

Please sign in to comment.