tencentcloud-sdk-python-ctsdb 3.0.1427__tar.gz → 3.1.43__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_ctsdb-3.1.43/PKG-INFO +46 -0
- {tencentcloud-sdk-python-ctsdb-3.0.1427 → tencentcloud_sdk_python_ctsdb-3.1.43}/setup.py +2 -1
- {tencentcloud-sdk-python-ctsdb-3.0.1427 → tencentcloud_sdk_python_ctsdb-3.1.43}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ctsdb-3.0.1427 → tencentcloud_sdk_python_ctsdb-3.1.43}/tencentcloud/ctsdb/v20230202/ctsdb_client.py +25 -2
- tencentcloud_sdk_python_ctsdb-3.1.43/tencentcloud/ctsdb/v20230202/ctsdb_client_async.py +87 -0
- {tencentcloud-sdk-python-ctsdb-3.0.1427 → tencentcloud_sdk_python_ctsdb-3.1.43}/tencentcloud/ctsdb/v20230202/models.py +659 -70
- tencentcloud_sdk_python_ctsdb-3.1.43/tencentcloud_sdk_python_ctsdb.egg-info/PKG-INFO +46 -0
- {tencentcloud-sdk-python-ctsdb-3.0.1427 → tencentcloud_sdk_python_ctsdb-3.1.43}/tencentcloud_sdk_python_ctsdb.egg-info/SOURCES.txt +1 -0
- tencentcloud_sdk_python_ctsdb-3.1.43/tencentcloud_sdk_python_ctsdb.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-ctsdb-3.0.1427/PKG-INFO +0 -45
- tencentcloud-sdk-python-ctsdb-3.0.1427/tencentcloud_sdk_python_ctsdb.egg-info/PKG-INFO +0 -45
- tencentcloud-sdk-python-ctsdb-3.0.1427/tencentcloud_sdk_python_ctsdb.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-ctsdb-3.0.1427 → tencentcloud_sdk_python_ctsdb-3.1.43}/README.rst +0 -0
- {tencentcloud-sdk-python-ctsdb-3.0.1427 → tencentcloud_sdk_python_ctsdb-3.1.43}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ctsdb-3.0.1427 → tencentcloud_sdk_python_ctsdb-3.1.43}/tencentcloud/ctsdb/__init__.py +0 -0
- {tencentcloud-sdk-python-ctsdb-3.0.1427 → tencentcloud_sdk_python_ctsdb-3.1.43}/tencentcloud/ctsdb/v20230202/__init__.py +0 -0
- {tencentcloud-sdk-python-ctsdb-3.0.1427 → tencentcloud_sdk_python_ctsdb-3.1.43}/tencentcloud/ctsdb/v20230202/errorcodes.py +0 -0
- {tencentcloud-sdk-python-ctsdb-3.0.1427 → tencentcloud_sdk_python_ctsdb-3.1.43}/tencentcloud_sdk_python_ctsdb.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ctsdb-3.0.1427 → tencentcloud_sdk_python_ctsdb-3.1.43}/tencentcloud_sdk_python_ctsdb.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-ctsdb
|
|
3
|
+
Version: 3.1.43
|
|
4
|
+
Summary: Tencent Cloud Ctsdb SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Platform: any
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.43
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Ctsdb SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
25
|
+
The SDK works on Python versions:
|
|
26
|
+
|
|
27
|
+
* 2.7 and greater, including 3.x
|
|
28
|
+
|
|
29
|
+
Quick Start
|
|
30
|
+
-----------
|
|
31
|
+
|
|
32
|
+
First, install the library:
|
|
33
|
+
|
|
34
|
+
.. code-block:: sh
|
|
35
|
+
|
|
36
|
+
$ pip install tencentcloud-sdk-python-common
|
|
37
|
+
$ pip install tencentcloud-sdk-python-ctsdb
|
|
38
|
+
|
|
39
|
+
or download source code from github and install:
|
|
40
|
+
|
|
41
|
+
.. code-block:: sh
|
|
42
|
+
|
|
43
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
44
|
+
$ cd tencentcloud-sdk-python
|
|
45
|
+
$ python package.py --components common ctsdb
|
|
46
|
+
|
|
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-ctsdb',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.43,<4.0.0"],
|
|
12
|
+
|
|
12
13
|
version=tencentcloud.__version__,
|
|
13
14
|
description='Tencent Cloud Ctsdb SDK for Python',
|
|
14
15
|
long_description=open('README.rst').read(),
|
|
@@ -26,8 +26,31 @@ class CtsdbClient(AbstractClient):
|
|
|
26
26
|
_service = 'ctsdb'
|
|
27
27
|
|
|
28
28
|
|
|
29
|
+
def DescribeClusterDetail(self, request):
|
|
30
|
+
r"""查询实例详情
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for DescribeClusterDetail.
|
|
33
|
+
:type request: :class:`tencentcloud.ctsdb.v20230202.models.DescribeClusterDetailRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.ctsdb.v20230202.models.DescribeClusterDetailResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("DescribeClusterDetail", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.DescribeClusterDetailResponse()
|
|
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
|
+
|
|
29
52
|
def DescribeClusters(self, request):
|
|
30
|
-
"""查询实例列表及详情
|
|
53
|
+
r"""查询实例列表及详情
|
|
31
54
|
|
|
32
55
|
:param request: Request instance for DescribeClusters.
|
|
33
56
|
:type request: :class:`tencentcloud.ctsdb.v20230202.models.DescribeClustersRequest`
|
|
@@ -50,7 +73,7 @@ class CtsdbClient(AbstractClient):
|
|
|
50
73
|
|
|
51
74
|
|
|
52
75
|
def DescribeDatabases(self, request):
|
|
53
|
-
"""查看数据库/列表
|
|
76
|
+
r"""查看数据库/列表
|
|
54
77
|
|
|
55
78
|
```
|
|
56
79
|
"Database":{
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
|
|
18
|
+
from tencentcloud.common.abstract_client_async import AbstractClient
|
|
19
|
+
from tencentcloud.ctsdb.v20230202 import models
|
|
20
|
+
from typing import Dict
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CtsdbClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2023-02-02'
|
|
25
|
+
_endpoint = 'ctsdb.tencentcloudapi.com'
|
|
26
|
+
_service = 'ctsdb'
|
|
27
|
+
|
|
28
|
+
async def DescribeClusterDetail(
|
|
29
|
+
self,
|
|
30
|
+
request: models.DescribeClusterDetailRequest,
|
|
31
|
+
opts: Dict = None,
|
|
32
|
+
) -> models.DescribeClusterDetailResponse:
|
|
33
|
+
"""
|
|
34
|
+
查询实例详情
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
kwargs = {}
|
|
38
|
+
kwargs["action"] = "DescribeClusterDetail"
|
|
39
|
+
kwargs["params"] = request._serialize()
|
|
40
|
+
kwargs["resp_cls"] = models.DescribeClusterDetailResponse
|
|
41
|
+
kwargs["headers"] = request.headers
|
|
42
|
+
kwargs["opts"] = opts or {}
|
|
43
|
+
|
|
44
|
+
return await self.call_and_deserialize(**kwargs)
|
|
45
|
+
|
|
46
|
+
async def DescribeClusters(
|
|
47
|
+
self,
|
|
48
|
+
request: models.DescribeClustersRequest,
|
|
49
|
+
opts: Dict = None,
|
|
50
|
+
) -> models.DescribeClustersResponse:
|
|
51
|
+
"""
|
|
52
|
+
查询实例列表及详情
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = {}
|
|
56
|
+
kwargs["action"] = "DescribeClusters"
|
|
57
|
+
kwargs["params"] = request._serialize()
|
|
58
|
+
kwargs["resp_cls"] = models.DescribeClustersResponse
|
|
59
|
+
kwargs["headers"] = request.headers
|
|
60
|
+
kwargs["opts"] = opts or {}
|
|
61
|
+
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
63
|
+
|
|
64
|
+
async def DescribeDatabases(
|
|
65
|
+
self,
|
|
66
|
+
request: models.DescribeDatabasesRequest,
|
|
67
|
+
opts: Dict = None,
|
|
68
|
+
) -> models.DescribeDatabasesResponse:
|
|
69
|
+
"""
|
|
70
|
+
查看数据库/列表
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
"Database":{
|
|
74
|
+
"ClusterID":"ctsdbi-rebg0ghl",
|
|
75
|
+
"Name":"" //不指定则查询实例下所有db
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
kwargs = {}
|
|
81
|
+
kwargs["action"] = "DescribeDatabases"
|
|
82
|
+
kwargs["params"] = request._serialize()
|
|
83
|
+
kwargs["resp_cls"] = models.DescribeDatabasesResponse
|
|
84
|
+
kwargs["headers"] = request.headers
|
|
85
|
+
kwargs["opts"] = opts or {}
|
|
86
|
+
|
|
87
|
+
return await self.call_and_deserialize(**kwargs)
|