1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AlibabaCloud\EHPC\V20180412; |
4
|
|
|
|
5
|
|
|
use AlibabaCloud\Client\Resolver\ApiResolver; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* @method AddContainerApp addContainerApp(array $options = []) |
9
|
|
|
* @method AddExistedNodes addExistedNodes(array $options = []) |
10
|
|
|
* @method AddLocalNodes addLocalNodes(array $options = []) |
11
|
|
|
* @method AddNodes addNodes(array $options = []) |
12
|
|
|
* @method AddQueue addQueue(array $options = []) |
13
|
|
|
* @method AddSecurityGroup addSecurityGroup(array $options = []) |
14
|
|
|
* @method AddUsers addUsers(array $options = []) |
15
|
|
|
* @method ApplyNodes applyNodes(array $options = []) |
16
|
|
|
* @method CreateCluster createCluster(array $options = []) |
17
|
|
|
* @method CreateGWSCluster createGWSCluster(array $options = []) |
18
|
|
|
* @method CreateGWSImage createGWSImage(array $options = []) |
19
|
|
|
* @method CreateGWSInstance createGWSInstance(array $options = []) |
20
|
|
|
* @method CreateHybridCluster createHybridCluster(array $options = []) |
21
|
|
|
* @method CreateJobFile createJobFile(array $options = []) |
22
|
|
|
* @method CreateJobTemplate createJobTemplate(array $options = []) |
23
|
|
|
* @method DeleteCluster deleteCluster(array $options = []) |
24
|
|
|
* @method DeleteContainerApps deleteContainerApps(array $options = []) |
25
|
|
|
* @method DeleteGWSCluster deleteGWSCluster(array $options = []) |
26
|
|
|
* @method DeleteGWSInstance deleteGWSInstance(array $options = []) |
27
|
|
|
* @method DeleteImage deleteImage(array $options = []) |
28
|
|
|
* @method DeleteJobs deleteJobs(array $options = []) |
29
|
|
|
* @method DeleteJobTemplates deleteJobTemplates(array $options = []) |
30
|
|
|
* @method DeleteLocalImage deleteLocalImage(array $options = []) |
31
|
|
|
* @method DeleteNodes deleteNodes(array $options = []) |
32
|
|
|
* @method DeleteQueue deleteQueue(array $options = []) |
33
|
|
|
* @method DeleteSecurityGroup deleteSecurityGroup(array $options = []) |
34
|
|
|
* @method DeleteUsers deleteUsers(array $options = []) |
35
|
|
|
* @method DescribeAutoScaleConfig describeAutoScaleConfig(array $options = []) |
36
|
|
|
* @method DescribeCluster describeCluster(array $options = []) |
37
|
|
|
* @method DescribeContainerApp describeContainerApp(array $options = []) |
38
|
|
|
* @method DescribeEstackImage describeEstackImage(array $options = []) |
39
|
|
|
* @method DescribeGWSClusterPolicy describeGWSClusterPolicy(array $options = []) |
40
|
|
|
* @method DescribeGWSClusters describeGWSClusters(array $options = []) |
41
|
|
|
* @method DescribeGWSImages describeGWSImages(array $options = []) |
42
|
|
|
* @method DescribeGWSInstances describeGWSInstances(array $options = []) |
43
|
|
|
* @method DescribeImage describeImage(array $options = []) |
44
|
|
|
* @method DescribeImageGatewayConfig describeImageGatewayConfig(array $options = []) |
45
|
|
|
* @method DescribeImagePrice describeImagePrice(array $options = []) |
46
|
|
|
* @method DescribeJob describeJob(array $options = []) |
47
|
|
|
* @method DescribeNFSClientStatus describeNFSClientStatus(array $options = []) |
48
|
|
|
* @method DescribePrice describePrice(array $options = []) |
49
|
|
|
* @method DescribeServerlessJobs describeServerlessJobs(array $options = []) |
50
|
|
|
* @method EditJobTemplate editJobTemplate(array $options = []) |
51
|
|
|
* @method GetAccountingReport getAccountingReport(array $options = []) |
52
|
|
|
* @method GetAutoScaleConfig getAutoScaleConfig(array $options = []) |
53
|
|
|
* @method GetCloudMetricLogs getCloudMetricLogs(array $options = []) |
54
|
|
|
* @method GetCloudMetricProfiling getCloudMetricProfiling(array $options = []) |
55
|
|
|
* @method GetClusterVolumes getClusterVolumes(array $options = []) |
56
|
|
|
* @method GetCommonImage getCommonImage(array $options = []) |
57
|
|
|
* @method GetGWSConnectTicket getGWSConnectTicket(array $options = []) |
58
|
|
|
* @method GetHybridClusterConfig getHybridClusterConfig(array $options = []) |
59
|
|
|
* @method GetIfEcsTypeSupportHtConfig getIfEcsTypeSupportHtConfig(array $options = []) |
60
|
|
|
* @method GetJobLog getJobLog(array $options = []) |
61
|
|
|
* @method GetPostScripts getPostScripts(array $options = []) |
62
|
|
|
* @method GetSchedulerInfo getSchedulerInfo(array $options = []) |
63
|
|
|
* @method GetUserImage getUserImage(array $options = []) |
64
|
|
|
* @method GetVisualServiceStatus getVisualServiceStatus(array $options = []) |
65
|
|
|
* @method InitializeEHPC initializeEHPC(array $options = []) |
66
|
|
|
* @method InspectImage inspectImage(array $options = []) |
67
|
|
|
* @method InstallSoftware installSoftware(array $options = []) |
68
|
|
|
* @method InvokeShellCommand invokeShellCommand(array $options = []) |
69
|
|
|
* @method ListAvailableEcsTypes listAvailableEcsTypes(array $options = []) |
70
|
|
|
* @method ListCloudMetricProfilings listCloudMetricProfilings(array $options = []) |
71
|
|
|
* @method ListClusterLogs listClusterLogs(array $options = []) |
72
|
|
|
* @method ListClusters listClusters(array $options = []) |
73
|
|
|
* @method ListClustersMeta listClustersMeta(array $options = []) |
74
|
|
|
* @method ListCommands listCommands(array $options = []) |
75
|
|
|
* @method ListCommunityImages listCommunityImages(array $options = []) |
76
|
|
|
* @method ListContainerApps listContainerApps(array $options = []) |
77
|
|
|
* @method ListContainerImages listContainerImages(array $options = []) |
78
|
|
|
* @method ListCpfsFileSystems listCpfsFileSystems(array $options = []) |
79
|
|
|
* @method ListCurrentClientVersion listCurrentClientVersion(array $options = []) |
80
|
|
|
* @method ListCustomImages listCustomImages(array $options = []) |
81
|
|
|
* @method ListFileSystemWithMountTargets listFileSystemWithMountTargets(array $options = []) |
82
|
|
|
* @method ListImages listImages(array $options = []) |
83
|
|
|
* @method ListInstalledSoftware listInstalledSoftware(array $options = []) |
84
|
|
|
* @method ListInvocationResults listInvocationResults(array $options = []) |
85
|
|
|
* @method ListInvocationStatus listInvocationStatus(array $options = []) |
86
|
|
|
* @method ListJobs listJobs(array $options = []) |
87
|
|
|
* @method ListJobsWithFilters listJobsWithFilters(array $options = []) |
88
|
|
|
* @method ListJobTemplates listJobTemplates(array $options = []) |
89
|
|
|
* @method ListNodes listNodes(array $options = []) |
90
|
|
|
* @method ListNodesByQueue listNodesByQueue(array $options = []) |
91
|
|
|
* @method ListNodesNoPaging listNodesNoPaging(array $options = []) |
92
|
|
|
* @method ListPreferredEcsTypes listPreferredEcsTypes(array $options = []) |
93
|
|
|
* @method ListQueues listQueues(array $options = []) |
94
|
|
|
* @method ListRegions listRegions(array $options = []) |
95
|
|
|
* @method ListSecurityGroups listSecurityGroups(array $options = []) |
96
|
|
|
* @method ListServerlessJobs listServerlessJobs(array $options = []) |
97
|
|
|
* @method ListSoftwares listSoftwares(array $options = []) |
98
|
|
|
* @method ListTagResources listTagResources(array $options = []) |
99
|
|
|
* @method ListTasks listTasks(array $options = []) |
100
|
|
|
* @method ListUpgradeClients listUpgradeClients(array $options = []) |
101
|
|
|
* @method ListUsers listUsers(array $options = []) |
102
|
|
|
* @method ListUsersAsync listUsersAsync(array $options = []) |
103
|
|
|
* @method ListVolumes listVolumes(array $options = []) |
104
|
|
|
* @method ModifyClusterAttributes modifyClusterAttributes(array $options = []) |
105
|
|
|
* @method ModifyContainerAppAttributes modifyContainerAppAttributes(array $options = []) |
106
|
|
|
* @method ModifyImageGatewayConfig modifyImageGatewayConfig(array $options = []) |
107
|
|
|
* @method ModifyUserGroups modifyUserGroups(array $options = []) |
108
|
|
|
* @method ModifyUserPasswords modifyUserPasswords(array $options = []) |
109
|
|
|
* @method ModifyVisualServicePasswd modifyVisualServicePasswd(array $options = []) |
110
|
|
|
* @method MountNFS mountNFS(array $options = []) |
111
|
|
|
* @method PullImage pullImage(array $options = []) |
112
|
|
|
* @method QueryServicePackAndPrice queryServicePackAndPrice(array $options = []) |
113
|
|
|
* @method RecoverCluster recoverCluster(array $options = []) |
114
|
|
|
* @method RerunJobs rerunJobs(array $options = []) |
115
|
|
|
* @method ResetNodes resetNodes(array $options = []) |
116
|
|
|
* @method RunCloudMetricProfiling runCloudMetricProfiling(array $options = []) |
117
|
|
|
* @method SetAutoScaleConfig setAutoScaleConfig(array $options = []) |
118
|
|
|
* @method SetGWSClusterPolicy setGWSClusterPolicy(array $options = []) |
119
|
|
|
* @method SetGWSInstanceName setGWSInstanceName(array $options = []) |
120
|
|
|
* @method SetGWSInstanceUser setGWSInstanceUser(array $options = []) |
121
|
|
|
* @method SetPostScripts setPostScripts(array $options = []) |
122
|
|
|
* @method SetQueue setQueue(array $options = []) |
123
|
|
|
* @method SetSchedulerInfo setSchedulerInfo(array $options = []) |
124
|
|
|
* @method StartCluster startCluster(array $options = []) |
125
|
|
|
* @method StartGWSInstance startGWSInstance(array $options = []) |
126
|
|
|
* @method StartNodes startNodes(array $options = []) |
127
|
|
|
* @method StartVisualService startVisualService(array $options = []) |
128
|
|
|
* @method StopCluster stopCluster(array $options = []) |
129
|
|
|
* @method StopGWSInstance stopGWSInstance(array $options = []) |
130
|
|
|
* @method StopJobs stopJobs(array $options = []) |
131
|
|
|
* @method StopNodes stopNodes(array $options = []) |
132
|
|
|
* @method StopServerlessJobs stopServerlessJobs(array $options = []) |
133
|
|
|
* @method StopVisualService stopVisualService(array $options = []) |
134
|
|
|
* @method SubmitJob submitJob(array $options = []) |
135
|
|
|
* @method SubmitServerlessJob submitServerlessJob(array $options = []) |
136
|
|
|
* @method SummaryImages summaryImages(array $options = []) |
137
|
|
|
* @method SummaryImagesInfo summaryImagesInfo(array $options = []) |
138
|
|
|
* @method SyncUsers syncUsers(array $options = []) |
139
|
|
|
* @method TagResources tagResources(array $options = []) |
140
|
|
|
* @method UninstallSoftware uninstallSoftware(array $options = []) |
141
|
|
|
* @method UnTagResources unTagResources(array $options = []) |
142
|
|
|
* @method UpdateClusterVolumes updateClusterVolumes(array $options = []) |
143
|
|
|
* @method UpdateQueueConfig updateQueueConfig(array $options = []) |
144
|
|
|
* @method UpgradeClient upgradeClient(array $options = []) |
145
|
|
|
*/ |
146
|
|
|
class EHPCApiResolver extends ApiResolver |
147
|
|
|
{ |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc |
151
|
|
|
{ |
152
|
|
|
/** @var string */ |
153
|
|
|
public $product = 'EHPC'; |
154
|
|
|
|
155
|
|
|
/** @var string */ |
156
|
|
|
public $version = '2018-04-12'; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @method string getDescription() |
161
|
|
|
* @method $this withDescription($value) |
162
|
|
|
* @method string getRepository() |
163
|
|
|
* @method $this withRepository($value) |
164
|
|
|
* @method string getContainerType() |
165
|
|
|
* @method $this withContainerType($value) |
166
|
|
|
* @method string getName() |
167
|
|
|
* @method $this withName($value) |
168
|
|
|
* @method string getImageTag() |
169
|
|
|
* @method $this withImageTag($value) |
170
|
|
|
*/ |
171
|
|
|
class AddContainerApp extends Rpc |
172
|
|
|
{ |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* @method string getImageId() |
177
|
|
|
* @method $this withImageId($value) |
178
|
|
|
* @method array getInstance() |
179
|
|
|
* @method string getClusterId() |
180
|
|
|
* @method $this withClusterId($value) |
181
|
|
|
* @method string getJobQueue() |
182
|
|
|
* @method $this withJobQueue($value) |
183
|
|
|
* @method string getImageOwnerAlias() |
184
|
|
|
* @method $this withImageOwnerAlias($value) |
185
|
|
|
*/ |
186
|
|
|
class AddExistedNodes extends Rpc |
187
|
|
|
{ |
188
|
|
|
|
189
|
|
|
/** |
190
|
|
|
* @param array $instance |
191
|
|
|
* |
192
|
|
|
* @return $this |
193
|
|
|
*/ |
194
|
|
|
public function withInstance(array $instance) |
195
|
|
|
{ |
196
|
|
|
$this->data['Instance'] = $instance; |
197
|
|
|
foreach ($instance as $depth1 => $depth1Value) { |
198
|
|
|
if(isset($depth1Value['Id'])){ |
199
|
|
|
$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id']; |
200
|
|
|
} |
201
|
|
|
} |
202
|
|
|
|
203
|
|
|
return $this; |
204
|
|
|
} |
205
|
|
|
} |
206
|
|
|
|
207
|
|
|
/** |
208
|
|
|
* @method string getClusterId() |
209
|
|
|
* @method $this withClusterId($value) |
210
|
|
|
* @method string getNodes() |
211
|
|
|
* @method $this withNodes($value) |
212
|
|
|
* @method string getQueue() |
213
|
|
|
* @method $this withQueue($value) |
214
|
|
|
*/ |
215
|
|
|
class AddLocalNodes extends Rpc |
216
|
|
|
{ |
217
|
|
|
} |
218
|
|
|
|
219
|
|
|
/** |
220
|
|
|
* @method string getDnsConfig() |
221
|
|
|
* @method $this withDnsConfig($value) |
222
|
|
|
* @method string getImageOwnerAlias() |
223
|
|
|
* @method $this withImageOwnerAlias($value) |
224
|
|
|
* @method array getDataDisks() |
225
|
|
|
* @method string getSystemDiskSize() |
226
|
|
|
* @method $this withSystemDiskSize($value) |
227
|
|
|
* @method string getHostNamePrefix() |
228
|
|
|
* @method $this withHostNamePrefix($value) |
229
|
|
|
* @method string getComputeSpotInterruptionBehavior() |
230
|
|
|
* @method $this withComputeSpotInterruptionBehavior($value) |
231
|
|
|
* @method string getComputeSpotPriceLimit() |
232
|
|
|
* @method $this withComputeSpotPriceLimit($value) |
233
|
|
|
* @method string getAutoRenewPeriod() |
234
|
|
|
* @method $this withAutoRenewPeriod($value) |
235
|
|
|
* @method string getPeriod() |
236
|
|
|
* @method $this withPeriod($value) |
237
|
|
|
* @method string getCount() |
238
|
|
|
* @method $this withCount($value) |
239
|
|
|
* @method string getComputeSpotStrategy() |
240
|
|
|
* @method $this withComputeSpotStrategy($value) |
241
|
|
|
* @method string getHostNameSuffix() |
242
|
|
|
* @method $this withHostNameSuffix($value) |
243
|
|
|
* @method string getSync() |
244
|
|
|
* @method $this withSync($value) |
245
|
|
|
* @method string getVSwitchId() |
246
|
|
|
* @method $this withVSwitchId($value) |
247
|
|
|
* @method string getPeriodUnit() |
248
|
|
|
* @method $this withPeriodUnit($value) |
249
|
|
|
* @method string getComputeEnableHt() |
250
|
|
|
* @method $this withComputeEnableHt($value) |
251
|
|
|
* @method string getAutoRenew() |
252
|
|
|
* @method $this withAutoRenew($value) |
253
|
|
|
* @method string getInternetChargeType() |
254
|
|
|
* @method $this withInternetChargeType($value) |
255
|
|
|
* @method string getCreateMode() |
256
|
|
|
* @method $this withCreateMode($value) |
257
|
|
|
* @method string getZoneId() |
258
|
|
|
* @method $this withZoneId($value) |
259
|
|
|
* @method string getInternetMaxBandWidthIn() |
260
|
|
|
* @method $this withInternetMaxBandWidthIn($value) |
261
|
|
|
* @method string getImageId() |
262
|
|
|
* @method $this withImageId($value) |
263
|
|
|
* @method string getSystemDiskLevel() |
264
|
|
|
* @method $this withSystemDiskLevel($value) |
265
|
|
|
* @method string getClientToken() |
266
|
|
|
* @method $this withClientToken($value) |
267
|
|
|
* @method string getAllocatePublicAddress() |
268
|
|
|
* @method $this withAllocatePublicAddress($value) |
269
|
|
|
* @method string getInternetMaxBandWidthOut() |
270
|
|
|
* @method $this withInternetMaxBandWidthOut($value) |
271
|
|
|
* @method string getJobQueue() |
272
|
|
|
* @method $this withJobQueue($value) |
273
|
|
|
* @method string getSystemDiskType() |
274
|
|
|
* @method $this withSystemDiskType($value) |
275
|
|
|
* @method string getMinCount() |
276
|
|
|
* @method $this withMinCount($value) |
277
|
|
|
* @method string getInstanceType() |
278
|
|
|
* @method $this withInstanceType($value) |
279
|
|
|
* @method string getClusterId() |
280
|
|
|
* @method $this withClusterId($value) |
281
|
|
|
* @method string getNetworkInterfaceTrafficMode() |
282
|
|
|
* @method $this withNetworkInterfaceTrafficMode($value) |
283
|
|
|
* @method string getComputeSpotDuration() |
284
|
|
|
* @method $this withComputeSpotDuration($value) |
285
|
|
|
* @method string getEcsChargeType() |
286
|
|
|
* @method $this withEcsChargeType($value) |
287
|
|
|
*/ |
288
|
|
|
class AddNodes extends Rpc |
289
|
|
|
{ |
290
|
|
|
|
291
|
|
|
/** |
292
|
|
|
* @param array $dataDisks |
293
|
|
|
* |
294
|
|
|
* @return $this |
295
|
|
|
*/ |
296
|
|
|
public function withDataDisks(array $dataDisks) |
297
|
|
|
{ |
298
|
|
|
$this->data['DataDisks'] = $dataDisks; |
299
|
|
|
foreach ($dataDisks as $depth1 => $depth1Value) { |
300
|
|
|
if(isset($depth1Value['DataDiskDeleteWithInstance'])){ |
301
|
|
|
$this->options['query']['DataDisks.' . ($depth1 + 1) . '.DataDiskDeleteWithInstance'] = $depth1Value['DataDiskDeleteWithInstance']; |
302
|
|
|
} |
303
|
|
|
if(isset($depth1Value['DataDiskEncrypted'])){ |
304
|
|
|
$this->options['query']['DataDisks.' . ($depth1 + 1) . '.DataDiskEncrypted'] = $depth1Value['DataDiskEncrypted']; |
305
|
|
|
} |
306
|
|
|
if(isset($depth1Value['DataDiskKMSKeyId'])){ |
307
|
|
|
$this->options['query']['DataDisks.' . ($depth1 + 1) . '.DataDiskKMSKeyId'] = $depth1Value['DataDiskKMSKeyId']; |
308
|
|
|
} |
309
|
|
|
if(isset($depth1Value['DataDiskSize'])){ |
310
|
|
|
$this->options['query']['DataDisks.' . ($depth1 + 1) . '.DataDiskSize'] = $depth1Value['DataDiskSize']; |
311
|
|
|
} |
312
|
|
|
if(isset($depth1Value['DataDiskCategory'])){ |
313
|
|
|
$this->options['query']['DataDisks.' . ($depth1 + 1) . '.DataDiskCategory'] = $depth1Value['DataDiskCategory']; |
314
|
|
|
} |
315
|
|
|
if(isset($depth1Value['DataDiskPerformanceLevel'])){ |
316
|
|
|
$this->options['query']['DataDisks.' . ($depth1 + 1) . '.DataDiskPerformanceLevel'] = $depth1Value['DataDiskPerformanceLevel']; |
317
|
|
|
} |
318
|
|
|
} |
319
|
|
|
|
320
|
|
|
return $this; |
321
|
|
|
} |
322
|
|
|
} |
323
|
|
|
|
324
|
|
|
/** |
325
|
|
|
* @method string getDeploymentSetId() |
326
|
|
|
* @method $this withDeploymentSetId($value) |
327
|
|
|
* @method string getQueueName() |
328
|
|
|
* @method $this withQueueName($value) |
329
|
|
|
* @method string getClusterId() |
330
|
|
|
* @method $this withClusterId($value) |
331
|
|
|
* @method string getNetworkInterfaceTrafficMode() |
332
|
|
|
* @method $this withNetworkInterfaceTrafficMode($value) |
333
|
|
|
* @method string getUseESS() |
334
|
|
|
* @method $this withUseESS($value) |
335
|
|
|
*/ |
336
|
|
|
class AddQueue extends Rpc |
337
|
|
|
{ |
338
|
|
|
} |
339
|
|
|
|
340
|
|
|
/** |
341
|
|
|
* @method string getClientToken() |
342
|
|
|
* @method $this withClientToken($value) |
343
|
|
|
* @method string getSecurityGroupId() |
344
|
|
|
* @method $this withSecurityGroupId($value) |
345
|
|
|
* @method string getClusterId() |
346
|
|
|
* @method $this withClusterId($value) |
347
|
|
|
*/ |
348
|
|
|
class AddSecurityGroup extends Rpc |
349
|
|
|
{ |
350
|
|
|
} |
351
|
|
|
|
352
|
|
|
/** |
353
|
|
|
* @method string getClusterId() |
354
|
|
|
* @method $this withClusterId($value) |
355
|
|
|
* @method string getAsync() |
356
|
|
|
* @method $this withAsync($value) |
357
|
|
|
* @method array getUser() |
358
|
|
|
*/ |
359
|
|
|
class AddUsers extends Rpc |
360
|
|
|
{ |
361
|
|
|
|
362
|
|
|
/** |
363
|
|
|
* @param array $user |
364
|
|
|
* |
365
|
|
|
* @return $this |
366
|
|
|
*/ |
367
|
|
|
public function withUser(array $user) |
368
|
|
|
{ |
369
|
|
|
$this->data['User'] = $user; |
370
|
|
|
foreach ($user as $depth1 => $depth1Value) { |
371
|
|
|
if(isset($depth1Value['Password'])){ |
372
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Password'] = $depth1Value['Password']; |
373
|
|
|
} |
374
|
|
|
if(isset($depth1Value['Name'])){ |
375
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
376
|
|
|
} |
377
|
|
|
if(isset($depth1Value['Group'])){ |
378
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Group'] = $depth1Value['Group']; |
379
|
|
|
} |
380
|
|
|
} |
381
|
|
|
|
382
|
|
|
return $this; |
383
|
|
|
} |
384
|
|
|
} |
385
|
|
|
|
386
|
|
|
/** |
387
|
|
|
* @method string getImageId() |
388
|
|
|
* @method $this withImageId($value) |
389
|
|
|
* @method string getMemory() |
390
|
|
|
* @method $this withMemory($value) |
391
|
|
|
* @method string getSystemDiskLevel() |
392
|
|
|
* @method $this withSystemDiskLevel($value) |
393
|
|
|
* @method string getAllocatePublicAddress() |
394
|
|
|
* @method $this withAllocatePublicAddress($value) |
395
|
|
|
* @method string getInternetMaxBandWidthOut() |
396
|
|
|
* @method $this withInternetMaxBandWidthOut($value) |
397
|
|
|
* @method string getResourceAmountType() |
398
|
|
|
* @method $this withResourceAmountType($value) |
399
|
|
|
* @method string getStrictResourceProvision() |
400
|
|
|
* @method $this withStrictResourceProvision($value) |
401
|
|
|
* @method string getJobQueue() |
402
|
|
|
* @method $this withJobQueue($value) |
403
|
|
|
* @method string getSystemDiskType() |
404
|
|
|
* @method $this withSystemDiskType($value) |
405
|
|
|
* @method string getCores() |
406
|
|
|
* @method $this withCores($value) |
407
|
|
|
* @method string getSystemDiskSize() |
408
|
|
|
* @method $this withSystemDiskSize($value) |
409
|
|
|
* @method array getZoneInfos() |
410
|
|
|
* @method string getHostNamePrefix() |
411
|
|
|
* @method $this withHostNamePrefix($value) |
412
|
|
|
* @method array getTag() |
413
|
|
|
* @method string getComputeSpotPriceLimit() |
414
|
|
|
* @method $this withComputeSpotPriceLimit($value) |
415
|
|
|
* @method string getClusterId() |
416
|
|
|
* @method $this withClusterId($value) |
417
|
|
|
* @method string getComputeSpotStrategy() |
418
|
|
|
* @method $this withComputeSpotStrategy($value) |
419
|
|
|
* @method string getHostNameSuffix() |
420
|
|
|
* @method $this withHostNameSuffix($value) |
421
|
|
|
* @method string getPriorityStrategy() |
422
|
|
|
* @method $this withPriorityStrategy($value) |
423
|
|
|
* @method string getInstanceFamilyLevel() |
424
|
|
|
* @method $this withInstanceFamilyLevel($value) |
425
|
|
|
* @method string getRound() |
426
|
|
|
* @method $this withRound($value) |
427
|
|
|
* @method string getInternetChargeType() |
428
|
|
|
* @method $this withInternetChargeType($value) |
429
|
|
|
* @method string getInterval() |
430
|
|
|
* @method $this withInterval($value) |
431
|
|
|
* @method array getInstanceTypeModel() |
432
|
|
|
* @method string getInternetMaxBandWidthIn() |
433
|
|
|
* @method $this withInternetMaxBandWidthIn($value) |
434
|
|
|
* @method string getTargetCapacity() |
435
|
|
|
* @method $this withTargetCapacity($value) |
436
|
|
|
* @method string getStrictSatisfiedTargetCapacity() |
437
|
|
|
* @method $this withStrictSatisfiedTargetCapacity($value) |
438
|
|
|
*/ |
439
|
|
|
class ApplyNodes extends Rpc |
440
|
|
|
{ |
441
|
|
|
|
442
|
|
|
/** |
443
|
|
|
* @param array $zoneInfos |
444
|
|
|
* |
445
|
|
|
* @return $this |
446
|
|
|
*/ |
447
|
|
|
public function withZoneInfos(array $zoneInfos) |
448
|
|
|
{ |
449
|
|
|
$this->data['ZoneInfos'] = $zoneInfos; |
450
|
|
|
foreach ($zoneInfos as $depth1 => $depth1Value) { |
451
|
|
|
if(isset($depth1Value['VSwitchId'])){ |
452
|
|
|
$this->options['query']['ZoneInfos.' . ($depth1 + 1) . '.VSwitchId'] = $depth1Value['VSwitchId']; |
453
|
|
|
} |
454
|
|
|
if(isset($depth1Value['ZoneId'])){ |
455
|
|
|
$this->options['query']['ZoneInfos.' . ($depth1 + 1) . '.ZoneId'] = $depth1Value['ZoneId']; |
456
|
|
|
} |
457
|
|
|
} |
458
|
|
|
|
459
|
|
|
return $this; |
460
|
|
|
} |
461
|
|
|
|
462
|
|
|
/** |
463
|
|
|
* @param array $tag |
464
|
|
|
* |
465
|
|
|
* @return $this |
466
|
|
|
*/ |
467
|
|
|
public function withTag(array $tag) |
468
|
|
|
{ |
469
|
|
|
$this->data['Tag'] = $tag; |
470
|
|
|
foreach ($tag as $depth1 => $depth1Value) { |
471
|
|
|
if(isset($depth1Value['Value'])){ |
472
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value']; |
473
|
|
|
} |
474
|
|
|
if(isset($depth1Value['Key'])){ |
475
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key']; |
476
|
|
|
} |
477
|
|
|
} |
478
|
|
|
|
479
|
|
|
return $this; |
480
|
|
|
} |
481
|
|
|
|
482
|
|
|
/** |
483
|
|
|
* @param array $instanceTypeModel |
484
|
|
|
* |
485
|
|
|
* @return $this |
486
|
|
|
*/ |
487
|
|
|
public function withInstanceTypeModel(array $instanceTypeModel) |
488
|
|
|
{ |
489
|
|
|
$this->data['InstanceTypeModel'] = $instanceTypeModel; |
490
|
|
|
foreach ($instanceTypeModel as $depth1 => $depth1Value) { |
491
|
|
|
if(isset($depth1Value['MaxPrice'])){ |
492
|
|
|
$this->options['query']['InstanceTypeModel.' . ($depth1 + 1) . '.MaxPrice'] = $depth1Value['MaxPrice']; |
493
|
|
|
} |
494
|
|
|
if(isset($depth1Value['TargetImageId'])){ |
495
|
|
|
$this->options['query']['InstanceTypeModel.' . ($depth1 + 1) . '.TargetImageId'] = $depth1Value['TargetImageId']; |
496
|
|
|
} |
497
|
|
|
if(isset($depth1Value['InstanceType'])){ |
498
|
|
|
$this->options['query']['InstanceTypeModel.' . ($depth1 + 1) . '.InstanceType'] = $depth1Value['InstanceType']; |
499
|
|
|
} |
500
|
|
|
} |
501
|
|
|
|
502
|
|
|
return $this; |
503
|
|
|
} |
504
|
|
|
} |
505
|
|
|
|
506
|
|
|
/** |
507
|
|
|
* @method array getAdditionalVolumes() |
508
|
|
|
* @method array getAddOns() |
509
|
|
|
* @method string getEcsOrderManagerInstanceType() |
510
|
|
|
* @method string getKeyPairName() |
511
|
|
|
* @method $this withKeyPairName($value) |
512
|
|
|
* @method string getSecurityGroupName() |
513
|
|
|
* @method $this withSecurityGroupName($value) |
514
|
|
|
* @method string getWithoutNas() |
515
|
|
|
* @method $this withWithoutNas($value) |
516
|
|
|
* @method string getImageOwnerAlias() |
517
|
|
|
* @method $this withImageOwnerAlias($value) |
518
|
|
|
* @method string getDeployMode() |
519
|
|
|
* @method $this withDeployMode($value) |
520
|
|
|
* @method string getEcsOrderManagerCount() |
521
|
|
|
* @method string getResourceGroupId() |
522
|
|
|
* @method $this withResourceGroupId($value) |
523
|
|
|
* @method string getPassword() |
524
|
|
|
* @method $this withPassword($value) |
525
|
|
|
* @method string getEcsOrderLoginCount() |
526
|
|
|
* @method string getWithoutElasticIp() |
527
|
|
|
* @method $this withWithoutElasticIp($value) |
528
|
|
|
* @method string getRemoteVisEnable() |
529
|
|
|
* @method $this withRemoteVisEnable($value) |
530
|
|
|
* @method string getSystemDiskSize() |
531
|
|
|
* @method $this withSystemDiskSize($value) |
532
|
|
|
* @method array getTag() |
533
|
|
|
* @method string getComputeSpotPriceLimit() |
534
|
|
|
* @method $this withComputeSpotPriceLimit($value) |
535
|
|
|
* @method string getAutoRenewPeriod() |
536
|
|
|
* @method $this withAutoRenewPeriod($value) |
537
|
|
|
* @method string getPeriod() |
538
|
|
|
* @method $this withPeriod($value) |
539
|
|
|
* @method string getRemoteDirectory() |
540
|
|
|
* @method $this withRemoteDirectory($value) |
541
|
|
|
* @method string getEcsOrderComputeCount() |
542
|
|
|
* @method string getComputeSpotStrategy() |
543
|
|
|
* @method $this withComputeSpotStrategy($value) |
544
|
|
|
* @method array getPostInstallScript() |
545
|
|
|
* @method array getRamNodeTypes() |
546
|
|
|
* @method string getVSwitchId() |
547
|
|
|
* @method $this withVSwitchId($value) |
548
|
|
|
* @method string getPeriodUnit() |
549
|
|
|
* @method $this withPeriodUnit($value) |
550
|
|
|
* @method string getComputeEnableHt() |
551
|
|
|
* @method $this withComputeEnableHt($value) |
552
|
|
|
* @method string getAutoRenew() |
553
|
|
|
* @method $this withAutoRenew($value) |
554
|
|
|
* @method string getDomain() |
555
|
|
|
* @method $this withDomain($value) |
556
|
|
|
* @method string getName() |
557
|
|
|
* @method $this withName($value) |
558
|
|
|
* @method string getVolumeId() |
559
|
|
|
* @method $this withVolumeId($value) |
560
|
|
|
* @method string getZoneId() |
561
|
|
|
* @method $this withZoneId($value) |
562
|
|
|
* @method string getSccClusterId() |
563
|
|
|
* @method $this withSccClusterId($value) |
564
|
|
|
* @method string getVolumeMountOption() |
565
|
|
|
* @method $this withVolumeMountOption($value) |
566
|
|
|
* @method string getImageId() |
567
|
|
|
* @method $this withImageId($value) |
568
|
|
|
* @method string getSystemDiskLevel() |
569
|
|
|
* @method $this withSystemDiskLevel($value) |
570
|
|
|
* @method string getClientToken() |
571
|
|
|
* @method $this withClientToken($value) |
572
|
|
|
* @method string getEhpcVersion() |
573
|
|
|
* @method $this withEhpcVersion($value) |
574
|
|
|
* @method string getAccountType() |
575
|
|
|
* @method $this withAccountType($value) |
576
|
|
|
* @method string getSecurityGroupId() |
577
|
|
|
* @method $this withSecurityGroupId($value) |
578
|
|
|
* @method string getDescription() |
579
|
|
|
* @method $this withDescription($value) |
580
|
|
|
* @method string getEcsOrderComputeInstanceType() |
581
|
|
|
* @method string getJobQueue() |
582
|
|
|
* @method $this withJobQueue($value) |
583
|
|
|
* @method string getVolumeType() |
584
|
|
|
* @method $this withVolumeType($value) |
585
|
|
|
* @method string getSystemDiskType() |
586
|
|
|
* @method $this withSystemDiskType($value) |
587
|
|
|
* @method string getDeploymentSetId() |
588
|
|
|
* @method $this withDeploymentSetId($value) |
589
|
|
|
* @method string getVolumeProtocol() |
590
|
|
|
* @method $this withVolumeProtocol($value) |
591
|
|
|
* @method string getClientVersion() |
592
|
|
|
* @method $this withClientVersion($value) |
593
|
|
|
* @method string getOsTag() |
594
|
|
|
* @method $this withOsTag($value) |
595
|
|
|
* @method string getClusterVersion() |
596
|
|
|
* @method $this withClusterVersion($value) |
597
|
|
|
* @method string getIsComputeEss() |
598
|
|
|
* @method $this withIsComputeEss($value) |
599
|
|
|
* @method string getRamRoleName() |
600
|
|
|
* @method $this withRamRoleName($value) |
601
|
|
|
* @method string getNetworkInterfaceTrafficMode() |
602
|
|
|
* @method $this withNetworkInterfaceTrafficMode($value) |
603
|
|
|
* @method string getPlugin() |
604
|
|
|
* @method $this withPlugin($value) |
605
|
|
|
* @method array getApplication() |
606
|
|
|
* @method string getEcsChargeType() |
607
|
|
|
* @method $this withEcsChargeType($value) |
608
|
|
|
* @method string getInputFileUrl() |
609
|
|
|
* @method $this withInputFileUrl($value) |
610
|
|
|
* @method string getVpcId() |
611
|
|
|
* @method $this withVpcId($value) |
612
|
|
|
* @method string getHaEnable() |
613
|
|
|
* @method $this withHaEnable($value) |
614
|
|
|
* @method string getWithoutAgent() |
615
|
|
|
* @method $this withWithoutAgent($value) |
616
|
|
|
* @method string getSchedulerType() |
617
|
|
|
* @method $this withSchedulerType($value) |
618
|
|
|
* @method string getVolumeMountpoint() |
619
|
|
|
* @method $this withVolumeMountpoint($value) |
620
|
|
|
* @method string getEcsOrderLoginInstanceType() |
621
|
|
|
*/ |
622
|
|
|
class CreateCluster extends Rpc |
623
|
|
|
{ |
624
|
|
|
|
625
|
|
|
/** |
626
|
|
|
* @param array $additionalVolumes |
627
|
|
|
* |
628
|
|
|
* @return $this |
629
|
|
|
*/ |
630
|
|
|
public function withAdditionalVolumes(array $additionalVolumes) |
631
|
|
|
{ |
632
|
|
|
$this->data['AdditionalVolumes'] = $additionalVolumes; |
633
|
|
|
foreach ($additionalVolumes as $depth1 => $depth1Value) { |
634
|
|
|
if(isset($depth1Value['VolumeType'])){ |
635
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeType'] = $depth1Value['VolumeType']; |
636
|
|
|
} |
637
|
|
|
if(isset($depth1Value['VolumeMountOption'])){ |
638
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeMountOption'] = $depth1Value['VolumeMountOption']; |
639
|
|
|
} |
640
|
|
|
if(isset($depth1Value['VolumeProtocol'])){ |
641
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeProtocol'] = $depth1Value['VolumeProtocol']; |
642
|
|
|
} |
643
|
|
|
if(isset($depth1Value['LocalDirectory'])){ |
644
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.LocalDirectory'] = $depth1Value['LocalDirectory']; |
645
|
|
|
} |
646
|
|
|
if(isset($depth1Value['RemoteDirectory'])){ |
647
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.RemoteDirectory'] = $depth1Value['RemoteDirectory']; |
648
|
|
|
} |
649
|
|
|
foreach ($depth1Value['Roles'] as $depth2 => $depth2Value) { |
650
|
|
|
if(isset($depth2Value['Name'])){ |
651
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.Roles.' . ($depth2 + 1) . '.Name'] = $depth2Value['Name']; |
652
|
|
|
} |
653
|
|
|
} |
654
|
|
|
if(isset($depth1Value['VolumeId'])){ |
655
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeId'] = $depth1Value['VolumeId']; |
656
|
|
|
} |
657
|
|
|
if(isset($depth1Value['VolumeMountpoint'])){ |
658
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeMountpoint'] = $depth1Value['VolumeMountpoint']; |
659
|
|
|
} |
660
|
|
|
if(isset($depth1Value['Location'])){ |
661
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.Location'] = $depth1Value['Location']; |
662
|
|
|
} |
663
|
|
|
if(isset($depth1Value['JobQueue'])){ |
664
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.JobQueue'] = $depth1Value['JobQueue']; |
665
|
|
|
} |
666
|
|
|
} |
667
|
|
|
|
668
|
|
|
return $this; |
669
|
|
|
} |
670
|
|
|
|
671
|
|
|
/** |
672
|
|
|
* @param array $addOns |
673
|
|
|
* |
674
|
|
|
* @return $this |
675
|
|
|
*/ |
676
|
|
|
public function withAddOns(array $addOns) |
677
|
|
|
{ |
678
|
|
|
$this->data['AddOns'] = $addOns; |
679
|
|
|
foreach ($addOns as $depth1 => $depth1Value) { |
680
|
|
|
if(isset($depth1Value['DeployMode'])){ |
681
|
|
|
$this->options['query']['AddOns.' . ($depth1 + 1) . '.DeployMode'] = $depth1Value['DeployMode']; |
682
|
|
|
} |
683
|
|
|
if(isset($depth1Value['Port'])){ |
684
|
|
|
$this->options['query']['AddOns.' . ($depth1 + 1) . '.Port'] = $depth1Value['Port']; |
685
|
|
|
} |
686
|
|
|
if(isset($depth1Value['ConfigFile'])){ |
687
|
|
|
$this->options['query']['AddOns.' . ($depth1 + 1) . '.ConfigFile'] = $depth1Value['ConfigFile']; |
688
|
|
|
} |
689
|
|
|
if(isset($depth1Value['DefaultStart'])){ |
690
|
|
|
$this->options['query']['AddOns.' . ($depth1 + 1) . '.DefaultStart'] = $depth1Value['DefaultStart']; |
691
|
|
|
} |
692
|
|
|
if(isset($depth1Value['Name'])){ |
693
|
|
|
$this->options['query']['AddOns.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
694
|
|
|
} |
695
|
|
|
if(isset($depth1Value['DBType'])){ |
696
|
|
|
$this->options['query']['AddOns.' . ($depth1 + 1) . '.DBType'] = $depth1Value['DBType']; |
697
|
|
|
} |
698
|
|
|
if(isset($depth1Value['Version'])){ |
699
|
|
|
$this->options['query']['AddOns.' . ($depth1 + 1) . '.Version'] = $depth1Value['Version']; |
700
|
|
|
} |
701
|
|
|
} |
702
|
|
|
|
703
|
|
|
return $this; |
704
|
|
|
} |
705
|
|
|
|
706
|
|
|
/** |
707
|
|
|
* @param string $value |
708
|
|
|
* |
709
|
|
|
* @return $this |
710
|
|
|
*/ |
711
|
|
|
public function withEcsOrderManagerInstanceType($value) |
712
|
|
|
{ |
713
|
|
|
$this->data['EcsOrderManagerInstanceType'] = $value; |
714
|
|
|
$this->options['query']['EcsOrder.Manager.InstanceType'] = $value; |
715
|
|
|
|
716
|
|
|
return $this; |
717
|
|
|
} |
718
|
|
|
|
719
|
|
|
/** |
720
|
|
|
* @param string $value |
721
|
|
|
* |
722
|
|
|
* @return $this |
723
|
|
|
*/ |
724
|
|
|
public function withEcsOrderManagerCount($value) |
725
|
|
|
{ |
726
|
|
|
$this->data['EcsOrderManagerCount'] = $value; |
727
|
|
|
$this->options['query']['EcsOrder.Manager.Count'] = $value; |
728
|
|
|
|
729
|
|
|
return $this; |
730
|
|
|
} |
731
|
|
|
|
732
|
|
|
/** |
733
|
|
|
* @param string $value |
734
|
|
|
* |
735
|
|
|
* @return $this |
736
|
|
|
*/ |
737
|
|
|
public function withEcsOrderLoginCount($value) |
738
|
|
|
{ |
739
|
|
|
$this->data['EcsOrderLoginCount'] = $value; |
740
|
|
|
$this->options['query']['EcsOrder.Login.Count'] = $value; |
741
|
|
|
|
742
|
|
|
return $this; |
743
|
|
|
} |
744
|
|
|
|
745
|
|
|
/** |
746
|
|
|
* @param array $tag |
747
|
|
|
* |
748
|
|
|
* @return $this |
749
|
|
|
*/ |
750
|
|
|
public function withTag(array $tag) |
751
|
|
|
{ |
752
|
|
|
$this->data['Tag'] = $tag; |
753
|
|
|
foreach ($tag as $depth1 => $depth1Value) { |
754
|
|
|
if(isset($depth1Value['Value'])){ |
755
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value']; |
756
|
|
|
} |
757
|
|
|
if(isset($depth1Value['Key'])){ |
758
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key']; |
759
|
|
|
} |
760
|
|
|
} |
761
|
|
|
|
762
|
|
|
return $this; |
763
|
|
|
} |
764
|
|
|
|
765
|
|
|
/** |
766
|
|
|
* @param string $value |
767
|
|
|
* |
768
|
|
|
* @return $this |
769
|
|
|
*/ |
770
|
|
|
public function withEcsOrderComputeCount($value) |
771
|
|
|
{ |
772
|
|
|
$this->data['EcsOrderComputeCount'] = $value; |
773
|
|
|
$this->options['query']['EcsOrder.Compute.Count'] = $value; |
774
|
|
|
|
775
|
|
|
return $this; |
776
|
|
|
} |
777
|
|
|
|
778
|
|
|
/** |
779
|
|
|
* @param array $postInstallScript |
780
|
|
|
* |
781
|
|
|
* @return $this |
782
|
|
|
*/ |
783
|
|
|
public function withPostInstallScript(array $postInstallScript) |
784
|
|
|
{ |
785
|
|
|
$this->data['PostInstallScript'] = $postInstallScript; |
786
|
|
|
foreach ($postInstallScript as $depth1 => $depth1Value) { |
787
|
|
|
if(isset($depth1Value['Args'])){ |
788
|
|
|
$this->options['query']['PostInstallScript.' . ($depth1 + 1) . '.Args'] = $depth1Value['Args']; |
789
|
|
|
} |
790
|
|
|
if(isset($depth1Value['Url'])){ |
791
|
|
|
$this->options['query']['PostInstallScript.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url']; |
792
|
|
|
} |
793
|
|
|
} |
794
|
|
|
|
795
|
|
|
return $this; |
796
|
|
|
} |
797
|
|
|
|
798
|
|
|
/** |
799
|
|
|
* @param array $ramNodeTypes |
800
|
|
|
* |
801
|
|
|
* @return $this |
802
|
|
|
*/ |
803
|
|
|
public function withRamNodeTypes(array $ramNodeTypes) |
804
|
|
|
{ |
805
|
|
|
$this->data['RamNodeTypes'] = $ramNodeTypes; |
806
|
|
|
foreach ($ramNodeTypes as $i => $iValue) { |
807
|
|
|
$this->options['query']['RamNodeTypes.' . ($i + 1)] = $iValue; |
808
|
|
|
} |
809
|
|
|
|
810
|
|
|
return $this; |
811
|
|
|
} |
812
|
|
|
|
813
|
|
|
/** |
814
|
|
|
* @param string $value |
815
|
|
|
* |
816
|
|
|
* @return $this |
817
|
|
|
*/ |
818
|
|
|
public function withEcsOrderComputeInstanceType($value) |
819
|
|
|
{ |
820
|
|
|
$this->data['EcsOrderComputeInstanceType'] = $value; |
821
|
|
|
$this->options['query']['EcsOrder.Compute.InstanceType'] = $value; |
822
|
|
|
|
823
|
|
|
return $this; |
824
|
|
|
} |
825
|
|
|
|
826
|
|
|
/** |
827
|
|
|
* @param array $application |
828
|
|
|
* |
829
|
|
|
* @return $this |
830
|
|
|
*/ |
831
|
|
|
public function withApplication(array $application) |
832
|
|
|
{ |
833
|
|
|
$this->data['Application'] = $application; |
834
|
|
|
foreach ($application as $depth1 => $depth1Value) { |
835
|
|
|
if(isset($depth1Value['Tag'])){ |
836
|
|
|
$this->options['query']['Application.' . ($depth1 + 1) . '.Tag'] = $depth1Value['Tag']; |
837
|
|
|
} |
838
|
|
|
} |
839
|
|
|
|
840
|
|
|
return $this; |
841
|
|
|
} |
842
|
|
|
|
843
|
|
|
/** |
844
|
|
|
* @param string $value |
845
|
|
|
* |
846
|
|
|
* @return $this |
847
|
|
|
*/ |
848
|
|
|
public function withEcsOrderLoginInstanceType($value) |
849
|
|
|
{ |
850
|
|
|
$this->data['EcsOrderLoginInstanceType'] = $value; |
851
|
|
|
$this->options['query']['EcsOrder.Login.InstanceType'] = $value; |
852
|
|
|
|
853
|
|
|
return $this; |
854
|
|
|
} |
855
|
|
|
} |
856
|
|
|
|
857
|
|
|
/** |
858
|
|
|
* @method string getClusterType() |
859
|
|
|
* @method $this withClusterType($value) |
860
|
|
|
* @method string getVSwitchId() |
861
|
|
|
* @method $this withVSwitchId($value) |
862
|
|
|
* @method string getVpcId() |
863
|
|
|
* @method $this withVpcId($value) |
864
|
|
|
* @method string getName() |
865
|
|
|
* @method $this withName($value) |
866
|
|
|
*/ |
867
|
|
|
class CreateGWSCluster extends Rpc |
868
|
|
|
{ |
869
|
|
|
} |
870
|
|
|
|
871
|
|
|
/** |
872
|
|
|
* @method string getInstanceId() |
873
|
|
|
* @method $this withInstanceId($value) |
874
|
|
|
* @method string getName() |
875
|
|
|
* @method $this withName($value) |
876
|
|
|
*/ |
877
|
|
|
class CreateGWSImage extends Rpc |
878
|
|
|
{ |
879
|
|
|
} |
880
|
|
|
|
881
|
|
|
/** |
882
|
|
|
* @method string getImageId() |
883
|
|
|
* @method $this withImageId($value) |
884
|
|
|
* @method string getAllocatePublicAddress() |
885
|
|
|
* @method $this withAllocatePublicAddress($value) |
886
|
|
|
* @method string getAppList() |
887
|
|
|
* @method $this withAppList($value) |
888
|
|
|
* @method string getInternetMaxBandwidthOut() |
889
|
|
|
* @method $this withInternetMaxBandwidthOut($value) |
890
|
|
|
* @method string getSystemDiskCategory() |
891
|
|
|
* @method $this withSystemDiskCategory($value) |
892
|
|
|
* @method string getSystemDiskSize() |
893
|
|
|
* @method $this withSystemDiskSize($value) |
894
|
|
|
* @method string getInstanceType() |
895
|
|
|
* @method $this withInstanceType($value) |
896
|
|
|
* @method string getInstanceChargeType() |
897
|
|
|
* @method $this withInstanceChargeType($value) |
898
|
|
|
* @method string getPeriod() |
899
|
|
|
* @method $this withPeriod($value) |
900
|
|
|
* @method string getClusterId() |
901
|
|
|
* @method $this withClusterId($value) |
902
|
|
|
* @method string getWorkMode() |
903
|
|
|
* @method $this withWorkMode($value) |
904
|
|
|
* @method string getVSwitchId() |
905
|
|
|
* @method $this withVSwitchId($value) |
906
|
|
|
* @method string getPeriodUnit() |
907
|
|
|
* @method $this withPeriodUnit($value) |
908
|
|
|
* @method string getAutoRenew() |
909
|
|
|
* @method $this withAutoRenew($value) |
910
|
|
|
* @method string getInternetChargeType() |
911
|
|
|
* @method $this withInternetChargeType($value) |
912
|
|
|
* @method string getName() |
913
|
|
|
* @method $this withName($value) |
914
|
|
|
* @method string getInternetMaxBandwidthIn() |
915
|
|
|
* @method $this withInternetMaxBandwidthIn($value) |
916
|
|
|
*/ |
917
|
|
|
class CreateGWSInstance extends Rpc |
918
|
|
|
{ |
919
|
|
|
} |
920
|
|
|
|
921
|
|
|
/** |
922
|
|
|
* @method string getEcsOrderManagerInstanceType() |
923
|
|
|
* @method string getKeyPairName() |
924
|
|
|
* @method $this withKeyPairName($value) |
925
|
|
|
* @method string getMultiOs() |
926
|
|
|
* @method $this withMultiOs($value) |
927
|
|
|
* @method string getSecurityGroupName() |
928
|
|
|
* @method $this withSecurityGroupName($value) |
929
|
|
|
* @method string getOnPremiseVolumeRemotePath() |
930
|
|
|
* @method $this withOnPremiseVolumeRemotePath($value) |
931
|
|
|
* @method string getImageOwnerAlias() |
932
|
|
|
* @method $this withImageOwnerAlias($value) |
933
|
|
|
* @method string getResourceGroupId() |
934
|
|
|
* @method $this withResourceGroupId($value) |
935
|
|
|
* @method string getPassword() |
936
|
|
|
* @method $this withPassword($value) |
937
|
|
|
* @method string getHybridClusterOpMode() |
938
|
|
|
* @method $this withHybridClusterOpMode($value) |
939
|
|
|
* @method string getWinAdPar() |
940
|
|
|
* @method $this withWinAdPar($value) |
941
|
|
|
* @method string getComputeSpotPriceLimit() |
942
|
|
|
* @method $this withComputeSpotPriceLimit($value) |
943
|
|
|
* @method string getOnPremiseVolumeLocalPath() |
944
|
|
|
* @method $this withOnPremiseVolumeLocalPath($value) |
945
|
|
|
* @method string getRemoteDirectory() |
946
|
|
|
* @method $this withRemoteDirectory($value) |
947
|
|
|
* @method string getComputeSpotStrategy() |
948
|
|
|
* @method $this withComputeSpotStrategy($value) |
949
|
|
|
* @method array getPostInstallScript() |
950
|
|
|
* @method string getVSwitchId() |
951
|
|
|
* @method $this withVSwitchId($value) |
952
|
|
|
* @method string getDomain() |
953
|
|
|
* @method $this withDomain($value) |
954
|
|
|
* @method string getName() |
955
|
|
|
* @method $this withName($value) |
956
|
|
|
* @method string getVolumeId() |
957
|
|
|
* @method $this withVolumeId($value) |
958
|
|
|
* @method string getZoneId() |
959
|
|
|
* @method $this withZoneId($value) |
960
|
|
|
* @method string getImageId() |
961
|
|
|
* @method $this withImageId($value) |
962
|
|
|
* @method string getClientToken() |
963
|
|
|
* @method $this withClientToken($value) |
964
|
|
|
* @method string getEhpcVersion() |
965
|
|
|
* @method $this withEhpcVersion($value) |
966
|
|
|
* @method string getSecurityGroupId() |
967
|
|
|
* @method $this withSecurityGroupId($value) |
968
|
|
|
* @method string getDescription() |
969
|
|
|
* @method $this withDescription($value) |
970
|
|
|
* @method string getEcsOrderComputeInstanceType() |
971
|
|
|
* @method string getOpenldapPar() |
972
|
|
|
* @method $this withOpenldapPar($value) |
973
|
|
|
* @method string getJobQueue() |
974
|
|
|
* @method $this withJobQueue($value) |
975
|
|
|
* @method string getVolumeType() |
976
|
|
|
* @method $this withVolumeType($value) |
977
|
|
|
* @method string getOnPremiseVolumeMountPoint() |
978
|
|
|
* @method $this withOnPremiseVolumeMountPoint($value) |
979
|
|
|
* @method string getOnPremiseVolumeProtocol() |
980
|
|
|
* @method $this withOnPremiseVolumeProtocol($value) |
981
|
|
|
* @method string getVolumeProtocol() |
982
|
|
|
* @method $this withVolumeProtocol($value) |
983
|
|
|
* @method string getClientVersion() |
984
|
|
|
* @method $this withClientVersion($value) |
985
|
|
|
* @method string getOsTag() |
986
|
|
|
* @method $this withOsTag($value) |
987
|
|
|
* @method array getNodes() |
988
|
|
|
* @method string getPlugin() |
989
|
|
|
* @method $this withPlugin($value) |
990
|
|
|
* @method array getApplication() |
991
|
|
|
* @method string getVpcId() |
992
|
|
|
* @method $this withVpcId($value) |
993
|
|
|
* @method string getVolumeMountpoint() |
994
|
|
|
* @method $this withVolumeMountpoint($value) |
995
|
|
|
* @method string getSchedulerPreInstall() |
996
|
|
|
* @method $this withSchedulerPreInstall($value) |
997
|
|
|
* @method string getLocation() |
998
|
|
|
* @method $this withLocation($value) |
999
|
|
|
*/ |
1000
|
|
|
class CreateHybridCluster extends Rpc |
1001
|
|
|
{ |
1002
|
|
|
|
1003
|
|
|
/** |
1004
|
|
|
* @param string $value |
1005
|
|
|
* |
1006
|
|
|
* @return $this |
1007
|
|
|
*/ |
1008
|
|
|
public function withEcsOrderManagerInstanceType($value) |
1009
|
|
|
{ |
1010
|
|
|
$this->data['EcsOrderManagerInstanceType'] = $value; |
1011
|
|
|
$this->options['query']['EcsOrder.Manager.InstanceType'] = $value; |
1012
|
|
|
|
1013
|
|
|
return $this; |
1014
|
|
|
} |
1015
|
|
|
|
1016
|
|
|
/** |
1017
|
|
|
* @param array $postInstallScript |
1018
|
|
|
* |
1019
|
|
|
* @return $this |
1020
|
|
|
*/ |
1021
|
|
|
public function withPostInstallScript(array $postInstallScript) |
1022
|
|
|
{ |
1023
|
|
|
$this->data['PostInstallScript'] = $postInstallScript; |
1024
|
|
|
foreach ($postInstallScript as $depth1 => $depth1Value) { |
1025
|
|
|
if(isset($depth1Value['Args'])){ |
1026
|
|
|
$this->options['query']['PostInstallScript.' . ($depth1 + 1) . '.Args'] = $depth1Value['Args']; |
1027
|
|
|
} |
1028
|
|
|
if(isset($depth1Value['Url'])){ |
1029
|
|
|
$this->options['query']['PostInstallScript.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url']; |
1030
|
|
|
} |
1031
|
|
|
} |
1032
|
|
|
|
1033
|
|
|
return $this; |
1034
|
|
|
} |
1035
|
|
|
|
1036
|
|
|
/** |
1037
|
|
|
* @param string $value |
1038
|
|
|
* |
1039
|
|
|
* @return $this |
1040
|
|
|
*/ |
1041
|
|
|
public function withEcsOrderComputeInstanceType($value) |
1042
|
|
|
{ |
1043
|
|
|
$this->data['EcsOrderComputeInstanceType'] = $value; |
1044
|
|
|
$this->options['query']['EcsOrder.Compute.InstanceType'] = $value; |
1045
|
|
|
|
1046
|
|
|
return $this; |
1047
|
|
|
} |
1048
|
|
|
|
1049
|
|
|
/** |
1050
|
|
|
* @param array $nodes |
1051
|
|
|
* |
1052
|
|
|
* @return $this |
1053
|
|
|
*/ |
1054
|
|
|
public function withNodes(array $nodes) |
1055
|
|
|
{ |
1056
|
|
|
$this->data['Nodes'] = $nodes; |
1057
|
|
|
foreach ($nodes as $depth1 => $depth1Value) { |
1058
|
|
|
if(isset($depth1Value['IpAddress'])){ |
1059
|
|
|
$this->options['query']['Nodes.' . ($depth1 + 1) . '.IpAddress'] = $depth1Value['IpAddress']; |
1060
|
|
|
} |
1061
|
|
|
if(isset($depth1Value['HostName'])){ |
1062
|
|
|
$this->options['query']['Nodes.' . ($depth1 + 1) . '.HostName'] = $depth1Value['HostName']; |
1063
|
|
|
} |
1064
|
|
|
if(isset($depth1Value['Role'])){ |
1065
|
|
|
$this->options['query']['Nodes.' . ($depth1 + 1) . '.Role'] = $depth1Value['Role']; |
1066
|
|
|
} |
1067
|
|
|
if(isset($depth1Value['SchedulerType'])){ |
1068
|
|
|
$this->options['query']['Nodes.' . ($depth1 + 1) . '.SchedulerType'] = $depth1Value['SchedulerType']; |
1069
|
|
|
} |
1070
|
|
|
if(isset($depth1Value['AccountType'])){ |
1071
|
|
|
$this->options['query']['Nodes.' . ($depth1 + 1) . '.AccountType'] = $depth1Value['AccountType']; |
1072
|
|
|
} |
1073
|
|
|
if(isset($depth1Value['Dir'])){ |
1074
|
|
|
$this->options['query']['Nodes.' . ($depth1 + 1) . '.Dir'] = $depth1Value['Dir']; |
1075
|
|
|
} |
1076
|
|
|
} |
1077
|
|
|
|
1078
|
|
|
return $this; |
1079
|
|
|
} |
1080
|
|
|
|
1081
|
|
|
/** |
1082
|
|
|
* @param array $application |
1083
|
|
|
* |
1084
|
|
|
* @return $this |
1085
|
|
|
*/ |
1086
|
|
|
public function withApplication(array $application) |
1087
|
|
|
{ |
1088
|
|
|
$this->data['Application'] = $application; |
1089
|
|
|
foreach ($application as $depth1 => $depth1Value) { |
1090
|
|
|
if(isset($depth1Value['Tag'])){ |
1091
|
|
|
$this->options['query']['Application.' . ($depth1 + 1) . '.Tag'] = $depth1Value['Tag']; |
1092
|
|
|
} |
1093
|
|
|
} |
1094
|
|
|
|
1095
|
|
|
return $this; |
1096
|
|
|
} |
1097
|
|
|
} |
1098
|
|
|
|
1099
|
|
|
/** |
1100
|
|
|
* @method string getTargetFile() |
1101
|
|
|
* @method $this withTargetFile($value) |
1102
|
|
|
* @method string getRunasUserPassword() |
1103
|
|
|
* @method $this withRunasUserPassword($value) |
1104
|
|
|
* @method string getRunasUser() |
1105
|
|
|
* @method $this withRunasUser($value) |
1106
|
|
|
* @method string getClusterId() |
1107
|
|
|
* @method $this withClusterId($value) |
1108
|
|
|
* @method string getContent() |
1109
|
|
|
* @method $this withContent($value) |
1110
|
|
|
* @method string getAsync() |
1111
|
|
|
* @method $this withAsync($value) |
1112
|
|
|
*/ |
1113
|
|
|
class CreateJobFile extends Rpc |
1114
|
|
|
{ |
1115
|
|
|
} |
1116
|
|
|
|
1117
|
|
|
/** |
1118
|
|
|
* @method string getStderrRedirectPath() |
1119
|
|
|
* @method $this withStderrRedirectPath($value) |
1120
|
|
|
* @method string getClockTime() |
1121
|
|
|
* @method $this withClockTime($value) |
1122
|
|
|
* @method string getCommandLine() |
1123
|
|
|
* @method $this withCommandLine($value) |
1124
|
|
|
* @method string getArrayRequest() |
1125
|
|
|
* @method $this withArrayRequest($value) |
1126
|
|
|
* @method string getUnzipCmd() |
1127
|
|
|
* @method $this withUnzipCmd($value) |
1128
|
|
|
* @method string getPackagePath() |
1129
|
|
|
* @method $this withPackagePath($value) |
1130
|
|
|
* @method string getMem() |
1131
|
|
|
* @method $this withMem($value) |
1132
|
|
|
* @method string getStdoutRedirectPath() |
1133
|
|
|
* @method $this withStdoutRedirectPath($value) |
1134
|
|
|
* @method string getVariables() |
1135
|
|
|
* @method $this withVariables($value) |
1136
|
|
|
* @method string getRunasUser() |
1137
|
|
|
* @method $this withRunasUser($value) |
1138
|
|
|
* @method string getReRunable() |
1139
|
|
|
* @method $this withReRunable($value) |
1140
|
|
|
* @method string getThread() |
1141
|
|
|
* @method $this withThread($value) |
1142
|
|
|
* @method string getPriority() |
1143
|
|
|
* @method $this withPriority($value) |
1144
|
|
|
* @method string getGpu() |
1145
|
|
|
* @method $this withGpu($value) |
1146
|
|
|
* @method string getWithUnzipCmd() |
1147
|
|
|
* @method $this withWithUnzipCmd($value) |
1148
|
|
|
* @method string getNode() |
1149
|
|
|
* @method $this withNode($value) |
1150
|
|
|
* @method string getTask() |
1151
|
|
|
* @method $this withTask($value) |
1152
|
|
|
* @method string getInputFileUrl() |
1153
|
|
|
* @method $this withInputFileUrl($value) |
1154
|
|
|
* @method string getName() |
1155
|
|
|
* @method $this withName($value) |
1156
|
|
|
* @method string getQueue() |
1157
|
|
|
* @method $this withQueue($value) |
1158
|
|
|
*/ |
1159
|
|
|
class CreateJobTemplate extends Rpc |
1160
|
|
|
{ |
1161
|
|
|
} |
1162
|
|
|
|
1163
|
|
|
/** |
1164
|
|
|
* @method string getClusterId() |
1165
|
|
|
* @method $this withClusterId($value) |
1166
|
|
|
* @method string getReleaseInstance() |
1167
|
|
|
* @method $this withReleaseInstance($value) |
1168
|
|
|
*/ |
1169
|
|
|
class DeleteCluster extends Rpc |
1170
|
|
|
{ |
1171
|
|
|
} |
1172
|
|
|
|
1173
|
|
|
/** |
1174
|
|
|
* @method array getContainerApp() |
1175
|
|
|
*/ |
1176
|
|
|
class DeleteContainerApps extends Rpc |
1177
|
|
|
{ |
1178
|
|
|
|
1179
|
|
|
/** |
1180
|
|
|
* @param array $containerApp |
1181
|
|
|
* |
1182
|
|
|
* @return $this |
1183
|
|
|
*/ |
1184
|
|
|
public function withContainerApp(array $containerApp) |
1185
|
|
|
{ |
1186
|
|
|
$this->data['ContainerApp'] = $containerApp; |
1187
|
|
|
foreach ($containerApp as $depth1 => $depth1Value) { |
1188
|
|
|
if(isset($depth1Value['Id'])){ |
1189
|
|
|
$this->options['query']['ContainerApp.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id']; |
1190
|
|
|
} |
1191
|
|
|
} |
1192
|
|
|
|
1193
|
|
|
return $this; |
1194
|
|
|
} |
1195
|
|
|
} |
1196
|
|
|
|
1197
|
|
|
/** |
1198
|
|
|
* @method string getClusterId() |
1199
|
|
|
* @method $this withClusterId($value) |
1200
|
|
|
*/ |
1201
|
|
|
class DeleteGWSCluster extends Rpc |
1202
|
|
|
{ |
1203
|
|
|
} |
1204
|
|
|
|
1205
|
|
|
/** |
1206
|
|
|
* @method string getInstanceId() |
1207
|
|
|
* @method $this withInstanceId($value) |
1208
|
|
|
*/ |
1209
|
|
|
class DeleteGWSInstance extends Rpc |
1210
|
|
|
{ |
1211
|
|
|
} |
1212
|
|
|
|
1213
|
|
|
/** |
1214
|
|
|
* @method string getClusterId() |
1215
|
|
|
* @method $this withClusterId($value) |
1216
|
|
|
* @method string getRepository() |
1217
|
|
|
* @method $this withRepository($value) |
1218
|
|
|
* @method string getContainerType() |
1219
|
|
|
* @method $this withContainerType($value) |
1220
|
|
|
* @method string getImageTag() |
1221
|
|
|
* @method $this withImageTag($value) |
1222
|
|
|
*/ |
1223
|
|
|
class DeleteImage extends Rpc |
1224
|
|
|
{ |
1225
|
|
|
} |
1226
|
|
|
|
1227
|
|
|
/** |
1228
|
|
|
* @method string getJobs() |
1229
|
|
|
* @method $this withJobs($value) |
1230
|
|
|
* @method string getClusterId() |
1231
|
|
|
* @method $this withClusterId($value) |
1232
|
|
|
* @method string getAsync() |
1233
|
|
|
* @method $this withAsync($value) |
1234
|
|
|
*/ |
1235
|
|
|
class DeleteJobs extends Rpc |
1236
|
|
|
{ |
1237
|
|
|
} |
1238
|
|
|
|
1239
|
|
|
/** |
1240
|
|
|
* @method string getTemplates() |
1241
|
|
|
* @method $this withTemplates($value) |
1242
|
|
|
*/ |
1243
|
|
|
class DeleteJobTemplates extends Rpc |
1244
|
|
|
{ |
1245
|
|
|
} |
1246
|
|
|
|
1247
|
|
|
/** |
1248
|
|
|
* @method string getClusterId() |
1249
|
|
|
* @method $this withClusterId($value) |
1250
|
|
|
* @method string getContainerType() |
1251
|
|
|
* @method $this withContainerType($value) |
1252
|
|
|
* @method string getImageName() |
1253
|
|
|
* @method $this withImageName($value) |
1254
|
|
|
*/ |
1255
|
|
|
class DeleteLocalImage extends Rpc |
1256
|
|
|
{ |
1257
|
|
|
} |
1258
|
|
|
|
1259
|
|
|
/** |
1260
|
|
|
* @method array getInstance() |
1261
|
|
|
* @method string getClusterId() |
1262
|
|
|
* @method $this withClusterId($value) |
1263
|
|
|
* @method string getSync() |
1264
|
|
|
* @method $this withSync($value) |
1265
|
|
|
* @method string getReleaseInstance() |
1266
|
|
|
* @method $this withReleaseInstance($value) |
1267
|
|
|
*/ |
1268
|
|
|
class DeleteNodes extends Rpc |
1269
|
|
|
{ |
1270
|
|
|
|
1271
|
|
|
/** |
1272
|
|
|
* @param array $instance |
1273
|
|
|
* |
1274
|
|
|
* @return $this |
1275
|
|
|
*/ |
1276
|
|
|
public function withInstance(array $instance) |
1277
|
|
|
{ |
1278
|
|
|
$this->data['Instance'] = $instance; |
1279
|
|
|
foreach ($instance as $depth1 => $depth1Value) { |
1280
|
|
|
if(isset($depth1Value['Id'])){ |
1281
|
|
|
$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id']; |
1282
|
|
|
} |
1283
|
|
|
} |
1284
|
|
|
|
1285
|
|
|
return $this; |
1286
|
|
|
} |
1287
|
|
|
} |
1288
|
|
|
|
1289
|
|
|
/** |
1290
|
|
|
* @method string getQueueName() |
1291
|
|
|
* @method $this withQueueName($value) |
1292
|
|
|
* @method string getClusterId() |
1293
|
|
|
* @method $this withClusterId($value) |
1294
|
|
|
*/ |
1295
|
|
|
class DeleteQueue extends Rpc |
1296
|
|
|
{ |
1297
|
|
|
} |
1298
|
|
|
|
1299
|
|
|
/** |
1300
|
|
|
* @method string getSecurityGroupId() |
1301
|
|
|
* @method $this withSecurityGroupId($value) |
1302
|
|
|
* @method string getClusterId() |
1303
|
|
|
* @method $this withClusterId($value) |
1304
|
|
|
*/ |
1305
|
|
|
class DeleteSecurityGroup extends Rpc |
1306
|
|
|
{ |
1307
|
|
|
} |
1308
|
|
|
|
1309
|
|
|
/** |
1310
|
|
|
* @method string getClusterId() |
1311
|
|
|
* @method $this withClusterId($value) |
1312
|
|
|
* @method string getAsync() |
1313
|
|
|
* @method $this withAsync($value) |
1314
|
|
|
* @method array getUser() |
1315
|
|
|
*/ |
1316
|
|
|
class DeleteUsers extends Rpc |
1317
|
|
|
{ |
1318
|
|
|
|
1319
|
|
|
/** |
1320
|
|
|
* @param array $user |
1321
|
|
|
* |
1322
|
|
|
* @return $this |
1323
|
|
|
*/ |
1324
|
|
|
public function withUser(array $user) |
1325
|
|
|
{ |
1326
|
|
|
$this->data['User'] = $user; |
1327
|
|
|
foreach ($user as $depth1 => $depth1Value) { |
1328
|
|
|
if(isset($depth1Value['Name'])){ |
1329
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
1330
|
|
|
} |
1331
|
|
|
} |
1332
|
|
|
|
1333
|
|
|
return $this; |
1334
|
|
|
} |
1335
|
|
|
} |
1336
|
|
|
|
1337
|
|
|
/** |
1338
|
|
|
* @method string getClusterId() |
1339
|
|
|
* @method $this withClusterId($value) |
1340
|
|
|
*/ |
1341
|
|
|
class DescribeAutoScaleConfig extends Rpc |
1342
|
|
|
{ |
1343
|
|
|
} |
1344
|
|
|
|
1345
|
|
|
/** |
1346
|
|
|
* @method string getClusterId() |
1347
|
|
|
* @method $this withClusterId($value) |
1348
|
|
|
*/ |
1349
|
|
|
class DescribeCluster extends Rpc |
1350
|
|
|
{ |
1351
|
|
|
} |
1352
|
|
|
|
1353
|
|
|
/** |
1354
|
|
|
* @method string getContainerId() |
1355
|
|
|
* @method $this withContainerId($value) |
1356
|
|
|
*/ |
1357
|
|
|
class DescribeContainerApp extends Rpc |
1358
|
|
|
{ |
1359
|
|
|
} |
1360
|
|
|
|
1361
|
|
|
/** |
1362
|
|
|
* @method string getPageNumber() |
1363
|
|
|
* @method $this withPageNumber($value) |
1364
|
|
|
* @method string getPageSize() |
1365
|
|
|
* @method $this withPageSize($value) |
1366
|
|
|
*/ |
1367
|
|
|
class DescribeEstackImage extends Rpc |
1368
|
|
|
{ |
1369
|
|
|
} |
1370
|
|
|
|
1371
|
|
|
/** |
1372
|
|
|
* @method string getClusterId() |
1373
|
|
|
* @method $this withClusterId($value) |
1374
|
|
|
* @method string getAsyncMode() |
1375
|
|
|
* @method $this withAsyncMode($value) |
1376
|
|
|
* @method string getTaskId() |
1377
|
|
|
* @method $this withTaskId($value) |
1378
|
|
|
*/ |
1379
|
|
|
class DescribeGWSClusterPolicy extends Rpc |
1380
|
|
|
{ |
1381
|
|
|
|
1382
|
|
|
/** @var string */ |
1383
|
|
|
public $method = 'POST'; |
1384
|
|
|
} |
1385
|
|
|
|
1386
|
|
|
/** |
1387
|
|
|
* @method string getClusterId() |
1388
|
|
|
* @method $this withClusterId($value) |
1389
|
|
|
* @method string getPageNumber() |
1390
|
|
|
* @method $this withPageNumber($value) |
1391
|
|
|
* @method string getPageSize() |
1392
|
|
|
* @method $this withPageSize($value) |
1393
|
|
|
*/ |
1394
|
|
|
class DescribeGWSClusters extends Rpc |
1395
|
|
|
{ |
1396
|
|
|
} |
1397
|
|
|
|
1398
|
|
|
/** |
1399
|
|
|
* @method string getPageNumber() |
1400
|
|
|
* @method $this withPageNumber($value) |
1401
|
|
|
* @method string getPageSize() |
1402
|
|
|
* @method $this withPageSize($value) |
1403
|
|
|
*/ |
1404
|
|
|
class DescribeGWSImages extends Rpc |
1405
|
|
|
{ |
1406
|
|
|
} |
1407
|
|
|
|
1408
|
|
|
/** |
1409
|
|
|
* @method string getClusterId() |
1410
|
|
|
* @method $this withClusterId($value) |
1411
|
|
|
* @method string getPageNumber() |
1412
|
|
|
* @method $this withPageNumber($value) |
1413
|
|
|
* @method string getInstanceId() |
1414
|
|
|
* @method $this withInstanceId($value) |
1415
|
|
|
* @method string getPageSize() |
1416
|
|
|
* @method $this withPageSize($value) |
1417
|
|
|
* @method string getUserUid() |
1418
|
|
|
* @method $this withUserUid($value) |
1419
|
|
|
* @method string getUserName() |
1420
|
|
|
* @method $this withUserName($value) |
1421
|
|
|
*/ |
1422
|
|
|
class DescribeGWSInstances extends Rpc |
1423
|
|
|
{ |
1424
|
|
|
} |
1425
|
|
|
|
1426
|
|
|
/** |
1427
|
|
|
* @method string getClusterId() |
1428
|
|
|
* @method $this withClusterId($value) |
1429
|
|
|
* @method string getRepository() |
1430
|
|
|
* @method $this withRepository($value) |
1431
|
|
|
* @method string getContainerType() |
1432
|
|
|
* @method $this withContainerType($value) |
1433
|
|
|
* @method string getImageTag() |
1434
|
|
|
* @method $this withImageTag($value) |
1435
|
|
|
*/ |
1436
|
|
|
class DescribeImage extends Rpc |
1437
|
|
|
{ |
1438
|
|
|
} |
1439
|
|
|
|
1440
|
|
|
/** |
1441
|
|
|
* @method string getClusterId() |
1442
|
|
|
* @method $this withClusterId($value) |
1443
|
|
|
*/ |
1444
|
|
|
class DescribeImageGatewayConfig extends Rpc |
1445
|
|
|
{ |
1446
|
|
|
} |
1447
|
|
|
|
1448
|
|
|
/** |
1449
|
|
|
* @method string getPeriod() |
1450
|
|
|
* @method $this withPeriod($value) |
1451
|
|
|
* @method string getAmount() |
1452
|
|
|
* @method $this withAmount($value) |
1453
|
|
|
* @method string getImageId() |
1454
|
|
|
* @method $this withImageId($value) |
1455
|
|
|
* @method string getSkuCode() |
1456
|
|
|
* @method $this withSkuCode($value) |
1457
|
|
|
* @method string getPriceUnit() |
1458
|
|
|
* @method $this withPriceUnit($value) |
1459
|
|
|
* @method string getOrderType() |
1460
|
|
|
* @method $this withOrderType($value) |
1461
|
|
|
*/ |
1462
|
|
|
class DescribeImagePrice extends Rpc |
1463
|
|
|
{ |
1464
|
|
|
} |
1465
|
|
|
|
1466
|
|
|
/** |
1467
|
|
|
* @method string getClusterId() |
1468
|
|
|
* @method $this withClusterId($value) |
1469
|
|
|
* @method string getJobId() |
1470
|
|
|
* @method $this withJobId($value) |
1471
|
|
|
* @method string getAsync() |
1472
|
|
|
* @method $this withAsync($value) |
1473
|
|
|
*/ |
1474
|
|
|
class DescribeJob extends Rpc |
1475
|
|
|
{ |
1476
|
|
|
} |
1477
|
|
|
|
1478
|
|
|
/** |
1479
|
|
|
* @method string getInstanceId() |
1480
|
|
|
* @method $this withInstanceId($value) |
1481
|
|
|
*/ |
1482
|
|
|
class DescribeNFSClientStatus extends Rpc |
1483
|
|
|
{ |
1484
|
|
|
} |
1485
|
|
|
|
1486
|
|
|
/** |
1487
|
|
|
* @method array getCommodities() |
1488
|
|
|
* @method string getPriceUnit() |
1489
|
|
|
* @method $this withPriceUnit($value) |
1490
|
|
|
* @method string getChargeType() |
1491
|
|
|
* @method $this withChargeType($value) |
1492
|
|
|
* @method string getOrderType() |
1493
|
|
|
* @method $this withOrderType($value) |
1494
|
|
|
*/ |
1495
|
|
|
class DescribePrice extends Rpc |
1496
|
|
|
{ |
1497
|
|
|
|
1498
|
|
|
/** |
1499
|
|
|
* @param array $commodities |
1500
|
|
|
* |
1501
|
|
|
* @return $this |
1502
|
|
|
*/ |
1503
|
|
|
public function withCommodities(array $commodities) |
1504
|
|
|
{ |
1505
|
|
|
$this->data['Commodities'] = $commodities; |
1506
|
|
|
foreach ($commodities as $depth1 => $depth1Value) { |
1507
|
|
|
if(isset($depth1Value['Amount'])){ |
1508
|
|
|
$this->options['query']['Commodities.' . ($depth1 + 1) . '.Amount'] = $depth1Value['Amount']; |
1509
|
|
|
} |
1510
|
|
|
if(isset($depth1Value['Period'])){ |
1511
|
|
|
$this->options['query']['Commodities.' . ($depth1 + 1) . '.Period'] = $depth1Value['Period']; |
1512
|
|
|
} |
1513
|
|
|
if(isset($depth1Value['NodeType'])){ |
1514
|
|
|
$this->options['query']['Commodities.' . ($depth1 + 1) . '.NodeType'] = $depth1Value['NodeType']; |
1515
|
|
|
} |
1516
|
|
|
foreach ($depth1Value['DataDisks'] as $depth2 => $depth2Value) { |
1517
|
|
|
if(isset($depth2Value['Size'])){ |
1518
|
|
|
$this->options['query']['Commodities.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.size'] = $depth2Value['Size']; |
1519
|
|
|
} |
1520
|
|
|
if(isset($depth2Value['Encrypted'])){ |
1521
|
|
|
$this->options['query']['Commodities.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.encrypted'] = $depth2Value['Encrypted']; |
1522
|
|
|
} |
1523
|
|
|
if(isset($depth2Value['PerformanceLevel'])){ |
1524
|
|
|
$this->options['query']['Commodities.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.performanceLevel'] = $depth2Value['PerformanceLevel']; |
1525
|
|
|
} |
1526
|
|
|
if(isset($depth2Value['Category'])){ |
1527
|
|
|
$this->options['query']['Commodities.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.category'] = $depth2Value['Category']; |
1528
|
|
|
} |
1529
|
|
|
if(isset($depth2Value['DeleteWithInstance'])){ |
1530
|
|
|
$this->options['query']['Commodities.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.deleteWithInstance'] = $depth2Value['DeleteWithInstance']; |
1531
|
|
|
} |
1532
|
|
|
} |
1533
|
|
|
if(isset($depth1Value['SystemDiskCategory'])){ |
1534
|
|
|
$this->options['query']['Commodities.' . ($depth1 + 1) . '.SystemDiskCategory'] = $depth1Value['SystemDiskCategory']; |
1535
|
|
|
} |
1536
|
|
|
if(isset($depth1Value['InternetChargeType'])){ |
1537
|
|
|
$this->options['query']['Commodities.' . ($depth1 + 1) . '.InternetChargeType'] = $depth1Value['InternetChargeType']; |
1538
|
|
|
} |
1539
|
|
|
if(isset($depth1Value['SystemDiskPerformanceLevel'])){ |
1540
|
|
|
$this->options['query']['Commodities.' . ($depth1 + 1) . '.SystemDiskPerformanceLevel'] = $depth1Value['SystemDiskPerformanceLevel']; |
1541
|
|
|
} |
1542
|
|
|
if(isset($depth1Value['SystemDiskSize'])){ |
1543
|
|
|
$this->options['query']['Commodities.' . ($depth1 + 1) . '.SystemDiskSize'] = $depth1Value['SystemDiskSize']; |
1544
|
|
|
} |
1545
|
|
|
if(isset($depth1Value['InternetMaxBandWidthOut'])){ |
1546
|
|
|
$this->options['query']['Commodities.' . ($depth1 + 1) . '.InternetMaxBandWidthOut'] = $depth1Value['InternetMaxBandWidthOut']; |
1547
|
|
|
} |
1548
|
|
|
if(isset($depth1Value['InstanceType'])){ |
1549
|
|
|
$this->options['query']['Commodities.' . ($depth1 + 1) . '.InstanceType'] = $depth1Value['InstanceType']; |
1550
|
|
|
} |
1551
|
|
|
if(isset($depth1Value['NetworkType'])){ |
1552
|
|
|
$this->options['query']['Commodities.' . ($depth1 + 1) . '.NetworkType'] = $depth1Value['NetworkType']; |
1553
|
|
|
} |
1554
|
|
|
} |
1555
|
|
|
|
1556
|
|
|
return $this; |
1557
|
|
|
} |
1558
|
|
|
} |
1559
|
|
|
|
1560
|
|
|
/** |
1561
|
|
|
* @method string getClusterId() |
1562
|
|
|
* @method $this withClusterId($value) |
1563
|
|
|
* @method string getJobIds() |
1564
|
|
|
* @method $this withJobIds($value) |
1565
|
|
|
*/ |
1566
|
|
|
class DescribeServerlessJobs extends Rpc |
1567
|
|
|
{ |
1568
|
|
|
|
1569
|
|
|
/** @var string */ |
1570
|
|
|
public $method = 'POST'; |
1571
|
|
|
} |
1572
|
|
|
|
1573
|
|
|
/** |
1574
|
|
|
* @method string getStderrRedirectPath() |
1575
|
|
|
* @method $this withStderrRedirectPath($value) |
1576
|
|
|
* @method string getClockTime() |
1577
|
|
|
* @method $this withClockTime($value) |
1578
|
|
|
* @method string getCommandLine() |
1579
|
|
|
* @method $this withCommandLine($value) |
1580
|
|
|
* @method string getArrayRequest() |
1581
|
|
|
* @method $this withArrayRequest($value) |
1582
|
|
|
* @method string getUnzipCmd() |
1583
|
|
|
* @method $this withUnzipCmd($value) |
1584
|
|
|
* @method string getPackagePath() |
1585
|
|
|
* @method $this withPackagePath($value) |
1586
|
|
|
* @method string getMem() |
1587
|
|
|
* @method $this withMem($value) |
1588
|
|
|
* @method string getStdoutRedirectPath() |
1589
|
|
|
* @method $this withStdoutRedirectPath($value) |
1590
|
|
|
* @method string getVariables() |
1591
|
|
|
* @method $this withVariables($value) |
1592
|
|
|
* @method string getRunasUser() |
1593
|
|
|
* @method $this withRunasUser($value) |
1594
|
|
|
* @method string getReRunable() |
1595
|
|
|
* @method $this withReRunable($value) |
1596
|
|
|
* @method string getThread() |
1597
|
|
|
* @method $this withThread($value) |
1598
|
|
|
* @method string getTemplateId() |
1599
|
|
|
* @method $this withTemplateId($value) |
1600
|
|
|
* @method string getPriority() |
1601
|
|
|
* @method $this withPriority($value) |
1602
|
|
|
* @method string getGpu() |
1603
|
|
|
* @method $this withGpu($value) |
1604
|
|
|
* @method string getWithUnzipCmd() |
1605
|
|
|
* @method $this withWithUnzipCmd($value) |
1606
|
|
|
* @method string getNode() |
1607
|
|
|
* @method $this withNode($value) |
1608
|
|
|
* @method string getTask() |
1609
|
|
|
* @method $this withTask($value) |
1610
|
|
|
* @method string getInputFileUrl() |
1611
|
|
|
* @method $this withInputFileUrl($value) |
1612
|
|
|
* @method string getName() |
1613
|
|
|
* @method $this withName($value) |
1614
|
|
|
* @method string getQueue() |
1615
|
|
|
* @method $this withQueue($value) |
1616
|
|
|
*/ |
1617
|
|
|
class EditJobTemplate extends Rpc |
1618
|
|
|
{ |
1619
|
|
|
} |
1620
|
|
|
|
1621
|
|
|
/** |
1622
|
|
|
* @method string getReportType() |
1623
|
|
|
* @method $this withReportType($value) |
1624
|
|
|
* @method string getEndTime() |
1625
|
|
|
* @method $this withEndTime($value) |
1626
|
|
|
* @method string getFilterValue() |
1627
|
|
|
* @method $this withFilterValue($value) |
1628
|
|
|
* @method string getDim() |
1629
|
|
|
* @method $this withDim($value) |
1630
|
|
|
* @method string getClusterId() |
1631
|
|
|
* @method $this withClusterId($value) |
1632
|
|
|
* @method string getStartTime() |
1633
|
|
|
* @method $this withStartTime($value) |
1634
|
|
|
* @method string getPageNumber() |
1635
|
|
|
* @method $this withPageNumber($value) |
1636
|
|
|
* @method string getJobId() |
1637
|
|
|
* @method $this withJobId($value) |
1638
|
|
|
* @method string getPageSize() |
1639
|
|
|
* @method $this withPageSize($value) |
1640
|
|
|
*/ |
1641
|
|
|
class GetAccountingReport extends Rpc |
1642
|
|
|
{ |
1643
|
|
|
} |
1644
|
|
|
|
1645
|
|
|
/** |
1646
|
|
|
* @method string getClusterId() |
1647
|
|
|
* @method $this withClusterId($value) |
1648
|
|
|
*/ |
1649
|
|
|
class GetAutoScaleConfig extends Rpc |
1650
|
|
|
{ |
1651
|
|
|
} |
1652
|
|
|
|
1653
|
|
|
/** |
1654
|
|
|
* @method string getMetricScope() |
1655
|
|
|
* @method $this withMetricScope($value) |
1656
|
|
|
* @method string getClusterId() |
1657
|
|
|
* @method $this withClusterId($value) |
1658
|
|
|
* @method string getAggregationInterval() |
1659
|
|
|
* @method $this withAggregationInterval($value) |
1660
|
|
|
* @method string getReverse() |
1661
|
|
|
* @method $this withReverse($value) |
1662
|
|
|
* @method string getAggregationType() |
1663
|
|
|
* @method $this withAggregationType($value) |
1664
|
|
|
* @method string getFilter() |
1665
|
|
|
* @method $this withFilter($value) |
1666
|
|
|
* @method string getMetricCategories() |
1667
|
|
|
* @method $this withMetricCategories($value) |
1668
|
|
|
* @method string getFrom() |
1669
|
|
|
* @method $this withFrom($value) |
1670
|
|
|
* @method string getTo() |
1671
|
|
|
* @method $this withTo($value) |
1672
|
|
|
*/ |
1673
|
|
|
class GetCloudMetricLogs extends Rpc |
1674
|
|
|
{ |
1675
|
|
|
} |
1676
|
|
|
|
1677
|
|
|
/** |
1678
|
|
|
* @method string getClusterId() |
1679
|
|
|
* @method $this withClusterId($value) |
1680
|
|
|
* @method string getProfilingId() |
1681
|
|
|
* @method $this withProfilingId($value) |
1682
|
|
|
*/ |
1683
|
|
|
class GetCloudMetricProfiling extends Rpc |
1684
|
|
|
{ |
1685
|
|
|
} |
1686
|
|
|
|
1687
|
|
|
/** |
1688
|
|
|
* @method string getClusterId() |
1689
|
|
|
* @method $this withClusterId($value) |
1690
|
|
|
*/ |
1691
|
|
|
class GetClusterVolumes extends Rpc |
1692
|
|
|
{ |
1693
|
|
|
} |
1694
|
|
|
|
1695
|
|
|
/** |
1696
|
|
|
* @method string getContainType() |
1697
|
|
|
* @method $this withContainType($value) |
1698
|
|
|
* @method string getClusterId() |
1699
|
|
|
* @method $this withClusterId($value) |
1700
|
|
|
* @method string getImageName() |
1701
|
|
|
* @method $this withImageName($value) |
1702
|
|
|
*/ |
1703
|
|
|
class GetCommonImage extends Rpc |
1704
|
|
|
{ |
1705
|
|
|
} |
1706
|
|
|
|
1707
|
|
|
/** |
1708
|
|
|
* @method string getInstanceId() |
1709
|
|
|
* @method $this withInstanceId($value) |
1710
|
|
|
* @method string getAppName() |
1711
|
|
|
* @method $this withAppName($value) |
1712
|
|
|
*/ |
1713
|
|
|
class GetGWSConnectTicket extends Rpc |
1714
|
|
|
{ |
1715
|
|
|
} |
1716
|
|
|
|
1717
|
|
|
/** |
1718
|
|
|
* @method string getClusterId() |
1719
|
|
|
* @method $this withClusterId($value) |
1720
|
|
|
* @method string getNode() |
1721
|
|
|
* @method $this withNode($value) |
1722
|
|
|
*/ |
1723
|
|
|
class GetHybridClusterConfig extends Rpc |
1724
|
|
|
{ |
1725
|
|
|
} |
1726
|
|
|
|
1727
|
|
|
/** |
1728
|
|
|
* @method string getInstanceType() |
1729
|
|
|
* @method $this withInstanceType($value) |
1730
|
|
|
*/ |
1731
|
|
|
class GetIfEcsTypeSupportHtConfig extends Rpc |
1732
|
|
|
{ |
1733
|
|
|
} |
1734
|
|
|
|
1735
|
|
|
/** |
1736
|
|
|
* @method string getOffset() |
1737
|
|
|
* @method $this withOffset($value) |
1738
|
|
|
* @method string getExecHost() |
1739
|
|
|
* @method $this withExecHost($value) |
1740
|
|
|
* @method string getClusterId() |
1741
|
|
|
* @method $this withClusterId($value) |
1742
|
|
|
* @method string getJobId() |
1743
|
|
|
* @method $this withJobId($value) |
1744
|
|
|
* @method string getSize() |
1745
|
|
|
* @method $this withSize($value) |
1746
|
|
|
*/ |
1747
|
|
|
class GetJobLog extends Rpc |
1748
|
|
|
{ |
1749
|
|
|
} |
1750
|
|
|
|
1751
|
|
|
/** |
1752
|
|
|
* @method string getClusterId() |
1753
|
|
|
* @method $this withClusterId($value) |
1754
|
|
|
*/ |
1755
|
|
|
class GetPostScripts extends Rpc |
1756
|
|
|
{ |
1757
|
|
|
} |
1758
|
|
|
|
1759
|
|
|
/** |
1760
|
|
|
* @method string getClusterId() |
1761
|
|
|
* @method $this withClusterId($value) |
1762
|
|
|
* @method array getScheduler() |
1763
|
|
|
*/ |
1764
|
|
|
class GetSchedulerInfo extends Rpc |
1765
|
|
|
{ |
1766
|
|
|
|
1767
|
|
|
/** |
1768
|
|
|
* @param array $scheduler |
1769
|
|
|
* |
1770
|
|
|
* @return $this |
1771
|
|
|
*/ |
1772
|
|
|
public function withScheduler(array $scheduler) |
1773
|
|
|
{ |
1774
|
|
|
$this->data['Scheduler'] = $scheduler; |
1775
|
|
|
foreach ($scheduler as $depth1 => $depth1Value) { |
1776
|
|
|
if(isset($depth1Value['SchedName'])){ |
1777
|
|
|
$this->options['query']['Scheduler.' . ($depth1 + 1) . '.SchedName'] = $depth1Value['SchedName']; |
1778
|
|
|
} |
1779
|
|
|
} |
1780
|
|
|
|
1781
|
|
|
return $this; |
1782
|
|
|
} |
1783
|
|
|
} |
1784
|
|
|
|
1785
|
|
|
/** |
1786
|
|
|
* @method string getOSSBucket() |
1787
|
|
|
* @method $this withOSSBucket($value) |
1788
|
|
|
* @method string getOSSEndPoint() |
1789
|
|
|
* @method $this withOSSEndPoint($value) |
1790
|
|
|
* @method string getClusterId() |
1791
|
|
|
* @method $this withClusterId($value) |
1792
|
|
|
* @method string getContainerType() |
1793
|
|
|
* @method $this withContainerType($value) |
1794
|
|
|
* @method string getImagePath() |
1795
|
|
|
* @method $this withImagePath($value) |
1796
|
|
|
* @method string getImageName() |
1797
|
|
|
* @method $this withImageName($value) |
1798
|
|
|
*/ |
1799
|
|
|
class GetUserImage extends Rpc |
1800
|
|
|
{ |
1801
|
|
|
} |
1802
|
|
|
|
1803
|
|
|
/** |
1804
|
|
|
* @method string getClusterId() |
1805
|
|
|
* @method $this withClusterId($value) |
1806
|
|
|
*/ |
1807
|
|
|
class GetVisualServiceStatus extends Rpc |
1808
|
|
|
{ |
1809
|
|
|
} |
1810
|
|
|
|
1811
|
|
|
class InitializeEHPC extends Rpc |
1812
|
|
|
{ |
1813
|
|
|
} |
1814
|
|
|
|
1815
|
|
|
/** |
1816
|
|
|
* @method string getClusterId() |
1817
|
|
|
* @method $this withClusterId($value) |
1818
|
|
|
* @method string getContainerType() |
1819
|
|
|
* @method $this withContainerType($value) |
1820
|
|
|
* @method string getImageName() |
1821
|
|
|
* @method $this withImageName($value) |
1822
|
|
|
*/ |
1823
|
|
|
class InspectImage extends Rpc |
1824
|
|
|
{ |
1825
|
|
|
} |
1826
|
|
|
|
1827
|
|
|
/** |
1828
|
|
|
* @method string getClusterId() |
1829
|
|
|
* @method $this withClusterId($value) |
1830
|
|
|
* @method string getApplication() |
1831
|
|
|
* @method $this withApplication($value) |
1832
|
|
|
*/ |
1833
|
|
|
class InstallSoftware extends Rpc |
1834
|
|
|
{ |
1835
|
|
|
} |
1836
|
|
|
|
1837
|
|
|
/** |
1838
|
|
|
* @method array getInstance() |
1839
|
|
|
* @method string getWorkingDir() |
1840
|
|
|
* @method $this withWorkingDir($value) |
1841
|
|
|
* @method string getClusterId() |
1842
|
|
|
* @method $this withClusterId($value) |
1843
|
|
|
* @method string getCommand() |
1844
|
|
|
* @method $this withCommand($value) |
1845
|
|
|
* @method string getTimeout() |
1846
|
|
|
* @method $this withTimeout($value) |
1847
|
|
|
*/ |
1848
|
|
|
class InvokeShellCommand extends Rpc |
1849
|
|
|
{ |
1850
|
|
|
|
1851
|
|
|
/** |
1852
|
|
|
* @param array $instance |
1853
|
|
|
* |
1854
|
|
|
* @return $this |
1855
|
|
|
*/ |
1856
|
|
|
public function withInstance(array $instance) |
1857
|
|
|
{ |
1858
|
|
|
$this->data['Instance'] = $instance; |
1859
|
|
|
foreach ($instance as $depth1 => $depth1Value) { |
1860
|
|
|
if(isset($depth1Value['Id'])){ |
1861
|
|
|
$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id']; |
1862
|
|
|
} |
1863
|
|
|
} |
1864
|
|
|
|
1865
|
|
|
return $this; |
1866
|
|
|
} |
1867
|
|
|
} |
1868
|
|
|
|
1869
|
|
|
/** |
1870
|
|
|
* @method string getSpotStrategy() |
1871
|
|
|
* @method $this withSpotStrategy($value) |
1872
|
|
|
* @method string getZoneId() |
1873
|
|
|
* @method $this withZoneId($value) |
1874
|
|
|
* @method string getShowSoldOut() |
1875
|
|
|
* @method $this withShowSoldOut($value) |
1876
|
|
|
* @method string getInstanceChargeType() |
1877
|
|
|
* @method $this withInstanceChargeType($value) |
1878
|
|
|
*/ |
1879
|
|
|
class ListAvailableEcsTypes extends Rpc |
1880
|
|
|
{ |
1881
|
|
|
} |
1882
|
|
|
|
1883
|
|
|
/** |
1884
|
|
|
* @method string getClusterId() |
1885
|
|
|
* @method $this withClusterId($value) |
1886
|
|
|
* @method string getPageNumber() |
1887
|
|
|
* @method $this withPageNumber($value) |
1888
|
|
|
* @method string getPageSize() |
1889
|
|
|
* @method $this withPageSize($value) |
1890
|
|
|
*/ |
1891
|
|
|
class ListCloudMetricProfilings extends Rpc |
1892
|
|
|
{ |
1893
|
|
|
} |
1894
|
|
|
|
1895
|
|
|
/** |
1896
|
|
|
* @method string getClusterId() |
1897
|
|
|
* @method $this withClusterId($value) |
1898
|
|
|
* @method string getPageNumber() |
1899
|
|
|
* @method $this withPageNumber($value) |
1900
|
|
|
* @method string getPageSize() |
1901
|
|
|
* @method $this withPageSize($value) |
1902
|
|
|
*/ |
1903
|
|
|
class ListClusterLogs extends Rpc |
1904
|
|
|
{ |
1905
|
|
|
} |
1906
|
|
|
|
1907
|
|
|
/** |
1908
|
|
|
* @method string getPageNumber() |
1909
|
|
|
* @method $this withPageNumber($value) |
1910
|
|
|
* @method string getPageSize() |
1911
|
|
|
* @method $this withPageSize($value) |
1912
|
|
|
*/ |
1913
|
|
|
class ListClusters extends Rpc |
1914
|
|
|
{ |
1915
|
|
|
} |
1916
|
|
|
|
1917
|
|
|
/** |
1918
|
|
|
* @method string getPageNumber() |
1919
|
|
|
* @method $this withPageNumber($value) |
1920
|
|
|
* @method string getPageSize() |
1921
|
|
|
* @method $this withPageSize($value) |
1922
|
|
|
*/ |
1923
|
|
|
class ListClustersMeta extends Rpc |
1924
|
|
|
{ |
1925
|
|
|
} |
1926
|
|
|
|
1927
|
|
|
/** |
1928
|
|
|
* @method string getClusterId() |
1929
|
|
|
* @method $this withClusterId($value) |
1930
|
|
|
* @method string getCommandId() |
1931
|
|
|
* @method $this withCommandId($value) |
1932
|
|
|
* @method string getPageNumber() |
1933
|
|
|
* @method $this withPageNumber($value) |
1934
|
|
|
* @method string getPageSize() |
1935
|
|
|
* @method $this withPageSize($value) |
1936
|
|
|
*/ |
1937
|
|
|
class ListCommands extends Rpc |
1938
|
|
|
{ |
1939
|
|
|
} |
1940
|
|
|
|
1941
|
|
|
/** |
1942
|
|
|
* @method string getClusterId() |
1943
|
|
|
* @method $this withClusterId($value) |
1944
|
|
|
* @method string getBaseOsTag() |
1945
|
|
|
* @method $this withBaseOsTag($value) |
1946
|
|
|
* @method string getInstanceType() |
1947
|
|
|
* @method $this withInstanceType($value) |
1948
|
|
|
*/ |
1949
|
|
|
class ListCommunityImages extends Rpc |
1950
|
|
|
{ |
1951
|
|
|
} |
1952
|
|
|
|
1953
|
|
|
/** |
1954
|
|
|
* @method string getPageNumber() |
1955
|
|
|
* @method $this withPageNumber($value) |
1956
|
|
|
* @method string getPageSize() |
1957
|
|
|
* @method $this withPageSize($value) |
1958
|
|
|
*/ |
1959
|
|
|
class ListContainerApps extends Rpc |
1960
|
|
|
{ |
1961
|
|
|
} |
1962
|
|
|
|
1963
|
|
|
/** |
1964
|
|
|
* @method string getClusterId() |
1965
|
|
|
* @method $this withClusterId($value) |
1966
|
|
|
* @method string getPageNumber() |
1967
|
|
|
* @method $this withPageNumber($value) |
1968
|
|
|
* @method string getContainerType() |
1969
|
|
|
* @method $this withContainerType($value) |
1970
|
|
|
* @method string getPageSize() |
1971
|
|
|
* @method $this withPageSize($value) |
1972
|
|
|
*/ |
1973
|
|
|
class ListContainerImages extends Rpc |
1974
|
|
|
{ |
1975
|
|
|
} |
1976
|
|
|
|
1977
|
|
|
/** |
1978
|
|
|
* @method string getPageNumber() |
1979
|
|
|
* @method $this withPageNumber($value) |
1980
|
|
|
* @method string getPageSize() |
1981
|
|
|
* @method $this withPageSize($value) |
1982
|
|
|
* @method string getFileSystemId() |
1983
|
|
|
* @method $this withFileSystemId($value) |
1984
|
|
|
*/ |
1985
|
|
|
class ListCpfsFileSystems extends Rpc |
1986
|
|
|
{ |
1987
|
|
|
} |
1988
|
|
|
|
1989
|
|
|
class ListCurrentClientVersion extends Rpc |
1990
|
|
|
{ |
1991
|
|
|
} |
1992
|
|
|
|
1993
|
|
|
/** |
1994
|
|
|
* @method string getClusterId() |
1995
|
|
|
* @method $this withClusterId($value) |
1996
|
|
|
* @method string getImageOwnerAlias() |
1997
|
|
|
* @method $this withImageOwnerAlias($value) |
1998
|
|
|
* @method string getBaseOsTag() |
1999
|
|
|
* @method $this withBaseOsTag($value) |
2000
|
|
|
* @method string getInstanceType() |
2001
|
|
|
* @method $this withInstanceType($value) |
2002
|
|
|
*/ |
2003
|
|
|
class ListCustomImages extends Rpc |
2004
|
|
|
{ |
2005
|
|
|
} |
2006
|
|
|
|
2007
|
|
|
/** |
2008
|
|
|
* @method string getPageNumber() |
2009
|
|
|
* @method $this withPageNumber($value) |
2010
|
|
|
* @method string getPageSize() |
2011
|
|
|
* @method $this withPageSize($value) |
2012
|
|
|
*/ |
2013
|
|
|
class ListFileSystemWithMountTargets extends Rpc |
2014
|
|
|
{ |
2015
|
|
|
} |
2016
|
|
|
|
2017
|
|
|
/** |
2018
|
|
|
* @method string getBaseOsTag() |
2019
|
|
|
* @method $this withBaseOsTag($value) |
2020
|
|
|
* @method string getInstanceType() |
2021
|
|
|
* @method $this withInstanceType($value) |
2022
|
|
|
*/ |
2023
|
|
|
class ListImages extends Rpc |
2024
|
|
|
{ |
2025
|
|
|
} |
2026
|
|
|
|
2027
|
|
|
/** |
2028
|
|
|
* @method string getClusterId() |
2029
|
|
|
* @method $this withClusterId($value) |
2030
|
|
|
*/ |
2031
|
|
|
class ListInstalledSoftware extends Rpc |
2032
|
|
|
{ |
2033
|
|
|
} |
2034
|
|
|
|
2035
|
|
|
/** |
2036
|
|
|
* @method array getInstance() |
2037
|
|
|
* @method string getClusterId() |
2038
|
|
|
* @method $this withClusterId($value) |
2039
|
|
|
* @method string getCommandId() |
2040
|
|
|
* @method $this withCommandId($value) |
2041
|
|
|
* @method string getPageNumber() |
2042
|
|
|
* @method $this withPageNumber($value) |
2043
|
|
|
* @method string getInvokeRecordStatus() |
2044
|
|
|
* @method $this withInvokeRecordStatus($value) |
2045
|
|
|
* @method string getPageSize() |
2046
|
|
|
* @method $this withPageSize($value) |
2047
|
|
|
*/ |
2048
|
|
|
class ListInvocationResults extends Rpc |
2049
|
|
|
{ |
2050
|
|
|
|
2051
|
|
|
/** |
2052
|
|
|
* @param array $instance |
2053
|
|
|
* |
2054
|
|
|
* @return $this |
2055
|
|
|
*/ |
2056
|
|
|
public function withInstance(array $instance) |
2057
|
|
|
{ |
2058
|
|
|
$this->data['Instance'] = $instance; |
2059
|
|
|
foreach ($instance as $depth1 => $depth1Value) { |
2060
|
|
|
if(isset($depth1Value['Id'])){ |
2061
|
|
|
$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id']; |
2062
|
|
|
} |
2063
|
|
|
} |
2064
|
|
|
|
2065
|
|
|
return $this; |
2066
|
|
|
} |
2067
|
|
|
} |
2068
|
|
|
|
2069
|
|
|
/** |
2070
|
|
|
* @method string getClusterId() |
2071
|
|
|
* @method $this withClusterId($value) |
2072
|
|
|
* @method string getCommandId() |
2073
|
|
|
* @method $this withCommandId($value) |
2074
|
|
|
*/ |
2075
|
|
|
class ListInvocationStatus extends Rpc |
2076
|
|
|
{ |
2077
|
|
|
} |
2078
|
|
|
|
2079
|
|
|
/** |
2080
|
|
|
* @method string getOwner() |
2081
|
|
|
* @method $this withOwner($value) |
2082
|
|
|
* @method string getClusterId() |
2083
|
|
|
* @method $this withClusterId($value) |
2084
|
|
|
* @method string getRerunable() |
2085
|
|
|
* @method $this withRerunable($value) |
2086
|
|
|
* @method string getPageNumber() |
2087
|
|
|
* @method $this withPageNumber($value) |
2088
|
|
|
* @method string getPageSize() |
2089
|
|
|
* @method $this withPageSize($value) |
2090
|
|
|
* @method string getState() |
2091
|
|
|
* @method $this withState($value) |
2092
|
|
|
*/ |
2093
|
|
|
class ListJobs extends Rpc |
2094
|
|
|
{ |
2095
|
|
|
} |
2096
|
|
|
|
2097
|
|
|
/** |
2098
|
|
|
* @method string getJobStatus() |
2099
|
|
|
* @method $this withJobStatus($value) |
2100
|
|
|
* @method string getPageNumber() |
2101
|
|
|
* @method $this withPageNumber($value) |
2102
|
|
|
* @method string getPageSize() |
2103
|
|
|
* @method $this withPageSize($value) |
2104
|
|
|
* @method string getExecuteOrder() |
2105
|
|
|
* @method $this withExecuteOrder($value) |
2106
|
|
|
* @method string getJobName() |
2107
|
|
|
* @method $this withJobName($value) |
2108
|
|
|
* @method string getSubmitOrder() |
2109
|
|
|
* @method $this withSubmitOrder($value) |
2110
|
|
|
* @method string getPendOrder() |
2111
|
|
|
* @method $this withPendOrder($value) |
2112
|
|
|
* @method string getClusterId() |
2113
|
|
|
* @method $this withClusterId($value) |
2114
|
|
|
* @method string getUsers() |
2115
|
|
|
* @method $this withUsers($value) |
2116
|
|
|
* @method string getCreateTimeEnd() |
2117
|
|
|
* @method $this withCreateTimeEnd($value) |
2118
|
|
|
* @method string getAsync() |
2119
|
|
|
* @method $this withAsync($value) |
2120
|
|
|
* @method string getNodes() |
2121
|
|
|
* @method $this withNodes($value) |
2122
|
|
|
* @method string getQueues() |
2123
|
|
|
* @method $this withQueues($value) |
2124
|
|
|
* @method string getCreateTimeStart() |
2125
|
|
|
* @method $this withCreateTimeStart($value) |
2126
|
|
|
*/ |
2127
|
|
|
class ListJobsWithFilters extends Rpc |
2128
|
|
|
{ |
2129
|
|
|
} |
2130
|
|
|
|
2131
|
|
|
/** |
2132
|
|
|
* @method string getPageNumber() |
2133
|
|
|
* @method $this withPageNumber($value) |
2134
|
|
|
* @method string getName() |
2135
|
|
|
* @method $this withName($value) |
2136
|
|
|
* @method string getPageSize() |
2137
|
|
|
* @method $this withPageSize($value) |
2138
|
|
|
*/ |
2139
|
|
|
class ListJobTemplates extends Rpc |
2140
|
|
|
{ |
2141
|
|
|
} |
2142
|
|
|
|
2143
|
|
|
/** |
2144
|
|
|
* @method string getRole() |
2145
|
|
|
* @method $this withRole($value) |
2146
|
|
|
* @method string getPageNumber() |
2147
|
|
|
* @method $this withPageNumber($value) |
2148
|
|
|
* @method string getHostName() |
2149
|
|
|
* @method $this withHostName($value) |
2150
|
|
|
* @method string getPageSize() |
2151
|
|
|
* @method $this withPageSize($value) |
2152
|
|
|
* @method string getHostNamePrefix() |
2153
|
|
|
* @method $this withHostNamePrefix($value) |
2154
|
|
|
* @method string getClusterId() |
2155
|
|
|
* @method $this withClusterId($value) |
2156
|
|
|
* @method string getHostNameSuffix() |
2157
|
|
|
* @method $this withHostNameSuffix($value) |
2158
|
|
|
* @method string getFilter() |
2159
|
|
|
* @method $this withFilter($value) |
2160
|
|
|
* @method string getPrivateIpAddress() |
2161
|
|
|
* @method $this withPrivateIpAddress($value) |
2162
|
|
|
* @method string getSequence() |
2163
|
|
|
* @method $this withSequence($value) |
2164
|
|
|
* @method string getSortBy() |
2165
|
|
|
* @method $this withSortBy($value) |
2166
|
|
|
*/ |
2167
|
|
|
class ListNodes extends Rpc |
2168
|
|
|
{ |
2169
|
|
|
} |
2170
|
|
|
|
2171
|
|
|
/** |
2172
|
|
|
* @method string getQueueName() |
2173
|
|
|
* @method $this withQueueName($value) |
2174
|
|
|
* @method string getClusterId() |
2175
|
|
|
* @method $this withClusterId($value) |
2176
|
|
|
* @method string getPageNumber() |
2177
|
|
|
* @method $this withPageNumber($value) |
2178
|
|
|
* @method string getAsync() |
2179
|
|
|
* @method $this withAsync($value) |
2180
|
|
|
* @method string getPageSize() |
2181
|
|
|
* @method $this withPageSize($value) |
2182
|
|
|
*/ |
2183
|
|
|
class ListNodesByQueue extends Rpc |
2184
|
|
|
{ |
2185
|
|
|
} |
2186
|
|
|
|
2187
|
|
|
/** |
2188
|
|
|
* @method string getRole() |
2189
|
|
|
* @method $this withRole($value) |
2190
|
|
|
* @method string getClusterId() |
2191
|
|
|
* @method $this withClusterId($value) |
2192
|
|
|
* @method string getSequence() |
2193
|
|
|
* @method $this withSequence($value) |
2194
|
|
|
* @method string getHostName() |
2195
|
|
|
* @method $this withHostName($value) |
2196
|
|
|
* @method string getOnlyDetached() |
2197
|
|
|
* @method $this withOnlyDetached($value) |
2198
|
|
|
*/ |
2199
|
|
|
class ListNodesNoPaging extends Rpc |
2200
|
|
|
{ |
2201
|
|
|
} |
2202
|
|
|
|
2203
|
|
|
/** |
2204
|
|
|
* @method string getSpotStrategy() |
2205
|
|
|
* @method $this withSpotStrategy($value) |
2206
|
|
|
* @method string getZoneId() |
2207
|
|
|
* @method $this withZoneId($value) |
2208
|
|
|
* @method string getInstanceChargeType() |
2209
|
|
|
* @method $this withInstanceChargeType($value) |
2210
|
|
|
*/ |
2211
|
|
|
class ListPreferredEcsTypes extends Rpc |
2212
|
|
|
{ |
2213
|
|
|
} |
2214
|
|
|
|
2215
|
|
|
/** |
2216
|
|
|
* @method string getClusterId() |
2217
|
|
|
* @method $this withClusterId($value) |
2218
|
|
|
* @method string getAsync() |
2219
|
|
|
* @method $this withAsync($value) |
2220
|
|
|
*/ |
2221
|
|
|
class ListQueues extends Rpc |
2222
|
|
|
{ |
2223
|
|
|
} |
2224
|
|
|
|
2225
|
|
|
class ListRegions extends Rpc |
2226
|
|
|
{ |
2227
|
|
|
} |
2228
|
|
|
|
2229
|
|
|
/** |
2230
|
|
|
* @method string getClusterId() |
2231
|
|
|
* @method $this withClusterId($value) |
2232
|
|
|
*/ |
2233
|
|
|
class ListSecurityGroups extends Rpc |
2234
|
|
|
{ |
2235
|
|
|
} |
2236
|
|
|
|
2237
|
|
|
/** |
2238
|
|
|
* @method string getSubmitTimeStart() |
2239
|
|
|
* @method $this withSubmitTimeStart($value) |
2240
|
|
|
* @method string getPageNumber() |
2241
|
|
|
* @method $this withPageNumber($value) |
2242
|
|
|
* @method string getPageSize() |
2243
|
|
|
* @method $this withPageSize($value) |
2244
|
|
|
* @method string getState() |
2245
|
|
|
* @method $this withState($value) |
2246
|
|
|
* @method string getSubmitOrder() |
2247
|
|
|
* @method $this withSubmitOrder($value) |
2248
|
|
|
* @method string getClusterId() |
2249
|
|
|
* @method $this withClusterId($value) |
2250
|
|
|
* @method string getJobNames() |
2251
|
|
|
* @method $this withJobNames($value) |
2252
|
|
|
* @method string getUsers() |
2253
|
|
|
* @method $this withUsers($value) |
2254
|
|
|
* @method string getStartOrder() |
2255
|
|
|
* @method $this withStartOrder($value) |
2256
|
|
|
* @method string getSubmitTimeEnd() |
2257
|
|
|
* @method $this withSubmitTimeEnd($value) |
2258
|
|
|
* @method string getQueues() |
2259
|
|
|
* @method $this withQueues($value) |
2260
|
|
|
* @method string getJobIds() |
2261
|
|
|
* @method $this withJobIds($value) |
2262
|
|
|
*/ |
2263
|
|
|
class ListServerlessJobs extends Rpc |
2264
|
|
|
{ |
2265
|
|
|
|
2266
|
|
|
/** @var string */ |
2267
|
|
|
public $method = 'POST'; |
2268
|
|
|
} |
2269
|
|
|
|
2270
|
|
|
/** |
2271
|
|
|
* @method string getOsTag() |
2272
|
|
|
* @method $this withOsTag($value) |
2273
|
|
|
* @method string getEhpcVersion() |
2274
|
|
|
* @method $this withEhpcVersion($value) |
2275
|
|
|
*/ |
2276
|
|
|
class ListSoftwares extends Rpc |
2277
|
|
|
{ |
2278
|
|
|
} |
2279
|
|
|
|
2280
|
|
|
/** |
2281
|
|
|
* @method array getResourceId() |
2282
|
|
|
* @method string getResourceType() |
2283
|
|
|
* @method $this withResourceType($value) |
2284
|
|
|
* @method string getNextToken() |
2285
|
|
|
* @method $this withNextToken($value) |
2286
|
|
|
* @method array getTag() |
2287
|
|
|
*/ |
2288
|
|
|
class ListTagResources extends Rpc |
2289
|
|
|
{ |
2290
|
|
|
|
2291
|
|
|
/** @var string */ |
2292
|
|
|
public $method = 'POST'; |
2293
|
|
|
|
2294
|
|
|
/** |
2295
|
|
|
* @param array $resourceId |
2296
|
|
|
* |
2297
|
|
|
* @return $this |
2298
|
|
|
*/ |
2299
|
|
|
public function withResourceId(array $resourceId) |
2300
|
|
|
{ |
2301
|
|
|
$this->data['ResourceId'] = $resourceId; |
2302
|
|
|
foreach ($resourceId as $i => $iValue) { |
2303
|
|
|
$this->options['query']['ResourceId.' . ($i + 1)] = $iValue; |
2304
|
|
|
} |
2305
|
|
|
|
2306
|
|
|
return $this; |
2307
|
|
|
} |
2308
|
|
|
|
2309
|
|
|
/** |
2310
|
|
|
* @param array $tag |
2311
|
|
|
* |
2312
|
|
|
* @return $this |
2313
|
|
|
*/ |
2314
|
|
|
public function withTag(array $tag) |
2315
|
|
|
{ |
2316
|
|
|
$this->data['Tag'] = $tag; |
2317
|
|
|
foreach ($tag as $depth1 => $depth1Value) { |
2318
|
|
|
if(isset($depth1Value['Value'])){ |
2319
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value']; |
2320
|
|
|
} |
2321
|
|
|
if(isset($depth1Value['Key'])){ |
2322
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key']; |
2323
|
|
|
} |
2324
|
|
|
} |
2325
|
|
|
|
2326
|
|
|
return $this; |
2327
|
|
|
} |
2328
|
|
|
} |
2329
|
|
|
|
2330
|
|
|
/** |
2331
|
|
|
* @method string getClusterId() |
2332
|
|
|
* @method $this withClusterId($value) |
2333
|
|
|
* @method string getPageNumber() |
2334
|
|
|
* @method $this withPageNumber($value) |
2335
|
|
|
* @method string getArchived() |
2336
|
|
|
* @method $this withArchived($value) |
2337
|
|
|
* @method string getPageSize() |
2338
|
|
|
* @method $this withPageSize($value) |
2339
|
|
|
* @method string getTaskId() |
2340
|
|
|
* @method $this withTaskId($value) |
2341
|
|
|
*/ |
2342
|
|
|
class ListTasks extends Rpc |
2343
|
|
|
{ |
2344
|
|
|
} |
2345
|
|
|
|
2346
|
|
|
/** |
2347
|
|
|
* @method string getClusterId() |
2348
|
|
|
* @method $this withClusterId($value) |
2349
|
|
|
*/ |
2350
|
|
|
class ListUpgradeClients extends Rpc |
2351
|
|
|
{ |
2352
|
|
|
} |
2353
|
|
|
|
2354
|
|
|
/** |
2355
|
|
|
* @method string getClusterId() |
2356
|
|
|
* @method $this withClusterId($value) |
2357
|
|
|
* @method string getPageNumber() |
2358
|
|
|
* @method $this withPageNumber($value) |
2359
|
|
|
* @method string getPageSize() |
2360
|
|
|
* @method $this withPageSize($value) |
2361
|
|
|
*/ |
2362
|
|
|
class ListUsers extends Rpc |
2363
|
|
|
{ |
2364
|
|
|
} |
2365
|
|
|
|
2366
|
|
|
/** |
2367
|
|
|
* @method string getAsyncId() |
2368
|
|
|
* @method $this withAsyncId($value) |
2369
|
|
|
* @method string getClusterId() |
2370
|
|
|
* @method $this withClusterId($value) |
2371
|
|
|
* @method string getPageNumber() |
2372
|
|
|
* @method $this withPageNumber($value) |
2373
|
|
|
* @method string getPageSize() |
2374
|
|
|
* @method $this withPageSize($value) |
2375
|
|
|
*/ |
2376
|
|
|
class ListUsersAsync extends Rpc |
2377
|
|
|
{ |
2378
|
|
|
} |
2379
|
|
|
|
2380
|
|
|
/** |
2381
|
|
|
* @method string getPageNumber() |
2382
|
|
|
* @method $this withPageNumber($value) |
2383
|
|
|
* @method string getPageSize() |
2384
|
|
|
* @method $this withPageSize($value) |
2385
|
|
|
*/ |
2386
|
|
|
class ListVolumes extends Rpc |
2387
|
|
|
{ |
2388
|
|
|
} |
2389
|
|
|
|
2390
|
|
|
/** |
2391
|
|
|
* @method string getImageId() |
2392
|
|
|
* @method $this withImageId($value) |
2393
|
|
|
* @method string getDescription() |
2394
|
|
|
* @method $this withDescription($value) |
2395
|
|
|
* @method string getRamRoleName() |
2396
|
|
|
* @method $this withRamRoleName($value) |
2397
|
|
|
* @method string getClusterId() |
2398
|
|
|
* @method $this withClusterId($value) |
2399
|
|
|
* @method string getImageOwnerAlias() |
2400
|
|
|
* @method $this withImageOwnerAlias($value) |
2401
|
|
|
* @method array getRamNodeTypes() |
2402
|
|
|
* @method string getPassword() |
2403
|
|
|
* @method $this withPassword($value) |
2404
|
|
|
* @method string getWinAdPar() |
2405
|
|
|
* @method $this withWinAdPar($value) |
2406
|
|
|
* @method string getName() |
2407
|
|
|
* @method $this withName($value) |
2408
|
|
|
*/ |
2409
|
|
|
class ModifyClusterAttributes extends Rpc |
2410
|
|
|
{ |
2411
|
|
|
|
2412
|
|
|
/** |
2413
|
|
|
* @param array $ramNodeTypes |
2414
|
|
|
* |
2415
|
|
|
* @return $this |
2416
|
|
|
*/ |
2417
|
|
|
public function withRamNodeTypes(array $ramNodeTypes) |
2418
|
|
|
{ |
2419
|
|
|
$this->data['RamNodeTypes'] = $ramNodeTypes; |
2420
|
|
|
foreach ($ramNodeTypes as $i => $iValue) { |
2421
|
|
|
$this->options['query']['RamNodeTypes.' . ($i + 1)] = $iValue; |
2422
|
|
|
} |
2423
|
|
|
|
2424
|
|
|
return $this; |
2425
|
|
|
} |
2426
|
|
|
} |
2427
|
|
|
|
2428
|
|
|
/** |
2429
|
|
|
* @method string getDescription() |
2430
|
|
|
* @method $this withDescription($value) |
2431
|
|
|
* @method string getContainerId() |
2432
|
|
|
* @method $this withContainerId($value) |
2433
|
|
|
*/ |
2434
|
|
|
class ModifyContainerAppAttributes extends Rpc |
2435
|
|
|
{ |
2436
|
|
|
} |
2437
|
|
|
|
2438
|
|
|
/** |
2439
|
|
|
* @method array getRepo() |
2440
|
|
|
* @method string getDBServerInfo() |
2441
|
|
|
* @method $this withDBServerInfo($value) |
2442
|
|
|
* @method string getClusterId() |
2443
|
|
|
* @method $this withClusterId($value) |
2444
|
|
|
* @method string getDefaultRepoLocation() |
2445
|
|
|
* @method $this withDefaultRepoLocation($value) |
2446
|
|
|
* @method string getDBPassword() |
2447
|
|
|
* @method $this withDBPassword($value) |
2448
|
|
|
* @method string getDBType() |
2449
|
|
|
* @method $this withDBType($value) |
2450
|
|
|
* @method string getDBUsername() |
2451
|
|
|
* @method $this withDBUsername($value) |
2452
|
|
|
* @method string getPullUpdateTimeout() |
2453
|
|
|
* @method $this withPullUpdateTimeout($value) |
2454
|
|
|
* @method string getImageExpirationTimeout() |
2455
|
|
|
* @method $this withImageExpirationTimeout($value) |
2456
|
|
|
*/ |
2457
|
|
|
class ModifyImageGatewayConfig extends Rpc |
2458
|
|
|
{ |
2459
|
|
|
|
2460
|
|
|
/** |
2461
|
|
|
* @param array $repo |
2462
|
|
|
* |
2463
|
|
|
* @return $this |
2464
|
|
|
*/ |
2465
|
|
|
public function withRepo(array $repo) |
2466
|
|
|
{ |
2467
|
|
|
$this->data['Repo'] = $repo; |
2468
|
|
|
foreach ($repo as $depth1 => $depth1Value) { |
2469
|
|
|
if(isset($depth1Value['Auth'])){ |
2470
|
|
|
$this->options['query']['Repo.' . ($depth1 + 1) . '.Auth'] = $depth1Value['Auth']; |
2471
|
|
|
} |
2472
|
|
|
if(isset($depth1Value['Location'])){ |
2473
|
|
|
$this->options['query']['Repo.' . ($depth1 + 1) . '.Location'] = $depth1Value['Location']; |
2474
|
|
|
} |
2475
|
|
|
if(isset($depth1Value['URL'])){ |
2476
|
|
|
$this->options['query']['Repo.' . ($depth1 + 1) . '.URL'] = $depth1Value['URL']; |
2477
|
|
|
} |
2478
|
|
|
} |
2479
|
|
|
|
2480
|
|
|
return $this; |
2481
|
|
|
} |
2482
|
|
|
} |
2483
|
|
|
|
2484
|
|
|
/** |
2485
|
|
|
* @method string getClusterId() |
2486
|
|
|
* @method $this withClusterId($value) |
2487
|
|
|
* @method string getAsync() |
2488
|
|
|
* @method $this withAsync($value) |
2489
|
|
|
* @method array getUser() |
2490
|
|
|
*/ |
2491
|
|
|
class ModifyUserGroups extends Rpc |
2492
|
|
|
{ |
2493
|
|
|
|
2494
|
|
|
/** |
2495
|
|
|
* @param array $user |
2496
|
|
|
* |
2497
|
|
|
* @return $this |
2498
|
|
|
*/ |
2499
|
|
|
public function withUser(array $user) |
2500
|
|
|
{ |
2501
|
|
|
$this->data['User'] = $user; |
2502
|
|
|
foreach ($user as $depth1 => $depth1Value) { |
2503
|
|
|
if(isset($depth1Value['Name'])){ |
2504
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
2505
|
|
|
} |
2506
|
|
|
if(isset($depth1Value['Group'])){ |
2507
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Group'] = $depth1Value['Group']; |
2508
|
|
|
} |
2509
|
|
|
} |
2510
|
|
|
|
2511
|
|
|
return $this; |
2512
|
|
|
} |
2513
|
|
|
} |
2514
|
|
|
|
2515
|
|
|
/** |
2516
|
|
|
* @method string getClusterId() |
2517
|
|
|
* @method $this withClusterId($value) |
2518
|
|
|
* @method string getAsync() |
2519
|
|
|
* @method $this withAsync($value) |
2520
|
|
|
* @method array getUser() |
2521
|
|
|
*/ |
2522
|
|
|
class ModifyUserPasswords extends Rpc |
2523
|
|
|
{ |
2524
|
|
|
|
2525
|
|
|
/** |
2526
|
|
|
* @param array $user |
2527
|
|
|
* |
2528
|
|
|
* @return $this |
2529
|
|
|
*/ |
2530
|
|
|
public function withUser(array $user) |
2531
|
|
|
{ |
2532
|
|
|
$this->data['User'] = $user; |
2533
|
|
|
foreach ($user as $depth1 => $depth1Value) { |
2534
|
|
|
if(isset($depth1Value['Password'])){ |
2535
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Password'] = $depth1Value['Password']; |
2536
|
|
|
} |
2537
|
|
|
if(isset($depth1Value['Name'])){ |
2538
|
|
|
$this->options['query']['User.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
2539
|
|
|
} |
2540
|
|
|
} |
2541
|
|
|
|
2542
|
|
|
return $this; |
2543
|
|
|
} |
2544
|
|
|
} |
2545
|
|
|
|
2546
|
|
|
/** |
2547
|
|
|
* @method string getRunasUserPassword() |
2548
|
|
|
* @method $this withRunasUserPassword($value) |
2549
|
|
|
* @method string getRunasUser() |
2550
|
|
|
* @method $this withRunasUser($value) |
2551
|
|
|
* @method string getClusterId() |
2552
|
|
|
* @method $this withClusterId($value) |
2553
|
|
|
* @method string getPasswd() |
2554
|
|
|
* @method $this withPasswd($value) |
2555
|
|
|
*/ |
2556
|
|
|
class ModifyVisualServicePasswd extends Rpc |
2557
|
|
|
{ |
2558
|
|
|
} |
2559
|
|
|
|
2560
|
|
|
/** |
2561
|
|
|
* @method string getMountDir() |
2562
|
|
|
* @method $this withMountDir($value) |
2563
|
|
|
* @method string getInstanceId() |
2564
|
|
|
* @method $this withInstanceId($value) |
2565
|
|
|
* @method string getRemoteDir() |
2566
|
|
|
* @method $this withRemoteDir($value) |
2567
|
|
|
* @method string getNfsDir() |
2568
|
|
|
* @method $this withNfsDir($value) |
2569
|
|
|
* @method string getProtocolType() |
2570
|
|
|
* @method $this withProtocolType($value) |
2571
|
|
|
*/ |
2572
|
|
|
class MountNFS extends Rpc |
2573
|
|
|
{ |
2574
|
|
|
} |
2575
|
|
|
|
2576
|
|
|
/** |
2577
|
|
|
* @method string getClusterId() |
2578
|
|
|
* @method $this withClusterId($value) |
2579
|
|
|
* @method string getRepository() |
2580
|
|
|
* @method $this withRepository($value) |
2581
|
|
|
* @method string getContainerType() |
2582
|
|
|
* @method $this withContainerType($value) |
2583
|
|
|
* @method string getImageTag() |
2584
|
|
|
* @method $this withImageTag($value) |
2585
|
|
|
*/ |
2586
|
|
|
class PullImage extends Rpc |
2587
|
|
|
{ |
2588
|
|
|
} |
2589
|
|
|
|
2590
|
|
|
class QueryServicePackAndPrice extends Rpc |
2591
|
|
|
{ |
2592
|
|
|
} |
2593
|
|
|
|
2594
|
|
|
/** |
2595
|
|
|
* @method string getImageId() |
2596
|
|
|
* @method $this withImageId($value) |
2597
|
|
|
* @method string getOsTag() |
2598
|
|
|
* @method $this withOsTag($value) |
2599
|
|
|
* @method string getClientVersion() |
2600
|
|
|
* @method $this withClientVersion($value) |
2601
|
|
|
* @method string getAccountType() |
2602
|
|
|
* @method $this withAccountType($value) |
2603
|
|
|
* @method string getClusterId() |
2604
|
|
|
* @method $this withClusterId($value) |
2605
|
|
|
* @method string getImageOwnerAlias() |
2606
|
|
|
* @method $this withImageOwnerAlias($value) |
2607
|
|
|
* @method string getSchedulerType() |
2608
|
|
|
* @method $this withSchedulerType($value) |
2609
|
|
|
*/ |
2610
|
|
|
class RecoverCluster extends Rpc |
2611
|
|
|
{ |
2612
|
|
|
} |
2613
|
|
|
|
2614
|
|
|
/** |
2615
|
|
|
* @method string getJobs() |
2616
|
|
|
* @method $this withJobs($value) |
2617
|
|
|
* @method string getClusterId() |
2618
|
|
|
* @method $this withClusterId($value) |
2619
|
|
|
* @method string getAsync() |
2620
|
|
|
* @method $this withAsync($value) |
2621
|
|
|
*/ |
2622
|
|
|
class RerunJobs extends Rpc |
2623
|
|
|
{ |
2624
|
|
|
} |
2625
|
|
|
|
2626
|
|
|
/** |
2627
|
|
|
* @method array getInstance() |
2628
|
|
|
* @method string getClusterId() |
2629
|
|
|
* @method $this withClusterId($value) |
2630
|
|
|
*/ |
2631
|
|
|
class ResetNodes extends Rpc |
2632
|
|
|
{ |
2633
|
|
|
|
2634
|
|
|
/** |
2635
|
|
|
* @param array $instance |
2636
|
|
|
* |
2637
|
|
|
* @return $this |
2638
|
|
|
*/ |
2639
|
|
|
public function withInstance(array $instance) |
2640
|
|
|
{ |
2641
|
|
|
$this->data['Instance'] = $instance; |
2642
|
|
|
foreach ($instance as $depth1 => $depth1Value) { |
2643
|
|
|
if(isset($depth1Value['Id'])){ |
2644
|
|
|
$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id']; |
2645
|
|
|
} |
2646
|
|
|
} |
2647
|
|
|
|
2648
|
|
|
return $this; |
2649
|
|
|
} |
2650
|
|
|
} |
2651
|
|
|
|
2652
|
|
|
/** |
2653
|
|
|
* @method string getFreq() |
2654
|
|
|
* @method $this withFreq($value) |
2655
|
|
|
* @method string getClusterId() |
2656
|
|
|
* @method $this withClusterId($value) |
2657
|
|
|
* @method string getDuration() |
2658
|
|
|
* @method $this withDuration($value) |
2659
|
|
|
* @method string getHostName() |
2660
|
|
|
* @method $this withHostName($value) |
2661
|
|
|
* @method string getProcessId() |
2662
|
|
|
* @method $this withProcessId($value) |
2663
|
|
|
*/ |
2664
|
|
|
class RunCloudMetricProfiling extends Rpc |
2665
|
|
|
{ |
2666
|
|
|
} |
2667
|
|
|
|
2668
|
|
|
/** |
2669
|
|
|
* @method string getImageId() |
2670
|
|
|
* @method $this withImageId($value) |
2671
|
|
|
* @method string getDnsConfig() |
2672
|
|
|
* @method $this withDnsConfig($value) |
2673
|
|
|
* @method string getSpotPriceLimit() |
2674
|
|
|
* @method $this withSpotPriceLimit($value) |
2675
|
|
|
* @method string getExcludeNodes() |
2676
|
|
|
* @method $this withExcludeNodes($value) |
2677
|
|
|
* @method string getExtraNodesGrowRatio() |
2678
|
|
|
* @method $this withExtraNodesGrowRatio($value) |
2679
|
|
|
* @method string getShrinkIdleTimes() |
2680
|
|
|
* @method $this withShrinkIdleTimes($value) |
2681
|
|
|
* @method string getGrowTimeoutInMinutes() |
2682
|
|
|
* @method $this withGrowTimeoutInMinutes($value) |
2683
|
|
|
* @method string getClusterId() |
2684
|
|
|
* @method $this withClusterId($value) |
2685
|
|
|
* @method string getEnableAutoGrow() |
2686
|
|
|
* @method $this withEnableAutoGrow($value) |
2687
|
|
|
* @method string getEnableAutoShrink() |
2688
|
|
|
* @method $this withEnableAutoShrink($value) |
2689
|
|
|
* @method string getSpotStrategy() |
2690
|
|
|
* @method $this withSpotStrategy($value) |
2691
|
|
|
* @method string getMaxNodesInCluster() |
2692
|
|
|
* @method $this withMaxNodesInCluster($value) |
2693
|
|
|
* @method string getComputeEnableHt() |
2694
|
|
|
* @method $this withComputeEnableHt($value) |
2695
|
|
|
* @method string getShrinkIntervalInMinutes() |
2696
|
|
|
* @method $this withShrinkIntervalInMinutes($value) |
2697
|
|
|
* @method array getQueues() |
2698
|
|
|
* @method string getGrowIntervalInMinutes() |
2699
|
|
|
* @method $this withGrowIntervalInMinutes($value) |
2700
|
|
|
* @method string getGrowRatio() |
2701
|
|
|
* @method $this withGrowRatio($value) |
2702
|
|
|
*/ |
2703
|
|
|
class SetAutoScaleConfig extends Rpc |
2704
|
|
|
{ |
2705
|
|
|
|
2706
|
|
|
/** |
2707
|
|
|
* @param array $queues |
2708
|
|
|
* |
2709
|
|
|
* @return $this |
2710
|
|
|
*/ |
2711
|
|
|
public function withQueues(array $queues) |
2712
|
|
|
{ |
2713
|
|
|
$this->data['Queues'] = $queues; |
2714
|
|
|
foreach ($queues as $depth1 => $depth1Value) { |
2715
|
|
|
if(isset($depth1Value['QueueName'])){ |
2716
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.QueueName'] = $depth1Value['QueueName']; |
2717
|
|
|
} |
2718
|
|
|
if(isset($depth1Value['SystemDiskLevel'])){ |
2719
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.SystemDiskLevel'] = $depth1Value['SystemDiskLevel']; |
2720
|
|
|
} |
2721
|
|
|
if(isset($depth1Value['SortedByInventory'])){ |
2722
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.SortedByInventory'] = $depth1Value['SortedByInventory']; |
2723
|
|
|
} |
2724
|
|
|
foreach ($depth1Value['InstanceTypes'] as $depth2 => $depth2Value) { |
2725
|
|
|
if(isset($depth2Value['VSwitchId'])){ |
2726
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.VSwitchId'] = $depth2Value['VSwitchId']; |
2727
|
|
|
} |
2728
|
|
|
if(isset($depth2Value['SpotStrategy'])){ |
2729
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.SpotStrategy'] = $depth2Value['SpotStrategy']; |
2730
|
|
|
} |
2731
|
|
|
if(isset($depth2Value['SpotInterruptionBehavior'])){ |
2732
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.SpotInterruptionBehavior'] = $depth2Value['SpotInterruptionBehavior']; |
2733
|
|
|
} |
2734
|
|
|
if(isset($depth2Value['ZoneId'])){ |
2735
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.ZoneId'] = $depth2Value['ZoneId']; |
2736
|
|
|
} |
2737
|
|
|
if(isset($depth2Value['InstanceType'])){ |
2738
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.InstanceType'] = $depth2Value['InstanceType']; |
2739
|
|
|
} |
2740
|
|
|
if(isset($depth2Value['SpotPriceLimit'])){ |
2741
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.SpotPriceLimit'] = $depth2Value['SpotPriceLimit']; |
2742
|
|
|
} |
2743
|
|
|
if(isset($depth2Value['SpotDuration'])){ |
2744
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.SpotDuration'] = $depth2Value['SpotDuration']; |
2745
|
|
|
} |
2746
|
|
|
} |
2747
|
|
|
if(isset($depth1Value['EnableAutoGrow'])){ |
2748
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.EnableAutoGrow'] = $depth1Value['EnableAutoGrow']; |
2749
|
|
|
} |
2750
|
|
|
if(isset($depth1Value['HostNameSuffix'])){ |
2751
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.HostNameSuffix'] = $depth1Value['HostNameSuffix']; |
2752
|
|
|
} |
2753
|
|
|
if(isset($depth1Value['SpotPriceLimit'])){ |
2754
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.SpotPriceLimit'] = $depth1Value['SpotPriceLimit']; |
2755
|
|
|
} |
2756
|
|
|
if(isset($depth1Value['EnableAutoShrink'])){ |
2757
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.EnableAutoShrink'] = $depth1Value['EnableAutoShrink']; |
2758
|
|
|
} |
2759
|
|
|
if(isset($depth1Value['SpotStrategy'])){ |
2760
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.SpotStrategy'] = $depth1Value['SpotStrategy']; |
2761
|
|
|
} |
2762
|
|
|
if(isset($depth1Value['AutoMinNodesPerCycle'])){ |
2763
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.AutoMinNodesPerCycle'] = $depth1Value['AutoMinNodesPerCycle']; |
2764
|
|
|
} |
2765
|
|
|
foreach ($depth1Value['DataDisks'] as $depth2 => $depth2Value) { |
2766
|
|
|
if(isset($depth2Value['DataDiskDeleteWithInstance'])){ |
2767
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.DataDiskDeleteWithInstance'] = $depth2Value['DataDiskDeleteWithInstance']; |
2768
|
|
|
} |
2769
|
|
|
if(isset($depth2Value['DataDiskEncrypted'])){ |
2770
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.DataDiskEncrypted'] = $depth2Value['DataDiskEncrypted']; |
2771
|
|
|
} |
2772
|
|
|
if(isset($depth2Value['DataDiskKMSKeyId'])){ |
2773
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.DataDiskKMSKeyId'] = $depth2Value['DataDiskKMSKeyId']; |
2774
|
|
|
} |
2775
|
|
|
if(isset($depth2Value['DataDiskSize'])){ |
2776
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.DataDiskSize'] = $depth2Value['DataDiskSize']; |
2777
|
|
|
} |
2778
|
|
|
if(isset($depth2Value['DataDiskCategory'])){ |
2779
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.DataDiskCategory'] = $depth2Value['DataDiskCategory']; |
2780
|
|
|
} |
2781
|
|
|
if(isset($depth2Value['DataDiskPerformanceLevel'])){ |
2782
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.DataDiskPerformanceLevel'] = $depth2Value['DataDiskPerformanceLevel']; |
2783
|
|
|
} |
2784
|
|
|
} |
2785
|
|
|
if(isset($depth1Value['MinNodesInQueue'])){ |
2786
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.MinNodesInQueue'] = $depth1Value['MinNodesInQueue']; |
2787
|
|
|
} |
2788
|
|
|
if(isset($depth1Value['MaxNodesPerCycle'])){ |
2789
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.MaxNodesPerCycle'] = $depth1Value['MaxNodesPerCycle']; |
2790
|
|
|
} |
2791
|
|
|
if(isset($depth1Value['SystemDiskCategory'])){ |
2792
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.SystemDiskCategory'] = $depth1Value['SystemDiskCategory']; |
2793
|
|
|
} |
2794
|
|
|
if(isset($depth1Value['MaxNodesInQueue'])){ |
2795
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.MaxNodesInQueue'] = $depth1Value['MaxNodesInQueue']; |
2796
|
|
|
} |
2797
|
|
|
if(isset($depth1Value['SystemDiskSize'])){ |
2798
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.SystemDiskSize'] = $depth1Value['SystemDiskSize']; |
2799
|
|
|
} |
2800
|
|
|
if(isset($depth1Value['QueueImageId'])){ |
2801
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.QueueImageId'] = $depth1Value['QueueImageId']; |
2802
|
|
|
} |
2803
|
|
|
if(isset($depth1Value['InstanceType'])){ |
2804
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceType'] = $depth1Value['InstanceType']; |
2805
|
|
|
} |
2806
|
|
|
if(isset($depth1Value['HostNamePrefix'])){ |
2807
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.HostNamePrefix'] = $depth1Value['HostNamePrefix']; |
2808
|
|
|
} |
2809
|
|
|
if(isset($depth1Value['MinNodesPerCycle'])){ |
2810
|
|
|
$this->options['query']['Queues.' . ($depth1 + 1) . '.MinNodesPerCycle'] = $depth1Value['MinNodesPerCycle']; |
2811
|
|
|
} |
2812
|
|
|
} |
2813
|
|
|
|
2814
|
|
|
return $this; |
2815
|
|
|
} |
2816
|
|
|
} |
2817
|
|
|
|
2818
|
|
|
/** |
2819
|
|
|
* @method string getWatermark() |
2820
|
|
|
* @method $this withWatermark($value) |
2821
|
|
|
* @method string getLocalDrive() |
2822
|
|
|
* @method $this withLocalDrive($value) |
2823
|
|
|
* @method string getClusterId() |
2824
|
|
|
* @method $this withClusterId($value) |
2825
|
|
|
* @method string getClipboard() |
2826
|
|
|
* @method $this withClipboard($value) |
2827
|
|
|
* @method string getUsbRedirect() |
2828
|
|
|
* @method $this withUsbRedirect($value) |
2829
|
|
|
* @method string getAsyncMode() |
2830
|
|
|
* @method $this withAsyncMode($value) |
2831
|
|
|
* @method string getUdpPort() |
2832
|
|
|
* @method $this withUdpPort($value) |
2833
|
|
|
*/ |
2834
|
|
|
class SetGWSClusterPolicy extends Rpc |
2835
|
|
|
{ |
2836
|
|
|
|
2837
|
|
|
/** @var string */ |
2838
|
|
|
public $method = 'POST'; |
2839
|
|
|
} |
2840
|
|
|
|
2841
|
|
|
/** |
2842
|
|
|
* @method string getInstanceId() |
2843
|
|
|
* @method $this withInstanceId($value) |
2844
|
|
|
* @method string getName() |
2845
|
|
|
* @method $this withName($value) |
2846
|
|
|
*/ |
2847
|
|
|
class SetGWSInstanceName extends Rpc |
2848
|
|
|
{ |
2849
|
|
|
} |
2850
|
|
|
|
2851
|
|
|
/** |
2852
|
|
|
* @method string getInstanceId() |
2853
|
|
|
* @method $this withInstanceId($value) |
2854
|
|
|
* @method string getUserUid() |
2855
|
|
|
* @method $this withUserUid($value) |
2856
|
|
|
* @method string getUserName() |
2857
|
|
|
* @method $this withUserName($value) |
2858
|
|
|
*/ |
2859
|
|
|
class SetGWSInstanceUser extends Rpc |
2860
|
|
|
{ |
2861
|
|
|
} |
2862
|
|
|
|
2863
|
|
|
/** |
2864
|
|
|
* @method array getPostInstallScripts() |
2865
|
|
|
* @method string getClusterId() |
2866
|
|
|
* @method $this withClusterId($value) |
2867
|
|
|
*/ |
2868
|
|
|
class SetPostScripts extends Rpc |
2869
|
|
|
{ |
2870
|
|
|
|
2871
|
|
|
/** |
2872
|
|
|
* @param array $postInstallScripts |
2873
|
|
|
* |
2874
|
|
|
* @return $this |
2875
|
|
|
*/ |
2876
|
|
|
public function withPostInstallScripts(array $postInstallScripts) |
2877
|
|
|
{ |
2878
|
|
|
$this->data['PostInstallScripts'] = $postInstallScripts; |
2879
|
|
|
foreach ($postInstallScripts as $depth1 => $depth1Value) { |
2880
|
|
|
if(isset($depth1Value['Args'])){ |
2881
|
|
|
$this->options['query']['PostInstallScripts.' . ($depth1 + 1) . '.Args'] = $depth1Value['Args']; |
2882
|
|
|
} |
2883
|
|
|
if(isset($depth1Value['Url'])){ |
2884
|
|
|
$this->options['query']['PostInstallScripts.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url']; |
2885
|
|
|
} |
2886
|
|
|
} |
2887
|
|
|
|
2888
|
|
|
return $this; |
2889
|
|
|
} |
2890
|
|
|
} |
2891
|
|
|
|
2892
|
|
|
/** |
2893
|
|
|
* @method string getQueueName() |
2894
|
|
|
* @method $this withQueueName($value) |
2895
|
|
|
* @method string getClusterId() |
2896
|
|
|
* @method $this withClusterId($value) |
2897
|
|
|
* @method array getNode() |
2898
|
|
|
*/ |
2899
|
|
|
class SetQueue extends Rpc |
2900
|
|
|
{ |
2901
|
|
|
|
2902
|
|
|
/** |
2903
|
|
|
* @param array $node |
2904
|
|
|
* |
2905
|
|
|
* @return $this |
2906
|
|
|
*/ |
2907
|
|
|
public function withNode(array $node) |
2908
|
|
|
{ |
2909
|
|
|
$this->data['Node'] = $node; |
2910
|
|
|
foreach ($node as $depth1 => $depth1Value) { |
2911
|
|
|
if(isset($depth1Value['Name'])){ |
2912
|
|
|
$this->options['query']['Node.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name']; |
2913
|
|
|
} |
2914
|
|
|
} |
2915
|
|
|
|
2916
|
|
|
return $this; |
2917
|
|
|
} |
2918
|
|
|
} |
2919
|
|
|
|
2920
|
|
|
/** |
2921
|
|
|
* @method array getSlurmInfo() |
2922
|
|
|
* @method string getClusterId() |
2923
|
|
|
* @method $this withClusterId($value) |
2924
|
|
|
* @method array getScheduler() |
2925
|
|
|
* @method array getPbsInfo() |
2926
|
|
|
*/ |
2927
|
|
|
class SetSchedulerInfo extends Rpc |
2928
|
|
|
{ |
2929
|
|
|
|
2930
|
|
|
/** |
2931
|
|
|
* @param array $slurmInfo |
2932
|
|
|
* |
2933
|
|
|
* @return $this |
2934
|
|
|
*/ |
2935
|
|
|
public function withSlurmInfo(array $slurmInfo) |
2936
|
|
|
{ |
2937
|
|
|
$this->data['SlurmInfo'] = $slurmInfo; |
2938
|
|
|
foreach ($slurmInfo as $depth1 => $depth1Value) { |
2939
|
|
|
if(isset($depth1Value['SchedInterval'])){ |
2940
|
|
|
$this->options['query']['SlurmInfo.' . ($depth1 + 1) . '.SchedInterval'] = $depth1Value['SchedInterval']; |
2941
|
|
|
} |
2942
|
|
|
if(isset($depth1Value['BackfillInterval'])){ |
2943
|
|
|
$this->options['query']['SlurmInfo.' . ($depth1 + 1) . '.BackfillInterval'] = $depth1Value['BackfillInterval']; |
2944
|
|
|
} |
2945
|
|
|
} |
2946
|
|
|
|
2947
|
|
|
return $this; |
2948
|
|
|
} |
2949
|
|
|
|
2950
|
|
|
/** |
2951
|
|
|
* @param array $scheduler |
2952
|
|
|
* |
2953
|
|
|
* @return $this |
2954
|
|
|
*/ |
2955
|
|
|
public function withScheduler(array $scheduler) |
2956
|
|
|
{ |
2957
|
|
|
$this->data['Scheduler'] = $scheduler; |
2958
|
|
|
foreach ($scheduler as $depth1 => $depth1Value) { |
2959
|
|
|
if(isset($depth1Value['SchedName'])){ |
2960
|
|
|
$this->options['query']['Scheduler.' . ($depth1 + 1) . '.SchedName'] = $depth1Value['SchedName']; |
2961
|
|
|
} |
2962
|
|
|
} |
2963
|
|
|
|
2964
|
|
|
return $this; |
2965
|
|
|
} |
2966
|
|
|
|
2967
|
|
|
/** |
2968
|
|
|
* @param array $pbsInfo |
2969
|
|
|
* |
2970
|
|
|
* @return $this |
2971
|
|
|
*/ |
2972
|
|
|
public function withPbsInfo(array $pbsInfo) |
2973
|
|
|
{ |
2974
|
|
|
$this->data['PbsInfo'] = $pbsInfo; |
2975
|
|
|
foreach ($pbsInfo as $depth1 => $depth1Value) { |
2976
|
|
|
if(isset($depth1Value['SchedInterval'])){ |
2977
|
|
|
$this->options['query']['PbsInfo.' . ($depth1 + 1) . '.SchedInterval'] = $depth1Value['SchedInterval']; |
2978
|
|
|
} |
2979
|
|
|
if(isset($depth1Value['SchedMaxJobs'])){ |
2980
|
|
|
$this->options['query']['PbsInfo.' . ($depth1 + 1) . '.SchedMaxJobs'] = $depth1Value['SchedMaxJobs']; |
2981
|
|
|
} |
2982
|
|
|
foreach ($depth1Value['AclLimit'] as $depth2 => $depth2Value) { |
2983
|
|
|
if(isset($depth2Value['AclUsers'])){ |
2984
|
|
|
$this->options['query']['PbsInfo.' . ($depth1 + 1) . '.AclLimit.' . ($depth2 + 1) . '.AclUsers'] = $depth2Value['AclUsers']; |
2985
|
|
|
} |
2986
|
|
|
if(isset($depth2Value['Queue'])){ |
2987
|
|
|
$this->options['query']['PbsInfo.' . ($depth1 + 1) . '.AclLimit.' . ($depth2 + 1) . '.Queue'] = $depth2Value['Queue']; |
2988
|
|
|
} |
2989
|
|
|
} |
2990
|
|
|
foreach ($depth1Value['ResourceLimit'] as $depth2 => $depth2Value) { |
2991
|
|
|
if(isset($depth2Value['MaxJobs'])){ |
2992
|
|
|
$this->options['query']['PbsInfo.' . ($depth1 + 1) . '.ResourceLimit.' . ($depth2 + 1) . '.MaxJobs'] = $depth2Value['MaxJobs']; |
2993
|
|
|
} |
2994
|
|
|
if(isset($depth2Value['Nodes'])){ |
2995
|
|
|
$this->options['query']['PbsInfo.' . ($depth1 + 1) . '.ResourceLimit.' . ($depth2 + 1) . '.Nodes'] = $depth2Value['Nodes']; |
2996
|
|
|
} |
2997
|
|
|
if(isset($depth2Value['Mem'])){ |
2998
|
|
|
$this->options['query']['PbsInfo.' . ($depth1 + 1) . '.ResourceLimit.' . ($depth2 + 1) . '.Mem'] = $depth2Value['Mem']; |
2999
|
|
|
} |
3000
|
|
|
if(isset($depth2Value['Cpus'])){ |
3001
|
|
|
$this->options['query']['PbsInfo.' . ($depth1 + 1) . '.ResourceLimit.' . ($depth2 + 1) . '.Cpus'] = $depth2Value['Cpus']; |
3002
|
|
|
} |
3003
|
|
|
if(isset($depth2Value['User'])){ |
3004
|
|
|
$this->options['query']['PbsInfo.' . ($depth1 + 1) . '.ResourceLimit.' . ($depth2 + 1) . '.User'] = $depth2Value['User']; |
3005
|
|
|
} |
3006
|
|
|
if(isset($depth2Value['Queue'])){ |
3007
|
|
|
$this->options['query']['PbsInfo.' . ($depth1 + 1) . '.ResourceLimit.' . ($depth2 + 1) . '.Queue'] = $depth2Value['Queue']; |
3008
|
|
|
} |
3009
|
|
|
} |
3010
|
|
|
if(isset($depth1Value['SchedMaxQueuedJobs'])){ |
3011
|
|
|
$this->options['query']['PbsInfo.' . ($depth1 + 1) . '.SchedMaxQueuedJobs'] = $depth1Value['SchedMaxQueuedJobs']; |
3012
|
|
|
} |
3013
|
|
|
if(isset($depth1Value['JobHistoryDuration'])){ |
3014
|
|
|
$this->options['query']['PbsInfo.' . ($depth1 + 1) . '.JobHistoryDuration'] = $depth1Value['JobHistoryDuration']; |
3015
|
|
|
} |
3016
|
|
|
} |
3017
|
|
|
|
3018
|
|
|
return $this; |
3019
|
|
|
} |
3020
|
|
|
} |
3021
|
|
|
|
3022
|
|
|
/** |
3023
|
|
|
* @method string getClusterId() |
3024
|
|
|
* @method $this withClusterId($value) |
3025
|
|
|
*/ |
3026
|
|
|
class StartCluster extends Rpc |
3027
|
|
|
{ |
3028
|
|
|
} |
3029
|
|
|
|
3030
|
|
|
/** |
3031
|
|
|
* @method string getInstanceId() |
3032
|
|
|
* @method $this withInstanceId($value) |
3033
|
|
|
*/ |
3034
|
|
|
class StartGWSInstance extends Rpc |
3035
|
|
|
{ |
3036
|
|
|
} |
3037
|
|
|
|
3038
|
|
|
/** |
3039
|
|
|
* @method string getRole() |
3040
|
|
|
* @method $this withRole($value) |
3041
|
|
|
* @method array getInstance() |
3042
|
|
|
* @method string getClusterId() |
3043
|
|
|
* @method $this withClusterId($value) |
3044
|
|
|
*/ |
3045
|
|
|
class StartNodes extends Rpc |
3046
|
|
|
{ |
3047
|
|
|
|
3048
|
|
|
/** |
3049
|
|
|
* @param array $instance |
3050
|
|
|
* |
3051
|
|
|
* @return $this |
3052
|
|
|
*/ |
3053
|
|
|
public function withInstance(array $instance) |
3054
|
|
|
{ |
3055
|
|
|
$this->data['Instance'] = $instance; |
3056
|
|
|
foreach ($instance as $depth1 => $depth1Value) { |
3057
|
|
|
if(isset($depth1Value['Id'])){ |
3058
|
|
|
$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id']; |
3059
|
|
|
} |
3060
|
|
|
} |
3061
|
|
|
|
3062
|
|
|
return $this; |
3063
|
|
|
} |
3064
|
|
|
} |
3065
|
|
|
|
3066
|
|
|
/** |
3067
|
|
|
* @method string getClusterId() |
3068
|
|
|
* @method $this withClusterId($value) |
3069
|
|
|
* @method string getPort() |
3070
|
|
|
* @method $this withPort($value) |
3071
|
|
|
* @method string getCidrIp() |
3072
|
|
|
* @method $this withCidrIp($value) |
3073
|
|
|
*/ |
3074
|
|
|
class StartVisualService extends Rpc |
3075
|
|
|
{ |
3076
|
|
|
} |
3077
|
|
|
|
3078
|
|
|
/** |
3079
|
|
|
* @method string getClusterId() |
3080
|
|
|
* @method $this withClusterId($value) |
3081
|
|
|
*/ |
3082
|
|
|
class StopCluster extends Rpc |
3083
|
|
|
{ |
3084
|
|
|
} |
3085
|
|
|
|
3086
|
|
|
/** |
3087
|
|
|
* @method string getInstanceId() |
3088
|
|
|
* @method $this withInstanceId($value) |
3089
|
|
|
*/ |
3090
|
|
|
class StopGWSInstance extends Rpc |
3091
|
|
|
{ |
3092
|
|
|
} |
3093
|
|
|
|
3094
|
|
|
/** |
3095
|
|
|
* @method string getJobs() |
3096
|
|
|
* @method $this withJobs($value) |
3097
|
|
|
* @method string getClusterId() |
3098
|
|
|
* @method $this withClusterId($value) |
3099
|
|
|
* @method string getAsync() |
3100
|
|
|
* @method $this withAsync($value) |
3101
|
|
|
*/ |
3102
|
|
|
class StopJobs extends Rpc |
3103
|
|
|
{ |
3104
|
|
|
} |
3105
|
|
|
|
3106
|
|
|
/** |
3107
|
|
|
* @method string getRole() |
3108
|
|
|
* @method $this withRole($value) |
3109
|
|
|
* @method array getInstance() |
3110
|
|
|
* @method string getClusterId() |
3111
|
|
|
* @method $this withClusterId($value) |
3112
|
|
|
*/ |
3113
|
|
|
class StopNodes extends Rpc |
3114
|
|
|
{ |
3115
|
|
|
|
3116
|
|
|
/** |
3117
|
|
|
* @param array $instance |
3118
|
|
|
* |
3119
|
|
|
* @return $this |
3120
|
|
|
*/ |
3121
|
|
|
public function withInstance(array $instance) |
3122
|
|
|
{ |
3123
|
|
|
$this->data['Instance'] = $instance; |
3124
|
|
|
foreach ($instance as $depth1 => $depth1Value) { |
3125
|
|
|
if(isset($depth1Value['Id'])){ |
3126
|
|
|
$this->options['query']['Instance.' . ($depth1 + 1) . '.Id'] = $depth1Value['Id']; |
3127
|
|
|
} |
3128
|
|
|
} |
3129
|
|
|
|
3130
|
|
|
return $this; |
3131
|
|
|
} |
3132
|
|
|
} |
3133
|
|
|
|
3134
|
|
|
/** |
3135
|
|
|
* @method string getClusterId() |
3136
|
|
|
* @method $this withClusterId($value) |
3137
|
|
|
* @method string getJobIds() |
3138
|
|
|
* @method $this withJobIds($value) |
3139
|
|
|
*/ |
3140
|
|
|
class StopServerlessJobs extends Rpc |
3141
|
|
|
{ |
3142
|
|
|
|
3143
|
|
|
/** @var string */ |
3144
|
|
|
public $method = 'POST'; |
3145
|
|
|
} |
3146
|
|
|
|
3147
|
|
|
/** |
3148
|
|
|
* @method string getClusterId() |
3149
|
|
|
* @method $this withClusterId($value) |
3150
|
|
|
* @method string getPort() |
3151
|
|
|
* @method $this withPort($value) |
3152
|
|
|
* @method string getCidrIp() |
3153
|
|
|
* @method $this withCidrIp($value) |
3154
|
|
|
*/ |
3155
|
|
|
class StopVisualService extends Rpc |
3156
|
|
|
{ |
3157
|
|
|
} |
3158
|
|
|
|
3159
|
|
|
/** |
3160
|
|
|
* @method string getStderrRedirectPath() |
3161
|
|
|
* @method $this withStderrRedirectPath($value) |
3162
|
|
|
* @method string getRunasUserPassword() |
3163
|
|
|
* @method $this withRunasUserPassword($value) |
3164
|
|
|
* @method string getClockTime() |
3165
|
|
|
* @method $this withClockTime($value) |
3166
|
|
|
* @method string getJobRetryPriority() |
3167
|
|
|
* @method string getCommandLine() |
3168
|
|
|
* @method $this withCommandLine($value) |
3169
|
|
|
* @method string getJobQueue() |
3170
|
|
|
* @method $this withJobQueue($value) |
3171
|
|
|
* @method string getArrayRequest() |
3172
|
|
|
* @method $this withArrayRequest($value) |
3173
|
|
|
* @method string getUnzipCmd() |
3174
|
|
|
* @method $this withUnzipCmd($value) |
3175
|
|
|
* @method string getPackagePath() |
3176
|
|
|
* @method $this withPackagePath($value) |
3177
|
|
|
* @method string getMem() |
3178
|
|
|
* @method $this withMem($value) |
3179
|
|
|
* @method string getJobRetryCount() |
3180
|
|
|
* @method string getStdoutRedirectPath() |
3181
|
|
|
* @method $this withStdoutRedirectPath($value) |
3182
|
|
|
* @method string getVariables() |
3183
|
|
|
* @method $this withVariables($value) |
3184
|
|
|
* @method string getPostCmdLine() |
3185
|
|
|
* @method $this withPostCmdLine($value) |
3186
|
|
|
* @method string getRunasUser() |
3187
|
|
|
* @method $this withRunasUser($value) |
3188
|
|
|
* @method string getCpu() |
3189
|
|
|
* @method $this withCpu($value) |
3190
|
|
|
* @method string getClusterId() |
3191
|
|
|
* @method $this withClusterId($value) |
3192
|
|
|
* @method string getReRunable() |
3193
|
|
|
* @method $this withReRunable($value) |
3194
|
|
|
* @method string getThread() |
3195
|
|
|
* @method $this withThread($value) |
3196
|
|
|
* @method string getPriority() |
3197
|
|
|
* @method $this withPriority($value) |
3198
|
|
|
* @method string getGpu() |
3199
|
|
|
* @method $this withGpu($value) |
3200
|
|
|
* @method string getJobRetryOnExitCode() |
3201
|
|
|
* @method string getNode() |
3202
|
|
|
* @method $this withNode($value) |
3203
|
|
|
* @method string getAsync() |
3204
|
|
|
* @method $this withAsync($value) |
3205
|
|
|
* @method string getTask() |
3206
|
|
|
* @method $this withTask($value) |
3207
|
|
|
* @method string getInputFileUrl() |
3208
|
|
|
* @method $this withInputFileUrl($value) |
3209
|
|
|
* @method string getName() |
3210
|
|
|
* @method $this withName($value) |
3211
|
|
|
* @method string getContainerId() |
3212
|
|
|
* @method $this withContainerId($value) |
3213
|
|
|
*/ |
3214
|
|
|
class SubmitJob extends Rpc |
3215
|
|
|
{ |
3216
|
|
|
|
3217
|
|
|
/** |
3218
|
|
|
* @param string $value |
3219
|
|
|
* |
3220
|
|
|
* @return $this |
3221
|
|
|
*/ |
3222
|
|
|
public function withJobRetryPriority($value) |
3223
|
|
|
{ |
3224
|
|
|
$this->data['JobRetryPriority'] = $value; |
3225
|
|
|
$this->options['query']['JobRetry.Priority'] = $value; |
3226
|
|
|
|
3227
|
|
|
return $this; |
3228
|
|
|
} |
3229
|
|
|
|
3230
|
|
|
/** |
3231
|
|
|
* @param string $value |
3232
|
|
|
* |
3233
|
|
|
* @return $this |
3234
|
|
|
*/ |
3235
|
|
|
public function withJobRetryCount($value) |
3236
|
|
|
{ |
3237
|
|
|
$this->data['JobRetryCount'] = $value; |
3238
|
|
|
$this->options['query']['JobRetry.Count'] = $value; |
3239
|
|
|
|
3240
|
|
|
return $this; |
3241
|
|
|
} |
3242
|
|
|
|
3243
|
|
|
/** |
3244
|
|
|
* @param string $value |
3245
|
|
|
* |
3246
|
|
|
* @return $this |
3247
|
|
|
*/ |
3248
|
|
|
public function withJobRetryOnExitCode($value) |
3249
|
|
|
{ |
3250
|
|
|
$this->data['JobRetryOnExitCode'] = $value; |
3251
|
|
|
$this->options['query']['JobRetry.OnExitCode'] = $value; |
3252
|
|
|
|
3253
|
|
|
return $this; |
3254
|
|
|
} |
3255
|
|
|
} |
3256
|
|
|
|
3257
|
|
|
/** |
3258
|
|
|
* @method string getContainer() |
3259
|
|
|
* @method $this withContainer($value) |
3260
|
|
|
* @method string getMemory() |
3261
|
|
|
* @method $this withMemory($value) |
3262
|
|
|
* @method string getDependsOn() |
3263
|
|
|
* @method $this withDependsOn($value) |
3264
|
|
|
* @method string getSpotPriceLimit() |
3265
|
|
|
* @method $this withSpotPriceLimit($value) |
3266
|
|
|
* @method string getJobQueue() |
3267
|
|
|
* @method $this withJobQueue($value) |
3268
|
|
|
* @method string getTimeout() |
3269
|
|
|
* @method $this withTimeout($value) |
3270
|
|
|
* @method string getJobUser() |
3271
|
|
|
* @method $this withJobUser($value) |
3272
|
|
|
* @method string getInstanceType() |
3273
|
|
|
* @method $this withInstanceType($value) |
3274
|
|
|
* @method string getJobName() |
3275
|
|
|
* @method $this withJobName($value) |
3276
|
|
|
* @method string getJobPriority() |
3277
|
|
|
* @method $this withJobPriority($value) |
3278
|
|
|
* @method string getCpu() |
3279
|
|
|
* @method $this withCpu($value) |
3280
|
|
|
* @method string getRamRoleName() |
3281
|
|
|
* @method $this withRamRoleName($value) |
3282
|
|
|
* @method string getAcrRegistryInfo() |
3283
|
|
|
* @method $this withAcrRegistryInfo($value) |
3284
|
|
|
* @method string getClusterId() |
3285
|
|
|
* @method $this withClusterId($value) |
3286
|
|
|
* @method string getSpotStrategy() |
3287
|
|
|
* @method $this withSpotStrategy($value) |
3288
|
|
|
* @method string getVSwitchId() |
3289
|
|
|
* @method $this withVSwitchId($value) |
3290
|
|
|
* @method string getVolume() |
3291
|
|
|
* @method $this withVolume($value) |
3292
|
|
|
* @method string getRetryStrategy() |
3293
|
|
|
* @method $this withRetryStrategy($value) |
3294
|
|
|
* @method string getEphemeralStorage() |
3295
|
|
|
* @method $this withEphemeralStorage($value) |
3296
|
|
|
* @method string getArrayProperties() |
3297
|
|
|
* @method $this withArrayProperties($value) |
3298
|
|
|
*/ |
3299
|
|
|
class SubmitServerlessJob extends Rpc |
3300
|
|
|
{ |
3301
|
|
|
|
3302
|
|
|
/** @var string */ |
3303
|
|
|
public $method = 'POST'; |
3304
|
|
|
} |
3305
|
|
|
|
3306
|
|
|
/** |
3307
|
|
|
* @method string getClusterId() |
3308
|
|
|
* @method $this withClusterId($value) |
3309
|
|
|
* @method string getContainerType() |
3310
|
|
|
* @method $this withContainerType($value) |
3311
|
|
|
*/ |
3312
|
|
|
class SummaryImages extends Rpc |
3313
|
|
|
{ |
3314
|
|
|
} |
3315
|
|
|
|
3316
|
|
|
/** |
3317
|
|
|
* @method string getClusterId() |
3318
|
|
|
* @method $this withClusterId($value) |
3319
|
|
|
* @method string getContainerType() |
3320
|
|
|
* @method $this withContainerType($value) |
3321
|
|
|
* @method string getImageName() |
3322
|
|
|
* @method $this withImageName($value) |
3323
|
|
|
*/ |
3324
|
|
|
class SummaryImagesInfo extends Rpc |
3325
|
|
|
{ |
3326
|
|
|
} |
3327
|
|
|
|
3328
|
|
|
/** |
3329
|
|
|
* @method string getClusterId() |
3330
|
|
|
* @method $this withClusterId($value) |
3331
|
|
|
*/ |
3332
|
|
|
class SyncUsers extends Rpc |
3333
|
|
|
{ |
3334
|
|
|
} |
3335
|
|
|
|
3336
|
|
|
/** |
3337
|
|
|
* @method array getResourceId() |
3338
|
|
|
* @method string getResourceType() |
3339
|
|
|
* @method $this withResourceType($value) |
3340
|
|
|
* @method array getTag() |
3341
|
|
|
*/ |
3342
|
|
|
class TagResources extends Rpc |
3343
|
|
|
{ |
3344
|
|
|
|
3345
|
|
|
/** @var string */ |
3346
|
|
|
public $method = 'POST'; |
3347
|
|
|
|
3348
|
|
|
/** |
3349
|
|
|
* @param array $resourceId |
3350
|
|
|
* |
3351
|
|
|
* @return $this |
3352
|
|
|
*/ |
3353
|
|
|
public function withResourceId(array $resourceId) |
3354
|
|
|
{ |
3355
|
|
|
$this->data['ResourceId'] = $resourceId; |
3356
|
|
|
foreach ($resourceId as $i => $iValue) { |
3357
|
|
|
$this->options['query']['ResourceId.' . ($i + 1)] = $iValue; |
3358
|
|
|
} |
3359
|
|
|
|
3360
|
|
|
return $this; |
3361
|
|
|
} |
3362
|
|
|
|
3363
|
|
|
/** |
3364
|
|
|
* @param array $tag |
3365
|
|
|
* |
3366
|
|
|
* @return $this |
3367
|
|
|
*/ |
3368
|
|
|
public function withTag(array $tag) |
3369
|
|
|
{ |
3370
|
|
|
$this->data['Tag'] = $tag; |
3371
|
|
|
foreach ($tag as $depth1 => $depth1Value) { |
3372
|
|
|
if(isset($depth1Value['Value'])){ |
3373
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value']; |
3374
|
|
|
} |
3375
|
|
|
if(isset($depth1Value['Key'])){ |
3376
|
|
|
$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key']; |
3377
|
|
|
} |
3378
|
|
|
} |
3379
|
|
|
|
3380
|
|
|
return $this; |
3381
|
|
|
} |
3382
|
|
|
} |
3383
|
|
|
|
3384
|
|
|
/** |
3385
|
|
|
* @method string getClusterId() |
3386
|
|
|
* @method $this withClusterId($value) |
3387
|
|
|
* @method string getApplication() |
3388
|
|
|
* @method $this withApplication($value) |
3389
|
|
|
*/ |
3390
|
|
|
class UninstallSoftware extends Rpc |
3391
|
|
|
{ |
3392
|
|
|
} |
3393
|
|
|
|
3394
|
|
|
/** |
3395
|
|
|
* @method string getAll() |
3396
|
|
|
* @method $this withAll($value) |
3397
|
|
|
* @method array getResourceId() |
3398
|
|
|
* @method string getResourceType() |
3399
|
|
|
* @method $this withResourceType($value) |
3400
|
|
|
* @method array getTagKey() |
3401
|
|
|
*/ |
3402
|
|
|
class UnTagResources extends Rpc |
3403
|
|
|
{ |
3404
|
|
|
|
3405
|
|
|
/** @var string */ |
3406
|
|
|
public $method = 'POST'; |
3407
|
|
|
|
3408
|
|
|
/** |
3409
|
|
|
* @param array $resourceId |
3410
|
|
|
* |
3411
|
|
|
* @return $this |
3412
|
|
|
*/ |
3413
|
|
|
public function withResourceId(array $resourceId) |
3414
|
|
|
{ |
3415
|
|
|
$this->data['ResourceId'] = $resourceId; |
3416
|
|
|
foreach ($resourceId as $i => $iValue) { |
3417
|
|
|
$this->options['query']['ResourceId.' . ($i + 1)] = $iValue; |
3418
|
|
|
} |
3419
|
|
|
|
3420
|
|
|
return $this; |
3421
|
|
|
} |
3422
|
|
|
|
3423
|
|
|
/** |
3424
|
|
|
* @param array $tagKey |
3425
|
|
|
* |
3426
|
|
|
* @return $this |
3427
|
|
|
*/ |
3428
|
|
|
public function withTagKey(array $tagKey) |
3429
|
|
|
{ |
3430
|
|
|
$this->data['TagKey'] = $tagKey; |
3431
|
|
|
foreach ($tagKey as $i => $iValue) { |
3432
|
|
|
$this->options['query']['TagKey.' . ($i + 1)] = $iValue; |
3433
|
|
|
} |
3434
|
|
|
|
3435
|
|
|
return $this; |
3436
|
|
|
} |
3437
|
|
|
} |
3438
|
|
|
|
3439
|
|
|
/** |
3440
|
|
|
* @method array getAdditionalVolumes() |
3441
|
|
|
* @method string getClusterId() |
3442
|
|
|
* @method $this withClusterId($value) |
3443
|
|
|
*/ |
3444
|
|
|
class UpdateClusterVolumes extends Rpc |
3445
|
|
|
{ |
3446
|
|
|
|
3447
|
|
|
/** |
3448
|
|
|
* @param array $additionalVolumes |
3449
|
|
|
* |
3450
|
|
|
* @return $this |
3451
|
|
|
*/ |
3452
|
|
|
public function withAdditionalVolumes(array $additionalVolumes) |
3453
|
|
|
{ |
3454
|
|
|
$this->data['AdditionalVolumes'] = $additionalVolumes; |
3455
|
|
|
foreach ($additionalVolumes as $depth1 => $depth1Value) { |
3456
|
|
|
if(isset($depth1Value['VolumeType'])){ |
3457
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeType'] = $depth1Value['VolumeType']; |
3458
|
|
|
} |
3459
|
|
|
if(isset($depth1Value['VolumeProtocol'])){ |
3460
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeProtocol'] = $depth1Value['VolumeProtocol']; |
3461
|
|
|
} |
3462
|
|
|
if(isset($depth1Value['VolumeMountOption'])){ |
3463
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeMountOption'] = $depth1Value['VolumeMountOption']; |
3464
|
|
|
} |
3465
|
|
|
if(isset($depth1Value['LocalDirectory'])){ |
3466
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.LocalDirectory'] = $depth1Value['LocalDirectory']; |
3467
|
|
|
} |
3468
|
|
|
if(isset($depth1Value['RemoteDirectory'])){ |
3469
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.RemoteDirectory'] = $depth1Value['RemoteDirectory']; |
3470
|
|
|
} |
3471
|
|
|
foreach ($depth1Value['Roles'] as $depth2 => $depth2Value) { |
3472
|
|
|
if(isset($depth2Value['Name'])){ |
3473
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.Roles.' . ($depth2 + 1) . '.Name'] = $depth2Value['Name']; |
3474
|
|
|
} |
3475
|
|
|
} |
3476
|
|
|
if(isset($depth1Value['VolumeId'])){ |
3477
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeId'] = $depth1Value['VolumeId']; |
3478
|
|
|
} |
3479
|
|
|
if(isset($depth1Value['VolumeMountpoint'])){ |
3480
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.VolumeMountpoint'] = $depth1Value['VolumeMountpoint']; |
3481
|
|
|
} |
3482
|
|
|
if(isset($depth1Value['Location'])){ |
3483
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.Location'] = $depth1Value['Location']; |
3484
|
|
|
} |
3485
|
|
|
if(isset($depth1Value['JobQueue'])){ |
3486
|
|
|
$this->options['query']['AdditionalVolumes.' . ($depth1 + 1) . '.JobQueue'] = $depth1Value['JobQueue']; |
3487
|
|
|
} |
3488
|
|
|
} |
3489
|
|
|
|
3490
|
|
|
return $this; |
3491
|
|
|
} |
3492
|
|
|
} |
3493
|
|
|
|
3494
|
|
|
/** |
3495
|
|
|
* @method string getDeploymentSetId() |
3496
|
|
|
* @method $this withDeploymentSetId($value) |
3497
|
|
|
* @method string getQueueName() |
3498
|
|
|
* @method $this withQueueName($value) |
3499
|
|
|
* @method string getClusterId() |
3500
|
|
|
* @method $this withClusterId($value) |
3501
|
|
|
* @method string getNetworkInterfaceTrafficMode() |
3502
|
|
|
* @method $this withNetworkInterfaceTrafficMode($value) |
3503
|
|
|
* @method string getResourceGroupId() |
3504
|
|
|
* @method $this withResourceGroupId($value) |
3505
|
|
|
* @method string getComputeInstanceType() |
3506
|
|
|
* @method $this withComputeInstanceType($value) |
3507
|
|
|
*/ |
3508
|
|
|
class UpdateQueueConfig extends Rpc |
3509
|
|
|
{ |
3510
|
|
|
} |
3511
|
|
|
|
3512
|
|
|
/** |
3513
|
|
|
* @method string getClientVersion() |
3514
|
|
|
* @method $this withClientVersion($value) |
3515
|
|
|
* @method string getClusterId() |
3516
|
|
|
* @method $this withClusterId($value) |
3517
|
|
|
*/ |
3518
|
|
|
class UpgradeClient extends Rpc |
3519
|
|
|
{ |
3520
|
|
|
} |
3521
|
|
|
|