Skip to content

Commit 82efc90

Browse files
committed
Pruning out non read-only functions
1 parent 729e3b1 commit 82efc90

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

src/Compute/v2/Models/Host.php

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,10 @@
1818
/**
1919
* @property \OpenStack\Compute\v2\Api $api
2020
*/
21-
class Server extends OperatorResource implements
22-
Creatable,
23-
Updateable,
24-
Deletable,
21+
class Host extends OperatorResource implements
2522
Retrievable,
2623
Listable
2724
{
28-
use HasWaiterTrait;
29-
3025
/** @var string */
3126
public $id;
3227

@@ -37,34 +32,6 @@ class Server extends OperatorResource implements
3732
protected $resourcesKey = 'os-hosts';
3833
protected $markerKey = 'id';
3934

40-
/**
41-
* {@inheritDoc}
42-
*
43-
* @param array $userOptions {@see \OpenStack\Compute\v2\Api::postServer}
44-
*/
45-
public function create(array $userOptions): Creatable
46-
{
47-
$response = $this->execute($this->api->postServer(), $userOptions);
48-
return $this->populateFromResponse($response);
49-
}
50-
51-
/**
52-
* {@inheritDoc}
53-
*/
54-
public function update()
55-
{
56-
$response = $this->execute($this->api->putServer(), $this->getAttrs(['id', 'name', 'ipv4', 'ipv6']));
57-
$this->populateFromResponse($response);
58-
}
59-
60-
/**
61-
* {@inheritDoc}
62-
*/
63-
public function delete()
64-
{
65-
$this->execute($this->api->deleteServer(), $this->getAttrs(['id']));
66-
}
67-
6835
/**
6936
* {@inheritDoc}
7037
*/

0 commit comments

Comments
 (0)