alibabacloud-ehpcinstant20230701 2.0.3__py3-none-any.whl → 2.0.4__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 +18 -6
- alibabacloud_ehpcinstant20230701/models.py +105 -1
- {alibabacloud_ehpcinstant20230701-2.0.3.dist-info → alibabacloud_ehpcinstant20230701-2.0.4.dist-info}/METADATA +1 -1
- alibabacloud_ehpcinstant20230701-2.0.4.dist-info/RECORD +8 -0
- alibabacloud_ehpcinstant20230701-2.0.3.dist-info/RECORD +0 -8
- {alibabacloud_ehpcinstant20230701-2.0.3.dist-info → alibabacloud_ehpcinstant20230701-2.0.4.dist-info}/LICENSE +0 -0
- {alibabacloud_ehpcinstant20230701-2.0.3.dist-info → alibabacloud_ehpcinstant20230701-2.0.4.dist-info}/WHEEL +0 -0
- {alibabacloud_ehpcinstant20230701-2.0.3.dist-info → alibabacloud_ehpcinstant20230701-2.0.4.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '2.0.
|
|
1
|
+
__version__ = '2.0.4'
|
|
@@ -963,18 +963,24 @@ class Client(OpenApiClient):
|
|
|
963
963
|
|
|
964
964
|
def get_image_with_options(
|
|
965
965
|
self,
|
|
966
|
-
|
|
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
|
|
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(
|
|
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
|
-
|
|
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
|
|
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(
|
|
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:
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
alibabacloud_ehpcinstant20230701/__init__.py,sha256=jqC1bY-kWG8sFN8e9uXLMX7-JLItJoVYGK55Mm3rfLM,21
|
|
2
|
+
alibabacloud_ehpcinstant20230701/client.py,sha256=5Sk3yeNuQJfjR_S2i_M16okr9rDmRi-FGqsWnQtYYZo,93552
|
|
3
|
+
alibabacloud_ehpcinstant20230701/models.py,sha256=U8jkiNtUo7sp_DtgUq9-FI18meyPe5vTii-ePPah9D0,202574
|
|
4
|
+
alibabacloud_ehpcinstant20230701-2.0.4.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
+
alibabacloud_ehpcinstant20230701-2.0.4.dist-info/METADATA,sha256=fFrT0gZvsBJykHqwvT2nzqQ_M9ajayOwty3JoMxxuU0,2368
|
|
6
|
+
alibabacloud_ehpcinstant20230701-2.0.4.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
7
|
+
alibabacloud_ehpcinstant20230701-2.0.4.dist-info/top_level.txt,sha256=2xOp8gwGZyTr4yO4gb1EEvC7CFiyZnvob-AgjZHkZJc,33
|
|
8
|
+
alibabacloud_ehpcinstant20230701-2.0.4.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
alibabacloud_ehpcinstant20230701/__init__.py,sha256=U8BEyItnCRffb5NQFYKwkJf1OI4ctsrASQHqqSyNC4k,21
|
|
2
|
-
alibabacloud_ehpcinstant20230701/client.py,sha256=us5cb18qAX0U1-xaIah7h14-xFQJ1VkOfM5JIs3ANZM,92528
|
|
3
|
-
alibabacloud_ehpcinstant20230701/models.py,sha256=dPnHvxGV1vxnTE6eu9NNb8J_ap-cZWNKEaEIcvw54gk,198826
|
|
4
|
-
alibabacloud_ehpcinstant20230701-2.0.3.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
-
alibabacloud_ehpcinstant20230701-2.0.3.dist-info/METADATA,sha256=TNjYU4E238Evb1k4sWQ_PAeLfCvvvX8qhmQeNKQ3-98,2368
|
|
6
|
-
alibabacloud_ehpcinstant20230701-2.0.3.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
7
|
-
alibabacloud_ehpcinstant20230701-2.0.3.dist-info/top_level.txt,sha256=2xOp8gwGZyTr4yO4gb1EEvC7CFiyZnvob-AgjZHkZJc,33
|
|
8
|
-
alibabacloud_ehpcinstant20230701-2.0.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|