Skip to content

Commit 961e1d4

Browse files
dontubjoelwurtz
authored andcommitted
Add missing properties to HostConfig (docker-php#250)
* Add missing properties to HostConfig - Properties added: Tmpfs, MemoryReservation, KernelMemory, and CpuQuota * Update generated HostConfig
1 parent cd82984 commit 961e1d4

3 files changed

Lines changed: 460 additions & 305 deletions

File tree

docker-swagger.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@
165165
"type": "string"
166166
}
167167
},
168+
"Tmpfs": {
169+
"type": ["object", "null"],
170+
"additionalProperties": {
171+
"type": "string"
172+
}
173+
},
168174
"Links": {
169175
"type": ["array", "null"],
170176
"items": {
@@ -185,12 +191,21 @@
185191
"type": "integer",
186192
"default": 0
187193
},
194+
"MemoryReservation": {
195+
"type": "integer"
196+
},
197+
"KernelMemory": {
198+
"type": "integer"
199+
},
188200
"CpuShares": {
189201
"type": "integer"
190202
},
191203
"CpuPeriod": {
192204
"type": "integer"
193205
},
206+
"CpuQuota": {
207+
"type": "integer"
208+
},
194209
"CpusetCpus": {
195210
"type": "string"
196211
},

generated/Model/HostConfig.php

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ class HostConfig
88
* @var string[]|null
99
*/
1010
protected $binds;
11+
/**
12+
* @var string[]|null
13+
*/
14+
protected $tmpfs;
1115
/**
1216
* @var string[]|null
1317
*/
@@ -24,6 +28,14 @@ class HostConfig
2428
* @var int
2529
*/
2630
protected $memorySwap;
31+
/**
32+
* @var int
33+
*/
34+
protected $memoryReservation;
35+
/**
36+
* @var int
37+
*/
38+
protected $kernelMemory;
2739
/**
2840
* @var int
2941
*/
@@ -32,6 +44,10 @@ class HostConfig
3244
* @var int
3345
*/
3446
protected $cpuPeriod;
47+
/**
48+
* @var int
49+
*/
50+
protected $cpuQuota;
3551
/**
3652
* @var string
3753
*/
@@ -205,6 +221,26 @@ public function setBinds($binds = null)
205221
return $this;
206222
}
207223

224+
/**
225+
* @return string[]|null
226+
*/
227+
public function getTmpfs()
228+
{
229+
return $this->tmpfs;
230+
}
231+
232+
/**
233+
* @param string[]|null $tmpfs
234+
*
235+
* @return self
236+
*/
237+
public function setTmpfs($tmpfs = null)
238+
{
239+
$this->tmpfs = $tmpfs;
240+
241+
return $this;
242+
}
243+
208244
/**
209245
* @return string[]|null
210246
*/
@@ -285,6 +321,46 @@ public function setMemorySwap($memorySwap = null)
285321
return $this;
286322
}
287323

324+
/**
325+
* @return int
326+
*/
327+
public function getMemoryReservation()
328+
{
329+
return $this->memoryReservation;
330+
}
331+
332+
/**
333+
* @param int $memoryReservation
334+
*
335+
* @return self
336+
*/
337+
public function setMemoryReservation($memoryReservation = null)
338+
{
339+
$this->memoryReservation = $memoryReservation;
340+
341+
return $this;
342+
}
343+
344+
/**
345+
* @return int
346+
*/
347+
public function getKernelMemory()
348+
{
349+
return $this->kernelMemory;
350+
}
351+
352+
/**
353+
* @param int $kernelMemory
354+
*
355+
* @return self
356+
*/
357+
public function setKernelMemory($kernelMemory = null)
358+
{
359+
$this->kernelMemory = $kernelMemory;
360+
361+
return $this;
362+
}
363+
288364
/**
289365
* @return int
290366
*/
@@ -325,6 +401,26 @@ public function setCpuPeriod($cpuPeriod = null)
325401
return $this;
326402
}
327403

404+
/**
405+
* @return int
406+
*/
407+
public function getCpuQuota()
408+
{
409+
return $this->cpuQuota;
410+
}
411+
412+
/**
413+
* @param int $cpuQuota
414+
*
415+
* @return self
416+
*/
417+
public function setCpuQuota($cpuQuota = null)
418+
{
419+
$this->cpuQuota = $cpuQuota;
420+
421+
return $this;
422+
}
423+
328424
/**
329425
* @return string
330426
*/

0 commit comments

Comments
 (0)