| @@ 17-138 (lines=122) @@ | ||
| 14 | * |
|
| 15 | * @property Api $api |
|
| 16 | */ |
|
| 17 | class LoadbalancerHealthmonitor extends OperatorResource implements Creatable, Retrievable, Updateable, Deletable |
|
| 18 | { |
|
| 19 | /** |
|
| 20 | * @var string |
|
| 21 | */ |
|
| 22 | public $id; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * @var string |
|
| 26 | */ |
|
| 27 | public $tenantId; |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @var string |
|
| 31 | */ |
|
| 32 | public $type; |
|
| 33 | ||
| 34 | /** |
|
| 35 | * @var integer |
|
| 36 | */ |
|
| 37 | public $delay; |
|
| 38 | ||
| 39 | /** |
|
| 40 | * @var integer |
|
| 41 | */ |
|
| 42 | public $timeout; |
|
| 43 | ||
| 44 | /** |
|
| 45 | * @var integer |
|
| 46 | */ |
|
| 47 | public $maxRetries; |
|
| 48 | ||
| 49 | /** |
|
| 50 | * @var string |
|
| 51 | */ |
|
| 52 | public $httpMethod; |
|
| 53 | ||
| 54 | /** |
|
| 55 | * @var string |
|
| 56 | */ |
|
| 57 | public $urlPath; |
|
| 58 | ||
| 59 | /** |
|
| 60 | * @var string |
|
| 61 | */ |
|
| 62 | public $expectedCodes; |
|
| 63 | ||
| 64 | /** |
|
| 65 | * @var boolean |
|
| 66 | */ |
|
| 67 | public $adminStateUp; |
|
| 68 | ||
| 69 | /** |
|
| 70 | * @var string |
|
| 71 | */ |
|
| 72 | public $poolId; |
|
| 73 | ||
| 74 | /** |
|
| 75 | * @var []LoadbalancerPool |
|
| 76 | */ |
|
| 77 | public $pools; |
|
| 78 | ||
| 79 | /** |
|
| 80 | * @var string |
|
| 81 | */ |
|
| 82 | public $operatingStatus; |
|
| 83 | ||
| 84 | /** |
|
| 85 | * @var string |
|
| 86 | */ |
|
| 87 | public $provisioningStatus; |
|
| 88 | ||
| 89 | protected $resourcesKey = 'healthmonitors'; |
|
| 90 | protected $resourceKey = 'healthmonitor'; |
|
| 91 | ||
| 92 | protected $aliases = [ |
|
| 93 | 'tenant_id' => 'tenantId', |
|
| 94 | 'admin_state_up' => 'adminStateUp', |
|
| 95 | 'max_retries' => 'maxRetries', |
|
| 96 | 'http_method' => 'httpMethod', |
|
| 97 | 'url_path' => 'urlPath', |
|
| 98 | 'expected_codes' => 'expectedCodes', |
|
| 99 | 'pool_id' => 'poolId', |
|
| 100 | 'operating_status' => 'operatingStatus', |
|
| 101 | 'provisioning_status' => 'provisioningStatus' |
|
| 102 | ]; |
|
| 103 | ||
| 104 | /** |
|
| 105 | * {@inheritDoc} |
|
| 106 | */ |
|
| 107 | public function create(array $userOptions): Creatable |
|
| 108 | { |
|
| 109 | $response = $this->execute($this->api->postLoadbalancerHealthmonitor(), $userOptions); |
|
| 110 | return $this->populateFromResponse($response); |
|
| 111 | } |
|
| 112 | ||
| 113 | /** |
|
| 114 | * {@inheritDoc} |
|
| 115 | */ |
|
| 116 | public function retrieve() |
|
| 117 | { |
|
| 118 | $response = $this->execute($this->api->getLoadbalancerHealthmonitor(), ['id' => (string)$this->id]); |
|
| 119 | $this->populateFromResponse($response); |
|
| 120 | } |
|
| 121 | ||
| 122 | /** |
|
| 123 | * {@inheritDoc} |
|
| 124 | */ |
|
| 125 | public function update() |
|
| 126 | { |
|
| 127 | $response = $this->executeWithState($this->api->putLoadbalancerHealthmonitor()); |
|
| 128 | $this->populateFromResponse($response); |
|
| 129 | } |
|
| 130 | ||
| 131 | /** |
|
| 132 | * {@inheritDoc} |
|
| 133 | */ |
|
| 134 | public function delete() |
|
| 135 | { |
|
| 136 | $this->executeWithState($this->api->deleteLoadbalancerHealthmonitor()); |
|
| 137 | } |
|
| 138 | } |
|
| 139 | ||
| @@ 17-137 (lines=121) @@ | ||
| 14 | * |
|
| 15 | * @property Api $api |
|
| 16 | */ |
|
| 17 | class LoadbalancerListener extends OperatorResource implements Creatable, Retrievable, Updateable, Deletable |
|
| 18 | { |
|
| 19 | /** |
|
| 20 | * @var string |
|
| 21 | */ |
|
| 22 | public $name; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * @var string |
|
| 26 | */ |
|
| 27 | public $description; |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @var string |
|
| 31 | */ |
|
| 32 | public $id; |
|
| 33 | ||
| 34 | /** |
|
| 35 | * @var string |
|
| 36 | */ |
|
| 37 | public $tenantId; |
|
| 38 | ||
| 39 | /** |
|
| 40 | * @var string |
|
| 41 | */ |
|
| 42 | public $protocol; |
|
| 43 | ||
| 44 | /** |
|
| 45 | * @var integer |
|
| 46 | */ |
|
| 47 | public $protocolPort; |
|
| 48 | ||
| 49 | /** |
|
| 50 | * @var integer |
|
| 51 | */ |
|
| 52 | public $connectionLimit; |
|
| 53 | ||
| 54 | /** |
|
| 55 | * @var string |
|
| 56 | */ |
|
| 57 | public $defaultPoolId; |
|
| 58 | ||
| 59 | /** |
|
| 60 | * @var boolean |
|
| 61 | */ |
|
| 62 | public $adminStateUp; |
|
| 63 | ||
| 64 | /** |
|
| 65 | * @var []Loadbalancer |
|
| 66 | */ |
|
| 67 | public $loadbalancers; |
|
| 68 | ||
| 69 | /** |
|
| 70 | * @var string |
|
| 71 | */ |
|
| 72 | public $loadbalancerId; |
|
| 73 | ||
| 74 | /** |
|
| 75 | * @var string |
|
| 76 | */ |
|
| 77 | public $operatingStatus; |
|
| 78 | ||
| 79 | /** |
|
| 80 | * @var string |
|
| 81 | */ |
|
| 82 | public $provisioningStatus; |
|
| 83 | ||
| 84 | /** |
|
| 85 | * @var []LoadbalancerPool |
|
| 86 | */ |
|
| 87 | public $pools; |
|
| 88 | ||
| 89 | protected $resourcesKey = 'listeners'; |
|
| 90 | protected $resourceKey = 'listener'; |
|
| 91 | ||
| 92 | protected $aliases = [ |
|
| 93 | 'tenant_id' => 'tenantId', |
|
| 94 | 'admin_state_up' => 'adminStateUp', |
|
| 95 | 'protocol_port' => 'protocolPort', |
|
| 96 | 'connection_limit' => 'connectionLimit', |
|
| 97 | 'default_pool_id' => 'defaultPoolId', |
|
| 98 | 'loadbalancer_id' => 'loadbalancerId', |
|
| 99 | 'operating_status' => 'operatingStatus', |
|
| 100 | 'provisioning_status' => 'provisioningStatus' |
|
| 101 | ]; |
|
| 102 | ||
| 103 | /** |
|
| 104 | * {@inheritDoc} |
|
| 105 | */ |
|
| 106 | public function create(array $userOptions): Creatable |
|
| 107 | { |
|
| 108 | $response = $this->execute($this->api->postLoadbalancerListener(), $userOptions); |
|
| 109 | return $this->populateFromResponse($response); |
|
| 110 | } |
|
| 111 | ||
| 112 | /** |
|
| 113 | * {@inheritDoc} |
|
| 114 | */ |
|
| 115 | public function retrieve() |
|
| 116 | { |
|
| 117 | $response = $this->execute($this->api->getLoadbalancerListener(), ['id' => (string)$this->id]); |
|
| 118 | $this->populateFromResponse($response); |
|
| 119 | } |
|
| 120 | ||
| 121 | /** |
|
| 122 | * {@inheritDoc} |
|
| 123 | */ |
|
| 124 | public function update() |
|
| 125 | { |
|
| 126 | $response = $this->executeWithState($this->api->putLoadbalancerListener()); |
|
| 127 | $this->populateFromResponse($response); |
|
| 128 | } |
|
| 129 | ||
| 130 | /** |
|
| 131 | * {@inheritDoc} |
|
| 132 | */ |
|
| 133 | public function delete() |
|
| 134 | { |
|
| 135 | $this->executeWithState($this->api->deleteLoadbalancerListener()); |
|
| 136 | } |
|
| 137 | } |
|
| 138 | ||