tencentcloud-sdk-python-cdwdoris 3.0.1051__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-cdwdoris-3.0.1051/PKG-INFO +45 -0
- tencentcloud-sdk-python-cdwdoris-3.0.1051/README.rst +27 -0
- tencentcloud-sdk-python-cdwdoris-3.0.1051/setup.cfg +8 -0
- tencentcloud-sdk-python-cdwdoris-3.0.1051/setup.py +32 -0
- tencentcloud-sdk-python-cdwdoris-3.0.1051/tencentcloud/__init__.py +17 -0
- tencentcloud-sdk-python-cdwdoris-3.0.1051/tencentcloud/cdwdoris/__init__.py +0 -0
- tencentcloud-sdk-python-cdwdoris-3.0.1051/tencentcloud/cdwdoris/v20211228/__init__.py +0 -0
- tencentcloud-sdk-python-cdwdoris-3.0.1051/tencentcloud/cdwdoris/v20211228/cdwdoris_client.py +95 -0
- tencentcloud-sdk-python-cdwdoris-3.0.1051/tencentcloud/cdwdoris/v20211228/errorcodes.py +18 -0
- tencentcloud-sdk-python-cdwdoris-3.0.1051/tencentcloud/cdwdoris/v20211228/models.py +1396 -0
- tencentcloud-sdk-python-cdwdoris-3.0.1051/tencentcloud_sdk_python_cdwdoris.egg-info/PKG-INFO +45 -0
- tencentcloud-sdk-python-cdwdoris-3.0.1051/tencentcloud_sdk_python_cdwdoris.egg-info/SOURCES.txt +14 -0
- tencentcloud-sdk-python-cdwdoris-3.0.1051/tencentcloud_sdk_python_cdwdoris.egg-info/dependency_links.txt +1 -0
- tencentcloud-sdk-python-cdwdoris-3.0.1051/tencentcloud_sdk_python_cdwdoris.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cdwdoris-3.0.1051/tencentcloud_sdk_python_cdwdoris.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 1.1
|
|
2
|
+
Name: tencentcloud-sdk-python-cdwdoris
|
|
3
|
+
Version: 3.0.1051
|
|
4
|
+
Summary: Tencent Cloud Cdwdoris SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Author-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Description: ============================
|
|
10
|
+
Tencent Cloud SDK for Python
|
|
11
|
+
============================
|
|
12
|
+
|
|
13
|
+
Tencent Cloud Python Cdwdoris 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-cdwdoris
|
|
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 cdwdoris
|
|
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 Cdwdoris 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-cdwdoris
|
|
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 cdwdoris
|
|
27
|
+
|
|
@@ -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-cdwdoris',
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1051"],
|
|
12
|
+
version=tencentcloud.__version__,
|
|
13
|
+
description='Tencent Cloud Cdwdoris 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.1051'
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,95 @@
|
|
|
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.cdwdoris.v20211228 import models
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CdwdorisClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2021-12-28'
|
|
25
|
+
_endpoint = 'cdwdoris.tencentcloudapi.com'
|
|
26
|
+
_service = 'cdwdoris'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def DescribeInstance(self, request):
|
|
30
|
+
"""根据实例ID查询某个实例的具体信息
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for DescribeInstance.
|
|
33
|
+
:type request: :class:`tencentcloud.cdwdoris.v20211228.models.DescribeInstanceRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.cdwdoris.v20211228.models.DescribeInstanceResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("DescribeInstance", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.DescribeInstanceResponse()
|
|
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 DescribeInstanceNodes(self, request):
|
|
53
|
+
"""获取实例节点信息列表
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for DescribeInstanceNodes.
|
|
56
|
+
:type request: :class:`tencentcloud.cdwdoris.v20211228.models.DescribeInstanceNodesRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.cdwdoris.v20211228.models.DescribeInstanceNodesResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("DescribeInstanceNodes", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.DescribeInstanceNodesResponse()
|
|
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))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def DescribeInstances(self, request):
|
|
76
|
+
"""获取实例列表
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for DescribeInstances.
|
|
79
|
+
:type request: :class:`tencentcloud.cdwdoris.v20211228.models.DescribeInstancesRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.cdwdoris.v20211228.models.DescribeInstancesResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("DescribeInstances", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.DescribeInstancesResponse()
|
|
89
|
+
model._deserialize(response["Response"])
|
|
90
|
+
return model
|
|
91
|
+
except Exception as e:
|
|
92
|
+
if isinstance(e, TencentCloudSDKException):
|
|
93
|
+
raise
|
|
94
|
+
else:
|
|
95
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
|
|
17
|
+
# 内部错误。
|
|
18
|
+
INTERNALERROR = 'InternalError'
|