forked from nexcess/docker-php-docker-php-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskSpecResources.php
75 lines (65 loc) · 1.66 KB
/
TaskSpecResources.php
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
<?php
declare(strict_types=1);
/*
* This file has been auto generated by Jane,
*
* Do no edit it directly.
*/
namespace Docker\API\Model;
class TaskSpecResources
{
/**
* An object describing the resources which can be advertised by a node and requested by a task.
*
* @var ResourceObject
*/
protected $limits;
/**
* An object describing the resources which can be advertised by a node and requested by a task.
*
* @var ResourceObject
*/
protected $reservations;
/**
* An object describing the resources which can be advertised by a node and requested by a task.
*
* @return ResourceObject
*/
public function getLimits(): ?ResourceObject
{
return $this->limits;
}
/**
* An object describing the resources which can be advertised by a node and requested by a task.
*
* @param ResourceObject $limits
*
* @return self
*/
public function setLimits(?ResourceObject $limits): self
{
$this->limits = $limits;
return $this;
}
/**
* An object describing the resources which can be advertised by a node and requested by a task.
*
* @return ResourceObject
*/
public function getReservations(): ?ResourceObject
{
return $this->reservations;
}
/**
* An object describing the resources which can be advertised by a node and requested by a task.
*
* @param ResourceObject $reservations
*
* @return self
*/
public function setReservations(?ResourceObject $reservations): self
{
$this->reservations = $reservations;
return $this;
}
}