|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace AcquiaCloudApi\Response; |
|
4
|
|
|
|
|
5
|
|
|
class EnvironmentResponse |
|
6
|
|
|
{ |
|
7
|
|
|
public string $uuid; |
|
8
|
|
|
|
|
9
|
|
|
public string $label; |
|
10
|
|
|
|
|
11
|
|
|
public string $name; |
|
12
|
|
|
|
|
13
|
|
|
public object $application; |
|
14
|
|
|
|
|
15
|
|
|
/** |
|
16
|
|
|
* @var array<string> $domains |
|
17
|
|
|
*/ |
|
18
|
|
|
public array $domains; |
|
19
|
|
|
|
|
20
|
|
|
public string $active_domain; |
|
21
|
|
|
|
|
22
|
|
|
public string $default_domain; |
|
23
|
|
|
|
|
24
|
|
|
public ?string $image_url; |
|
25
|
|
|
|
|
26
|
|
|
public ?string $sshUrl; |
|
27
|
|
|
|
|
28
|
|
|
/** |
|
29
|
|
|
* @var array<string> $ips |
|
30
|
|
|
*/ |
|
31
|
|
|
public array $ips; |
|
32
|
|
|
|
|
33
|
|
|
public ?string $region; |
|
34
|
|
|
|
|
35
|
|
|
public string $status; |
|
36
|
|
|
|
|
37
|
|
|
public string $type; |
|
38
|
|
|
|
|
39
|
|
|
public object $vcs; |
|
40
|
|
|
|
|
41
|
|
|
public object $flags; |
|
42
|
|
|
|
|
43
|
|
|
public ?object $configuration; |
|
44
|
|
|
|
|
45
|
|
|
public object $links; |
|
46
|
|
|
|
|
47
|
|
|
public string $platform; |
|
48
|
|
|
|
|
49
|
|
|
public string $balancer; |
|
50
|
|
|
|
|
51
|
|
|
public ?object $artifact; |
|
52
|
|
|
|
|
53
|
|
|
public ?object $gardener; |
|
54
|
|
|
|
|
55
|
|
|
public function __construct(object $environment) |
|
56
|
|
|
{ |
|
57
|
|
|
$this->uuid = $environment->id; |
|
58
|
|
|
$this->label = $environment->label; |
|
59
|
|
|
$this->name = $environment->name; |
|
60
|
|
|
$this->application = $environment->application; |
|
61
|
|
|
$this->domains = $environment->domains; |
|
62
|
|
|
$this->active_domain = $environment->active_domain; |
|
63
|
|
|
$this->default_domain = $environment->default_domain; |
|
64
|
|
|
$this->image_url = $environment->image_url; |
|
65
|
|
|
if (property_exists($environment, 'ssh_url')) { |
|
66
|
|
|
$this->sshUrl = $environment->ssh_url; |
|
67
|
|
|
} |
|
68
|
|
|
$this->ips = $environment->ips; |
|
69
|
|
|
$this->region = $environment->region; |
|
70
|
|
|
$this->balancer = $environment->balancer; |
|
71
|
|
|
$this->platform = $environment->platform; |
|
72
|
|
|
$this->status = $environment->status; |
|
73
|
|
|
$this->type = $environment->type; |
|
74
|
|
|
$this->vcs = $environment->vcs; |
|
75
|
|
|
$this->configuration = $environment->configuration; |
|
76
|
|
|
$this->flags = $environment->flags; |
|
77
|
|
|
$this->artifact = $environment->artifact; |
|
78
|
|
|
$this->links = $environment->_links; |
|
79
|
|
|
if (property_exists($environment, 'gardener')) { |
|
80
|
|
|
$this->gardener = $environment->gardener; |
|
81
|
|
|
} |
|
82
|
|
|
} |
|
83
|
|
|
} |
|
84
|
|
|
|