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 ( 83d73a...4fea72 )
by
unknown
04:29
created

ApplyNodes::withInstanceTypeModel()   A

Complexity

Conditions 4
Paths 5

Size

Total Lines 13
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

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