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 ( 172a9f...2600a9 )
by
unknown
05:25
created

SetAutoScaleConfig::withQueues()   F

Complexity

Conditions 17
Paths 16641

Size

Total Lines 51
Code Lines 32

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 32
dl 0
loc 51
c 0
b 0
f 0
rs 1.0499
cc 17
nc 16641
nop 1

How to fix   Long Method    Complexity   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

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