Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
LoadBalancerCreate | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Vultr\VultrPhp\Services\LoadBalancers; |
6 | |
7 | use Vultr\VultrPhp\Util\ModelOptions; |
8 | |
9 | class LoadBalancerCreate extends ModelOptions |
10 | { |
11 | /** |
12 | * @see https://www.vultr.com/api/#operation/create-load-balancer |
13 | */ |
14 | protected string $region; |
15 | protected ?string $balancing_algorithm = null; |
16 | protected ?bool $ssl_redirect = null; |
17 | protected ?bool $proxy_protocol = null; |
18 | protected ?LBHealth $health_check = null; |
19 | protected ?array $forwarding_rules = null; |
20 | protected ?array $firewall_rules = null; |
21 | protected ?StickySession $sticky_session = null; |
22 | protected ?SSL $ssl = null; |
23 | protected ?string $label = null; |
24 | protected ?array $instances = null; |
25 | protected ?string $vpc = null; |
26 | |
27 | public function __construct(string $region) |
28 | { |
29 | $this->region = $region; |
30 | parent::__construct(); |
31 | } |
32 | } |