GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( 01f8d2...51634e )
by
unknown
07:07
created

AddExistedNodes   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 6
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A withInstance() 0 10 3
1
<?php
2
3
namespace AlibabaCloud\EHPC\V20180412;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AddContainerApp addContainerApp(array $options = [])
9
 * @method AddExistedNodes addExistedNodes(array $options = [])
10
 * @method AddLocalNodes addLocalNodes(array $options = [])
11
 * @method AddNodes addNodes(array $options = [])
12
 * @method AddQueue addQueue(array $options = [])
13
 * @method AddSecurityGroup addSecurityGroup(array $options = [])
14
 * @method AddUsers addUsers(array $options = [])
15
 * @method ApplyNodes applyNodes(array $options = [])
16
 * @method BindAccountToClusterUser bindAccountToClusterUser(array $options = [])
17
 * @method CreateCluster createCluster(array $options = [])
18
 * @method CreateGWSCluster createGWSCluster(array $options = [])
19
 * @method CreateGWSImage createGWSImage(array $options = [])
20
 * @method CreateGWSInstance createGWSInstance(array $options = [])
21
 * @method CreateHybridCluster createHybridCluster(array $options = [])
22
 * @method CreateJobFile createJobFile(array $options = [])
23
 * @method CreateJobTemplate createJobTemplate(array $options = [])
24
 * @method DeleteCluster deleteCluster(array $options = [])
25
 * @method DeleteContainerApps deleteContainerApps(array $options = [])
26
 * @method DeleteGWSCluster deleteGWSCluster(array $options = [])
27
 * @method DeleteGWSInstance deleteGWSInstance(array $options = [])
28
 * @method DeleteImage deleteImage(array $options = [])
29
 * @method DeleteJobs deleteJobs(array $options = [])
30
 * @method DeleteJobTemplates deleteJobTemplates(array $options = [])
31
 * @method DeleteNodes deleteNodes(array $options = [])
32
 * @method DeleteQueue deleteQueue(array $options = [])
33
 * @method DeleteSecurityGroup deleteSecurityGroup(array $options = [])
34
 * @method DeleteUsers deleteUsers(array $options = [])
35
 * @method DescribeAutoScaleConfig describeAutoScaleConfig(array $options = [])
36
 * @method DescribeCluster describeCluster(array $options = [])
37
 * @method DescribeContainerApp describeContainerApp(array $options = [])
38
 * @method DescribeGWSClusterPolicy describeGWSClusterPolicy(array $options = [])
39
 * @method DescribeGWSClusters describeGWSClusters(array $options = [])
40
 * @method DescribeGWSImages describeGWSImages(array $options = [])
41
 * @method DescribeGWSInstances describeGWSInstances(array $options = [])
42
 * @method DescribeImage describeImage(array $options = [])
43
 * @method DescribeImageGatewayConfig describeImageGatewayConfig(array $options = [])
44
 * @method DescribeImagePrice describeImagePrice(array $options = [])
45
 * @method DescribeJob describeJob(array $options = [])
46
 * @method DescribeNFSClientStatus describeNFSClientStatus(array $options = [])
47
 * @method DescribePrice describePrice(array $options = [])
48
 * @method EcdDeleteDesktops ecdDeleteDesktops(array $options = [])
49
 * @method EditJobTemplate editJobTemplate(array $options = [])
50
 * @method GetAccountingReport getAccountingReport(array $options = [])
51
 * @method GetAutoScaleConfig getAutoScaleConfig(array $options = [])
52
 * @method GetCloudMetricLogs getCloudMetricLogs(array $options = [])
53
 * @method GetCloudMetricProfiling getCloudMetricProfiling(array $options = [])
54
 * @method GetClusterVolumes getClusterVolumes(array $options = [])
55
 * @method GetGWSConnectTicket getGWSConnectTicket(array $options = [])
56
 * @method GetHealthMonitorLogs getHealthMonitorLogs(array $options = [])
57
 * @method GetHybridClusterConfig getHybridClusterConfig(array $options = [])
58
 * @method GetIfEcsTypeSupportHtConfig getIfEcsTypeSupportHtConfig(array $options = [])
59
 * @method GetVisualServiceStatus getVisualServiceStatus(array $options = [])
60
 * @method GetWorkbenchToken getWorkbenchToken(array $options = [])
61
 * @method InitializeEHPC initializeEHPC(array $options = [])
62
 * @method InstallSoftware installSoftware(array $options = [])
63
 * @method InvokeShellCommand invokeShellCommand(array $options = [])
64
 * @method ListAccountMapping listAccountMapping(array $options = [])
65
 * @method ListAvailableEcsTypes listAvailableEcsTypes(array $options = [])
66
 * @method ListAvailableFileSystemTypes listAvailableFileSystemTypes(array $options = [])
67
 * @method ListCloudMetricProfilings listCloudMetricProfilings(array $options = [])
68
 * @method ListClusterLogs listClusterLogs(array $options = [])
69
 * @method ListClusters listClusters(array $options = [])
70
 * @method ListClustersMeta listClustersMeta(array $options = [])
71
 * @method ListCommands listCommands(array $options = [])
72
 * @method ListContainerApps listContainerApps(array $options = [])
73
 * @method ListContainerImages listContainerImages(array $options = [])
74
 * @method ListCpfsFileSystems listCpfsFileSystems(array $options = [])
75
 * @method ListCurrentClientVersion listCurrentClientVersion(array $options = [])
76
 * @method ListCustomImages listCustomImages(array $options = [])
77
 * @method ListFileSystemWithMountTargets listFileSystemWithMountTargets(array $options = [])
78
 * @method ListImages listImages(array $options = [])
79
 * @method ListInstalledSoftware listInstalledSoftware(array $options = [])
80
 * @method ListInvocationResults listInvocationResults(array $options = [])
81
 * @method ListInvocationStatus listInvocationStatus(array $options = [])
82
 * @method ListJobs listJobs(array $options = [])
83
 * @method ListJobTemplates listJobTemplates(array $options = [])
84
 * @method ListNodes listNodes(array $options = [])
85
 * @method ListNodesByQueue listNodesByQueue(array $options = [])
86
 * @method ListNodesNoPaging listNodesNoPaging(array $options = [])
87
 * @method ListPreferredEcsTypes listPreferredEcsTypes(array $options = [])
88
 * @method ListQueues listQueues(array $options = [])
89
 * @method ListRegions listRegions(array $options = [])
90
 * @method ListSecurityGroups listSecurityGroups(array $options = [])
91
 * @method ListSoftwares listSoftwares(array $options = [])
92
 * @method ListTasks listTasks(array $options = [])
93
 * @method ListUsers listUsers(array $options = [])
94
 * @method ListVolumes listVolumes(array $options = [])
95
 * @method ModifyClusterAttributes modifyClusterAttributes(array $options = [])
96
 * @method ModifyContainerAppAttributes modifyContainerAppAttributes(array $options = [])
97
 * @method ModifyImageGatewayConfig modifyImageGatewayConfig(array $options = [])
98
 * @method ModifyUserGroups modifyUserGroups(array $options = [])
99
 * @method ModifyUserPasswords modifyUserPasswords(array $options = [])
100
 * @method ModifyVisualServicePasswd modifyVisualServicePasswd(array $options = [])
101
 * @method MountNFS mountNFS(array $options = [])
102
 * @method PullImage pullImage(array $options = [])
103
 * @method QueryServicePackAndPrice queryServicePackAndPrice(array $options = [])
104
 * @method RecoverCluster recoverCluster(array $options = [])
105
 * @method RerunJobs rerunJobs(array $options = [])
106
 * @method ResetNodes resetNodes(array $options = [])
107
 * @method RunCloudMetricProfiling runCloudMetricProfiling(array $options = [])
108
 * @method SetAutoScaleConfig setAutoScaleConfig(array $options = [])
109
 * @method SetGWSClusterPolicy setGWSClusterPolicy(array $options = [])
110
 * @method SetGWSInstanceName setGWSInstanceName(array $options = [])
111
 * @method SetGWSInstanceUser setGWSInstanceUser(array $options = [])
112
 * @method SetJobUser setJobUser(array $options = [])
113
 * @method SetQueue setQueue(array $options = [])
114
 * @method StartCluster startCluster(array $options = [])
115
 * @method StartGWSInstance startGWSInstance(array $options = [])
116
 * @method StartNodes startNodes(array $options = [])
117
 * @method StartVisualService startVisualService(array $options = [])
118
 * @method StopCluster stopCluster(array $options = [])
119
 * @method StopGWSInstance stopGWSInstance(array $options = [])
120
 * @method StopJobs stopJobs(array $options = [])
121
 * @method StopNodes stopNodes(array $options = [])
122
 * @method StopVisualService stopVisualService(array $options = [])
123
 * @method SubmitJob submitJob(array $options = [])
124
 * @method UnbindAccountToClusterUser unbindAccountToClusterUser(array $options = [])
125
 * @method UninstallSoftware uninstallSoftware(array $options = [])
126
 * @method UpdateClusterVolumes updateClusterVolumes(array $options = [])
127
 * @method UpdateQueueConfig updateQueueConfig(array $options = [])
128
 * @method UpgradeClient upgradeClient(array $options = [])
129
 */
130
class EHPCApiResolver extends ApiResolver
131
{
132
}
133
134
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
135
{
136
    /** @var string */
137
    public $product = 'EHPC';
138
139
    /** @var string */
140
    public $version = '2018-04-12';
141
}
142
143
/**
144
 * @method string getDescription()
145
 * @method $this withDescription($value)
146
 * @method string getRepository()
147
 * @method $this withRepository($value)
148
 * @method string getContainerType()
149
 * @method $this withContainerType($value)
150
 * @method string getName()
151
 * @method $this withName($value)
152
 * @method string getImageTag()
153
 * @method $this withImageTag($value)
154
 */
155
class AddContainerApp extends Rpc
156
{
157
}
158
159
/**
160
 * @method string getImageId()
161
 * @method $this withImageId($value)
162
 * @method array getInstance()
163
 * @method string getClientToken()
164
 * @method $this withClientToken($value)
165
 * @method string getClusterId()
166
 * @method $this withClusterId($value)
167
 * @method string getJobQueue()
168
 * @method $this withJobQueue($value)
169
 * @method string getImageOwnerAlias()
170
 * @method $this withImageOwnerAlias($value)
171
 */
172
class AddExistedNodes extends Rpc
173
{
174
175
    /**
176
     * @param array $instance
177
     *
178
     * @return $this
179
     */
180
	public function withInstance(array $instance)
181
	{
182
	    $this->data['Instance'] = $instance;
183
		foreach ($instance as $depth1 => $depth1Value) {
184
			if(isset($depth1Value['Id'])){
185
				$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id'];
186
			}
187
		}
188
189
		return $this;
190
    }
191
}
192
193
/**
194
 * @method string getClusterId()
195
 * @method $this withClusterId($value)
196
 * @method string getNodes()
197
 * @method $this withNodes($value)
198
 */
199
class AddLocalNodes extends Rpc
200
{
201
}
202
203
/**
204
 * @method string getImageId()
205
 * @method $this withImageId($value)
206
 * @method string getSystemDiskLevel()
207
 * @method $this withSystemDiskLevel($value)
208
 * @method string getClientToken()
209
 * @method $this withClientToken($value)
210
 * @method string getAllocatePublicAddress()
211
 * @method $this withAllocatePublicAddress($value)
212
 * @method string getInternetMaxBandWidthOut()
213
 * @method $this withInternetMaxBandWidthOut($value)
214
 * @method string getJobQueue()
215
 * @method $this withJobQueue($value)
216
 * @method string getImageOwnerAlias()
217
 * @method $this withImageOwnerAlias($value)
218
 * @method string getSystemDiskType()
219
 * @method $this withSystemDiskType($value)
220
 * @method string getMinCount()
221
 * @method $this withMinCount($value)
222
 * @method string getSystemDiskSize()
223
 * @method $this withSystemDiskSize($value)
224
 * @method string getInstanceType()
225
 * @method $this withInstanceType($value)
226
 * @method string getHostNamePrefix()
227
 * @method $this withHostNamePrefix($value)
228
 * @method string getComputeSpotPriceLimit()
229
 * @method $this withComputeSpotPriceLimit($value)
230
 * @method string getAutoRenewPeriod()
231
 * @method $this withAutoRenewPeriod($value)
232
 * @method string getPeriod()
233
 * @method $this withPeriod($value)
234
 * @method string getCount()
235
 * @method $this withCount($value)
236
 * @method string getClusterId()
237
 * @method $this withClusterId($value)
238
 * @method string getComputeSpotStrategy()
239
 * @method $this withComputeSpotStrategy($value)
240
 * @method string getHostNameSuffix()
241
 * @method $this withHostNameSuffix($value)
242
 * @method string getVSwitchId()
243
 * @method $this withVSwitchId($value)
244
 * @method string getPeriodUnit()
245
 * @method $this withPeriodUnit($value)
246
 * @method string getComputeEnableHt()
247
 * @method $this withComputeEnableHt($value)
248
 * @method string getAutoRenew()
249
 * @method $this withAutoRenew($value)
250
 * @method string getEcsChargeType()
251
 * @method $this withEcsChargeType($value)
252
 * @method string getInternetChargeType()
253
 * @method $this withInternetChargeType($value)
254
 * @method string getCreateMode()
255
 * @method $this withCreateMode($value)
256
 * @method string getZoneId()
257
 * @method $this withZoneId($value)
258
 * @method string getInternetMaxBandWidthIn()
259
 * @method $this withInternetMaxBandWidthIn($value)
260
 */
261
class AddNodes extends Rpc
262
{
263
}
264
265
/**
266
 * @method string getQueueName()
267
 * @method $this withQueueName($value)
268
 * @method string getClusterId()
269
 * @method $this withClusterId($value)
270
 */
271
class AddQueue extends Rpc
272
{
273
}
274
275
/**
276
 * @method string getClientToken()
277
 * @method $this withClientToken($value)
278
 * @method string getSecurityGroupId()
279
 * @method $this withSecurityGroupId($value)
280
 * @method string getClusterId()
281
 * @method $this withClusterId($value)
282
 */
283
class AddSecurityGroup extends Rpc
284
{
285
}
286
287
/**
288
 * @method string getClusterId()
289
 * @method $this withClusterId($value)
290
 * @method array getUser()
291
 */
292
class AddUsers extends Rpc
293
{
294
295
    /**
296
     * @param array $user
297
     *
298
     * @return $this
299
     */
300
	public function withUser(array $user)
301
	{
302
	    $this->data['User'] = $user;
303
		foreach ($user as $depth1 => $depth1Value) {
304
			if(isset($depth1Value['Password'])){
305
				$this->options['query']['User.' . ($depth1 + 1) . '.Password'] = $depth1Value['Password'];
306
			}
307
			if(isset($depth1Value['Name'])){
308
				$this->options['query']['User.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
309
			}
310
			if(isset($depth1Value['Group'])){
311
				$this->options['query']['User.' . ($depth1 + 1) . '.Group'] = $depth1Value['Group'];
312
			}
313
		}
314
315
		return $this;
316
    }
317
}
318
319
/**
320
 * @method string getImageId()
321
 * @method $this withImageId($value)
322
 * @method string getMemory()
323
 * @method $this withMemory($value)
324
 * @method string getSystemDiskLevel()
325
 * @method $this withSystemDiskLevel($value)
326
 * @method string getAllocatePublicAddress()
327
 * @method $this withAllocatePublicAddress($value)
328
 * @method string getInternetMaxBandWidthOut()
329
 * @method $this withInternetMaxBandWidthOut($value)
330
 * @method string getResourceAmountType()
331
 * @method $this withResourceAmountType($value)
332
 * @method string getSystemDiskType()
333
 * @method $this withSystemDiskType($value)
334
 * @method string getCores()
335
 * @method $this withCores($value)
336
 * @method string getSystemDiskSize()
337
 * @method $this withSystemDiskSize($value)
338
 * @method array getZoneInfos()
339
 * @method string getHostNamePrefix()
340
 * @method $this withHostNamePrefix($value)
341
 * @method string getComputeSpotPriceLimit()
342
 * @method $this withComputeSpotPriceLimit($value)
343
 * @method string getClusterId()
344
 * @method $this withClusterId($value)
345
 * @method string getComputeSpotStrategy()
346
 * @method $this withComputeSpotStrategy($value)
347
 * @method string getHostNameSuffix()
348
 * @method $this withHostNameSuffix($value)
349
 * @method string getPriorityStrategy()
350
 * @method $this withPriorityStrategy($value)
351
 * @method string getInstanceFamilyLevel()
352
 * @method $this withInstanceFamilyLevel($value)
353
 * @method string getInternetChargeType()
354
 * @method $this withInternetChargeType($value)
355
 * @method array getInstanceTypeModel()
356
 * @method string getInternetMaxBandWidthIn()
357
 * @method $this withInternetMaxBandWidthIn($value)
358
 * @method string getTargetCapacity()
359
 * @method $this withTargetCapacity($value)
360
 * @method string getStrictSatisfiedTargetCapacity()
361
 * @method $this withStrictSatisfiedTargetCapacity($value)
362
 */
363
class ApplyNodes extends Rpc
364
{
365
366
    /**
367
     * @param array $zoneInfos
368
     *
369
     * @return $this
370
     */
371
	public function withZoneInfos(array $zoneInfos)
372
	{
373
	    $this->data['ZoneInfos'] = $zoneInfos;
374
		foreach ($zoneInfos as $depth1 => $depth1Value) {
375
			if(isset($depth1Value['VSwitchId'])){
376
				$this->options['query']['ZoneInfos.' . ($depth1 + 1) . '.VSwitchId'] = $depth1Value['VSwitchId'];
377
			}
378
			if(isset($depth1Value['ZoneId'])){
379
				$this->options['query']['ZoneInfos.' . ($depth1 + 1) . '.ZoneId'] = $depth1Value['ZoneId'];
380
			}
381
		}
382
383
		return $this;
384
    }
385
386
    /**
387
     * @param array $instanceTypeModel
388
     *
389
     * @return $this
390
     */
391
	public function withInstanceTypeModel(array $instanceTypeModel)
392
	{
393
	    $this->data['InstanceTypeModel'] = $instanceTypeModel;
394
		foreach ($instanceTypeModel as $depth1 => $depth1Value) {
395
			if(isset($depth1Value['MaxPrice'])){
396
				$this->options['query']['InstanceTypeModel.' . ($depth1 + 1) . '.MaxPrice'] = $depth1Value['MaxPrice'];
397
			}
398
			if(isset($depth1Value['TargetImageId'])){
399
				$this->options['query']['InstanceTypeModel.' . ($depth1 + 1) . '.TargetImageId'] = $depth1Value['TargetImageId'];
400
			}
401
			if(isset($depth1Value['InstanceType'])){
402
				$this->options['query']['InstanceTypeModel.' . ($depth1 + 1) . '.InstanceType'] = $depth1Value['InstanceType'];
403
			}
404
		}
405
406
		return $this;
407
    }
408
}
409
410
/**
411
 * @method string getUserPwd()
412
 * @method $this withUserPwd($value)
413
 * @method string getClusterId()
414
 * @method $this withClusterId($value)
415
 * @method string getAccountName()
416
 * @method $this withAccountName($value)
417
 * @method string getAccountUid()
418
 * @method $this withAccountUid($value)
419
 * @method string getUserName()
420
 * @method $this withUserName($value)
421
 */
422
class BindAccountToClusterUser extends Rpc
423
{
424
}
425
426
/**
427
 * @method array getAdditionalVolumes()
428
 * @method string getEcsOrderManagerInstanceType()
429
 * @method string getKeyPairName()
430
 * @method $this withKeyPairName($value)
431
 * @method string getSecurityGroupName()
432
 * @method $this withSecurityGroupName($value)
433
 * @method string getImageOwnerAlias()
434
 * @method $this withImageOwnerAlias($value)
435
 * @method string getDeployMode()
436
 * @method $this withDeployMode($value)
437
 * @method string getEcsOrderManagerCount()
438
 * @method string getResourceGroupId()
439
 * @method $this withResourceGroupId($value)
440
 * @method string getPassword()
441
 * @method $this withPassword($value)
442
 * @method string getEcsOrderLoginCount()
443
 * @method string getWithoutElasticIp()
444
 * @method $this withWithoutElasticIp($value)
445
 * @method string getRemoteVisEnable()
446
 * @method $this withRemoteVisEnable($value)
447
 * @method string getSystemDiskSize()
448
 * @method $this withSystemDiskSize($value)
449
 * @method string getComputeSpotPriceLimit()
450
 * @method $this withComputeSpotPriceLimit($value)
451
 * @method string getAutoRenewPeriod()
452
 * @method $this withAutoRenewPeriod($value)
453
 * @method string getPeriod()
454
 * @method $this withPeriod($value)
455
 * @method string getRemoteDirectory()
456
 * @method $this withRemoteDirectory($value)
457
 * @method string getEcsOrderComputeCount()
458
 * @method string getComputeSpotStrategy()
459
 * @method $this withComputeSpotStrategy($value)
460
 * @method array getPostInstallScript()
461
 * @method string getVSwitchId()
462
 * @method $this withVSwitchId($value)
463
 * @method string getPeriodUnit()
464
 * @method $this withPeriodUnit($value)
465
 * @method string getComputeEnableHt()
466
 * @method $this withComputeEnableHt($value)
467
 * @method string getAutoRenew()
468
 * @method $this withAutoRenew($value)
469
 * @method string getName()
470
 * @method $this withName($value)
471
 * @method string getVolumeId()
472
 * @method $this withVolumeId($value)
473
 * @method string getZoneId()
474
 * @method $this withZoneId($value)
475
 * @method string getSccClusterId()
476
 * @method $this withSccClusterId($value)
477
 * @method string getImageId()
478
 * @method $this withImageId($value)
479
 * @method string getSystemDiskLevel()
480
 * @method $this withSystemDiskLevel($value)
481
 * @method string getClientToken()
482
 * @method $this withClientToken($value)
483
 * @method string getEhpcVersion()
484
 * @method $this withEhpcVersion($value)
485
 * @method string getAccountType()
486
 * @method $this withAccountType($value)
487
 * @method string getSecurityGroupId()
488
 * @method $this withSecurityGroupId($value)
489
 * @method string getDescription()
490
 * @method $this withDescription($value)
491
 * @method string getEcsOrderComputeInstanceType()
492
 * @method string getJobQueue()
493
 * @method $this withJobQueue($value)
494
 * @method string getVolumeType()
495
 * @method $this withVolumeType($value)
496
 * @method string getSystemDiskType()
497
 * @method $this withSystemDiskType($value)
498
 * @method string getVolumeProtocol()
499
 * @method $this withVolumeProtocol($value)
500
 * @method string getClientVersion()
501
 * @method $this withClientVersion($value)
502
 * @method string getOsTag()
503
 * @method $this withOsTag($value)
504
 * @method string getIsComputeEss()
505
 * @method $this withIsComputeEss($value)
506
 * @method array getApplication()
507
 * @method string getEcsChargeType()
508
 * @method $this withEcsChargeType($value)
509
 * @method string getInputFileUrl()
510
 * @method $this withInputFileUrl($value)
511
 * @method string getVpcId()
512
 * @method $this withVpcId($value)
513
 * @method string getHaEnable()
514
 * @method $this withHaEnable($value)
515
 * @method string getSchedulerType()
516
 * @method $this withSchedulerType($value)
517
 * @method string getVolumeMountpoint()
518
 * @method $this withVolumeMountpoint($value)
519
 * @method string getEcsOrderLoginInstanceType()
520
 */
521
class CreateCluster extends Rpc
522
{
523
524
    /**
525
     * @param array $additionalVolumes
526
     *
527
     * @return $this
528
     */
529
	public function withAdditionalVolumes(array $additionalVolumes)
530
	{
531
	    $this->data['AdditionalVolumes'] = $additionalVolumes;
532
		foreach ($additionalVolumes as $depth1 => $depth1Value) {
533
			if(isset($depth1Value['VolumeType'])){
534
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeType'] = $depth1Value['VolumeType'];
535
			}
536
			if(isset($depth1Value['VolumeProtocol'])){
537
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeProtocol'] = $depth1Value['VolumeProtocol'];
538
			}
539
			if(isset($depth1Value['LocalDirectory'])){
540
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.LocalDirectory'] = $depth1Value['LocalDirectory'];
541
			}
542
			if(isset($depth1Value['RemoteDirectory'])){
543
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.RemoteDirectory'] = $depth1Value['RemoteDirectory'];
544
			}
545
			foreach ($depth1Value['Roles'] as $depth2 => $depth2Value) {
546
				if(isset($depth2Value['Name'])){
547
					$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.Roles.' . ($depth2 + 1) . '.Name'] = $depth2Value['Name'];
548
				}
549
			}
550
			if(isset($depth1Value['VolumeId'])){
551
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeId'] = $depth1Value['VolumeId'];
552
			}
553
			if(isset($depth1Value['VolumeMountpoint'])){
554
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeMountpoint'] = $depth1Value['VolumeMountpoint'];
555
			}
556
			if(isset($depth1Value['Location'])){
557
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.Location'] = $depth1Value['Location'];
558
			}
559
			if(isset($depth1Value['JobQueue'])){
560
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.JobQueue'] = $depth1Value['JobQueue'];
561
			}
562
		}
563
564
		return $this;
565
    }
566
567
    /**
568
     * @param string $value
569
     *
570
     * @return $this
571
     */
572
    public function withEcsOrderManagerInstanceType($value)
573
    {
574
        $this->data['EcsOrderManagerInstanceType'] = $value;
575
        $this->options['query']['EcsOrder.Manager.InstanceType'] = $value;
576
577
        return $this;
578
    }
579
580
    /**
581
     * @param string $value
582
     *
583
     * @return $this
584
     */
585
    public function withEcsOrderManagerCount($value)
586
    {
587
        $this->data['EcsOrderManagerCount'] = $value;
588
        $this->options['query']['EcsOrder.Manager.Count'] = $value;
589
590
        return $this;
591
    }
592
593
    /**
594
     * @param string $value
595
     *
596
     * @return $this
597
     */
598
    public function withEcsOrderLoginCount($value)
599
    {
600
        $this->data['EcsOrderLoginCount'] = $value;
601
        $this->options['query']['EcsOrder.Login.Count'] = $value;
602
603
        return $this;
604
    }
605
606
    /**
607
     * @param string $value
608
     *
609
     * @return $this
610
     */
611
    public function withEcsOrderComputeCount($value)
612
    {
613
        $this->data['EcsOrderComputeCount'] = $value;
614
        $this->options['query']['EcsOrder.Compute.Count'] = $value;
615
616
        return $this;
617
    }
618
619
    /**
620
     * @param array $postInstallScript
621
     *
622
     * @return $this
623
     */
624
	public function withPostInstallScript(array $postInstallScript)
625
	{
626
	    $this->data['PostInstallScript'] = $postInstallScript;
627
		foreach ($postInstallScript as $depth1 => $depth1Value) {
628
			if(isset($depth1Value['Args'])){
629
				$this->options['query']['PostInstallScript.' . ($depth1 + 1) . '.Args'] = $depth1Value['Args'];
630
			}
631
			if(isset($depth1Value['Url'])){
632
				$this->options['query']['PostInstallScript.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
633
			}
634
		}
635
636
		return $this;
637
    }
638
639
    /**
640
     * @param string $value
641
     *
642
     * @return $this
643
     */
644
    public function withEcsOrderComputeInstanceType($value)
645
    {
646
        $this->data['EcsOrderComputeInstanceType'] = $value;
647
        $this->options['query']['EcsOrder.Compute.InstanceType'] = $value;
648
649
        return $this;
650
    }
651
652
    /**
653
     * @param array $application
654
     *
655
     * @return $this
656
     */
657
	public function withApplication(array $application)
658
	{
659
	    $this->data['Application'] = $application;
660
		foreach ($application as $depth1 => $depth1Value) {
661
			if(isset($depth1Value['Tag'])){
662
				$this->options['query']['Application.' . ($depth1 + 1) . '.Tag'] = $depth1Value['Tag'];
663
			}
664
		}
665
666
		return $this;
667
    }
668
669
    /**
670
     * @param string $value
671
     *
672
     * @return $this
673
     */
674
    public function withEcsOrderLoginInstanceType($value)
675
    {
676
        $this->data['EcsOrderLoginInstanceType'] = $value;
677
        $this->options['query']['EcsOrder.Login.InstanceType'] = $value;
678
679
        return $this;
680
    }
681
}
682
683
/**
684
 * @method string getClusterType()
685
 * @method $this withClusterType($value)
686
 * @method string getVSwitchId()
687
 * @method $this withVSwitchId($value)
688
 * @method string getVpcId()
689
 * @method $this withVpcId($value)
690
 * @method string getName()
691
 * @method $this withName($value)
692
 */
693
class CreateGWSCluster extends Rpc
694
{
695
}
696
697
/**
698
 * @method string getInstanceId()
699
 * @method $this withInstanceId($value)
700
 * @method string getName()
701
 * @method $this withName($value)
702
 */
703
class CreateGWSImage extends Rpc
704
{
705
}
706
707
/**
708
 * @method string getImageId()
709
 * @method $this withImageId($value)
710
 * @method string getAllocatePublicAddress()
711
 * @method $this withAllocatePublicAddress($value)
712
 * @method string getAppList()
713
 * @method $this withAppList($value)
714
 * @method string getInternetMaxBandwidthOut()
715
 * @method $this withInternetMaxBandwidthOut($value)
716
 * @method string getSystemDiskCategory()
717
 * @method $this withSystemDiskCategory($value)
718
 * @method string getSystemDiskSize()
719
 * @method $this withSystemDiskSize($value)
720
 * @method string getInstanceType()
721
 * @method $this withInstanceType($value)
722
 * @method string getInstanceChargeType()
723
 * @method $this withInstanceChargeType($value)
724
 * @method string getPeriod()
725
 * @method $this withPeriod($value)
726
 * @method string getClusterId()
727
 * @method $this withClusterId($value)
728
 * @method string getWorkMode()
729
 * @method $this withWorkMode($value)
730
 * @method string getVSwitchId()
731
 * @method $this withVSwitchId($value)
732
 * @method string getPeriodUnit()
733
 * @method $this withPeriodUnit($value)
734
 * @method string getAutoRenew()
735
 * @method $this withAutoRenew($value)
736
 * @method string getInternetChargeType()
737
 * @method $this withInternetChargeType($value)
738
 * @method string getName()
739
 * @method $this withName($value)
740
 * @method string getInternetMaxBandwidthIn()
741
 * @method $this withInternetMaxBandwidthIn($value)
742
 */
743
class CreateGWSInstance extends Rpc
744
{
745
}
746
747
/**
748
 * @method string getKeyPairName()
749
 * @method $this withKeyPairName($value)
750
 * @method string getMultiOs()
751
 * @method $this withMultiOs($value)
752
 * @method string getSecurityGroupName()
753
 * @method $this withSecurityGroupName($value)
754
 * @method string getOnPremiseVolumeRemotePath()
755
 * @method $this withOnPremiseVolumeRemotePath($value)
756
 * @method string getImageOwnerAlias()
757
 * @method $this withImageOwnerAlias($value)
758
 * @method string getResourceGroupId()
759
 * @method $this withResourceGroupId($value)
760
 * @method string getPassword()
761
 * @method $this withPassword($value)
762
 * @method string getComputeSpotPriceLimit()
763
 * @method $this withComputeSpotPriceLimit($value)
764
 * @method string getOnPremiseVolumeLocalPath()
765
 * @method $this withOnPremiseVolumeLocalPath($value)
766
 * @method string getRemoteDirectory()
767
 * @method $this withRemoteDirectory($value)
768
 * @method string getComputeSpotStrategy()
769
 * @method $this withComputeSpotStrategy($value)
770
 * @method array getPostInstallScript()
771
 * @method string getVSwitchId()
772
 * @method $this withVSwitchId($value)
773
 * @method string getDomain()
774
 * @method $this withDomain($value)
775
 * @method string getName()
776
 * @method $this withName($value)
777
 * @method string getVolumeId()
778
 * @method $this withVolumeId($value)
779
 * @method string getZoneId()
780
 * @method $this withZoneId($value)
781
 * @method string getImageId()
782
 * @method $this withImageId($value)
783
 * @method string getClientToken()
784
 * @method $this withClientToken($value)
785
 * @method string getEhpcVersion()
786
 * @method $this withEhpcVersion($value)
787
 * @method string getSecurityGroupId()
788
 * @method $this withSecurityGroupId($value)
789
 * @method string getDescription()
790
 * @method $this withDescription($value)
791
 * @method string getEcsOrderComputeInstanceType()
792
 * @method string getJobQueue()
793
 * @method $this withJobQueue($value)
794
 * @method string getVolumeType()
795
 * @method $this withVolumeType($value)
796
 * @method string getOnPremiseVolumeMountPoint()
797
 * @method $this withOnPremiseVolumeMountPoint($value)
798
 * @method string getOnPremiseVolumeProtocol()
799
 * @method $this withOnPremiseVolumeProtocol($value)
800
 * @method string getVolumeProtocol()
801
 * @method $this withVolumeProtocol($value)
802
 * @method string getClientVersion()
803
 * @method $this withClientVersion($value)
804
 * @method string getOsTag()
805
 * @method $this withOsTag($value)
806
 * @method array getNodes()
807
 * @method array getApplication()
808
 * @method string getVpcId()
809
 * @method $this withVpcId($value)
810
 * @method string getVolumeMountpoint()
811
 * @method $this withVolumeMountpoint($value)
812
 * @method string getSchedulerPreInstall()
813
 * @method $this withSchedulerPreInstall($value)
814
 * @method string getLocation()
815
 * @method $this withLocation($value)
816
 */
817
class CreateHybridCluster extends Rpc
818
{
819
820
    /**
821
     * @param array $postInstallScript
822
     *
823
     * @return $this
824
     */
825
	public function withPostInstallScript(array $postInstallScript)
826
	{
827
	    $this->data['PostInstallScript'] = $postInstallScript;
828
		foreach ($postInstallScript as $depth1 => $depth1Value) {
829
			if(isset($depth1Value['Args'])){
830
				$this->options['query']['PostInstallScript.' . ($depth1 + 1) . '.Args'] = $depth1Value['Args'];
831
			}
832
			if(isset($depth1Value['Url'])){
833
				$this->options['query']['PostInstallScript.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
834
			}
835
		}
836
837
		return $this;
838
    }
839
840
    /**
841
     * @param string $value
842
     *
843
     * @return $this
844
     */
845
    public function withEcsOrderComputeInstanceType($value)
846
    {
847
        $this->data['EcsOrderComputeInstanceType'] = $value;
848
        $this->options['query']['EcsOrder.Compute.InstanceType'] = $value;
849
850
        return $this;
851
    }
852
853
    /**
854
     * @param array $nodes
855
     *
856
     * @return $this
857
     */
858
	public function withNodes(array $nodes)
859
	{
860
	    $this->data['Nodes'] = $nodes;
861
		foreach ($nodes as $depth1 => $depth1Value) {
862
			if(isset($depth1Value['IpAddress'])){
863
				$this->options['query']['Nodes.' . ($depth1 + 1) . '.IpAddress'] = $depth1Value['IpAddress'];
864
			}
865
			if(isset($depth1Value['HostName'])){
866
				$this->options['query']['Nodes.' . ($depth1 + 1) . '.HostName'] = $depth1Value['HostName'];
867
			}
868
			if(isset($depth1Value['Role'])){
869
				$this->options['query']['Nodes.' . ($depth1 + 1) . '.Role'] = $depth1Value['Role'];
870
			}
871
			if(isset($depth1Value['AccountType'])){
872
				$this->options['query']['Nodes.' . ($depth1 + 1) . '.AccountType'] = $depth1Value['AccountType'];
873
			}
874
			if(isset($depth1Value['SchedulerType'])){
875
				$this->options['query']['Nodes.' . ($depth1 + 1) . '.SchedulerType'] = $depth1Value['SchedulerType'];
876
			}
877
		}
878
879
		return $this;
880
    }
881
882
    /**
883
     * @param array $application
884
     *
885
     * @return $this
886
     */
887
	public function withApplication(array $application)
888
	{
889
	    $this->data['Application'] = $application;
890
		foreach ($application as $depth1 => $depth1Value) {
891
			if(isset($depth1Value['Tag'])){
892
				$this->options['query']['Application.' . ($depth1 + 1) . '.Tag'] = $depth1Value['Tag'];
893
			}
894
		}
895
896
		return $this;
897
    }
898
}
899
900
/**
901
 * @method string getTargetFile()
902
 * @method $this withTargetFile($value)
903
 * @method string getRunasUserPassword()
904
 * @method $this withRunasUserPassword($value)
905
 * @method string getRunasUser()
906
 * @method $this withRunasUser($value)
907
 * @method string getClusterId()
908
 * @method $this withClusterId($value)
909
 * @method string getContent()
910
 * @method $this withContent($value)
911
 */
912
class CreateJobFile extends Rpc
913
{
914
}
915
916
/**
917
 * @method string getStderrRedirectPath()
918
 * @method $this withStderrRedirectPath($value)
919
 * @method string getClockTime()
920
 * @method $this withClockTime($value)
921
 * @method string getCommandLine()
922
 * @method $this withCommandLine($value)
923
 * @method string getArrayRequest()
924
 * @method $this withArrayRequest($value)
925
 * @method string getPackagePath()
926
 * @method $this withPackagePath($value)
927
 * @method string getMem()
928
 * @method $this withMem($value)
929
 * @method string getStdoutRedirectPath()
930
 * @method $this withStdoutRedirectPath($value)
931
 * @method string getVariables()
932
 * @method $this withVariables($value)
933
 * @method string getRunasUser()
934
 * @method $this withRunasUser($value)
935
 * @method string getReRunable()
936
 * @method $this withReRunable($value)
937
 * @method string getThread()
938
 * @method $this withThread($value)
939
 * @method string getPriority()
940
 * @method $this withPriority($value)
941
 * @method string getGpu()
942
 * @method $this withGpu($value)
943
 * @method string getNode()
944
 * @method $this withNode($value)
945
 * @method string getTask()
946
 * @method $this withTask($value)
947
 * @method string getName()
948
 * @method $this withName($value)
949
 * @method string getQueue()
950
 * @method $this withQueue($value)
951
 */
952
class CreateJobTemplate extends Rpc
953
{
954
}
955
956
/**
957
 * @method string getClusterId()
958
 * @method $this withClusterId($value)
959
 * @method string getReleaseInstance()
960
 * @method $this withReleaseInstance($value)
961
 */
962
class DeleteCluster extends Rpc
963
{
964
}
965
966
/**
967
 * @method array getContainerApp()
968
 */
969
class DeleteContainerApps extends Rpc
970
{
971
972
    /**
973
     * @param array $containerApp
974
     *
975
     * @return $this
976
     */
977
	public function withContainerApp(array $containerApp)
978
	{
979
	    $this->data['ContainerApp'] = $containerApp;
980
		foreach ($containerApp as $depth1 => $depth1Value) {
981
			if(isset($depth1Value['Id'])){
982
				$this->options['query']['ContainerApp.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id'];
983
			}
984
		}
985
986
		return $this;
987
    }
988
}
989
990
/**
991
 * @method string getClusterId()
992
 * @method $this withClusterId($value)
993
 */
994
class DeleteGWSCluster extends Rpc
995
{
996
}
997
998
/**
999
 * @method string getInstanceId()
1000
 * @method $this withInstanceId($value)
1001
 */
1002
class DeleteGWSInstance extends Rpc
1003
{
1004
}
1005
1006
/**
1007
 * @method string getClusterId()
1008
 * @method $this withClusterId($value)
1009
 * @method string getRepository()
1010
 * @method $this withRepository($value)
1011
 * @method string getContainerType()
1012
 * @method $this withContainerType($value)
1013
 * @method string getImageTag()
1014
 * @method $this withImageTag($value)
1015
 */
1016
class DeleteImage extends Rpc
1017
{
1018
}
1019
1020
/**
1021
 * @method string getJobs()
1022
 * @method $this withJobs($value)
1023
 * @method string getClusterId()
1024
 * @method $this withClusterId($value)
1025
 */
1026
class DeleteJobs extends Rpc
1027
{
1028
}
1029
1030
/**
1031
 * @method string getTemplates()
1032
 * @method $this withTemplates($value)
1033
 */
1034
class DeleteJobTemplates extends Rpc
1035
{
1036
}
1037
1038
/**
1039
 * @method array getInstance()
1040
 * @method string getClusterId()
1041
 * @method $this withClusterId($value)
1042
 * @method string getReleaseInstance()
1043
 * @method $this withReleaseInstance($value)
1044
 */
1045
class DeleteNodes extends Rpc
1046
{
1047
1048
    /**
1049
     * @param array $instance
1050
     *
1051
     * @return $this
1052
     */
1053
	public function withInstance(array $instance)
1054
	{
1055
	    $this->data['Instance'] = $instance;
1056
		foreach ($instance as $depth1 => $depth1Value) {
1057
			if(isset($depth1Value['Id'])){
1058
				$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id'];
1059
			}
1060
		}
1061
1062
		return $this;
1063
    }
1064
}
1065
1066
/**
1067
 * @method string getQueueName()
1068
 * @method $this withQueueName($value)
1069
 * @method string getClusterId()
1070
 * @method $this withClusterId($value)
1071
 */
1072
class DeleteQueue extends Rpc
1073
{
1074
}
1075
1076
/**
1077
 * @method string getSecurityGroupId()
1078
 * @method $this withSecurityGroupId($value)
1079
 * @method string getClusterId()
1080
 * @method $this withClusterId($value)
1081
 */
1082
class DeleteSecurityGroup extends Rpc
1083
{
1084
}
1085
1086
/**
1087
 * @method string getClusterId()
1088
 * @method $this withClusterId($value)
1089
 * @method array getUser()
1090
 */
1091
class DeleteUsers extends Rpc
1092
{
1093
1094
    /**
1095
     * @param array $user
1096
     *
1097
     * @return $this
1098
     */
1099
	public function withUser(array $user)
1100
	{
1101
	    $this->data['User'] = $user;
1102
		foreach ($user as $depth1 => $depth1Value) {
1103
			if(isset($depth1Value['Name'])){
1104
				$this->options['query']['User.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
1105
			}
1106
		}
1107
1108
		return $this;
1109
    }
1110
}
1111
1112
/**
1113
 * @method string getClusterId()
1114
 * @method $this withClusterId($value)
1115
 */
1116
class DescribeAutoScaleConfig extends Rpc
1117
{
1118
}
1119
1120
/**
1121
 * @method string getClusterId()
1122
 * @method $this withClusterId($value)
1123
 */
1124
class DescribeCluster extends Rpc
1125
{
1126
}
1127
1128
/**
1129
 * @method string getContainerId()
1130
 * @method $this withContainerId($value)
1131
 */
1132
class DescribeContainerApp extends Rpc
1133
{
1134
}
1135
1136
/**
1137
 * @method string getClusterId()
1138
 * @method $this withClusterId($value)
1139
 * @method string getAsyncMode()
1140
 * @method $this withAsyncMode($value)
1141
 * @method string getTaskId()
1142
 * @method $this withTaskId($value)
1143
 */
1144
class DescribeGWSClusterPolicy extends Rpc
1145
{
1146
1147
    /** @var string */
1148
    public $method = 'POST';
1149
}
1150
1151
/**
1152
 * @method string getClusterId()
1153
 * @method $this withClusterId($value)
1154
 * @method string getPageNumber()
1155
 * @method $this withPageNumber($value)
1156
 * @method string getPageSize()
1157
 * @method $this withPageSize($value)
1158
 */
1159
class DescribeGWSClusters extends Rpc
1160
{
1161
}
1162
1163
/**
1164
 * @method string getPageNumber()
1165
 * @method $this withPageNumber($value)
1166
 * @method string getPageSize()
1167
 * @method $this withPageSize($value)
1168
 */
1169
class DescribeGWSImages extends Rpc
1170
{
1171
}
1172
1173
/**
1174
 * @method string getClusterId()
1175
 * @method $this withClusterId($value)
1176
 * @method string getPageNumber()
1177
 * @method $this withPageNumber($value)
1178
 * @method string getInstanceId()
1179
 * @method $this withInstanceId($value)
1180
 * @method string getPageSize()
1181
 * @method $this withPageSize($value)
1182
 * @method string getUserUid()
1183
 * @method $this withUserUid($value)
1184
 * @method string getUserName()
1185
 * @method $this withUserName($value)
1186
 */
1187
class DescribeGWSInstances extends Rpc
1188
{
1189
}
1190
1191
/**
1192
 * @method string getClusterId()
1193
 * @method $this withClusterId($value)
1194
 * @method string getRepository()
1195
 * @method $this withRepository($value)
1196
 * @method string getContainerType()
1197
 * @method $this withContainerType($value)
1198
 * @method string getImageTag()
1199
 * @method $this withImageTag($value)
1200
 */
1201
class DescribeImage extends Rpc
1202
{
1203
}
1204
1205
/**
1206
 * @method string getClusterId()
1207
 * @method $this withClusterId($value)
1208
 */
1209
class DescribeImageGatewayConfig extends Rpc
1210
{
1211
}
1212
1213
/**
1214
 * @method string getPeriod()
1215
 * @method $this withPeriod($value)
1216
 * @method string getAmount()
1217
 * @method $this withAmount($value)
1218
 * @method string getImageId()
1219
 * @method $this withImageId($value)
1220
 * @method string getSkuCode()
1221
 * @method $this withSkuCode($value)
1222
 * @method string getPriceUnit()
1223
 * @method $this withPriceUnit($value)
1224
 * @method string getOrderType()
1225
 * @method $this withOrderType($value)
1226
 */
1227
class DescribeImagePrice extends Rpc
1228
{
1229
}
1230
1231
/**
1232
 * @method string getClusterId()
1233
 * @method $this withClusterId($value)
1234
 * @method string getJobId()
1235
 * @method $this withJobId($value)
1236
 */
1237
class DescribeJob extends Rpc
1238
{
1239
}
1240
1241
/**
1242
 * @method string getInstanceId()
1243
 * @method $this withInstanceId($value)
1244
 */
1245
class DescribeNFSClientStatus extends Rpc
1246
{
1247
}
1248
1249
/**
1250
 * @method array getCommodities()
1251
 * @method string getPriceUnit()
1252
 * @method $this withPriceUnit($value)
1253
 * @method string getChargeType()
1254
 * @method $this withChargeType($value)
1255
 * @method string getOrderType()
1256
 * @method $this withOrderType($value)
1257
 */
1258
class DescribePrice extends Rpc
1259
{
1260
1261
    /**
1262
     * @param array $commodities
1263
     *
1264
     * @return $this
1265
     */
1266
	public function withCommodities(array $commodities)
1267
	{
1268
	    $this->data['Commodities'] = $commodities;
1269
		foreach ($commodities as $depth1 => $depth1Value) {
1270
			if(isset($depth1Value['Amount'])){
1271
				$this->options['query']['Commodities.' . ($depth1 + 1) . '.Amount'] = $depth1Value['Amount'];
1272
			}
1273
			if(isset($depth1Value['Period'])){
1274
				$this->options['query']['Commodities.' . ($depth1 + 1) . '.Period'] = $depth1Value['Period'];
1275
			}
1276
			if(isset($depth1Value['NodeType'])){
1277
				$this->options['query']['Commodities.' . ($depth1 + 1) . '.NodeType'] = $depth1Value['NodeType'];
1278
			}
1279
			if(isset($depth1Value['SystemDiskCategory'])){
1280
				$this->options['query']['Commodities.' . ($depth1 + 1) . '.SystemDiskCategory'] = $depth1Value['SystemDiskCategory'];
1281
			}
1282
			if(isset($depth1Value['InternetChargeType'])){
1283
				$this->options['query']['Commodities.' . ($depth1 + 1) . '.InternetChargeType'] = $depth1Value['InternetChargeType'];
1284
			}
1285
			if(isset($depth1Value['SystemDiskPerformanceLevel'])){
1286
				$this->options['query']['Commodities.' . ($depth1 + 1) . '.SystemDiskPerformanceLevel'] = $depth1Value['SystemDiskPerformanceLevel'];
1287
			}
1288
			if(isset($depth1Value['SystemDiskSize'])){
1289
				$this->options['query']['Commodities.' . ($depth1 + 1) . '.SystemDiskSize'] = $depth1Value['SystemDiskSize'];
1290
			}
1291
			if(isset($depth1Value['InternetMaxBandWidthOut'])){
1292
				$this->options['query']['Commodities.' . ($depth1 + 1) . '.InternetMaxBandWidthOut'] = $depth1Value['InternetMaxBandWidthOut'];
1293
			}
1294
			if(isset($depth1Value['InstanceType'])){
1295
				$this->options['query']['Commodities.' . ($depth1 + 1) . '.InstanceType'] = $depth1Value['InstanceType'];
1296
			}
1297
			if(isset($depth1Value['NetworkType'])){
1298
				$this->options['query']['Commodities.' . ($depth1 + 1) . '.NetworkType'] = $depth1Value['NetworkType'];
1299
			}
1300
		}
1301
1302
		return $this;
1303
    }
1304
}
1305
1306
/**
1307
 * @method array getDesktopId()
1308
 */
1309
class EcdDeleteDesktops extends Rpc
1310
{
1311
1312
    /**
1313
     * @param array $desktopId
1314
     *
1315
     * @return $this
1316
     */
1317
	public function withDesktopId(array $desktopId)
1318
	{
1319
	    $this->data['DesktopId'] = $desktopId;
1320
		foreach ($desktopId as $i => $iValue) {
1321
			$this->options['query']['DesktopId.' . ($i + 1)] = $iValue;
1322
		}
1323
1324
		return $this;
1325
    }
1326
}
1327
1328
/**
1329
 * @method string getStderrRedirectPath()
1330
 * @method $this withStderrRedirectPath($value)
1331
 * @method string getClockTime()
1332
 * @method $this withClockTime($value)
1333
 * @method string getCommandLine()
1334
 * @method $this withCommandLine($value)
1335
 * @method string getArrayRequest()
1336
 * @method $this withArrayRequest($value)
1337
 * @method string getPackagePath()
1338
 * @method $this withPackagePath($value)
1339
 * @method string getMem()
1340
 * @method $this withMem($value)
1341
 * @method string getStdoutRedirectPath()
1342
 * @method $this withStdoutRedirectPath($value)
1343
 * @method string getVariables()
1344
 * @method $this withVariables($value)
1345
 * @method string getRunasUser()
1346
 * @method $this withRunasUser($value)
1347
 * @method string getReRunable()
1348
 * @method $this withReRunable($value)
1349
 * @method string getThread()
1350
 * @method $this withThread($value)
1351
 * @method string getTemplateId()
1352
 * @method $this withTemplateId($value)
1353
 * @method string getPriority()
1354
 * @method $this withPriority($value)
1355
 * @method string getGpu()
1356
 * @method $this withGpu($value)
1357
 * @method string getNode()
1358
 * @method $this withNode($value)
1359
 * @method string getTask()
1360
 * @method $this withTask($value)
1361
 * @method string getName()
1362
 * @method $this withName($value)
1363
 * @method string getQueue()
1364
 * @method $this withQueue($value)
1365
 */
1366
class EditJobTemplate extends Rpc
1367
{
1368
}
1369
1370
/**
1371
 * @method string getReportType()
1372
 * @method $this withReportType($value)
1373
 * @method string getEndTime()
1374
 * @method $this withEndTime($value)
1375
 * @method string getFilterValue()
1376
 * @method $this withFilterValue($value)
1377
 * @method string getDim()
1378
 * @method $this withDim($value)
1379
 * @method string getClusterId()
1380
 * @method $this withClusterId($value)
1381
 * @method string getStartTime()
1382
 * @method $this withStartTime($value)
1383
 * @method string getPageNumber()
1384
 * @method $this withPageNumber($value)
1385
 * @method string getJobId()
1386
 * @method $this withJobId($value)
1387
 * @method string getPageSize()
1388
 * @method $this withPageSize($value)
1389
 */
1390
class GetAccountingReport extends Rpc
1391
{
1392
}
1393
1394
/**
1395
 * @method string getClusterId()
1396
 * @method $this withClusterId($value)
1397
 */
1398
class GetAutoScaleConfig extends Rpc
1399
{
1400
}
1401
1402
/**
1403
 * @method string getMetricScope()
1404
 * @method $this withMetricScope($value)
1405
 * @method string getClusterId()
1406
 * @method $this withClusterId($value)
1407
 * @method string getAggregationInterval()
1408
 * @method $this withAggregationInterval($value)
1409
 * @method string getReverse()
1410
 * @method $this withReverse($value)
1411
 * @method string getAggregationType()
1412
 * @method $this withAggregationType($value)
1413
 * @method string getFilter()
1414
 * @method $this withFilter($value)
1415
 * @method string getMetricCategories()
1416
 * @method $this withMetricCategories($value)
1417
 * @method string getFrom()
1418
 * @method $this withFrom($value)
1419
 * @method string getTo()
1420
 * @method $this withTo($value)
1421
 */
1422
class GetCloudMetricLogs extends Rpc
1423
{
1424
}
1425
1426
/**
1427
 * @method string getClusterId()
1428
 * @method $this withClusterId($value)
1429
 * @method string getProfilingId()
1430
 * @method $this withProfilingId($value)
1431
 */
1432
class GetCloudMetricProfiling extends Rpc
1433
{
1434
}
1435
1436
/**
1437
 * @method string getClusterId()
1438
 * @method $this withClusterId($value)
1439
 */
1440
class GetClusterVolumes extends Rpc
1441
{
1442
}
1443
1444
/**
1445
 * @method string getInstanceId()
1446
 * @method $this withInstanceId($value)
1447
 * @method string getAppName()
1448
 * @method $this withAppName($value)
1449
 */
1450
class GetGWSConnectTicket extends Rpc
1451
{
1452
}
1453
1454
/**
1455
 * @method string getEndTime()
1456
 * @method $this withEndTime($value)
1457
 * @method string getClusterId()
1458
 * @method $this withClusterId($value)
1459
 * @method string getStartTime()
1460
 * @method $this withStartTime($value)
1461
 * @method string getEnableReverse()
1462
 * @method $this withEnableReverse($value)
1463
 * @method string getFilter()
1464
 * @method $this withFilter($value)
1465
 */
1466
class GetHealthMonitorLogs extends Rpc
1467
{
1468
}
1469
1470
/**
1471
 * @method string getClusterId()
1472
 * @method $this withClusterId($value)
1473
 * @method string getNode()
1474
 * @method $this withNode($value)
1475
 */
1476
class GetHybridClusterConfig extends Rpc
1477
{
1478
}
1479
1480
/**
1481
 * @method string getInstanceType()
1482
 * @method $this withInstanceType($value)
1483
 */
1484
class GetIfEcsTypeSupportHtConfig extends Rpc
1485
{
1486
}
1487
1488
/**
1489
 * @method string getClusterId()
1490
 * @method $this withClusterId($value)
1491
 */
1492
class GetVisualServiceStatus extends Rpc
1493
{
1494
}
1495
1496
/**
1497
 * @method string getClusterId()
1498
 * @method $this withClusterId($value)
1499
 * @method string getUserPassword()
1500
 * @method $this withUserPassword($value)
1501
 * @method string getInstanceId()
1502
 * @method $this withInstanceId($value)
1503
 * @method string getPort()
1504
 * @method $this withPort($value)
1505
 * @method string getAccountSessionTicket()
1506
 * @method $this withAccountSessionTicket($value)
1507
 * @method string getAccountUid()
1508
 * @method $this withAccountUid($value)
1509
 * @method string getUserName()
1510
 * @method $this withUserName($value)
1511
 */
1512
class GetWorkbenchToken extends Rpc
1513
{
1514
}
1515
1516
class InitializeEHPC extends Rpc
1517
{
1518
}
1519
1520
/**
1521
 * @method string getClusterId()
1522
 * @method $this withClusterId($value)
1523
 * @method string getApplication()
1524
 * @method $this withApplication($value)
1525
 */
1526
class InstallSoftware extends Rpc
1527
{
1528
}
1529
1530
/**
1531
 * @method array getInstance()
1532
 * @method string getWorkingDir()
1533
 * @method $this withWorkingDir($value)
1534
 * @method string getClusterId()
1535
 * @method $this withClusterId($value)
1536
 * @method string getCommand()
1537
 * @method $this withCommand($value)
1538
 * @method string getTimeout()
1539
 * @method $this withTimeout($value)
1540
 */
1541
class InvokeShellCommand extends Rpc
1542
{
1543
1544
    /**
1545
     * @param array $instance
1546
     *
1547
     * @return $this
1548
     */
1549
	public function withInstance(array $instance)
1550
	{
1551
	    $this->data['Instance'] = $instance;
1552
		foreach ($instance as $depth1 => $depth1Value) {
1553
			if(isset($depth1Value['Id'])){
1554
				$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id'];
1555
			}
1556
		}
1557
1558
		return $this;
1559
    }
1560
}
1561
1562
/**
1563
 * @method string getClusterId()
1564
 * @method $this withClusterId($value)
1565
 */
1566
class ListAccountMapping extends Rpc
1567
{
1568
}
1569
1570
/**
1571
 * @method string getSpotStrategy()
1572
 * @method $this withSpotStrategy($value)
1573
 * @method string getZoneId()
1574
 * @method $this withZoneId($value)
1575
 * @method string getShowSoldOut()
1576
 * @method $this withShowSoldOut($value)
1577
 * @method string getInstanceChargeType()
1578
 * @method $this withInstanceChargeType($value)
1579
 */
1580
class ListAvailableEcsTypes extends Rpc
1581
{
1582
}
1583
1584
class ListAvailableFileSystemTypes extends Rpc
1585
{
1586
}
1587
1588
/**
1589
 * @method string getClusterId()
1590
 * @method $this withClusterId($value)
1591
 * @method string getPageNumber()
1592
 * @method $this withPageNumber($value)
1593
 * @method string getPageSize()
1594
 * @method $this withPageSize($value)
1595
 */
1596
class ListCloudMetricProfilings extends Rpc
1597
{
1598
}
1599
1600
/**
1601
 * @method string getClusterId()
1602
 * @method $this withClusterId($value)
1603
 * @method string getPageNumber()
1604
 * @method $this withPageNumber($value)
1605
 * @method string getPageSize()
1606
 * @method $this withPageSize($value)
1607
 */
1608
class ListClusterLogs extends Rpc
1609
{
1610
}
1611
1612
/**
1613
 * @method string getPageNumber()
1614
 * @method $this withPageNumber($value)
1615
 * @method string getPageSize()
1616
 * @method $this withPageSize($value)
1617
 */
1618
class ListClusters extends Rpc
1619
{
1620
}
1621
1622
/**
1623
 * @method string getPageNumber()
1624
 * @method $this withPageNumber($value)
1625
 * @method string getPageSize()
1626
 * @method $this withPageSize($value)
1627
 */
1628
class ListClustersMeta extends Rpc
1629
{
1630
}
1631
1632
/**
1633
 * @method string getClusterId()
1634
 * @method $this withClusterId($value)
1635
 * @method string getCommandId()
1636
 * @method $this withCommandId($value)
1637
 * @method string getPageNumber()
1638
 * @method $this withPageNumber($value)
1639
 * @method string getPageSize()
1640
 * @method $this withPageSize($value)
1641
 */
1642
class ListCommands extends Rpc
1643
{
1644
}
1645
1646
/**
1647
 * @method string getPageNumber()
1648
 * @method $this withPageNumber($value)
1649
 * @method string getPageSize()
1650
 * @method $this withPageSize($value)
1651
 */
1652
class ListContainerApps extends Rpc
1653
{
1654
}
1655
1656
/**
1657
 * @method string getClusterId()
1658
 * @method $this withClusterId($value)
1659
 * @method string getPageNumber()
1660
 * @method $this withPageNumber($value)
1661
 * @method string getContainerType()
1662
 * @method $this withContainerType($value)
1663
 * @method string getPageSize()
1664
 * @method $this withPageSize($value)
1665
 */
1666
class ListContainerImages extends Rpc
1667
{
1668
}
1669
1670
/**
1671
 * @method string getPageNumber()
1672
 * @method $this withPageNumber($value)
1673
 * @method string getPageSize()
1674
 * @method $this withPageSize($value)
1675
 * @method string getFileSystemId()
1676
 * @method $this withFileSystemId($value)
1677
 */
1678
class ListCpfsFileSystems extends Rpc
1679
{
1680
}
1681
1682
class ListCurrentClientVersion extends Rpc
1683
{
1684
}
1685
1686
/**
1687
 * @method string getClusterId()
1688
 * @method $this withClusterId($value)
1689
 * @method string getImageOwnerAlias()
1690
 * @method $this withImageOwnerAlias($value)
1691
 * @method string getBaseOsTag()
1692
 * @method $this withBaseOsTag($value)
1693
 * @method string getInstanceType()
1694
 * @method $this withInstanceType($value)
1695
 */
1696
class ListCustomImages extends Rpc
1697
{
1698
}
1699
1700
/**
1701
 * @method string getPageNumber()
1702
 * @method $this withPageNumber($value)
1703
 * @method string getPageSize()
1704
 * @method $this withPageSize($value)
1705
 */
1706
class ListFileSystemWithMountTargets extends Rpc
1707
{
1708
}
1709
1710
/**
1711
 * @method string getBaseOsTag()
1712
 * @method $this withBaseOsTag($value)
1713
 * @method string getInstanceType()
1714
 * @method $this withInstanceType($value)
1715
 */
1716
class ListImages extends Rpc
1717
{
1718
}
1719
1720
/**
1721
 * @method string getClusterId()
1722
 * @method $this withClusterId($value)
1723
 */
1724
class ListInstalledSoftware extends Rpc
1725
{
1726
}
1727
1728
/**
1729
 * @method array getInstance()
1730
 * @method string getClusterId()
1731
 * @method $this withClusterId($value)
1732
 * @method string getCommandId()
1733
 * @method $this withCommandId($value)
1734
 * @method string getPageNumber()
1735
 * @method $this withPageNumber($value)
1736
 * @method string getInvokeRecordStatus()
1737
 * @method $this withInvokeRecordStatus($value)
1738
 * @method string getPageSize()
1739
 * @method $this withPageSize($value)
1740
 */
1741
class ListInvocationResults extends Rpc
1742
{
1743
1744
    /**
1745
     * @param array $instance
1746
     *
1747
     * @return $this
1748
     */
1749
	public function withInstance(array $instance)
1750
	{
1751
	    $this->data['Instance'] = $instance;
1752
		foreach ($instance as $depth1 => $depth1Value) {
1753
			if(isset($depth1Value['Id'])){
1754
				$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id'];
1755
			}
1756
		}
1757
1758
		return $this;
1759
    }
1760
}
1761
1762
/**
1763
 * @method string getClusterId()
1764
 * @method $this withClusterId($value)
1765
 * @method string getCommandId()
1766
 * @method $this withCommandId($value)
1767
 */
1768
class ListInvocationStatus extends Rpc
1769
{
1770
}
1771
1772
/**
1773
 * @method string getOwner()
1774
 * @method $this withOwner($value)
1775
 * @method string getClusterId()
1776
 * @method $this withClusterId($value)
1777
 * @method string getRerunable()
1778
 * @method $this withRerunable($value)
1779
 * @method string getPageNumber()
1780
 * @method $this withPageNumber($value)
1781
 * @method string getPageSize()
1782
 * @method $this withPageSize($value)
1783
 * @method string getState()
1784
 * @method $this withState($value)
1785
 */
1786
class ListJobs extends Rpc
1787
{
1788
}
1789
1790
/**
1791
 * @method string getPageNumber()
1792
 * @method $this withPageNumber($value)
1793
 * @method string getName()
1794
 * @method $this withName($value)
1795
 * @method string getPageSize()
1796
 * @method $this withPageSize($value)
1797
 */
1798
class ListJobTemplates extends Rpc
1799
{
1800
}
1801
1802
/**
1803
 * @method string getRole()
1804
 * @method $this withRole($value)
1805
 * @method string getPageNumber()
1806
 * @method $this withPageNumber($value)
1807
 * @method string getHostName()
1808
 * @method $this withHostName($value)
1809
 * @method string getPageSize()
1810
 * @method $this withPageSize($value)
1811
 * @method string getHostNamePrefix()
1812
 * @method $this withHostNamePrefix($value)
1813
 * @method string getClusterId()
1814
 * @method $this withClusterId($value)
1815
 * @method string getHostNameSuffix()
1816
 * @method $this withHostNameSuffix($value)
1817
 * @method string getFilter()
1818
 * @method $this withFilter($value)
1819
 * @method string getPrivateIpAddress()
1820
 * @method $this withPrivateIpAddress($value)
1821
 * @method string getSequence()
1822
 * @method $this withSequence($value)
1823
 * @method string getSortBy()
1824
 * @method $this withSortBy($value)
1825
 */
1826
class ListNodes extends Rpc
1827
{
1828
}
1829
1830
/**
1831
 * @method string getQueueName()
1832
 * @method $this withQueueName($value)
1833
 * @method string getClusterId()
1834
 * @method $this withClusterId($value)
1835
 * @method string getPageNumber()
1836
 * @method $this withPageNumber($value)
1837
 * @method string getPageSize()
1838
 * @method $this withPageSize($value)
1839
 */
1840
class ListNodesByQueue extends Rpc
1841
{
1842
}
1843
1844
/**
1845
 * @method string getRole()
1846
 * @method $this withRole($value)
1847
 * @method string getClusterId()
1848
 * @method $this withClusterId($value)
1849
 * @method string getSequence()
1850
 * @method $this withSequence($value)
1851
 * @method string getHostName()
1852
 * @method $this withHostName($value)
1853
 * @method string getOnlyDetached()
1854
 * @method $this withOnlyDetached($value)
1855
 */
1856
class ListNodesNoPaging extends Rpc
1857
{
1858
}
1859
1860
/**
1861
 * @method string getSpotStrategy()
1862
 * @method $this withSpotStrategy($value)
1863
 * @method string getZoneId()
1864
 * @method $this withZoneId($value)
1865
 * @method string getInstanceChargeType()
1866
 * @method $this withInstanceChargeType($value)
1867
 */
1868
class ListPreferredEcsTypes extends Rpc
1869
{
1870
}
1871
1872
/**
1873
 * @method string getClusterId()
1874
 * @method $this withClusterId($value)
1875
 */
1876
class ListQueues extends Rpc
1877
{
1878
}
1879
1880
class ListRegions extends Rpc
1881
{
1882
}
1883
1884
/**
1885
 * @method string getClusterId()
1886
 * @method $this withClusterId($value)
1887
 */
1888
class ListSecurityGroups extends Rpc
1889
{
1890
}
1891
1892
/**
1893
 * @method string getOsTag()
1894
 * @method $this withOsTag($value)
1895
 * @method string getEhpcVersion()
1896
 * @method $this withEhpcVersion($value)
1897
 */
1898
class ListSoftwares extends Rpc
1899
{
1900
}
1901
1902
/**
1903
 * @method string getClusterId()
1904
 * @method $this withClusterId($value)
1905
 * @method string getPageNumber()
1906
 * @method $this withPageNumber($value)
1907
 * @method string getArchived()
1908
 * @method $this withArchived($value)
1909
 * @method string getPageSize()
1910
 * @method $this withPageSize($value)
1911
 * @method string getTaskId()
1912
 * @method $this withTaskId($value)
1913
 */
1914
class ListTasks extends Rpc
1915
{
1916
}
1917
1918
/**
1919
 * @method string getClusterId()
1920
 * @method $this withClusterId($value)
1921
 * @method string getPageNumber()
1922
 * @method $this withPageNumber($value)
1923
 * @method string getPageSize()
1924
 * @method $this withPageSize($value)
1925
 */
1926
class ListUsers extends Rpc
1927
{
1928
}
1929
1930
/**
1931
 * @method string getPageNumber()
1932
 * @method $this withPageNumber($value)
1933
 * @method string getPageSize()
1934
 * @method $this withPageSize($value)
1935
 */
1936
class ListVolumes extends Rpc
1937
{
1938
}
1939
1940
/**
1941
 * @method string getImageId()
1942
 * @method $this withImageId($value)
1943
 * @method string getDescription()
1944
 * @method $this withDescription($value)
1945
 * @method string getClusterId()
1946
 * @method $this withClusterId($value)
1947
 * @method string getImageOwnerAlias()
1948
 * @method $this withImageOwnerAlias($value)
1949
 * @method string getName()
1950
 * @method $this withName($value)
1951
 */
1952
class ModifyClusterAttributes extends Rpc
1953
{
1954
}
1955
1956
/**
1957
 * @method string getDescription()
1958
 * @method $this withDescription($value)
1959
 * @method string getContainerId()
1960
 * @method $this withContainerId($value)
1961
 */
1962
class ModifyContainerAppAttributes extends Rpc
1963
{
1964
}
1965
1966
/**
1967
 * @method array getRepo()
1968
 * @method string getDBServerInfo()
1969
 * @method $this withDBServerInfo($value)
1970
 * @method string getClusterId()
1971
 * @method $this withClusterId($value)
1972
 * @method string getDefaultRepoLocation()
1973
 * @method $this withDefaultRepoLocation($value)
1974
 * @method string getDBPassword()
1975
 * @method $this withDBPassword($value)
1976
 * @method string getDBType()
1977
 * @method $this withDBType($value)
1978
 * @method string getDBUsername()
1979
 * @method $this withDBUsername($value)
1980
 * @method string getPullUpdateTimeout()
1981
 * @method $this withPullUpdateTimeout($value)
1982
 * @method string getImageExpirationTimeout()
1983
 * @method $this withImageExpirationTimeout($value)
1984
 */
1985
class ModifyImageGatewayConfig extends Rpc
1986
{
1987
1988
    /**
1989
     * @param array $repo
1990
     *
1991
     * @return $this
1992
     */
1993
	public function withRepo(array $repo)
1994
	{
1995
	    $this->data['Repo'] = $repo;
1996
		foreach ($repo as $depth1 => $depth1Value) {
1997
			if(isset($depth1Value['Auth'])){
1998
				$this->options['query']['Repo.' . ($depth1 + 1) . '.Auth'] = $depth1Value['Auth'];
1999
			}
2000
			if(isset($depth1Value['Location'])){
2001
				$this->options['query']['Repo.' . ($depth1 + 1) . '.Location'] = $depth1Value['Location'];
2002
			}
2003
			if(isset($depth1Value['URL'])){
2004
				$this->options['query']['Repo.' . ($depth1 + 1) . '.URL'] = $depth1Value['URL'];
2005
			}
2006
		}
2007
2008
		return $this;
2009
    }
2010
}
2011
2012
/**
2013
 * @method string getClusterId()
2014
 * @method $this withClusterId($value)
2015
 * @method array getUser()
2016
 */
2017
class ModifyUserGroups extends Rpc
2018
{
2019
2020
    /**
2021
     * @param array $user
2022
     *
2023
     * @return $this
2024
     */
2025
	public function withUser(array $user)
2026
	{
2027
	    $this->data['User'] = $user;
2028
		foreach ($user as $depth1 => $depth1Value) {
2029
			if(isset($depth1Value['Name'])){
2030
				$this->options['query']['User.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
2031
			}
2032
			if(isset($depth1Value['Group'])){
2033
				$this->options['query']['User.' . ($depth1 + 1) . '.Group'] = $depth1Value['Group'];
2034
			}
2035
		}
2036
2037
		return $this;
2038
    }
2039
}
2040
2041
/**
2042
 * @method string getClusterId()
2043
 * @method $this withClusterId($value)
2044
 * @method array getUser()
2045
 */
2046
class ModifyUserPasswords extends Rpc
2047
{
2048
2049
    /**
2050
     * @param array $user
2051
     *
2052
     * @return $this
2053
     */
2054
	public function withUser(array $user)
2055
	{
2056
	    $this->data['User'] = $user;
2057
		foreach ($user as $depth1 => $depth1Value) {
2058
			if(isset($depth1Value['Password'])){
2059
				$this->options['query']['User.' . ($depth1 + 1) . '.Password'] = $depth1Value['Password'];
2060
			}
2061
			if(isset($depth1Value['Name'])){
2062
				$this->options['query']['User.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
2063
			}
2064
		}
2065
2066
		return $this;
2067
    }
2068
}
2069
2070
/**
2071
 * @method string getRunasUserPassword()
2072
 * @method $this withRunasUserPassword($value)
2073
 * @method string getRunasUser()
2074
 * @method $this withRunasUser($value)
2075
 * @method string getClusterId()
2076
 * @method $this withClusterId($value)
2077
 * @method string getPasswd()
2078
 * @method $this withPasswd($value)
2079
 */
2080
class ModifyVisualServicePasswd extends Rpc
2081
{
2082
}
2083
2084
/**
2085
 * @method string getMountDir()
2086
 * @method $this withMountDir($value)
2087
 * @method string getInstanceId()
2088
 * @method $this withInstanceId($value)
2089
 * @method string getRemoteDir()
2090
 * @method $this withRemoteDir($value)
2091
 * @method string getNfsDir()
2092
 * @method $this withNfsDir($value)
2093
 * @method string getProtocolType()
2094
 * @method $this withProtocolType($value)
2095
 */
2096
class MountNFS extends Rpc
2097
{
2098
}
2099
2100
/**
2101
 * @method string getClusterId()
2102
 * @method $this withClusterId($value)
2103
 * @method string getRepository()
2104
 * @method $this withRepository($value)
2105
 * @method string getContainerType()
2106
 * @method $this withContainerType($value)
2107
 * @method string getImageTag()
2108
 * @method $this withImageTag($value)
2109
 */
2110
class PullImage extends Rpc
2111
{
2112
}
2113
2114
class QueryServicePackAndPrice extends Rpc
2115
{
2116
}
2117
2118
/**
2119
 * @method string getImageId()
2120
 * @method $this withImageId($value)
2121
 * @method string getOsTag()
2122
 * @method $this withOsTag($value)
2123
 * @method string getClientVersion()
2124
 * @method $this withClientVersion($value)
2125
 * @method string getAccountType()
2126
 * @method $this withAccountType($value)
2127
 * @method string getClusterId()
2128
 * @method $this withClusterId($value)
2129
 * @method string getImageOwnerAlias()
2130
 * @method $this withImageOwnerAlias($value)
2131
 * @method string getSchedulerType()
2132
 * @method $this withSchedulerType($value)
2133
 */
2134
class RecoverCluster extends Rpc
2135
{
2136
}
2137
2138
/**
2139
 * @method string getJobs()
2140
 * @method $this withJobs($value)
2141
 * @method string getClusterId()
2142
 * @method $this withClusterId($value)
2143
 */
2144
class RerunJobs extends Rpc
2145
{
2146
}
2147
2148
/**
2149
 * @method array getInstance()
2150
 * @method string getClusterId()
2151
 * @method $this withClusterId($value)
2152
 */
2153
class ResetNodes extends Rpc
2154
{
2155
2156
    /**
2157
     * @param array $instance
2158
     *
2159
     * @return $this
2160
     */
2161
	public function withInstance(array $instance)
2162
	{
2163
	    $this->data['Instance'] = $instance;
2164
		foreach ($instance as $depth1 => $depth1Value) {
2165
			if(isset($depth1Value['Id'])){
2166
				$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id'];
2167
			}
2168
		}
2169
2170
		return $this;
2171
    }
2172
}
2173
2174
/**
2175
 * @method string getFreq()
2176
 * @method $this withFreq($value)
2177
 * @method string getClusterId()
2178
 * @method $this withClusterId($value)
2179
 * @method string getDuration()
2180
 * @method $this withDuration($value)
2181
 * @method string getHostName()
2182
 * @method $this withHostName($value)
2183
 * @method string getProcessId()
2184
 * @method $this withProcessId($value)
2185
 */
2186
class RunCloudMetricProfiling extends Rpc
2187
{
2188
}
2189
2190
/**
2191
 * @method string getImageId()
2192
 * @method $this withImageId($value)
2193
 * @method string getSpotPriceLimit()
2194
 * @method $this withSpotPriceLimit($value)
2195
 * @method string getExcludeNodes()
2196
 * @method $this withExcludeNodes($value)
2197
 * @method string getExtraNodesGrowRatio()
2198
 * @method $this withExtraNodesGrowRatio($value)
2199
 * @method string getShrinkIdleTimes()
2200
 * @method $this withShrinkIdleTimes($value)
2201
 * @method string getGrowTimeoutInMinutes()
2202
 * @method $this withGrowTimeoutInMinutes($value)
2203
 * @method string getClusterId()
2204
 * @method $this withClusterId($value)
2205
 * @method string getEnableAutoGrow()
2206
 * @method $this withEnableAutoGrow($value)
2207
 * @method string getEnableAutoShrink()
2208
 * @method $this withEnableAutoShrink($value)
2209
 * @method string getSpotStrategy()
2210
 * @method $this withSpotStrategy($value)
2211
 * @method string getMaxNodesInCluster()
2212
 * @method $this withMaxNodesInCluster($value)
2213
 * @method string getShrinkIntervalInMinutes()
2214
 * @method $this withShrinkIntervalInMinutes($value)
2215
 * @method array getQueues()
2216
 * @method string getGrowIntervalInMinutes()
2217
 * @method $this withGrowIntervalInMinutes($value)
2218
 * @method string getGrowRatio()
2219
 * @method $this withGrowRatio($value)
2220
 */
2221
class SetAutoScaleConfig extends Rpc
2222
{
2223
2224
    /**
2225
     * @param array $queues
2226
     *
2227
     * @return $this
2228
     */
2229
	public function withQueues(array $queues)
2230
	{
2231
	    $this->data['Queues'] = $queues;
2232
		foreach ($queues as $depth1 => $depth1Value) {
2233
			if(isset($depth1Value['SpotStrategy'])){
2234
				$this->options['query']['Queues.' . ($depth1 + 1) . '.SpotStrategy'] = $depth1Value['SpotStrategy'];
2235
			}
2236
			if(isset($depth1Value['QueueName'])){
2237
				$this->options['query']['Queues.' . ($depth1 + 1) . '.QueueName'] = $depth1Value['QueueName'];
2238
			}
2239
			if(isset($depth1Value['MinNodesInQueue'])){
2240
				$this->options['query']['Queues.' . ($depth1 + 1) . '.MinNodesInQueue'] = $depth1Value['MinNodesInQueue'];
2241
			}
2242
			foreach ($depth1Value['InstanceTypes'] as $depth2 => $depth2Value) {
2243
				if(isset($depth2Value['SpotStrategy'])){
2244
					$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.SpotStrategy'] = $depth2Value['SpotStrategy'];
2245
				}
2246
				if(isset($depth2Value['VSwitchId'])){
2247
					$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.VSwitchId'] = $depth2Value['VSwitchId'];
2248
				}
2249
				if(isset($depth2Value['InstanceType'])){
2250
					$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.InstanceType'] = $depth2Value['InstanceType'];
2251
				}
2252
				if(isset($depth2Value['ZoneId'])){
2253
					$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.ZoneId'] = $depth2Value['ZoneId'];
2254
				}
2255
				if(isset($depth2Value['HostNamePrefix'])){
2256
					$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.HostNamePrefix'] = $depth2Value['HostNamePrefix'];
2257
				}
2258
				if(isset($depth2Value['SpotPriceLimit'])){
2259
					$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.SpotPriceLimit'] = $depth2Value['SpotPriceLimit'];
2260
				}
2261
			}
2262
			if(isset($depth1Value['MaxNodesInQueue'])){
2263
				$this->options['query']['Queues.' . ($depth1 + 1) . '.MaxNodesInQueue'] = $depth1Value['MaxNodesInQueue'];
2264
			}
2265
			if(isset($depth1Value['InstanceType'])){
2266
				$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceType'] = $depth1Value['InstanceType'];
2267
			}
2268
			if(isset($depth1Value['QueueImageId'])){
2269
				$this->options['query']['Queues.' . ($depth1 + 1) . '.QueueImageId'] = $depth1Value['QueueImageId'];
2270
			}
2271
			if(isset($depth1Value['EnableAutoGrow'])){
2272
				$this->options['query']['Queues.' . ($depth1 + 1) . '.EnableAutoGrow'] = $depth1Value['EnableAutoGrow'];
2273
			}
2274
			if(isset($depth1Value['SpotPriceLimit'])){
2275
				$this->options['query']['Queues.' . ($depth1 + 1) . '.SpotPriceLimit'] = $depth1Value['SpotPriceLimit'];
2276
			}
2277
			if(isset($depth1Value['EnableAutoShrink'])){
2278
				$this->options['query']['Queues.' . ($depth1 + 1) . '.EnableAutoShrink'] = $depth1Value['EnableAutoShrink'];
2279
			}
2280
		}
2281
2282
		return $this;
2283
    }
2284
}
2285
2286
/**
2287
 * @method string getWatermark()
2288
 * @method $this withWatermark($value)
2289
 * @method string getLocalDrive()
2290
 * @method $this withLocalDrive($value)
2291
 * @method string getClusterId()
2292
 * @method $this withClusterId($value)
2293
 * @method string getClipboard()
2294
 * @method $this withClipboard($value)
2295
 * @method string getUsbRedirect()
2296
 * @method $this withUsbRedirect($value)
2297
 * @method string getAsyncMode()
2298
 * @method $this withAsyncMode($value)
2299
 * @method string getUdpPort()
2300
 * @method $this withUdpPort($value)
2301
 */
2302
class SetGWSClusterPolicy extends Rpc
2303
{
2304
2305
    /** @var string */
2306
    public $method = 'POST';
2307
}
2308
2309
/**
2310
 * @method string getInstanceId()
2311
 * @method $this withInstanceId($value)
2312
 * @method string getName()
2313
 * @method $this withName($value)
2314
 */
2315
class SetGWSInstanceName extends Rpc
2316
{
2317
}
2318
2319
/**
2320
 * @method string getInstanceId()
2321
 * @method $this withInstanceId($value)
2322
 * @method string getUserUid()
2323
 * @method $this withUserUid($value)
2324
 * @method string getUserName()
2325
 * @method $this withUserName($value)
2326
 */
2327
class SetGWSInstanceUser extends Rpc
2328
{
2329
}
2330
2331
/**
2332
 * @method string getRunasUserPassword()
2333
 * @method $this withRunasUserPassword($value)
2334
 * @method string getRunasUser()
2335
 * @method $this withRunasUser($value)
2336
 * @method string getClusterId()
2337
 * @method $this withClusterId($value)
2338
 */
2339
class SetJobUser extends Rpc
2340
{
2341
}
2342
2343
/**
2344
 * @method string getQueueName()
2345
 * @method $this withQueueName($value)
2346
 * @method string getClusterId()
2347
 * @method $this withClusterId($value)
2348
 * @method array getNode()
2349
 */
2350
class SetQueue extends Rpc
2351
{
2352
2353
    /**
2354
     * @param array $node
2355
     *
2356
     * @return $this
2357
     */
2358
	public function withNode(array $node)
2359
	{
2360
	    $this->data['Node'] = $node;
2361
		foreach ($node as $depth1 => $depth1Value) {
2362
			if(isset($depth1Value['Name'])){
2363
				$this->options['query']['Node.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
2364
			}
2365
		}
2366
2367
		return $this;
2368
    }
2369
}
2370
2371
/**
2372
 * @method string getClusterId()
2373
 * @method $this withClusterId($value)
2374
 */
2375
class StartCluster extends Rpc
2376
{
2377
}
2378
2379
/**
2380
 * @method string getInstanceId()
2381
 * @method $this withInstanceId($value)
2382
 */
2383
class StartGWSInstance extends Rpc
2384
{
2385
}
2386
2387
/**
2388
 * @method string getRole()
2389
 * @method $this withRole($value)
2390
 * @method array getInstance()
2391
 * @method string getClusterId()
2392
 * @method $this withClusterId($value)
2393
 */
2394
class StartNodes extends Rpc
2395
{
2396
2397
    /**
2398
     * @param array $instance
2399
     *
2400
     * @return $this
2401
     */
2402
	public function withInstance(array $instance)
2403
	{
2404
	    $this->data['Instance'] = $instance;
2405
		foreach ($instance as $depth1 => $depth1Value) {
2406
			if(isset($depth1Value['Id'])){
2407
				$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id'];
2408
			}
2409
		}
2410
2411
		return $this;
2412
    }
2413
}
2414
2415
/**
2416
 * @method string getClusterId()
2417
 * @method $this withClusterId($value)
2418
 * @method string getPort()
2419
 * @method $this withPort($value)
2420
 * @method string getCidrIp()
2421
 * @method $this withCidrIp($value)
2422
 */
2423
class StartVisualService extends Rpc
2424
{
2425
}
2426
2427
/**
2428
 * @method string getClusterId()
2429
 * @method $this withClusterId($value)
2430
 */
2431
class StopCluster extends Rpc
2432
{
2433
}
2434
2435
/**
2436
 * @method string getInstanceId()
2437
 * @method $this withInstanceId($value)
2438
 */
2439
class StopGWSInstance extends Rpc
2440
{
2441
}
2442
2443
/**
2444
 * @method string getJobs()
2445
 * @method $this withJobs($value)
2446
 * @method string getClusterId()
2447
 * @method $this withClusterId($value)
2448
 */
2449
class StopJobs extends Rpc
2450
{
2451
}
2452
2453
/**
2454
 * @method string getRole()
2455
 * @method $this withRole($value)
2456
 * @method array getInstance()
2457
 * @method string getClusterId()
2458
 * @method $this withClusterId($value)
2459
 */
2460
class StopNodes extends Rpc
2461
{
2462
2463
    /**
2464
     * @param array $instance
2465
     *
2466
     * @return $this
2467
     */
2468
	public function withInstance(array $instance)
2469
	{
2470
	    $this->data['Instance'] = $instance;
2471
		foreach ($instance as $depth1 => $depth1Value) {
2472
			if(isset($depth1Value['Id'])){
2473
				$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id'];
2474
			}
2475
		}
2476
2477
		return $this;
2478
    }
2479
}
2480
2481
/**
2482
 * @method string getClusterId()
2483
 * @method $this withClusterId($value)
2484
 * @method string getPort()
2485
 * @method $this withPort($value)
2486
 * @method string getCidrIp()
2487
 * @method $this withCidrIp($value)
2488
 */
2489
class StopVisualService extends Rpc
2490
{
2491
}
2492
2493
/**
2494
 * @method string getStderrRedirectPath()
2495
 * @method $this withStderrRedirectPath($value)
2496
 * @method string getRunasUserPassword()
2497
 * @method $this withRunasUserPassword($value)
2498
 * @method string getClockTime()
2499
 * @method $this withClockTime($value)
2500
 * @method string getCommandLine()
2501
 * @method $this withCommandLine($value)
2502
 * @method string getJobQueue()
2503
 * @method $this withJobQueue($value)
2504
 * @method string getArrayRequest()
2505
 * @method $this withArrayRequest($value)
2506
 * @method string getUnzipCmd()
2507
 * @method $this withUnzipCmd($value)
2508
 * @method string getPackagePath()
2509
 * @method $this withPackagePath($value)
2510
 * @method string getMem()
2511
 * @method $this withMem($value)
2512
 * @method string getStdoutRedirectPath()
2513
 * @method $this withStdoutRedirectPath($value)
2514
 * @method string getVariables()
2515
 * @method $this withVariables($value)
2516
 * @method string getPostCmdLine()
2517
 * @method $this withPostCmdLine($value)
2518
 * @method string getRunasUser()
2519
 * @method $this withRunasUser($value)
2520
 * @method string getClusterId()
2521
 * @method $this withClusterId($value)
2522
 * @method string getReRunable()
2523
 * @method $this withReRunable($value)
2524
 * @method string getThread()
2525
 * @method $this withThread($value)
2526
 * @method string getPriority()
2527
 * @method $this withPriority($value)
2528
 * @method string getGpu()
2529
 * @method $this withGpu($value)
2530
 * @method string getNode()
2531
 * @method $this withNode($value)
2532
 * @method string getTask()
2533
 * @method $this withTask($value)
2534
 * @method string getInputFileUrl()
2535
 * @method $this withInputFileUrl($value)
2536
 * @method string getName()
2537
 * @method $this withName($value)
2538
 * @method string getContainerId()
2539
 * @method $this withContainerId($value)
2540
 */
2541
class SubmitJob extends Rpc
2542
{
2543
}
2544
2545
/**
2546
 * @method string getClusterId()
2547
 * @method $this withClusterId($value)
2548
 * @method string getAccountUid()
2549
 * @method $this withAccountUid($value)
2550
 * @method string getUserName()
2551
 * @method $this withUserName($value)
2552
 */
2553
class UnbindAccountToClusterUser extends Rpc
2554
{
2555
}
2556
2557
/**
2558
 * @method string getClusterId()
2559
 * @method $this withClusterId($value)
2560
 * @method string getApplication()
2561
 * @method $this withApplication($value)
2562
 */
2563
class UninstallSoftware extends Rpc
2564
{
2565
}
2566
2567
/**
2568
 * @method array getAdditionalVolumes()
2569
 * @method string getClusterId()
2570
 * @method $this withClusterId($value)
2571
 */
2572
class UpdateClusterVolumes extends Rpc
2573
{
2574
2575
    /**
2576
     * @param array $additionalVolumes
2577
     *
2578
     * @return $this
2579
     */
2580
	public function withAdditionalVolumes(array $additionalVolumes)
2581
	{
2582
	    $this->data['AdditionalVolumes'] = $additionalVolumes;
2583
		foreach ($additionalVolumes as $depth1 => $depth1Value) {
2584
			if(isset($depth1Value['VolumeType'])){
2585
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeType'] = $depth1Value['VolumeType'];
2586
			}
2587
			if(isset($depth1Value['VolumeProtocol'])){
2588
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeProtocol'] = $depth1Value['VolumeProtocol'];
2589
			}
2590
			if(isset($depth1Value['LocalDirectory'])){
2591
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.LocalDirectory'] = $depth1Value['LocalDirectory'];
2592
			}
2593
			if(isset($depth1Value['RemoteDirectory'])){
2594
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.RemoteDirectory'] = $depth1Value['RemoteDirectory'];
2595
			}
2596
			foreach ($depth1Value['Roles'] as $depth2 => $depth2Value) {
2597
				if(isset($depth2Value['Name'])){
2598
					$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.Roles.' . ($depth2 + 1) . '.Name'] = $depth2Value['Name'];
2599
				}
2600
			}
2601
			if(isset($depth1Value['VolumeId'])){
2602
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeId'] = $depth1Value['VolumeId'];
2603
			}
2604
			if(isset($depth1Value['VolumeMountpoint'])){
2605
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeMountpoint'] = $depth1Value['VolumeMountpoint'];
2606
			}
2607
			if(isset($depth1Value['Location'])){
2608
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.Location'] = $depth1Value['Location'];
2609
			}
2610
			if(isset($depth1Value['JobQueue'])){
2611
				$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.JobQueue'] = $depth1Value['JobQueue'];
2612
			}
2613
		}
2614
2615
		return $this;
2616
    }
2617
}
2618
2619
/**
2620
 * @method string getQueueName()
2621
 * @method $this withQueueName($value)
2622
 * @method string getClusterId()
2623
 * @method $this withClusterId($value)
2624
 * @method string getResourceGroupId()
2625
 * @method $this withResourceGroupId($value)
2626
 * @method string getComputeInstanceType()
2627
 * @method $this withComputeInstanceType($value)
2628
 */
2629
class UpdateQueueConfig extends Rpc
2630
{
2631
}
2632
2633
/**
2634
 * @method string getClientVersion()
2635
 * @method $this withClientVersion($value)
2636
 * @method string getClusterId()
2637
 * @method $this withClusterId($value)
2638
 */
2639
class UpgradeClient extends Rpc
2640
{
2641
}
2642