Repository navigation
Expand file tree
/
Copy pathClusterVolumeInfo.php
More file actions
153 lines (135 loc) · 4.44 KB
/
Copy pathClusterVolumeInfo.php
File metadata and controls
153 lines (135 loc) · 4.44 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
<?php
declare(strict_types=1);
namespace Docker\API\Model;
use Docker\API\Runtime\AdditionalAndPatternProperties;
use Docker\API\Runtime\AdditionalPropertiesInterface;
class ClusterVolumeInfo implements AdditionalPropertiesInterface
{
use AdditionalAndPatternProperties;
/**
* @var array
*/
protected $initialized = [];
public function isInitialized($property): bool
{
return \array_key_exists($property, $this->initialized);
}
/**
* The capacity of the volume in bytes. A value of 0 indicates that
* the capacity is unknown.
*
* @var int|null
*/
protected $capacityBytes;
/**
* A map of strings to strings returned from the storage plugin when
* the volume is created.
*
* @var array<string, string>|null
*/
protected $volumeContext;
/**
* The ID of the volume as returned by the CSI storage plugin. This
* is distinct from the volume's ID as provided by Docker. This ID
* is never used by the user when communicating with Docker to refer
* to this volume. If the ID is blank, then the Volume has not been
* successfully created in the plugin yet.
*
* @var string|null
*/
protected $volumeID;
/**
* The topology this volume is actually accessible from.
*
* @var list<Topology>|null
*/
protected $accessibleTopology;
/**
* The capacity of the volume in bytes. A value of 0 indicates that
* the capacity is unknown.
*/
public function getCapacityBytes(): ?int
{
return $this->capacityBytes;
}
/**
* The capacity of the volume in bytes. A value of 0 indicates that
* the capacity is unknown.
*/
public function setCapacityBytes(?int $capacityBytes): self
{
$this->initialized['capacityBytes'] = true;
$this->capacityBytes = $capacityBytes;
return $this;
}
/**
* A map of strings to strings returned from the storage plugin when
* the volume is created.
*
* @return array<string, string>|null
*/
public function getVolumeContext(): ?iterable
{
return $this->volumeContext;
}
/**
* A map of strings to strings returned from the storage plugin when
* the volume is created.
*
* @param array<string, string>|null $volumeContext
*/
public function setVolumeContext(?iterable $volumeContext): self
{
$this->initialized['volumeContext'] = true;
$this->volumeContext = $volumeContext;
return $this;
}
/**
* The ID of the volume as returned by the CSI storage plugin. This
* is distinct from the volume's ID as provided by Docker. This ID
* is never used by the user when communicating with Docker to refer
* to this volume. If the ID is blank, then the Volume has not been
* successfully created in the plugin yet.
*/
public function getVolumeID(): ?string
{
return $this->volumeID;
}
/**
* The ID of the volume as returned by the CSI storage plugin. This
* is distinct from the volume's ID as provided by Docker. This ID
* is never used by the user when communicating with Docker to refer
* to this volume. If the ID is blank, then the Volume has not been
* successfully created in the plugin yet.
*/
public function setVolumeID(?string $volumeID): self
{
$this->initialized['volumeID'] = true;
$this->volumeID = $volumeID;
return $this;
}
/**
* The topology this volume is actually accessible from.
*
* @return list<Topology>|null
*/
public function getAccessibleTopology(): ?array
{
return $this->accessibleTopology;
}
/**
* The topology this volume is actually accessible from.
*
* @param list<Topology>|null $accessibleTopology
*/
public function setAccessibleTopology(?array $accessibleTopology): self
{
$this->initialized['accessibleTopology'] = true;
$this->accessibleTopology = $accessibleTopology;
return $this;
}
public function definedProperties(): array
{
return ['capacityBytes' => ['CapacityBytes', 'getCapacityBytes', 'setCapacityBytes'], 'volumeContext' => ['VolumeContext', 'getVolumeContext', 'setVolumeContext'], 'volumeID' => ['VolumeID', 'getVolumeID', 'setVolumeID'], 'accessibleTopology' => ['AccessibleTopology', 'getAccessibleTopology', 'setAccessibleTopology']];
}
}