alibabacloud-ehpcinstant20230701 1.2.0__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.

@@ -1 +1 @@
1
- __version__ = '1.2.0'
1
+ __version__ = '2.0.0'
@@ -87,10 +87,16 @@ class Client(OpenApiClient):
87
87
  req_body_type='formData',
88
88
  body_type='json'
89
89
  )
90
- return TeaCore.from_map(
91
- ehpc_instant_20230701_models.AddImageResponse(),
92
- self.call_api(params, req, runtime)
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
- return TeaCore.from_map(
142
- ehpc_instant_20230701_models.AddImageResponse(),
143
- await self.call_api_async(params, req, runtime)
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
- return TeaCore.from_map(
217
- ehpc_instant_20230701_models.CreateJobResponse(),
218
- self.call_api(params, req, runtime)
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
- return TeaCore.from_map(
266
- ehpc_instant_20230701_models.CreateJobResponse(),
267
- await self.call_api_async(params, req, runtime)
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,
@@ -331,10 +363,16 @@ class Client(OpenApiClient):
331
363
  req_body_type='formData',
332
364
  body_type='json'
333
365
  )
334
- return TeaCore.from_map(
335
- ehpc_instant_20230701_models.CreatePoolResponse(),
336
- self.call_api(params, req, runtime)
337
- )
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
+ )
338
376
 
339
377
  async def create_pool_with_options_async(
340
378
  self,
@@ -374,10 +412,16 @@ class Client(OpenApiClient):
374
412
  req_body_type='formData',
375
413
  body_type='json'
376
414
  )
377
- return TeaCore.from_map(
378
- ehpc_instant_20230701_models.CreatePoolResponse(),
379
- await self.call_api_async(params, req, runtime)
380
- )
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
+ )
381
425
 
382
426
  def create_pool(
383
427
  self,
@@ -443,10 +487,16 @@ class Client(OpenApiClient):
443
487
  req_body_type='formData',
444
488
  body_type='json'
445
489
  )
446
- return TeaCore.from_map(
447
- ehpc_instant_20230701_models.DeleteJobsResponse(),
448
- self.call_api(params, req, runtime)
449
- )
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
+ )
450
500
 
451
501
  async def delete_jobs_with_options_async(
452
502
  self,
@@ -486,10 +536,16 @@ class Client(OpenApiClient):
486
536
  req_body_type='formData',
487
537
  body_type='json'
488
538
  )
489
- return TeaCore.from_map(
490
- ehpc_instant_20230701_models.DeleteJobsResponse(),
491
- await self.call_api_async(params, req, runtime)
492
- )
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
+ )
493
549
 
494
550
  def delete_jobs(
495
551
  self,
@@ -547,10 +603,16 @@ class Client(OpenApiClient):
547
603
  req_body_type='formData',
548
604
  body_type='json'
549
605
  )
550
- return TeaCore.from_map(
551
- ehpc_instant_20230701_models.DeletePoolResponse(),
552
- self.call_api(params, req, runtime)
553
- )
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
+ )
554
616
 
555
617
  async def delete_pool_with_options_async(
556
618
  self,
@@ -582,10 +644,16 @@ class Client(OpenApiClient):
582
644
  req_body_type='formData',
583
645
  body_type='json'
584
646
  )
585
- return TeaCore.from_map(
586
- ehpc_instant_20230701_models.DeletePoolResponse(),
587
- await self.call_api_async(params, req, runtime)
588
- )
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
+ )
589
657
 
590
658
  def delete_pool(
591
659
  self,
@@ -653,10 +721,16 @@ class Client(OpenApiClient):
653
721
  req_body_type='formData',
654
722
  body_type='json'
655
723
  )
656
- return TeaCore.from_map(
657
- ehpc_instant_20230701_models.DescribeJobMetricDataResponse(),
658
- self.call_api(params, req, runtime)
659
- )
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
+ )
660
734
 
661
735
  async def describe_job_metric_data_with_options_async(
662
736
  self,
@@ -698,10 +772,16 @@ class Client(OpenApiClient):
698
772
  req_body_type='formData',
699
773
  body_type='json'
700
774
  )
701
- return TeaCore.from_map(
702
- ehpc_instant_20230701_models.DescribeJobMetricDataResponse(),
703
- await self.call_api_async(params, req, runtime)
704
- )
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
+ )
705
785
 
706
786
  def describe_job_metric_data(
707
787
  self,
@@ -767,10 +847,16 @@ class Client(OpenApiClient):
767
847
  req_body_type='formData',
768
848
  body_type='json'
769
849
  )
770
- return TeaCore.from_map(
771
- ehpc_instant_20230701_models.DescribeJobMetricLastResponse(),
772
- self.call_api(params, req, runtime)
773
- )
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
+ )
774
860
 
775
861
  async def describe_job_metric_last_with_options_async(
776
862
  self,
@@ -810,10 +896,16 @@ class Client(OpenApiClient):
810
896
  req_body_type='formData',
811
897
  body_type='json'
812
898
  )
813
- return TeaCore.from_map(
814
- ehpc_instant_20230701_models.DescribeJobMetricLastResponse(),
815
- await self.call_api_async(params, req, runtime)
816
- )
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
+ )
817
909
 
818
910
  def describe_job_metric_last(
819
911
  self,
@@ -879,10 +971,16 @@ class Client(OpenApiClient):
879
971
  req_body_type='formData',
880
972
  body_type='json'
881
973
  )
882
- return TeaCore.from_map(
883
- ehpc_instant_20230701_models.GetAppVersionsResponse(),
884
- self.call_api(params, req, runtime)
885
- )
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
+ )
886
984
 
887
985
  async def get_app_versions_with_options_async(
888
986
  self,
@@ -922,10 +1020,16 @@ class Client(OpenApiClient):
922
1020
  req_body_type='formData',
923
1021
  body_type='json'
924
1022
  )
925
- return TeaCore.from_map(
926
- ehpc_instant_20230701_models.GetAppVersionsResponse(),
927
- await self.call_api_async(params, req, runtime)
928
- )
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
+ )
929
1033
 
930
1034
  def get_app_versions(
931
1035
  self,
@@ -987,10 +1091,16 @@ class Client(OpenApiClient):
987
1091
  req_body_type='formData',
988
1092
  body_type='json'
989
1093
  )
990
- return TeaCore.from_map(
991
- ehpc_instant_20230701_models.GetImageResponse(),
992
- self.call_api(params, req, runtime)
993
- )
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
+ )
994
1104
 
995
1105
  async def get_image_with_options_async(
996
1106
  self,
@@ -1026,10 +1136,16 @@ class Client(OpenApiClient):
1026
1136
  req_body_type='formData',
1027
1137
  body_type='json'
1028
1138
  )
1029
- return TeaCore.from_map(
1030
- ehpc_instant_20230701_models.GetImageResponse(),
1031
- await self.call_api_async(params, req, runtime)
1032
- )
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
+ )
1033
1149
 
1034
1150
  def get_image(
1035
1151
  self,
@@ -1087,10 +1203,16 @@ class Client(OpenApiClient):
1087
1203
  req_body_type='formData',
1088
1204
  body_type='json'
1089
1205
  )
1090
- return TeaCore.from_map(
1091
- ehpc_instant_20230701_models.GetJobResponse(),
1092
- self.call_api(params, req, runtime)
1093
- )
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
+ )
1094
1216
 
1095
1217
  async def get_job_with_options_async(
1096
1218
  self,
@@ -1122,10 +1244,16 @@ class Client(OpenApiClient):
1122
1244
  req_body_type='formData',
1123
1245
  body_type='json'
1124
1246
  )
1125
- return TeaCore.from_map(
1126
- ehpc_instant_20230701_models.GetJobResponse(),
1127
- await self.call_api_async(params, req, runtime)
1128
- )
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
+ )
1129
1257
 
1130
1258
  def get_job(
1131
1259
  self,
@@ -1183,10 +1311,16 @@ class Client(OpenApiClient):
1183
1311
  req_body_type='formData',
1184
1312
  body_type='json'
1185
1313
  )
1186
- return TeaCore.from_map(
1187
- ehpc_instant_20230701_models.GetPoolResponse(),
1188
- self.call_api(params, req, runtime)
1189
- )
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
+ )
1190
1324
 
1191
1325
  async def get_pool_with_options_async(
1192
1326
  self,
@@ -1218,10 +1352,16 @@ class Client(OpenApiClient):
1218
1352
  req_body_type='formData',
1219
1353
  body_type='json'
1220
1354
  )
1221
- return TeaCore.from_map(
1222
- ehpc_instant_20230701_models.GetPoolResponse(),
1223
- await self.call_api_async(params, req, runtime)
1224
- )
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
+ )
1225
1365
 
1226
1366
  def get_pool(
1227
1367
  self,
@@ -1287,10 +1427,16 @@ class Client(OpenApiClient):
1287
1427
  req_body_type='formData',
1288
1428
  body_type='json'
1289
1429
  )
1290
- return TeaCore.from_map(
1291
- ehpc_instant_20230701_models.ListExecutorsResponse(),
1292
- self.call_api(params, req, runtime)
1293
- )
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
+ )
1294
1440
 
1295
1441
  async def list_executors_with_options_async(
1296
1442
  self,
@@ -1330,10 +1476,16 @@ class Client(OpenApiClient):
1330
1476
  req_body_type='formData',
1331
1477
  body_type='json'
1332
1478
  )
1333
- return TeaCore.from_map(
1334
- ehpc_instant_20230701_models.ListExecutorsResponse(),
1335
- await self.call_api_async(params, req, runtime)
1336
- )
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
+ )
1337
1489
 
1338
1490
  def list_executors(
1339
1491
  self,
@@ -1409,10 +1561,16 @@ class Client(OpenApiClient):
1409
1561
  req_body_type='formData',
1410
1562
  body_type='json'
1411
1563
  )
1412
- return TeaCore.from_map(
1413
- ehpc_instant_20230701_models.ListImagesResponse(),
1414
- self.call_api(params, req, runtime)
1415
- )
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
+ )
1416
1574
 
1417
1575
  async def list_images_with_options_async(
1418
1576
  self,
@@ -1462,10 +1620,16 @@ class Client(OpenApiClient):
1462
1620
  req_body_type='formData',
1463
1621
  body_type='json'
1464
1622
  )
1465
- return TeaCore.from_map(
1466
- ehpc_instant_20230701_models.ListImagesResponse(),
1467
- await self.call_api_async(params, req, runtime)
1468
- )
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
+ )
1469
1633
 
1470
1634
  def list_images(
1471
1635
  self,
@@ -1529,10 +1693,16 @@ class Client(OpenApiClient):
1529
1693
  req_body_type='formData',
1530
1694
  body_type='json'
1531
1695
  )
1532
- return TeaCore.from_map(
1533
- ehpc_instant_20230701_models.ListJobExecutorsResponse(),
1534
- self.call_api(params, req, runtime)
1535
- )
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
+ )
1536
1706
 
1537
1707
  async def list_job_executors_with_options_async(
1538
1708
  self,
@@ -1570,10 +1740,16 @@ class Client(OpenApiClient):
1570
1740
  req_body_type='formData',
1571
1741
  body_type='json'
1572
1742
  )
1573
- return TeaCore.from_map(
1574
- ehpc_instant_20230701_models.ListJobExecutorsResponse(),
1575
- await self.call_api_async(params, req, runtime)
1576
- )
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
+ )
1577
1753
 
1578
1754
  def list_job_executors(
1579
1755
  self,
@@ -1643,10 +1819,16 @@ class Client(OpenApiClient):
1643
1819
  req_body_type='formData',
1644
1820
  body_type='json'
1645
1821
  )
1646
- return TeaCore.from_map(
1647
- ehpc_instant_20230701_models.ListJobsResponse(),
1648
- self.call_api(params, req, runtime)
1649
- )
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
+ )
1650
1832
 
1651
1833
  async def list_jobs_with_options_async(
1652
1834
  self,
@@ -1690,10 +1872,16 @@ class Client(OpenApiClient):
1690
1872
  req_body_type='formData',
1691
1873
  body_type='json'
1692
1874
  )
1693
- return TeaCore.from_map(
1694
- ehpc_instant_20230701_models.ListJobsResponse(),
1695
- await self.call_api_async(params, req, runtime)
1696
- )
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
+ )
1697
1885
 
1698
1886
  def list_jobs(
1699
1887
  self,
@@ -1759,10 +1947,16 @@ class Client(OpenApiClient):
1759
1947
  req_body_type='formData',
1760
1948
  body_type='json'
1761
1949
  )
1762
- return TeaCore.from_map(
1763
- ehpc_instant_20230701_models.ListPoolsResponse(),
1764
- self.call_api(params, req, runtime)
1765
- )
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
+ )
1766
1960
 
1767
1961
  async def list_pools_with_options_async(
1768
1962
  self,
@@ -1802,10 +1996,16 @@ class Client(OpenApiClient):
1802
1996
  req_body_type='formData',
1803
1997
  body_type='json'
1804
1998
  )
1805
- return TeaCore.from_map(
1806
- ehpc_instant_20230701_models.ListPoolsResponse(),
1807
- await self.call_api_async(params, req, runtime)
1808
- )
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
+ )
1809
2009
 
1810
2010
  def list_pools(
1811
2011
  self,
@@ -1871,10 +2071,16 @@ class Client(OpenApiClient):
1871
2071
  req_body_type='formData',
1872
2072
  body_type='json'
1873
2073
  )
1874
- return TeaCore.from_map(
1875
- ehpc_instant_20230701_models.ListTagResourcesResponse(),
1876
- self.call_api(params, req, runtime)
1877
- )
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
+ )
1878
2084
 
1879
2085
  async def list_tag_resources_with_options_async(
1880
2086
  self,
@@ -1914,10 +2120,16 @@ class Client(OpenApiClient):
1914
2120
  req_body_type='formData',
1915
2121
  body_type='json'
1916
2122
  )
1917
- return TeaCore.from_map(
1918
- ehpc_instant_20230701_models.ListTagResourcesResponse(),
1919
- await self.call_api_async(params, req, runtime)
1920
- )
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
+ )
1921
2133
 
1922
2134
  def list_tag_resources(
1923
2135
  self,
@@ -1977,10 +2189,16 @@ class Client(OpenApiClient):
1977
2189
  req_body_type='formData',
1978
2190
  body_type='json'
1979
2191
  )
1980
- return TeaCore.from_map(
1981
- ehpc_instant_20230701_models.RemoveImageResponse(),
1982
- self.call_api(params, req, runtime)
1983
- )
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
+ )
1984
2202
 
1985
2203
  async def remove_image_with_options_async(
1986
2204
  self,
@@ -2014,10 +2232,16 @@ class Client(OpenApiClient):
2014
2232
  req_body_type='formData',
2015
2233
  body_type='json'
2016
2234
  )
2017
- return TeaCore.from_map(
2018
- ehpc_instant_20230701_models.RemoveImageResponse(),
2019
- await self.call_api_async(params, req, runtime)
2020
- )
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
+ )
2021
2245
 
2022
2246
  def remove_image(
2023
2247
  self,
@@ -2079,10 +2303,16 @@ class Client(OpenApiClient):
2079
2303
  req_body_type='formData',
2080
2304
  body_type='json'
2081
2305
  )
2082
- return TeaCore.from_map(
2083
- ehpc_instant_20230701_models.TagResourcesResponse(),
2084
- self.call_api(params, req, runtime)
2085
- )
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
+ )
2086
2316
 
2087
2317
  async def tag_resources_with_options_async(
2088
2318
  self,
@@ -2118,10 +2348,16 @@ class Client(OpenApiClient):
2118
2348
  req_body_type='formData',
2119
2349
  body_type='json'
2120
2350
  )
2121
- return TeaCore.from_map(
2122
- ehpc_instant_20230701_models.TagResourcesResponse(),
2123
- await self.call_api_async(params, req, runtime)
2124
- )
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
+ )
2125
2361
 
2126
2362
  def tag_resources(
2127
2363
  self,
@@ -2185,10 +2421,16 @@ class Client(OpenApiClient):
2185
2421
  req_body_type='formData',
2186
2422
  body_type='json'
2187
2423
  )
2188
- return TeaCore.from_map(
2189
- ehpc_instant_20230701_models.UnTagResourcesResponse(),
2190
- self.call_api(params, req, runtime)
2191
- )
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
+ )
2192
2434
 
2193
2435
  async def un_tag_resources_with_options_async(
2194
2436
  self,
@@ -2226,10 +2468,16 @@ class Client(OpenApiClient):
2226
2468
  req_body_type='formData',
2227
2469
  body_type='json'
2228
2470
  )
2229
- return TeaCore.from_map(
2230
- ehpc_instant_20230701_models.UnTagResourcesResponse(),
2231
- await self.call_api_async(params, req, runtime)
2232
- )
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
+ )
2233
2481
 
2234
2482
  def un_tag_resources(
2235
2483
  self,
@@ -2295,10 +2543,16 @@ class Client(OpenApiClient):
2295
2543
  req_body_type='formData',
2296
2544
  body_type='json'
2297
2545
  )
2298
- return TeaCore.from_map(
2299
- ehpc_instant_20230701_models.UpdatePoolResponse(),
2300
- self.call_api(params, req, runtime)
2301
- )
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
+ )
2302
2556
 
2303
2557
  async def update_pool_with_options_async(
2304
2558
  self,
@@ -2338,10 +2592,16 @@ class Client(OpenApiClient):
2338
2592
  req_body_type='formData',
2339
2593
  body_type='json'
2340
2594
  )
2341
- return TeaCore.from_map(
2342
- ehpc_instant_20230701_models.UpdatePoolResponse(),
2343
- await self.call_api_async(params, req, runtime)
2344
- )
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
+ )
2345
2605
 
2346
2606
  def update_pool(
2347
2607
  self,
@@ -441,6 +441,62 @@ class CreateJobRequestDeploymentPolicy(TeaModel):
441
441
  return self
442
442
 
443
443
 
444
+ class CreateJobRequestSecurityPolicySecurityGroup(TeaModel):
445
+ def __init__(
446
+ self,
447
+ security_group_ids: List[str] = None,
448
+ ):
449
+ self.security_group_ids = security_group_ids
450
+
451
+ def validate(self):
452
+ pass
453
+
454
+ def to_map(self):
455
+ _map = super().to_map()
456
+ if _map is not None:
457
+ return _map
458
+
459
+ result = dict()
460
+ if self.security_group_ids is not None:
461
+ result['SecurityGroupIds'] = self.security_group_ids
462
+ return result
463
+
464
+ def from_map(self, m: dict = None):
465
+ m = m or dict()
466
+ if m.get('SecurityGroupIds') is not None:
467
+ self.security_group_ids = m.get('SecurityGroupIds')
468
+ return self
469
+
470
+
471
+ class CreateJobRequestSecurityPolicy(TeaModel):
472
+ def __init__(
473
+ self,
474
+ security_group: CreateJobRequestSecurityPolicySecurityGroup = None,
475
+ ):
476
+ self.security_group = security_group
477
+
478
+ def validate(self):
479
+ if self.security_group:
480
+ self.security_group.validate()
481
+
482
+ def to_map(self):
483
+ _map = super().to_map()
484
+ if _map is not None:
485
+ return _map
486
+
487
+ result = dict()
488
+ if self.security_group is not None:
489
+ result['SecurityGroup'] = self.security_group.to_map()
490
+ return result
491
+
492
+ def from_map(self, m: dict = None):
493
+ m = m or dict()
494
+ if m.get('SecurityGroup') is not None:
495
+ temp_model = CreateJobRequestSecurityPolicySecurityGroup()
496
+ self.security_group = temp_model.from_map(m['SecurityGroup'])
497
+ return self
498
+
499
+
444
500
  class CreateJobRequestTasksExecutorPolicyArraySpec(TeaModel):
445
501
  def __init__(
446
502
  self,
@@ -928,6 +984,7 @@ class CreateJobRequest(TeaModel):
928
984
  job_description: str = None,
929
985
  job_name: str = None,
930
986
  job_scheduler: str = None,
987
+ security_policy: CreateJobRequestSecurityPolicy = None,
931
988
  tasks: List[CreateJobRequestTasks] = None,
932
989
  ):
933
990
  self.deployment_policy = deployment_policy
@@ -935,12 +992,15 @@ class CreateJobRequest(TeaModel):
935
992
  # This parameter is required.
936
993
  self.job_name = job_name
937
994
  self.job_scheduler = job_scheduler
995
+ self.security_policy = security_policy
938
996
  # This parameter is required.
939
997
  self.tasks = tasks
940
998
 
941
999
  def validate(self):
942
1000
  if self.deployment_policy:
943
1001
  self.deployment_policy.validate()
1002
+ if self.security_policy:
1003
+ self.security_policy.validate()
944
1004
  if self.tasks:
945
1005
  for k in self.tasks:
946
1006
  if k:
@@ -960,6 +1020,8 @@ class CreateJobRequest(TeaModel):
960
1020
  result['JobName'] = self.job_name
961
1021
  if self.job_scheduler is not None:
962
1022
  result['JobScheduler'] = self.job_scheduler
1023
+ if self.security_policy is not None:
1024
+ result['SecurityPolicy'] = self.security_policy.to_map()
963
1025
  result['Tasks'] = []
964
1026
  if self.tasks is not None:
965
1027
  for k in self.tasks:
@@ -977,6 +1039,9 @@ class CreateJobRequest(TeaModel):
977
1039
  self.job_name = m.get('JobName')
978
1040
  if m.get('JobScheduler') is not None:
979
1041
  self.job_scheduler = m.get('JobScheduler')
1042
+ if m.get('SecurityPolicy') is not None:
1043
+ temp_model = CreateJobRequestSecurityPolicy()
1044
+ self.security_policy = temp_model.from_map(m['SecurityPolicy'])
980
1045
  self.tasks = []
981
1046
  if m.get('Tasks') is not None:
982
1047
  for k in m.get('Tasks'):
@@ -992,6 +1057,7 @@ class CreateJobShrinkRequest(TeaModel):
992
1057
  job_description: str = None,
993
1058
  job_name: str = None,
994
1059
  job_scheduler: str = None,
1060
+ security_policy_shrink: str = None,
995
1061
  tasks_shrink: str = None,
996
1062
  ):
997
1063
  self.deployment_policy_shrink = deployment_policy_shrink
@@ -999,6 +1065,7 @@ class CreateJobShrinkRequest(TeaModel):
999
1065
  # This parameter is required.
1000
1066
  self.job_name = job_name
1001
1067
  self.job_scheduler = job_scheduler
1068
+ self.security_policy_shrink = security_policy_shrink
1002
1069
  # This parameter is required.
1003
1070
  self.tasks_shrink = tasks_shrink
1004
1071
 
@@ -1019,6 +1086,8 @@ class CreateJobShrinkRequest(TeaModel):
1019
1086
  result['JobName'] = self.job_name
1020
1087
  if self.job_scheduler is not None:
1021
1088
  result['JobScheduler'] = self.job_scheduler
1089
+ if self.security_policy_shrink is not None:
1090
+ result['SecurityPolicy'] = self.security_policy_shrink
1022
1091
  if self.tasks_shrink is not None:
1023
1092
  result['Tasks'] = self.tasks_shrink
1024
1093
  return result
@@ -1033,6 +1102,8 @@ class CreateJobShrinkRequest(TeaModel):
1033
1102
  self.job_name = m.get('JobName')
1034
1103
  if m.get('JobScheduler') is not None:
1035
1104
  self.job_scheduler = m.get('JobScheduler')
1105
+ if m.get('SecurityPolicy') is not None:
1106
+ self.security_policy_shrink = m.get('SecurityPolicy')
1036
1107
  if m.get('Tasks') is not None:
1037
1108
  self.tasks_shrink = m.get('Tasks')
1038
1109
  return self
@@ -3569,8 +3640,8 @@ class ListExecutorsRequest(TeaModel):
3569
3640
  def __init__(
3570
3641
  self,
3571
3642
  filter: ListExecutorsRequestFilter = None,
3572
- page_number: str = None,
3573
- page_size: str = None,
3643
+ page_number: int = None,
3644
+ page_size: int = None,
3574
3645
  ):
3575
3646
  self.filter = filter
3576
3647
  self.page_number = page_number
@@ -3610,8 +3681,8 @@ class ListExecutorsShrinkRequest(TeaModel):
3610
3681
  def __init__(
3611
3682
  self,
3612
3683
  filter_shrink: str = None,
3613
- page_number: str = None,
3614
- page_size: str = None,
3684
+ page_number: int = None,
3685
+ page_size: int = None,
3615
3686
  ):
3616
3687
  self.filter_shrink = filter_shrink
3617
3688
  self.page_number = page_number
@@ -3761,10 +3832,12 @@ class ListExecutorsResponseBodyExecutorsTags(TeaModel):
3761
3832
  class ListExecutorsResponseBodyExecutors(TeaModel):
3762
3833
  def __init__(
3763
3834
  self,
3835
+ app_name: str = None,
3764
3836
  array_index: int = None,
3765
3837
  create_time: str = None,
3766
3838
  end_time: str = None,
3767
3839
  executor_id: str = None,
3840
+ expiration_time: str = None,
3768
3841
  external_ip_address: List[str] = None,
3769
3842
  host_name: List[str] = None,
3770
3843
  image: str = None,
@@ -3781,10 +3854,12 @@ class ListExecutorsResponseBodyExecutors(TeaModel):
3781
3854
  task_sustainable: bool = None,
3782
3855
  vswitch_id: str = None,
3783
3856
  ):
3857
+ self.app_name = app_name
3784
3858
  self.array_index = array_index
3785
3859
  self.create_time = create_time
3786
3860
  self.end_time = end_time
3787
3861
  self.executor_id = executor_id
3862
+ self.expiration_time = expiration_time
3788
3863
  self.external_ip_address = external_ip_address
3789
3864
  self.host_name = host_name
3790
3865
  self.image = image
@@ -3815,6 +3890,8 @@ class ListExecutorsResponseBodyExecutors(TeaModel):
3815
3890
  return _map
3816
3891
 
3817
3892
  result = dict()
3893
+ if self.app_name is not None:
3894
+ result['AppName'] = self.app_name
3818
3895
  if self.array_index is not None:
3819
3896
  result['ArrayIndex'] = self.array_index
3820
3897
  if self.create_time is not None:
@@ -3823,6 +3900,8 @@ class ListExecutorsResponseBodyExecutors(TeaModel):
3823
3900
  result['EndTime'] = self.end_time
3824
3901
  if self.executor_id is not None:
3825
3902
  result['ExecutorId'] = self.executor_id
3903
+ if self.expiration_time is not None:
3904
+ result['ExpirationTime'] = self.expiration_time
3826
3905
  if self.external_ip_address is not None:
3827
3906
  result['ExternalIpAddress'] = self.external_ip_address
3828
3907
  if self.host_name is not None:
@@ -3859,6 +3938,8 @@ class ListExecutorsResponseBodyExecutors(TeaModel):
3859
3938
 
3860
3939
  def from_map(self, m: dict = None):
3861
3940
  m = m or dict()
3941
+ if m.get('AppName') is not None:
3942
+ self.app_name = m.get('AppName')
3862
3943
  if m.get('ArrayIndex') is not None:
3863
3944
  self.array_index = m.get('ArrayIndex')
3864
3945
  if m.get('CreateTime') is not None:
@@ -3867,6 +3948,8 @@ class ListExecutorsResponseBodyExecutors(TeaModel):
3867
3948
  self.end_time = m.get('EndTime')
3868
3949
  if m.get('ExecutorId') is not None:
3869
3950
  self.executor_id = m.get('ExecutorId')
3951
+ if m.get('ExpirationTime') is not None:
3952
+ self.expiration_time = m.get('ExpirationTime')
3870
3953
  if m.get('ExternalIpAddress') is not None:
3871
3954
  self.external_ip_address = m.get('ExternalIpAddress')
3872
3955
  if m.get('HostName') is not None:
@@ -3908,8 +3991,8 @@ class ListExecutorsResponseBody(TeaModel):
3908
3991
  def __init__(
3909
3992
  self,
3910
3993
  executors: List[ListExecutorsResponseBodyExecutors] = None,
3911
- page_number: str = None,
3912
- page_size: str = None,
3994
+ page_number: int = None,
3995
+ page_size: int = None,
3913
3996
  request_id: str = None,
3914
3997
  total_count: str = None,
3915
3998
  ):
@@ -4330,8 +4413,8 @@ class ListJobExecutorsRequest(TeaModel):
4330
4413
  def __init__(
4331
4414
  self,
4332
4415
  job_id: str = None,
4333
- page_number: str = None,
4334
- page_size: str = None,
4416
+ page_number: int = None,
4417
+ page_size: int = None,
4335
4418
  task_name: str = None,
4336
4419
  ):
4337
4420
  self.job_id = job_id
@@ -4474,6 +4557,7 @@ class ListJobExecutorsResponseBodyExecutors(TeaModel):
4474
4557
  create_time: str = None,
4475
4558
  end_time: str = None,
4476
4559
  executor_id: str = None,
4560
+ expiration_time: str = None,
4477
4561
  external_ip_address: List[str] = None,
4478
4562
  host_name: List[str] = None,
4479
4563
  ip_address: List[str] = None,
@@ -4486,6 +4570,7 @@ class ListJobExecutorsResponseBodyExecutors(TeaModel):
4486
4570
  self.create_time = create_time
4487
4571
  self.end_time = end_time
4488
4572
  self.executor_id = executor_id
4573
+ self.expiration_time = expiration_time
4489
4574
  self.external_ip_address = external_ip_address
4490
4575
  self.host_name = host_name
4491
4576
  self.ip_address = ip_address
@@ -4514,6 +4599,8 @@ class ListJobExecutorsResponseBodyExecutors(TeaModel):
4514
4599
  result['EndTime'] = self.end_time
4515
4600
  if self.executor_id is not None:
4516
4601
  result['ExecutorId'] = self.executor_id
4602
+ if self.expiration_time is not None:
4603
+ result['ExpirationTime'] = self.expiration_time
4517
4604
  if self.external_ip_address is not None:
4518
4605
  result['ExternalIpAddress'] = self.external_ip_address
4519
4606
  if self.host_name is not None:
@@ -4542,6 +4629,8 @@ class ListJobExecutorsResponseBodyExecutors(TeaModel):
4542
4629
  self.end_time = m.get('EndTime')
4543
4630
  if m.get('ExecutorId') is not None:
4544
4631
  self.executor_id = m.get('ExecutorId')
4632
+ if m.get('ExpirationTime') is not None:
4633
+ self.expiration_time = m.get('ExpirationTime')
4545
4634
  if m.get('ExternalIpAddress') is not None:
4546
4635
  self.external_ip_address = m.get('ExternalIpAddress')
4547
4636
  if m.get('HostName') is not None:
@@ -4568,8 +4657,8 @@ class ListJobExecutorsResponseBody(TeaModel):
4568
4657
  executor_status: ListJobExecutorsResponseBodyExecutorStatus = None,
4569
4658
  executors: List[ListJobExecutorsResponseBodyExecutors] = None,
4570
4659
  job_id: str = None,
4571
- page_number: str = None,
4572
- page_size: str = None,
4660
+ page_number: int = None,
4661
+ page_size: int = None,
4573
4662
  request_id: str = None,
4574
4663
  task_name: str = None,
4575
4664
  total_count: str = None,
@@ -4771,8 +4860,8 @@ class ListJobsRequest(TeaModel):
4771
4860
  def __init__(
4772
4861
  self,
4773
4862
  filter: ListJobsRequestFilter = None,
4774
- page_number: str = None,
4775
- page_size: str = None,
4863
+ page_number: int = None,
4864
+ page_size: int = None,
4776
4865
  sort_by: ListJobsRequestSortBy = None,
4777
4866
  ):
4778
4867
  self.filter = filter
@@ -4821,8 +4910,8 @@ class ListJobsShrinkRequest(TeaModel):
4821
4910
  def __init__(
4822
4911
  self,
4823
4912
  filter_shrink: str = None,
4824
- page_number: str = None,
4825
- page_size: str = None,
4913
+ page_number: int = None,
4914
+ page_size: int = None,
4826
4915
  sort_by_shrink: str = None,
4827
4916
  ):
4828
4917
  self.filter_shrink = filter_shrink
@@ -4898,6 +4987,7 @@ class ListJobsResponseBodyJobListTags(TeaModel):
4898
4987
  class ListJobsResponseBodyJobList(TeaModel):
4899
4988
  def __init__(
4900
4989
  self,
4990
+ app_name: str = None,
4901
4991
  create_time: str = None,
4902
4992
  end_time: str = None,
4903
4993
  executor_count: int = None,
@@ -4911,6 +5001,7 @@ class ListJobsResponseBodyJobList(TeaModel):
4911
5001
  task_count: int = None,
4912
5002
  task_sustainable: bool = None,
4913
5003
  ):
5004
+ self.app_name = app_name
4914
5005
  self.create_time = create_time
4915
5006
  self.end_time = end_time
4916
5007
  self.executor_count = executor_count
@@ -4936,6 +5027,8 @@ class ListJobsResponseBodyJobList(TeaModel):
4936
5027
  return _map
4937
5028
 
4938
5029
  result = dict()
5030
+ if self.app_name is not None:
5031
+ result['AppName'] = self.app_name
4939
5032
  if self.create_time is not None:
4940
5033
  result['CreateTime'] = self.create_time
4941
5034
  if self.end_time is not None:
@@ -4966,6 +5059,8 @@ class ListJobsResponseBodyJobList(TeaModel):
4966
5059
 
4967
5060
  def from_map(self, m: dict = None):
4968
5061
  m = m or dict()
5062
+ if m.get('AppName') is not None:
5063
+ self.app_name = m.get('AppName')
4969
5064
  if m.get('CreateTime') is not None:
4970
5065
  self.create_time = m.get('CreateTime')
4971
5066
  if m.get('EndTime') is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-ehpcinstant20230701
3
- Version: 1.2.0
3
+ Version: 2.0.0
4
4
  Summary: Alibaba Cloud EhpcInstant (20230701) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -0,0 +1,8 @@
1
+ alibabacloud_ehpcinstant20230701/__init__.py,sha256=8sGE31KO-DzdioQZ2J7tZ-GG2VwZjYHpfIX2_sBl6H0,21
2
+ alibabacloud_ehpcinstant20230701/client.py,sha256=nDHgXf-yLtRn9s10lZKLz899F6TXJ24bdiBRNW3Vigg,106202
3
+ alibabacloud_ehpcinstant20230701/models.py,sha256=PxACvasx_3cacKNOCvZzOuD8pHb0ylb6hGZM8MlyMfk,195585
4
+ alibabacloud_ehpcinstant20230701-2.0.0.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
+ alibabacloud_ehpcinstant20230701-2.0.0.dist-info/METADATA,sha256=e6n_UxsxZ7y80GIaB8K5AWVv1P1b8ZeW3z0WOVGyBl8,2368
6
+ alibabacloud_ehpcinstant20230701-2.0.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
+ alibabacloud_ehpcinstant20230701-2.0.0.dist-info/top_level.txt,sha256=2xOp8gwGZyTr4yO4gb1EEvC7CFiyZnvob-AgjZHkZJc,33
8
+ alibabacloud_ehpcinstant20230701-2.0.0.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- alibabacloud_ehpcinstant20230701/__init__.py,sha256=5GblYyMbk8JySosj59Rvi2uzLqfP-DAs77ikwTafXT4,21
2
- alibabacloud_ehpcinstant20230701/client.py,sha256=c1N2dMsIM02RtHhEC-eDjslz7u2PtF0lwCtD0h2kbbI,91830
3
- alibabacloud_ehpcinstant20230701/models.py,sha256=NXOpQ2Kk_OJzomd9wFFM-KsqxH3Oq-MENWhl0X0JmKQ,192146
4
- alibabacloud_ehpcinstant20230701-1.2.0.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
- alibabacloud_ehpcinstant20230701-1.2.0.dist-info/METADATA,sha256=Z8CavHtlIvMKmQtOzpT7GJvd5AGdnm5VAwTMvCxpGu4,2368
6
- alibabacloud_ehpcinstant20230701-1.2.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
- alibabacloud_ehpcinstant20230701-1.2.0.dist-info/top_level.txt,sha256=2xOp8gwGZyTr4yO4gb1EEvC7CFiyZnvob-AgjZHkZJc,33
8
- alibabacloud_ehpcinstant20230701-1.2.0.dist-info/RECORD,,