Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/Compute/v2/Models/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Server extends OperatorResource implements Creatable, Updateable, Deletabl
/** @var string */
public $hostId;

/** @var string */
/** @var string The hypervisor host name provided by the Nova virt driver */
public $hypervisorHostname;

/** @var Image */
Expand Down Expand Up @@ -95,6 +95,12 @@ class Server extends OperatorResource implements Creatable, Updateable, Deletabl
/** @var string */
public $keyName;

/** @var string The hostname set on the instance when it is booted. New in micro version 2.3 */
public $hostname;

/** @var string The root device name for the instance. New in micro version 2.3 */
public $rootDeviceName;

protected $resourceKey = 'server';
protected $resourcesKey = 'servers';
protected $markerKey = 'id';
Expand All @@ -111,6 +117,8 @@ class Server extends OperatorResource implements Creatable, Updateable, Deletabl
'OS-EXT-STS:power_state' => 'powerState',
'OS-EXT-STS:vm_state' => 'vmState',
'OS-EXT-SRV-ATTR:hypervisor_hostname' => 'hypervisorHostname',
'OS-EXT-SRV-ATTR:hostname' => 'hostname',
'OS-EXT-SRV-ATTR:root_device_name' => 'rootDeviceName',
];

/**
Expand Down