tencentcloud-sdk-python-hai 3.0.1394__tar.gz → 3.0.1397__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.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1397}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1397}/setup.py +1 -1
  3. {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1397}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1397}/tencentcloud/hai/v20230812/errorcodes.py +3 -0
  5. {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1397}/tencentcloud/hai/v20230812/hai_client.py +23 -0
  6. {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1397}/tencentcloud/hai/v20230812/models.py +109 -0
  7. {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1397}/tencentcloud_sdk_python_hai.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-hai-3.0.1397/tencentcloud_sdk_python_hai.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-hai-3.0.1394/tencentcloud_sdk_python_hai.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1397}/README.rst +0 -0
  11. {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1397}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1397}/tencentcloud/hai/__init__.py +0 -0
  13. {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1397}/tencentcloud/hai/v20230812/__init__.py +0 -0
  14. {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1397}/tencentcloud_sdk_python_hai.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1397}/tencentcloud_sdk_python_hai.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-hai-3.0.1394 → tencentcloud-sdk-python-hai-3.0.1397}/tencentcloud_sdk_python_hai.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-hai
3
- Version: 3.0.1394
3
+ Version: 3.0.1397
4
4
  Summary: Tencent Cloud Hai SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -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.1394"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1397"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Hai SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1394'
17
+ __version__ = '3.0.1397'
@@ -86,6 +86,9 @@ INVALIDPARAMETERVALUE_INVALIDORDER = 'InvalidParameterValue.InvalidOrder'
86
86
  # 无效的排序字段
87
87
  INVALIDPARAMETERVALUE_INVALIDORDERFIELD = 'InvalidParameterValue.InvalidOrderField'
88
88
 
89
+ # 指定的密码不合规范。
90
+ INVALIDPARAMETERVALUE_INVALIDPASSWORD = 'InvalidParameterValue.InvalidPassword'
91
+
89
92
  # 场景ID格式非法
90
93
  INVALIDPARAMETERVALUE_INVALIDSCENEIDMALFORMED = 'InvalidParameterValue.InvalidSceneIdMalformed'
91
94
 
@@ -256,6 +256,29 @@ 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
+
259
282
  def RunInstances(self, request):
260
283
  """本接口 (RunInstances) 用于创建一个或多个指定配置的实例。
261
284
 
@@ -2651,6 +2651,115 @@ 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
+
2654
2763
  class RunInstancesRequest(AbstractModel):
2655
2764
  """RunInstances请求参数结构体
2656
2765
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-hai
3
- Version: 3.0.1394
3
+ Version: 3.0.1397
4
4
  Summary: Tencent Cloud Hai SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1397
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1394