|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace AlibabaCloud\EHPC\V20170714; |
|
4
|
|
|
|
|
5
|
|
|
use AlibabaCloud\Client\Resolver\ApiResolver; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* @method AddNodes addNodes(array $options = []) |
|
9
|
|
|
* @method AddUsers addUsers(array $options = []) |
|
10
|
|
|
* @method CreateCluster createCluster(array $options = []) |
|
11
|
|
|
* @method CreateJobTemplate createJobTemplate(array $options = []) |
|
12
|
|
|
* @method DeleteCluster deleteCluster(array $options = []) |
|
13
|
|
|
* @method DeleteJobs deleteJobs(array $options = []) |
|
14
|
|
|
* @method DeleteJobTemplates deleteJobTemplates(array $options = []) |
|
15
|
|
|
* @method DeleteNodes deleteNodes(array $options = []) |
|
16
|
|
|
* @method DeleteUsers deleteUsers(array $options = []) |
|
17
|
|
|
* @method DescribeCluster describeCluster(array $options = []) |
|
18
|
|
|
* @method EditJobTemplate editJobTemplate(array $options = []) |
|
19
|
|
|
* @method GetAutoScaleConfig getAutoScaleConfig(array $options = []) |
|
20
|
|
|
* @method ListClusterLogs listClusterLogs(array $options = []) |
|
21
|
|
|
* @method ListClusters listClusters(array $options = []) |
|
22
|
|
|
* @method ListCurrentClientVersion listCurrentClientVersion(array $options = []) |
|
23
|
|
|
* @method ListCustomImages listCustomImages(array $options = []) |
|
24
|
|
|
* @method ListImages listImages(array $options = []) |
|
25
|
|
|
* @method ListJobs listJobs(array $options = []) |
|
26
|
|
|
* @method ListJobTemplates listJobTemplates(array $options = []) |
|
27
|
|
|
* @method ListNodes listNodes(array $options = []) |
|
28
|
|
|
* @method ListNodesNoPaging listNodesNoPaging(array $options = []) |
|
29
|
|
|
* @method ListPreferredEcsTypes listPreferredEcsTypes(array $options = []) |
|
30
|
|
|
* @method ListRegions listRegions(array $options = []) |
|
31
|
|
|
* @method ListSoftwares listSoftwares(array $options = []) |
|
32
|
|
|
* @method ListUsers listUsers(array $options = []) |
|
33
|
|
|
* @method ListVolumes listVolumes(array $options = []) |
|
34
|
|
|
* @method ModifyClusterAttributes modifyClusterAttributes(array $options = []) |
|
35
|
|
|
* @method ModifyUserGroups modifyUserGroups(array $options = []) |
|
36
|
|
|
* @method ModifyUserPasswords modifyUserPasswords(array $options = []) |
|
37
|
|
|
* @method RerunJobs rerunJobs(array $options = []) |
|
38
|
|
|
* @method ResetNodes resetNodes(array $options = []) |
|
39
|
|
|
* @method SetAutoScaleConfig setAutoScaleConfig(array $options = []) |
|
40
|
|
|
* @method SetJobUser setJobUser(array $options = []) |
|
41
|
|
|
* @method StopJobs stopJobs(array $options = []) |
|
42
|
|
|
* @method SubmitJob submitJob(array $options = []) |
|
43
|
|
|
* @method UpgradeClient upgradeClient(array $options = []) |
|
44
|
|
|
*/ |
|
45
|
|
|
class EHPCApiResolver extends ApiResolver |
|
46
|
|
|
{ |
|
47
|
|
|
} |
|
48
|
|
|
|
|
49
|
|
|
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc |
|
50
|
|
|
{ |
|
51
|
|
|
/** @var string */ |
|
52
|
|
|
public $product = 'EHPC'; |
|
53
|
|
|
|
|
54
|
|
|
/** @var string */ |
|
55
|
|
|
public $version = '2017-07-14'; |
|
56
|
|
|
} |
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* @method string getImageId() |
|
60
|
|
|
* @method $this withImageId($value) |
|
61
|
|
|
* @method string getCount() |
|
62
|
|
|
* @method $this withCount($value) |
|
63
|
|
|
* @method string getClusterId() |
|
64
|
|
|
* @method $this withClusterId($value) |
|
65
|
|
|
* @method string getComputeSpotStrategy() |
|
66
|
|
|
* @method $this withComputeSpotStrategy($value) |
|
67
|
|
|
* @method string getImageOwnerAlias() |
|
68
|
|
|
* @method $this withImageOwnerAlias($value) |
|
69
|
|
|
* @method string getComputeSpotPriceLimit() |
|
70
|
|
|
* @method $this withComputeSpotPriceLimit($value) |
|
71
|
|
|
*/ |
|
72
|
|
|
class AddNodes extends Rpc |
|
73
|
|
|
{ |
|
74
|
|
|
} |
|
75
|
|
|
|
|
76
|
|
|
/** |
|
77
|
|
|
* @method string getClusterId() |
|
78
|
|
|
* @method $this withClusterId($value) |
|
79
|
|
|
* @method string getReleaseInstance() |
|
80
|
|
|
* @method $this withReleaseInstance($value) |
|
81
|
|
|
* @method array getUser() |
|
82
|
|
|
*/ |
|
83
|
|
|
class AddUsers extends Rpc |
|
84
|
|
|
{ |
|
85
|
|
|
|
|
86
|
|
|
/** |
|
87
|
|
|
* @param array $user |
|
88
|
|
|
* |
|
89
|
|
|
* @return $this |
|
90
|
|
|
*/ |
|
91
|
|
|
public function withUser(array $user) |
|
92
|
|
|
{ |
|
93
|
|
|
$this->data['User'] = $user; |
|
94
|
|
|
foreach ($user as $depth1 => $depth1Value) { |
|
95
|
|
|
if(isset($depth1Value['Password'])){ |
|
96
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Password'] = $depth1Value['Password']; |
|
97
|
|
|
} |
|
98
|
|
|
if(isset($depth1Value['Name'])){ |
|
99
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
|
100
|
|
|
} |
|
101
|
|
|
if(isset($depth1Value['Group'])){ |
|
102
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Group'] = $depth1Value['Group']; |
|
103
|
|
|
} |
|
104
|
|
|
} |
|
105
|
|
|
|
|
106
|
|
|
return $this; |
|
107
|
|
|
} |
|
108
|
|
|
} |
|
109
|
|
|
|
|
110
|
|
|
/** |
|
111
|
|
|
* @method string getSccClusterId() |
|
112
|
|
|
* @method $this withSccClusterId($value) |
|
113
|
|
|
* @method string getImageId() |
|
114
|
|
|
* @method $this withImageId($value) |
|
115
|
|
|
* @method string getEcsOrderManagerInstanceType() |
|
116
|
|
|
* @method string getEhpcVersion() |
|
117
|
|
|
* @method $this withEhpcVersion($value) |
|
118
|
|
|
* @method string getAccountType() |
|
119
|
|
|
* @method $this withAccountType($value) |
|
120
|
|
|
* @method string getSecurityGroupId() |
|
121
|
|
|
* @method $this withSecurityGroupId($value) |
|
122
|
|
|
* @method string getDescription() |
|
123
|
|
|
* @method $this withDescription($value) |
|
124
|
|
|
* @method string getKeyPairName() |
|
125
|
|
|
* @method $this withKeyPairName($value) |
|
126
|
|
|
* @method string getSecurityGroupName() |
|
127
|
|
|
* @method $this withSecurityGroupName($value) |
|
128
|
|
|
* @method string getEcsOrderComputeInstanceType() |
|
129
|
|
|
* @method string getImageOwnerAlias() |
|
130
|
|
|
* @method $this withImageOwnerAlias($value) |
|
131
|
|
|
* @method string getVolumeType() |
|
132
|
|
|
* @method $this withVolumeType($value) |
|
133
|
|
|
* @method string getEcsOrderManagerCount() |
|
134
|
|
|
* @method string getPassword() |
|
135
|
|
|
* @method $this withPassword($value) |
|
136
|
|
|
* @method string getEcsOrderLoginCount() |
|
137
|
|
|
* @method string getComputeSpotPriceLimit() |
|
138
|
|
|
* @method $this withComputeSpotPriceLimit($value) |
|
139
|
|
|
* @method string getVolumeProtocol() |
|
140
|
|
|
* @method $this withVolumeProtocol($value) |
|
141
|
|
|
* @method string getOsTag() |
|
142
|
|
|
* @method $this withOsTag($value) |
|
143
|
|
|
* @method string getRemoteDirectory() |
|
144
|
|
|
* @method $this withRemoteDirectory($value) |
|
145
|
|
|
* @method string getEcsOrderComputeCount() |
|
146
|
|
|
* @method string getComputeSpotStrategy() |
|
147
|
|
|
* @method $this withComputeSpotStrategy($value) |
|
148
|
|
|
* @method string getVSwitchId() |
|
149
|
|
|
* @method $this withVSwitchId($value) |
|
150
|
|
|
* @method array getApplication() |
|
151
|
|
|
* @method string getEcsChargeType() |
|
152
|
|
|
* @method $this withEcsChargeType($value) |
|
153
|
|
|
* @method string getVpcId() |
|
154
|
|
|
* @method $this withVpcId($value) |
|
155
|
|
|
* @method string getHaEnable() |
|
156
|
|
|
* @method $this withHaEnable($value) |
|
157
|
|
|
* @method string getName() |
|
158
|
|
|
* @method $this withName($value) |
|
159
|
|
|
* @method string getSchedulerType() |
|
160
|
|
|
* @method $this withSchedulerType($value) |
|
161
|
|
|
* @method string getVolumeId() |
|
162
|
|
|
* @method $this withVolumeId($value) |
|
163
|
|
|
* @method string getVolumeMountpoint() |
|
164
|
|
|
* @method $this withVolumeMountpoint($value) |
|
165
|
|
|
* @method string getEcsOrderLoginInstanceType() |
|
166
|
|
|
* @method string getZoneId() |
|
167
|
|
|
* @method $this withZoneId($value) |
|
168
|
|
|
*/ |
|
169
|
|
|
class CreateCluster extends Rpc |
|
170
|
|
|
{ |
|
171
|
|
|
|
|
172
|
|
|
/** |
|
173
|
|
|
* @param string $value |
|
174
|
|
|
* |
|
175
|
|
|
* @return $this |
|
176
|
|
|
*/ |
|
177
|
|
|
public function withEcsOrderManagerInstanceType($value) |
|
178
|
|
|
{ |
|
179
|
|
|
$this->data['EcsOrderManagerInstanceType'] = $value; |
|
180
|
|
|
$this->options['query']['EcsOrder.Manager.InstanceType'] = $value; |
|
181
|
|
|
|
|
182
|
|
|
return $this; |
|
183
|
|
|
} |
|
184
|
|
|
|
|
185
|
|
|
/** |
|
186
|
|
|
* @param string $value |
|
187
|
|
|
* |
|
188
|
|
|
* @return $this |
|
189
|
|
|
*/ |
|
190
|
|
|
public function withEcsOrderComputeInstanceType($value) |
|
191
|
|
|
{ |
|
192
|
|
|
$this->data['EcsOrderComputeInstanceType'] = $value; |
|
193
|
|
|
$this->options['query']['EcsOrder.Compute.InstanceType'] = $value; |
|
194
|
|
|
|
|
195
|
|
|
return $this; |
|
196
|
|
|
} |
|
197
|
|
|
|
|
198
|
|
|
/** |
|
199
|
|
|
* @param string $value |
|
200
|
|
|
* |
|
201
|
|
|
* @return $this |
|
202
|
|
|
*/ |
|
203
|
|
|
public function withEcsOrderManagerCount($value) |
|
204
|
|
|
{ |
|
205
|
|
|
$this->data['EcsOrderManagerCount'] = $value; |
|
206
|
|
|
$this->options['query']['EcsOrder.Manager.Count'] = $value; |
|
207
|
|
|
|
|
208
|
|
|
return $this; |
|
209
|
|
|
} |
|
210
|
|
|
|
|
211
|
|
|
/** |
|
212
|
|
|
* @param string $value |
|
213
|
|
|
* |
|
214
|
|
|
* @return $this |
|
215
|
|
|
*/ |
|
216
|
|
|
public function withEcsOrderLoginCount($value) |
|
217
|
|
|
{ |
|
218
|
|
|
$this->data['EcsOrderLoginCount'] = $value; |
|
219
|
|
|
$this->options['query']['EcsOrder.Login.Count'] = $value; |
|
220
|
|
|
|
|
221
|
|
|
return $this; |
|
222
|
|
|
} |
|
223
|
|
|
|
|
224
|
|
|
/** |
|
225
|
|
|
* @param string $value |
|
226
|
|
|
* |
|
227
|
|
|
* @return $this |
|
228
|
|
|
*/ |
|
229
|
|
|
public function withEcsOrderComputeCount($value) |
|
230
|
|
|
{ |
|
231
|
|
|
$this->data['EcsOrderComputeCount'] = $value; |
|
232
|
|
|
$this->options['query']['EcsOrder.Compute.Count'] = $value; |
|
233
|
|
|
|
|
234
|
|
|
return $this; |
|
235
|
|
|
} |
|
236
|
|
|
|
|
237
|
|
|
/** |
|
238
|
|
|
* @param array $application |
|
239
|
|
|
* |
|
240
|
|
|
* @return $this |
|
241
|
|
|
*/ |
|
242
|
|
|
public function withApplication(array $application) |
|
243
|
|
|
{ |
|
244
|
|
|
$this->data['Application'] = $application; |
|
245
|
|
|
foreach ($application as $depth1 => $depth1Value) { |
|
246
|
|
|
if(isset($depth1Value['Tag'])){ |
|
247
|
|
|
$this->options['query']['Application.' . ($depth1 + 1) . '.Tag'] = $depth1Value['Tag']; |
|
248
|
|
|
} |
|
249
|
|
|
} |
|
250
|
|
|
|
|
251
|
|
|
return $this; |
|
252
|
|
|
} |
|
253
|
|
|
|
|
254
|
|
|
/** |
|
255
|
|
|
* @param string $value |
|
256
|
|
|
* |
|
257
|
|
|
* @return $this |
|
258
|
|
|
*/ |
|
259
|
|
|
public function withEcsOrderLoginInstanceType($value) |
|
260
|
|
|
{ |
|
261
|
|
|
$this->data['EcsOrderLoginInstanceType'] = $value; |
|
262
|
|
|
$this->options['query']['EcsOrder.Login.InstanceType'] = $value; |
|
263
|
|
|
|
|
264
|
|
|
return $this; |
|
265
|
|
|
} |
|
266
|
|
|
} |
|
267
|
|
|
|
|
268
|
|
|
/** |
|
269
|
|
|
* @method string getStderrRedirectPath() |
|
270
|
|
|
* @method $this withStderrRedirectPath($value) |
|
271
|
|
|
* @method string getCommandLine() |
|
272
|
|
|
* @method $this withCommandLine($value) |
|
273
|
|
|
* @method string getArrayRequest() |
|
274
|
|
|
* @method $this withArrayRequest($value) |
|
275
|
|
|
* @method string getPackagePath() |
|
276
|
|
|
* @method $this withPackagePath($value) |
|
277
|
|
|
* @method string getStdoutRedirectPath() |
|
278
|
|
|
* @method $this withStdoutRedirectPath($value) |
|
279
|
|
|
* @method string getVariables() |
|
280
|
|
|
* @method $this withVariables($value) |
|
281
|
|
|
* @method string getRunasUser() |
|
282
|
|
|
* @method $this withRunasUser($value) |
|
283
|
|
|
* @method string getReRunable() |
|
284
|
|
|
* @method $this withReRunable($value) |
|
285
|
|
|
* @method string getPriority() |
|
286
|
|
|
* @method $this withPriority($value) |
|
287
|
|
|
* @method string getName() |
|
288
|
|
|
* @method $this withName($value) |
|
289
|
|
|
*/ |
|
290
|
|
|
class CreateJobTemplate extends Rpc |
|
291
|
|
|
{ |
|
292
|
|
|
} |
|
293
|
|
|
|
|
294
|
|
|
/** |
|
295
|
|
|
* @method string getClusterId() |
|
296
|
|
|
* @method $this withClusterId($value) |
|
297
|
|
|
* @method string getReleaseInstance() |
|
298
|
|
|
* @method $this withReleaseInstance($value) |
|
299
|
|
|
*/ |
|
300
|
|
|
class DeleteCluster extends Rpc |
|
301
|
|
|
{ |
|
302
|
|
|
} |
|
303
|
|
|
|
|
304
|
|
|
/** |
|
305
|
|
|
* @method string getJobs() |
|
306
|
|
|
* @method $this withJobs($value) |
|
307
|
|
|
* @method string getClusterId() |
|
308
|
|
|
* @method $this withClusterId($value) |
|
309
|
|
|
*/ |
|
310
|
|
|
class DeleteJobs extends Rpc |
|
311
|
|
|
{ |
|
312
|
|
|
} |
|
313
|
|
|
|
|
314
|
|
|
/** |
|
315
|
|
|
* @method string getTemplates() |
|
316
|
|
|
* @method $this withTemplates($value) |
|
317
|
|
|
*/ |
|
318
|
|
|
class DeleteJobTemplates extends Rpc |
|
319
|
|
|
{ |
|
320
|
|
|
} |
|
321
|
|
|
|
|
322
|
|
|
/** |
|
323
|
|
|
* @method array getInstance() |
|
324
|
|
|
* @method string getClusterId() |
|
325
|
|
|
* @method $this withClusterId($value) |
|
326
|
|
|
* @method string getReleaseInstance() |
|
327
|
|
|
* @method $this withReleaseInstance($value) |
|
328
|
|
|
*/ |
|
329
|
|
|
class DeleteNodes extends Rpc |
|
330
|
|
|
{ |
|
331
|
|
|
|
|
332
|
|
|
/** |
|
333
|
|
|
* @param array $instance |
|
334
|
|
|
* |
|
335
|
|
|
* @return $this |
|
336
|
|
|
*/ |
|
337
|
|
|
public function withInstance(array $instance) |
|
338
|
|
|
{ |
|
339
|
|
|
$this->data['Instance'] = $instance; |
|
340
|
|
|
foreach ($instance as $depth1 => $depth1Value) { |
|
341
|
|
|
if(isset($depth1Value['Id'])){ |
|
342
|
|
|
$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id']; |
|
343
|
|
|
} |
|
344
|
|
|
} |
|
345
|
|
|
|
|
346
|
|
|
return $this; |
|
347
|
|
|
} |
|
348
|
|
|
} |
|
349
|
|
|
|
|
350
|
|
|
/** |
|
351
|
|
|
* @method string getClusterId() |
|
352
|
|
|
* @method $this withClusterId($value) |
|
353
|
|
|
* @method array getUser() |
|
354
|
|
|
*/ |
|
355
|
|
|
class DeleteUsers extends Rpc |
|
356
|
|
|
{ |
|
357
|
|
|
|
|
358
|
|
|
/** |
|
359
|
|
|
* @param array $user |
|
360
|
|
|
* |
|
361
|
|
|
* @return $this |
|
362
|
|
|
*/ |
|
363
|
|
|
public function withUser(array $user) |
|
364
|
|
|
{ |
|
365
|
|
|
$this->data['User'] = $user; |
|
366
|
|
|
foreach ($user as $depth1 => $depth1Value) { |
|
367
|
|
|
if(isset($depth1Value['Name'])){ |
|
368
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
|
369
|
|
|
} |
|
370
|
|
|
} |
|
371
|
|
|
|
|
372
|
|
|
return $this; |
|
373
|
|
|
} |
|
374
|
|
|
} |
|
375
|
|
|
|
|
376
|
|
|
/** |
|
377
|
|
|
* @method string getClusterId() |
|
378
|
|
|
* @method $this withClusterId($value) |
|
379
|
|
|
*/ |
|
380
|
|
|
class DescribeCluster extends Rpc |
|
381
|
|
|
{ |
|
382
|
|
|
} |
|
383
|
|
|
|
|
384
|
|
|
/** |
|
385
|
|
|
* @method string getStderrRedirectPath() |
|
386
|
|
|
* @method $this withStderrRedirectPath($value) |
|
387
|
|
|
* @method string getCommandLine() |
|
388
|
|
|
* @method $this withCommandLine($value) |
|
389
|
|
|
* @method string getArrayRequest() |
|
390
|
|
|
* @method $this withArrayRequest($value) |
|
391
|
|
|
* @method string getPackagePath() |
|
392
|
|
|
* @method $this withPackagePath($value) |
|
393
|
|
|
* @method string getStdoutRedirectPath() |
|
394
|
|
|
* @method $this withStdoutRedirectPath($value) |
|
395
|
|
|
* @method string getVariables() |
|
396
|
|
|
* @method $this withVariables($value) |
|
397
|
|
|
* @method string getRunasUser() |
|
398
|
|
|
* @method $this withRunasUser($value) |
|
399
|
|
|
* @method string getReRunable() |
|
400
|
|
|
* @method $this withReRunable($value) |
|
401
|
|
|
* @method string getTemplateId() |
|
402
|
|
|
* @method $this withTemplateId($value) |
|
403
|
|
|
* @method string getPriority() |
|
404
|
|
|
* @method $this withPriority($value) |
|
405
|
|
|
* @method string getName() |
|
406
|
|
|
* @method $this withName($value) |
|
407
|
|
|
*/ |
|
408
|
|
|
class EditJobTemplate extends Rpc |
|
409
|
|
|
{ |
|
410
|
|
|
} |
|
411
|
|
|
|
|
412
|
|
|
/** |
|
413
|
|
|
* @method string getClusterId() |
|
414
|
|
|
* @method $this withClusterId($value) |
|
415
|
|
|
*/ |
|
416
|
|
|
class GetAutoScaleConfig extends Rpc |
|
417
|
|
|
{ |
|
418
|
|
|
} |
|
419
|
|
|
|
|
420
|
|
|
/** |
|
421
|
|
|
* @method string getClusterId() |
|
422
|
|
|
* @method $this withClusterId($value) |
|
423
|
|
|
* @method string getPageNumber() |
|
424
|
|
|
* @method $this withPageNumber($value) |
|
425
|
|
|
* @method string getPageSize() |
|
426
|
|
|
* @method $this withPageSize($value) |
|
427
|
|
|
*/ |
|
428
|
|
|
class ListClusterLogs extends Rpc |
|
429
|
|
|
{ |
|
430
|
|
|
} |
|
431
|
|
|
|
|
432
|
|
|
/** |
|
433
|
|
|
* @method string getPageNumber() |
|
434
|
|
|
* @method $this withPageNumber($value) |
|
435
|
|
|
* @method string getPageSize() |
|
436
|
|
|
* @method $this withPageSize($value) |
|
437
|
|
|
*/ |
|
438
|
|
|
class ListClusters extends Rpc |
|
439
|
|
|
{ |
|
440
|
|
|
} |
|
441
|
|
|
|
|
442
|
|
|
class ListCurrentClientVersion extends Rpc |
|
443
|
|
|
{ |
|
444
|
|
|
} |
|
445
|
|
|
|
|
446
|
|
|
/** |
|
447
|
|
|
* @method string getImageOwnerAlias() |
|
448
|
|
|
* @method $this withImageOwnerAlias($value) |
|
449
|
|
|
* @method string getBaseOsTag() |
|
450
|
|
|
* @method $this withBaseOsTag($value) |
|
451
|
|
|
*/ |
|
452
|
|
|
class ListCustomImages extends Rpc |
|
453
|
|
|
{ |
|
454
|
|
|
} |
|
455
|
|
|
|
|
456
|
|
|
class ListImages extends Rpc |
|
457
|
|
|
{ |
|
458
|
|
|
} |
|
459
|
|
|
|
|
460
|
|
|
/** |
|
461
|
|
|
* @method string getOwner() |
|
462
|
|
|
* @method $this withOwner($value) |
|
463
|
|
|
* @method string getClusterId() |
|
464
|
|
|
* @method $this withClusterId($value) |
|
465
|
|
|
* @method string getRerunable() |
|
466
|
|
|
* @method $this withRerunable($value) |
|
467
|
|
|
* @method string getPageNumber() |
|
468
|
|
|
* @method $this withPageNumber($value) |
|
469
|
|
|
* @method string getPageSize() |
|
470
|
|
|
* @method $this withPageSize($value) |
|
471
|
|
|
* @method string getState() |
|
472
|
|
|
* @method $this withState($value) |
|
473
|
|
|
*/ |
|
474
|
|
|
class ListJobs extends Rpc |
|
475
|
|
|
{ |
|
476
|
|
|
} |
|
477
|
|
|
|
|
478
|
|
|
/** |
|
479
|
|
|
* @method string getPageNumber() |
|
480
|
|
|
* @method $this withPageNumber($value) |
|
481
|
|
|
* @method string getName() |
|
482
|
|
|
* @method $this withName($value) |
|
483
|
|
|
* @method string getPageSize() |
|
484
|
|
|
* @method $this withPageSize($value) |
|
485
|
|
|
*/ |
|
486
|
|
|
class ListJobTemplates extends Rpc |
|
487
|
|
|
{ |
|
488
|
|
|
} |
|
489
|
|
|
|
|
490
|
|
|
/** |
|
491
|
|
|
* @method string getRole() |
|
492
|
|
|
* @method $this withRole($value) |
|
493
|
|
|
* @method string getClusterId() |
|
494
|
|
|
* @method $this withClusterId($value) |
|
495
|
|
|
* @method string getPageNumber() |
|
496
|
|
|
* @method $this withPageNumber($value) |
|
497
|
|
|
* @method string getHostName() |
|
498
|
|
|
* @method $this withHostName($value) |
|
499
|
|
|
* @method string getPageSize() |
|
500
|
|
|
* @method $this withPageSize($value) |
|
501
|
|
|
*/ |
|
502
|
|
|
class ListNodes extends Rpc |
|
503
|
|
|
{ |
|
504
|
|
|
} |
|
505
|
|
|
|
|
506
|
|
|
/** |
|
507
|
|
|
* @method string getRole() |
|
508
|
|
|
* @method $this withRole($value) |
|
509
|
|
|
* @method string getClusterId() |
|
510
|
|
|
* @method $this withClusterId($value) |
|
511
|
|
|
* @method string getHostName() |
|
512
|
|
|
* @method $this withHostName($value) |
|
513
|
|
|
* @method string getOnlyDetached() |
|
514
|
|
|
* @method $this withOnlyDetached($value) |
|
515
|
|
|
*/ |
|
516
|
|
|
class ListNodesNoPaging extends Rpc |
|
517
|
|
|
{ |
|
518
|
|
|
} |
|
519
|
|
|
|
|
520
|
|
|
/** |
|
521
|
|
|
* @method string getSpotStrategy() |
|
522
|
|
|
* @method $this withSpotStrategy($value) |
|
523
|
|
|
* @method string getZoneId() |
|
524
|
|
|
* @method $this withZoneId($value) |
|
525
|
|
|
*/ |
|
526
|
|
|
class ListPreferredEcsTypes extends Rpc |
|
527
|
|
|
{ |
|
528
|
|
|
} |
|
529
|
|
|
|
|
530
|
|
|
class ListRegions extends Rpc |
|
531
|
|
|
{ |
|
532
|
|
|
} |
|
533
|
|
|
|
|
534
|
|
|
/** |
|
535
|
|
|
* @method string getEhpcVersion() |
|
536
|
|
|
* @method $this withEhpcVersion($value) |
|
537
|
|
|
*/ |
|
538
|
|
|
class ListSoftwares extends Rpc |
|
539
|
|
|
{ |
|
540
|
|
|
} |
|
541
|
|
|
|
|
542
|
|
|
/** |
|
543
|
|
|
* @method string getClusterId() |
|
544
|
|
|
* @method $this withClusterId($value) |
|
545
|
|
|
* @method string getPageNumber() |
|
546
|
|
|
* @method $this withPageNumber($value) |
|
547
|
|
|
* @method string getPageSize() |
|
548
|
|
|
* @method $this withPageSize($value) |
|
549
|
|
|
*/ |
|
550
|
|
|
class ListUsers extends Rpc |
|
551
|
|
|
{ |
|
552
|
|
|
} |
|
553
|
|
|
|
|
554
|
|
|
/** |
|
555
|
|
|
* @method string getPageNumber() |
|
556
|
|
|
* @method $this withPageNumber($value) |
|
557
|
|
|
* @method string getPageSize() |
|
558
|
|
|
* @method $this withPageSize($value) |
|
559
|
|
|
*/ |
|
560
|
|
|
class ListVolumes extends Rpc |
|
561
|
|
|
{ |
|
562
|
|
|
} |
|
563
|
|
|
|
|
564
|
|
|
/** |
|
565
|
|
|
* @method string getDescription() |
|
566
|
|
|
* @method $this withDescription($value) |
|
567
|
|
|
* @method string getClusterId() |
|
568
|
|
|
* @method $this withClusterId($value) |
|
569
|
|
|
* @method string getName() |
|
570
|
|
|
* @method $this withName($value) |
|
571
|
|
|
*/ |
|
572
|
|
|
class ModifyClusterAttributes extends Rpc |
|
573
|
|
|
{ |
|
574
|
|
|
} |
|
575
|
|
|
|
|
576
|
|
|
/** |
|
577
|
|
|
* @method string getClusterId() |
|
578
|
|
|
* @method $this withClusterId($value) |
|
579
|
|
|
* @method array getUser() |
|
580
|
|
|
*/ |
|
581
|
|
|
class ModifyUserGroups extends Rpc |
|
582
|
|
|
{ |
|
583
|
|
|
|
|
584
|
|
|
/** |
|
585
|
|
|
* @param array $user |
|
586
|
|
|
* |
|
587
|
|
|
* @return $this |
|
588
|
|
|
*/ |
|
589
|
|
|
public function withUser(array $user) |
|
590
|
|
|
{ |
|
591
|
|
|
$this->data['User'] = $user; |
|
592
|
|
|
foreach ($user as $depth1 => $depth1Value) { |
|
593
|
|
|
if(isset($depth1Value['Name'])){ |
|
594
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
|
595
|
|
|
} |
|
596
|
|
|
if(isset($depth1Value['Group'])){ |
|
597
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Group'] = $depth1Value['Group']; |
|
598
|
|
|
} |
|
599
|
|
|
} |
|
600
|
|
|
|
|
601
|
|
|
return $this; |
|
602
|
|
|
} |
|
603
|
|
|
} |
|
604
|
|
|
|
|
605
|
|
|
/** |
|
606
|
|
|
* @method string getClusterId() |
|
607
|
|
|
* @method $this withClusterId($value) |
|
608
|
|
|
* @method array getUser() |
|
609
|
|
|
*/ |
|
610
|
|
|
class ModifyUserPasswords extends Rpc |
|
611
|
|
|
{ |
|
612
|
|
|
|
|
613
|
|
|
/** |
|
614
|
|
|
* @param array $user |
|
615
|
|
|
* |
|
616
|
|
|
* @return $this |
|
617
|
|
|
*/ |
|
618
|
|
|
public function withUser(array $user) |
|
619
|
|
|
{ |
|
620
|
|
|
$this->data['User'] = $user; |
|
621
|
|
|
foreach ($user as $depth1 => $depth1Value) { |
|
622
|
|
|
if(isset($depth1Value['Password'])){ |
|
623
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Password'] = $depth1Value['Password']; |
|
624
|
|
|
} |
|
625
|
|
|
if(isset($depth1Value['Name'])){ |
|
626
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
|
627
|
|
|
} |
|
628
|
|
|
} |
|
629
|
|
|
|
|
630
|
|
|
return $this; |
|
631
|
|
|
} |
|
632
|
|
|
} |
|
633
|
|
|
|
|
634
|
|
|
/** |
|
635
|
|
|
* @method string getJobs() |
|
636
|
|
|
* @method $this withJobs($value) |
|
637
|
|
|
* @method string getClusterId() |
|
638
|
|
|
* @method $this withClusterId($value) |
|
639
|
|
|
*/ |
|
640
|
|
|
class RerunJobs extends Rpc |
|
641
|
|
|
{ |
|
642
|
|
|
} |
|
643
|
|
|
|
|
644
|
|
|
/** |
|
645
|
|
|
* @method array getInstance() |
|
646
|
|
|
* @method string getClusterId() |
|
647
|
|
|
* @method $this withClusterId($value) |
|
648
|
|
|
*/ |
|
649
|
|
|
class ResetNodes extends Rpc |
|
650
|
|
|
{ |
|
651
|
|
|
|
|
652
|
|
|
/** |
|
653
|
|
|
* @param array $instance |
|
654
|
|
|
* |
|
655
|
|
|
* @return $this |
|
656
|
|
|
*/ |
|
657
|
|
|
public function withInstance(array $instance) |
|
658
|
|
|
{ |
|
659
|
|
|
$this->data['Instance'] = $instance; |
|
660
|
|
|
foreach ($instance as $depth1 => $depth1Value) { |
|
661
|
|
|
if(isset($depth1Value['Id'])){ |
|
662
|
|
|
$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id']; |
|
663
|
|
|
} |
|
664
|
|
|
} |
|
665
|
|
|
|
|
666
|
|
|
return $this; |
|
667
|
|
|
} |
|
668
|
|
|
} |
|
669
|
|
|
|
|
670
|
|
|
/** |
|
671
|
|
|
* @method string getExcludeNodes() |
|
672
|
|
|
* @method $this withExcludeNodes($value) |
|
673
|
|
|
* @method string getExtraNodesGrowRatio() |
|
674
|
|
|
* @method $this withExtraNodesGrowRatio($value) |
|
675
|
|
|
* @method string getShrinkIdleTimes() |
|
676
|
|
|
* @method $this withShrinkIdleTimes($value) |
|
677
|
|
|
* @method string getGrowTimeoutInMinutes() |
|
678
|
|
|
* @method $this withGrowTimeoutInMinutes($value) |
|
679
|
|
|
* @method string getClusterId() |
|
680
|
|
|
* @method $this withClusterId($value) |
|
681
|
|
|
* @method string getEnableAutoGrow() |
|
682
|
|
|
* @method $this withEnableAutoGrow($value) |
|
683
|
|
|
* @method string getEnableAutoShrink() |
|
684
|
|
|
* @method $this withEnableAutoShrink($value) |
|
685
|
|
|
* @method string getMaxNodesInCluster() |
|
686
|
|
|
* @method $this withMaxNodesInCluster($value) |
|
687
|
|
|
* @method string getShrinkIntervalInMinutes() |
|
688
|
|
|
* @method $this withShrinkIntervalInMinutes($value) |
|
689
|
|
|
* @method string getGrowIntervalInMinutes() |
|
690
|
|
|
* @method $this withGrowIntervalInMinutes($value) |
|
691
|
|
|
* @method string getGrowRatio() |
|
692
|
|
|
* @method $this withGrowRatio($value) |
|
693
|
|
|
*/ |
|
694
|
|
|
class SetAutoScaleConfig extends Rpc |
|
695
|
|
|
{ |
|
696
|
|
|
} |
|
697
|
|
|
|
|
698
|
|
|
/** |
|
699
|
|
|
* @method string getRunasUserPassword() |
|
700
|
|
|
* @method $this withRunasUserPassword($value) |
|
701
|
|
|
* @method string getRunasUser() |
|
702
|
|
|
* @method $this withRunasUser($value) |
|
703
|
|
|
* @method string getClusterId() |
|
704
|
|
|
* @method $this withClusterId($value) |
|
705
|
|
|
*/ |
|
706
|
|
|
class SetJobUser extends Rpc |
|
707
|
|
|
{ |
|
708
|
|
|
} |
|
709
|
|
|
|
|
710
|
|
|
/** |
|
711
|
|
|
* @method string getJobs() |
|
712
|
|
|
* @method $this withJobs($value) |
|
713
|
|
|
* @method string getClusterId() |
|
714
|
|
|
* @method $this withClusterId($value) |
|
715
|
|
|
*/ |
|
716
|
|
|
class StopJobs extends Rpc |
|
717
|
|
|
{ |
|
718
|
|
|
} |
|
719
|
|
|
|
|
720
|
|
|
/** |
|
721
|
|
|
* @method string getStderrRedirectPath() |
|
722
|
|
|
* @method $this withStderrRedirectPath($value) |
|
723
|
|
|
* @method string getRunasUserPassword() |
|
724
|
|
|
* @method $this withRunasUserPassword($value) |
|
725
|
|
|
* @method string getCommandLine() |
|
726
|
|
|
* @method $this withCommandLine($value) |
|
727
|
|
|
* @method string getArrayRequest() |
|
728
|
|
|
* @method $this withArrayRequest($value) |
|
729
|
|
|
* @method string getPackagePath() |
|
730
|
|
|
* @method $this withPackagePath($value) |
|
731
|
|
|
* @method string getStdoutRedirectPath() |
|
732
|
|
|
* @method $this withStdoutRedirectPath($value) |
|
733
|
|
|
* @method string getVariables() |
|
734
|
|
|
* @method $this withVariables($value) |
|
735
|
|
|
* @method string getRunasUser() |
|
736
|
|
|
* @method $this withRunasUser($value) |
|
737
|
|
|
* @method string getClusterId() |
|
738
|
|
|
* @method $this withClusterId($value) |
|
739
|
|
|
* @method string getReRunable() |
|
740
|
|
|
* @method $this withReRunable($value) |
|
741
|
|
|
* @method string getPriority() |
|
742
|
|
|
* @method $this withPriority($value) |
|
743
|
|
|
* @method string getName() |
|
744
|
|
|
* @method $this withName($value) |
|
745
|
|
|
*/ |
|
746
|
|
|
class SubmitJob extends Rpc |
|
747
|
|
|
{ |
|
748
|
|
|
} |
|
749
|
|
|
|
|
750
|
|
|
/** |
|
751
|
|
|
* @method string getClientVersion() |
|
752
|
|
|
* @method $this withClientVersion($value) |
|
753
|
|
|
* @method string getClusterId() |
|
754
|
|
|
* @method $this withClusterId($value) |
|
755
|
|
|
*/ |
|
756
|
|
|
class UpgradeClient extends Rpc |
|
757
|
|
|
{ |
|
758
|
|
|
} |
|
759
|
|
|
|