File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 9
9
* @property string $vpcId
10
10
* @property string $availabilityZoneId
11
11
* @property string $ipAddress
12
+ * @property string $rdnsHostname
12
13
* @property string $resourceId
13
14
* @property string $createdAt
14
15
* @property string $updatedAt
15
16
*/
16
17
class FloatingIp extends Entity
17
18
{
18
19
protected $ dates = ['createdAt ' , 'updatedAt ' ];
20
+
21
+ public static $ entityMap = [
22
+ 'id ' => 'id ' ,
23
+ 'vpc_id ' => 'vpcId ' ,
24
+ 'availability_zone_id ' => 'availabilityZoneId ' ,
25
+ 'ip_address ' => 'ipAddress ' ,
26
+ 'rdns_hostname ' => 'rdnsHostname ' ,
27
+ 'resource_id ' => 'resourceId ' ,
28
+ 'created_at ' => 'createdAt ' ,
29
+ 'updated_at ' => 'updatedAt ' ,
30
+ ];
19
31
}
Original file line number Diff line number Diff line change @@ -14,15 +14,7 @@ class FloatingIpClient extends Client implements ClientEntityInterface
14
14
15
15
public function getEntityMap ()
16
16
{
17
- return [
18
- 'id ' => 'id ' ,
19
- 'vpc_id ' => 'vpcId ' ,
20
- 'availability_zone_id ' => 'availabilityZoneId ' ,
21
- 'ip_address ' => 'ipAddress ' ,
22
- 'resource_id ' => 'resourceId ' ,
23
- 'created_at ' => 'createdAt ' ,
24
- 'updated_at ' => 'updatedAt ' ,
25
- ];
17
+ return FloatingIp::$ entityMap ;
26
18
}
27
19
28
20
public function loadEntity ($ data )
You can’t perform that action at this time.
0 commit comments