tencentcloud-sdk-python-config 3.0.1035__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-config-3.0.1035/PKG-INFO +45 -0
- tencentcloud-sdk-python-config-3.0.1035/README.rst +27 -0
- tencentcloud-sdk-python-config-3.0.1035/setup.cfg +8 -0
- tencentcloud-sdk-python-config-3.0.1035/setup.py +32 -0
- tencentcloud-sdk-python-config-3.0.1035/tencentcloud/__init__.py +17 -0
- tencentcloud-sdk-python-config-3.0.1035/tencentcloud/config/__init__.py +0 -0
- tencentcloud-sdk-python-config-3.0.1035/tencentcloud/config/v20220802/__init__.py +0 -0
- tencentcloud-sdk-python-config-3.0.1035/tencentcloud/config/v20220802/config_client.py +72 -0
- tencentcloud-sdk-python-config-3.0.1035/tencentcloud/config/v20220802/errorcodes.py +21 -0
- tencentcloud-sdk-python-config-3.0.1035/tencentcloud/config/v20220802/models.py +1172 -0
- tencentcloud-sdk-python-config-3.0.1035/tencentcloud_sdk_python_config.egg-info/PKG-INFO +45 -0
- tencentcloud-sdk-python-config-3.0.1035/tencentcloud_sdk_python_config.egg-info/SOURCES.txt +14 -0
- tencentcloud-sdk-python-config-3.0.1035/tencentcloud_sdk_python_config.egg-info/dependency_links.txt +1 -0
- tencentcloud-sdk-python-config-3.0.1035/tencentcloud_sdk_python_config.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-config-3.0.1035/tencentcloud_sdk_python_config.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 1.1
|
|
2
|
+
Name: tencentcloud-sdk-python-config
|
|
3
|
+
Version: 3.0.1035
|
|
4
|
+
Summary: Tencent Cloud Config 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 Config 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-config
|
|
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 config
|
|
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 Config 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-config
|
|
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 config
|
|
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-config',
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1035"],
|
|
12
|
+
version=tencentcloud.__version__,
|
|
13
|
+
description='Tencent Cloud Config 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.1035'
|
|
File without changes
|
|
File without changes
|
|
@@ -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.config.v20220802 import models
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ConfigClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2022-08-02'
|
|
25
|
+
_endpoint = 'config.tencentcloudapi.com'
|
|
26
|
+
_service = 'config'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def ListAggregateConfigRules(self, request):
|
|
30
|
+
"""账号组获取规则列表
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for ListAggregateConfigRules.
|
|
33
|
+
:type request: :class:`tencentcloud.config.v20220802.models.ListAggregateConfigRulesRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.config.v20220802.models.ListAggregateConfigRulesResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("ListAggregateConfigRules", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.ListAggregateConfigRulesResponse()
|
|
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 ListConfigRules(self, request):
|
|
53
|
+
"""获取规则列表
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for ListConfigRules.
|
|
56
|
+
:type request: :class:`tencentcloud.config.v20220802.models.ListConfigRulesRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.config.v20220802.models.ListConfigRulesResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("ListConfigRules", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.ListConfigRulesResponse()
|
|
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))
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
INVALIDPARAMETER = 'InvalidParameter'
|
|
19
|
+
|
|
20
|
+
# 账号组不存在。
|
|
21
|
+
RESOURCENOTFOUND_ACCOUNTGROUPISNOTEXIST = 'ResourceNotFound.AccountGroupIsNotExist'
|