Skip to content

Commit 2aac008

Browse files
committed
add hypervisor hostname to server model
1 parent 4b45fe7 commit 2aac008

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/Compute/v2/Models/Server.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ class Server extends OperatorResource implements
5151
/** @var string */
5252
public $hostId;
5353

54+
/** @var string */
55+
public $hypervisorHostname;
56+
5457
/** @var Image */
5558
public $image;
5659

@@ -86,13 +89,14 @@ class Server extends OperatorResource implements
8689
protected $markerKey = 'id';
8790

8891
protected $aliases = [
89-
'block_device_mapping_v2' => 'blockDeviceMapping',
90-
'accessIPv4' => 'ipv4',
91-
'accessIPv6' => 'ipv6',
92-
'tenant_id' => 'tenantId',
93-
'user_id' => 'userId',
94-
'security_groups' => 'securityGroups',
95-
'OS-EXT-STS:task_state' => 'taskState',
92+
'block_device_mapping_v2' => 'blockDeviceMapping',
93+
'accessIPv4' => 'ipv4',
94+
'accessIPv6' => 'ipv6',
95+
'tenant_id' => 'tenantId',
96+
'user_id' => 'userId',
97+
'security_groups' => 'securityGroups',
98+
'OS-EXT-STS:task_state' => 'taskState',
99+
'OS-EXT-SRV-ATTR:hypervisor_hostname' => 'hypervisorHostname',
96100
];
97101

98102
/**

0 commit comments

Comments
 (0)