1 | <?php declare (strict_types = 1); |
||
17 | class Keypair extends OperatorResource implements Listable, Retrievable, Deletable, Creatable |
||
|
|||
18 | { |
||
19 | /** @var string */ |
||
20 | public $fingerprint; |
||
21 | |||
22 | /** @var string */ |
||
23 | public $name; |
||
24 | |||
25 | /** @var string */ |
||
26 | public $publicKey; |
||
27 | |||
28 | /** @var boolean */ |
||
29 | public $deleted; |
||
30 | |||
31 | /** @var string */ |
||
32 | public $userId; |
||
33 | |||
34 | /** @var \DateTimeImmutable */ |
||
35 | public $createdAt; |
||
36 | |||
37 | protected $aliases = [ |
||
38 | 'public_key' => 'publicKey', |
||
39 | 'user_id' => 'userId', |
||
40 | 'created_at' => 'createdAt', |
||
41 | ]; |
||
42 | |||
43 | protected $resourceKey = 'keypair'; |
||
44 | protected $resourcesKey = 'keypairs'; |
||
45 | |||
46 | /** |
||
47 | * {@inheritDoc} |
||
48 | */ |
||
49 | public function retrieve() |
||
54 | |||
55 | public function create(array $userOptions): Creatable |
||
60 | |||
61 | /** |
||
62 | * {@inheritDoc} |
||
63 | */ |
||
64 | public function populateFromArray(array $array): self |
||
68 | |||
69 | /** |
||
70 | * {@inheritDoc} |
||
71 | */ |
||
72 | public function delete() |
||
76 | } |
||
77 |