alibabacloud-ehpcinstant20230701 1.1.1__py3-none-any.whl → 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of alibabacloud-ehpcinstant20230701 might be problematic. Click here for more details.
- alibabacloud_ehpcinstant20230701/__init__.py +1 -1
- alibabacloud_ehpcinstant20230701/client.py +1024 -120
- alibabacloud_ehpcinstant20230701/models.py +1415 -116
- {alibabacloud_ehpcinstant20230701-1.1.1.dist-info → alibabacloud_ehpcinstant20230701-2.0.0.dist-info}/METADATA +1 -1
- alibabacloud_ehpcinstant20230701-2.0.0.dist-info/RECORD +8 -0
- alibabacloud_ehpcinstant20230701-1.1.1.dist-info/RECORD +0 -8
- {alibabacloud_ehpcinstant20230701-1.1.1.dist-info → alibabacloud_ehpcinstant20230701-2.0.0.dist-info}/LICENSE +0 -0
- {alibabacloud_ehpcinstant20230701-1.1.1.dist-info → alibabacloud_ehpcinstant20230701-2.0.0.dist-info}/WHEEL +0 -0
- {alibabacloud_ehpcinstant20230701-1.1.1.dist-info → alibabacloud_ehpcinstant20230701-2.0.0.dist-info}/top_level.txt +0 -0
|
@@ -87,10 +87,16 @@ class Client(OpenApiClient):
|
|
|
87
87
|
req_body_type='formData',
|
|
88
88
|
body_type='json'
|
|
89
89
|
)
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
91
|
+
return TeaCore.from_map(
|
|
92
|
+
ehpc_instant_20230701_models.AddImageResponse(),
|
|
93
|
+
self.call_api(params, req, runtime)
|
|
94
|
+
)
|
|
95
|
+
else:
|
|
96
|
+
return TeaCore.from_map(
|
|
97
|
+
ehpc_instant_20230701_models.AddImageResponse(),
|
|
98
|
+
self.execute(params, req, runtime)
|
|
99
|
+
)
|
|
94
100
|
|
|
95
101
|
async def add_image_with_options_async(
|
|
96
102
|
self,
|
|
@@ -138,10 +144,16 @@ class Client(OpenApiClient):
|
|
|
138
144
|
req_body_type='formData',
|
|
139
145
|
body_type='json'
|
|
140
146
|
)
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
147
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
148
|
+
return TeaCore.from_map(
|
|
149
|
+
ehpc_instant_20230701_models.AddImageResponse(),
|
|
150
|
+
await self.call_api_async(params, req, runtime)
|
|
151
|
+
)
|
|
152
|
+
else:
|
|
153
|
+
return TeaCore.from_map(
|
|
154
|
+
ehpc_instant_20230701_models.AddImageResponse(),
|
|
155
|
+
await self.execute_async(params, req, runtime)
|
|
156
|
+
)
|
|
145
157
|
|
|
146
158
|
def add_image(
|
|
147
159
|
self,
|
|
@@ -186,6 +198,8 @@ class Client(OpenApiClient):
|
|
|
186
198
|
OpenApiUtilClient.convert(tmp_req, request)
|
|
187
199
|
if not UtilClient.is_unset(tmp_req.deployment_policy):
|
|
188
200
|
request.deployment_policy_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.deployment_policy, 'DeploymentPolicy', 'json')
|
|
201
|
+
if not UtilClient.is_unset(tmp_req.security_policy):
|
|
202
|
+
request.security_policy_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.security_policy, 'SecurityPolicy', 'json')
|
|
189
203
|
if not UtilClient.is_unset(tmp_req.tasks):
|
|
190
204
|
request.tasks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tasks, 'Tasks', 'json')
|
|
191
205
|
query = {}
|
|
@@ -197,6 +211,8 @@ class Client(OpenApiClient):
|
|
|
197
211
|
query['JobName'] = request.job_name
|
|
198
212
|
if not UtilClient.is_unset(request.job_scheduler):
|
|
199
213
|
query['JobScheduler'] = request.job_scheduler
|
|
214
|
+
if not UtilClient.is_unset(request.security_policy_shrink):
|
|
215
|
+
query['SecurityPolicy'] = request.security_policy_shrink
|
|
200
216
|
if not UtilClient.is_unset(request.tasks_shrink):
|
|
201
217
|
query['Tasks'] = request.tasks_shrink
|
|
202
218
|
req = open_api_models.OpenApiRequest(
|
|
@@ -213,10 +229,16 @@ class Client(OpenApiClient):
|
|
|
213
229
|
req_body_type='formData',
|
|
214
230
|
body_type='json'
|
|
215
231
|
)
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
232
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
233
|
+
return TeaCore.from_map(
|
|
234
|
+
ehpc_instant_20230701_models.CreateJobResponse(),
|
|
235
|
+
self.call_api(params, req, runtime)
|
|
236
|
+
)
|
|
237
|
+
else:
|
|
238
|
+
return TeaCore.from_map(
|
|
239
|
+
ehpc_instant_20230701_models.CreateJobResponse(),
|
|
240
|
+
self.execute(params, req, runtime)
|
|
241
|
+
)
|
|
220
242
|
|
|
221
243
|
async def create_job_with_options_async(
|
|
222
244
|
self,
|
|
@@ -235,6 +257,8 @@ class Client(OpenApiClient):
|
|
|
235
257
|
OpenApiUtilClient.convert(tmp_req, request)
|
|
236
258
|
if not UtilClient.is_unset(tmp_req.deployment_policy):
|
|
237
259
|
request.deployment_policy_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.deployment_policy, 'DeploymentPolicy', 'json')
|
|
260
|
+
if not UtilClient.is_unset(tmp_req.security_policy):
|
|
261
|
+
request.security_policy_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.security_policy, 'SecurityPolicy', 'json')
|
|
238
262
|
if not UtilClient.is_unset(tmp_req.tasks):
|
|
239
263
|
request.tasks_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tasks, 'Tasks', 'json')
|
|
240
264
|
query = {}
|
|
@@ -246,6 +270,8 @@ class Client(OpenApiClient):
|
|
|
246
270
|
query['JobName'] = request.job_name
|
|
247
271
|
if not UtilClient.is_unset(request.job_scheduler):
|
|
248
272
|
query['JobScheduler'] = request.job_scheduler
|
|
273
|
+
if not UtilClient.is_unset(request.security_policy_shrink):
|
|
274
|
+
query['SecurityPolicy'] = request.security_policy_shrink
|
|
249
275
|
if not UtilClient.is_unset(request.tasks_shrink):
|
|
250
276
|
query['Tasks'] = request.tasks_shrink
|
|
251
277
|
req = open_api_models.OpenApiRequest(
|
|
@@ -262,10 +288,16 @@ class Client(OpenApiClient):
|
|
|
262
288
|
req_body_type='formData',
|
|
263
289
|
body_type='json'
|
|
264
290
|
)
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
291
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
292
|
+
return TeaCore.from_map(
|
|
293
|
+
ehpc_instant_20230701_models.CreateJobResponse(),
|
|
294
|
+
await self.call_api_async(params, req, runtime)
|
|
295
|
+
)
|
|
296
|
+
else:
|
|
297
|
+
return TeaCore.from_map(
|
|
298
|
+
ehpc_instant_20230701_models.CreateJobResponse(),
|
|
299
|
+
await self.execute_async(params, req, runtime)
|
|
300
|
+
)
|
|
269
301
|
|
|
270
302
|
def create_job(
|
|
271
303
|
self,
|
|
@@ -293,6 +325,130 @@ class Client(OpenApiClient):
|
|
|
293
325
|
runtime = util_models.RuntimeOptions()
|
|
294
326
|
return await self.create_job_with_options_async(request, runtime)
|
|
295
327
|
|
|
328
|
+
def create_pool_with_options(
|
|
329
|
+
self,
|
|
330
|
+
tmp_req: ehpc_instant_20230701_models.CreatePoolRequest,
|
|
331
|
+
runtime: util_models.RuntimeOptions,
|
|
332
|
+
) -> ehpc_instant_20230701_models.CreatePoolResponse:
|
|
333
|
+
"""
|
|
334
|
+
@summary 创建资源池
|
|
335
|
+
|
|
336
|
+
@param tmp_req: CreatePoolRequest
|
|
337
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
338
|
+
@return: CreatePoolResponse
|
|
339
|
+
"""
|
|
340
|
+
UtilClient.validate_model(tmp_req)
|
|
341
|
+
request = ehpc_instant_20230701_models.CreatePoolShrinkRequest()
|
|
342
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
343
|
+
if not UtilClient.is_unset(tmp_req.resource_limits):
|
|
344
|
+
request.resource_limits_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.resource_limits, 'ResourceLimits', 'json')
|
|
345
|
+
query = {}
|
|
346
|
+
if not UtilClient.is_unset(request.pool_name):
|
|
347
|
+
query['PoolName'] = request.pool_name
|
|
348
|
+
if not UtilClient.is_unset(request.priority):
|
|
349
|
+
query['Priority'] = request.priority
|
|
350
|
+
if not UtilClient.is_unset(request.resource_limits_shrink):
|
|
351
|
+
query['ResourceLimits'] = request.resource_limits_shrink
|
|
352
|
+
req = open_api_models.OpenApiRequest(
|
|
353
|
+
query=OpenApiUtilClient.query(query)
|
|
354
|
+
)
|
|
355
|
+
params = open_api_models.Params(
|
|
356
|
+
action='CreatePool',
|
|
357
|
+
version='2023-07-01',
|
|
358
|
+
protocol='HTTPS',
|
|
359
|
+
pathname='/',
|
|
360
|
+
method='POST',
|
|
361
|
+
auth_type='AK',
|
|
362
|
+
style='RPC',
|
|
363
|
+
req_body_type='formData',
|
|
364
|
+
body_type='json'
|
|
365
|
+
)
|
|
366
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
367
|
+
return TeaCore.from_map(
|
|
368
|
+
ehpc_instant_20230701_models.CreatePoolResponse(),
|
|
369
|
+
self.call_api(params, req, runtime)
|
|
370
|
+
)
|
|
371
|
+
else:
|
|
372
|
+
return TeaCore.from_map(
|
|
373
|
+
ehpc_instant_20230701_models.CreatePoolResponse(),
|
|
374
|
+
self.execute(params, req, runtime)
|
|
375
|
+
)
|
|
376
|
+
|
|
377
|
+
async def create_pool_with_options_async(
|
|
378
|
+
self,
|
|
379
|
+
tmp_req: ehpc_instant_20230701_models.CreatePoolRequest,
|
|
380
|
+
runtime: util_models.RuntimeOptions,
|
|
381
|
+
) -> ehpc_instant_20230701_models.CreatePoolResponse:
|
|
382
|
+
"""
|
|
383
|
+
@summary 创建资源池
|
|
384
|
+
|
|
385
|
+
@param tmp_req: CreatePoolRequest
|
|
386
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
387
|
+
@return: CreatePoolResponse
|
|
388
|
+
"""
|
|
389
|
+
UtilClient.validate_model(tmp_req)
|
|
390
|
+
request = ehpc_instant_20230701_models.CreatePoolShrinkRequest()
|
|
391
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
392
|
+
if not UtilClient.is_unset(tmp_req.resource_limits):
|
|
393
|
+
request.resource_limits_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.resource_limits, 'ResourceLimits', 'json')
|
|
394
|
+
query = {}
|
|
395
|
+
if not UtilClient.is_unset(request.pool_name):
|
|
396
|
+
query['PoolName'] = request.pool_name
|
|
397
|
+
if not UtilClient.is_unset(request.priority):
|
|
398
|
+
query['Priority'] = request.priority
|
|
399
|
+
if not UtilClient.is_unset(request.resource_limits_shrink):
|
|
400
|
+
query['ResourceLimits'] = request.resource_limits_shrink
|
|
401
|
+
req = open_api_models.OpenApiRequest(
|
|
402
|
+
query=OpenApiUtilClient.query(query)
|
|
403
|
+
)
|
|
404
|
+
params = open_api_models.Params(
|
|
405
|
+
action='CreatePool',
|
|
406
|
+
version='2023-07-01',
|
|
407
|
+
protocol='HTTPS',
|
|
408
|
+
pathname='/',
|
|
409
|
+
method='POST',
|
|
410
|
+
auth_type='AK',
|
|
411
|
+
style='RPC',
|
|
412
|
+
req_body_type='formData',
|
|
413
|
+
body_type='json'
|
|
414
|
+
)
|
|
415
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
416
|
+
return TeaCore.from_map(
|
|
417
|
+
ehpc_instant_20230701_models.CreatePoolResponse(),
|
|
418
|
+
await self.call_api_async(params, req, runtime)
|
|
419
|
+
)
|
|
420
|
+
else:
|
|
421
|
+
return TeaCore.from_map(
|
|
422
|
+
ehpc_instant_20230701_models.CreatePoolResponse(),
|
|
423
|
+
await self.execute_async(params, req, runtime)
|
|
424
|
+
)
|
|
425
|
+
|
|
426
|
+
def create_pool(
|
|
427
|
+
self,
|
|
428
|
+
request: ehpc_instant_20230701_models.CreatePoolRequest,
|
|
429
|
+
) -> ehpc_instant_20230701_models.CreatePoolResponse:
|
|
430
|
+
"""
|
|
431
|
+
@summary 创建资源池
|
|
432
|
+
|
|
433
|
+
@param request: CreatePoolRequest
|
|
434
|
+
@return: CreatePoolResponse
|
|
435
|
+
"""
|
|
436
|
+
runtime = util_models.RuntimeOptions()
|
|
437
|
+
return self.create_pool_with_options(request, runtime)
|
|
438
|
+
|
|
439
|
+
async def create_pool_async(
|
|
440
|
+
self,
|
|
441
|
+
request: ehpc_instant_20230701_models.CreatePoolRequest,
|
|
442
|
+
) -> ehpc_instant_20230701_models.CreatePoolResponse:
|
|
443
|
+
"""
|
|
444
|
+
@summary 创建资源池
|
|
445
|
+
|
|
446
|
+
@param request: CreatePoolRequest
|
|
447
|
+
@return: CreatePoolResponse
|
|
448
|
+
"""
|
|
449
|
+
runtime = util_models.RuntimeOptions()
|
|
450
|
+
return await self.create_pool_with_options_async(request, runtime)
|
|
451
|
+
|
|
296
452
|
def delete_jobs_with_options(
|
|
297
453
|
self,
|
|
298
454
|
tmp_req: ehpc_instant_20230701_models.DeleteJobsRequest,
|
|
@@ -331,10 +487,16 @@ class Client(OpenApiClient):
|
|
|
331
487
|
req_body_type='formData',
|
|
332
488
|
body_type='json'
|
|
333
489
|
)
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
490
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
491
|
+
return TeaCore.from_map(
|
|
492
|
+
ehpc_instant_20230701_models.DeleteJobsResponse(),
|
|
493
|
+
self.call_api(params, req, runtime)
|
|
494
|
+
)
|
|
495
|
+
else:
|
|
496
|
+
return TeaCore.from_map(
|
|
497
|
+
ehpc_instant_20230701_models.DeleteJobsResponse(),
|
|
498
|
+
self.execute(params, req, runtime)
|
|
499
|
+
)
|
|
338
500
|
|
|
339
501
|
async def delete_jobs_with_options_async(
|
|
340
502
|
self,
|
|
@@ -374,10 +536,16 @@ class Client(OpenApiClient):
|
|
|
374
536
|
req_body_type='formData',
|
|
375
537
|
body_type='json'
|
|
376
538
|
)
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
539
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
540
|
+
return TeaCore.from_map(
|
|
541
|
+
ehpc_instant_20230701_models.DeleteJobsResponse(),
|
|
542
|
+
await self.call_api_async(params, req, runtime)
|
|
543
|
+
)
|
|
544
|
+
else:
|
|
545
|
+
return TeaCore.from_map(
|
|
546
|
+
ehpc_instant_20230701_models.DeleteJobsResponse(),
|
|
547
|
+
await self.execute_async(params, req, runtime)
|
|
548
|
+
)
|
|
381
549
|
|
|
382
550
|
def delete_jobs(
|
|
383
551
|
self,
|
|
@@ -405,6 +573,114 @@ class Client(OpenApiClient):
|
|
|
405
573
|
runtime = util_models.RuntimeOptions()
|
|
406
574
|
return await self.delete_jobs_with_options_async(request, runtime)
|
|
407
575
|
|
|
576
|
+
def delete_pool_with_options(
|
|
577
|
+
self,
|
|
578
|
+
request: ehpc_instant_20230701_models.DeletePoolRequest,
|
|
579
|
+
runtime: util_models.RuntimeOptions,
|
|
580
|
+
) -> ehpc_instant_20230701_models.DeletePoolResponse:
|
|
581
|
+
"""
|
|
582
|
+
@summary 删除资源池
|
|
583
|
+
|
|
584
|
+
@param request: DeletePoolRequest
|
|
585
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
586
|
+
@return: DeletePoolResponse
|
|
587
|
+
"""
|
|
588
|
+
UtilClient.validate_model(request)
|
|
589
|
+
query = {}
|
|
590
|
+
if not UtilClient.is_unset(request.pool_name):
|
|
591
|
+
query['PoolName'] = request.pool_name
|
|
592
|
+
req = open_api_models.OpenApiRequest(
|
|
593
|
+
query=OpenApiUtilClient.query(query)
|
|
594
|
+
)
|
|
595
|
+
params = open_api_models.Params(
|
|
596
|
+
action='DeletePool',
|
|
597
|
+
version='2023-07-01',
|
|
598
|
+
protocol='HTTPS',
|
|
599
|
+
pathname='/',
|
|
600
|
+
method='POST',
|
|
601
|
+
auth_type='AK',
|
|
602
|
+
style='RPC',
|
|
603
|
+
req_body_type='formData',
|
|
604
|
+
body_type='json'
|
|
605
|
+
)
|
|
606
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
607
|
+
return TeaCore.from_map(
|
|
608
|
+
ehpc_instant_20230701_models.DeletePoolResponse(),
|
|
609
|
+
self.call_api(params, req, runtime)
|
|
610
|
+
)
|
|
611
|
+
else:
|
|
612
|
+
return TeaCore.from_map(
|
|
613
|
+
ehpc_instant_20230701_models.DeletePoolResponse(),
|
|
614
|
+
self.execute(params, req, runtime)
|
|
615
|
+
)
|
|
616
|
+
|
|
617
|
+
async def delete_pool_with_options_async(
|
|
618
|
+
self,
|
|
619
|
+
request: ehpc_instant_20230701_models.DeletePoolRequest,
|
|
620
|
+
runtime: util_models.RuntimeOptions,
|
|
621
|
+
) -> ehpc_instant_20230701_models.DeletePoolResponse:
|
|
622
|
+
"""
|
|
623
|
+
@summary 删除资源池
|
|
624
|
+
|
|
625
|
+
@param request: DeletePoolRequest
|
|
626
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
627
|
+
@return: DeletePoolResponse
|
|
628
|
+
"""
|
|
629
|
+
UtilClient.validate_model(request)
|
|
630
|
+
query = {}
|
|
631
|
+
if not UtilClient.is_unset(request.pool_name):
|
|
632
|
+
query['PoolName'] = request.pool_name
|
|
633
|
+
req = open_api_models.OpenApiRequest(
|
|
634
|
+
query=OpenApiUtilClient.query(query)
|
|
635
|
+
)
|
|
636
|
+
params = open_api_models.Params(
|
|
637
|
+
action='DeletePool',
|
|
638
|
+
version='2023-07-01',
|
|
639
|
+
protocol='HTTPS',
|
|
640
|
+
pathname='/',
|
|
641
|
+
method='POST',
|
|
642
|
+
auth_type='AK',
|
|
643
|
+
style='RPC',
|
|
644
|
+
req_body_type='formData',
|
|
645
|
+
body_type='json'
|
|
646
|
+
)
|
|
647
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
648
|
+
return TeaCore.from_map(
|
|
649
|
+
ehpc_instant_20230701_models.DeletePoolResponse(),
|
|
650
|
+
await self.call_api_async(params, req, runtime)
|
|
651
|
+
)
|
|
652
|
+
else:
|
|
653
|
+
return TeaCore.from_map(
|
|
654
|
+
ehpc_instant_20230701_models.DeletePoolResponse(),
|
|
655
|
+
await self.execute_async(params, req, runtime)
|
|
656
|
+
)
|
|
657
|
+
|
|
658
|
+
def delete_pool(
|
|
659
|
+
self,
|
|
660
|
+
request: ehpc_instant_20230701_models.DeletePoolRequest,
|
|
661
|
+
) -> ehpc_instant_20230701_models.DeletePoolResponse:
|
|
662
|
+
"""
|
|
663
|
+
@summary 删除资源池
|
|
664
|
+
|
|
665
|
+
@param request: DeletePoolRequest
|
|
666
|
+
@return: DeletePoolResponse
|
|
667
|
+
"""
|
|
668
|
+
runtime = util_models.RuntimeOptions()
|
|
669
|
+
return self.delete_pool_with_options(request, runtime)
|
|
670
|
+
|
|
671
|
+
async def delete_pool_async(
|
|
672
|
+
self,
|
|
673
|
+
request: ehpc_instant_20230701_models.DeletePoolRequest,
|
|
674
|
+
) -> ehpc_instant_20230701_models.DeletePoolResponse:
|
|
675
|
+
"""
|
|
676
|
+
@summary 删除资源池
|
|
677
|
+
|
|
678
|
+
@param request: DeletePoolRequest
|
|
679
|
+
@return: DeletePoolResponse
|
|
680
|
+
"""
|
|
681
|
+
runtime = util_models.RuntimeOptions()
|
|
682
|
+
return await self.delete_pool_with_options_async(request, runtime)
|
|
683
|
+
|
|
408
684
|
def describe_job_metric_data_with_options(
|
|
409
685
|
self,
|
|
410
686
|
tmp_req: ehpc_instant_20230701_models.DescribeJobMetricDataRequest,
|
|
@@ -445,10 +721,16 @@ class Client(OpenApiClient):
|
|
|
445
721
|
req_body_type='formData',
|
|
446
722
|
body_type='json'
|
|
447
723
|
)
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
724
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
725
|
+
return TeaCore.from_map(
|
|
726
|
+
ehpc_instant_20230701_models.DescribeJobMetricDataResponse(),
|
|
727
|
+
self.call_api(params, req, runtime)
|
|
728
|
+
)
|
|
729
|
+
else:
|
|
730
|
+
return TeaCore.from_map(
|
|
731
|
+
ehpc_instant_20230701_models.DescribeJobMetricDataResponse(),
|
|
732
|
+
self.execute(params, req, runtime)
|
|
733
|
+
)
|
|
452
734
|
|
|
453
735
|
async def describe_job_metric_data_with_options_async(
|
|
454
736
|
self,
|
|
@@ -490,10 +772,16 @@ class Client(OpenApiClient):
|
|
|
490
772
|
req_body_type='formData',
|
|
491
773
|
body_type='json'
|
|
492
774
|
)
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
775
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
776
|
+
return TeaCore.from_map(
|
|
777
|
+
ehpc_instant_20230701_models.DescribeJobMetricDataResponse(),
|
|
778
|
+
await self.call_api_async(params, req, runtime)
|
|
779
|
+
)
|
|
780
|
+
else:
|
|
781
|
+
return TeaCore.from_map(
|
|
782
|
+
ehpc_instant_20230701_models.DescribeJobMetricDataResponse(),
|
|
783
|
+
await self.execute_async(params, req, runtime)
|
|
784
|
+
)
|
|
497
785
|
|
|
498
786
|
def describe_job_metric_data(
|
|
499
787
|
self,
|
|
@@ -559,10 +847,16 @@ class Client(OpenApiClient):
|
|
|
559
847
|
req_body_type='formData',
|
|
560
848
|
body_type='json'
|
|
561
849
|
)
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
850
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
851
|
+
return TeaCore.from_map(
|
|
852
|
+
ehpc_instant_20230701_models.DescribeJobMetricLastResponse(),
|
|
853
|
+
self.call_api(params, req, runtime)
|
|
854
|
+
)
|
|
855
|
+
else:
|
|
856
|
+
return TeaCore.from_map(
|
|
857
|
+
ehpc_instant_20230701_models.DescribeJobMetricLastResponse(),
|
|
858
|
+
self.execute(params, req, runtime)
|
|
859
|
+
)
|
|
566
860
|
|
|
567
861
|
async def describe_job_metric_last_with_options_async(
|
|
568
862
|
self,
|
|
@@ -602,10 +896,16 @@ class Client(OpenApiClient):
|
|
|
602
896
|
req_body_type='formData',
|
|
603
897
|
body_type='json'
|
|
604
898
|
)
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
899
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
900
|
+
return TeaCore.from_map(
|
|
901
|
+
ehpc_instant_20230701_models.DescribeJobMetricLastResponse(),
|
|
902
|
+
await self.call_api_async(params, req, runtime)
|
|
903
|
+
)
|
|
904
|
+
else:
|
|
905
|
+
return TeaCore.from_map(
|
|
906
|
+
ehpc_instant_20230701_models.DescribeJobMetricLastResponse(),
|
|
907
|
+
await self.execute_async(params, req, runtime)
|
|
908
|
+
)
|
|
609
909
|
|
|
610
910
|
def describe_job_metric_last(
|
|
611
911
|
self,
|
|
@@ -633,6 +933,130 @@ class Client(OpenApiClient):
|
|
|
633
933
|
runtime = util_models.RuntimeOptions()
|
|
634
934
|
return await self.describe_job_metric_last_with_options_async(request, runtime)
|
|
635
935
|
|
|
936
|
+
def get_app_versions_with_options(
|
|
937
|
+
self,
|
|
938
|
+
request: ehpc_instant_20230701_models.GetAppVersionsRequest,
|
|
939
|
+
runtime: util_models.RuntimeOptions,
|
|
940
|
+
) -> ehpc_instant_20230701_models.GetAppVersionsResponse:
|
|
941
|
+
"""
|
|
942
|
+
@summary 查看应用版本列表
|
|
943
|
+
|
|
944
|
+
@param request: GetAppVersionsRequest
|
|
945
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
946
|
+
@return: GetAppVersionsResponse
|
|
947
|
+
"""
|
|
948
|
+
UtilClient.validate_model(request)
|
|
949
|
+
query = {}
|
|
950
|
+
if not UtilClient.is_unset(request.app_name):
|
|
951
|
+
query['AppName'] = request.app_name
|
|
952
|
+
if not UtilClient.is_unset(request.image_category):
|
|
953
|
+
query['ImageCategory'] = request.image_category
|
|
954
|
+
if not UtilClient.is_unset(request.image_type):
|
|
955
|
+
query['ImageType'] = request.image_type
|
|
956
|
+
if not UtilClient.is_unset(request.page_number):
|
|
957
|
+
query['PageNumber'] = request.page_number
|
|
958
|
+
if not UtilClient.is_unset(request.page_size):
|
|
959
|
+
query['PageSize'] = request.page_size
|
|
960
|
+
req = open_api_models.OpenApiRequest(
|
|
961
|
+
query=OpenApiUtilClient.query(query)
|
|
962
|
+
)
|
|
963
|
+
params = open_api_models.Params(
|
|
964
|
+
action='GetAppVersions',
|
|
965
|
+
version='2023-07-01',
|
|
966
|
+
protocol='HTTPS',
|
|
967
|
+
pathname='/',
|
|
968
|
+
method='POST',
|
|
969
|
+
auth_type='AK',
|
|
970
|
+
style='RPC',
|
|
971
|
+
req_body_type='formData',
|
|
972
|
+
body_type='json'
|
|
973
|
+
)
|
|
974
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
975
|
+
return TeaCore.from_map(
|
|
976
|
+
ehpc_instant_20230701_models.GetAppVersionsResponse(),
|
|
977
|
+
self.call_api(params, req, runtime)
|
|
978
|
+
)
|
|
979
|
+
else:
|
|
980
|
+
return TeaCore.from_map(
|
|
981
|
+
ehpc_instant_20230701_models.GetAppVersionsResponse(),
|
|
982
|
+
self.execute(params, req, runtime)
|
|
983
|
+
)
|
|
984
|
+
|
|
985
|
+
async def get_app_versions_with_options_async(
|
|
986
|
+
self,
|
|
987
|
+
request: ehpc_instant_20230701_models.GetAppVersionsRequest,
|
|
988
|
+
runtime: util_models.RuntimeOptions,
|
|
989
|
+
) -> ehpc_instant_20230701_models.GetAppVersionsResponse:
|
|
990
|
+
"""
|
|
991
|
+
@summary 查看应用版本列表
|
|
992
|
+
|
|
993
|
+
@param request: GetAppVersionsRequest
|
|
994
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
995
|
+
@return: GetAppVersionsResponse
|
|
996
|
+
"""
|
|
997
|
+
UtilClient.validate_model(request)
|
|
998
|
+
query = {}
|
|
999
|
+
if not UtilClient.is_unset(request.app_name):
|
|
1000
|
+
query['AppName'] = request.app_name
|
|
1001
|
+
if not UtilClient.is_unset(request.image_category):
|
|
1002
|
+
query['ImageCategory'] = request.image_category
|
|
1003
|
+
if not UtilClient.is_unset(request.image_type):
|
|
1004
|
+
query['ImageType'] = request.image_type
|
|
1005
|
+
if not UtilClient.is_unset(request.page_number):
|
|
1006
|
+
query['PageNumber'] = request.page_number
|
|
1007
|
+
if not UtilClient.is_unset(request.page_size):
|
|
1008
|
+
query['PageSize'] = request.page_size
|
|
1009
|
+
req = open_api_models.OpenApiRequest(
|
|
1010
|
+
query=OpenApiUtilClient.query(query)
|
|
1011
|
+
)
|
|
1012
|
+
params = open_api_models.Params(
|
|
1013
|
+
action='GetAppVersions',
|
|
1014
|
+
version='2023-07-01',
|
|
1015
|
+
protocol='HTTPS',
|
|
1016
|
+
pathname='/',
|
|
1017
|
+
method='POST',
|
|
1018
|
+
auth_type='AK',
|
|
1019
|
+
style='RPC',
|
|
1020
|
+
req_body_type='formData',
|
|
1021
|
+
body_type='json'
|
|
1022
|
+
)
|
|
1023
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1024
|
+
return TeaCore.from_map(
|
|
1025
|
+
ehpc_instant_20230701_models.GetAppVersionsResponse(),
|
|
1026
|
+
await self.call_api_async(params, req, runtime)
|
|
1027
|
+
)
|
|
1028
|
+
else:
|
|
1029
|
+
return TeaCore.from_map(
|
|
1030
|
+
ehpc_instant_20230701_models.GetAppVersionsResponse(),
|
|
1031
|
+
await self.execute_async(params, req, runtime)
|
|
1032
|
+
)
|
|
1033
|
+
|
|
1034
|
+
def get_app_versions(
|
|
1035
|
+
self,
|
|
1036
|
+
request: ehpc_instant_20230701_models.GetAppVersionsRequest,
|
|
1037
|
+
) -> ehpc_instant_20230701_models.GetAppVersionsResponse:
|
|
1038
|
+
"""
|
|
1039
|
+
@summary 查看应用版本列表
|
|
1040
|
+
|
|
1041
|
+
@param request: GetAppVersionsRequest
|
|
1042
|
+
@return: GetAppVersionsResponse
|
|
1043
|
+
"""
|
|
1044
|
+
runtime = util_models.RuntimeOptions()
|
|
1045
|
+
return self.get_app_versions_with_options(request, runtime)
|
|
1046
|
+
|
|
1047
|
+
async def get_app_versions_async(
|
|
1048
|
+
self,
|
|
1049
|
+
request: ehpc_instant_20230701_models.GetAppVersionsRequest,
|
|
1050
|
+
) -> ehpc_instant_20230701_models.GetAppVersionsResponse:
|
|
1051
|
+
"""
|
|
1052
|
+
@summary 查看应用版本列表
|
|
1053
|
+
|
|
1054
|
+
@param request: GetAppVersionsRequest
|
|
1055
|
+
@return: GetAppVersionsResponse
|
|
1056
|
+
"""
|
|
1057
|
+
runtime = util_models.RuntimeOptions()
|
|
1058
|
+
return await self.get_app_versions_with_options_async(request, runtime)
|
|
1059
|
+
|
|
636
1060
|
def get_image_with_options(
|
|
637
1061
|
self,
|
|
638
1062
|
request: ehpc_instant_20230701_models.GetImageRequest,
|
|
@@ -667,10 +1091,16 @@ class Client(OpenApiClient):
|
|
|
667
1091
|
req_body_type='formData',
|
|
668
1092
|
body_type='json'
|
|
669
1093
|
)
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
1094
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1095
|
+
return TeaCore.from_map(
|
|
1096
|
+
ehpc_instant_20230701_models.GetImageResponse(),
|
|
1097
|
+
self.call_api(params, req, runtime)
|
|
1098
|
+
)
|
|
1099
|
+
else:
|
|
1100
|
+
return TeaCore.from_map(
|
|
1101
|
+
ehpc_instant_20230701_models.GetImageResponse(),
|
|
1102
|
+
self.execute(params, req, runtime)
|
|
1103
|
+
)
|
|
674
1104
|
|
|
675
1105
|
async def get_image_with_options_async(
|
|
676
1106
|
self,
|
|
@@ -706,10 +1136,16 @@ class Client(OpenApiClient):
|
|
|
706
1136
|
req_body_type='formData',
|
|
707
1137
|
body_type='json'
|
|
708
1138
|
)
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
1139
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1140
|
+
return TeaCore.from_map(
|
|
1141
|
+
ehpc_instant_20230701_models.GetImageResponse(),
|
|
1142
|
+
await self.call_api_async(params, req, runtime)
|
|
1143
|
+
)
|
|
1144
|
+
else:
|
|
1145
|
+
return TeaCore.from_map(
|
|
1146
|
+
ehpc_instant_20230701_models.GetImageResponse(),
|
|
1147
|
+
await self.execute_async(params, req, runtime)
|
|
1148
|
+
)
|
|
713
1149
|
|
|
714
1150
|
def get_image(
|
|
715
1151
|
self,
|
|
@@ -767,10 +1203,16 @@ class Client(OpenApiClient):
|
|
|
767
1203
|
req_body_type='formData',
|
|
768
1204
|
body_type='json'
|
|
769
1205
|
)
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
1206
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1207
|
+
return TeaCore.from_map(
|
|
1208
|
+
ehpc_instant_20230701_models.GetJobResponse(),
|
|
1209
|
+
self.call_api(params, req, runtime)
|
|
1210
|
+
)
|
|
1211
|
+
else:
|
|
1212
|
+
return TeaCore.from_map(
|
|
1213
|
+
ehpc_instant_20230701_models.GetJobResponse(),
|
|
1214
|
+
self.execute(params, req, runtime)
|
|
1215
|
+
)
|
|
774
1216
|
|
|
775
1217
|
async def get_job_with_options_async(
|
|
776
1218
|
self,
|
|
@@ -802,10 +1244,16 @@ class Client(OpenApiClient):
|
|
|
802
1244
|
req_body_type='formData',
|
|
803
1245
|
body_type='json'
|
|
804
1246
|
)
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
1247
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1248
|
+
return TeaCore.from_map(
|
|
1249
|
+
ehpc_instant_20230701_models.GetJobResponse(),
|
|
1250
|
+
await self.call_api_async(params, req, runtime)
|
|
1251
|
+
)
|
|
1252
|
+
else:
|
|
1253
|
+
return TeaCore.from_map(
|
|
1254
|
+
ehpc_instant_20230701_models.GetJobResponse(),
|
|
1255
|
+
await self.execute_async(params, req, runtime)
|
|
1256
|
+
)
|
|
809
1257
|
|
|
810
1258
|
def get_job(
|
|
811
1259
|
self,
|
|
@@ -833,6 +1281,114 @@ class Client(OpenApiClient):
|
|
|
833
1281
|
runtime = util_models.RuntimeOptions()
|
|
834
1282
|
return await self.get_job_with_options_async(request, runtime)
|
|
835
1283
|
|
|
1284
|
+
def get_pool_with_options(
|
|
1285
|
+
self,
|
|
1286
|
+
request: ehpc_instant_20230701_models.GetPoolRequest,
|
|
1287
|
+
runtime: util_models.RuntimeOptions,
|
|
1288
|
+
) -> ehpc_instant_20230701_models.GetPoolResponse:
|
|
1289
|
+
"""
|
|
1290
|
+
@summary 查询队列详细信息
|
|
1291
|
+
|
|
1292
|
+
@param request: GetPoolRequest
|
|
1293
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1294
|
+
@return: GetPoolResponse
|
|
1295
|
+
"""
|
|
1296
|
+
UtilClient.validate_model(request)
|
|
1297
|
+
query = {}
|
|
1298
|
+
if not UtilClient.is_unset(request.pool_name):
|
|
1299
|
+
query['PoolName'] = request.pool_name
|
|
1300
|
+
req = open_api_models.OpenApiRequest(
|
|
1301
|
+
query=OpenApiUtilClient.query(query)
|
|
1302
|
+
)
|
|
1303
|
+
params = open_api_models.Params(
|
|
1304
|
+
action='GetPool',
|
|
1305
|
+
version='2023-07-01',
|
|
1306
|
+
protocol='HTTPS',
|
|
1307
|
+
pathname='/',
|
|
1308
|
+
method='POST',
|
|
1309
|
+
auth_type='AK',
|
|
1310
|
+
style='RPC',
|
|
1311
|
+
req_body_type='formData',
|
|
1312
|
+
body_type='json'
|
|
1313
|
+
)
|
|
1314
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1315
|
+
return TeaCore.from_map(
|
|
1316
|
+
ehpc_instant_20230701_models.GetPoolResponse(),
|
|
1317
|
+
self.call_api(params, req, runtime)
|
|
1318
|
+
)
|
|
1319
|
+
else:
|
|
1320
|
+
return TeaCore.from_map(
|
|
1321
|
+
ehpc_instant_20230701_models.GetPoolResponse(),
|
|
1322
|
+
self.execute(params, req, runtime)
|
|
1323
|
+
)
|
|
1324
|
+
|
|
1325
|
+
async def get_pool_with_options_async(
|
|
1326
|
+
self,
|
|
1327
|
+
request: ehpc_instant_20230701_models.GetPoolRequest,
|
|
1328
|
+
runtime: util_models.RuntimeOptions,
|
|
1329
|
+
) -> ehpc_instant_20230701_models.GetPoolResponse:
|
|
1330
|
+
"""
|
|
1331
|
+
@summary 查询队列详细信息
|
|
1332
|
+
|
|
1333
|
+
@param request: GetPoolRequest
|
|
1334
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1335
|
+
@return: GetPoolResponse
|
|
1336
|
+
"""
|
|
1337
|
+
UtilClient.validate_model(request)
|
|
1338
|
+
query = {}
|
|
1339
|
+
if not UtilClient.is_unset(request.pool_name):
|
|
1340
|
+
query['PoolName'] = request.pool_name
|
|
1341
|
+
req = open_api_models.OpenApiRequest(
|
|
1342
|
+
query=OpenApiUtilClient.query(query)
|
|
1343
|
+
)
|
|
1344
|
+
params = open_api_models.Params(
|
|
1345
|
+
action='GetPool',
|
|
1346
|
+
version='2023-07-01',
|
|
1347
|
+
protocol='HTTPS',
|
|
1348
|
+
pathname='/',
|
|
1349
|
+
method='POST',
|
|
1350
|
+
auth_type='AK',
|
|
1351
|
+
style='RPC',
|
|
1352
|
+
req_body_type='formData',
|
|
1353
|
+
body_type='json'
|
|
1354
|
+
)
|
|
1355
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1356
|
+
return TeaCore.from_map(
|
|
1357
|
+
ehpc_instant_20230701_models.GetPoolResponse(),
|
|
1358
|
+
await self.call_api_async(params, req, runtime)
|
|
1359
|
+
)
|
|
1360
|
+
else:
|
|
1361
|
+
return TeaCore.from_map(
|
|
1362
|
+
ehpc_instant_20230701_models.GetPoolResponse(),
|
|
1363
|
+
await self.execute_async(params, req, runtime)
|
|
1364
|
+
)
|
|
1365
|
+
|
|
1366
|
+
def get_pool(
|
|
1367
|
+
self,
|
|
1368
|
+
request: ehpc_instant_20230701_models.GetPoolRequest,
|
|
1369
|
+
) -> ehpc_instant_20230701_models.GetPoolResponse:
|
|
1370
|
+
"""
|
|
1371
|
+
@summary 查询队列详细信息
|
|
1372
|
+
|
|
1373
|
+
@param request: GetPoolRequest
|
|
1374
|
+
@return: GetPoolResponse
|
|
1375
|
+
"""
|
|
1376
|
+
runtime = util_models.RuntimeOptions()
|
|
1377
|
+
return self.get_pool_with_options(request, runtime)
|
|
1378
|
+
|
|
1379
|
+
async def get_pool_async(
|
|
1380
|
+
self,
|
|
1381
|
+
request: ehpc_instant_20230701_models.GetPoolRequest,
|
|
1382
|
+
) -> ehpc_instant_20230701_models.GetPoolResponse:
|
|
1383
|
+
"""
|
|
1384
|
+
@summary 查询队列详细信息
|
|
1385
|
+
|
|
1386
|
+
@param request: GetPoolRequest
|
|
1387
|
+
@return: GetPoolResponse
|
|
1388
|
+
"""
|
|
1389
|
+
runtime = util_models.RuntimeOptions()
|
|
1390
|
+
return await self.get_pool_with_options_async(request, runtime)
|
|
1391
|
+
|
|
836
1392
|
def list_executors_with_options(
|
|
837
1393
|
self,
|
|
838
1394
|
tmp_req: ehpc_instant_20230701_models.ListExecutorsRequest,
|
|
@@ -871,10 +1427,16 @@ class Client(OpenApiClient):
|
|
|
871
1427
|
req_body_type='formData',
|
|
872
1428
|
body_type='json'
|
|
873
1429
|
)
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
1430
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1431
|
+
return TeaCore.from_map(
|
|
1432
|
+
ehpc_instant_20230701_models.ListExecutorsResponse(),
|
|
1433
|
+
self.call_api(params, req, runtime)
|
|
1434
|
+
)
|
|
1435
|
+
else:
|
|
1436
|
+
return TeaCore.from_map(
|
|
1437
|
+
ehpc_instant_20230701_models.ListExecutorsResponse(),
|
|
1438
|
+
self.execute(params, req, runtime)
|
|
1439
|
+
)
|
|
878
1440
|
|
|
879
1441
|
async def list_executors_with_options_async(
|
|
880
1442
|
self,
|
|
@@ -914,10 +1476,16 @@ class Client(OpenApiClient):
|
|
|
914
1476
|
req_body_type='formData',
|
|
915
1477
|
body_type='json'
|
|
916
1478
|
)
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
1479
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1480
|
+
return TeaCore.from_map(
|
|
1481
|
+
ehpc_instant_20230701_models.ListExecutorsResponse(),
|
|
1482
|
+
await self.call_api_async(params, req, runtime)
|
|
1483
|
+
)
|
|
1484
|
+
else:
|
|
1485
|
+
return TeaCore.from_map(
|
|
1486
|
+
ehpc_instant_20230701_models.ListExecutorsResponse(),
|
|
1487
|
+
await self.execute_async(params, req, runtime)
|
|
1488
|
+
)
|
|
921
1489
|
|
|
922
1490
|
def list_executors(
|
|
923
1491
|
self,
|
|
@@ -973,6 +1541,8 @@ class Client(OpenApiClient):
|
|
|
973
1541
|
query['ImageNames'] = request.image_names_shrink
|
|
974
1542
|
if not UtilClient.is_unset(request.image_type):
|
|
975
1543
|
query['ImageType'] = request.image_type
|
|
1544
|
+
if not UtilClient.is_unset(request.mode):
|
|
1545
|
+
query['Mode'] = request.mode
|
|
976
1546
|
if not UtilClient.is_unset(request.page_number):
|
|
977
1547
|
query['PageNumber'] = request.page_number
|
|
978
1548
|
if not UtilClient.is_unset(request.page_size):
|
|
@@ -991,10 +1561,16 @@ class Client(OpenApiClient):
|
|
|
991
1561
|
req_body_type='formData',
|
|
992
1562
|
body_type='json'
|
|
993
1563
|
)
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
1564
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1565
|
+
return TeaCore.from_map(
|
|
1566
|
+
ehpc_instant_20230701_models.ListImagesResponse(),
|
|
1567
|
+
self.call_api(params, req, runtime)
|
|
1568
|
+
)
|
|
1569
|
+
else:
|
|
1570
|
+
return TeaCore.from_map(
|
|
1571
|
+
ehpc_instant_20230701_models.ListImagesResponse(),
|
|
1572
|
+
self.execute(params, req, runtime)
|
|
1573
|
+
)
|
|
998
1574
|
|
|
999
1575
|
async def list_images_with_options_async(
|
|
1000
1576
|
self,
|
|
@@ -1024,6 +1600,8 @@ class Client(OpenApiClient):
|
|
|
1024
1600
|
query['ImageNames'] = request.image_names_shrink
|
|
1025
1601
|
if not UtilClient.is_unset(request.image_type):
|
|
1026
1602
|
query['ImageType'] = request.image_type
|
|
1603
|
+
if not UtilClient.is_unset(request.mode):
|
|
1604
|
+
query['Mode'] = request.mode
|
|
1027
1605
|
if not UtilClient.is_unset(request.page_number):
|
|
1028
1606
|
query['PageNumber'] = request.page_number
|
|
1029
1607
|
if not UtilClient.is_unset(request.page_size):
|
|
@@ -1042,10 +1620,16 @@ class Client(OpenApiClient):
|
|
|
1042
1620
|
req_body_type='formData',
|
|
1043
1621
|
body_type='json'
|
|
1044
1622
|
)
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1623
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1624
|
+
return TeaCore.from_map(
|
|
1625
|
+
ehpc_instant_20230701_models.ListImagesResponse(),
|
|
1626
|
+
await self.call_api_async(params, req, runtime)
|
|
1627
|
+
)
|
|
1628
|
+
else:
|
|
1629
|
+
return TeaCore.from_map(
|
|
1630
|
+
ehpc_instant_20230701_models.ListImagesResponse(),
|
|
1631
|
+
await self.execute_async(params, req, runtime)
|
|
1632
|
+
)
|
|
1049
1633
|
|
|
1050
1634
|
def list_images(
|
|
1051
1635
|
self,
|
|
@@ -1109,10 +1693,16 @@ class Client(OpenApiClient):
|
|
|
1109
1693
|
req_body_type='formData',
|
|
1110
1694
|
body_type='json'
|
|
1111
1695
|
)
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1696
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1697
|
+
return TeaCore.from_map(
|
|
1698
|
+
ehpc_instant_20230701_models.ListJobExecutorsResponse(),
|
|
1699
|
+
self.call_api(params, req, runtime)
|
|
1700
|
+
)
|
|
1701
|
+
else:
|
|
1702
|
+
return TeaCore.from_map(
|
|
1703
|
+
ehpc_instant_20230701_models.ListJobExecutorsResponse(),
|
|
1704
|
+
self.execute(params, req, runtime)
|
|
1705
|
+
)
|
|
1116
1706
|
|
|
1117
1707
|
async def list_job_executors_with_options_async(
|
|
1118
1708
|
self,
|
|
@@ -1150,10 +1740,16 @@ class Client(OpenApiClient):
|
|
|
1150
1740
|
req_body_type='formData',
|
|
1151
1741
|
body_type='json'
|
|
1152
1742
|
)
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1743
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1744
|
+
return TeaCore.from_map(
|
|
1745
|
+
ehpc_instant_20230701_models.ListJobExecutorsResponse(),
|
|
1746
|
+
await self.call_api_async(params, req, runtime)
|
|
1747
|
+
)
|
|
1748
|
+
else:
|
|
1749
|
+
return TeaCore.from_map(
|
|
1750
|
+
ehpc_instant_20230701_models.ListJobExecutorsResponse(),
|
|
1751
|
+
await self.execute_async(params, req, runtime)
|
|
1752
|
+
)
|
|
1157
1753
|
|
|
1158
1754
|
def list_job_executors(
|
|
1159
1755
|
self,
|
|
@@ -1223,10 +1819,16 @@ class Client(OpenApiClient):
|
|
|
1223
1819
|
req_body_type='formData',
|
|
1224
1820
|
body_type='json'
|
|
1225
1821
|
)
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1822
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1823
|
+
return TeaCore.from_map(
|
|
1824
|
+
ehpc_instant_20230701_models.ListJobsResponse(),
|
|
1825
|
+
self.call_api(params, req, runtime)
|
|
1826
|
+
)
|
|
1827
|
+
else:
|
|
1828
|
+
return TeaCore.from_map(
|
|
1829
|
+
ehpc_instant_20230701_models.ListJobsResponse(),
|
|
1830
|
+
self.execute(params, req, runtime)
|
|
1831
|
+
)
|
|
1230
1832
|
|
|
1231
1833
|
async def list_jobs_with_options_async(
|
|
1232
1834
|
self,
|
|
@@ -1270,10 +1872,16 @@ class Client(OpenApiClient):
|
|
|
1270
1872
|
req_body_type='formData',
|
|
1271
1873
|
body_type='json'
|
|
1272
1874
|
)
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1875
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1876
|
+
return TeaCore.from_map(
|
|
1877
|
+
ehpc_instant_20230701_models.ListJobsResponse(),
|
|
1878
|
+
await self.call_api_async(params, req, runtime)
|
|
1879
|
+
)
|
|
1880
|
+
else:
|
|
1881
|
+
return TeaCore.from_map(
|
|
1882
|
+
ehpc_instant_20230701_models.ListJobsResponse(),
|
|
1883
|
+
await self.execute_async(params, req, runtime)
|
|
1884
|
+
)
|
|
1277
1885
|
|
|
1278
1886
|
def list_jobs(
|
|
1279
1887
|
self,
|
|
@@ -1301,6 +1909,130 @@ class Client(OpenApiClient):
|
|
|
1301
1909
|
runtime = util_models.RuntimeOptions()
|
|
1302
1910
|
return await self.list_jobs_with_options_async(request, runtime)
|
|
1303
1911
|
|
|
1912
|
+
def list_pools_with_options(
|
|
1913
|
+
self,
|
|
1914
|
+
tmp_req: ehpc_instant_20230701_models.ListPoolsRequest,
|
|
1915
|
+
runtime: util_models.RuntimeOptions,
|
|
1916
|
+
) -> ehpc_instant_20230701_models.ListPoolsResponse:
|
|
1917
|
+
"""
|
|
1918
|
+
@summary 查询资源池列表
|
|
1919
|
+
|
|
1920
|
+
@param tmp_req: ListPoolsRequest
|
|
1921
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1922
|
+
@return: ListPoolsResponse
|
|
1923
|
+
"""
|
|
1924
|
+
UtilClient.validate_model(tmp_req)
|
|
1925
|
+
request = ehpc_instant_20230701_models.ListPoolsShrinkRequest()
|
|
1926
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
1927
|
+
if not UtilClient.is_unset(tmp_req.filter):
|
|
1928
|
+
request.filter_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
|
|
1929
|
+
query = {}
|
|
1930
|
+
if not UtilClient.is_unset(request.filter_shrink):
|
|
1931
|
+
query['Filter'] = request.filter_shrink
|
|
1932
|
+
if not UtilClient.is_unset(request.page_number):
|
|
1933
|
+
query['PageNumber'] = request.page_number
|
|
1934
|
+
if not UtilClient.is_unset(request.page_size):
|
|
1935
|
+
query['PageSize'] = request.page_size
|
|
1936
|
+
req = open_api_models.OpenApiRequest(
|
|
1937
|
+
query=OpenApiUtilClient.query(query)
|
|
1938
|
+
)
|
|
1939
|
+
params = open_api_models.Params(
|
|
1940
|
+
action='ListPools',
|
|
1941
|
+
version='2023-07-01',
|
|
1942
|
+
protocol='HTTPS',
|
|
1943
|
+
pathname='/',
|
|
1944
|
+
method='POST',
|
|
1945
|
+
auth_type='AK',
|
|
1946
|
+
style='RPC',
|
|
1947
|
+
req_body_type='formData',
|
|
1948
|
+
body_type='json'
|
|
1949
|
+
)
|
|
1950
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
1951
|
+
return TeaCore.from_map(
|
|
1952
|
+
ehpc_instant_20230701_models.ListPoolsResponse(),
|
|
1953
|
+
self.call_api(params, req, runtime)
|
|
1954
|
+
)
|
|
1955
|
+
else:
|
|
1956
|
+
return TeaCore.from_map(
|
|
1957
|
+
ehpc_instant_20230701_models.ListPoolsResponse(),
|
|
1958
|
+
self.execute(params, req, runtime)
|
|
1959
|
+
)
|
|
1960
|
+
|
|
1961
|
+
async def list_pools_with_options_async(
|
|
1962
|
+
self,
|
|
1963
|
+
tmp_req: ehpc_instant_20230701_models.ListPoolsRequest,
|
|
1964
|
+
runtime: util_models.RuntimeOptions,
|
|
1965
|
+
) -> ehpc_instant_20230701_models.ListPoolsResponse:
|
|
1966
|
+
"""
|
|
1967
|
+
@summary 查询资源池列表
|
|
1968
|
+
|
|
1969
|
+
@param tmp_req: ListPoolsRequest
|
|
1970
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1971
|
+
@return: ListPoolsResponse
|
|
1972
|
+
"""
|
|
1973
|
+
UtilClient.validate_model(tmp_req)
|
|
1974
|
+
request = ehpc_instant_20230701_models.ListPoolsShrinkRequest()
|
|
1975
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
1976
|
+
if not UtilClient.is_unset(tmp_req.filter):
|
|
1977
|
+
request.filter_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.filter, 'Filter', 'json')
|
|
1978
|
+
query = {}
|
|
1979
|
+
if not UtilClient.is_unset(request.filter_shrink):
|
|
1980
|
+
query['Filter'] = request.filter_shrink
|
|
1981
|
+
if not UtilClient.is_unset(request.page_number):
|
|
1982
|
+
query['PageNumber'] = request.page_number
|
|
1983
|
+
if not UtilClient.is_unset(request.page_size):
|
|
1984
|
+
query['PageSize'] = request.page_size
|
|
1985
|
+
req = open_api_models.OpenApiRequest(
|
|
1986
|
+
query=OpenApiUtilClient.query(query)
|
|
1987
|
+
)
|
|
1988
|
+
params = open_api_models.Params(
|
|
1989
|
+
action='ListPools',
|
|
1990
|
+
version='2023-07-01',
|
|
1991
|
+
protocol='HTTPS',
|
|
1992
|
+
pathname='/',
|
|
1993
|
+
method='POST',
|
|
1994
|
+
auth_type='AK',
|
|
1995
|
+
style='RPC',
|
|
1996
|
+
req_body_type='formData',
|
|
1997
|
+
body_type='json'
|
|
1998
|
+
)
|
|
1999
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
2000
|
+
return TeaCore.from_map(
|
|
2001
|
+
ehpc_instant_20230701_models.ListPoolsResponse(),
|
|
2002
|
+
await self.call_api_async(params, req, runtime)
|
|
2003
|
+
)
|
|
2004
|
+
else:
|
|
2005
|
+
return TeaCore.from_map(
|
|
2006
|
+
ehpc_instant_20230701_models.ListPoolsResponse(),
|
|
2007
|
+
await self.execute_async(params, req, runtime)
|
|
2008
|
+
)
|
|
2009
|
+
|
|
2010
|
+
def list_pools(
|
|
2011
|
+
self,
|
|
2012
|
+
request: ehpc_instant_20230701_models.ListPoolsRequest,
|
|
2013
|
+
) -> ehpc_instant_20230701_models.ListPoolsResponse:
|
|
2014
|
+
"""
|
|
2015
|
+
@summary 查询资源池列表
|
|
2016
|
+
|
|
2017
|
+
@param request: ListPoolsRequest
|
|
2018
|
+
@return: ListPoolsResponse
|
|
2019
|
+
"""
|
|
2020
|
+
runtime = util_models.RuntimeOptions()
|
|
2021
|
+
return self.list_pools_with_options(request, runtime)
|
|
2022
|
+
|
|
2023
|
+
async def list_pools_async(
|
|
2024
|
+
self,
|
|
2025
|
+
request: ehpc_instant_20230701_models.ListPoolsRequest,
|
|
2026
|
+
) -> ehpc_instant_20230701_models.ListPoolsResponse:
|
|
2027
|
+
"""
|
|
2028
|
+
@summary 查询资源池列表
|
|
2029
|
+
|
|
2030
|
+
@param request: ListPoolsRequest
|
|
2031
|
+
@return: ListPoolsResponse
|
|
2032
|
+
"""
|
|
2033
|
+
runtime = util_models.RuntimeOptions()
|
|
2034
|
+
return await self.list_pools_with_options_async(request, runtime)
|
|
2035
|
+
|
|
1304
2036
|
def list_tag_resources_with_options(
|
|
1305
2037
|
self,
|
|
1306
2038
|
request: ehpc_instant_20230701_models.ListTagResourcesRequest,
|
|
@@ -1339,10 +2071,16 @@ class Client(OpenApiClient):
|
|
|
1339
2071
|
req_body_type='formData',
|
|
1340
2072
|
body_type='json'
|
|
1341
2073
|
)
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
2074
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
2075
|
+
return TeaCore.from_map(
|
|
2076
|
+
ehpc_instant_20230701_models.ListTagResourcesResponse(),
|
|
2077
|
+
self.call_api(params, req, runtime)
|
|
2078
|
+
)
|
|
2079
|
+
else:
|
|
2080
|
+
return TeaCore.from_map(
|
|
2081
|
+
ehpc_instant_20230701_models.ListTagResourcesResponse(),
|
|
2082
|
+
self.execute(params, req, runtime)
|
|
2083
|
+
)
|
|
1346
2084
|
|
|
1347
2085
|
async def list_tag_resources_with_options_async(
|
|
1348
2086
|
self,
|
|
@@ -1382,10 +2120,16 @@ class Client(OpenApiClient):
|
|
|
1382
2120
|
req_body_type='formData',
|
|
1383
2121
|
body_type='json'
|
|
1384
2122
|
)
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
2123
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
2124
|
+
return TeaCore.from_map(
|
|
2125
|
+
ehpc_instant_20230701_models.ListTagResourcesResponse(),
|
|
2126
|
+
await self.call_api_async(params, req, runtime)
|
|
2127
|
+
)
|
|
2128
|
+
else:
|
|
2129
|
+
return TeaCore.from_map(
|
|
2130
|
+
ehpc_instant_20230701_models.ListTagResourcesResponse(),
|
|
2131
|
+
await self.execute_async(params, req, runtime)
|
|
2132
|
+
)
|
|
1389
2133
|
|
|
1390
2134
|
def list_tag_resources(
|
|
1391
2135
|
self,
|
|
@@ -1445,10 +2189,16 @@ class Client(OpenApiClient):
|
|
|
1445
2189
|
req_body_type='formData',
|
|
1446
2190
|
body_type='json'
|
|
1447
2191
|
)
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
2192
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
2193
|
+
return TeaCore.from_map(
|
|
2194
|
+
ehpc_instant_20230701_models.RemoveImageResponse(),
|
|
2195
|
+
self.call_api(params, req, runtime)
|
|
2196
|
+
)
|
|
2197
|
+
else:
|
|
2198
|
+
return TeaCore.from_map(
|
|
2199
|
+
ehpc_instant_20230701_models.RemoveImageResponse(),
|
|
2200
|
+
self.execute(params, req, runtime)
|
|
2201
|
+
)
|
|
1452
2202
|
|
|
1453
2203
|
async def remove_image_with_options_async(
|
|
1454
2204
|
self,
|
|
@@ -1482,10 +2232,16 @@ class Client(OpenApiClient):
|
|
|
1482
2232
|
req_body_type='formData',
|
|
1483
2233
|
body_type='json'
|
|
1484
2234
|
)
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
2235
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
2236
|
+
return TeaCore.from_map(
|
|
2237
|
+
ehpc_instant_20230701_models.RemoveImageResponse(),
|
|
2238
|
+
await self.call_api_async(params, req, runtime)
|
|
2239
|
+
)
|
|
2240
|
+
else:
|
|
2241
|
+
return TeaCore.from_map(
|
|
2242
|
+
ehpc_instant_20230701_models.RemoveImageResponse(),
|
|
2243
|
+
await self.execute_async(params, req, runtime)
|
|
2244
|
+
)
|
|
1489
2245
|
|
|
1490
2246
|
def remove_image(
|
|
1491
2247
|
self,
|
|
@@ -1547,10 +2303,16 @@ class Client(OpenApiClient):
|
|
|
1547
2303
|
req_body_type='formData',
|
|
1548
2304
|
body_type='json'
|
|
1549
2305
|
)
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
2306
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
2307
|
+
return TeaCore.from_map(
|
|
2308
|
+
ehpc_instant_20230701_models.TagResourcesResponse(),
|
|
2309
|
+
self.call_api(params, req, runtime)
|
|
2310
|
+
)
|
|
2311
|
+
else:
|
|
2312
|
+
return TeaCore.from_map(
|
|
2313
|
+
ehpc_instant_20230701_models.TagResourcesResponse(),
|
|
2314
|
+
self.execute(params, req, runtime)
|
|
2315
|
+
)
|
|
1554
2316
|
|
|
1555
2317
|
async def tag_resources_with_options_async(
|
|
1556
2318
|
self,
|
|
@@ -1586,10 +2348,16 @@ class Client(OpenApiClient):
|
|
|
1586
2348
|
req_body_type='formData',
|
|
1587
2349
|
body_type='json'
|
|
1588
2350
|
)
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
2351
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
2352
|
+
return TeaCore.from_map(
|
|
2353
|
+
ehpc_instant_20230701_models.TagResourcesResponse(),
|
|
2354
|
+
await self.call_api_async(params, req, runtime)
|
|
2355
|
+
)
|
|
2356
|
+
else:
|
|
2357
|
+
return TeaCore.from_map(
|
|
2358
|
+
ehpc_instant_20230701_models.TagResourcesResponse(),
|
|
2359
|
+
await self.execute_async(params, req, runtime)
|
|
2360
|
+
)
|
|
1593
2361
|
|
|
1594
2362
|
def tag_resources(
|
|
1595
2363
|
self,
|
|
@@ -1653,10 +2421,16 @@ class Client(OpenApiClient):
|
|
|
1653
2421
|
req_body_type='formData',
|
|
1654
2422
|
body_type='json'
|
|
1655
2423
|
)
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
2424
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
2425
|
+
return TeaCore.from_map(
|
|
2426
|
+
ehpc_instant_20230701_models.UnTagResourcesResponse(),
|
|
2427
|
+
self.call_api(params, req, runtime)
|
|
2428
|
+
)
|
|
2429
|
+
else:
|
|
2430
|
+
return TeaCore.from_map(
|
|
2431
|
+
ehpc_instant_20230701_models.UnTagResourcesResponse(),
|
|
2432
|
+
self.execute(params, req, runtime)
|
|
2433
|
+
)
|
|
1660
2434
|
|
|
1661
2435
|
async def un_tag_resources_with_options_async(
|
|
1662
2436
|
self,
|
|
@@ -1694,10 +2468,16 @@ class Client(OpenApiClient):
|
|
|
1694
2468
|
req_body_type='formData',
|
|
1695
2469
|
body_type='json'
|
|
1696
2470
|
)
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
2471
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
2472
|
+
return TeaCore.from_map(
|
|
2473
|
+
ehpc_instant_20230701_models.UnTagResourcesResponse(),
|
|
2474
|
+
await self.call_api_async(params, req, runtime)
|
|
2475
|
+
)
|
|
2476
|
+
else:
|
|
2477
|
+
return TeaCore.from_map(
|
|
2478
|
+
ehpc_instant_20230701_models.UnTagResourcesResponse(),
|
|
2479
|
+
await self.execute_async(params, req, runtime)
|
|
2480
|
+
)
|
|
1701
2481
|
|
|
1702
2482
|
def un_tag_resources(
|
|
1703
2483
|
self,
|
|
@@ -1724,3 +2504,127 @@ class Client(OpenApiClient):
|
|
|
1724
2504
|
"""
|
|
1725
2505
|
runtime = util_models.RuntimeOptions()
|
|
1726
2506
|
return await self.un_tag_resources_with_options_async(request, runtime)
|
|
2507
|
+
|
|
2508
|
+
def update_pool_with_options(
|
|
2509
|
+
self,
|
|
2510
|
+
tmp_req: ehpc_instant_20230701_models.UpdatePoolRequest,
|
|
2511
|
+
runtime: util_models.RuntimeOptions,
|
|
2512
|
+
) -> ehpc_instant_20230701_models.UpdatePoolResponse:
|
|
2513
|
+
"""
|
|
2514
|
+
@summary 更新资源池
|
|
2515
|
+
|
|
2516
|
+
@param tmp_req: UpdatePoolRequest
|
|
2517
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2518
|
+
@return: UpdatePoolResponse
|
|
2519
|
+
"""
|
|
2520
|
+
UtilClient.validate_model(tmp_req)
|
|
2521
|
+
request = ehpc_instant_20230701_models.UpdatePoolShrinkRequest()
|
|
2522
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
2523
|
+
if not UtilClient.is_unset(tmp_req.resource_limits):
|
|
2524
|
+
request.resource_limits_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.resource_limits, 'ResourceLimits', 'json')
|
|
2525
|
+
query = {}
|
|
2526
|
+
if not UtilClient.is_unset(request.pool_name):
|
|
2527
|
+
query['PoolName'] = request.pool_name
|
|
2528
|
+
if not UtilClient.is_unset(request.priority):
|
|
2529
|
+
query['Priority'] = request.priority
|
|
2530
|
+
if not UtilClient.is_unset(request.resource_limits_shrink):
|
|
2531
|
+
query['ResourceLimits'] = request.resource_limits_shrink
|
|
2532
|
+
req = open_api_models.OpenApiRequest(
|
|
2533
|
+
query=OpenApiUtilClient.query(query)
|
|
2534
|
+
)
|
|
2535
|
+
params = open_api_models.Params(
|
|
2536
|
+
action='UpdatePool',
|
|
2537
|
+
version='2023-07-01',
|
|
2538
|
+
protocol='HTTPS',
|
|
2539
|
+
pathname='/',
|
|
2540
|
+
method='POST',
|
|
2541
|
+
auth_type='AK',
|
|
2542
|
+
style='RPC',
|
|
2543
|
+
req_body_type='formData',
|
|
2544
|
+
body_type='json'
|
|
2545
|
+
)
|
|
2546
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
2547
|
+
return TeaCore.from_map(
|
|
2548
|
+
ehpc_instant_20230701_models.UpdatePoolResponse(),
|
|
2549
|
+
self.call_api(params, req, runtime)
|
|
2550
|
+
)
|
|
2551
|
+
else:
|
|
2552
|
+
return TeaCore.from_map(
|
|
2553
|
+
ehpc_instant_20230701_models.UpdatePoolResponse(),
|
|
2554
|
+
self.execute(params, req, runtime)
|
|
2555
|
+
)
|
|
2556
|
+
|
|
2557
|
+
async def update_pool_with_options_async(
|
|
2558
|
+
self,
|
|
2559
|
+
tmp_req: ehpc_instant_20230701_models.UpdatePoolRequest,
|
|
2560
|
+
runtime: util_models.RuntimeOptions,
|
|
2561
|
+
) -> ehpc_instant_20230701_models.UpdatePoolResponse:
|
|
2562
|
+
"""
|
|
2563
|
+
@summary 更新资源池
|
|
2564
|
+
|
|
2565
|
+
@param tmp_req: UpdatePoolRequest
|
|
2566
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2567
|
+
@return: UpdatePoolResponse
|
|
2568
|
+
"""
|
|
2569
|
+
UtilClient.validate_model(tmp_req)
|
|
2570
|
+
request = ehpc_instant_20230701_models.UpdatePoolShrinkRequest()
|
|
2571
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
2572
|
+
if not UtilClient.is_unset(tmp_req.resource_limits):
|
|
2573
|
+
request.resource_limits_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.resource_limits, 'ResourceLimits', 'json')
|
|
2574
|
+
query = {}
|
|
2575
|
+
if not UtilClient.is_unset(request.pool_name):
|
|
2576
|
+
query['PoolName'] = request.pool_name
|
|
2577
|
+
if not UtilClient.is_unset(request.priority):
|
|
2578
|
+
query['Priority'] = request.priority
|
|
2579
|
+
if not UtilClient.is_unset(request.resource_limits_shrink):
|
|
2580
|
+
query['ResourceLimits'] = request.resource_limits_shrink
|
|
2581
|
+
req = open_api_models.OpenApiRequest(
|
|
2582
|
+
query=OpenApiUtilClient.query(query)
|
|
2583
|
+
)
|
|
2584
|
+
params = open_api_models.Params(
|
|
2585
|
+
action='UpdatePool',
|
|
2586
|
+
version='2023-07-01',
|
|
2587
|
+
protocol='HTTPS',
|
|
2588
|
+
pathname='/',
|
|
2589
|
+
method='POST',
|
|
2590
|
+
auth_type='AK',
|
|
2591
|
+
style='RPC',
|
|
2592
|
+
req_body_type='formData',
|
|
2593
|
+
body_type='json'
|
|
2594
|
+
)
|
|
2595
|
+
if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
|
|
2596
|
+
return TeaCore.from_map(
|
|
2597
|
+
ehpc_instant_20230701_models.UpdatePoolResponse(),
|
|
2598
|
+
await self.call_api_async(params, req, runtime)
|
|
2599
|
+
)
|
|
2600
|
+
else:
|
|
2601
|
+
return TeaCore.from_map(
|
|
2602
|
+
ehpc_instant_20230701_models.UpdatePoolResponse(),
|
|
2603
|
+
await self.execute_async(params, req, runtime)
|
|
2604
|
+
)
|
|
2605
|
+
|
|
2606
|
+
def update_pool(
|
|
2607
|
+
self,
|
|
2608
|
+
request: ehpc_instant_20230701_models.UpdatePoolRequest,
|
|
2609
|
+
) -> ehpc_instant_20230701_models.UpdatePoolResponse:
|
|
2610
|
+
"""
|
|
2611
|
+
@summary 更新资源池
|
|
2612
|
+
|
|
2613
|
+
@param request: UpdatePoolRequest
|
|
2614
|
+
@return: UpdatePoolResponse
|
|
2615
|
+
"""
|
|
2616
|
+
runtime = util_models.RuntimeOptions()
|
|
2617
|
+
return self.update_pool_with_options(request, runtime)
|
|
2618
|
+
|
|
2619
|
+
async def update_pool_async(
|
|
2620
|
+
self,
|
|
2621
|
+
request: ehpc_instant_20230701_models.UpdatePoolRequest,
|
|
2622
|
+
) -> ehpc_instant_20230701_models.UpdatePoolResponse:
|
|
2623
|
+
"""
|
|
2624
|
+
@summary 更新资源池
|
|
2625
|
+
|
|
2626
|
+
@param request: UpdatePoolRequest
|
|
2627
|
+
@return: UpdatePoolResponse
|
|
2628
|
+
"""
|
|
2629
|
+
runtime = util_models.RuntimeOptions()
|
|
2630
|
+
return await self.update_pool_with_options_async(request, runtime)
|