tencentcloud-sdk-python-ctsdb 3.0.1427__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.
- tencentcloud/__init__.py +17 -0
- tencentcloud/ctsdb/__init__.py +0 -0
- tencentcloud/ctsdb/v20230202/__init__.py +0 -0
- tencentcloud/ctsdb/v20230202/ctsdb_client.py +79 -0
- tencentcloud/ctsdb/v20230202/errorcodes.py +24 -0
- tencentcloud/ctsdb/v20230202/models.py +1256 -0
- tencentcloud_sdk_python_ctsdb-3.0.1427.dist-info/METADATA +48 -0
- tencentcloud_sdk_python_ctsdb-3.0.1427.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_ctsdb-3.0.1427.dist-info/WHEEL +6 -0
- tencentcloud_sdk_python_ctsdb-3.0.1427.dist-info/top_level.txt +1 -0
tencentcloud/__init__.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 1999-2018 Tencent Ltd.
|
|
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
|
+
|
|
17
|
+
__version__ = '3.0.1427'
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. 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.ctsdb.v20230202 import models
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CtsdbClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2023-02-02'
|
|
25
|
+
_endpoint = 'ctsdb.tencentcloudapi.com'
|
|
26
|
+
_service = 'ctsdb'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def DescribeClusters(self, request):
|
|
30
|
+
"""查询实例列表及详情
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for DescribeClusters.
|
|
33
|
+
:type request: :class:`tencentcloud.ctsdb.v20230202.models.DescribeClustersRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.ctsdb.v20230202.models.DescribeClustersResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("DescribeClusters", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.DescribeClustersResponse()
|
|
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 DescribeDatabases(self, request):
|
|
53
|
+
"""查看数据库/列表
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
"Database":{
|
|
57
|
+
"ClusterID":"ctsdbi-rebg0ghl",
|
|
58
|
+
"Name":"" //不指定则查询实例下所有db
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
:param request: Request instance for DescribeDatabases.
|
|
63
|
+
:type request: :class:`tencentcloud.ctsdb.v20230202.models.DescribeDatabasesRequest`
|
|
64
|
+
:rtype: :class:`tencentcloud.ctsdb.v20230202.models.DescribeDatabasesResponse`
|
|
65
|
+
|
|
66
|
+
"""
|
|
67
|
+
try:
|
|
68
|
+
params = request._serialize()
|
|
69
|
+
headers = request.headers
|
|
70
|
+
body = self.call("DescribeDatabases", params, headers=headers)
|
|
71
|
+
response = json.loads(body)
|
|
72
|
+
model = models.DescribeDatabasesResponse()
|
|
73
|
+
model._deserialize(response["Response"])
|
|
74
|
+
return model
|
|
75
|
+
except Exception as e:
|
|
76
|
+
if isinstance(e, TencentCloudSDKException):
|
|
77
|
+
raise
|
|
78
|
+
else:
|
|
79
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. 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
|
+
|
|
17
|
+
# CAM签名/鉴权错误。
|
|
18
|
+
AUTHFAILURE = 'AuthFailure'
|
|
19
|
+
|
|
20
|
+
# 操作失败。
|
|
21
|
+
FAILEDOPERATION = 'FailedOperation'
|
|
22
|
+
|
|
23
|
+
# 资源不存在。
|
|
24
|
+
RESOURCENOTFOUND = 'ResourceNotFound'
|