-
Notifications
You must be signed in to change notification settings - Fork 154
Expand file tree
/
Copy pathHost.php
More file actions
42 lines (33 loc) · 857 Bytes
/
Copy pathHost.php
File metadata and controls
42 lines (33 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
declare(strict_types=1);
namespace OpenStack\Compute\v2\Models;
use OpenStack\Common\Resource\OperatorResource;
use OpenStack\Common\Resource\Listable;
use OpenStack\Common\Resource\Retrievable;
/**
* Represents a Compute v2 Host.
*
* @property \OpenStack\Compute\v2\Api $api
*/
class Host extends OperatorResource implements Listable, Retrievable
{
/** @var string * */
public $name;
/** @var string * */
public $service;
/** @var string * */
public $zone;
protected $resourceKey = 'host';
protected $resourcesKey = 'hosts';
protected $aliases = [
'host_name' => 'name',
];
/**
* {@inheritdoc}
*/
public function retrieve()
{
$response = $this->execute($this->api->getHost(), $this->getAttrs(['name']));
$this->populateFromResponse($response);
}
}