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