tencentcloud-sdk-python 3.0.1079__py2.py3-none-any.whl → 3.0.1081__py2.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 tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/asr/v20190614/models.py +1 -1
- tencentcloud/cfs/v20190719/models.py +10 -3
- tencentcloud/csip/v20221121/csip_client.py +23 -0
- tencentcloud/csip/v20221121/models.py +209 -0
- tencentcloud/ess/v20201111/ess_client.py +2 -1
- tencentcloud/facefusion/v20181201/errorcodes.py +0 -33
- tencentcloud/facefusion/v20181201/facefusion_client.py +0 -25
- tencentcloud/facefusion/v20181201/models.py +0 -153
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +2 -2
- tencentcloud/iotvideo/v20211125/iotvideo_client.py +23 -0
- tencentcloud/iotvideo/v20211125/models.py +99 -0
- tencentcloud/live/v20180801/models.py +29 -0
- tencentcloud/partners/v20180321/models.py +13 -0
- tencentcloud/redis/v20180412/models.py +16 -12
- tencentcloud/redis/v20180412/redis_client.py +1 -1
- tencentcloud/rum/v20210622/models.py +0 -619
- tencentcloud/rum/v20210622/rum_client.py +0 -104
- tencentcloud/tcb/v20180608/models.py +102 -10
- tencentcloud/tke/v20180525/tke_client.py +1 -1
- tencentcloud/tke/v20220501/__init__.py +0 -0
- tencentcloud/tke/v20220501/errorcodes.py +60 -0
- tencentcloud/tke/v20220501/models.py +2306 -0
- tencentcloud/tke/v20220501/tke_client.py +72 -0
- tencentcloud/trocket/v20230308/errorcodes.py +6 -0
- tencentcloud/trocket/v20230308/models.py +4817 -1873
- tencentcloud/trocket/v20230308/trocket_client.py +512 -0
- tencentcloud/tse/v20201207/tse_client.py +2 -2
- tencentcloud/ump/v20200918/ump_client.py +51 -17
- tencentcloud/vod/v20180717/vod_client.py +1 -0
- tencentcloud/wedata/v20210820/models.py +31 -0
- tencentcloud/wedata/v20210820/wedata_client.py +23 -0
- {tencentcloud_sdk_python-3.0.1079.dist-info → tencentcloud_sdk_python-3.0.1081.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1079.dist-info → tencentcloud_sdk_python-3.0.1081.dist-info}/RECORD +37 -33
- {tencentcloud_sdk_python-3.0.1079.dist-info → tencentcloud_sdk_python-3.0.1081.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1079.dist-info → tencentcloud_sdk_python-3.0.1081.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1079.dist-info → tencentcloud_sdk_python-3.0.1081.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
import json
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
|
19
|
+
from tencentcloud.common.abstract_client import AbstractClient
|
|
20
|
+
from tencentcloud.tke.v20220501 import models
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class TkeClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2022-05-01'
|
|
25
|
+
_endpoint = 'tke.tencentcloudapi.com'
|
|
26
|
+
_service = 'tke'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def DescribeClusterInstances(self, request):
|
|
30
|
+
"""查询集群下节点实例信息
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for DescribeClusterInstances.
|
|
33
|
+
:type request: :class:`tencentcloud.tke.v20220501.models.DescribeClusterInstancesRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.tke.v20220501.models.DescribeClusterInstancesResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("DescribeClusterInstances", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.DescribeClusterInstancesResponse()
|
|
43
|
+
model._deserialize(response["Response"])
|
|
44
|
+
return model
|
|
45
|
+
except Exception as e:
|
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
|
47
|
+
raise
|
|
48
|
+
else:
|
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def DescribeNodePools(self, request):
|
|
53
|
+
"""查询 TKE 节点池列表
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for DescribeNodePools.
|
|
56
|
+
:type request: :class:`tencentcloud.tke.v20220501.models.DescribeNodePoolsRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.tke.v20220501.models.DescribeNodePoolsResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("DescribeNodePools", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.DescribeNodePoolsResponse()
|
|
66
|
+
model._deserialize(response["Response"])
|
|
67
|
+
return model
|
|
68
|
+
except Exception as e:
|
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
|
70
|
+
raise
|
|
71
|
+
else:
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
@@ -29,12 +29,18 @@ OPERATIONDENIED = 'OperationDenied'
|
|
|
29
29
|
# 资源被占用。
|
|
30
30
|
RESOURCEINUSE = 'ResourceInUse'
|
|
31
31
|
|
|
32
|
+
# 客户端不存在。
|
|
33
|
+
RESOURCENOTFOUND_CLIENT = 'ResourceNotFound.Client'
|
|
34
|
+
|
|
32
35
|
# 消费组不存在,请检查后重试。
|
|
33
36
|
RESOURCENOTFOUND_GROUP = 'ResourceNotFound.Group'
|
|
34
37
|
|
|
35
38
|
# 实例不存在。
|
|
36
39
|
RESOURCENOTFOUND_INSTANCE = 'ResourceNotFound.Instance'
|
|
37
40
|
|
|
41
|
+
# 消息不存在。
|
|
42
|
+
RESOURCENOTFOUND_MESSAGE = 'ResourceNotFound.Message'
|
|
43
|
+
|
|
38
44
|
# 角色不存在,请检查后重试。
|
|
39
45
|
RESOURCENOTFOUND_ROLE = 'ResourceNotFound.Role'
|
|
40
46
|
|