1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AlibabaCloud\Eci\V20180808; |
4
|
|
|
|
5
|
|
|
use AlibabaCloud\ApiResolverTrait; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* @method DescribeMultiContainerGroupMetric describeMultiContainerGroupMetric(array $options = []) |
9
|
|
|
* @method UpdateContainerGroupByTemplate updateContainerGroupByTemplate(array $options = []) |
10
|
|
|
* @method ExportContainerGroupTemplate exportContainerGroupTemplate(array $options = []) |
11
|
|
|
* @method CreateContainerGroupFromTemplate createContainerGroupFromTemplate(array $options = []) |
12
|
|
|
* @method DescribeContainerGroupMetric describeContainerGroupMetric(array $options = []) |
13
|
|
|
* @method UpdateContainerGroup updateContainerGroup(array $options = []) |
14
|
|
|
* @method RestartContainerGroup restartContainerGroup(array $options = []) |
15
|
|
|
* @method DescribeContainerGroupPrice describeContainerGroupPrice(array $options = []) |
16
|
|
|
* @method ExecContainerCommand execContainerCommand(array $options = []) |
17
|
|
|
* @method DescribeContainerExecUri describeContainerExecUri(array $options = []) |
18
|
|
|
* @method DeleteContainerGroup deleteContainerGroup(array $options = []) |
19
|
|
|
* @method DescribeContainerGroups describeContainerGroups(array $options = []) |
20
|
|
|
* @method DescribeContainerLog describeContainerLog(array $options = []) |
21
|
|
|
* @method CreateContainerGroup createContainerGroup(array $options = []) |
22
|
|
|
*/ |
23
|
|
|
class EciApiResolver |
24
|
|
|
{ |
25
|
|
|
use ApiResolverTrait; |
26
|
|
|
} |
27
|
|
|
|
28
|
|
|
class Rpc extends \AlibabaCloud\Rpc |
29
|
|
|
{ |
30
|
|
|
/** @var string */ |
31
|
|
|
public $product = 'Eci'; |
32
|
|
|
|
33
|
|
|
/** @var string */ |
34
|
|
|
public $version = '2018-08-08'; |
35
|
|
|
|
36
|
|
|
/** @var string */ |
37
|
|
|
public $method = 'POST'; |
38
|
|
|
|
39
|
|
|
/** @var string */ |
40
|
|
|
public $serviceCode = 'eci'; |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @method string getResourceOwnerId() |
45
|
|
|
* @method $this withResourceOwnerId($value) |
46
|
|
|
* @method string getContainerGroupIds() |
47
|
|
|
* @method $this withContainerGroupIds($value) |
48
|
|
|
* @method string getResourceGroupId() |
49
|
|
|
* @method $this withResourceGroupId($value) |
50
|
|
|
* @method string getResourceOwnerAccount() |
51
|
|
|
* @method $this withResourceOwnerAccount($value) |
52
|
|
|
* @method string getOwnerAccount() |
53
|
|
|
* @method $this withOwnerAccount($value) |
54
|
|
|
* @method string getOwnerId() |
55
|
|
|
* @method $this withOwnerId($value) |
56
|
|
|
*/ |
57
|
|
|
class DescribeMultiContainerGroupMetric extends Rpc |
58
|
|
|
{ |
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @method string getTemplate() |
63
|
|
|
* @method string getResourceOwnerId() |
64
|
|
|
* @method $this withResourceOwnerId($value) |
65
|
|
|
* @method string getClientToken() |
66
|
|
|
* @method $this withClientToken($value) |
67
|
|
|
* @method string getResourceOwnerAccount() |
68
|
|
|
* @method $this withResourceOwnerAccount($value) |
69
|
|
|
* @method string getOwnerAccount() |
70
|
|
|
* @method $this withOwnerAccount($value) |
71
|
|
|
* @method string getOwnerId() |
72
|
|
|
* @method $this withOwnerId($value) |
73
|
|
|
*/ |
74
|
|
|
class UpdateContainerGroupByTemplate extends Rpc |
75
|
|
|
{ |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* @param string $value |
79
|
|
|
* |
80
|
|
|
* @return $this |
81
|
|
|
*/ |
82
|
|
|
public function withTemplate($value) |
83
|
|
|
{ |
84
|
|
|
$this->data['Template'] = $value; |
85
|
|
|
$this->options['form_params']['Template'] = $value; |
86
|
|
|
|
87
|
|
|
return $this; |
88
|
|
|
} |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
/** |
92
|
|
|
* @method string getResourceOwnerId() |
93
|
|
|
* @method $this withResourceOwnerId($value) |
94
|
|
|
* @method string getContainerGroupId() |
95
|
|
|
* @method $this withContainerGroupId($value) |
96
|
|
|
* @method string getResourceOwnerAccount() |
97
|
|
|
* @method $this withResourceOwnerAccount($value) |
98
|
|
|
* @method string getOwnerAccount() |
99
|
|
|
* @method $this withOwnerAccount($value) |
100
|
|
|
* @method string getOwnerId() |
101
|
|
|
* @method $this withOwnerId($value) |
102
|
|
|
*/ |
103
|
|
|
class ExportContainerGroupTemplate extends Rpc |
104
|
|
|
{ |
105
|
|
|
} |
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* @method string getTemplate() |
109
|
|
|
* @method string getResourceOwnerId() |
110
|
|
|
* @method $this withResourceOwnerId($value) |
111
|
|
|
* @method string getClientToken() |
112
|
|
|
* @method $this withClientToken($value) |
113
|
|
|
* @method string getResourceOwnerAccount() |
114
|
|
|
* @method $this withResourceOwnerAccount($value) |
115
|
|
|
* @method string getOwnerAccount() |
116
|
|
|
* @method $this withOwnerAccount($value) |
117
|
|
|
* @method string getOwnerId() |
118
|
|
|
* @method $this withOwnerId($value) |
119
|
|
|
*/ |
120
|
|
|
class CreateContainerGroupFromTemplate extends Rpc |
121
|
|
|
{ |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* @param string $value |
125
|
|
|
* |
126
|
|
|
* @return $this |
127
|
|
|
*/ |
128
|
|
|
public function withTemplate($value) |
129
|
|
|
{ |
130
|
|
|
$this->data['Template'] = $value; |
131
|
|
|
$this->options['form_params']['Template'] = $value; |
132
|
|
|
|
133
|
|
|
return $this; |
134
|
|
|
} |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* @method string getResourceOwnerId() |
139
|
|
|
* @method $this withResourceOwnerId($value) |
140
|
|
|
* @method string getStartTime() |
141
|
|
|
* @method $this withStartTime($value) |
142
|
|
|
* @method string getContainerGroupId() |
143
|
|
|
* @method $this withContainerGroupId($value) |
144
|
|
|
* @method string getPeriod() |
145
|
|
|
* @method $this withPeriod($value) |
146
|
|
|
* @method string getResourceOwnerAccount() |
147
|
|
|
* @method $this withResourceOwnerAccount($value) |
148
|
|
|
* @method string getOwnerAccount() |
149
|
|
|
* @method $this withOwnerAccount($value) |
150
|
|
|
* @method string getEndTime() |
151
|
|
|
* @method $this withEndTime($value) |
152
|
|
|
* @method string getOwnerId() |
153
|
|
|
* @method $this withOwnerId($value) |
154
|
|
|
*/ |
155
|
|
|
class DescribeContainerGroupMetric extends Rpc |
156
|
|
|
{ |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @method array getContainer() |
161
|
|
|
* @method string getResourceOwnerId() |
162
|
|
|
* @method $this withResourceOwnerId($value) |
163
|
|
|
* @method string getMemory() |
164
|
|
|
* @method $this withMemory($value) |
165
|
|
|
* @method string getClientToken() |
166
|
|
|
* @method $this withClientToken($value) |
167
|
|
|
* @method array getInitContainer() |
168
|
|
|
* @method array getImageRegistryCredential() |
169
|
|
|
* @method array getTag() |
170
|
|
|
* @method string getContainerGroupId() |
171
|
|
|
* @method $this withContainerGroupId($value) |
172
|
|
|
* @method array getDnsConfigNameServer() |
173
|
|
|
* @method string getResourceOwnerAccount() |
174
|
|
|
* @method $this withResourceOwnerAccount($value) |
175
|
|
|
* @method string getRestartPolicy() |
176
|
|
|
* @method $this withRestartPolicy($value) |
177
|
|
|
* @method string getOwnerAccount() |
178
|
|
|
* @method $this withOwnerAccount($value) |
179
|
|
|
* @method array getDnsConfigOption() |
180
|
|
|
* @method string getCpu() |
181
|
|
|
* @method $this withCpu($value) |
182
|
|
|
* @method array getDnsConfigSearch() |
183
|
|
|
* @method string getOwnerId() |
184
|
|
|
* @method $this withOwnerId($value) |
185
|
|
|
* @method array getVolume() |
186
|
|
|
*/ |
187
|
|
|
class UpdateContainerGroup extends Rpc |
188
|
|
|
{ |
189
|
|
|
|
190
|
|
|
/** |
191
|
|
|
* @param array $container |
192
|
|
|
* |
193
|
|
|
* @return $this |
194
|
|
|
*/ |
195
|
|
|
public function withContainer(array $container) |
196
|
|
|
{ |
197
|
|
|
$this->data['Container'] = $container; |
198
|
|
|
foreach ($container as $depth1 => $depth1Value) { |
199
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
200
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Image'] = $depth1Value['Image']; |
201
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Cpu'] = $depth1Value['Cpu']; |
202
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Memory'] = $depth1Value['Memory']; |
203
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.WorkingDir'] = $depth1Value['WorkingDir']; |
204
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ImagePullPolicy'] = $depth1Value['ImagePullPolicy']; |
205
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Stdin'] = $depth1Value['Stdin']; |
206
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.StdinOnce'] = $depth1Value['StdinOnce']; |
207
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Tty'] = $depth1Value['Tty']; |
208
|
|
|
foreach ($depth1Value['Command'] as $i => $iValue) { |
209
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Command.' . ($i + 1)] = $iValue; |
210
|
|
|
} |
211
|
|
|
foreach ($depth1Value['Arg'] as $i => $iValue) { |
212
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Arg.' . ($i + 1)] = $iValue; |
213
|
|
|
} |
214
|
|
|
foreach ($depth1Value['EnvironmentVar'] as $i => $iValue) { |
215
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.EnvironmentVar.' . ($i + 1)] = $iValue; |
216
|
|
|
} |
217
|
|
|
foreach ($depth1Value['Port'] as $i => $iValue) { |
218
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Port.' . ($i + 1)] = $iValue; |
219
|
|
|
} |
220
|
|
|
foreach ($depth1Value['VolumeMount'] as $i => $iValue) { |
221
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.VolumeMount.' . ($i + 1)] = $iValue; |
222
|
|
|
} |
223
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.TcpSocket.Port'] = $depth1Value['ReadinessProbeTcpSocketPort']; |
224
|
|
|
foreach ($depth1Value['ReadinessProbeExecCommand'] as $i => $iValue) { |
225
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.Exec.Command.' . ($i + 1)] = $iValue; |
226
|
|
|
} |
227
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.HttpGet.Path'] = $depth1Value['ReadinessProbeHttpGetPath']; |
228
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.HttpGet.Port'] = $depth1Value['ReadinessProbeHttpGetPort']; |
229
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.HttpGet.Scheme'] = $depth1Value['ReadinessProbeHttpGetScheme']; |
230
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.InitialDelaySeconds'] = $depth1Value['ReadinessProbeInitialDelaySeconds']; |
231
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.PeriodSeconds'] = $depth1Value['ReadinessProbePeriodSeconds']; |
232
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.SuccessThreshold'] = $depth1Value['ReadinessProbeSuccessThreshold']; |
233
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.FailureThreshold'] = $depth1Value['ReadinessProbeFailureThreshold']; |
234
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.TimeoutSeconds'] = $depth1Value['ReadinessProbeTimeoutSeconds']; |
235
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.TcpSocket.Port'] = $depth1Value['LivenessProbeTcpSocketPort']; |
236
|
|
|
foreach ($depth1Value['LivenessProbeExecCommand'] as $i => $iValue) { |
237
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.Exec.Command.' . ($i + 1)] = $iValue; |
238
|
|
|
} |
239
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.HttpGet.Path'] = $depth1Value['LivenessProbeHttpGetPath']; |
240
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.HttpGet.Port'] = $depth1Value['LivenessProbeHttpGetPort']; |
241
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.HttpGet.Scheme'] = $depth1Value['LivenessProbeHttpGetScheme']; |
242
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.InitialDelaySeconds'] = $depth1Value['LivenessProbeInitialDelaySeconds']; |
243
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.PeriodSeconds'] = $depth1Value['LivenessProbePeriodSeconds']; |
244
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.SuccessThreshold'] = $depth1Value['LivenessProbeSuccessThreshold']; |
245
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.FailureThreshold'] = $depth1Value['LivenessProbeFailureThreshold']; |
246
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.TimeoutSeconds'] = $depth1Value['LivenessProbeTimeoutSeconds']; |
247
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.SecurityContext.ReadOnlyRootFilesystem'] = $depth1Value['SecurityContextReadOnlyRootFilesystem']; |
248
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.SecurityContext.RunAsUser'] = $depth1Value['SecurityContextRunAsUser']; |
249
|
|
|
foreach ($depth1Value['SecurityContextCapabilityAdd'] as $i => $iValue) { |
250
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.SecurityContext.Capability.Add.' . ($i + 1)] = $iValue; |
251
|
|
|
} |
252
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Gpu'] = $depth1Value['Gpu']; |
253
|
|
|
} |
254
|
|
|
|
255
|
|
|
return $this; |
256
|
|
|
} |
257
|
|
|
|
258
|
|
|
/** |
259
|
|
|
* @param array $initContainer |
260
|
|
|
* |
261
|
|
|
* @return $this |
262
|
|
|
*/ |
263
|
|
|
public function withInitContainer(array $initContainer) |
264
|
|
|
{ |
265
|
|
|
$this->data['InitContainer'] = $initContainer; |
266
|
|
|
foreach ($initContainer as $depth1 => $depth1Value) { |
267
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
268
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Image'] = $depth1Value['Image']; |
269
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Cpu'] = $depth1Value['Cpu']; |
270
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Memory'] = $depth1Value['Memory']; |
271
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.WorkingDir'] = $depth1Value['WorkingDir']; |
272
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.ImagePullPolicy'] = $depth1Value['ImagePullPolicy']; |
273
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Stdin'] = $depth1Value['Stdin']; |
274
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.StdinOnce'] = $depth1Value['StdinOnce']; |
275
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Tty'] = $depth1Value['Tty']; |
276
|
|
|
foreach ($depth1Value['Command'] as $i => $iValue) { |
277
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Command.' . ($i + 1)] = $iValue; |
278
|
|
|
} |
279
|
|
|
foreach ($depth1Value['Arg'] as $i => $iValue) { |
280
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Arg.' . ($i + 1)] = $iValue; |
281
|
|
|
} |
282
|
|
|
foreach ($depth1Value['EnvironmentVar'] as $depth2 => $depth2Value) { |
283
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.EnvironmentVar.' . ($depth2 + 1) . '.Key'] = $depth2Value['Key']; |
284
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.EnvironmentVar.' . ($depth2 + 1) . '.Value'] = $depth2Value['Value']; |
285
|
|
|
} |
286
|
|
|
foreach ($depth1Value['Port'] as $depth2 => $depth2Value) { |
287
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Port.' . ($depth2 + 1) . '.Port'] = $depth2Value['Port']; |
288
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Port.' . ($depth2 + 1) . '.Protocol'] = $depth2Value['Protocol']; |
289
|
|
|
} |
290
|
|
|
foreach ($depth1Value['VolumeMount'] as $depth2 => $depth2Value) { |
291
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.Name'] = $depth2Value['Name']; |
292
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.MountPath'] = $depth2Value['MountPath']; |
293
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.SubPath'] = $depth2Value['SubPath']; |
294
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.ReadOnly'] = $depth2Value['ReadOnly']; |
295
|
|
|
} |
296
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.SecurityContext.ReadOnlyRootFilesystem'] = $depth1Value['SecurityContextReadOnlyRootFilesystem']; |
297
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.SecurityContext.RunAsUser'] = $depth1Value['SecurityContextRunAsUser']; |
298
|
|
|
foreach ($depth1Value['SecurityContextCapabilityAdd'] as $i => $iValue) { |
299
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.SecurityContext.Capability.Add.' . ($i + 1)] = $iValue; |
300
|
|
|
} |
301
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Gpu'] = $depth1Value['Gpu']; |
302
|
|
|
} |
303
|
|
|
|
304
|
|
|
return $this; |
305
|
|
|
} |
306
|
|
|
|
307
|
|
|
/** |
308
|
|
|
* @param array $imageRegistryCredential |
309
|
|
|
* |
310
|
|
|
* @return $this |
311
|
|
|
*/ |
312
|
|
|
public function withImageRegistryCredential(array $imageRegistryCredential) |
313
|
|
|
{ |
314
|
|
|
$this->data['ImageRegistryCredential'] = $imageRegistryCredential; |
315
|
|
|
foreach ($imageRegistryCredential as $depth1 => $depth1Value) { |
316
|
|
|
$this->options['query']['ImageRegistryCredential.' . ($depth1 + 1) . '.Server'] = $depth1Value['Server']; |
317
|
|
|
$this->options['query']['ImageRegistryCredential.' . ($depth1 + 1) . '.UserName'] = $depth1Value['UserName']; |
318
|
|
|
$this->options['query']['ImageRegistryCredential.' . ($depth1 + 1) . '.Password'] = $depth1Value['Password']; |
319
|
|
|
} |
320
|
|
|
|
321
|
|
|
return $this; |
322
|
|
|
} |
323
|
|
|
|
324
|
|
|
/** |
325
|
|
|
* @param array $tag |
326
|
|
|
* |
327
|
|
|
* @return $this |
328
|
|
|
*/ |
329
|
|
|
public function withTag(array $tag) |
330
|
|
|
{ |
331
|
|
|
$this->data['Tag'] = $tag; |
332
|
|
|
foreach ($tag as $depth1 => $depth1Value) { |
333
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key']; |
334
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value']; |
335
|
|
|
} |
336
|
|
|
|
337
|
|
|
return $this; |
338
|
|
|
} |
339
|
|
|
|
340
|
|
|
/** |
341
|
|
|
* @param array $dnsConfigNameServer |
342
|
|
|
* |
343
|
|
|
* @return $this |
344
|
|
|
*/ |
345
|
|
|
public function withDnsConfigNameServer(array $dnsConfigNameServer) |
346
|
|
|
{ |
347
|
|
|
$this->data['DnsConfigNameServer'] = $dnsConfigNameServer; |
348
|
|
|
foreach ($dnsConfigNameServer as $i => $iValue) { |
349
|
|
|
$this->options['query']['DnsConfig.NameServer.' . ($i + 1)] = $iValue; |
350
|
|
|
} |
351
|
|
|
|
352
|
|
|
return $this; |
353
|
|
|
} |
354
|
|
|
|
355
|
|
|
/** |
356
|
|
|
* @param array $dnsConfigOption |
357
|
|
|
* |
358
|
|
|
* @return $this |
359
|
|
|
*/ |
360
|
|
|
public function withDnsConfigOption(array $dnsConfigOption) |
361
|
|
|
{ |
362
|
|
|
$this->data['DnsConfigOption'] = $dnsConfigOption; |
363
|
|
|
foreach ($dnsConfigOption as $depth1 => $depth1Value) { |
364
|
|
|
$this->options['query']['DnsConfig.Option.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
365
|
|
|
$this->options['query']['DnsConfig.Option.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value']; |
366
|
|
|
} |
367
|
|
|
|
368
|
|
|
return $this; |
369
|
|
|
} |
370
|
|
|
|
371
|
|
|
/** |
372
|
|
|
* @param array $dnsConfigSearch |
373
|
|
|
* |
374
|
|
|
* @return $this |
375
|
|
|
*/ |
376
|
|
|
public function withDnsConfigSearch(array $dnsConfigSearch) |
377
|
|
|
{ |
378
|
|
|
$this->data['DnsConfigSearch'] = $dnsConfigSearch; |
379
|
|
|
foreach ($dnsConfigSearch as $i => $iValue) { |
380
|
|
|
$this->options['query']['DnsConfig.Search.' . ($i + 1)] = $iValue; |
381
|
|
|
} |
382
|
|
|
|
383
|
|
|
return $this; |
384
|
|
|
} |
385
|
|
|
|
386
|
|
|
/** |
387
|
|
|
* @param array $volume |
388
|
|
|
* |
389
|
|
|
* @return $this |
390
|
|
|
*/ |
391
|
|
|
public function withVolume(array $volume) |
392
|
|
|
{ |
393
|
|
|
$this->data['Volume'] = $volume; |
394
|
|
|
foreach ($volume as $depth1 => $depth1Value) { |
395
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
396
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.Type'] = $depth1Value['Type']; |
397
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.NFSVolume.Server'] = $depth1Value['NFSVolumeServer']; |
398
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.NFSVolume.Path'] = $depth1Value['NFSVolumePath']; |
399
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.NFSVolume.ReadOnly'] = $depth1Value['NFSVolumeReadOnly']; |
400
|
|
|
foreach ($depth1Value['ConfigFileVolumeConfigFileToPath'] as $depth2 => $depth2Value) { |
401
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.ConfigFileVolume.ConfigFileToPath.' . ($depth2 + 1) . '.Content'] = $depth2Value['Content']; |
402
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.ConfigFileVolume.ConfigFileToPath.' . ($depth2 + 1) . '.Path'] = $depth2Value['Path']; |
403
|
|
|
} |
404
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.EmptyDirVolume.Medium'] = $depth1Value['EmptyDirVolumeMedium']; |
405
|
|
|
} |
406
|
|
|
|
407
|
|
|
return $this; |
408
|
|
|
} |
409
|
|
|
} |
410
|
|
|
|
411
|
|
|
/** |
412
|
|
|
* @method string getResourceOwnerId() |
413
|
|
|
* @method $this withResourceOwnerId($value) |
414
|
|
|
* @method string getClientToken() |
415
|
|
|
* @method $this withClientToken($value) |
416
|
|
|
* @method string getContainerGroupId() |
417
|
|
|
* @method $this withContainerGroupId($value) |
418
|
|
|
* @method string getResourceOwnerAccount() |
419
|
|
|
* @method $this withResourceOwnerAccount($value) |
420
|
|
|
* @method string getOwnerAccount() |
421
|
|
|
* @method $this withOwnerAccount($value) |
422
|
|
|
* @method string getOwnerId() |
423
|
|
|
* @method $this withOwnerId($value) |
424
|
|
|
*/ |
425
|
|
|
class RestartContainerGroup extends Rpc |
426
|
|
|
{ |
427
|
|
|
} |
428
|
|
|
|
429
|
|
|
/** |
430
|
|
|
* @method string getResourceOwnerId() |
431
|
|
|
* @method $this withResourceOwnerId($value) |
432
|
|
|
* @method string getMemory() |
433
|
|
|
* @method $this withMemory($value) |
434
|
|
|
* @method string getResourceOwnerAccount() |
435
|
|
|
* @method $this withResourceOwnerAccount($value) |
436
|
|
|
* @method string getOwnerAccount() |
437
|
|
|
* @method $this withOwnerAccount($value) |
438
|
|
|
* @method string getCpu() |
439
|
|
|
* @method $this withCpu($value) |
440
|
|
|
* @method string getOwnerId() |
441
|
|
|
* @method $this withOwnerId($value) |
442
|
|
|
*/ |
443
|
|
|
class DescribeContainerGroupPrice extends Rpc |
444
|
|
|
{ |
445
|
|
|
} |
446
|
|
|
|
447
|
|
|
/** |
448
|
|
|
* @method string getResourceOwnerId() |
449
|
|
|
* @method $this withResourceOwnerId($value) |
450
|
|
|
* @method string getContainerName() |
451
|
|
|
* @method $this withContainerName($value) |
452
|
|
|
* @method string getContainerGroupId() |
453
|
|
|
* @method $this withContainerGroupId($value) |
454
|
|
|
* @method string getResourceOwnerAccount() |
455
|
|
|
* @method $this withResourceOwnerAccount($value) |
456
|
|
|
* @method string getOwnerAccount() |
457
|
|
|
* @method $this withOwnerAccount($value) |
458
|
|
|
* @method string getOwnerId() |
459
|
|
|
* @method $this withOwnerId($value) |
460
|
|
|
* @method string getCommand() |
461
|
|
|
* @method $this withCommand($value) |
462
|
|
|
*/ |
463
|
|
|
class ExecContainerCommand extends Rpc |
464
|
|
|
{ |
465
|
|
|
} |
466
|
|
|
|
467
|
|
|
/** |
468
|
|
|
* @method string getResourceOwnerId() |
469
|
|
|
* @method $this withResourceOwnerId($value) |
470
|
|
|
* @method string getContainerName() |
471
|
|
|
* @method $this withContainerName($value) |
472
|
|
|
* @method string getContainerGroupId() |
473
|
|
|
* @method $this withContainerGroupId($value) |
474
|
|
|
* @method string getResourceOwnerAccount() |
475
|
|
|
* @method $this withResourceOwnerAccount($value) |
476
|
|
|
* @method string getOwnerAccount() |
477
|
|
|
* @method $this withOwnerAccount($value) |
478
|
|
|
* @method string getOwnerId() |
479
|
|
|
* @method $this withOwnerId($value) |
480
|
|
|
* @method string getCommand() |
481
|
|
|
* @method $this withCommand($value) |
482
|
|
|
*/ |
483
|
|
|
class DescribeContainerExecUri extends Rpc |
484
|
|
|
{ |
485
|
|
|
} |
486
|
|
|
|
487
|
|
|
/** |
488
|
|
|
* @method string getResourceOwnerId() |
489
|
|
|
* @method $this withResourceOwnerId($value) |
490
|
|
|
* @method string getClientToken() |
491
|
|
|
* @method $this withClientToken($value) |
492
|
|
|
* @method string getContainerGroupId() |
493
|
|
|
* @method $this withContainerGroupId($value) |
494
|
|
|
* @method string getResourceOwnerAccount() |
495
|
|
|
* @method $this withResourceOwnerAccount($value) |
496
|
|
|
* @method string getOwnerAccount() |
497
|
|
|
* @method $this withOwnerAccount($value) |
498
|
|
|
* @method string getOwnerId() |
499
|
|
|
* @method $this withOwnerId($value) |
500
|
|
|
*/ |
501
|
|
|
class DeleteContainerGroup extends Rpc |
502
|
|
|
{ |
503
|
|
|
} |
504
|
|
|
|
505
|
|
|
/** |
506
|
|
|
* @method string getResourceOwnerId() |
507
|
|
|
* @method $this withResourceOwnerId($value) |
508
|
|
|
* @method string getContainerGroupIds() |
509
|
|
|
* @method $this withContainerGroupIds($value) |
510
|
|
|
* @method string getNextToken() |
511
|
|
|
* @method $this withNextToken($value) |
512
|
|
|
* @method string getLimit() |
513
|
|
|
* @method $this withLimit($value) |
514
|
|
|
* @method array getTag() |
515
|
|
|
* @method string getResourceOwnerAccount() |
516
|
|
|
* @method $this withResourceOwnerAccount($value) |
517
|
|
|
* @method string getOwnerAccount() |
518
|
|
|
* @method $this withOwnerAccount($value) |
519
|
|
|
* @method string getOwnerId() |
520
|
|
|
* @method $this withOwnerId($value) |
521
|
|
|
* @method string getVSwitchId() |
522
|
|
|
* @method $this withVSwitchId($value) |
523
|
|
|
* @method string getContainerGroupName() |
524
|
|
|
* @method $this withContainerGroupName($value) |
525
|
|
|
* @method string getZoneId() |
526
|
|
|
* @method $this withZoneId($value) |
527
|
|
|
* @method string getStatus() |
528
|
|
|
* @method $this withStatus($value) |
529
|
|
|
*/ |
530
|
|
|
class DescribeContainerGroups extends Rpc |
531
|
|
|
{ |
532
|
|
|
|
533
|
|
|
/** |
534
|
|
|
* @param array $tag |
535
|
|
|
* |
536
|
|
|
* @return $this |
537
|
|
|
*/ |
538
|
|
|
public function withTag(array $tag) |
539
|
|
|
{ |
540
|
|
|
$this->data['Tag'] = $tag; |
541
|
|
|
foreach ($tag as $depth1 => $depth1Value) { |
542
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key']; |
543
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value']; |
544
|
|
|
} |
545
|
|
|
|
546
|
|
|
return $this; |
547
|
|
|
} |
548
|
|
|
} |
549
|
|
|
|
550
|
|
|
/** |
551
|
|
|
* @method string getResourceOwnerId() |
552
|
|
|
* @method $this withResourceOwnerId($value) |
553
|
|
|
* @method string getContainerName() |
554
|
|
|
* @method $this withContainerName($value) |
555
|
|
|
* @method string getStartTime() |
556
|
|
|
* @method $this withStartTime($value) |
557
|
|
|
* @method string getContainerGroupId() |
558
|
|
|
* @method $this withContainerGroupId($value) |
559
|
|
|
* @method string getResourceOwnerAccount() |
560
|
|
|
* @method $this withResourceOwnerAccount($value) |
561
|
|
|
* @method string getTail() |
562
|
|
|
* @method $this withTail($value) |
563
|
|
|
* @method string getOwnerAccount() |
564
|
|
|
* @method $this withOwnerAccount($value) |
565
|
|
|
* @method string getOwnerId() |
566
|
|
|
* @method $this withOwnerId($value) |
567
|
|
|
*/ |
568
|
|
|
class DescribeContainerLog extends Rpc |
569
|
|
|
{ |
570
|
|
|
} |
571
|
|
|
|
572
|
|
|
/** |
573
|
|
|
* @method array getContainer() |
574
|
|
|
* @method string getResourceOwnerId() |
575
|
|
|
* @method $this withResourceOwnerId($value) |
576
|
|
|
* @method string getMemory() |
577
|
|
|
* @method $this withMemory($value) |
578
|
|
|
* @method string getClientToken() |
579
|
|
|
* @method $this withClientToken($value) |
580
|
|
|
* @method string getSecurityGroupId() |
581
|
|
|
* @method $this withSecurityGroupId($value) |
582
|
|
|
* @method string getDnsPolicy() |
583
|
|
|
* @method $this withDnsPolicy($value) |
584
|
|
|
* @method string getResourceGroupId() |
585
|
|
|
* @method $this withResourceGroupId($value) |
586
|
|
|
* @method array getHostAliase() |
587
|
|
|
* @method array getInitContainer() |
588
|
|
|
* @method string getInstanceType() |
589
|
|
|
* @method $this withInstanceType($value) |
590
|
|
|
* @method array getImageRegistryCredential() |
591
|
|
|
* @method array getTag() |
592
|
|
|
* @method string getEipInstanceId() |
593
|
|
|
* @method $this withEipInstanceId($value) |
594
|
|
|
* @method array getArn() |
595
|
|
|
* @method array getDnsConfigNameServer() |
596
|
|
|
* @method array getSecurityContextSysctl() |
597
|
|
|
* @method string getResourceOwnerAccount() |
598
|
|
|
* @method $this withResourceOwnerAccount($value) |
599
|
|
|
* @method string getRestartPolicy() |
600
|
|
|
* @method $this withRestartPolicy($value) |
601
|
|
|
* @method string getOwnerAccount() |
602
|
|
|
* @method $this withOwnerAccount($value) |
603
|
|
|
* @method array getDnsConfigOption() |
604
|
|
|
* @method string getCpu() |
605
|
|
|
* @method $this withCpu($value) |
606
|
|
|
* @method array getDnsConfigSearch() |
607
|
|
|
* @method string getOwnerId() |
608
|
|
|
* @method $this withOwnerId($value) |
609
|
|
|
* @method string getVSwitchId() |
610
|
|
|
* @method $this withVSwitchId($value) |
611
|
|
|
* @method array getVolume() |
612
|
|
|
* @method string getContainerGroupName() |
613
|
|
|
* @method $this withContainerGroupName($value) |
614
|
|
|
* @method string getZoneId() |
615
|
|
|
* @method $this withZoneId($value) |
616
|
|
|
*/ |
617
|
|
|
class CreateContainerGroup extends Rpc |
618
|
|
|
{ |
619
|
|
|
|
620
|
|
|
/** |
621
|
|
|
* @param array $container |
622
|
|
|
* |
623
|
|
|
* @return $this |
624
|
|
|
*/ |
625
|
|
|
public function withContainer(array $container) |
626
|
|
|
{ |
627
|
|
|
$this->data['Container'] = $container; |
628
|
|
|
foreach ($container as $depth1 => $depth1Value) { |
629
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Image'] = $depth1Value['Image']; |
630
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
631
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Cpu'] = $depth1Value['Cpu']; |
632
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Memory'] = $depth1Value['Memory']; |
633
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.WorkingDir'] = $depth1Value['WorkingDir']; |
634
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ImagePullPolicy'] = $depth1Value['ImagePullPolicy']; |
635
|
|
|
foreach ($depth1Value['Command'] as $i => $iValue) { |
636
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Command.' . ($i + 1)] = $iValue; |
637
|
|
|
} |
638
|
|
|
foreach ($depth1Value['Arg'] as $i => $iValue) { |
639
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Arg.' . ($i + 1)] = $iValue; |
640
|
|
|
} |
641
|
|
|
foreach ($depth1Value['VolumeMount'] as $depth2 => $depth2Value) { |
642
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.MountPath'] = $depth2Value['MountPath']; |
643
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.ReadOnly'] = $depth2Value['ReadOnly']; |
644
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.Name'] = $depth2Value['Name']; |
645
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.SubPath'] = $depth2Value['SubPath']; |
646
|
|
|
} |
647
|
|
|
foreach ($depth1Value['Port'] as $depth2 => $depth2Value) { |
648
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Port.' . ($depth2 + 1) . '.Protocol'] = $depth2Value['Protocol']; |
649
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Port.' . ($depth2 + 1) . '.Port'] = $depth2Value['Port']; |
650
|
|
|
} |
651
|
|
|
foreach ($depth1Value['EnvironmentVar'] as $depth2 => $depth2Value) { |
652
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.EnvironmentVar.' . ($depth2 + 1) . '.Key'] = $depth2Value['Key']; |
653
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.EnvironmentVar.' . ($depth2 + 1) . '.Value'] = $depth2Value['Value']; |
654
|
|
|
} |
655
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.HttpGet.Path'] = $depth1Value['ReadinessProbeHttpGetPath']; |
656
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.HttpGet.Port'] = $depth1Value['ReadinessProbeHttpGetPort']; |
657
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.HttpGet.Scheme'] = $depth1Value['ReadinessProbeHttpGetScheme']; |
658
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.InitialDelaySeconds'] = $depth1Value['ReadinessProbeInitialDelaySeconds']; |
659
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.PeriodSeconds'] = $depth1Value['ReadinessProbePeriodSeconds']; |
660
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.SuccessThreshold'] = $depth1Value['ReadinessProbeSuccessThreshold']; |
661
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.FailureThreshold'] = $depth1Value['ReadinessProbeFailureThreshold']; |
662
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.TimeoutSeconds'] = $depth1Value['ReadinessProbeTimeoutSeconds']; |
663
|
|
|
foreach ($depth1Value['ReadinessProbeExecCommand'] as $i => $iValue) { |
664
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.Exec.Command.' . ($i + 1)] = $iValue; |
665
|
|
|
} |
666
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.HttpGet.Path'] = $depth1Value['LivenessProbeHttpGetPath']; |
667
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.HttpGet.Port'] = $depth1Value['LivenessProbeHttpGetPort']; |
668
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.HttpGet.Scheme'] = $depth1Value['LivenessProbeHttpGetScheme']; |
669
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.InitialDelaySeconds'] = $depth1Value['LivenessProbeInitialDelaySeconds']; |
670
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.PeriodSeconds'] = $depth1Value['LivenessProbePeriodSeconds']; |
671
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.SuccessThreshold'] = $depth1Value['LivenessProbeSuccessThreshold']; |
672
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.FailureThreshold'] = $depth1Value['LivenessProbeFailureThreshold']; |
673
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.TimeoutSeconds'] = $depth1Value['LivenessProbeTimeoutSeconds']; |
674
|
|
|
foreach ($depth1Value['LivenessProbeExecCommand'] as $i => $iValue) { |
675
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.Exec.Command.' . ($i + 1)] = $iValue; |
676
|
|
|
} |
677
|
|
|
foreach ($depth1Value['SecurityContextCapabilityAdd'] as $i => $iValue) { |
678
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.SecurityContext.Capability.Add.' . ($i + 1)] = $iValue; |
679
|
|
|
} |
680
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.SecurityContext.ReadOnlyRootFilesystem'] = $depth1Value['SecurityContextReadOnlyRootFilesystem']; |
681
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.SecurityContext.RunAsUser'] = $depth1Value['SecurityContextRunAsUser']; |
682
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.TcpSocket.Port'] = $depth1Value['ReadinessProbeTcpSocketPort']; |
683
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.TcpSocket.Port'] = $depth1Value['LivenessProbeTcpSocketPort']; |
684
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Stdin'] = $depth1Value['Stdin']; |
685
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.StdinOnce'] = $depth1Value['StdinOnce']; |
686
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Tty'] = $depth1Value['Tty']; |
687
|
|
|
$this->options['query']['Container.' . ($depth1 + 1) . '.Gpu'] = $depth1Value['Gpu']; |
688
|
|
|
} |
689
|
|
|
|
690
|
|
|
return $this; |
691
|
|
|
} |
692
|
|
|
|
693
|
|
|
/** |
694
|
|
|
* @param array $hostAliase |
695
|
|
|
* |
696
|
|
|
* @return $this |
697
|
|
|
*/ |
698
|
|
|
public function withHostAliase(array $hostAliase) |
699
|
|
|
{ |
700
|
|
|
$this->data['HostAliase'] = $hostAliase; |
701
|
|
|
foreach ($hostAliase as $depth1 => $depth1Value) { |
702
|
|
|
$this->options['query']['HostAliase.' . ($depth1 + 1) . '.Ip'] = $depth1Value['Ip']; |
703
|
|
|
foreach ($depth1Value['Hostname'] as $i => $iValue) { |
704
|
|
|
$this->options['query']['HostAliase.' . ($depth1 + 1) . '.Hostname.' . ($i + 1)] = $iValue; |
705
|
|
|
} |
706
|
|
|
} |
707
|
|
|
|
708
|
|
|
return $this; |
709
|
|
|
} |
710
|
|
|
|
711
|
|
|
/** |
712
|
|
|
* @param array $initContainer |
713
|
|
|
* |
714
|
|
|
* @return $this |
715
|
|
|
*/ |
716
|
|
|
public function withInitContainer(array $initContainer) |
717
|
|
|
{ |
718
|
|
|
$this->data['InitContainer'] = $initContainer; |
719
|
|
|
foreach ($initContainer as $depth1 => $depth1Value) { |
720
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
721
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Image'] = $depth1Value['Image']; |
722
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Cpu'] = $depth1Value['Cpu']; |
723
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Memory'] = $depth1Value['Memory']; |
724
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.WorkingDir'] = $depth1Value['WorkingDir']; |
725
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.ImagePullPolicy'] = $depth1Value['ImagePullPolicy']; |
726
|
|
|
foreach ($depth1Value['Command'] as $i => $iValue) { |
727
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Command.' . ($i + 1)] = $iValue; |
728
|
|
|
} |
729
|
|
|
foreach ($depth1Value['Arg'] as $i => $iValue) { |
730
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Arg.' . ($i + 1)] = $iValue; |
731
|
|
|
} |
732
|
|
|
foreach ($depth1Value['VolumeMount'] as $depth2 => $depth2Value) { |
733
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.MountPath'] = $depth2Value['MountPath']; |
734
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.ReadOnly'] = $depth2Value['ReadOnly']; |
735
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.Name'] = $depth2Value['Name']; |
736
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.SubPath'] = $depth2Value['SubPath']; |
737
|
|
|
} |
738
|
|
|
foreach ($depth1Value['Port'] as $depth2 => $depth2Value) { |
739
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Port.' . ($depth2 + 1) . '.Protocol'] = $depth2Value['Protocol']; |
740
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Port.' . ($depth2 + 1) . '.Port'] = $depth2Value['Port']; |
741
|
|
|
} |
742
|
|
|
foreach ($depth1Value['EnvironmentVar'] as $depth2 => $depth2Value) { |
743
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.EnvironmentVar.' . ($depth2 + 1) . '.Key'] = $depth2Value['Key']; |
744
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.EnvironmentVar.' . ($depth2 + 1) . '.Value'] = $depth2Value['Value']; |
745
|
|
|
} |
746
|
|
|
foreach ($depth1Value['SecurityContextCapabilityAdd'] as $i => $iValue) { |
747
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.SecurityContext.Capability.Add.' . ($i + 1)] = $iValue; |
748
|
|
|
} |
749
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.SecurityContext.ReadOnlyRootFilesystem'] = $depth1Value['SecurityContextReadOnlyRootFilesystem']; |
750
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.SecurityContext.RunAsUser'] = $depth1Value['SecurityContextRunAsUser']; |
751
|
|
|
$this->options['query']['InitContainer.' . ($depth1 + 1) . '.Gpu'] = $depth1Value['Gpu']; |
752
|
|
|
} |
753
|
|
|
|
754
|
|
|
return $this; |
755
|
|
|
} |
756
|
|
|
|
757
|
|
|
/** |
758
|
|
|
* @param array $imageRegistryCredential |
759
|
|
|
* |
760
|
|
|
* @return $this |
761
|
|
|
*/ |
762
|
|
|
public function withImageRegistryCredential(array $imageRegistryCredential) |
763
|
|
|
{ |
764
|
|
|
$this->data['ImageRegistryCredential'] = $imageRegistryCredential; |
765
|
|
|
foreach ($imageRegistryCredential as $depth1 => $depth1Value) { |
766
|
|
|
$this->options['query']['ImageRegistryCredential.' . ($depth1 + 1) . '.Server'] = $depth1Value['Server']; |
767
|
|
|
$this->options['query']['ImageRegistryCredential.' . ($depth1 + 1) . '.UserName'] = $depth1Value['UserName']; |
768
|
|
|
$this->options['query']['ImageRegistryCredential.' . ($depth1 + 1) . '.Password'] = $depth1Value['Password']; |
769
|
|
|
} |
770
|
|
|
|
771
|
|
|
return $this; |
772
|
|
|
} |
773
|
|
|
|
774
|
|
|
/** |
775
|
|
|
* @param array $tag |
776
|
|
|
* |
777
|
|
|
* @return $this |
778
|
|
|
*/ |
779
|
|
|
public function withTag(array $tag) |
780
|
|
|
{ |
781
|
|
|
$this->data['Tag'] = $tag; |
782
|
|
|
foreach ($tag as $depth1 => $depth1Value) { |
783
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key']; |
784
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value']; |
785
|
|
|
} |
786
|
|
|
|
787
|
|
|
return $this; |
788
|
|
|
} |
789
|
|
|
|
790
|
|
|
/** |
791
|
|
|
* @param array $arn |
792
|
|
|
* |
793
|
|
|
* @return $this |
794
|
|
|
*/ |
795
|
|
|
public function withArn(array $arn) |
796
|
|
|
{ |
797
|
|
|
$this->data['Arn'] = $arn; |
798
|
|
|
foreach ($arn as $depth1 => $depth1Value) { |
799
|
|
|
$this->options['query']['Arn.' . ($depth1 + 1) . '.RoleArn'] = $depth1Value['RoleArn']; |
800
|
|
|
$this->options['query']['Arn.' . ($depth1 + 1) . '.RoleType'] = $depth1Value['RoleType']; |
801
|
|
|
$this->options['query']['Arn.' . ($depth1 + 1) . '.AssumeRoleFor'] = $depth1Value['AssumeRoleFor']; |
802
|
|
|
} |
803
|
|
|
|
804
|
|
|
return $this; |
805
|
|
|
} |
806
|
|
|
|
807
|
|
|
/** |
808
|
|
|
* @param array $dnsConfigNameServer |
809
|
|
|
* |
810
|
|
|
* @return $this |
811
|
|
|
*/ |
812
|
|
|
public function withDnsConfigNameServer(array $dnsConfigNameServer) |
813
|
|
|
{ |
814
|
|
|
$this->data['DnsConfigNameServer'] = $dnsConfigNameServer; |
815
|
|
|
foreach ($dnsConfigNameServer as $i => $iValue) { |
816
|
|
|
$this->options['query']['DnsConfig.NameServer.' . ($i + 1)] = $iValue; |
817
|
|
|
} |
818
|
|
|
|
819
|
|
|
return $this; |
820
|
|
|
} |
821
|
|
|
|
822
|
|
|
/** |
823
|
|
|
* @param array $securityContextSysctl |
824
|
|
|
* |
825
|
|
|
* @return $this |
826
|
|
|
*/ |
827
|
|
|
public function withSecurityContextSysctl(array $securityContextSysctl) |
828
|
|
|
{ |
829
|
|
|
$this->data['SecurityContextSysctl'] = $securityContextSysctl; |
830
|
|
|
foreach ($securityContextSysctl as $depth1 => $depth1Value) { |
831
|
|
|
$this->options['query']['SecurityContext.Sysctl.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
832
|
|
|
$this->options['query']['SecurityContext.Sysctl.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value']; |
833
|
|
|
} |
834
|
|
|
|
835
|
|
|
return $this; |
836
|
|
|
} |
837
|
|
|
|
838
|
|
|
/** |
839
|
|
|
* @param array $dnsConfigOption |
840
|
|
|
* |
841
|
|
|
* @return $this |
842
|
|
|
*/ |
843
|
|
|
public function withDnsConfigOption(array $dnsConfigOption) |
844
|
|
|
{ |
845
|
|
|
$this->data['DnsConfigOption'] = $dnsConfigOption; |
846
|
|
|
foreach ($dnsConfigOption as $depth1 => $depth1Value) { |
847
|
|
|
$this->options['query']['DnsConfig.Option.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
848
|
|
|
$this->options['query']['DnsConfig.Option.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value']; |
849
|
|
|
} |
850
|
|
|
|
851
|
|
|
return $this; |
852
|
|
|
} |
853
|
|
|
|
854
|
|
|
/** |
855
|
|
|
* @param array $dnsConfigSearch |
856
|
|
|
* |
857
|
|
|
* @return $this |
858
|
|
|
*/ |
859
|
|
|
public function withDnsConfigSearch(array $dnsConfigSearch) |
860
|
|
|
{ |
861
|
|
|
$this->data['DnsConfigSearch'] = $dnsConfigSearch; |
862
|
|
|
foreach ($dnsConfigSearch as $i => $iValue) { |
863
|
|
|
$this->options['query']['DnsConfig.Search.' . ($i + 1)] = $iValue; |
864
|
|
|
} |
865
|
|
|
|
866
|
|
|
return $this; |
867
|
|
|
} |
868
|
|
|
|
869
|
|
|
/** |
870
|
|
|
* @param array $volume |
871
|
|
|
* |
872
|
|
|
* @return $this |
873
|
|
|
*/ |
874
|
|
|
public function withVolume(array $volume) |
875
|
|
|
{ |
876
|
|
|
$this->data['Volume'] = $volume; |
877
|
|
|
foreach ($volume as $depth1 => $depth1Value) { |
878
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
879
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.NFSVolume.Server'] = $depth1Value['NFSVolumeServer']; |
880
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.NFSVolume.Path'] = $depth1Value['NFSVolumePath']; |
881
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.NFSVolume.ReadOnly'] = $depth1Value['NFSVolumeReadOnly']; |
882
|
|
|
foreach ($depth1Value['ConfigFileVolumeConfigFileToPath'] as $depth2 => $depth2Value) { |
883
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.ConfigFileVolume.ConfigFileToPath.' . ($depth2 + 1) . '.Content'] = $depth2Value['Content']; |
884
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.ConfigFileVolume.ConfigFileToPath.' . ($depth2 + 1) . '.Path'] = $depth2Value['Path']; |
885
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.ConfigFileVolume.ConfigFileToPath.' . ($depth2 + 1) . '.Mode'] = $depth2Value['Mode']; |
886
|
|
|
} |
887
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.Type'] = $depth1Value['Type']; |
888
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.EmptyDirVolume.Medium'] = $depth1Value['EmptyDirVolumeMedium']; |
889
|
|
|
$this->options['query']['Volume.' . ($depth1 + 1) . '.ConfigFileVolume.DefaultModel'] = $depth1Value['ConfigFileVolumeDefaultModel']; |
890
|
|
|
} |
891
|
|
|
|
892
|
|
|
return $this; |
893
|
|
|
} |
894
|
|
|
} |
895
|
|
|
|