tencentcloud-sdk-python-config 3.1.74__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.
- {tencentcloud_sdk_python_config-3.1.74 → tencentcloud_sdk_python_config-3.1.77}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_config-3.1.74 → tencentcloud_sdk_python_config-3.1.77}/setup.py +1 -1
- {tencentcloud_sdk_python_config-3.1.74 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_config-3.1.74 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud/config/v20220802/config_client.py +92 -0
- {tencentcloud_sdk_python_config-3.1.74 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud/config/v20220802/config_client_async.py +72 -0
- {tencentcloud_sdk_python_config-3.1.74 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud/config/v20220802/errorcodes.py +6 -0
- {tencentcloud_sdk_python_config-3.1.74 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud/config/v20220802/models.py +745 -32
- {tencentcloud_sdk_python_config-3.1.74 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud_sdk_python_config.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_config-3.1.77/tencentcloud_sdk_python_config.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_config-3.1.74/tencentcloud_sdk_python_config.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_config-3.1.74 → tencentcloud_sdk_python_config-3.1.77}/README.rst +0 -0
- {tencentcloud_sdk_python_config-3.1.74 → tencentcloud_sdk_python_config-3.1.77}/setup.cfg +0 -0
- {tencentcloud_sdk_python_config-3.1.74 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud/config/__init__.py +0 -0
- {tencentcloud_sdk_python_config-3.1.74 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud/config/v20220802/__init__.py +0 -0
- {tencentcloud_sdk_python_config-3.1.74 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud_sdk_python_config.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_config-3.1.74 → tencentcloud_sdk_python_config-3.1.77}/tencentcloud_sdk_python_config.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_config-3.1.74 → 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.
|
|
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.
|
|
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.
|
|
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',
|
|
@@ -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,
|
|
@@ -53,6 +53,9 @@ INVALIDPARAMETER = 'InvalidParameter'
|
|
|
53
53
|
# 用户组数量超过上限。
|
|
54
54
|
LIMITEXCEEDED_ACCOUNTGROUPLIMITOVER = 'LimitExceeded.AccountGroupLimitOver'
|
|
55
55
|
|
|
56
|
+
# 告警策略数量上限
|
|
57
|
+
LIMITEXCEEDED_ALERTPOLICYLIMIT = 'LimitExceeded.AlertPolicyLimit'
|
|
58
|
+
|
|
56
59
|
# 合规包数量到达上限。
|
|
57
60
|
LIMITEXCEEDED_COMPLIANCEPACKMAXNUM = 'LimitExceeded.CompliancePackMaxNum'
|
|
58
61
|
|
|
@@ -95,6 +98,9 @@ RESOURCENOTFOUND_REMEDIATIONISNOTEXIST = 'ResourceNotFound.RemediationIsNotExist
|
|
|
95
98
|
# 资源不存在。
|
|
96
99
|
RESOURCENOTFOUND_RESOURCENOTEXIST = 'ResourceNotFound.ResourceNotExist'
|
|
97
100
|
|
|
101
|
+
# 资源类型不存在。
|
|
102
|
+
RESOURCENOTFOUND_RESOURCETYPENOTEXIST = 'ResourceNotFound.ResourceTypeNotExist'
|
|
103
|
+
|
|
98
104
|
# 规则不存在。
|
|
99
105
|
RESOURCENOTFOUND_RULEISNOTEXIST = 'ResourceNotFound.RuleIsNotExist'
|
|
100
106
|
|
|
@@ -412,6 +412,192 @@ class AddAggregateConfigRuleResponse(AbstractModel):
|
|
|
412
412
|
self._RequestId = params.get("RequestId")
|
|
413
413
|
|
|
414
414
|
|
|
415
|
+
class AddAlarmPolicyRequest(AbstractModel):
|
|
416
|
+
r"""AddAlarmPolicy请求参数结构体
|
|
417
|
+
|
|
418
|
+
"""
|
|
419
|
+
|
|
420
|
+
def __init__(self):
|
|
421
|
+
r"""
|
|
422
|
+
:param _Name: 告警策略名
|
|
423
|
+
:type Name: str
|
|
424
|
+
:param _EventScope: 事件范围 1:当前账号 2:多账号
|
|
425
|
+
:type EventScope: list of int
|
|
426
|
+
:param _RiskLevel: 风险等级 1:高风险 2:中风险 3:低风险
|
|
427
|
+
:type RiskLevel: list of int
|
|
428
|
+
:param _NoticeTime: 通知时间段
|
|
429
|
+
:type NoticeTime: str
|
|
430
|
+
:param _NotificationMechanism: 通知机制
|
|
431
|
+
:type NotificationMechanism: str
|
|
432
|
+
:param _Status: 状态 1:启用 2:停用
|
|
433
|
+
:type Status: int
|
|
434
|
+
:param _NoticePeriod: 通知周期
|
|
435
|
+
:type NoticePeriod: list of int
|
|
436
|
+
:param _Description: 策略描述
|
|
437
|
+
:type Description: str
|
|
438
|
+
"""
|
|
439
|
+
self._Name = None
|
|
440
|
+
self._EventScope = None
|
|
441
|
+
self._RiskLevel = None
|
|
442
|
+
self._NoticeTime = None
|
|
443
|
+
self._NotificationMechanism = None
|
|
444
|
+
self._Status = None
|
|
445
|
+
self._NoticePeriod = None
|
|
446
|
+
self._Description = None
|
|
447
|
+
|
|
448
|
+
@property
|
|
449
|
+
def Name(self):
|
|
450
|
+
r"""告警策略名
|
|
451
|
+
:rtype: str
|
|
452
|
+
"""
|
|
453
|
+
return self._Name
|
|
454
|
+
|
|
455
|
+
@Name.setter
|
|
456
|
+
def Name(self, Name):
|
|
457
|
+
self._Name = Name
|
|
458
|
+
|
|
459
|
+
@property
|
|
460
|
+
def EventScope(self):
|
|
461
|
+
r"""事件范围 1:当前账号 2:多账号
|
|
462
|
+
:rtype: list of int
|
|
463
|
+
"""
|
|
464
|
+
return self._EventScope
|
|
465
|
+
|
|
466
|
+
@EventScope.setter
|
|
467
|
+
def EventScope(self, EventScope):
|
|
468
|
+
self._EventScope = EventScope
|
|
469
|
+
|
|
470
|
+
@property
|
|
471
|
+
def RiskLevel(self):
|
|
472
|
+
r"""风险等级 1:高风险 2:中风险 3:低风险
|
|
473
|
+
:rtype: list of int
|
|
474
|
+
"""
|
|
475
|
+
return self._RiskLevel
|
|
476
|
+
|
|
477
|
+
@RiskLevel.setter
|
|
478
|
+
def RiskLevel(self, RiskLevel):
|
|
479
|
+
self._RiskLevel = RiskLevel
|
|
480
|
+
|
|
481
|
+
@property
|
|
482
|
+
def NoticeTime(self):
|
|
483
|
+
r"""通知时间段
|
|
484
|
+
:rtype: str
|
|
485
|
+
"""
|
|
486
|
+
return self._NoticeTime
|
|
487
|
+
|
|
488
|
+
@NoticeTime.setter
|
|
489
|
+
def NoticeTime(self, NoticeTime):
|
|
490
|
+
self._NoticeTime = NoticeTime
|
|
491
|
+
|
|
492
|
+
@property
|
|
493
|
+
def NotificationMechanism(self):
|
|
494
|
+
r"""通知机制
|
|
495
|
+
:rtype: str
|
|
496
|
+
"""
|
|
497
|
+
return self._NotificationMechanism
|
|
498
|
+
|
|
499
|
+
@NotificationMechanism.setter
|
|
500
|
+
def NotificationMechanism(self, NotificationMechanism):
|
|
501
|
+
self._NotificationMechanism = NotificationMechanism
|
|
502
|
+
|
|
503
|
+
@property
|
|
504
|
+
def Status(self):
|
|
505
|
+
r"""状态 1:启用 2:停用
|
|
506
|
+
:rtype: int
|
|
507
|
+
"""
|
|
508
|
+
return self._Status
|
|
509
|
+
|
|
510
|
+
@Status.setter
|
|
511
|
+
def Status(self, Status):
|
|
512
|
+
self._Status = Status
|
|
513
|
+
|
|
514
|
+
@property
|
|
515
|
+
def NoticePeriod(self):
|
|
516
|
+
r"""通知周期
|
|
517
|
+
:rtype: list of int
|
|
518
|
+
"""
|
|
519
|
+
return self._NoticePeriod
|
|
520
|
+
|
|
521
|
+
@NoticePeriod.setter
|
|
522
|
+
def NoticePeriod(self, NoticePeriod):
|
|
523
|
+
self._NoticePeriod = NoticePeriod
|
|
524
|
+
|
|
525
|
+
@property
|
|
526
|
+
def Description(self):
|
|
527
|
+
r"""策略描述
|
|
528
|
+
:rtype: str
|
|
529
|
+
"""
|
|
530
|
+
return self._Description
|
|
531
|
+
|
|
532
|
+
@Description.setter
|
|
533
|
+
def Description(self, Description):
|
|
534
|
+
self._Description = Description
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
def _deserialize(self, params):
|
|
538
|
+
self._Name = params.get("Name")
|
|
539
|
+
self._EventScope = params.get("EventScope")
|
|
540
|
+
self._RiskLevel = params.get("RiskLevel")
|
|
541
|
+
self._NoticeTime = params.get("NoticeTime")
|
|
542
|
+
self._NotificationMechanism = params.get("NotificationMechanism")
|
|
543
|
+
self._Status = params.get("Status")
|
|
544
|
+
self._NoticePeriod = params.get("NoticePeriod")
|
|
545
|
+
self._Description = params.get("Description")
|
|
546
|
+
memeber_set = set(params.keys())
|
|
547
|
+
for name, value in vars(self).items():
|
|
548
|
+
property_name = name[1:]
|
|
549
|
+
if property_name in memeber_set:
|
|
550
|
+
memeber_set.remove(property_name)
|
|
551
|
+
if len(memeber_set) > 0:
|
|
552
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
class AddAlarmPolicyResponse(AbstractModel):
|
|
557
|
+
r"""AddAlarmPolicy返回参数结构体
|
|
558
|
+
|
|
559
|
+
"""
|
|
560
|
+
|
|
561
|
+
def __init__(self):
|
|
562
|
+
r"""
|
|
563
|
+
:param _AlarmPolicyId: 告警策略唯一id
|
|
564
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
565
|
+
:type AlarmPolicyId: int
|
|
566
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
567
|
+
:type RequestId: str
|
|
568
|
+
"""
|
|
569
|
+
self._AlarmPolicyId = None
|
|
570
|
+
self._RequestId = None
|
|
571
|
+
|
|
572
|
+
@property
|
|
573
|
+
def AlarmPolicyId(self):
|
|
574
|
+
r"""告警策略唯一id
|
|
575
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
576
|
+
:rtype: int
|
|
577
|
+
"""
|
|
578
|
+
return self._AlarmPolicyId
|
|
579
|
+
|
|
580
|
+
@AlarmPolicyId.setter
|
|
581
|
+
def AlarmPolicyId(self, AlarmPolicyId):
|
|
582
|
+
self._AlarmPolicyId = AlarmPolicyId
|
|
583
|
+
|
|
584
|
+
@property
|
|
585
|
+
def RequestId(self):
|
|
586
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
587
|
+
:rtype: str
|
|
588
|
+
"""
|
|
589
|
+
return self._RequestId
|
|
590
|
+
|
|
591
|
+
@RequestId.setter
|
|
592
|
+
def RequestId(self, RequestId):
|
|
593
|
+
self._RequestId = RequestId
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
def _deserialize(self, params):
|
|
597
|
+
self._AlarmPolicyId = params.get("AlarmPolicyId")
|
|
598
|
+
self._RequestId = params.get("RequestId")
|
|
599
|
+
|
|
600
|
+
|
|
415
601
|
class AddCompliancePackRequest(AbstractModel):
|
|
416
602
|
r"""AddCompliancePack请求参数结构体
|
|
417
603
|
|
|
@@ -548,31 +734,27 @@ class AddConfigRuleRequest(AbstractModel):
|
|
|
548
734
|
|
|
549
735
|
def __init__(self):
|
|
550
736
|
r"""
|
|
551
|
-
:param _Identifier:
|
|
737
|
+
:param _Identifier: <p>规则模板标识,预设规则模板为Identifier, 自定义规则为云函数arn(region:functionName)</p>
|
|
552
738
|
:type Identifier: str
|
|
553
|
-
:param _IdentifierType:
|
|
739
|
+
:param _IdentifierType: <p>规则模板类型,SYSTEM, CUSTOMIZE</p>
|
|
554
740
|
:type IdentifierType: str
|
|
555
|
-
:param _RuleName:
|
|
741
|
+
:param _RuleName: <p>规则名称</p>
|
|
556
742
|
:type RuleName: str
|
|
557
|
-
:param _ResourceType:
|
|
743
|
+
:param _ResourceType: <p>规则支持的资源</p>
|
|
558
744
|
:type ResourceType: list of str
|
|
559
|
-
:param _TriggerType:
|
|
745
|
+
:param _TriggerType: <p>触发类型,最多支持两种</p>
|
|
560
746
|
:type TriggerType: list of TriggerType
|
|
561
|
-
:param _RiskLevel:
|
|
562
|
-
1:高风险。
|
|
563
|
-
2:中风险。
|
|
564
|
-
3:低风险。
|
|
747
|
+
:param _RiskLevel: <p>风险等级<br>1:高风险。<br>2:中风险。<br>3:低风险。</p>
|
|
565
748
|
:type RiskLevel: int
|
|
566
|
-
:param _InputParameter:
|
|
749
|
+
:param _InputParameter: <p>入参</p>
|
|
567
750
|
:type InputParameter: list of InputParameter
|
|
568
|
-
:param _Description:
|
|
751
|
+
:param _Description: <p>规则描述。长度范围0~1024字符</p>
|
|
569
752
|
:type Description: str
|
|
570
|
-
:param _RegionsScope:
|
|
571
|
-
支持的地域范围config:ListResourceRegions返回的地域
|
|
753
|
+
:param _RegionsScope: <p>规则评估地域范围,规则仅对指定地域中的资源生效。<br>支持的地域范围config:ListResourceRegions返回的地域</p>
|
|
572
754
|
:type RegionsScope: list of str
|
|
573
|
-
:param _TagsScope:
|
|
755
|
+
:param _TagsScope: <p>规则评估标签范围,规则仅对绑定指定标签的资源生效。</p>
|
|
574
756
|
:type TagsScope: list of Tag
|
|
575
|
-
:param _ExcludeResourceIdsScope:
|
|
757
|
+
:param _ExcludeResourceIdsScope: <p>规则对指定资源ID无效,即不对该资源执行评估。</p>
|
|
576
758
|
:type ExcludeResourceIdsScope: list of str
|
|
577
759
|
"""
|
|
578
760
|
self._Identifier = None
|
|
@@ -589,7 +771,7 @@ class AddConfigRuleRequest(AbstractModel):
|
|
|
589
771
|
|
|
590
772
|
@property
|
|
591
773
|
def Identifier(self):
|
|
592
|
-
r"""
|
|
774
|
+
r"""<p>规则模板标识,预设规则模板为Identifier, 自定义规则为云函数arn(region:functionName)</p>
|
|
593
775
|
:rtype: str
|
|
594
776
|
"""
|
|
595
777
|
return self._Identifier
|
|
@@ -600,7 +782,7 @@ class AddConfigRuleRequest(AbstractModel):
|
|
|
600
782
|
|
|
601
783
|
@property
|
|
602
784
|
def IdentifierType(self):
|
|
603
|
-
r"""
|
|
785
|
+
r"""<p>规则模板类型,SYSTEM, CUSTOMIZE</p>
|
|
604
786
|
:rtype: str
|
|
605
787
|
"""
|
|
606
788
|
return self._IdentifierType
|
|
@@ -611,7 +793,7 @@ class AddConfigRuleRequest(AbstractModel):
|
|
|
611
793
|
|
|
612
794
|
@property
|
|
613
795
|
def RuleName(self):
|
|
614
|
-
r"""
|
|
796
|
+
r"""<p>规则名称</p>
|
|
615
797
|
:rtype: str
|
|
616
798
|
"""
|
|
617
799
|
return self._RuleName
|
|
@@ -622,7 +804,7 @@ class AddConfigRuleRequest(AbstractModel):
|
|
|
622
804
|
|
|
623
805
|
@property
|
|
624
806
|
def ResourceType(self):
|
|
625
|
-
r"""
|
|
807
|
+
r"""<p>规则支持的资源</p>
|
|
626
808
|
:rtype: list of str
|
|
627
809
|
"""
|
|
628
810
|
return self._ResourceType
|
|
@@ -633,7 +815,7 @@ class AddConfigRuleRequest(AbstractModel):
|
|
|
633
815
|
|
|
634
816
|
@property
|
|
635
817
|
def TriggerType(self):
|
|
636
|
-
r"""
|
|
818
|
+
r"""<p>触发类型,最多支持两种</p>
|
|
637
819
|
:rtype: list of TriggerType
|
|
638
820
|
"""
|
|
639
821
|
return self._TriggerType
|
|
@@ -644,10 +826,7 @@ class AddConfigRuleRequest(AbstractModel):
|
|
|
644
826
|
|
|
645
827
|
@property
|
|
646
828
|
def RiskLevel(self):
|
|
647
|
-
r"""
|
|
648
|
-
1:高风险。
|
|
649
|
-
2:中风险。
|
|
650
|
-
3:低风险。
|
|
829
|
+
r"""<p>风险等级<br>1:高风险。<br>2:中风险。<br>3:低风险。</p>
|
|
651
830
|
:rtype: int
|
|
652
831
|
"""
|
|
653
832
|
return self._RiskLevel
|
|
@@ -658,7 +837,7 @@ class AddConfigRuleRequest(AbstractModel):
|
|
|
658
837
|
|
|
659
838
|
@property
|
|
660
839
|
def InputParameter(self):
|
|
661
|
-
r"""
|
|
840
|
+
r"""<p>入参</p>
|
|
662
841
|
:rtype: list of InputParameter
|
|
663
842
|
"""
|
|
664
843
|
return self._InputParameter
|
|
@@ -669,7 +848,7 @@ class AddConfigRuleRequest(AbstractModel):
|
|
|
669
848
|
|
|
670
849
|
@property
|
|
671
850
|
def Description(self):
|
|
672
|
-
r"""
|
|
851
|
+
r"""<p>规则描述。长度范围0~1024字符</p>
|
|
673
852
|
:rtype: str
|
|
674
853
|
"""
|
|
675
854
|
return self._Description
|
|
@@ -680,8 +859,7 @@ class AddConfigRuleRequest(AbstractModel):
|
|
|
680
859
|
|
|
681
860
|
@property
|
|
682
861
|
def RegionsScope(self):
|
|
683
|
-
r"""
|
|
684
|
-
支持的地域范围config:ListResourceRegions返回的地域
|
|
862
|
+
r"""<p>规则评估地域范围,规则仅对指定地域中的资源生效。<br>支持的地域范围config:ListResourceRegions返回的地域</p>
|
|
685
863
|
:rtype: list of str
|
|
686
864
|
"""
|
|
687
865
|
return self._RegionsScope
|
|
@@ -692,7 +870,7 @@ class AddConfigRuleRequest(AbstractModel):
|
|
|
692
870
|
|
|
693
871
|
@property
|
|
694
872
|
def TagsScope(self):
|
|
695
|
-
r"""
|
|
873
|
+
r"""<p>规则评估标签范围,规则仅对绑定指定标签的资源生效。</p>
|
|
696
874
|
:rtype: list of Tag
|
|
697
875
|
"""
|
|
698
876
|
return self._TagsScope
|
|
@@ -703,7 +881,7 @@ class AddConfigRuleRequest(AbstractModel):
|
|
|
703
881
|
|
|
704
882
|
@property
|
|
705
883
|
def ExcludeResourceIdsScope(self):
|
|
706
|
-
r"""
|
|
884
|
+
r"""<p>规则对指定资源ID无效,即不对该资源执行评估。</p>
|
|
707
885
|
:rtype: list of str
|
|
708
886
|
"""
|
|
709
887
|
return self._ExcludeResourceIdsScope
|
|
@@ -757,11 +935,25 @@ class AddConfigRuleResponse(AbstractModel):
|
|
|
757
935
|
|
|
758
936
|
def __init__(self):
|
|
759
937
|
r"""
|
|
938
|
+
:param _RuleId: <p>规则ID</p>
|
|
939
|
+
:type RuleId: str
|
|
760
940
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
761
941
|
:type RequestId: str
|
|
762
942
|
"""
|
|
943
|
+
self._RuleId = None
|
|
763
944
|
self._RequestId = None
|
|
764
945
|
|
|
946
|
+
@property
|
|
947
|
+
def RuleId(self):
|
|
948
|
+
r"""<p>规则ID</p>
|
|
949
|
+
:rtype: str
|
|
950
|
+
"""
|
|
951
|
+
return self._RuleId
|
|
952
|
+
|
|
953
|
+
@RuleId.setter
|
|
954
|
+
def RuleId(self, RuleId):
|
|
955
|
+
self._RuleId = RuleId
|
|
956
|
+
|
|
765
957
|
@property
|
|
766
958
|
def RequestId(self):
|
|
767
959
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -775,6 +967,7 @@ class AddConfigRuleResponse(AbstractModel):
|
|
|
775
967
|
|
|
776
968
|
|
|
777
969
|
def _deserialize(self, params):
|
|
970
|
+
self._RuleId = params.get("RuleId")
|
|
778
971
|
self._RequestId = params.get("RequestId")
|
|
779
972
|
|
|
780
973
|
|
|
@@ -1441,8 +1634,181 @@ class AggregatorAccount(AbstractModel):
|
|
|
1441
1634
|
|
|
1442
1635
|
|
|
1443
1636
|
def _deserialize(self, params):
|
|
1444
|
-
self._MemberUin = params.get("MemberUin")
|
|
1445
|
-
self._MemberName = params.get("MemberName")
|
|
1637
|
+
self._MemberUin = params.get("MemberUin")
|
|
1638
|
+
self._MemberName = params.get("MemberName")
|
|
1639
|
+
memeber_set = set(params.keys())
|
|
1640
|
+
for name, value in vars(self).items():
|
|
1641
|
+
property_name = name[1:]
|
|
1642
|
+
if property_name in memeber_set:
|
|
1643
|
+
memeber_set.remove(property_name)
|
|
1644
|
+
if len(memeber_set) > 0:
|
|
1645
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
class AlarmPolicyRsp(AbstractModel):
|
|
1650
|
+
r"""告警策略列表单个记录结构体
|
|
1651
|
+
|
|
1652
|
+
"""
|
|
1653
|
+
|
|
1654
|
+
def __init__(self):
|
|
1655
|
+
r"""
|
|
1656
|
+
:param _AlarmPolicyId: 告警策略唯一标识id
|
|
1657
|
+
:type AlarmPolicyId: int
|
|
1658
|
+
:param _Name: 策略名称
|
|
1659
|
+
:type Name: str
|
|
1660
|
+
:param _Type: 事件类型
|
|
1661
|
+
:type Type: int
|
|
1662
|
+
:param _EventScope: 1:当前账号 2:多账号
|
|
1663
|
+
:type EventScope: list of int
|
|
1664
|
+
:param _RiskLevel: 1:高风险 2:中风险 3:低风险
|
|
1665
|
+
:type RiskLevel: list of int
|
|
1666
|
+
:param _NoticePeriod: 通知周期,1-7数字分别代表周一至周日
|
|
1667
|
+
:type NoticePeriod: list of int
|
|
1668
|
+
:param _NoticeTime: 通知时间段
|
|
1669
|
+
:type NoticeTime: str
|
|
1670
|
+
:param _NotificationMechanism: 通知机制
|
|
1671
|
+
:type NotificationMechanism: str
|
|
1672
|
+
:param _Status: 策略状态 1:启动 2:停止
|
|
1673
|
+
:type Status: int
|
|
1674
|
+
:param _Description: 策略描述
|
|
1675
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1676
|
+
:type Description: str
|
|
1677
|
+
"""
|
|
1678
|
+
self._AlarmPolicyId = None
|
|
1679
|
+
self._Name = None
|
|
1680
|
+
self._Type = None
|
|
1681
|
+
self._EventScope = None
|
|
1682
|
+
self._RiskLevel = None
|
|
1683
|
+
self._NoticePeriod = None
|
|
1684
|
+
self._NoticeTime = None
|
|
1685
|
+
self._NotificationMechanism = None
|
|
1686
|
+
self._Status = None
|
|
1687
|
+
self._Description = None
|
|
1688
|
+
|
|
1689
|
+
@property
|
|
1690
|
+
def AlarmPolicyId(self):
|
|
1691
|
+
r"""告警策略唯一标识id
|
|
1692
|
+
:rtype: int
|
|
1693
|
+
"""
|
|
1694
|
+
return self._AlarmPolicyId
|
|
1695
|
+
|
|
1696
|
+
@AlarmPolicyId.setter
|
|
1697
|
+
def AlarmPolicyId(self, AlarmPolicyId):
|
|
1698
|
+
self._AlarmPolicyId = AlarmPolicyId
|
|
1699
|
+
|
|
1700
|
+
@property
|
|
1701
|
+
def Name(self):
|
|
1702
|
+
r"""策略名称
|
|
1703
|
+
:rtype: str
|
|
1704
|
+
"""
|
|
1705
|
+
return self._Name
|
|
1706
|
+
|
|
1707
|
+
@Name.setter
|
|
1708
|
+
def Name(self, Name):
|
|
1709
|
+
self._Name = Name
|
|
1710
|
+
|
|
1711
|
+
@property
|
|
1712
|
+
def Type(self):
|
|
1713
|
+
r"""事件类型
|
|
1714
|
+
:rtype: int
|
|
1715
|
+
"""
|
|
1716
|
+
return self._Type
|
|
1717
|
+
|
|
1718
|
+
@Type.setter
|
|
1719
|
+
def Type(self, Type):
|
|
1720
|
+
self._Type = Type
|
|
1721
|
+
|
|
1722
|
+
@property
|
|
1723
|
+
def EventScope(self):
|
|
1724
|
+
r"""1:当前账号 2:多账号
|
|
1725
|
+
:rtype: list of int
|
|
1726
|
+
"""
|
|
1727
|
+
return self._EventScope
|
|
1728
|
+
|
|
1729
|
+
@EventScope.setter
|
|
1730
|
+
def EventScope(self, EventScope):
|
|
1731
|
+
self._EventScope = EventScope
|
|
1732
|
+
|
|
1733
|
+
@property
|
|
1734
|
+
def RiskLevel(self):
|
|
1735
|
+
r"""1:高风险 2:中风险 3:低风险
|
|
1736
|
+
:rtype: list of int
|
|
1737
|
+
"""
|
|
1738
|
+
return self._RiskLevel
|
|
1739
|
+
|
|
1740
|
+
@RiskLevel.setter
|
|
1741
|
+
def RiskLevel(self, RiskLevel):
|
|
1742
|
+
self._RiskLevel = RiskLevel
|
|
1743
|
+
|
|
1744
|
+
@property
|
|
1745
|
+
def NoticePeriod(self):
|
|
1746
|
+
r"""通知周期,1-7数字分别代表周一至周日
|
|
1747
|
+
:rtype: list of int
|
|
1748
|
+
"""
|
|
1749
|
+
return self._NoticePeriod
|
|
1750
|
+
|
|
1751
|
+
@NoticePeriod.setter
|
|
1752
|
+
def NoticePeriod(self, NoticePeriod):
|
|
1753
|
+
self._NoticePeriod = NoticePeriod
|
|
1754
|
+
|
|
1755
|
+
@property
|
|
1756
|
+
def NoticeTime(self):
|
|
1757
|
+
r"""通知时间段
|
|
1758
|
+
:rtype: str
|
|
1759
|
+
"""
|
|
1760
|
+
return self._NoticeTime
|
|
1761
|
+
|
|
1762
|
+
@NoticeTime.setter
|
|
1763
|
+
def NoticeTime(self, NoticeTime):
|
|
1764
|
+
self._NoticeTime = NoticeTime
|
|
1765
|
+
|
|
1766
|
+
@property
|
|
1767
|
+
def NotificationMechanism(self):
|
|
1768
|
+
r"""通知机制
|
|
1769
|
+
:rtype: str
|
|
1770
|
+
"""
|
|
1771
|
+
return self._NotificationMechanism
|
|
1772
|
+
|
|
1773
|
+
@NotificationMechanism.setter
|
|
1774
|
+
def NotificationMechanism(self, NotificationMechanism):
|
|
1775
|
+
self._NotificationMechanism = NotificationMechanism
|
|
1776
|
+
|
|
1777
|
+
@property
|
|
1778
|
+
def Status(self):
|
|
1779
|
+
r"""策略状态 1:启动 2:停止
|
|
1780
|
+
:rtype: int
|
|
1781
|
+
"""
|
|
1782
|
+
return self._Status
|
|
1783
|
+
|
|
1784
|
+
@Status.setter
|
|
1785
|
+
def Status(self, Status):
|
|
1786
|
+
self._Status = Status
|
|
1787
|
+
|
|
1788
|
+
@property
|
|
1789
|
+
def Description(self):
|
|
1790
|
+
r"""策略描述
|
|
1791
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1792
|
+
:rtype: str
|
|
1793
|
+
"""
|
|
1794
|
+
return self._Description
|
|
1795
|
+
|
|
1796
|
+
@Description.setter
|
|
1797
|
+
def Description(self, Description):
|
|
1798
|
+
self._Description = Description
|
|
1799
|
+
|
|
1800
|
+
|
|
1801
|
+
def _deserialize(self, params):
|
|
1802
|
+
self._AlarmPolicyId = params.get("AlarmPolicyId")
|
|
1803
|
+
self._Name = params.get("Name")
|
|
1804
|
+
self._Type = params.get("Type")
|
|
1805
|
+
self._EventScope = params.get("EventScope")
|
|
1806
|
+
self._RiskLevel = params.get("RiskLevel")
|
|
1807
|
+
self._NoticePeriod = params.get("NoticePeriod")
|
|
1808
|
+
self._NoticeTime = params.get("NoticeTime")
|
|
1809
|
+
self._NotificationMechanism = params.get("NotificationMechanism")
|
|
1810
|
+
self._Status = params.get("Status")
|
|
1811
|
+
self._Description = params.get("Description")
|
|
1446
1812
|
memeber_set = set(params.keys())
|
|
1447
1813
|
for name, value in vars(self).items():
|
|
1448
1814
|
property_name = name[1:]
|
|
@@ -3567,6 +3933,70 @@ class DeleteAggregateConfigRuleResponse(AbstractModel):
|
|
|
3567
3933
|
self._RequestId = params.get("RequestId")
|
|
3568
3934
|
|
|
3569
3935
|
|
|
3936
|
+
class DeleteAlarmPolicyRequest(AbstractModel):
|
|
3937
|
+
r"""DeleteAlarmPolicy请求参数结构体
|
|
3938
|
+
|
|
3939
|
+
"""
|
|
3940
|
+
|
|
3941
|
+
def __init__(self):
|
|
3942
|
+
r"""
|
|
3943
|
+
:param _AlarmPolicyId: 告警策略id
|
|
3944
|
+
:type AlarmPolicyId: int
|
|
3945
|
+
"""
|
|
3946
|
+
self._AlarmPolicyId = None
|
|
3947
|
+
|
|
3948
|
+
@property
|
|
3949
|
+
def AlarmPolicyId(self):
|
|
3950
|
+
r"""告警策略id
|
|
3951
|
+
:rtype: int
|
|
3952
|
+
"""
|
|
3953
|
+
return self._AlarmPolicyId
|
|
3954
|
+
|
|
3955
|
+
@AlarmPolicyId.setter
|
|
3956
|
+
def AlarmPolicyId(self, AlarmPolicyId):
|
|
3957
|
+
self._AlarmPolicyId = AlarmPolicyId
|
|
3958
|
+
|
|
3959
|
+
|
|
3960
|
+
def _deserialize(self, params):
|
|
3961
|
+
self._AlarmPolicyId = params.get("AlarmPolicyId")
|
|
3962
|
+
memeber_set = set(params.keys())
|
|
3963
|
+
for name, value in vars(self).items():
|
|
3964
|
+
property_name = name[1:]
|
|
3965
|
+
if property_name in memeber_set:
|
|
3966
|
+
memeber_set.remove(property_name)
|
|
3967
|
+
if len(memeber_set) > 0:
|
|
3968
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3969
|
+
|
|
3970
|
+
|
|
3971
|
+
|
|
3972
|
+
class DeleteAlarmPolicyResponse(AbstractModel):
|
|
3973
|
+
r"""DeleteAlarmPolicy返回参数结构体
|
|
3974
|
+
|
|
3975
|
+
"""
|
|
3976
|
+
|
|
3977
|
+
def __init__(self):
|
|
3978
|
+
r"""
|
|
3979
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3980
|
+
:type RequestId: str
|
|
3981
|
+
"""
|
|
3982
|
+
self._RequestId = None
|
|
3983
|
+
|
|
3984
|
+
@property
|
|
3985
|
+
def RequestId(self):
|
|
3986
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3987
|
+
:rtype: str
|
|
3988
|
+
"""
|
|
3989
|
+
return self._RequestId
|
|
3990
|
+
|
|
3991
|
+
@RequestId.setter
|
|
3992
|
+
def RequestId(self, RequestId):
|
|
3993
|
+
self._RequestId = RequestId
|
|
3994
|
+
|
|
3995
|
+
|
|
3996
|
+
def _deserialize(self, params):
|
|
3997
|
+
self._RequestId = params.get("RequestId")
|
|
3998
|
+
|
|
3999
|
+
|
|
3570
4000
|
class DeleteCompliancePackRequest(AbstractModel):
|
|
3571
4001
|
r"""DeleteCompliancePack请求参数结构体
|
|
3572
4002
|
|
|
@@ -7355,6 +7785,105 @@ class ListAggregatorsResponse(AbstractModel):
|
|
|
7355
7785
|
self._RequestId = params.get("RequestId")
|
|
7356
7786
|
|
|
7357
7787
|
|
|
7788
|
+
class ListAlarmPolicyRequest(AbstractModel):
|
|
7789
|
+
r"""ListAlarmPolicy请求参数结构体
|
|
7790
|
+
|
|
7791
|
+
"""
|
|
7792
|
+
|
|
7793
|
+
def __init__(self):
|
|
7794
|
+
r"""
|
|
7795
|
+
:param _Offset: 页码
|
|
7796
|
+
:type Offset: int
|
|
7797
|
+
"""
|
|
7798
|
+
self._Offset = None
|
|
7799
|
+
|
|
7800
|
+
@property
|
|
7801
|
+
def Offset(self):
|
|
7802
|
+
r"""页码
|
|
7803
|
+
:rtype: int
|
|
7804
|
+
"""
|
|
7805
|
+
return self._Offset
|
|
7806
|
+
|
|
7807
|
+
@Offset.setter
|
|
7808
|
+
def Offset(self, Offset):
|
|
7809
|
+
self._Offset = Offset
|
|
7810
|
+
|
|
7811
|
+
|
|
7812
|
+
def _deserialize(self, params):
|
|
7813
|
+
self._Offset = params.get("Offset")
|
|
7814
|
+
memeber_set = set(params.keys())
|
|
7815
|
+
for name, value in vars(self).items():
|
|
7816
|
+
property_name = name[1:]
|
|
7817
|
+
if property_name in memeber_set:
|
|
7818
|
+
memeber_set.remove(property_name)
|
|
7819
|
+
if len(memeber_set) > 0:
|
|
7820
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7821
|
+
|
|
7822
|
+
|
|
7823
|
+
|
|
7824
|
+
class ListAlarmPolicyResponse(AbstractModel):
|
|
7825
|
+
r"""ListAlarmPolicy返回参数结构体
|
|
7826
|
+
|
|
7827
|
+
"""
|
|
7828
|
+
|
|
7829
|
+
def __init__(self):
|
|
7830
|
+
r"""
|
|
7831
|
+
:param _Total: 返回记录的数量
|
|
7832
|
+
:type Total: int
|
|
7833
|
+
:param _AlarmPolicyList: 告警策略返回值
|
|
7834
|
+
:type AlarmPolicyList: list of AlarmPolicyRsp
|
|
7835
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7836
|
+
:type RequestId: str
|
|
7837
|
+
"""
|
|
7838
|
+
self._Total = None
|
|
7839
|
+
self._AlarmPolicyList = None
|
|
7840
|
+
self._RequestId = None
|
|
7841
|
+
|
|
7842
|
+
@property
|
|
7843
|
+
def Total(self):
|
|
7844
|
+
r"""返回记录的数量
|
|
7845
|
+
:rtype: int
|
|
7846
|
+
"""
|
|
7847
|
+
return self._Total
|
|
7848
|
+
|
|
7849
|
+
@Total.setter
|
|
7850
|
+
def Total(self, Total):
|
|
7851
|
+
self._Total = Total
|
|
7852
|
+
|
|
7853
|
+
@property
|
|
7854
|
+
def AlarmPolicyList(self):
|
|
7855
|
+
r"""告警策略返回值
|
|
7856
|
+
:rtype: list of AlarmPolicyRsp
|
|
7857
|
+
"""
|
|
7858
|
+
return self._AlarmPolicyList
|
|
7859
|
+
|
|
7860
|
+
@AlarmPolicyList.setter
|
|
7861
|
+
def AlarmPolicyList(self, AlarmPolicyList):
|
|
7862
|
+
self._AlarmPolicyList = AlarmPolicyList
|
|
7863
|
+
|
|
7864
|
+
@property
|
|
7865
|
+
def RequestId(self):
|
|
7866
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7867
|
+
:rtype: str
|
|
7868
|
+
"""
|
|
7869
|
+
return self._RequestId
|
|
7870
|
+
|
|
7871
|
+
@RequestId.setter
|
|
7872
|
+
def RequestId(self, RequestId):
|
|
7873
|
+
self._RequestId = RequestId
|
|
7874
|
+
|
|
7875
|
+
|
|
7876
|
+
def _deserialize(self, params):
|
|
7877
|
+
self._Total = params.get("Total")
|
|
7878
|
+
if params.get("AlarmPolicyList") is not None:
|
|
7879
|
+
self._AlarmPolicyList = []
|
|
7880
|
+
for item in params.get("AlarmPolicyList"):
|
|
7881
|
+
obj = AlarmPolicyRsp()
|
|
7882
|
+
obj._deserialize(item)
|
|
7883
|
+
self._AlarmPolicyList.append(obj)
|
|
7884
|
+
self._RequestId = params.get("RequestId")
|
|
7885
|
+
|
|
7886
|
+
|
|
7358
7887
|
class ListCompliancePacksRequest(AbstractModel):
|
|
7359
7888
|
r"""ListCompliancePacks请求参数结构体
|
|
7360
7889
|
|
|
@@ -10795,6 +11324,190 @@ class UpdateAggregateConfigRuleResponse(AbstractModel):
|
|
|
10795
11324
|
self._RequestId = params.get("RequestId")
|
|
10796
11325
|
|
|
10797
11326
|
|
|
11327
|
+
class UpdateAlarmPolicyRequest(AbstractModel):
|
|
11328
|
+
r"""UpdateAlarmPolicy请求参数结构体
|
|
11329
|
+
|
|
11330
|
+
"""
|
|
11331
|
+
|
|
11332
|
+
def __init__(self):
|
|
11333
|
+
r"""
|
|
11334
|
+
:param _AlarmPolicyId: 告警策略id
|
|
11335
|
+
:type AlarmPolicyId: int
|
|
11336
|
+
:param _Name: 告警策略名
|
|
11337
|
+
:type Name: str
|
|
11338
|
+
:param _EventScope: 事件范围 1:当前账号 2:多账号
|
|
11339
|
+
:type EventScope: list of int
|
|
11340
|
+
:param _RiskLevel: 风险等级 1:高风险 2:中风险 3:低风险
|
|
11341
|
+
:type RiskLevel: list of int
|
|
11342
|
+
:param _NoticeTime: 通知时间段
|
|
11343
|
+
:type NoticeTime: str
|
|
11344
|
+
:param _NotificationMechanism: 通知机制
|
|
11345
|
+
:type NotificationMechanism: str
|
|
11346
|
+
:param _Status: 状态 1:启用 2:停用
|
|
11347
|
+
:type Status: int
|
|
11348
|
+
:param _NoticePeriod: 通知周期,1-7数字分别代表周一到周日
|
|
11349
|
+
:type NoticePeriod: list of int
|
|
11350
|
+
:param _Description: 策略描述
|
|
11351
|
+
:type Description: str
|
|
11352
|
+
"""
|
|
11353
|
+
self._AlarmPolicyId = None
|
|
11354
|
+
self._Name = None
|
|
11355
|
+
self._EventScope = None
|
|
11356
|
+
self._RiskLevel = None
|
|
11357
|
+
self._NoticeTime = None
|
|
11358
|
+
self._NotificationMechanism = None
|
|
11359
|
+
self._Status = None
|
|
11360
|
+
self._NoticePeriod = None
|
|
11361
|
+
self._Description = None
|
|
11362
|
+
|
|
11363
|
+
@property
|
|
11364
|
+
def AlarmPolicyId(self):
|
|
11365
|
+
r"""告警策略id
|
|
11366
|
+
:rtype: int
|
|
11367
|
+
"""
|
|
11368
|
+
return self._AlarmPolicyId
|
|
11369
|
+
|
|
11370
|
+
@AlarmPolicyId.setter
|
|
11371
|
+
def AlarmPolicyId(self, AlarmPolicyId):
|
|
11372
|
+
self._AlarmPolicyId = AlarmPolicyId
|
|
11373
|
+
|
|
11374
|
+
@property
|
|
11375
|
+
def Name(self):
|
|
11376
|
+
r"""告警策略名
|
|
11377
|
+
:rtype: str
|
|
11378
|
+
"""
|
|
11379
|
+
return self._Name
|
|
11380
|
+
|
|
11381
|
+
@Name.setter
|
|
11382
|
+
def Name(self, Name):
|
|
11383
|
+
self._Name = Name
|
|
11384
|
+
|
|
11385
|
+
@property
|
|
11386
|
+
def EventScope(self):
|
|
11387
|
+
r"""事件范围 1:当前账号 2:多账号
|
|
11388
|
+
:rtype: list of int
|
|
11389
|
+
"""
|
|
11390
|
+
return self._EventScope
|
|
11391
|
+
|
|
11392
|
+
@EventScope.setter
|
|
11393
|
+
def EventScope(self, EventScope):
|
|
11394
|
+
self._EventScope = EventScope
|
|
11395
|
+
|
|
11396
|
+
@property
|
|
11397
|
+
def RiskLevel(self):
|
|
11398
|
+
r"""风险等级 1:高风险 2:中风险 3:低风险
|
|
11399
|
+
:rtype: list of int
|
|
11400
|
+
"""
|
|
11401
|
+
return self._RiskLevel
|
|
11402
|
+
|
|
11403
|
+
@RiskLevel.setter
|
|
11404
|
+
def RiskLevel(self, RiskLevel):
|
|
11405
|
+
self._RiskLevel = RiskLevel
|
|
11406
|
+
|
|
11407
|
+
@property
|
|
11408
|
+
def NoticeTime(self):
|
|
11409
|
+
r"""通知时间段
|
|
11410
|
+
:rtype: str
|
|
11411
|
+
"""
|
|
11412
|
+
return self._NoticeTime
|
|
11413
|
+
|
|
11414
|
+
@NoticeTime.setter
|
|
11415
|
+
def NoticeTime(self, NoticeTime):
|
|
11416
|
+
self._NoticeTime = NoticeTime
|
|
11417
|
+
|
|
11418
|
+
@property
|
|
11419
|
+
def NotificationMechanism(self):
|
|
11420
|
+
r"""通知机制
|
|
11421
|
+
:rtype: str
|
|
11422
|
+
"""
|
|
11423
|
+
return self._NotificationMechanism
|
|
11424
|
+
|
|
11425
|
+
@NotificationMechanism.setter
|
|
11426
|
+
def NotificationMechanism(self, NotificationMechanism):
|
|
11427
|
+
self._NotificationMechanism = NotificationMechanism
|
|
11428
|
+
|
|
11429
|
+
@property
|
|
11430
|
+
def Status(self):
|
|
11431
|
+
r"""状态 1:启用 2:停用
|
|
11432
|
+
:rtype: int
|
|
11433
|
+
"""
|
|
11434
|
+
return self._Status
|
|
11435
|
+
|
|
11436
|
+
@Status.setter
|
|
11437
|
+
def Status(self, Status):
|
|
11438
|
+
self._Status = Status
|
|
11439
|
+
|
|
11440
|
+
@property
|
|
11441
|
+
def NoticePeriod(self):
|
|
11442
|
+
r"""通知周期,1-7数字分别代表周一到周日
|
|
11443
|
+
:rtype: list of int
|
|
11444
|
+
"""
|
|
11445
|
+
return self._NoticePeriod
|
|
11446
|
+
|
|
11447
|
+
@NoticePeriod.setter
|
|
11448
|
+
def NoticePeriod(self, NoticePeriod):
|
|
11449
|
+
self._NoticePeriod = NoticePeriod
|
|
11450
|
+
|
|
11451
|
+
@property
|
|
11452
|
+
def Description(self):
|
|
11453
|
+
r"""策略描述
|
|
11454
|
+
:rtype: str
|
|
11455
|
+
"""
|
|
11456
|
+
return self._Description
|
|
11457
|
+
|
|
11458
|
+
@Description.setter
|
|
11459
|
+
def Description(self, Description):
|
|
11460
|
+
self._Description = Description
|
|
11461
|
+
|
|
11462
|
+
|
|
11463
|
+
def _deserialize(self, params):
|
|
11464
|
+
self._AlarmPolicyId = params.get("AlarmPolicyId")
|
|
11465
|
+
self._Name = params.get("Name")
|
|
11466
|
+
self._EventScope = params.get("EventScope")
|
|
11467
|
+
self._RiskLevel = params.get("RiskLevel")
|
|
11468
|
+
self._NoticeTime = params.get("NoticeTime")
|
|
11469
|
+
self._NotificationMechanism = params.get("NotificationMechanism")
|
|
11470
|
+
self._Status = params.get("Status")
|
|
11471
|
+
self._NoticePeriod = params.get("NoticePeriod")
|
|
11472
|
+
self._Description = params.get("Description")
|
|
11473
|
+
memeber_set = set(params.keys())
|
|
11474
|
+
for name, value in vars(self).items():
|
|
11475
|
+
property_name = name[1:]
|
|
11476
|
+
if property_name in memeber_set:
|
|
11477
|
+
memeber_set.remove(property_name)
|
|
11478
|
+
if len(memeber_set) > 0:
|
|
11479
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11480
|
+
|
|
11481
|
+
|
|
11482
|
+
|
|
11483
|
+
class UpdateAlarmPolicyResponse(AbstractModel):
|
|
11484
|
+
r"""UpdateAlarmPolicy返回参数结构体
|
|
11485
|
+
|
|
11486
|
+
"""
|
|
11487
|
+
|
|
11488
|
+
def __init__(self):
|
|
11489
|
+
r"""
|
|
11490
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11491
|
+
:type RequestId: str
|
|
11492
|
+
"""
|
|
11493
|
+
self._RequestId = None
|
|
11494
|
+
|
|
11495
|
+
@property
|
|
11496
|
+
def RequestId(self):
|
|
11497
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11498
|
+
:rtype: str
|
|
11499
|
+
"""
|
|
11500
|
+
return self._RequestId
|
|
11501
|
+
|
|
11502
|
+
@RequestId.setter
|
|
11503
|
+
def RequestId(self, RequestId):
|
|
11504
|
+
self._RequestId = RequestId
|
|
11505
|
+
|
|
11506
|
+
|
|
11507
|
+
def _deserialize(self, params):
|
|
11508
|
+
self._RequestId = params.get("RequestId")
|
|
11509
|
+
|
|
11510
|
+
|
|
10798
11511
|
class UpdateCompliancePackRequest(AbstractModel):
|
|
10799
11512
|
r"""UpdateCompliancePack请求参数结构体
|
|
10800
11513
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-config
|
|
3
|
-
Version: 3.1.
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.77
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.77
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.74
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|