Repository navigation
Expand file tree
/
Copy pathEndpointSettings.php
More file actions
408 lines (360 loc) · 10.4 KB
/
Copy pathEndpointSettings.php
File metadata and controls
408 lines (360 loc) · 10.4 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
<?php
declare(strict_types=1);
namespace Docker\API\Model;
use Docker\API\Runtime\AdditionalAndPatternProperties;
use Docker\API\Runtime\AdditionalPropertiesInterface;
class EndpointSettings implements AdditionalPropertiesInterface
{
use AdditionalAndPatternProperties;
/**
* @var array
*/
protected $initialized = [];
public function isInitialized($property): bool
{
return \array_key_exists($property, $this->initialized);
}
/**
* EndpointIPAMConfig represents an endpoint's IPAM configuration.
*
* @var EndpointIPAMConfig|null
*/
protected $iPAMConfig;
/**
* @var list<string>|null
*/
protected $links;
/**
* MAC address for the endpoint on this network. The network driver might ignore this parameter.
*
* @var string|null
*/
protected $macAddress;
/**
* @var list<string>|null
*/
protected $aliases;
/**
* Unique ID of the network.
*
* @var string|null
*/
protected $networkID;
/**
* Unique ID for the service endpoint in a Sandbox.
*
* @var string|null
*/
protected $endpointID;
/**
* Gateway address for this network.
*
* @var string|null
*/
protected $gateway;
/**
* IPv4 address.
*
* @var string|null
*/
protected $iPAddress;
/**
* Mask length of the IPv4 address.
*
* @var int|null
*/
protected $iPPrefixLen;
/**
* IPv6 gateway address.
*
* @var string|null
*/
protected $iPv6Gateway;
/**
* Global IPv6 address.
*
* @var string|null
*/
protected $globalIPv6Address;
/**
* Mask length of the global IPv6 address.
*
* @var int|null
*/
protected $globalIPv6PrefixLen;
/**
* DriverOpts is a mapping of driver options and values. These options
* are passed directly to the driver and are driver specific.
*
* @var array<string, string>|null
*/
protected $driverOpts;
/**
* List of all DNS names an endpoint has on a specific network. This
* list is based on the container name, network aliases, container short
* ID, and hostname.
*
* These DNS names are non-fully qualified but can contain several dots.
* You can get fully qualified DNS names by appending `.<network-name>`.
* For instance, if container name is `my.ctr` and the network is named
* `testnet`, `DNSNames` will contain `my.ctr` and the FQDN will be
* `my.ctr.testnet`.
*
* @var list<string>|null
*/
protected $dNSNames;
/**
* EndpointIPAMConfig represents an endpoint's IPAM configuration.
*/
public function getIPAMConfig(): ?EndpointIPAMConfig
{
return $this->iPAMConfig;
}
/**
* EndpointIPAMConfig represents an endpoint's IPAM configuration.
*/
public function setIPAMConfig(?EndpointIPAMConfig $iPAMConfig): self
{
$this->initialized['iPAMConfig'] = true;
$this->iPAMConfig = $iPAMConfig;
return $this;
}
/**
* @return list<string>|null
*/
public function getLinks(): ?array
{
return $this->links;
}
/**
* @param list<string>|null $links
*/
public function setLinks(?array $links): self
{
$this->initialized['links'] = true;
$this->links = $links;
return $this;
}
/**
* MAC address for the endpoint on this network. The network driver might ignore this parameter.
*/
public function getMacAddress(): ?string
{
return $this->macAddress;
}
/**
* MAC address for the endpoint on this network. The network driver might ignore this parameter.
*/
public function setMacAddress(?string $macAddress): self
{
$this->initialized['macAddress'] = true;
$this->macAddress = $macAddress;
return $this;
}
/**
* @return list<string>|null
*/
public function getAliases(): ?array
{
return $this->aliases;
}
/**
* @param list<string>|null $aliases
*/
public function setAliases(?array $aliases): self
{
$this->initialized['aliases'] = true;
$this->aliases = $aliases;
return $this;
}
/**
* Unique ID of the network.
*/
public function getNetworkID(): ?string
{
return $this->networkID;
}
/**
* Unique ID of the network.
*/
public function setNetworkID(?string $networkID): self
{
$this->initialized['networkID'] = true;
$this->networkID = $networkID;
return $this;
}
/**
* Unique ID for the service endpoint in a Sandbox.
*/
public function getEndpointID(): ?string
{
return $this->endpointID;
}
/**
* Unique ID for the service endpoint in a Sandbox.
*/
public function setEndpointID(?string $endpointID): self
{
$this->initialized['endpointID'] = true;
$this->endpointID = $endpointID;
return $this;
}
/**
* Gateway address for this network.
*/
public function getGateway(): ?string
{
return $this->gateway;
}
/**
* Gateway address for this network.
*/
public function setGateway(?string $gateway): self
{
$this->initialized['gateway'] = true;
$this->gateway = $gateway;
return $this;
}
/**
* IPv4 address.
*/
public function getIPAddress(): ?string
{
return $this->iPAddress;
}
/**
* IPv4 address.
*/
public function setIPAddress(?string $iPAddress): self
{
$this->initialized['iPAddress'] = true;
$this->iPAddress = $iPAddress;
return $this;
}
/**
* Mask length of the IPv4 address.
*/
public function getIPPrefixLen(): ?int
{
return $this->iPPrefixLen;
}
/**
* Mask length of the IPv4 address.
*/
public function setIPPrefixLen(?int $iPPrefixLen): self
{
$this->initialized['iPPrefixLen'] = true;
$this->iPPrefixLen = $iPPrefixLen;
return $this;
}
/**
* IPv6 gateway address.
*/
public function getIPv6Gateway(): ?string
{
return $this->iPv6Gateway;
}
/**
* IPv6 gateway address.
*/
public function setIPv6Gateway(?string $iPv6Gateway): self
{
$this->initialized['iPv6Gateway'] = true;
$this->iPv6Gateway = $iPv6Gateway;
return $this;
}
/**
* Global IPv6 address.
*/
public function getGlobalIPv6Address(): ?string
{
return $this->globalIPv6Address;
}
/**
* Global IPv6 address.
*/
public function setGlobalIPv6Address(?string $globalIPv6Address): self
{
$this->initialized['globalIPv6Address'] = true;
$this->globalIPv6Address = $globalIPv6Address;
return $this;
}
/**
* Mask length of the global IPv6 address.
*/
public function getGlobalIPv6PrefixLen(): ?int
{
return $this->globalIPv6PrefixLen;
}
/**
* Mask length of the global IPv6 address.
*/
public function setGlobalIPv6PrefixLen(?int $globalIPv6PrefixLen): self
{
$this->initialized['globalIPv6PrefixLen'] = true;
$this->globalIPv6PrefixLen = $globalIPv6PrefixLen;
return $this;
}
/**
* DriverOpts is a mapping of driver options and values. These options
* are passed directly to the driver and are driver specific.
*
* @return array<string, string>|null
*/
public function getDriverOpts(): ?iterable
{
return $this->driverOpts;
}
/**
* DriverOpts is a mapping of driver options and values. These options
* are passed directly to the driver and are driver specific.
*
* @param array<string, string>|null $driverOpts
*/
public function setDriverOpts(?iterable $driverOpts): self
{
$this->initialized['driverOpts'] = true;
$this->driverOpts = $driverOpts;
return $this;
}
/**
* List of all DNS names an endpoint has on a specific network. This
* list is based on the container name, network aliases, container short
* ID, and hostname.
*
* These DNS names are non-fully qualified but can contain several dots.
* You can get fully qualified DNS names by appending `.<network-name>`.
* For instance, if container name is `my.ctr` and the network is named
* `testnet`, `DNSNames` will contain `my.ctr` and the FQDN will be
* `my.ctr.testnet`.
*
* @return list<string>|null
*/
public function getDNSNames(): ?array
{
return $this->dNSNames;
}
/**
* List of all DNS names an endpoint has on a specific network. This
* list is based on the container name, network aliases, container short
* ID, and hostname.
*
* These DNS names are non-fully qualified but can contain several dots.
* You can get fully qualified DNS names by appending `.<network-name>`.
* For instance, if container name is `my.ctr` and the network is named
* `testnet`, `DNSNames` will contain `my.ctr` and the FQDN will be
* `my.ctr.testnet`.
*
* @param list<string>|null $dNSNames
*/
public function setDNSNames(?array $dNSNames): self
{
$this->initialized['dNSNames'] = true;
$this->dNSNames = $dNSNames;
return $this;
}
public function definedProperties(): array
{
return ['iPAMConfig' => ['IPAMConfig', 'getIPAMConfig', 'setIPAMConfig'], 'links' => ['Links', 'getLinks', 'setLinks'], 'macAddress' => ['MacAddress', 'getMacAddress', 'setMacAddress'], 'aliases' => ['Aliases', 'getAliases', 'setAliases'], 'networkID' => ['NetworkID', 'getNetworkID', 'setNetworkID'], 'endpointID' => ['EndpointID', 'getEndpointID', 'setEndpointID'], 'gateway' => ['Gateway', 'getGateway', 'setGateway'], 'iPAddress' => ['IPAddress', 'getIPAddress', 'setIPAddress'], 'iPPrefixLen' => ['IPPrefixLen', 'getIPPrefixLen', 'setIPPrefixLen'], 'iPv6Gateway' => ['IPv6Gateway', 'getIPv6Gateway', 'setIPv6Gateway'], 'globalIPv6Address' => ['GlobalIPv6Address', 'getGlobalIPv6Address', 'setGlobalIPv6Address'], 'globalIPv6PrefixLen' => ['GlobalIPv6PrefixLen', 'getGlobalIPv6PrefixLen', 'setGlobalIPv6PrefixLen'], 'driverOpts' => ['DriverOpts', 'getDriverOpts', 'setDriverOpts'], 'dNSNames' => ['DNSNames', 'getDNSNames', 'setDNSNames']];
}
}