tencentcloud-sdk-python-cfg 3.0.1479__tar.gz → 3.1.99__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_cfg-3.1.99/PKG-INFO +46 -0
- {tencentcloud-sdk-python-cfg-3.0.1479 → tencentcloud_sdk_python_cfg-3.1.99}/setup.py +2 -1
- {tencentcloud-sdk-python-cfg-3.0.1479 → tencentcloud_sdk_python_cfg-3.1.99}/tencentcloud/__init__.py +1 -1
- tencentcloud_sdk_python_cfg-3.1.99/tencentcloud/cfg/v20210820/cfg_client_async.py +332 -0
- {tencentcloud-sdk-python-cfg-3.0.1479 → tencentcloud_sdk_python_cfg-3.1.99}/tencentcloud/cfg/v20210820/models.py +157 -124
- tencentcloud_sdk_python_cfg-3.1.99/tencentcloud_sdk_python_cfg.egg-info/PKG-INFO +46 -0
- {tencentcloud-sdk-python-cfg-3.0.1479 → tencentcloud_sdk_python_cfg-3.1.99}/tencentcloud_sdk_python_cfg.egg-info/SOURCES.txt +1 -0
- tencentcloud_sdk_python_cfg-3.1.99/tencentcloud_sdk_python_cfg.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cfg-3.0.1479/PKG-INFO +0 -45
- tencentcloud-sdk-python-cfg-3.0.1479/tencentcloud_sdk_python_cfg.egg-info/PKG-INFO +0 -45
- tencentcloud-sdk-python-cfg-3.0.1479/tencentcloud_sdk_python_cfg.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cfg-3.0.1479 → tencentcloud_sdk_python_cfg-3.1.99}/README.rst +0 -0
- {tencentcloud-sdk-python-cfg-3.0.1479 → tencentcloud_sdk_python_cfg-3.1.99}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cfg-3.0.1479 → tencentcloud_sdk_python_cfg-3.1.99}/tencentcloud/cfg/__init__.py +0 -0
- {tencentcloud-sdk-python-cfg-3.0.1479 → tencentcloud_sdk_python_cfg-3.1.99}/tencentcloud/cfg/v20210820/__init__.py +0 -0
- {tencentcloud-sdk-python-cfg-3.0.1479 → tencentcloud_sdk_python_cfg-3.1.99}/tencentcloud/cfg/v20210820/cfg_client.py +0 -0
- {tencentcloud-sdk-python-cfg-3.0.1479 → tencentcloud_sdk_python_cfg-3.1.99}/tencentcloud/cfg/v20210820/errorcodes.py +0 -0
- {tencentcloud-sdk-python-cfg-3.0.1479 → tencentcloud_sdk_python_cfg-3.1.99}/tencentcloud_sdk_python_cfg.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cfg-3.0.1479 → tencentcloud_sdk_python_cfg-3.1.99}/tencentcloud_sdk_python_cfg.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-cfg
|
|
3
|
+
Version: 3.1.99
|
|
4
|
+
Summary: Tencent Cloud Cfg 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.99
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Cfg 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-cfg
|
|
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 cfg
|
|
46
|
+
|
|
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-cfg',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.99,<4.0.0"],
|
|
12
|
+
|
|
12
13
|
version=tencentcloud.__version__,
|
|
13
14
|
description='Tencent Cloud Cfg SDK for Python',
|
|
14
15
|
long_description=open('README.rst').read(),
|
|
@@ -0,0 +1,332 @@
|
|
|
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.cfg.v20210820 import models
|
|
20
|
+
from typing import Dict
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CfgClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2021-08-20'
|
|
25
|
+
_endpoint = 'cfg.tencentcloudapi.com'
|
|
26
|
+
_service = 'cfg'
|
|
27
|
+
|
|
28
|
+
async def CreateTaskFromAction(
|
|
29
|
+
self,
|
|
30
|
+
request: models.CreateTaskFromActionRequest,
|
|
31
|
+
opts: Dict = None,
|
|
32
|
+
) -> models.CreateTaskFromActionResponse:
|
|
33
|
+
"""
|
|
34
|
+
从动作创建演练
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
kwargs = {}
|
|
38
|
+
kwargs["action"] = "CreateTaskFromAction"
|
|
39
|
+
kwargs["params"] = request._serialize()
|
|
40
|
+
kwargs["resp_cls"] = models.CreateTaskFromActionResponse
|
|
41
|
+
kwargs["headers"] = request.headers
|
|
42
|
+
kwargs["opts"] = opts or {}
|
|
43
|
+
|
|
44
|
+
return await self.call_and_deserialize(**kwargs)
|
|
45
|
+
|
|
46
|
+
async def CreateTaskFromMultiAction(
|
|
47
|
+
self,
|
|
48
|
+
request: models.CreateTaskFromMultiActionRequest,
|
|
49
|
+
opts: Dict = None,
|
|
50
|
+
) -> models.CreateTaskFromMultiActionResponse:
|
|
51
|
+
"""
|
|
52
|
+
以多个动作创建演练
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = {}
|
|
56
|
+
kwargs["action"] = "CreateTaskFromMultiAction"
|
|
57
|
+
kwargs["params"] = request._serialize()
|
|
58
|
+
kwargs["resp_cls"] = models.CreateTaskFromMultiActionResponse
|
|
59
|
+
kwargs["headers"] = request.headers
|
|
60
|
+
kwargs["opts"] = opts or {}
|
|
61
|
+
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
63
|
+
|
|
64
|
+
async def CreateTaskFromTemplate(
|
|
65
|
+
self,
|
|
66
|
+
request: models.CreateTaskFromTemplateRequest,
|
|
67
|
+
opts: Dict = None,
|
|
68
|
+
) -> models.CreateTaskFromTemplateResponse:
|
|
69
|
+
"""
|
|
70
|
+
从经验库创建演练
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
kwargs = {}
|
|
74
|
+
kwargs["action"] = "CreateTaskFromTemplate"
|
|
75
|
+
kwargs["params"] = request._serialize()
|
|
76
|
+
kwargs["resp_cls"] = models.CreateTaskFromTemplateResponse
|
|
77
|
+
kwargs["headers"] = request.headers
|
|
78
|
+
kwargs["opts"] = opts or {}
|
|
79
|
+
|
|
80
|
+
return await self.call_and_deserialize(**kwargs)
|
|
81
|
+
|
|
82
|
+
async def DeleteTask(
|
|
83
|
+
self,
|
|
84
|
+
request: models.DeleteTaskRequest,
|
|
85
|
+
opts: Dict = None,
|
|
86
|
+
) -> models.DeleteTaskResponse:
|
|
87
|
+
"""
|
|
88
|
+
删除任务
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
kwargs = {}
|
|
92
|
+
kwargs["action"] = "DeleteTask"
|
|
93
|
+
kwargs["params"] = request._serialize()
|
|
94
|
+
kwargs["resp_cls"] = models.DeleteTaskResponse
|
|
95
|
+
kwargs["headers"] = request.headers
|
|
96
|
+
kwargs["opts"] = opts or {}
|
|
97
|
+
|
|
98
|
+
return await self.call_and_deserialize(**kwargs)
|
|
99
|
+
|
|
100
|
+
async def DescribeActionFieldConfigList(
|
|
101
|
+
self,
|
|
102
|
+
request: models.DescribeActionFieldConfigListRequest,
|
|
103
|
+
opts: Dict = None,
|
|
104
|
+
) -> models.DescribeActionFieldConfigListResponse:
|
|
105
|
+
"""
|
|
106
|
+
根据动作ID获取动作栏位动态配置参数信息,里面包含动作自有和通用两部分参数。
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
kwargs = {}
|
|
110
|
+
kwargs["action"] = "DescribeActionFieldConfigList"
|
|
111
|
+
kwargs["params"] = request._serialize()
|
|
112
|
+
kwargs["resp_cls"] = models.DescribeActionFieldConfigListResponse
|
|
113
|
+
kwargs["headers"] = request.headers
|
|
114
|
+
kwargs["opts"] = opts or {}
|
|
115
|
+
|
|
116
|
+
return await self.call_and_deserialize(**kwargs)
|
|
117
|
+
|
|
118
|
+
async def DescribeActionLibraryList(
|
|
119
|
+
self,
|
|
120
|
+
request: models.DescribeActionLibraryListRequest,
|
|
121
|
+
opts: Dict = None,
|
|
122
|
+
) -> models.DescribeActionLibraryListResponse:
|
|
123
|
+
"""
|
|
124
|
+
获取混沌演练平台的动作库列表
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = {}
|
|
128
|
+
kwargs["action"] = "DescribeActionLibraryList"
|
|
129
|
+
kwargs["params"] = request._serialize()
|
|
130
|
+
kwargs["resp_cls"] = models.DescribeActionLibraryListResponse
|
|
131
|
+
kwargs["headers"] = request.headers
|
|
132
|
+
kwargs["opts"] = opts or {}
|
|
133
|
+
|
|
134
|
+
return await self.call_and_deserialize(**kwargs)
|
|
135
|
+
|
|
136
|
+
async def DescribeObjectTypeList(
|
|
137
|
+
self,
|
|
138
|
+
request: models.DescribeObjectTypeListRequest,
|
|
139
|
+
opts: Dict = None,
|
|
140
|
+
) -> models.DescribeObjectTypeListResponse:
|
|
141
|
+
"""
|
|
142
|
+
查询对象类型列表
|
|
143
|
+
"""
|
|
144
|
+
|
|
145
|
+
kwargs = {}
|
|
146
|
+
kwargs["action"] = "DescribeObjectTypeList"
|
|
147
|
+
kwargs["params"] = request._serialize()
|
|
148
|
+
kwargs["resp_cls"] = models.DescribeObjectTypeListResponse
|
|
149
|
+
kwargs["headers"] = request.headers
|
|
150
|
+
kwargs["opts"] = opts or {}
|
|
151
|
+
|
|
152
|
+
return await self.call_and_deserialize(**kwargs)
|
|
153
|
+
|
|
154
|
+
async def DescribeTask(
|
|
155
|
+
self,
|
|
156
|
+
request: models.DescribeTaskRequest,
|
|
157
|
+
opts: Dict = None,
|
|
158
|
+
) -> models.DescribeTaskResponse:
|
|
159
|
+
"""
|
|
160
|
+
查询任务
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
kwargs = {}
|
|
164
|
+
kwargs["action"] = "DescribeTask"
|
|
165
|
+
kwargs["params"] = request._serialize()
|
|
166
|
+
kwargs["resp_cls"] = models.DescribeTaskResponse
|
|
167
|
+
kwargs["headers"] = request.headers
|
|
168
|
+
kwargs["opts"] = opts or {}
|
|
169
|
+
|
|
170
|
+
return await self.call_and_deserialize(**kwargs)
|
|
171
|
+
|
|
172
|
+
async def DescribeTaskExecuteLogs(
|
|
173
|
+
self,
|
|
174
|
+
request: models.DescribeTaskExecuteLogsRequest,
|
|
175
|
+
opts: Dict = None,
|
|
176
|
+
) -> models.DescribeTaskExecuteLogsResponse:
|
|
177
|
+
"""
|
|
178
|
+
获取演练过程中的所有日志
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
kwargs = {}
|
|
182
|
+
kwargs["action"] = "DescribeTaskExecuteLogs"
|
|
183
|
+
kwargs["params"] = request._serialize()
|
|
184
|
+
kwargs["resp_cls"] = models.DescribeTaskExecuteLogsResponse
|
|
185
|
+
kwargs["headers"] = request.headers
|
|
186
|
+
kwargs["opts"] = opts or {}
|
|
187
|
+
|
|
188
|
+
return await self.call_and_deserialize(**kwargs)
|
|
189
|
+
|
|
190
|
+
async def DescribeTaskList(
|
|
191
|
+
self,
|
|
192
|
+
request: models.DescribeTaskListRequest,
|
|
193
|
+
opts: Dict = None,
|
|
194
|
+
) -> models.DescribeTaskListResponse:
|
|
195
|
+
"""
|
|
196
|
+
查询任务列表
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
kwargs = {}
|
|
200
|
+
kwargs["action"] = "DescribeTaskList"
|
|
201
|
+
kwargs["params"] = request._serialize()
|
|
202
|
+
kwargs["resp_cls"] = models.DescribeTaskListResponse
|
|
203
|
+
kwargs["headers"] = request.headers
|
|
204
|
+
kwargs["opts"] = opts or {}
|
|
205
|
+
|
|
206
|
+
return await self.call_and_deserialize(**kwargs)
|
|
207
|
+
|
|
208
|
+
async def DescribeTaskPolicyTriggerLog(
|
|
209
|
+
self,
|
|
210
|
+
request: models.DescribeTaskPolicyTriggerLogRequest,
|
|
211
|
+
opts: Dict = None,
|
|
212
|
+
) -> models.DescribeTaskPolicyTriggerLogResponse:
|
|
213
|
+
"""
|
|
214
|
+
获取护栏触发日志
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
kwargs = {}
|
|
218
|
+
kwargs["action"] = "DescribeTaskPolicyTriggerLog"
|
|
219
|
+
kwargs["params"] = request._serialize()
|
|
220
|
+
kwargs["resp_cls"] = models.DescribeTaskPolicyTriggerLogResponse
|
|
221
|
+
kwargs["headers"] = request.headers
|
|
222
|
+
kwargs["opts"] = opts or {}
|
|
223
|
+
|
|
224
|
+
return await self.call_and_deserialize(**kwargs)
|
|
225
|
+
|
|
226
|
+
async def DescribeTemplate(
|
|
227
|
+
self,
|
|
228
|
+
request: models.DescribeTemplateRequest,
|
|
229
|
+
opts: Dict = None,
|
|
230
|
+
) -> models.DescribeTemplateResponse:
|
|
231
|
+
"""
|
|
232
|
+
查询经验库
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
kwargs = {}
|
|
236
|
+
kwargs["action"] = "DescribeTemplate"
|
|
237
|
+
kwargs["params"] = request._serialize()
|
|
238
|
+
kwargs["resp_cls"] = models.DescribeTemplateResponse
|
|
239
|
+
kwargs["headers"] = request.headers
|
|
240
|
+
kwargs["opts"] = opts or {}
|
|
241
|
+
|
|
242
|
+
return await self.call_and_deserialize(**kwargs)
|
|
243
|
+
|
|
244
|
+
async def DescribeTemplateList(
|
|
245
|
+
self,
|
|
246
|
+
request: models.DescribeTemplateListRequest,
|
|
247
|
+
opts: Dict = None,
|
|
248
|
+
) -> models.DescribeTemplateListResponse:
|
|
249
|
+
"""
|
|
250
|
+
查询经验库列表
|
|
251
|
+
"""
|
|
252
|
+
|
|
253
|
+
kwargs = {}
|
|
254
|
+
kwargs["action"] = "DescribeTemplateList"
|
|
255
|
+
kwargs["params"] = request._serialize()
|
|
256
|
+
kwargs["resp_cls"] = models.DescribeTemplateListResponse
|
|
257
|
+
kwargs["headers"] = request.headers
|
|
258
|
+
kwargs["opts"] = opts or {}
|
|
259
|
+
|
|
260
|
+
return await self.call_and_deserialize(**kwargs)
|
|
261
|
+
|
|
262
|
+
async def ExecuteTask(
|
|
263
|
+
self,
|
|
264
|
+
request: models.ExecuteTaskRequest,
|
|
265
|
+
opts: Dict = None,
|
|
266
|
+
) -> models.ExecuteTaskResponse:
|
|
267
|
+
"""
|
|
268
|
+
执行任务
|
|
269
|
+
"""
|
|
270
|
+
|
|
271
|
+
kwargs = {}
|
|
272
|
+
kwargs["action"] = "ExecuteTask"
|
|
273
|
+
kwargs["params"] = request._serialize()
|
|
274
|
+
kwargs["resp_cls"] = models.ExecuteTaskResponse
|
|
275
|
+
kwargs["headers"] = request.headers
|
|
276
|
+
kwargs["opts"] = opts or {}
|
|
277
|
+
|
|
278
|
+
return await self.call_and_deserialize(**kwargs)
|
|
279
|
+
|
|
280
|
+
async def ExecuteTaskInstance(
|
|
281
|
+
self,
|
|
282
|
+
request: models.ExecuteTaskInstanceRequest,
|
|
283
|
+
opts: Dict = None,
|
|
284
|
+
) -> models.ExecuteTaskInstanceResponse:
|
|
285
|
+
"""
|
|
286
|
+
触发混沌演练任务的动作,对于实例进行演练操作
|
|
287
|
+
"""
|
|
288
|
+
|
|
289
|
+
kwargs = {}
|
|
290
|
+
kwargs["action"] = "ExecuteTaskInstance"
|
|
291
|
+
kwargs["params"] = request._serialize()
|
|
292
|
+
kwargs["resp_cls"] = models.ExecuteTaskInstanceResponse
|
|
293
|
+
kwargs["headers"] = request.headers
|
|
294
|
+
kwargs["opts"] = opts or {}
|
|
295
|
+
|
|
296
|
+
return await self.call_and_deserialize(**kwargs)
|
|
297
|
+
|
|
298
|
+
async def ModifyTaskRunStatus(
|
|
299
|
+
self,
|
|
300
|
+
request: models.ModifyTaskRunStatusRequest,
|
|
301
|
+
opts: Dict = None,
|
|
302
|
+
) -> models.ModifyTaskRunStatusResponse:
|
|
303
|
+
"""
|
|
304
|
+
修改任务运行状态
|
|
305
|
+
"""
|
|
306
|
+
|
|
307
|
+
kwargs = {}
|
|
308
|
+
kwargs["action"] = "ModifyTaskRunStatus"
|
|
309
|
+
kwargs["params"] = request._serialize()
|
|
310
|
+
kwargs["resp_cls"] = models.ModifyTaskRunStatusResponse
|
|
311
|
+
kwargs["headers"] = request.headers
|
|
312
|
+
kwargs["opts"] = opts or {}
|
|
313
|
+
|
|
314
|
+
return await self.call_and_deserialize(**kwargs)
|
|
315
|
+
|
|
316
|
+
async def TriggerPolicy(
|
|
317
|
+
self,
|
|
318
|
+
request: models.TriggerPolicyRequest,
|
|
319
|
+
opts: Dict = None,
|
|
320
|
+
) -> models.TriggerPolicyResponse:
|
|
321
|
+
"""
|
|
322
|
+
用于触发混沌演练护栏(类型为触发和恢复2种)
|
|
323
|
+
"""
|
|
324
|
+
|
|
325
|
+
kwargs = {}
|
|
326
|
+
kwargs["action"] = "TriggerPolicy"
|
|
327
|
+
kwargs["params"] = request._serialize()
|
|
328
|
+
kwargs["resp_cls"] = models.TriggerPolicyResponse
|
|
329
|
+
kwargs["headers"] = request.headers
|
|
330
|
+
kwargs["opts"] = opts or {}
|
|
331
|
+
|
|
332
|
+
return await self.call_and_deserialize(**kwargs)
|