tencentcloud-sdk-python-config 3.1.63__tar.gz → 3.1.77__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_config-3.1.63 → tencentcloud_sdk_python_config-3.1.77}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_config-3.1.63 → tencentcloud_sdk_python_config-3.1.77}/setup.py +1 -1
  3. {tencentcloud_sdk_python_config-3.1.63 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_config-3.1.63 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud/config/v20220802/config_client.py +92 -0
  5. {tencentcloud_sdk_python_config-3.1.63 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud/config/v20220802/config_client_async.py +72 -0
  6. {tencentcloud_sdk_python_config-3.1.63 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud/config/v20220802/errorcodes.py +12 -0
  7. {tencentcloud_sdk_python_config-3.1.63 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud/config/v20220802/models.py +789 -69
  8. {tencentcloud_sdk_python_config-3.1.63 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud_sdk_python_config.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_config-3.1.77/tencentcloud_sdk_python_config.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_config-3.1.63/tencentcloud_sdk_python_config.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_config-3.1.63 → tencentcloud_sdk_python_config-3.1.77}/README.rst +0 -0
  12. {tencentcloud_sdk_python_config-3.1.63 → tencentcloud_sdk_python_config-3.1.77}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_config-3.1.63 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud/config/__init__.py +0 -0
  14. {tencentcloud_sdk_python_config-3.1.63 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud/config/v20220802/__init__.py +0 -0
  15. {tencentcloud_sdk_python_config-3.1.63 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud_sdk_python_config.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_config-3.1.63 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud_sdk_python_config.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_config-3.1.63 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud_sdk_python_config.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-config
3
- Version: 3.1.63
3
+ Version: 3.1.77
4
4
  Summary: Tencent Cloud Config SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.63
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.77
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-config',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.63,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.77,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Config SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.63'
17
+ __version__ = '3.1.77'
@@ -72,6 +72,29 @@ class ConfigClient(AbstractClient):
72
72
  raise TencentCloudSDKException(type(e).__name__, str(e))
73
73
 
74
74
 
75
+ def AddAlarmPolicy(self, request):
76
+ r"""新增告警监控规则
77
+
78
+ :param request: Request instance for AddAlarmPolicy.
79
+ :type request: :class:`tencentcloud.config.v20220802.models.AddAlarmPolicyRequest`
80
+ :rtype: :class:`tencentcloud.config.v20220802.models.AddAlarmPolicyResponse`
81
+
82
+ """
83
+ try:
84
+ params = request._serialize()
85
+ headers = request.headers
86
+ body = self.call("AddAlarmPolicy", params, headers=headers)
87
+ response = json.loads(body)
88
+ model = models.AddAlarmPolicyResponse()
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))
96
+
97
+
75
98
  def AddCompliancePack(self, request):
76
99
  r"""新建合规包
77
100
 
@@ -279,6 +302,29 @@ class ConfigClient(AbstractClient):
279
302
  raise TencentCloudSDKException(type(e).__name__, str(e))
280
303
 
281
304
 
305
+ def DeleteAlarmPolicy(self, request):
306
+ r"""删除告警规则
307
+
308
+ :param request: Request instance for DeleteAlarmPolicy.
309
+ :type request: :class:`tencentcloud.config.v20220802.models.DeleteAlarmPolicyRequest`
310
+ :rtype: :class:`tencentcloud.config.v20220802.models.DeleteAlarmPolicyResponse`
311
+
312
+ """
313
+ try:
314
+ params = request._serialize()
315
+ headers = request.headers
316
+ body = self.call("DeleteAlarmPolicy", params, headers=headers)
317
+ response = json.loads(body)
318
+ model = models.DeleteAlarmPolicyResponse()
319
+ model._deserialize(response["Response"])
320
+ return model
321
+ except Exception as e:
322
+ if isinstance(e, TencentCloudSDKException):
323
+ raise
324
+ else:
325
+ raise TencentCloudSDKException(type(e).__name__, str(e))
326
+
327
+
282
328
  def DeleteCompliancePack(self, request):
283
329
  r"""删除合规包
284
330
 
@@ -785,6 +831,29 @@ class ConfigClient(AbstractClient):
785
831
  raise TencentCloudSDKException(type(e).__name__, str(e))
786
832
 
787
833
 
834
+ def ListAlarmPolicy(self, request):
835
+ r"""告警规则列表
836
+
837
+ :param request: Request instance for ListAlarmPolicy.
838
+ :type request: :class:`tencentcloud.config.v20220802.models.ListAlarmPolicyRequest`
839
+ :rtype: :class:`tencentcloud.config.v20220802.models.ListAlarmPolicyResponse`
840
+
841
+ """
842
+ try:
843
+ params = request._serialize()
844
+ headers = request.headers
845
+ body = self.call("ListAlarmPolicy", params, headers=headers)
846
+ response = json.loads(body)
847
+ model = models.ListAlarmPolicyResponse()
848
+ model._deserialize(response["Response"])
849
+ return model
850
+ except Exception as e:
851
+ if isinstance(e, TencentCloudSDKException):
852
+ raise
853
+ else:
854
+ raise TencentCloudSDKException(type(e).__name__, str(e))
855
+
856
+
788
857
  def ListCompliancePacks(self, request):
789
858
  r"""获取合规包列表
790
859
 
@@ -1245,6 +1314,29 @@ class ConfigClient(AbstractClient):
1245
1314
  raise TencentCloudSDKException(type(e).__name__, str(e))
1246
1315
 
1247
1316
 
1317
+ def UpdateAlarmPolicy(self, request):
1318
+ r"""更新告警规则
1319
+
1320
+ :param request: Request instance for UpdateAlarmPolicy.
1321
+ :type request: :class:`tencentcloud.config.v20220802.models.UpdateAlarmPolicyRequest`
1322
+ :rtype: :class:`tencentcloud.config.v20220802.models.UpdateAlarmPolicyResponse`
1323
+
1324
+ """
1325
+ try:
1326
+ params = request._serialize()
1327
+ headers = request.headers
1328
+ body = self.call("UpdateAlarmPolicy", params, headers=headers)
1329
+ response = json.loads(body)
1330
+ model = models.UpdateAlarmPolicyResponse()
1331
+ model._deserialize(response["Response"])
1332
+ return model
1333
+ except Exception as e:
1334
+ if isinstance(e, TencentCloudSDKException):
1335
+ raise
1336
+ else:
1337
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1338
+
1339
+
1248
1340
  def UpdateCompliancePack(self, request):
1249
1341
  r"""编辑合规包
1250
1342
 
@@ -61,6 +61,24 @@ class ConfigClient(AbstractClient):
61
61
 
62
62
  return await self.call_and_deserialize(**kwargs)
63
63
 
64
+ async def AddAlarmPolicy(
65
+ self,
66
+ request: models.AddAlarmPolicyRequest,
67
+ opts: Dict = None,
68
+ ) -> models.AddAlarmPolicyResponse:
69
+ """
70
+ 新增告警监控规则
71
+ """
72
+
73
+ kwargs = {}
74
+ kwargs["action"] = "AddAlarmPolicy"
75
+ kwargs["params"] = request._serialize()
76
+ kwargs["resp_cls"] = models.AddAlarmPolicyResponse
77
+ kwargs["headers"] = request.headers
78
+ kwargs["opts"] = opts or {}
79
+
80
+ return await self.call_and_deserialize(**kwargs)
81
+
64
82
  async def AddCompliancePack(
65
83
  self,
66
84
  request: models.AddCompliancePackRequest,
@@ -223,6 +241,24 @@ class ConfigClient(AbstractClient):
223
241
 
224
242
  return await self.call_and_deserialize(**kwargs)
225
243
 
244
+ async def DeleteAlarmPolicy(
245
+ self,
246
+ request: models.DeleteAlarmPolicyRequest,
247
+ opts: Dict = None,
248
+ ) -> models.DeleteAlarmPolicyResponse:
249
+ """
250
+ 删除告警规则
251
+ """
252
+
253
+ kwargs = {}
254
+ kwargs["action"] = "DeleteAlarmPolicy"
255
+ kwargs["params"] = request._serialize()
256
+ kwargs["resp_cls"] = models.DeleteAlarmPolicyResponse
257
+ kwargs["headers"] = request.headers
258
+ kwargs["opts"] = opts or {}
259
+
260
+ return await self.call_and_deserialize(**kwargs)
261
+
226
262
  async def DeleteCompliancePack(
227
263
  self,
228
264
  request: models.DeleteCompliancePackRequest,
@@ -619,6 +655,24 @@ class ConfigClient(AbstractClient):
619
655
 
620
656
  return await self.call_and_deserialize(**kwargs)
621
657
 
658
+ async def ListAlarmPolicy(
659
+ self,
660
+ request: models.ListAlarmPolicyRequest,
661
+ opts: Dict = None,
662
+ ) -> models.ListAlarmPolicyResponse:
663
+ """
664
+ 告警规则列表
665
+ """
666
+
667
+ kwargs = {}
668
+ kwargs["action"] = "ListAlarmPolicy"
669
+ kwargs["params"] = request._serialize()
670
+ kwargs["resp_cls"] = models.ListAlarmPolicyResponse
671
+ kwargs["headers"] = request.headers
672
+ kwargs["opts"] = opts or {}
673
+
674
+ return await self.call_and_deserialize(**kwargs)
675
+
622
676
  async def ListCompliancePacks(
623
677
  self,
624
678
  request: models.ListCompliancePacksRequest,
@@ -979,6 +1033,24 @@ class ConfigClient(AbstractClient):
979
1033
 
980
1034
  return await self.call_and_deserialize(**kwargs)
981
1035
 
1036
+ async def UpdateAlarmPolicy(
1037
+ self,
1038
+ request: models.UpdateAlarmPolicyRequest,
1039
+ opts: Dict = None,
1040
+ ) -> models.UpdateAlarmPolicyResponse:
1041
+ """
1042
+ 更新告警规则
1043
+ """
1044
+
1045
+ kwargs = {}
1046
+ kwargs["action"] = "UpdateAlarmPolicy"
1047
+ kwargs["params"] = request._serialize()
1048
+ kwargs["resp_cls"] = models.UpdateAlarmPolicyResponse
1049
+ kwargs["headers"] = request.headers
1050
+ kwargs["opts"] = opts or {}
1051
+
1052
+ return await self.call_and_deserialize(**kwargs)
1053
+
982
1054
  async def UpdateCompliancePack(
983
1055
  self,
984
1056
  request: models.UpdateCompliancePackRequest,
@@ -26,6 +26,12 @@ FAILEDOPERATION_COMPLIANCEPACKNAMEISNOTEXIST = 'FailedOperation.CompliancePackNa
26
26
  # 投递的成员账号不是委派管理员或者管理员
27
27
  FAILEDOPERATION_MEMBERNOTASSIGNMANAGER = 'FailedOperation.MemberNotAssignManager'
28
28
 
29
+ # 不允许操作控制中心合规包
30
+ FAILEDOPERATION_NOTALLOWOPERATECONTROLCENTERGOVERNANCEPACKAGE = 'FailedOperation.NotAllowOperateControlCenterGovernancePackage'
31
+
32
+ # 不允许操作控制中心合规包规则
33
+ FAILEDOPERATION_NOTALLOWOPERATECONTROLCENTERGOVERNANCEPACKAGERULE = 'FailedOperation.NotAllowOperateControlCenterGovernancePackageRule'
34
+
29
35
  # 监控已关闭。
30
36
  FAILEDOPERATION_RECORDERISCLOSE = 'FailedOperation.RecorderIsClose'
31
37
 
@@ -47,6 +53,9 @@ INVALIDPARAMETER = 'InvalidParameter'
47
53
  # 用户组数量超过上限。
48
54
  LIMITEXCEEDED_ACCOUNTGROUPLIMITOVER = 'LimitExceeded.AccountGroupLimitOver'
49
55
 
56
+ # 告警策略数量上限
57
+ LIMITEXCEEDED_ALERTPOLICYLIMIT = 'LimitExceeded.AlertPolicyLimit'
58
+
50
59
  # 合规包数量到达上限。
51
60
  LIMITEXCEEDED_COMPLIANCEPACKMAXNUM = 'LimitExceeded.CompliancePackMaxNum'
52
61
 
@@ -89,6 +98,9 @@ RESOURCENOTFOUND_REMEDIATIONISNOTEXIST = 'ResourceNotFound.RemediationIsNotExist
89
98
  # 资源不存在。
90
99
  RESOURCENOTFOUND_RESOURCENOTEXIST = 'ResourceNotFound.ResourceNotExist'
91
100
 
101
+ # 资源类型不存在。
102
+ RESOURCENOTFOUND_RESOURCETYPENOTEXIST = 'ResourceNotFound.ResourceTypeNotExist'
103
+
92
104
  # 规则不存在。
93
105
  RESOURCENOTFOUND_RULEISNOTEXIST = 'ResourceNotFound.RuleIsNotExist'
94
106