alibabacloud-ehpcinstant20230701 3.0.0__py3-none-any.whl → 3.1.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__ = '3.0.0'
1
+ __version__ = '3.1.0'
@@ -2077,6 +2077,114 @@ class Client(OpenApiClient):
2077
2077
  runtime = util_models.RuntimeOptions()
2078
2078
  return await self.remove_image_with_options_async(request, runtime)
2079
2079
 
2080
+ def synchronize_app_with_options(
2081
+ self,
2082
+ tmp_req: ehpc_instant_20230701_models.SynchronizeAppRequest,
2083
+ runtime: util_models.RuntimeOptions,
2084
+ ) -> ehpc_instant_20230701_models.SynchronizeAppResponse:
2085
+ """
2086
+ @summary 应用跨地域同步
2087
+
2088
+ @param tmp_req: SynchronizeAppRequest
2089
+ @param runtime: runtime options for this request RuntimeOptions
2090
+ @return: SynchronizeAppResponse
2091
+ """
2092
+ UtilClient.validate_model(tmp_req)
2093
+ request = ehpc_instant_20230701_models.SynchronizeAppShrinkRequest()
2094
+ OpenApiUtilClient.convert(tmp_req, request)
2095
+ if not UtilClient.is_unset(tmp_req.target_region_ids):
2096
+ request.target_region_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.target_region_ids, 'TargetRegionIds', 'json')
2097
+ query = {}
2098
+ if not UtilClient.is_unset(request.app_id):
2099
+ query['AppId'] = request.app_id
2100
+ if not UtilClient.is_unset(request.target_region_ids_shrink):
2101
+ query['TargetRegionIds'] = request.target_region_ids_shrink
2102
+ req = open_api_models.OpenApiRequest(
2103
+ query=OpenApiUtilClient.query(query)
2104
+ )
2105
+ params = open_api_models.Params(
2106
+ action='SynchronizeApp',
2107
+ version='2023-07-01',
2108
+ protocol='HTTPS',
2109
+ pathname='/',
2110
+ method='POST',
2111
+ auth_type='AK',
2112
+ style='RPC',
2113
+ req_body_type='formData',
2114
+ body_type='json'
2115
+ )
2116
+ return TeaCore.from_map(
2117
+ ehpc_instant_20230701_models.SynchronizeAppResponse(),
2118
+ self.call_api(params, req, runtime)
2119
+ )
2120
+
2121
+ async def synchronize_app_with_options_async(
2122
+ self,
2123
+ tmp_req: ehpc_instant_20230701_models.SynchronizeAppRequest,
2124
+ runtime: util_models.RuntimeOptions,
2125
+ ) -> ehpc_instant_20230701_models.SynchronizeAppResponse:
2126
+ """
2127
+ @summary 应用跨地域同步
2128
+
2129
+ @param tmp_req: SynchronizeAppRequest
2130
+ @param runtime: runtime options for this request RuntimeOptions
2131
+ @return: SynchronizeAppResponse
2132
+ """
2133
+ UtilClient.validate_model(tmp_req)
2134
+ request = ehpc_instant_20230701_models.SynchronizeAppShrinkRequest()
2135
+ OpenApiUtilClient.convert(tmp_req, request)
2136
+ if not UtilClient.is_unset(tmp_req.target_region_ids):
2137
+ request.target_region_ids_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.target_region_ids, 'TargetRegionIds', 'json')
2138
+ query = {}
2139
+ if not UtilClient.is_unset(request.app_id):
2140
+ query['AppId'] = request.app_id
2141
+ if not UtilClient.is_unset(request.target_region_ids_shrink):
2142
+ query['TargetRegionIds'] = request.target_region_ids_shrink
2143
+ req = open_api_models.OpenApiRequest(
2144
+ query=OpenApiUtilClient.query(query)
2145
+ )
2146
+ params = open_api_models.Params(
2147
+ action='SynchronizeApp',
2148
+ version='2023-07-01',
2149
+ protocol='HTTPS',
2150
+ pathname='/',
2151
+ method='POST',
2152
+ auth_type='AK',
2153
+ style='RPC',
2154
+ req_body_type='formData',
2155
+ body_type='json'
2156
+ )
2157
+ return TeaCore.from_map(
2158
+ ehpc_instant_20230701_models.SynchronizeAppResponse(),
2159
+ await self.call_api_async(params, req, runtime)
2160
+ )
2161
+
2162
+ def synchronize_app(
2163
+ self,
2164
+ request: ehpc_instant_20230701_models.SynchronizeAppRequest,
2165
+ ) -> ehpc_instant_20230701_models.SynchronizeAppResponse:
2166
+ """
2167
+ @summary 应用跨地域同步
2168
+
2169
+ @param request: SynchronizeAppRequest
2170
+ @return: SynchronizeAppResponse
2171
+ """
2172
+ runtime = util_models.RuntimeOptions()
2173
+ return self.synchronize_app_with_options(request, runtime)
2174
+
2175
+ async def synchronize_app_async(
2176
+ self,
2177
+ request: ehpc_instant_20230701_models.SynchronizeAppRequest,
2178
+ ) -> ehpc_instant_20230701_models.SynchronizeAppResponse:
2179
+ """
2180
+ @summary 应用跨地域同步
2181
+
2182
+ @param request: SynchronizeAppRequest
2183
+ @return: SynchronizeAppResponse
2184
+ """
2185
+ runtime = util_models.RuntimeOptions()
2186
+ return await self.synchronize_app_with_options_async(request, runtime)
2187
+
2080
2188
  def tag_resources_with_options(
2081
2189
  self,
2082
2190
  request: ehpc_instant_20230701_models.TagResourcesRequest,
@@ -6402,6 +6402,142 @@ class RemoveImageResponse(TeaModel):
6402
6402
  return self
6403
6403
 
6404
6404
 
6405
+ class SynchronizeAppRequest(TeaModel):
6406
+ def __init__(
6407
+ self,
6408
+ app_id: str = None,
6409
+ target_region_ids: List[str] = None,
6410
+ ):
6411
+ # This parameter is required.
6412
+ self.app_id = app_id
6413
+ self.target_region_ids = target_region_ids
6414
+
6415
+ def validate(self):
6416
+ pass
6417
+
6418
+ def to_map(self):
6419
+ _map = super().to_map()
6420
+ if _map is not None:
6421
+ return _map
6422
+
6423
+ result = dict()
6424
+ if self.app_id is not None:
6425
+ result['AppId'] = self.app_id
6426
+ if self.target_region_ids is not None:
6427
+ result['TargetRegionIds'] = self.target_region_ids
6428
+ return result
6429
+
6430
+ def from_map(self, m: dict = None):
6431
+ m = m or dict()
6432
+ if m.get('AppId') is not None:
6433
+ self.app_id = m.get('AppId')
6434
+ if m.get('TargetRegionIds') is not None:
6435
+ self.target_region_ids = m.get('TargetRegionIds')
6436
+ return self
6437
+
6438
+
6439
+ class SynchronizeAppShrinkRequest(TeaModel):
6440
+ def __init__(
6441
+ self,
6442
+ app_id: str = None,
6443
+ target_region_ids_shrink: str = None,
6444
+ ):
6445
+ # This parameter is required.
6446
+ self.app_id = app_id
6447
+ self.target_region_ids_shrink = target_region_ids_shrink
6448
+
6449
+ def validate(self):
6450
+ pass
6451
+
6452
+ def to_map(self):
6453
+ _map = super().to_map()
6454
+ if _map is not None:
6455
+ return _map
6456
+
6457
+ result = dict()
6458
+ if self.app_id is not None:
6459
+ result['AppId'] = self.app_id
6460
+ if self.target_region_ids_shrink is not None:
6461
+ result['TargetRegionIds'] = self.target_region_ids_shrink
6462
+ return result
6463
+
6464
+ def from_map(self, m: dict = None):
6465
+ m = m or dict()
6466
+ if m.get('AppId') is not None:
6467
+ self.app_id = m.get('AppId')
6468
+ if m.get('TargetRegionIds') is not None:
6469
+ self.target_region_ids_shrink = m.get('TargetRegionIds')
6470
+ return self
6471
+
6472
+
6473
+ class SynchronizeAppResponseBody(TeaModel):
6474
+ def __init__(
6475
+ self,
6476
+ request_id: str = None,
6477
+ ):
6478
+ self.request_id = request_id
6479
+
6480
+ def validate(self):
6481
+ pass
6482
+
6483
+ def to_map(self):
6484
+ _map = super().to_map()
6485
+ if _map is not None:
6486
+ return _map
6487
+
6488
+ result = dict()
6489
+ if self.request_id is not None:
6490
+ result['RequestId'] = self.request_id
6491
+ return result
6492
+
6493
+ def from_map(self, m: dict = None):
6494
+ m = m or dict()
6495
+ if m.get('RequestId') is not None:
6496
+ self.request_id = m.get('RequestId')
6497
+ return self
6498
+
6499
+
6500
+ class SynchronizeAppResponse(TeaModel):
6501
+ def __init__(
6502
+ self,
6503
+ headers: Dict[str, str] = None,
6504
+ status_code: int = None,
6505
+ body: SynchronizeAppResponseBody = None,
6506
+ ):
6507
+ self.headers = headers
6508
+ self.status_code = status_code
6509
+ self.body = body
6510
+
6511
+ def validate(self):
6512
+ if self.body:
6513
+ self.body.validate()
6514
+
6515
+ def to_map(self):
6516
+ _map = super().to_map()
6517
+ if _map is not None:
6518
+ return _map
6519
+
6520
+ result = dict()
6521
+ if self.headers is not None:
6522
+ result['headers'] = self.headers
6523
+ if self.status_code is not None:
6524
+ result['statusCode'] = self.status_code
6525
+ if self.body is not None:
6526
+ result['body'] = self.body.to_map()
6527
+ return result
6528
+
6529
+ def from_map(self, m: dict = None):
6530
+ m = m or dict()
6531
+ if m.get('headers') is not None:
6532
+ self.headers = m.get('headers')
6533
+ if m.get('statusCode') is not None:
6534
+ self.status_code = m.get('statusCode')
6535
+ if m.get('body') is not None:
6536
+ temp_model = SynchronizeAppResponseBody()
6537
+ self.body = temp_model.from_map(m['body'])
6538
+ return self
6539
+
6540
+
6405
6541
  class TagResourcesRequestTag(TeaModel):
6406
6542
  def __init__(
6407
6543
  self,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-ehpcinstant20230701
3
- Version: 3.0.0
3
+ Version: 3.1.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=eAFl6268qA4nmIlnubQ4w8wznduMfMj0fmAHBVFcebU,21
2
+ alibabacloud_ehpcinstant20230701/client.py,sha256=ia0825Oo1N60DkGHnsdBZD7zPrE00YOINqx3JgnLvqY,98836
3
+ alibabacloud_ehpcinstant20230701/models.py,sha256=Ojtph1Z2rO5SVWowf_4sq8Gj_cgj2NYCjRAcu3kHkOE,219745
4
+ alibabacloud_ehpcinstant20230701-3.1.0.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
+ alibabacloud_ehpcinstant20230701-3.1.0.dist-info/METADATA,sha256=ty9BFML3SqxBXs3mi4clWVoN2WRCWWNWqxpItt2JIps,2368
6
+ alibabacloud_ehpcinstant20230701-3.1.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
+ alibabacloud_ehpcinstant20230701-3.1.0.dist-info/top_level.txt,sha256=2xOp8gwGZyTr4yO4gb1EEvC7CFiyZnvob-AgjZHkZJc,33
8
+ alibabacloud_ehpcinstant20230701-3.1.0.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- alibabacloud_ehpcinstant20230701/__init__.py,sha256=ddtA0myd9lh60BQddOxgTznQsDzL0h72frF04ICaK1w,21
2
- alibabacloud_ehpcinstant20230701/client.py,sha256=cTiUz-cuk2u4j72LfvcHOtpagusOGOViNQmk5GuYj5E,94512
3
- alibabacloud_ehpcinstant20230701/models.py,sha256=lsxkeQHop31SJAZ8BYcyDylqOCp-zzwc8d3oOIa5OE0,216031
4
- alibabacloud_ehpcinstant20230701-3.0.0.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
- alibabacloud_ehpcinstant20230701-3.0.0.dist-info/METADATA,sha256=Zt-T4teKnYiO9XWCsSY6z4nhPGx_gWCIZDRV8rjon5o,2368
6
- alibabacloud_ehpcinstant20230701-3.0.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
- alibabacloud_ehpcinstant20230701-3.0.0.dist-info/top_level.txt,sha256=2xOp8gwGZyTr4yO4gb1EEvC7CFiyZnvob-AgjZHkZJc,33
8
- alibabacloud_ehpcinstant20230701-3.0.0.dist-info/RECORD,,