tencentcloud-sdk-python-hai 3.0.1394__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.1394 → tencentcloud-sdk-python-hai-3.0.1398}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1398}/setup.py +1 -1
- {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud/hai/v20230812/errorcodes.py +9 -0
- {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud/hai/v20230812/hai_client.py +46 -0
- {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud/hai/v20230812/models.py +188 -0
- {tencentcloud-sdk-python-hai-3.0.1394 → 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.1394/tencentcloud_sdk_python_hai.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1398}/README.rst +0 -0
- {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1398}/setup.cfg +0 -0
- {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud/hai/__init__.py +0 -0
- {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud/hai/v20230812/__init__.py +0 -0
- {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud_sdk_python_hai.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1398}/tencentcloud_sdk_python_hai.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-hai-3.0.1394 → 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
|
|
|
@@ -86,6 +92,9 @@ INVALIDPARAMETERVALUE_INVALIDORDER = 'InvalidParameterValue.InvalidOrder'
|
|
|
86
92
|
# 无效的排序字段
|
|
87
93
|
INVALIDPARAMETERVALUE_INVALIDORDERFIELD = 'InvalidParameterValue.InvalidOrderField'
|
|
88
94
|
|
|
95
|
+
# 指定的密码不合规范。
|
|
96
|
+
INVALIDPARAMETERVALUE_INVALIDPASSWORD = 'InvalidParameterValue.InvalidPassword'
|
|
97
|
+
|
|
89
98
|
# 场景ID格式非法
|
|
90
99
|
INVALIDPARAMETERVALUE_INVALIDSCENEIDMALFORMED = 'InvalidParameterValue.InvalidSceneIdMalformed'
|
|
91
100
|
|
|
@@ -256,6 +256,52 @@ class HaiClient(AbstractClient):
|
|
|
256
256
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
257
257
|
|
|
258
258
|
|
|
259
|
+
def ResetInstancesPassword(self, request):
|
|
260
|
+
"""本接口 (ResetInstancesPassword) 用于重置实例的用户密码。
|
|
261
|
+
|
|
262
|
+
:param request: Request instance for ResetInstancesPassword.
|
|
263
|
+
:type request: :class:`tencentcloud.hai.v20230812.models.ResetInstancesPasswordRequest`
|
|
264
|
+
:rtype: :class:`tencentcloud.hai.v20230812.models.ResetInstancesPasswordResponse`
|
|
265
|
+
|
|
266
|
+
"""
|
|
267
|
+
try:
|
|
268
|
+
params = request._serialize()
|
|
269
|
+
headers = request.headers
|
|
270
|
+
body = self.call("ResetInstancesPassword", params, headers=headers)
|
|
271
|
+
response = json.loads(body)
|
|
272
|
+
model = models.ResetInstancesPasswordResponse()
|
|
273
|
+
model._deserialize(response["Response"])
|
|
274
|
+
return model
|
|
275
|
+
except Exception as e:
|
|
276
|
+
if isinstance(e, TencentCloudSDKException):
|
|
277
|
+
raise
|
|
278
|
+
else:
|
|
279
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
280
|
+
|
|
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
|
+
|
|
259
305
|
def RunInstances(self, request):
|
|
260
306
|
"""本接口 (RunInstances) 用于创建一个或多个指定配置的实例。
|
|
261
307
|
|
|
@@ -2651,6 +2651,194 @@ NO_NEED_SUPPORT表示不需支持;NOT_SUPPORT_YET表示暂未支持;ALREADY_
|
|
|
2651
2651
|
|
|
2652
2652
|
|
|
2653
2653
|
|
|
2654
|
+
class ResetInstancesPasswordRequest(AbstractModel):
|
|
2655
|
+
"""ResetInstancesPassword请求参数结构体
|
|
2656
|
+
|
|
2657
|
+
"""
|
|
2658
|
+
|
|
2659
|
+
def __init__(self):
|
|
2660
|
+
r"""
|
|
2661
|
+
:param _InstanceIds: 实例ID列表
|
|
2662
|
+
:type InstanceIds: list of str
|
|
2663
|
+
:param _Password: 实例密码必须8-30位,推荐使用12位以上密码,不能以“/”开头,至少包含以下字符中的三种不同字符,字符种类:<br><li>小写字母:[a-z]</li><br><li>大写字母:[A-Z]</li><br><li>数字:0-9</li><br><li>特殊字符: ()\`\~!@#$%^&\*-+=\_|{}[]:;'<>,.?/</li>
|
|
2664
|
+
:type Password: str
|
|
2665
|
+
:param _DryRun: 默认为False,True代表只验证接口连通性
|
|
2666
|
+
:type DryRun: bool
|
|
2667
|
+
"""
|
|
2668
|
+
self._InstanceIds = None
|
|
2669
|
+
self._Password = None
|
|
2670
|
+
self._DryRun = None
|
|
2671
|
+
|
|
2672
|
+
@property
|
|
2673
|
+
def InstanceIds(self):
|
|
2674
|
+
"""实例ID列表
|
|
2675
|
+
:rtype: list of str
|
|
2676
|
+
"""
|
|
2677
|
+
return self._InstanceIds
|
|
2678
|
+
|
|
2679
|
+
@InstanceIds.setter
|
|
2680
|
+
def InstanceIds(self, InstanceIds):
|
|
2681
|
+
self._InstanceIds = InstanceIds
|
|
2682
|
+
|
|
2683
|
+
@property
|
|
2684
|
+
def Password(self):
|
|
2685
|
+
"""实例密码必须8-30位,推荐使用12位以上密码,不能以“/”开头,至少包含以下字符中的三种不同字符,字符种类:<br><li>小写字母:[a-z]</li><br><li>大写字母:[A-Z]</li><br><li>数字:0-9</li><br><li>特殊字符: ()\`\~!@#$%^&\*-+=\_|{}[]:;'<>,.?/</li>
|
|
2686
|
+
:rtype: str
|
|
2687
|
+
"""
|
|
2688
|
+
return self._Password
|
|
2689
|
+
|
|
2690
|
+
@Password.setter
|
|
2691
|
+
def Password(self, Password):
|
|
2692
|
+
self._Password = Password
|
|
2693
|
+
|
|
2694
|
+
@property
|
|
2695
|
+
def DryRun(self):
|
|
2696
|
+
"""默认为False,True代表只验证接口连通性
|
|
2697
|
+
:rtype: bool
|
|
2698
|
+
"""
|
|
2699
|
+
return self._DryRun
|
|
2700
|
+
|
|
2701
|
+
@DryRun.setter
|
|
2702
|
+
def DryRun(self, DryRun):
|
|
2703
|
+
self._DryRun = DryRun
|
|
2704
|
+
|
|
2705
|
+
|
|
2706
|
+
def _deserialize(self, params):
|
|
2707
|
+
self._InstanceIds = params.get("InstanceIds")
|
|
2708
|
+
self._Password = params.get("Password")
|
|
2709
|
+
self._DryRun = params.get("DryRun")
|
|
2710
|
+
memeber_set = set(params.keys())
|
|
2711
|
+
for name, value in vars(self).items():
|
|
2712
|
+
property_name = name[1:]
|
|
2713
|
+
if property_name in memeber_set:
|
|
2714
|
+
memeber_set.remove(property_name)
|
|
2715
|
+
if len(memeber_set) > 0:
|
|
2716
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2717
|
+
|
|
2718
|
+
|
|
2719
|
+
|
|
2720
|
+
class ResetInstancesPasswordResponse(AbstractModel):
|
|
2721
|
+
"""ResetInstancesPassword返回参数结构体
|
|
2722
|
+
|
|
2723
|
+
"""
|
|
2724
|
+
|
|
2725
|
+
def __init__(self):
|
|
2726
|
+
r"""
|
|
2727
|
+
:param _TaskId: task任务id
|
|
2728
|
+
:type TaskId: int
|
|
2729
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2730
|
+
:type RequestId: str
|
|
2731
|
+
"""
|
|
2732
|
+
self._TaskId = None
|
|
2733
|
+
self._RequestId = None
|
|
2734
|
+
|
|
2735
|
+
@property
|
|
2736
|
+
def TaskId(self):
|
|
2737
|
+
"""task任务id
|
|
2738
|
+
:rtype: int
|
|
2739
|
+
"""
|
|
2740
|
+
return self._TaskId
|
|
2741
|
+
|
|
2742
|
+
@TaskId.setter
|
|
2743
|
+
def TaskId(self, TaskId):
|
|
2744
|
+
self._TaskId = TaskId
|
|
2745
|
+
|
|
2746
|
+
@property
|
|
2747
|
+
def RequestId(self):
|
|
2748
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2749
|
+
:rtype: str
|
|
2750
|
+
"""
|
|
2751
|
+
return self._RequestId
|
|
2752
|
+
|
|
2753
|
+
@RequestId.setter
|
|
2754
|
+
def RequestId(self, RequestId):
|
|
2755
|
+
self._RequestId = RequestId
|
|
2756
|
+
|
|
2757
|
+
|
|
2758
|
+
def _deserialize(self, params):
|
|
2759
|
+
self._TaskId = params.get("TaskId")
|
|
2760
|
+
self._RequestId = params.get("RequestId")
|
|
2761
|
+
|
|
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
|
+
|
|
2654
2842
|
class RunInstancesRequest(AbstractModel):
|
|
2655
2843
|
"""RunInstances请求参数结构体
|
|
2656
2844
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1398
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1394
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|