-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeploymentOverview.php
More file actions
116 lines (101 loc) · 2.49 KB
/
Copy pathDeploymentOverview.php
File metadata and controls
116 lines (101 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
namespace AsyncAws\CodeDeploy\ValueObject;
/**
* Information about the deployment status of the instances in the deployment.
*/
final class DeploymentOverview
{
/**
* The number of instances in the deployment in a pending state.
*
* @var int|null
*/
private $pending;
/**
* The number of instances in which the deployment is in progress.
*
* @var int|null
*/
private $inProgress;
/**
* The number of instances in the deployment to which revisions have been successfully deployed.
*
* @var int|null
*/
private $succeeded;
/**
* The number of instances in the deployment in a failed state.
*
* @var int|null
*/
private $failed;
/**
* The number of instances in the deployment in a skipped state.
*
* @var int|null
*/
private $skipped;
/**
* The number of instances in a replacement environment ready to receive traffic in a blue/green deployment.
*
* @var int|null
*/
private $ready;
/**
* @param array{
* Pending?: int|null,
* InProgress?: int|null,
* Succeeded?: int|null,
* Failed?: int|null,
* Skipped?: int|null,
* Ready?: int|null,
* } $input
*/
public function __construct(array $input)
{
$this->pending = $input['Pending'] ?? null;
$this->inProgress = $input['InProgress'] ?? null;
$this->succeeded = $input['Succeeded'] ?? null;
$this->failed = $input['Failed'] ?? null;
$this->skipped = $input['Skipped'] ?? null;
$this->ready = $input['Ready'] ?? null;
}
/**
* @param array{
* Pending?: int|null,
* InProgress?: int|null,
* Succeeded?: int|null,
* Failed?: int|null,
* Skipped?: int|null,
* Ready?: int|null,
* }|DeploymentOverview $input
*/
public static function create($input): self
{
return $input instanceof self ? $input : new self($input);
}
public function getFailed(): ?int
{
return $this->failed;
}
public function getInProgress(): ?int
{
return $this->inProgress;
}
public function getPending(): ?int
{
return $this->pending;
}
public function getReady(): ?int
{
return $this->ready;
}
public function getSkipped(): ?int
{
return $this->skipped;
}
public function getSucceeded(): ?int
{
return $this->succeeded;
}
}