alibabacloud-ehpcinstant20230701 2.0.3__tar.gz → 2.0.4__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.4}/ChangeLog.md +11 -0
  2. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.4}/PKG-INFO +1 -1
  3. alibabacloud_ehpcinstant20230701-2.0.4/alibabacloud_ehpcinstant20230701/__init__.py +1 -0
  4. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.4}/alibabacloud_ehpcinstant20230701/client.py +18 -6
  5. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.4}/alibabacloud_ehpcinstant20230701/models.py +105 -1
  6. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.4}/alibabacloud_ehpcinstant20230701.egg-info/PKG-INFO +1 -1
  7. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.4}/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.4}/LICENSE +0 -0
  10. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.4}/MANIFEST.in +0 -0
  11. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.4}/README-CN.md +0 -0
  12. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.4}/README.md +0 -0
  13. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.4}/alibabacloud_ehpcinstant20230701.egg-info/SOURCES.txt +0 -0
  14. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.4}/alibabacloud_ehpcinstant20230701.egg-info/dependency_links.txt +0 -0
  15. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.4}/alibabacloud_ehpcinstant20230701.egg-info/requires.txt +0 -0
  16. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.4}/alibabacloud_ehpcinstant20230701.egg-info/top_level.txt +0 -0
  17. {alibabacloud_ehpcinstant20230701-2.0.3 → alibabacloud_ehpcinstant20230701-2.0.4}/setup.cfg +0 -0
@@ -1,3 +1,14 @@
1
+ 2025-06-12 Version: 2.0.3
2
+ - Update API CreateJob: add request parameters DeploymentPolicy.Pool.
3
+ - Update API CreateJob: add request parameters DeploymentPolicy.Priority.
4
+ - Update API CreateJob: add request parameters Tasks.$.TaskSpec.Resource.InstanceTypes.
5
+ - Update API CreateJob: add request parameters Tasks.$.TaskSpec.TaskExecutor.$.Container.Arg.
6
+ - Update API CreateJob: add request parameters Tasks.$.TaskSpec.TaskExecutor.$.VM.Password.
7
+ - Update API CreateJob: add request parameters Tasks.$.TaskSpec.VolumeMount.$.ReadOnly.
8
+ - Update API GetJob: add response parameters Body.JobInfo.Tasks.$.TaskSpec.Resource.InstanceTypes.
9
+ - Update API GetJob: add response parameters Body.JobInfo.Tasks.$.TaskSpec.TaskExecutor.$.VM.UserName.
10
+
11
+
1
12
  2025-05-09 Version: 2.0.2
2
13
  - Update API GetJob: add response parameters Body.JobInfo.AppExtraInfo.
3
14
  - 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.4
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
@@ -963,18 +963,24 @@ class Client(OpenApiClient):
963
963
 
964
964
  def get_image_with_options(
965
965
  self,
966
- request: ehpc_instant_20230701_models.GetImageRequest,
966
+ tmp_req: ehpc_instant_20230701_models.GetImageRequest,
967
967
  runtime: util_models.RuntimeOptions,
968
968
  ) -> ehpc_instant_20230701_models.GetImageResponse:
969
969
  """
970
970
  @summary 查询托管侧镜像详情。
971
971
 
972
- @param request: GetImageRequest
972
+ @param tmp_req: GetImageRequest
973
973
  @param runtime: runtime options for this request RuntimeOptions
974
974
  @return: GetImageResponse
975
975
  """
976
- UtilClient.validate_model(request)
976
+ UtilClient.validate_model(tmp_req)
977
+ request = ehpc_instant_20230701_models.GetImageShrinkRequest()
978
+ OpenApiUtilClient.convert(tmp_req, request)
979
+ if not UtilClient.is_unset(tmp_req.additional_region_ids):
980
+ request.additional_region_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.additional_region_ids, 'AdditionalRegionIds', 'json')
977
981
  query = {}
982
+ if not UtilClient.is_unset(request.additional_region_ids_shrink):
983
+ query['AdditionalRegionIds'] = request.additional_region_ids_shrink
978
984
  if not UtilClient.is_unset(request.image_category):
979
985
  query['ImageCategory'] = request.image_category
980
986
  if not UtilClient.is_unset(request.image_id):
@@ -1002,18 +1008,24 @@ class Client(OpenApiClient):
1002
1008
 
1003
1009
  async def get_image_with_options_async(
1004
1010
  self,
1005
- request: ehpc_instant_20230701_models.GetImageRequest,
1011
+ tmp_req: ehpc_instant_20230701_models.GetImageRequest,
1006
1012
  runtime: util_models.RuntimeOptions,
1007
1013
  ) -> ehpc_instant_20230701_models.GetImageResponse:
1008
1014
  """
1009
1015
  @summary 查询托管侧镜像详情。
1010
1016
 
1011
- @param request: GetImageRequest
1017
+ @param tmp_req: GetImageRequest
1012
1018
  @param runtime: runtime options for this request RuntimeOptions
1013
1019
  @return: GetImageResponse
1014
1020
  """
1015
- UtilClient.validate_model(request)
1021
+ UtilClient.validate_model(tmp_req)
1022
+ request = ehpc_instant_20230701_models.GetImageShrinkRequest()
1023
+ OpenApiUtilClient.convert(tmp_req, request)
1024
+ if not UtilClient.is_unset(tmp_req.additional_region_ids):
1025
+ request.additional_region_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.additional_region_ids, 'AdditionalRegionIds', 'json')
1016
1026
  query = {}
1027
+ if not UtilClient.is_unset(request.additional_region_ids_shrink):
1028
+ query['AdditionalRegionIds'] = request.additional_region_ids_shrink
1017
1029
  if not UtilClient.is_unset(request.image_category):
1018
1030
  query['ImageCategory'] = request.image_category
1019
1031
  if not UtilClient.is_unset(request.image_id):
@@ -2327,12 +2327,13 @@ class GetAppVersionsResponse(TeaModel):
2327
2327
  class GetImageRequest(TeaModel):
2328
2328
  def __init__(
2329
2329
  self,
2330
+ additional_region_ids: List[str] = None,
2330
2331
  image_category: str = None,
2331
2332
  image_id: str = None,
2332
2333
  image_type: str = None,
2333
2334
  ):
2335
+ self.additional_region_ids = additional_region_ids
2334
2336
  self.image_category = image_category
2335
- # This parameter is required.
2336
2337
  self.image_id = image_id
2337
2338
  self.image_type = image_type
2338
2339
 
@@ -2345,6 +2346,8 @@ class GetImageRequest(TeaModel):
2345
2346
  return _map
2346
2347
 
2347
2348
  result = dict()
2349
+ if self.additional_region_ids is not None:
2350
+ result['AdditionalRegionIds'] = self.additional_region_ids
2348
2351
  if self.image_category is not None:
2349
2352
  result['ImageCategory'] = self.image_category
2350
2353
  if self.image_id is not None:
@@ -2355,6 +2358,8 @@ class GetImageRequest(TeaModel):
2355
2358
 
2356
2359
  def from_map(self, m: dict = None):
2357
2360
  m = m or dict()
2361
+ if m.get('AdditionalRegionIds') is not None:
2362
+ self.additional_region_ids = m.get('AdditionalRegionIds')
2358
2363
  if m.get('ImageCategory') is not None:
2359
2364
  self.image_category = m.get('ImageCategory')
2360
2365
  if m.get('ImageId') is not None:
@@ -2364,6 +2369,90 @@ class GetImageRequest(TeaModel):
2364
2369
  return self
2365
2370
 
2366
2371
 
2372
+ class GetImageShrinkRequest(TeaModel):
2373
+ def __init__(
2374
+ self,
2375
+ additional_region_ids_shrink: str = None,
2376
+ image_category: str = None,
2377
+ image_id: str = None,
2378
+ image_type: str = None,
2379
+ ):
2380
+ self.additional_region_ids_shrink = additional_region_ids_shrink
2381
+ self.image_category = image_category
2382
+ self.image_id = image_id
2383
+ self.image_type = image_type
2384
+
2385
+ def validate(self):
2386
+ pass
2387
+
2388
+ def to_map(self):
2389
+ _map = super().to_map()
2390
+ if _map is not None:
2391
+ return _map
2392
+
2393
+ result = dict()
2394
+ if self.additional_region_ids_shrink is not None:
2395
+ result['AdditionalRegionIds'] = self.additional_region_ids_shrink
2396
+ if self.image_category is not None:
2397
+ result['ImageCategory'] = self.image_category
2398
+ if self.image_id is not None:
2399
+ result['ImageId'] = self.image_id
2400
+ if self.image_type is not None:
2401
+ result['ImageType'] = self.image_type
2402
+ return result
2403
+
2404
+ def from_map(self, m: dict = None):
2405
+ m = m or dict()
2406
+ if m.get('AdditionalRegionIds') is not None:
2407
+ self.additional_region_ids_shrink = m.get('AdditionalRegionIds')
2408
+ if m.get('ImageCategory') is not None:
2409
+ self.image_category = m.get('ImageCategory')
2410
+ if m.get('ImageId') is not None:
2411
+ self.image_id = m.get('ImageId')
2412
+ if m.get('ImageType') is not None:
2413
+ self.image_type = m.get('ImageType')
2414
+ return self
2415
+
2416
+
2417
+ class GetImageResponseBodyImageAdditionalRegionsInfo(TeaModel):
2418
+ def __init__(
2419
+ self,
2420
+ image_id: str = None,
2421
+ region_id: str = None,
2422
+ status: str = None,
2423
+ ):
2424
+ self.image_id = image_id
2425
+ self.region_id = region_id
2426
+ self.status = status
2427
+
2428
+ def validate(self):
2429
+ pass
2430
+
2431
+ def to_map(self):
2432
+ _map = super().to_map()
2433
+ if _map is not None:
2434
+ return _map
2435
+
2436
+ result = dict()
2437
+ if self.image_id is not None:
2438
+ result['ImageId'] = self.image_id
2439
+ if self.region_id is not None:
2440
+ result['RegionId'] = self.region_id
2441
+ if self.status is not None:
2442
+ result['Status'] = self.status
2443
+ return result
2444
+
2445
+ def from_map(self, m: dict = None):
2446
+ m = m or dict()
2447
+ if m.get('ImageId') is not None:
2448
+ self.image_id = m.get('ImageId')
2449
+ if m.get('RegionId') is not None:
2450
+ self.region_id = m.get('RegionId')
2451
+ if m.get('Status') is not None:
2452
+ self.status = m.get('Status')
2453
+ return self
2454
+
2455
+
2367
2456
  class GetImageResponseBodyImageContainerImageSpecRegistryCredential(TeaModel):
2368
2457
  def __init__(
2369
2458
  self,
@@ -2561,6 +2650,7 @@ class GetImageResponseBodyImageVMImageSpec(TeaModel):
2561
2650
  class GetImageResponseBodyImage(TeaModel):
2562
2651
  def __init__(
2563
2652
  self,
2653
+ additional_regions_info: List[GetImageResponseBodyImageAdditionalRegionsInfo] = None,
2564
2654
  app_id: str = None,
2565
2655
  container_image_spec: GetImageResponseBodyImageContainerImageSpec = None,
2566
2656
  create_time: str = None,
@@ -2573,6 +2663,7 @@ class GetImageResponseBodyImage(TeaModel):
2573
2663
  vmimage_spec: GetImageResponseBodyImageVMImageSpec = None,
2574
2664
  version: str = None,
2575
2665
  ):
2666
+ self.additional_regions_info = additional_regions_info
2576
2667
  self.app_id = app_id
2577
2668
  self.container_image_spec = container_image_spec
2578
2669
  self.create_time = create_time
@@ -2587,6 +2678,10 @@ class GetImageResponseBodyImage(TeaModel):
2587
2678
  self.version = version
2588
2679
 
2589
2680
  def validate(self):
2681
+ if self.additional_regions_info:
2682
+ for k in self.additional_regions_info:
2683
+ if k:
2684
+ k.validate()
2590
2685
  if self.container_image_spec:
2591
2686
  self.container_image_spec.validate()
2592
2687
  if self.document_info:
@@ -2600,6 +2695,10 @@ class GetImageResponseBodyImage(TeaModel):
2600
2695
  return _map
2601
2696
 
2602
2697
  result = dict()
2698
+ result['AdditionalRegionsInfo'] = []
2699
+ if self.additional_regions_info is not None:
2700
+ for k in self.additional_regions_info:
2701
+ result['AdditionalRegionsInfo'].append(k.to_map() if k else None)
2603
2702
  if self.app_id is not None:
2604
2703
  result['AppId'] = self.app_id
2605
2704
  if self.container_image_spec is not None:
@@ -2626,6 +2725,11 @@ class GetImageResponseBodyImage(TeaModel):
2626
2725
 
2627
2726
  def from_map(self, m: dict = None):
2628
2727
  m = m or dict()
2728
+ self.additional_regions_info = []
2729
+ if m.get('AdditionalRegionsInfo') is not None:
2730
+ for k in m.get('AdditionalRegionsInfo'):
2731
+ temp_model = GetImageResponseBodyImageAdditionalRegionsInfo()
2732
+ self.additional_regions_info.append(temp_model.from_map(k))
2629
2733
  if m.get('AppId') is not None:
2630
2734
  self.app_id = m.get('AppId')
2631
2735
  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.4
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 03/07/2025
28
28
 
29
29
  @author: Alibaba Cloud SDK
30
30
  """