tencentcloud-sdk-python 3.1.76__py2.py3-none-any.whl → 3.1.78__py2.py3-none-any.whl

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 (53) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/ags/v20250920/models.py +47 -2
  3. tencentcloud/cls/v20201016/models.py +8 -8
  4. tencentcloud/config/v20220802/config_client.py +92 -0
  5. tencentcloud/config/v20220802/config_client_async.py +72 -0
  6. tencentcloud/config/v20220802/errorcodes.py +6 -0
  7. tencentcloud/config/v20220802/models.py +760 -32
  8. tencentcloud/cvm/v20170312/models.py +8 -8
  9. tencentcloud/cynosdb/v20190107/models.py +15 -0
  10. tencentcloud/dnspod/v20210323/models.py +74 -74
  11. tencentcloud/hai/v20230812/models.py +24 -4
  12. tencentcloud/hcm/v20181106/models.py +8 -8
  13. tencentcloud/live/v20180801/models.py +48 -26
  14. tencentcloud/mongodb/v20190725/models.py +221 -0
  15. tencentcloud/mongodb/v20190725/mongodb_client.py +23 -0
  16. tencentcloud/mongodb/v20190725/mongodb_client_async.py +18 -0
  17. tencentcloud/mps/v20190612/errorcodes.py +12 -0
  18. tencentcloud/mps/v20190612/models.py +779 -0
  19. tencentcloud/mps/v20190612/mps_client.py +92 -0
  20. tencentcloud/mps/v20190612/mps_client_async.py +72 -0
  21. tencentcloud/mqtt/v20240516/models.py +91 -82
  22. tencentcloud/omics/v20221128/models.py +38 -8
  23. tencentcloud/organization/v20210331/errorcodes.py +3 -0
  24. tencentcloud/organization/v20210331/models.py +94 -0
  25. tencentcloud/organization/v20210331/organization_client.py +23 -0
  26. tencentcloud/organization/v20210331/organization_client_async.py +18 -0
  27. tencentcloud/redis/v20180412/models.py +2 -2
  28. tencentcloud/tcb/v20180608/errorcodes.py +12 -0
  29. tencentcloud/tcb/v20180608/models.py +158 -0
  30. tencentcloud/tcb/v20180608/tcb_client.py +23 -0
  31. tencentcloud/tcb/v20180608/tcb_client_async.py +18 -0
  32. tencentcloud/tdmq/v20200217/models.py +285 -0
  33. tencentcloud/tdmq/v20200217/tdmq_client.py +23 -0
  34. tencentcloud/tdmq/v20200217/tdmq_client_async.py +18 -0
  35. tencentcloud/teo/v20220901/models.py +2 -6
  36. tencentcloud/tione/v20211111/models.py +312 -440
  37. tencentcloud/tke/v20180525/models.py +430 -225
  38. tencentcloud/tke/v20180525/tke_client.py +10 -10
  39. tencentcloud/tke/v20180525/tke_client_async.py +10 -10
  40. tencentcloud/tke/v20220501/models.py +104 -0
  41. tencentcloud/trocket/v20230308/models.py +141 -0
  42. tencentcloud/trocket/v20230308/trocket_client.py +23 -0
  43. tencentcloud/trocket/v20230308/trocket_client_async.py +18 -0
  44. tencentcloud/vclm/v20240523/models.py +329 -8
  45. tencentcloud/vclm/v20240523/vclm_client.py +23 -0
  46. tencentcloud/vclm/v20240523/vclm_client_async.py +18 -0
  47. tencentcloud/vod/v20180717/models.py +86 -26
  48. tencentcloud/wedata/v20210820/models.py +33 -16
  49. {tencentcloud_sdk_python-3.1.76.dist-info → tencentcloud_sdk_python-3.1.78.dist-info}/METADATA +1 -1
  50. {tencentcloud_sdk_python-3.1.76.dist-info → tencentcloud_sdk_python-3.1.78.dist-info}/RECORD +53 -53
  51. {tencentcloud_sdk_python-3.1.76.dist-info → tencentcloud_sdk_python-3.1.78.dist-info}/LICENSE +0 -0
  52. {tencentcloud_sdk_python-3.1.76.dist-info → tencentcloud_sdk_python-3.1.78.dist-info}/WHEEL +0 -0
  53. {tencentcloud_sdk_python-3.1.76.dist-info → tencentcloud_sdk_python-3.1.78.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.76'
17
+ __version__ = '3.1.78'
@@ -623,6 +623,8 @@ class CreateSandboxToolRequest(AbstractModel):
623
623
  :type CustomConfiguration: :class:`tencentcloud.ags.v20250920.models.CustomConfiguration`
624
624
  :param _LogConfiguration: <p>沙箱工具日志推送相关配置</p>
625
625
  :type LogConfiguration: :class:`tencentcloud.ags.v20250920.models.LogConfiguration`
626
+ :param _Persistent: <p>常驻沙箱标识</p>
627
+ :type Persistent: bool
626
628
  """
627
629
  self._ToolName = None
628
630
  self._ToolType = None
@@ -635,6 +637,7 @@ class CreateSandboxToolRequest(AbstractModel):
635
637
  self._StorageMounts = None
636
638
  self._CustomConfiguration = None
637
639
  self._LogConfiguration = None
640
+ self._Persistent = None
638
641
 
639
642
  @property
640
643
  def ToolName(self):
@@ -757,6 +760,17 @@ class CreateSandboxToolRequest(AbstractModel):
757
760
  def LogConfiguration(self, LogConfiguration):
758
761
  self._LogConfiguration = LogConfiguration
759
762
 
763
+ @property
764
+ def Persistent(self):
765
+ r"""<p>常驻沙箱标识</p>
766
+ :rtype: bool
767
+ """
768
+ return self._Persistent
769
+
770
+ @Persistent.setter
771
+ def Persistent(self, Persistent):
772
+ self._Persistent = Persistent
773
+
760
774
 
761
775
  def _deserialize(self, params):
762
776
  self._ToolName = params.get("ToolName")
@@ -786,6 +800,7 @@ class CreateSandboxToolRequest(AbstractModel):
786
800
  if params.get("LogConfiguration") is not None:
787
801
  self._LogConfiguration = LogConfiguration()
788
802
  self._LogConfiguration._deserialize(params.get("LogConfiguration"))
803
+ self._Persistent = params.get("Persistent")
789
804
  memeber_set = set(params.keys())
790
805
  for name, value in vars(self).items():
791
806
  property_name = name[1:]
@@ -2199,14 +2214,14 @@ class LogConfiguration(AbstractModel):
2199
2214
 
2200
2215
  def __init__(self):
2201
2216
  r"""
2202
- :param _CLSConfig: 日志推送CLS的配置。
2217
+ :param _CLSConfig: <p>日志推送CLS的配置。</p>
2203
2218
  :type CLSConfig: :class:`tencentcloud.ags.v20250920.models.CLSConfig`
2204
2219
  """
2205
2220
  self._CLSConfig = None
2206
2221
 
2207
2222
  @property
2208
2223
  def CLSConfig(self):
2209
- r"""日志推送CLS的配置。
2224
+ r"""<p>日志推送CLS的配置。</p>
2210
2225
  :rtype: :class:`tencentcloud.ags.v20250920.models.CLSConfig`
2211
2226
  """
2212
2227
  return self._CLSConfig
@@ -2788,6 +2803,8 @@ class SandboxInstance(AbstractModel):
2788
2803
  :type ToolName: str
2789
2804
  :param _Status: <p>实例状态:STARTING(启动中)、RUNNING(运行中)、STOPPING(停止中)、STOPPED(已停止)、STOP_FAILED(停止失败)、FAILED(失败状态)</p>
2790
2805
  :type Status: str
2806
+ :param _Persistent: <p>是否常驻实例</p>
2807
+ :type Persistent: bool
2791
2808
  :param _TimeoutSeconds: <p>超时时间(秒),null 表示无超时设置</p>
2792
2809
  :type TimeoutSeconds: int
2793
2810
  :param _ExpiresAt: <p>过期时间(ISO 8601 格式),null 表示无过期时间</p>
@@ -2811,6 +2828,7 @@ class SandboxInstance(AbstractModel):
2811
2828
  self._ToolId = None
2812
2829
  self._ToolName = None
2813
2830
  self._Status = None
2831
+ self._Persistent = None
2814
2832
  self._TimeoutSeconds = None
2815
2833
  self._ExpiresAt = None
2816
2834
  self._StopReason = None
@@ -2865,6 +2883,17 @@ class SandboxInstance(AbstractModel):
2865
2883
  def Status(self, Status):
2866
2884
  self._Status = Status
2867
2885
 
2886
+ @property
2887
+ def Persistent(self):
2888
+ r"""<p>是否常驻实例</p>
2889
+ :rtype: bool
2890
+ """
2891
+ return self._Persistent
2892
+
2893
+ @Persistent.setter
2894
+ def Persistent(self, Persistent):
2895
+ self._Persistent = Persistent
2896
+
2868
2897
  @property
2869
2898
  def TimeoutSeconds(self):
2870
2899
  r"""<p>超时时间(秒),null 表示无超时设置</p>
@@ -2970,6 +2999,7 @@ class SandboxInstance(AbstractModel):
2970
2999
  self._ToolId = params.get("ToolId")
2971
3000
  self._ToolName = params.get("ToolName")
2972
3001
  self._Status = params.get("Status")
3002
+ self._Persistent = params.get("Persistent")
2973
3003
  self._TimeoutSeconds = params.get("TimeoutSeconds")
2974
3004
  self._ExpiresAt = params.get("ExpiresAt")
2975
3005
  self._StopReason = params.get("StopReason")
@@ -3018,6 +3048,8 @@ class SandboxTool(AbstractModel):
3018
3048
  :type Status: str
3019
3049
  :param _Description: <p>沙箱工具描述信息,最大长度 200 字符</p>
3020
3050
  :type Description: str
3051
+ :param _Persistent: <p>是否常驻沙箱</p>
3052
+ :type Persistent: bool
3021
3053
  :param _DefaultTimeoutSeconds: <p>默认超时时间,支持格式:5m、300s、1h 等,不指定则使用系统默认值(5 分钟)。最大 24 小时</p>
3022
3054
  :type DefaultTimeoutSeconds: int
3023
3055
  :param _NetworkConfiguration: <p>网络配置</p>
@@ -3044,6 +3076,7 @@ class SandboxTool(AbstractModel):
3044
3076
  self._ToolType = None
3045
3077
  self._Status = None
3046
3078
  self._Description = None
3079
+ self._Persistent = None
3047
3080
  self._DefaultTimeoutSeconds = None
3048
3081
  self._NetworkConfiguration = None
3049
3082
  self._Tags = None
@@ -3110,6 +3143,17 @@ class SandboxTool(AbstractModel):
3110
3143
  def Description(self, Description):
3111
3144
  self._Description = Description
3112
3145
 
3146
+ @property
3147
+ def Persistent(self):
3148
+ r"""<p>是否常驻沙箱</p>
3149
+ :rtype: bool
3150
+ """
3151
+ return self._Persistent
3152
+
3153
+ @Persistent.setter
3154
+ def Persistent(self, Persistent):
3155
+ self._Persistent = Persistent
3156
+
3113
3157
  @property
3114
3158
  def DefaultTimeoutSeconds(self):
3115
3159
  r"""<p>默认超时时间,支持格式:5m、300s、1h 等,不指定则使用系统默认值(5 分钟)。最大 24 小时</p>
@@ -3227,6 +3271,7 @@ class SandboxTool(AbstractModel):
3227
3271
  self._ToolType = params.get("ToolType")
3228
3272
  self._Status = params.get("Status")
3229
3273
  self._Description = params.get("Description")
3274
+ self._Persistent = params.get("Persistent")
3230
3275
  self._DefaultTimeoutSeconds = params.get("DefaultTimeoutSeconds")
3231
3276
  if params.get("NetworkConfiguration") is not None:
3232
3277
  self._NetworkConfiguration = NetworkConfiguration()
@@ -8854,11 +8854,11 @@ class CreateConsoleRequest(AbstractModel):
8854
8854
  r"""
8855
8855
  :param _AccessMode: <p>访问方式:public - 公网,internal - 内网</p>
8856
8856
  :type AccessMode: list of str
8857
- :param _LoginMode: <p>登录方式:0 - 账号密码鉴权,1 - 匿名登陆,2 - 第三方认证登录</p>
8857
+ :param _LoginMode: <p>登录方式</p><p>枚举值:</p><ul><li>0 账号密码鉴权</li><li>1 匿名登录</li><li>2 第三方认证登录</li></ul>
8858
8858
  :type LoginMode: int
8859
8859
  :param _DomainPrefix: <p>自定义域名前缀</p>
8860
8860
  :type DomainPrefix: str
8861
- :param _Accounts: <p>用户账号信息</p><p>“账号密码鉴权“登录方式必传</p>
8861
+ :param _Accounts: <p>用户账号信息</p><p>“账号密码鉴权”登录方式必传</p>
8862
8862
  :type Accounts: list of ConsoleAccount
8863
8863
  :param _AnonymousLogin: <p>匿名登录账号信息</p><p>“匿名登录”登录方式必传</p>
8864
8864
  :type AnonymousLogin: :class:`tencentcloud.cls.v20201016.models.AnonymousLoginInfo`
@@ -8912,7 +8912,7 @@ class CreateConsoleRequest(AbstractModel):
8912
8912
 
8913
8913
  @property
8914
8914
  def LoginMode(self):
8915
- r"""<p>登录方式:0 - 账号密码鉴权,1 - 匿名登陆,2 - 第三方认证登录</p>
8915
+ r"""<p>登录方式</p><p>枚举值:</p><ul><li>0 账号密码鉴权</li><li>1 匿名登录</li><li>2 第三方认证登录</li></ul>
8916
8916
  :rtype: int
8917
8917
  """
8918
8918
  return self._LoginMode
@@ -8934,7 +8934,7 @@ class CreateConsoleRequest(AbstractModel):
8934
8934
 
8935
8935
  @property
8936
8936
  def Accounts(self):
8937
- r"""<p>用户账号信息</p><p>“账号密码鉴权“登录方式必传</p>
8937
+ r"""<p>用户账号信息</p><p>“账号密码鉴权”登录方式必传</p>
8938
8938
  :rtype: list of ConsoleAccount
8939
8939
  """
8940
8940
  return self._Accounts
@@ -36344,11 +36344,11 @@ class ModifyConsoleRequest(AbstractModel):
36344
36344
  :type ConsoleId: str
36345
36345
  :param _AccessMode: <p>访问方式:public - 公网,internal - 内网</p>
36346
36346
  :type AccessMode: list of str
36347
- :param _LoginMode: <p>登录方式:0 - 账号密码鉴权,1 - 匿名登陆,2 - 第三方认证登录</p>
36347
+ :param _LoginMode: <p>登录方式</p><p>枚举值:</p><ul><li>0 账号密码鉴权</li><li>1 匿名登录</li><li>2 第三方认证登录</li></ul>
36348
36348
  :type LoginMode: int
36349
36349
  :param _DomainPrefix: <p>自定义域名前缀</p>
36350
36350
  :type DomainPrefix: str
36351
- :param _Accounts: <p>用户账号信息</p><p>“账号密码鉴权“登录方式必传</p>
36351
+ :param _Accounts: <p>用户账号信息</p><p>“账号密码鉴权”登录方式必传</p>
36352
36352
  :type Accounts: list of ConsoleAccount
36353
36353
  :param _AnonymousLogin: <p>匿名登录账号信息</p><p>“匿名登录”登录方式必传</p>
36354
36354
  :type AnonymousLogin: :class:`tencentcloud.cls.v20201016.models.AnonymousLoginInfo`
@@ -36411,7 +36411,7 @@ class ModifyConsoleRequest(AbstractModel):
36411
36411
 
36412
36412
  @property
36413
36413
  def LoginMode(self):
36414
- r"""<p>登录方式:0 - 账号密码鉴权,1 - 匿名登陆,2 - 第三方认证登录</p>
36414
+ r"""<p>登录方式</p><p>枚举值:</p><ul><li>0 账号密码鉴权</li><li>1 匿名登录</li><li>2 第三方认证登录</li></ul>
36415
36415
  :rtype: int
36416
36416
  """
36417
36417
  return self._LoginMode
@@ -36433,7 +36433,7 @@ class ModifyConsoleRequest(AbstractModel):
36433
36433
 
36434
36434
  @property
36435
36435
  def Accounts(self):
36436
- r"""<p>用户账号信息</p><p>“账号密码鉴权“登录方式必传</p>
36436
+ r"""<p>用户账号信息</p><p>“账号密码鉴权”登录方式必传</p>
36437
36437
  :rtype: list of ConsoleAccount
36438
36438
  """
36439
36439
  return self._Accounts
@@ -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