Repository navigation
Expand file tree
/
Copy pathEventMessage.php
More file actions
183 lines (159 loc) · 3.91 KB
/
Copy pathEventMessage.php
File metadata and controls
183 lines (159 loc) · 3.91 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?php
declare(strict_types=1);
namespace Docker\API\Model;
use Docker\API\Runtime\AdditionalAndPatternProperties;
use Docker\API\Runtime\AdditionalPropertiesInterface;
class EventMessage implements AdditionalPropertiesInterface
{
use AdditionalAndPatternProperties;
/**
* @var array
*/
protected $initialized = [];
public function isInitialized($property): bool
{
return \array_key_exists($property, $this->initialized);
}
/**
* The type of object emitting the event.
*
* @var string|null
*/
protected $type;
/**
* The type of event.
*
* @var string|null
*/
protected $action;
/**
* Actor describes something that generates events, like a container, network,
* or a volume.
*
* @var EventActor|null
*/
protected $actor;
/**
* Scope of the event. Engine events are `local` scope. Cluster (Swarm)
* events are `swarm` scope.
*
* @var string|null
*/
protected $scope;
/**
* Timestamp of event.
*
* @var int|null
*/
protected $time;
/**
* Timestamp of event, with nanosecond accuracy.
*
* @var int|null
*/
protected $timeNano;
/**
* The type of object emitting the event.
*/
public function getType(): ?string
{
return $this->type;
}
/**
* The type of object emitting the event.
*/
public function setType(?string $type): self
{
$this->initialized['type'] = true;
$this->type = $type;
return $this;
}
/**
* The type of event.
*/
public function getAction(): ?string
{
return $this->action;
}
/**
* The type of event.
*/
public function setAction(?string $action): self
{
$this->initialized['action'] = true;
$this->action = $action;
return $this;
}
/**
* Actor describes something that generates events, like a container, network,
* or a volume.
*/
public function getActor(): ?EventActor
{
return $this->actor;
}
/**
* Actor describes something that generates events, like a container, network,
* or a volume.
*/
public function setActor(?EventActor $actor): self
{
$this->initialized['actor'] = true;
$this->actor = $actor;
return $this;
}
/**
* Scope of the event. Engine events are `local` scope. Cluster (Swarm)
* events are `swarm` scope.
*/
public function getScope(): ?string
{
return $this->scope;
}
/**
* Scope of the event. Engine events are `local` scope. Cluster (Swarm)
* events are `swarm` scope.
*/
public function setScope(?string $scope): self
{
$this->initialized['scope'] = true;
$this->scope = $scope;
return $this;
}
/**
* Timestamp of event.
*/
public function getTime(): ?int
{
return $this->time;
}
/**
* Timestamp of event.
*/
public function setTime(?int $time): self
{
$this->initialized['time'] = true;
$this->time = $time;
return $this;
}
/**
* Timestamp of event, with nanosecond accuracy.
*/
public function getTimeNano(): ?int
{
return $this->timeNano;
}
/**
* Timestamp of event, with nanosecond accuracy.
*/
public function setTimeNano(?int $timeNano): self
{
$this->initialized['timeNano'] = true;
$this->timeNano = $timeNano;
return $this;
}
public function definedProperties(): array
{
return ['type' => ['Type', 'getType', 'setType'], 'action' => ['Action', 'getAction', 'setAction'], 'actor' => ['Actor', 'getActor', 'setActor'], 'scope' => ['scope', 'getScope', 'setScope'], 'time' => ['time', 'getTime', 'setTime'], 'timeNano' => ['timeNano', 'getTimeNano', 'setTimeNano']];
}
}