tencentcloud-sdk-python-hai 3.0.1397__tar.gz → 3.0.1398__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.
- {tencentcloud-sdk-python-hai-3.0.1397 → tencentcloud-sdk-python-hai-3.0.1398}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-hai-3.0.1397 → tencentcloud-sdk-python-hai-3.0.1398}/setup.py +1 -1
- {tencentcloud-sdk-python-hai-3.0.1397 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-hai-3.0.1397 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud/hai/v20230812/errorcodes.py +6 -0
- {tencentcloud-sdk-python-hai-3.0.1397 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud/hai/v20230812/hai_client.py +23 -0
- {tencentcloud-sdk-python-hai-3.0.1397 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud/hai/v20230812/models.py +79 -0
- {tencentcloud-sdk-python-hai-3.0.1397 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud_sdk_python_hai.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-hai-3.0.1398/tencentcloud_sdk_python_hai.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-hai-3.0.1397/tencentcloud_sdk_python_hai.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-hai-3.0.1397 → tencentcloud-sdk-python-hai-3.0.1398}/README.rst +0 -0
- {tencentcloud-sdk-python-hai-3.0.1397 → tencentcloud-sdk-python-hai-3.0.1398}/setup.cfg +0 -0
- {tencentcloud-sdk-python-hai-3.0.1397 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud/hai/__init__.py +0 -0
- {tencentcloud-sdk-python-hai-3.0.1397 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud/hai/v20230812/__init__.py +0 -0
- {tencentcloud-sdk-python-hai-3.0.1397 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud_sdk_python_hai.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-hai-3.0.1397 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud_sdk_python_hai.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-hai-3.0.1397 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud_sdk_python_hai.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-hai',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1398"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Hai SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -47,9 +47,15 @@ INVALIDPARAMETERVALUE_APPLICATIONIDNOTFOUND = 'InvalidParameterValue.Application
|
|
|
47
47
|
# 算力套餐类型不存在
|
|
48
48
|
INVALIDPARAMETERVALUE_BUNDLETYPENOTFOUND = 'InvalidParameterValue.BundleTypeNotFound'
|
|
49
49
|
|
|
50
|
+
# 云盘大小设置必须大于实例当前的云盘大小
|
|
51
|
+
INVALIDPARAMETERVALUE_DISKSIZEMUSTLARGETHANCURRENTDISKSIZE = 'InvalidParameterValue.DiskSizeMustLargeThanCurrentDiskSize'
|
|
52
|
+
|
|
50
53
|
# 云盘大小需要大于应用所需云盘最小大小
|
|
51
54
|
INVALIDPARAMETERVALUE_DISKSIZEMUSTLARGERTHANAPPLICATIONMINREQUIREDSIZE = 'InvalidParameterValue.DiskSizeMustLargerThanApplicationMinRequiredSize'
|
|
52
55
|
|
|
56
|
+
# 云盘大小达到上限值
|
|
57
|
+
INVALIDPARAMETERVALUE_DISKSIZEREACHLIMIT = 'InvalidParameterValue.DiskSizeReachLimit'
|
|
58
|
+
|
|
53
59
|
# 列表入参中存在重复值
|
|
54
60
|
INVALIDPARAMETERVALUE_DUPLICATED = 'InvalidParameterValue.Duplicated'
|
|
55
61
|
|
|
@@ -279,6 +279,29 @@ class HaiClient(AbstractClient):
|
|
|
279
279
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
280
280
|
|
|
281
281
|
|
|
282
|
+
def ResizeInstanceDisk(self, request):
|
|
283
|
+
"""本接口(ResizeInstanceDisk)用于对指定HAI实例进行扩容云硬盘操作。
|
|
284
|
+
|
|
285
|
+
:param request: Request instance for ResizeInstanceDisk.
|
|
286
|
+
:type request: :class:`tencentcloud.hai.v20230812.models.ResizeInstanceDiskRequest`
|
|
287
|
+
:rtype: :class:`tencentcloud.hai.v20230812.models.ResizeInstanceDiskResponse`
|
|
288
|
+
|
|
289
|
+
"""
|
|
290
|
+
try:
|
|
291
|
+
params = request._serialize()
|
|
292
|
+
headers = request.headers
|
|
293
|
+
body = self.call("ResizeInstanceDisk", params, headers=headers)
|
|
294
|
+
response = json.loads(body)
|
|
295
|
+
model = models.ResizeInstanceDiskResponse()
|
|
296
|
+
model._deserialize(response["Response"])
|
|
297
|
+
return model
|
|
298
|
+
except Exception as e:
|
|
299
|
+
if isinstance(e, TencentCloudSDKException):
|
|
300
|
+
raise
|
|
301
|
+
else:
|
|
302
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
303
|
+
|
|
304
|
+
|
|
282
305
|
def RunInstances(self, request):
|
|
283
306
|
"""本接口 (RunInstances) 用于创建一个或多个指定配置的实例。
|
|
284
307
|
|
|
@@ -2760,6 +2760,85 @@ class ResetInstancesPasswordResponse(AbstractModel):
|
|
|
2760
2760
|
self._RequestId = params.get("RequestId")
|
|
2761
2761
|
|
|
2762
2762
|
|
|
2763
|
+
class ResizeInstanceDiskRequest(AbstractModel):
|
|
2764
|
+
"""ResizeInstanceDisk请求参数结构体
|
|
2765
|
+
|
|
2766
|
+
"""
|
|
2767
|
+
|
|
2768
|
+
def __init__(self):
|
|
2769
|
+
r"""
|
|
2770
|
+
:param _InstanceId: 需要扩容云盘的HAI实例ID
|
|
2771
|
+
:type InstanceId: str
|
|
2772
|
+
:param _DiskSize: 扩容云硬盘大小,单位为GB,必须大于当前云硬盘大小。
|
|
2773
|
+
:type DiskSize: int
|
|
2774
|
+
"""
|
|
2775
|
+
self._InstanceId = None
|
|
2776
|
+
self._DiskSize = None
|
|
2777
|
+
|
|
2778
|
+
@property
|
|
2779
|
+
def InstanceId(self):
|
|
2780
|
+
"""需要扩容云盘的HAI实例ID
|
|
2781
|
+
:rtype: str
|
|
2782
|
+
"""
|
|
2783
|
+
return self._InstanceId
|
|
2784
|
+
|
|
2785
|
+
@InstanceId.setter
|
|
2786
|
+
def InstanceId(self, InstanceId):
|
|
2787
|
+
self._InstanceId = InstanceId
|
|
2788
|
+
|
|
2789
|
+
@property
|
|
2790
|
+
def DiskSize(self):
|
|
2791
|
+
"""扩容云硬盘大小,单位为GB,必须大于当前云硬盘大小。
|
|
2792
|
+
:rtype: int
|
|
2793
|
+
"""
|
|
2794
|
+
return self._DiskSize
|
|
2795
|
+
|
|
2796
|
+
@DiskSize.setter
|
|
2797
|
+
def DiskSize(self, DiskSize):
|
|
2798
|
+
self._DiskSize = DiskSize
|
|
2799
|
+
|
|
2800
|
+
|
|
2801
|
+
def _deserialize(self, params):
|
|
2802
|
+
self._InstanceId = params.get("InstanceId")
|
|
2803
|
+
self._DiskSize = params.get("DiskSize")
|
|
2804
|
+
memeber_set = set(params.keys())
|
|
2805
|
+
for name, value in vars(self).items():
|
|
2806
|
+
property_name = name[1:]
|
|
2807
|
+
if property_name in memeber_set:
|
|
2808
|
+
memeber_set.remove(property_name)
|
|
2809
|
+
if len(memeber_set) > 0:
|
|
2810
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2811
|
+
|
|
2812
|
+
|
|
2813
|
+
|
|
2814
|
+
class ResizeInstanceDiskResponse(AbstractModel):
|
|
2815
|
+
"""ResizeInstanceDisk返回参数结构体
|
|
2816
|
+
|
|
2817
|
+
"""
|
|
2818
|
+
|
|
2819
|
+
def __init__(self):
|
|
2820
|
+
r"""
|
|
2821
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2822
|
+
:type RequestId: str
|
|
2823
|
+
"""
|
|
2824
|
+
self._RequestId = None
|
|
2825
|
+
|
|
2826
|
+
@property
|
|
2827
|
+
def RequestId(self):
|
|
2828
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2829
|
+
:rtype: str
|
|
2830
|
+
"""
|
|
2831
|
+
return self._RequestId
|
|
2832
|
+
|
|
2833
|
+
@RequestId.setter
|
|
2834
|
+
def RequestId(self, RequestId):
|
|
2835
|
+
self._RequestId = RequestId
|
|
2836
|
+
|
|
2837
|
+
|
|
2838
|
+
def _deserialize(self, params):
|
|
2839
|
+
self._RequestId = params.get("RequestId")
|
|
2840
|
+
|
|
2841
|
+
|
|
2763
2842
|
class RunInstancesRequest(AbstractModel):
|
|
2764
2843
|
"""RunInstances请求参数结构体
|
|
2765
2844
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1398
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1397
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|