Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 26, 2019. It is now read-only.

Add missing properties to HostConfig #250

Merged
merged 2 commits into from
Oct 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docker-swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@
"type": "string"
}
},
"Tmpfs": {
"type": ["object", "null"],
"additionalProperties": {
"type": "string"
}
},
"Links": {
"type": ["array", "null"],
"items": {
Expand All @@ -185,12 +191,21 @@
"type": "integer",
"default": 0
},
"MemoryReservation": {
"type": "integer"
},
"KernelMemory": {
"type": "integer"
},
"CpuShares": {
"type": "integer"
},
"CpuPeriod": {
"type": "integer"
},
"CpuQuota": {
"type": "integer"
},
"CpusetCpus": {
"type": "string"
},
Expand Down
96 changes: 96 additions & 0 deletions generated/Model/HostConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ class HostConfig
* @var string[]|null
*/
protected $binds;
/**
* @var string[]|null
*/
protected $tmpfs;
/**
* @var string[]|null
*/
Expand All @@ -24,6 +28,14 @@ class HostConfig
* @var int
*/
protected $memorySwap;
/**
* @var int
*/
protected $memoryReservation;
/**
* @var int
*/
protected $kernelMemory;
/**
* @var int
*/
Expand All @@ -32,6 +44,10 @@ class HostConfig
* @var int
*/
protected $cpuPeriod;
/**
* @var int
*/
protected $cpuQuota;
/**
* @var string
*/
Expand Down Expand Up @@ -205,6 +221,26 @@ public function setBinds($binds = null)
return $this;
}

/**
* @return string[]|null
*/
public function getTmpfs()
{
return $this->tmpfs;
}

/**
* @param string[]|null $tmpfs
*
* @return self
*/
public function setTmpfs($tmpfs = null)
{
$this->tmpfs = $tmpfs;

return $this;
}

/**
* @return string[]|null
*/
Expand Down Expand Up @@ -285,6 +321,46 @@ public function setMemorySwap($memorySwap = null)
return $this;
}

/**
* @return int
*/
public function getMemoryReservation()
{
return $this->memoryReservation;
}

/**
* @param int $memoryReservation
*
* @return self
*/
public function setMemoryReservation($memoryReservation = null)
{
$this->memoryReservation = $memoryReservation;

return $this;
}

/**
* @return int
*/
public function getKernelMemory()
{
return $this->kernelMemory;
}

/**
* @param int $kernelMemory
*
* @return self
*/
public function setKernelMemory($kernelMemory = null)
{
$this->kernelMemory = $kernelMemory;

return $this;
}

/**
* @return int
*/
Expand Down Expand Up @@ -325,6 +401,26 @@ public function setCpuPeriod($cpuPeriod = null)
return $this;
}

/**
* @return int
*/
public function getCpuQuota()
{
return $this->cpuQuota;
}

/**
* @param int $cpuQuota
*
* @return self
*/
public function setCpuQuota($cpuQuota = null)
{
$this->cpuQuota = $cpuQuota;

return $this;
}

/**
* @return string
*/
Expand Down
Loading