| 1 | <?php declare(strict_types=1); |
||
| 15 | class LoadBalancerStatus extends OperatorResource implements Retrievable |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | public $name; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | public $id; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | public $loadbalancerId; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | public $operatingStatus; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var string |
||
| 39 | */ |
||
| 40 | public $provisioningStatus; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @var LoadBalancerListener[] |
||
| 44 | */ |
||
| 45 | public $listeners; |
||
| 46 | |||
| 47 | protected $resourceKey = 'statuses'; |
||
| 48 | |||
| 49 | protected $aliases = [ |
||
| 50 | 'loadbalancer_id' => 'loadbalancerId', |
||
| 51 | 'operating_status' => 'operatingStatus', |
||
| 52 | 'provisioning_status' => 'provisioningStatus', |
||
| 53 | ]; |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @inheritdoc |
||
| 57 | */ |
||
| 58 | protected function getAliases(): array |
||
| 59 | { |
||
| 60 | return parent::getAliases() + [ |
||
| 61 | 'listeners' => new Alias('listeners', LoadBalancerListener::class, true) |
||
| 62 | ]; |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * {@inheritDoc} |
||
| 67 | */ |
||
| 68 | public function retrieve() |
||
| 74 | } |
||
| 75 |