forked from beluga-php/docker-php-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIPAM.php
More file actions
113 lines (100 loc) · 2.42 KB
/
Copy pathIPAM.php
File metadata and controls
113 lines (100 loc) · 2.42 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
<?php
declare(strict_types=1);
namespace Docker\API\Model;
class IPAM extends \ArrayObject
{
/**
* @var array
*/
protected $initialized = [];
public function isInitialized($property): bool
{
return \array_key_exists($property, $this->initialized);
}
/**
* Name of the IPAM driver to use.
*
* @var string|null
*/
protected $driver = 'default';
/**
* List of IPAM configuration options, specified as a map:
*
* ```
* {"Subnet": <CIDR>, "IPRange": <CIDR>, "Gateway": <IP address>, "AuxAddress": <device_name:IP address>}
* ```
*
* @var list<IPAMConfig>|null
*/
protected $config;
/**
* Driver-specific options, specified as a map.
*
* @var array<string, string>|null
*/
protected $options;
/**
* Name of the IPAM driver to use.
*/
public function getDriver(): ?string
{
return $this->driver;
}
/**
* Name of the IPAM driver to use.
*/
public function setDriver(?string $driver): self
{
$this->initialized['driver'] = true;
$this->driver = $driver;
return $this;
}
/**
* List of IPAM configuration options, specified as a map:
*
* ```
* {"Subnet": <CIDR>, "IPRange": <CIDR>, "Gateway": <IP address>, "AuxAddress": <device_name:IP address>}
* ```
*
* @return list<IPAMConfig>|null
*/
public function getConfig(): ?array
{
return $this->config;
}
/**
* List of IPAM configuration options, specified as a map:
*
* ```
* {"Subnet": <CIDR>, "IPRange": <CIDR>, "Gateway": <IP address>, "AuxAddress": <device_name:IP address>}
* ```
*
* @param list<IPAMConfig>|null $config
*/
public function setConfig(?array $config): self
{
$this->initialized['config'] = true;
$this->config = $config;
return $this;
}
/**
* Driver-specific options, specified as a map.
*
* @return array<string, string>|null
*/
public function getOptions(): ?iterable
{
return $this->options;
}
/**
* Driver-specific options, specified as a map.
*
* @param array<string, string>|null $options
*/
public function setOptions(?iterable $options): self
{
$this->initialized['options'] = true;
$this->options = $options;
return $this;
}
}