alibabacloud-ehpcinstant20230701 2.0.3__tar.gz → 2.0.5__tar.gz

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.

Files changed (17) hide show
  1. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.5}/ChangeLog.md +16 -0
  2. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.5}/PKG-INFO +1 -1
  3. alibabacloud_ehpcinstant20230701-2.0.5/alibabacloud_ehpcinstant20230701/__init__.py +1 -0
  4. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.5}/alibabacloud_ehpcinstant20230701/client.py +22 -6
  5. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.5}/alibabacloud_ehpcinstant20230701/models.py +117 -1
  6. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.5}/alibabacloud_ehpcinstant20230701.egg-info/PKG-INFO +1 -1
  7. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.5}/setup.py +1 -1
  8. alibabacloud_ehpcinstant20230701-2.0.3/alibabacloud_ehpcinstant20230701/__init__.py +0 -1
  9. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.5}/LICENSE +0 -0
  10. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.5}/MANIFEST.in +0 -0
  11. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.5}/README-CN.md +0 -0
  12. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.5}/README.md +0 -0
  13. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.5}/alibabacloud_ehpcinstant20230701.egg-info/SOURCES.txt +0 -0
  14. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.5}/alibabacloud_ehpcinstant20230701.egg-info/dependency_links.txt +0 -0
  15. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.5}/alibabacloud_ehpcinstant20230701.egg-info/requires.txt +0 -0
  16. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.5}/alibabacloud_ehpcinstant20230701.egg-info/top_level.txt +0 -0
  17. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.5}/setup.cfg +0 -0
@@ -1,3 +1,19 @@
1
+ 2025-07-03 Version: 2.0.4
2
+ - Update API GetImage: add request parameters AdditionalRegionIds.
3
+ - Update API GetImage: add response parameters Body.Image.AdditionalRegionsInfo.
4
+
5
+
6
+ 2025-06-12 Version: 2.0.3
7
+ - Update API CreateJob: add request parameters DeploymentPolicy.Pool.
8
+ - Update API CreateJob: add request parameters DeploymentPolicy.Priority.
9
+ - Update API CreateJob: add request parameters Tasks.$.TaskSpec.Resource.InstanceTypes.
10
+ - Update API CreateJob: add request parameters Tasks.$.TaskSpec.TaskExecutor.$.Container.Arg.
11
+ - Update API CreateJob: add request parameters Tasks.$.TaskSpec.TaskExecutor.$.VM.Password.
12
+ - Update API CreateJob: add request parameters Tasks.$.TaskSpec.VolumeMount.$.ReadOnly.
13
+ - Update API GetJob: add response parameters Body.JobInfo.Tasks.$.TaskSpec.Resource.InstanceTypes.
14
+ - Update API GetJob: add response parameters Body.JobInfo.Tasks.$.TaskSpec.TaskExecutor.$.VM.UserName.
15
+
16
+
1
17
  2025-05-09 Version: 2.0.2
2
18
  - Update API GetJob: add response parameters Body.JobInfo.AppExtraInfo.
3
19
  - Update API ListJobs: add response parameters Body.JobList.$.AppExtraInfo.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud_ehpcinstant20230701
3
- Version: 2.0.3
3
+ Version: 2.0.5
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
@@ -435,6 +435,8 @@ class Client(OpenApiClient):
435
435
  query = {}
436
436
  if not UtilClient.is_unset(request.executor_ids_shrink):
437
437
  query['ExecutorIds'] = request.executor_ids_shrink
438
+ if not UtilClient.is_unset(request.job_scheduler):
439
+ query['JobScheduler'] = request.job_scheduler
438
440
  if not UtilClient.is_unset(request.job_spec_shrink):
439
441
  query['JobSpec'] = request.job_spec_shrink
440
442
  req = open_api_models.OpenApiRequest(
@@ -478,6 +480,8 @@ class Client(OpenApiClient):
478
480
  query = {}
479
481
  if not UtilClient.is_unset(request.executor_ids_shrink):
480
482
  query['ExecutorIds'] = request.executor_ids_shrink
483
+ if not UtilClient.is_unset(request.job_scheduler):
484
+ query['JobScheduler'] = request.job_scheduler
481
485
  if not UtilClient.is_unset(request.job_spec_shrink):
482
486
  query['JobSpec'] = request.job_spec_shrink
483
487
  req = open_api_models.OpenApiRequest(
@@ -963,18 +967,24 @@ class Client(OpenApiClient):
963
967
 
964
968
  def get_image_with_options(
965
969
  self,
966
- request: ehpc_instant_20230701_models.GetImageRequest,
970
+ tmp_req: ehpc_instant_20230701_models.GetImageRequest,
967
971
  runtime: util_models.RuntimeOptions,
968
972
  ) -> ehpc_instant_20230701_models.GetImageResponse:
969
973
  """
970
974
  @summary 查询托管侧镜像详情。
971
975
 
972
- @param request: GetImageRequest
976
+ @param tmp_req: GetImageRequest
973
977
  @param runtime: runtime options for this request RuntimeOptions
974
978
  @return: GetImageResponse
975
979
  """
976
- UtilClient.validate_model(request)
980
+ UtilClient.validate_model(tmp_req)
981
+ request = ehpc_instant_20230701_models.GetImageShrinkRequest()
982
+ OpenApiUtilClient.convert(tmp_req, request)
983
+ if not UtilClient.is_unset(tmp_req.additional_region_ids):
984
+ request.additional_region_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.additional_region_ids, 'AdditionalRegionIds', 'json')
977
985
  query = {}
986
+ if not UtilClient.is_unset(request.additional_region_ids_shrink):
987
+ query['AdditionalRegionIds'] = request.additional_region_ids_shrink
978
988
  if not UtilClient.is_unset(request.image_category):
979
989
  query['ImageCategory'] = request.image_category
980
990
  if not UtilClient.is_unset(request.image_id):
@@ -1002,18 +1012,24 @@ class Client(OpenApiClient):
1002
1012
 
1003
1013
  async def get_image_with_options_async(
1004
1014
  self,
1005
- request: ehpc_instant_20230701_models.GetImageRequest,
1015
+ tmp_req: ehpc_instant_20230701_models.GetImageRequest,
1006
1016
  runtime: util_models.RuntimeOptions,
1007
1017
  ) -> ehpc_instant_20230701_models.GetImageResponse:
1008
1018
  """
1009
1019
  @summary 查询托管侧镜像详情。
1010
1020
 
1011
- @param request: GetImageRequest
1021
+ @param tmp_req: GetImageRequest
1012
1022
  @param runtime: runtime options for this request RuntimeOptions
1013
1023
  @return: GetImageResponse
1014
1024
  """
1015
- UtilClient.validate_model(request)
1025
+ UtilClient.validate_model(tmp_req)
1026
+ request = ehpc_instant_20230701_models.GetImageShrinkRequest()
1027
+ OpenApiUtilClient.convert(tmp_req, request)
1028
+ if not UtilClient.is_unset(tmp_req.additional_region_ids):
1029
+ request.additional_region_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.additional_region_ids, 'AdditionalRegionIds', 'json')
1016
1030
  query = {}
1031
+ if not UtilClient.is_unset(request.additional_region_ids_shrink):
1032
+ query['AdditionalRegionIds'] = request.additional_region_ids_shrink
1017
1033
  if not UtilClient.is_unset(request.image_category):
1018
1034
  query['ImageCategory'] = request.image_category
1019
1035
  if not UtilClient.is_unset(request.image_id):
@@ -1528,9 +1528,11 @@ class DeleteJobsRequest(TeaModel):
1528
1528
  def __init__(
1529
1529
  self,
1530
1530
  executor_ids: List[str] = None,
1531
+ job_scheduler: str = None,
1531
1532
  job_spec: List[DeleteJobsRequestJobSpec] = None,
1532
1533
  ):
1533
1534
  self.executor_ids = executor_ids
1535
+ self.job_scheduler = job_scheduler
1534
1536
  self.job_spec = job_spec
1535
1537
 
1536
1538
  def validate(self):
@@ -1547,6 +1549,8 @@ class DeleteJobsRequest(TeaModel):
1547
1549
  result = dict()
1548
1550
  if self.executor_ids is not None:
1549
1551
  result['ExecutorIds'] = self.executor_ids
1552
+ if self.job_scheduler is not None:
1553
+ result['JobScheduler'] = self.job_scheduler
1550
1554
  result['JobSpec'] = []
1551
1555
  if self.job_spec is not None:
1552
1556
  for k in self.job_spec:
@@ -1557,6 +1561,8 @@ class DeleteJobsRequest(TeaModel):
1557
1561
  m = m or dict()
1558
1562
  if m.get('ExecutorIds') is not None:
1559
1563
  self.executor_ids = m.get('ExecutorIds')
1564
+ if m.get('JobScheduler') is not None:
1565
+ self.job_scheduler = m.get('JobScheduler')
1560
1566
  self.job_spec = []
1561
1567
  if m.get('JobSpec') is not None:
1562
1568
  for k in m.get('JobSpec'):
@@ -1569,9 +1575,11 @@ class DeleteJobsShrinkRequest(TeaModel):
1569
1575
  def __init__(
1570
1576
  self,
1571
1577
  executor_ids_shrink: str = None,
1578
+ job_scheduler: str = None,
1572
1579
  job_spec_shrink: str = None,
1573
1580
  ):
1574
1581
  self.executor_ids_shrink = executor_ids_shrink
1582
+ self.job_scheduler = job_scheduler
1575
1583
  self.job_spec_shrink = job_spec_shrink
1576
1584
 
1577
1585
  def validate(self):
@@ -1585,6 +1593,8 @@ class DeleteJobsShrinkRequest(TeaModel):
1585
1593
  result = dict()
1586
1594
  if self.executor_ids_shrink is not None:
1587
1595
  result['ExecutorIds'] = self.executor_ids_shrink
1596
+ if self.job_scheduler is not None:
1597
+ result['JobScheduler'] = self.job_scheduler
1588
1598
  if self.job_spec_shrink is not None:
1589
1599
  result['JobSpec'] = self.job_spec_shrink
1590
1600
  return result
@@ -1593,6 +1603,8 @@ class DeleteJobsShrinkRequest(TeaModel):
1593
1603
  m = m or dict()
1594
1604
  if m.get('ExecutorIds') is not None:
1595
1605
  self.executor_ids_shrink = m.get('ExecutorIds')
1606
+ if m.get('JobScheduler') is not None:
1607
+ self.job_scheduler = m.get('JobScheduler')
1596
1608
  if m.get('JobSpec') is not None:
1597
1609
  self.job_spec_shrink = m.get('JobSpec')
1598
1610
  return self
@@ -2327,12 +2339,13 @@ class GetAppVersionsResponse(TeaModel):
2327
2339
  class GetImageRequest(TeaModel):
2328
2340
  def __init__(
2329
2341
  self,
2342
+ additional_region_ids: List[str] = None,
2330
2343
  image_category: str = None,
2331
2344
  image_id: str = None,
2332
2345
  image_type: str = None,
2333
2346
  ):
2347
+ self.additional_region_ids = additional_region_ids
2334
2348
  self.image_category = image_category
2335
- # This parameter is required.
2336
2349
  self.image_id = image_id
2337
2350
  self.image_type = image_type
2338
2351
 
@@ -2345,6 +2358,8 @@ class GetImageRequest(TeaModel):
2345
2358
  return _map
2346
2359
 
2347
2360
  result = dict()
2361
+ if self.additional_region_ids is not None:
2362
+ result['AdditionalRegionIds'] = self.additional_region_ids
2348
2363
  if self.image_category is not None:
2349
2364
  result['ImageCategory'] = self.image_category
2350
2365
  if self.image_id is not None:
@@ -2355,6 +2370,8 @@ class GetImageRequest(TeaModel):
2355
2370
 
2356
2371
  def from_map(self, m: dict = None):
2357
2372
  m = m or dict()
2373
+ if m.get('AdditionalRegionIds') is not None:
2374
+ self.additional_region_ids = m.get('AdditionalRegionIds')
2358
2375
  if m.get('ImageCategory') is not None:
2359
2376
  self.image_category = m.get('ImageCategory')
2360
2377
  if m.get('ImageId') is not None:
@@ -2364,6 +2381,90 @@ class GetImageRequest(TeaModel):
2364
2381
  return self
2365
2382
 
2366
2383
 
2384
+ class GetImageShrinkRequest(TeaModel):
2385
+ def __init__(
2386
+ self,
2387
+ additional_region_ids_shrink: str = None,
2388
+ image_category: str = None,
2389
+ image_id: str = None,
2390
+ image_type: str = None,
2391
+ ):
2392
+ self.additional_region_ids_shrink = additional_region_ids_shrink
2393
+ self.image_category = image_category
2394
+ self.image_id = image_id
2395
+ self.image_type = image_type
2396
+
2397
+ def validate(self):
2398
+ pass
2399
+
2400
+ def to_map(self):
2401
+ _map = super().to_map()
2402
+ if _map is not None:
2403
+ return _map
2404
+
2405
+ result = dict()
2406
+ if self.additional_region_ids_shrink is not None:
2407
+ result['AdditionalRegionIds'] = self.additional_region_ids_shrink
2408
+ if self.image_category is not None:
2409
+ result['ImageCategory'] = self.image_category
2410
+ if self.image_id is not None:
2411
+ result['ImageId'] = self.image_id
2412
+ if self.image_type is not None:
2413
+ result['ImageType'] = self.image_type
2414
+ return result
2415
+
2416
+ def from_map(self, m: dict = None):
2417
+ m = m or dict()
2418
+ if m.get('AdditionalRegionIds') is not None:
2419
+ self.additional_region_ids_shrink = m.get('AdditionalRegionIds')
2420
+ if m.get('ImageCategory') is not None:
2421
+ self.image_category = m.get('ImageCategory')
2422
+ if m.get('ImageId') is not None:
2423
+ self.image_id = m.get('ImageId')
2424
+ if m.get('ImageType') is not None:
2425
+ self.image_type = m.get('ImageType')
2426
+ return self
2427
+
2428
+
2429
+ class GetImageResponseBodyImageAdditionalRegionsInfo(TeaModel):
2430
+ def __init__(
2431
+ self,
2432
+ image_id: str = None,
2433
+ region_id: str = None,
2434
+ status: str = None,
2435
+ ):
2436
+ self.image_id = image_id
2437
+ self.region_id = region_id
2438
+ self.status = status
2439
+
2440
+ def validate(self):
2441
+ pass
2442
+
2443
+ def to_map(self):
2444
+ _map = super().to_map()
2445
+ if _map is not None:
2446
+ return _map
2447
+
2448
+ result = dict()
2449
+ if self.image_id is not None:
2450
+ result['ImageId'] = self.image_id
2451
+ if self.region_id is not None:
2452
+ result['RegionId'] = self.region_id
2453
+ if self.status is not None:
2454
+ result['Status'] = self.status
2455
+ return result
2456
+
2457
+ def from_map(self, m: dict = None):
2458
+ m = m or dict()
2459
+ if m.get('ImageId') is not None:
2460
+ self.image_id = m.get('ImageId')
2461
+ if m.get('RegionId') is not None:
2462
+ self.region_id = m.get('RegionId')
2463
+ if m.get('Status') is not None:
2464
+ self.status = m.get('Status')
2465
+ return self
2466
+
2467
+
2367
2468
  class GetImageResponseBodyImageContainerImageSpecRegistryCredential(TeaModel):
2368
2469
  def __init__(
2369
2470
  self,
@@ -2561,6 +2662,7 @@ class GetImageResponseBodyImageVMImageSpec(TeaModel):
2561
2662
  class GetImageResponseBodyImage(TeaModel):
2562
2663
  def __init__(
2563
2664
  self,
2665
+ additional_regions_info: List[GetImageResponseBodyImageAdditionalRegionsInfo] = None,
2564
2666
  app_id: str = None,
2565
2667
  container_image_spec: GetImageResponseBodyImageContainerImageSpec = None,
2566
2668
  create_time: str = None,
@@ -2573,6 +2675,7 @@ class GetImageResponseBodyImage(TeaModel):
2573
2675
  vmimage_spec: GetImageResponseBodyImageVMImageSpec = None,
2574
2676
  version: str = None,
2575
2677
  ):
2678
+ self.additional_regions_info = additional_regions_info
2576
2679
  self.app_id = app_id
2577
2680
  self.container_image_spec = container_image_spec
2578
2681
  self.create_time = create_time
@@ -2587,6 +2690,10 @@ class GetImageResponseBodyImage(TeaModel):
2587
2690
  self.version = version
2588
2691
 
2589
2692
  def validate(self):
2693
+ if self.additional_regions_info:
2694
+ for k in self.additional_regions_info:
2695
+ if k:
2696
+ k.validate()
2590
2697
  if self.container_image_spec:
2591
2698
  self.container_image_spec.validate()
2592
2699
  if self.document_info:
@@ -2600,6 +2707,10 @@ class GetImageResponseBodyImage(TeaModel):
2600
2707
  return _map
2601
2708
 
2602
2709
  result = dict()
2710
+ result['AdditionalRegionsInfo'] = []
2711
+ if self.additional_regions_info is not None:
2712
+ for k in self.additional_regions_info:
2713
+ result['AdditionalRegionsInfo'].append(k.to_map() if k else None)
2603
2714
  if self.app_id is not None:
2604
2715
  result['AppId'] = self.app_id
2605
2716
  if self.container_image_spec is not None:
@@ -2626,6 +2737,11 @@ class GetImageResponseBodyImage(TeaModel):
2626
2737
 
2627
2738
  def from_map(self, m: dict = None):
2628
2739
  m = m or dict()
2740
+ self.additional_regions_info = []
2741
+ if m.get('AdditionalRegionsInfo') is not None:
2742
+ for k in m.get('AdditionalRegionsInfo'):
2743
+ temp_model = GetImageResponseBodyImageAdditionalRegionsInfo()
2744
+ self.additional_regions_info.append(temp_model.from_map(k))
2629
2745
  if m.get('AppId') is not None:
2630
2746
  self.app_id = m.get('AppId')
2631
2747
  if m.get('ContainerImageSpec') is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-ehpcinstant20230701
3
- Version: 2.0.3
3
+ Version: 2.0.5
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
@@ -24,7 +24,7 @@ from setuptools import setup, find_packages
24
24
  """
25
25
  setup module for alibabacloud_ehpcinstant20230701.
26
26
 
27
- Created on 12/06/2025
27
+ Created on 04/07/2025
28
28
 
29
29
  @author: Alibaba Cloud SDK
30
30
  """