tencentcloud-sdk-python-ctsdb 3.0.1427__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.
@@ -0,0 +1,45 @@
1
+ Metadata-Version: 1.2
2
+ Name: tencentcloud-sdk-python-ctsdb
3
+ Version: 3.0.1427
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
+ Description: ============================
10
+ Tencent Cloud SDK for Python
11
+ ============================
12
+
13
+ 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.
14
+ The SDK works on Python versions:
15
+
16
+ * 2.7 and greater, including 3.x
17
+
18
+ Quick Start
19
+ -----------
20
+
21
+ First, install the library:
22
+
23
+ .. code-block:: sh
24
+
25
+ $ pip install tencentcloud-sdk-python-common
26
+ $ pip install tencentcloud-sdk-python-ctsdb
27
+
28
+ or download source code from github and install:
29
+
30
+ .. code-block:: sh
31
+
32
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
33
+ $ cd tencentcloud-sdk-python
34
+ $ python package.py --components common ctsdb
35
+
36
+
37
+ Platform: any
38
+ Classifier: Development Status :: 5 - Production/Stable
39
+ Classifier: Intended Audience :: Developers
40
+ Classifier: License :: OSI Approved :: Apache Software License
41
+ Classifier: Programming Language :: Python
42
+ Classifier: Programming Language :: Python :: 2.7
43
+ Classifier: Programming Language :: Python :: 3
44
+ Classifier: Programming Language :: Python :: 3.6
45
+ Classifier: Programming Language :: Python :: 3.7
@@ -0,0 +1,27 @@
1
+ ============================
2
+ Tencent Cloud SDK for Python
3
+ ============================
4
+
5
+ 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.
6
+ The SDK works on Python versions:
7
+
8
+ * 2.7 and greater, including 3.x
9
+
10
+ Quick Start
11
+ -----------
12
+
13
+ First, install the library:
14
+
15
+ .. code-block:: sh
16
+
17
+ $ pip install tencentcloud-sdk-python-common
18
+ $ pip install tencentcloud-sdk-python-ctsdb
19
+
20
+ or download source code from github and install:
21
+
22
+ .. code-block:: sh
23
+
24
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
25
+ $ cd tencentcloud-sdk-python
26
+ $ python package.py --components common ctsdb
27
+
@@ -0,0 +1,7 @@
1
+ [bdist_wheel]
2
+ universal = 1
3
+
4
+ [egg_info]
5
+ tag_build =
6
+ tag_date = 0
7
+
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env python
2
+ import os
3
+ from setuptools import setup, find_packages
4
+
5
+ import tencentcloud
6
+
7
+ ROOT = os.path.dirname(__file__)
8
+
9
+ setup(
10
+ name='tencentcloud-sdk-python-ctsdb',
11
+ install_requires=["tencentcloud-sdk-python-common>=3.0.1427,<4.0.0"],
12
+ version=tencentcloud.__version__,
13
+ description='Tencent Cloud Ctsdb SDK for Python',
14
+ long_description=open('README.rst').read(),
15
+ author='Tencent Cloud',
16
+ url='https://github.com/TencentCloud/tencentcloud-sdk-python',
17
+ maintainer_email="tencentcloudapi@tencent.com",
18
+ scripts=[],
19
+ packages=find_packages(exclude=["tests*"]),
20
+ license="Apache License 2.0",
21
+ platforms='any',
22
+ classifiers=[
23
+ 'Development Status :: 5 - Production/Stable',
24
+ 'Intended Audience :: Developers',
25
+ 'License :: OSI Approved :: Apache Software License',
26
+ 'Programming Language :: Python',
27
+ 'Programming Language :: Python :: 2.7',
28
+ 'Programming Language :: Python :: 3',
29
+ 'Programming Language :: Python :: 3.6',
30
+ 'Programming Language :: Python :: 3.7',
31
+ ],
32
+ )
@@ -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'
@@ -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'