tencentcloud-sdk-python 3.0.1344__py2.py3-none-any.whl → 3.0.1346__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 (63) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/antiddos/v20200309/antiddos_client.py +0 -50
  3. tencentcloud/antiddos/v20200309/models.py +14 -689
  4. tencentcloud/apm/v20210622/models.py +60 -60
  5. tencentcloud/batch/v20170312/models.py +0 -150
  6. tencentcloud/bi/v20220105/models.py +6 -2
  7. tencentcloud/cbs/v20170312/models.py +0 -20
  8. tencentcloud/cdwch/v20200915/models.py +111 -256
  9. tencentcloud/ckafka/v20190819/models.py +2 -1204
  10. tencentcloud/clb/v20180317/models.py +10 -10
  11. tencentcloud/cls/v20201016/cls_client.py +0 -92
  12. tencentcloud/cls/v20201016/models.py +18 -1032
  13. tencentcloud/cvm/v20170312/models.py +15 -0
  14. tencentcloud/cynosdb/v20190107/models.py +0 -84
  15. tencentcloud/dbbrain/v20191016/models.py +2 -22
  16. tencentcloud/dbbrain/v20210527/models.py +17 -96
  17. tencentcloud/dcdb/v20180411/models.py +0 -48
  18. tencentcloud/dnspod/v20210323/dnspod_client.py +69 -0
  19. tencentcloud/dnspod/v20210323/errorcodes.py +9 -0
  20. tencentcloud/dnspod/v20210323/models.py +724 -0
  21. tencentcloud/dsgc/v20190723/dsgc_client.py +0 -23
  22. tencentcloud/dsgc/v20190723/models.py +0 -34
  23. tencentcloud/emr/v20190103/emr_client.py +1 -1
  24. tencentcloud/emr/v20190103/models.py +422 -15
  25. tencentcloud/hunyuan/v20230901/models.py +17 -2
  26. tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +23 -0
  27. tencentcloud/iotexplorer/v20190423/models.py +131 -0
  28. tencentcloud/iotvideoindustry/v20201201/iotvideoindustry_client.py +1 -1
  29. tencentcloud/iotvideoindustry/v20201201/models.py +15 -456
  30. tencentcloud/lke/v20231130/lke_client.py +0 -23
  31. tencentcloud/lke/v20231130/models.py +0 -79
  32. tencentcloud/lkeap/v20240522/lkeap_client.py +1 -1
  33. tencentcloud/mariadb/v20170312/models.py +0 -38
  34. tencentcloud/memcached/v20190318/models.py +2 -2
  35. tencentcloud/mmps/v20200710/models.py +0 -56
  36. tencentcloud/monitor/v20180724/models.py +446 -0
  37. tencentcloud/monitor/v20180724/monitor_client.py +23 -0
  38. tencentcloud/postgres/v20170312/models.py +0 -222
  39. tencentcloud/postgres/v20170312/postgres_client.py +5 -5
  40. tencentcloud/redis/v20180412/models.py +2 -4
  41. tencentcloud/svp/v20240125/models.py +0 -44
  42. tencentcloud/tcb/v20180608/models.py +0 -195
  43. tencentcloud/tcb/v20180608/tcb_client.py +0 -23
  44. tencentcloud/tcss/v20201101/models.py +1813 -2547
  45. tencentcloud/tcss/v20201101/tcss_client.py +92 -125
  46. tencentcloud/tdmq/v20200217/models.py +266 -154
  47. tencentcloud/tdmq/v20200217/tdmq_client.py +0 -23
  48. tencentcloud/teo/v20220901/errorcodes.py +3 -0
  49. tencentcloud/teo/v20220901/models.py +239 -38
  50. tencentcloud/teo/v20220901/teo_client.py +46 -0
  51. tencentcloud/thpc/v20211109/models.py +0 -6
  52. tencentcloud/thpc/v20220401/models.py +0 -12
  53. tencentcloud/thpc/v20230321/models.py +0 -20
  54. tencentcloud/tke/v20180525/models.py +0 -54
  55. tencentcloud/tke/v20220501/models.py +0 -34
  56. tencentcloud/vpc/v20170312/models.py +0 -34
  57. tencentcloud/waf/v20180125/models.py +15 -0
  58. tencentcloud/wedata/v20210820/models.py +254 -0
  59. {tencentcloud_sdk_python-3.0.1344.dist-info → tencentcloud_sdk_python-3.0.1346.dist-info}/METADATA +1 -1
  60. {tencentcloud_sdk_python-3.0.1344.dist-info → tencentcloud_sdk_python-3.0.1346.dist-info}/RECORD +63 -63
  61. {tencentcloud_sdk_python-3.0.1344.dist-info → tencentcloud_sdk_python-3.0.1346.dist-info}/LICENSE +0 -0
  62. {tencentcloud_sdk_python-3.0.1344.dist-info → tencentcloud_sdk_python-3.0.1346.dist-info}/WHEEL +0 -0
  63. {tencentcloud_sdk_python-3.0.1344.dist-info → tencentcloud_sdk_python-3.0.1346.dist-info}/top_level.txt +0 -0
@@ -4378,7 +4378,7 @@ class CreateCCPrecisionPolicyRequest(AbstractModel):
4378
4378
  :type Protocol: str
4379
4379
  :param _Domain: 域名
4380
4380
  :type Domain: str
4381
- :param _PolicyAction: 策略方式,可取值alg表示验证码,drop表示丢弃,trans表示放行
4381
+ :param _PolicyAction: 策略方式,可取值alg表示人机校验,drop表示丢弃,trans表示放行
4382
4382
  :type PolicyAction: str
4383
4383
  :param _PolicyList: 策略记录
4384
4384
  :type PolicyList: list of CCPrecisionPlyRecord
@@ -4436,7 +4436,7 @@ class CreateCCPrecisionPolicyRequest(AbstractModel):
4436
4436
 
4437
4437
  @property
4438
4438
  def PolicyAction(self):
4439
- """策略方式,可取值alg表示验证码,drop表示丢弃,trans表示放行
4439
+ """策略方式,可取值alg表示人机校验,drop表示丢弃,trans表示放行
4440
4440
  :rtype: str
4441
4441
  """
4442
4442
  return self._PolicyAction
@@ -9122,100 +9122,6 @@ class DescribeBizTrendResponse(AbstractModel):
9122
9122
  self._RequestId = params.get("RequestId")
9123
9123
 
9124
9124
 
9125
- class DescribeBlackWhiteIpListRequest(AbstractModel):
9126
- """DescribeBlackWhiteIpList请求参数结构体
9127
-
9128
- """
9129
-
9130
- def __init__(self):
9131
- r"""
9132
- :param _InstanceId: 资源实例ID
9133
- :type InstanceId: str
9134
- """
9135
- self._InstanceId = None
9136
-
9137
- @property
9138
- def InstanceId(self):
9139
- """资源实例ID
9140
- :rtype: str
9141
- """
9142
- return self._InstanceId
9143
-
9144
- @InstanceId.setter
9145
- def InstanceId(self, InstanceId):
9146
- self._InstanceId = InstanceId
9147
-
9148
-
9149
- def _deserialize(self, params):
9150
- self._InstanceId = params.get("InstanceId")
9151
- memeber_set = set(params.keys())
9152
- for name, value in vars(self).items():
9153
- property_name = name[1:]
9154
- if property_name in memeber_set:
9155
- memeber_set.remove(property_name)
9156
- if len(memeber_set) > 0:
9157
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
9158
-
9159
-
9160
-
9161
- class DescribeBlackWhiteIpListResponse(AbstractModel):
9162
- """DescribeBlackWhiteIpList返回参数结构体
9163
-
9164
- """
9165
-
9166
- def __init__(self):
9167
- r"""
9168
- :param _BlackIpList: 黑名单IP列表
9169
- :type BlackIpList: list of str
9170
- :param _WhiteIpList: 白名单IP列表
9171
- :type WhiteIpList: list of str
9172
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9173
- :type RequestId: str
9174
- """
9175
- self._BlackIpList = None
9176
- self._WhiteIpList = None
9177
- self._RequestId = None
9178
-
9179
- @property
9180
- def BlackIpList(self):
9181
- """黑名单IP列表
9182
- :rtype: list of str
9183
- """
9184
- return self._BlackIpList
9185
-
9186
- @BlackIpList.setter
9187
- def BlackIpList(self, BlackIpList):
9188
- self._BlackIpList = BlackIpList
9189
-
9190
- @property
9191
- def WhiteIpList(self):
9192
- """白名单IP列表
9193
- :rtype: list of str
9194
- """
9195
- return self._WhiteIpList
9196
-
9197
- @WhiteIpList.setter
9198
- def WhiteIpList(self, WhiteIpList):
9199
- self._WhiteIpList = WhiteIpList
9200
-
9201
- @property
9202
- def RequestId(self):
9203
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9204
- :rtype: str
9205
- """
9206
- return self._RequestId
9207
-
9208
- @RequestId.setter
9209
- def RequestId(self, RequestId):
9210
- self._RequestId = RequestId
9211
-
9212
-
9213
- def _deserialize(self, params):
9214
- self._BlackIpList = params.get("BlackIpList")
9215
- self._WhiteIpList = params.get("WhiteIpList")
9216
- self._RequestId = params.get("RequestId")
9217
-
9218
-
9219
9125
  class DescribeCCLevelListRequest(AbstractModel):
9220
9126
  """DescribeCCLevelList请求参数结构体
9221
9127
 
@@ -13395,180 +13301,6 @@ class DescribeListPortAclListResponse(AbstractModel):
13395
13301
  self._RequestId = params.get("RequestId")
13396
13302
 
13397
13303
 
13398
- class DescribeListProtectThresholdConfigRequest(AbstractModel):
13399
- """DescribeListProtectThresholdConfig请求参数结构体
13400
-
13401
- """
13402
-
13403
- def __init__(self):
13404
- r"""
13405
- :param _Offset: 页起始偏移,取值为(页码-1)*一页条数
13406
- :type Offset: int
13407
- :param _Limit: 一页条数,当Limit=0时,默认一页条数为100;最大取值为100
13408
- :type Limit: int
13409
- :param _FilterInstanceId: 资源实例ID搜索, 支持资源实例前缀通配搜索,例如bgp-*表示获取高防包类型的资源实例
13410
- :type FilterInstanceId: str
13411
- :param _FilterIp: IP搜索
13412
- :type FilterIp: str
13413
- :param _FilterDomain: 域名搜索(查询域名与协议的CC防护阈值时使用)
13414
- :type FilterDomain: str
13415
- :param _FilterProtocol: 协议搜索(查询域名与协议的CC防护阈值时使用)
13416
- :type FilterProtocol: str
13417
- """
13418
- self._Offset = None
13419
- self._Limit = None
13420
- self._FilterInstanceId = None
13421
- self._FilterIp = None
13422
- self._FilterDomain = None
13423
- self._FilterProtocol = None
13424
-
13425
- @property
13426
- def Offset(self):
13427
- """页起始偏移,取值为(页码-1)*一页条数
13428
- :rtype: int
13429
- """
13430
- return self._Offset
13431
-
13432
- @Offset.setter
13433
- def Offset(self, Offset):
13434
- self._Offset = Offset
13435
-
13436
- @property
13437
- def Limit(self):
13438
- """一页条数,当Limit=0时,默认一页条数为100;最大取值为100
13439
- :rtype: int
13440
- """
13441
- return self._Limit
13442
-
13443
- @Limit.setter
13444
- def Limit(self, Limit):
13445
- self._Limit = Limit
13446
-
13447
- @property
13448
- def FilterInstanceId(self):
13449
- """资源实例ID搜索, 支持资源实例前缀通配搜索,例如bgp-*表示获取高防包类型的资源实例
13450
- :rtype: str
13451
- """
13452
- return self._FilterInstanceId
13453
-
13454
- @FilterInstanceId.setter
13455
- def FilterInstanceId(self, FilterInstanceId):
13456
- self._FilterInstanceId = FilterInstanceId
13457
-
13458
- @property
13459
- def FilterIp(self):
13460
- """IP搜索
13461
- :rtype: str
13462
- """
13463
- return self._FilterIp
13464
-
13465
- @FilterIp.setter
13466
- def FilterIp(self, FilterIp):
13467
- self._FilterIp = FilterIp
13468
-
13469
- @property
13470
- def FilterDomain(self):
13471
- """域名搜索(查询域名与协议的CC防护阈值时使用)
13472
- :rtype: str
13473
- """
13474
- return self._FilterDomain
13475
-
13476
- @FilterDomain.setter
13477
- def FilterDomain(self, FilterDomain):
13478
- self._FilterDomain = FilterDomain
13479
-
13480
- @property
13481
- def FilterProtocol(self):
13482
- """协议搜索(查询域名与协议的CC防护阈值时使用)
13483
- :rtype: str
13484
- """
13485
- return self._FilterProtocol
13486
-
13487
- @FilterProtocol.setter
13488
- def FilterProtocol(self, FilterProtocol):
13489
- self._FilterProtocol = FilterProtocol
13490
-
13491
-
13492
- def _deserialize(self, params):
13493
- self._Offset = params.get("Offset")
13494
- self._Limit = params.get("Limit")
13495
- self._FilterInstanceId = params.get("FilterInstanceId")
13496
- self._FilterIp = params.get("FilterIp")
13497
- self._FilterDomain = params.get("FilterDomain")
13498
- self._FilterProtocol = params.get("FilterProtocol")
13499
- memeber_set = set(params.keys())
13500
- for name, value in vars(self).items():
13501
- property_name = name[1:]
13502
- if property_name in memeber_set:
13503
- memeber_set.remove(property_name)
13504
- if len(memeber_set) > 0:
13505
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
13506
-
13507
-
13508
-
13509
- class DescribeListProtectThresholdConfigResponse(AbstractModel):
13510
- """DescribeListProtectThresholdConfig返回参数结构体
13511
-
13512
- """
13513
-
13514
- def __init__(self):
13515
- r"""
13516
- :param _Total: 总记录数
13517
- :type Total: int
13518
- :param _ConfigList: 防护阈值配置列表
13519
- :type ConfigList: list of ProtectThresholdRelation
13520
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13521
- :type RequestId: str
13522
- """
13523
- self._Total = None
13524
- self._ConfigList = None
13525
- self._RequestId = None
13526
-
13527
- @property
13528
- def Total(self):
13529
- """总记录数
13530
- :rtype: int
13531
- """
13532
- return self._Total
13533
-
13534
- @Total.setter
13535
- def Total(self, Total):
13536
- self._Total = Total
13537
-
13538
- @property
13539
- def ConfigList(self):
13540
- """防护阈值配置列表
13541
- :rtype: list of ProtectThresholdRelation
13542
- """
13543
- return self._ConfigList
13544
-
13545
- @ConfigList.setter
13546
- def ConfigList(self, ConfigList):
13547
- self._ConfigList = ConfigList
13548
-
13549
- @property
13550
- def RequestId(self):
13551
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13552
- :rtype: str
13553
- """
13554
- return self._RequestId
13555
-
13556
- @RequestId.setter
13557
- def RequestId(self, RequestId):
13558
- self._RequestId = RequestId
13559
-
13560
-
13561
- def _deserialize(self, params):
13562
- self._Total = params.get("Total")
13563
- if params.get("ConfigList") is not None:
13564
- self._ConfigList = []
13565
- for item in params.get("ConfigList"):
13566
- obj = ProtectThresholdRelation()
13567
- obj._deserialize(item)
13568
- self._ConfigList.append(obj)
13569
- self._RequestId = params.get("RequestId")
13570
-
13571
-
13572
13304
  class DescribeListProtocolBlockConfigRequest(AbstractModel):
13573
13305
  """DescribeListProtocolBlockConfig请求参数结构体
13574
13306
 
@@ -17608,110 +17340,29 @@ class Layer7Rule(AbstractModel):
17608
17340
 
17609
17341
 
17610
17342
 
17611
- class ListenerCcThreholdConfig(AbstractModel):
17612
- """域名与协议纬度的CC防护阈值
17343
+ class ModifyCCLevelPolicyRequest(AbstractModel):
17344
+ """ModifyCCLevelPolicy请求参数结构体
17613
17345
 
17614
17346
  """
17615
17347
 
17616
17348
  def __init__(self):
17617
17349
  r"""
17350
+ :param _InstanceId: 实例Id
17351
+ :type InstanceId: str
17352
+ :param _Ip: IP地址
17353
+ :type Ip: str
17618
17354
  :param _Domain: 域名
17619
17355
  :type Domain: str
17620
- :param _Protocol: 协议(可取值https
17356
+ :param _Protocol: 协议,可取值http、https、http/https
17621
17357
  :type Protocol: str
17622
- :param _CCEnable: 开关状态(0:关闭,1:开启)
17623
- :type CCEnable: int
17624
- :param _CCThreshold: cc防护阈值
17625
- :type CCThreshold: int
17358
+ :param _Level: CC防护等级,可取值loose表示宽松,strict表示严格,normal表示适中, emergency表示攻击紧急, sup_loose表示超级宽松,default表示默认策略(无频控配置下发),customized表示自定义策略
17359
+ :type Level: str
17626
17360
  """
17361
+ self._InstanceId = None
17362
+ self._Ip = None
17627
17363
  self._Domain = None
17628
17364
  self._Protocol = None
17629
- self._CCEnable = None
17630
- self._CCThreshold = None
17631
-
17632
- @property
17633
- def Domain(self):
17634
- """域名
17635
- :rtype: str
17636
- """
17637
- return self._Domain
17638
-
17639
- @Domain.setter
17640
- def Domain(self, Domain):
17641
- self._Domain = Domain
17642
-
17643
- @property
17644
- def Protocol(self):
17645
- """协议(可取值https)
17646
- :rtype: str
17647
- """
17648
- return self._Protocol
17649
-
17650
- @Protocol.setter
17651
- def Protocol(self, Protocol):
17652
- self._Protocol = Protocol
17653
-
17654
- @property
17655
- def CCEnable(self):
17656
- """开关状态(0:关闭,1:开启)
17657
- :rtype: int
17658
- """
17659
- return self._CCEnable
17660
-
17661
- @CCEnable.setter
17662
- def CCEnable(self, CCEnable):
17663
- self._CCEnable = CCEnable
17664
-
17665
- @property
17666
- def CCThreshold(self):
17667
- """cc防护阈值
17668
- :rtype: int
17669
- """
17670
- return self._CCThreshold
17671
-
17672
- @CCThreshold.setter
17673
- def CCThreshold(self, CCThreshold):
17674
- self._CCThreshold = CCThreshold
17675
-
17676
-
17677
- def _deserialize(self, params):
17678
- self._Domain = params.get("Domain")
17679
- self._Protocol = params.get("Protocol")
17680
- self._CCEnable = params.get("CCEnable")
17681
- self._CCThreshold = params.get("CCThreshold")
17682
- memeber_set = set(params.keys())
17683
- for name, value in vars(self).items():
17684
- property_name = name[1:]
17685
- if property_name in memeber_set:
17686
- memeber_set.remove(property_name)
17687
- if len(memeber_set) > 0:
17688
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
17689
-
17690
-
17691
-
17692
- class ModifyCCLevelPolicyRequest(AbstractModel):
17693
- """ModifyCCLevelPolicy请求参数结构体
17694
-
17695
- """
17696
-
17697
- def __init__(self):
17698
- r"""
17699
- :param _InstanceId: 实例Id
17700
- :type InstanceId: str
17701
- :param _Ip: IP地址
17702
- :type Ip: str
17703
- :param _Domain: 域名
17704
- :type Domain: str
17705
- :param _Protocol: 协议,可取值http、https、http/https
17706
- :type Protocol: str
17707
- :param _Level: CC防护等级,可取值loose表示宽松,strict表示严格,normal表示适中, emergency表示攻击紧急, sup_loose表示超级宽松,default表示默认策略(无频控配置下发),customized表示自定义策略
17708
- :type Level: str
17709
- """
17710
- self._InstanceId = None
17711
- self._Ip = None
17712
- self._Domain = None
17713
- self._Protocol = None
17714
- self._Level = None
17365
+ self._Level = None
17715
17366
 
17716
17367
  @property
17717
17368
  def InstanceId(self):
@@ -20570,332 +20221,6 @@ class PortSegment(AbstractModel):
20570
20221
 
20571
20222
 
20572
20223
 
20573
- class ProtectThresholdRelation(AbstractModel):
20574
- """防护阈值配置相关信息
20575
-
20576
- """
20577
-
20578
- def __init__(self):
20579
- r"""
20580
- :param _DDoSLevel: DDoS防护等级,取值[
20581
- low(宽松)
20582
- middle(适中)
20583
- high(严格)
20584
- ]
20585
- :type DDoSLevel: str
20586
- :param _DDoSThreshold: DDoS清洗阈值,单位Mbps
20587
- :type DDoSThreshold: int
20588
- :param _DDoSAI: DDoS的AI防护开关,取值[
20589
- on(开启)
20590
- off(关闭)
20591
- ]
20592
- :type DDoSAI: str
20593
- :param _CCEnable: CC清洗开关,取值[
20594
- 0(关闭)
20595
- 1(开启)
20596
- ]
20597
- :type CCEnable: int
20598
- :param _CCThreshold: CC清洗阈值,单位QPS
20599
- :type CCThreshold: int
20600
- :param _InstanceDetailList: 所属的资源实例
20601
- :type InstanceDetailList: list of InstanceRelation
20602
- :param _ListenerCcThresholdList: 域名与协议纬度的防护阈值
20603
- :type ListenerCcThresholdList: list of ListenerCcThreholdConfig
20604
- :param _SynFloodThreshold: SYN FLOOD流量阈值
20605
- 注意:此字段可能返回 null,表示取不到有效值。
20606
- :type SynFloodThreshold: int
20607
- :param _SynFloodPktThreshold: SYN FLOOD包量阈值
20608
- 注意:此字段可能返回 null,表示取不到有效值。
20609
- :type SynFloodPktThreshold: int
20610
- :param _UdpFloodThreshold: UDP FLOOD流量阈值
20611
- 注意:此字段可能返回 null,表示取不到有效值。
20612
- :type UdpFloodThreshold: int
20613
- :param _UdpFloodPktThreshold: UDP FLOOD包量阈值
20614
- 注意:此字段可能返回 null,表示取不到有效值。
20615
- :type UdpFloodPktThreshold: int
20616
- :param _AckFloodThreshold: ACK FLOOD流量阈值
20617
- 注意:此字段可能返回 null,表示取不到有效值。
20618
- :type AckFloodThreshold: int
20619
- :param _AckFloodPktThreshold: ACK FLOOD包量阈值
20620
- 注意:此字段可能返回 null,表示取不到有效值。
20621
- :type AckFloodPktThreshold: int
20622
- :param _SynAckFloodThreshold: SYNACK FLOOD流量阈值
20623
- 注意:此字段可能返回 null,表示取不到有效值。
20624
- :type SynAckFloodThreshold: int
20625
- :param _SynAckFloodPktThreshold: SYNACK FLOOD包量阈值
20626
- 注意:此字段可能返回 null,表示取不到有效值。
20627
- :type SynAckFloodPktThreshold: int
20628
- :param _RstFloodThreshold: RST FLOOD流量阈值
20629
- 注意:此字段可能返回 null,表示取不到有效值。
20630
- :type RstFloodThreshold: int
20631
- :param _RstFloodPktThreshold: RST FLOOD包量阈值
20632
- 注意:此字段可能返回 null,表示取不到有效值。
20633
- :type RstFloodPktThreshold: int
20634
- """
20635
- self._DDoSLevel = None
20636
- self._DDoSThreshold = None
20637
- self._DDoSAI = None
20638
- self._CCEnable = None
20639
- self._CCThreshold = None
20640
- self._InstanceDetailList = None
20641
- self._ListenerCcThresholdList = None
20642
- self._SynFloodThreshold = None
20643
- self._SynFloodPktThreshold = None
20644
- self._UdpFloodThreshold = None
20645
- self._UdpFloodPktThreshold = None
20646
- self._AckFloodThreshold = None
20647
- self._AckFloodPktThreshold = None
20648
- self._SynAckFloodThreshold = None
20649
- self._SynAckFloodPktThreshold = None
20650
- self._RstFloodThreshold = None
20651
- self._RstFloodPktThreshold = None
20652
-
20653
- @property
20654
- def DDoSLevel(self):
20655
- """DDoS防护等级,取值[
20656
- low(宽松)
20657
- middle(适中)
20658
- high(严格)
20659
- ]
20660
- :rtype: str
20661
- """
20662
- return self._DDoSLevel
20663
-
20664
- @DDoSLevel.setter
20665
- def DDoSLevel(self, DDoSLevel):
20666
- self._DDoSLevel = DDoSLevel
20667
-
20668
- @property
20669
- def DDoSThreshold(self):
20670
- """DDoS清洗阈值,单位Mbps
20671
- :rtype: int
20672
- """
20673
- return self._DDoSThreshold
20674
-
20675
- @DDoSThreshold.setter
20676
- def DDoSThreshold(self, DDoSThreshold):
20677
- self._DDoSThreshold = DDoSThreshold
20678
-
20679
- @property
20680
- def DDoSAI(self):
20681
- """DDoS的AI防护开关,取值[
20682
- on(开启)
20683
- off(关闭)
20684
- ]
20685
- :rtype: str
20686
- """
20687
- return self._DDoSAI
20688
-
20689
- @DDoSAI.setter
20690
- def DDoSAI(self, DDoSAI):
20691
- self._DDoSAI = DDoSAI
20692
-
20693
- @property
20694
- def CCEnable(self):
20695
- """CC清洗开关,取值[
20696
- 0(关闭)
20697
- 1(开启)
20698
- ]
20699
- :rtype: int
20700
- """
20701
- return self._CCEnable
20702
-
20703
- @CCEnable.setter
20704
- def CCEnable(self, CCEnable):
20705
- self._CCEnable = CCEnable
20706
-
20707
- @property
20708
- def CCThreshold(self):
20709
- """CC清洗阈值,单位QPS
20710
- :rtype: int
20711
- """
20712
- return self._CCThreshold
20713
-
20714
- @CCThreshold.setter
20715
- def CCThreshold(self, CCThreshold):
20716
- self._CCThreshold = CCThreshold
20717
-
20718
- @property
20719
- def InstanceDetailList(self):
20720
- """所属的资源实例
20721
- :rtype: list of InstanceRelation
20722
- """
20723
- return self._InstanceDetailList
20724
-
20725
- @InstanceDetailList.setter
20726
- def InstanceDetailList(self, InstanceDetailList):
20727
- self._InstanceDetailList = InstanceDetailList
20728
-
20729
- @property
20730
- def ListenerCcThresholdList(self):
20731
- """域名与协议纬度的防护阈值
20732
- :rtype: list of ListenerCcThreholdConfig
20733
- """
20734
- return self._ListenerCcThresholdList
20735
-
20736
- @ListenerCcThresholdList.setter
20737
- def ListenerCcThresholdList(self, ListenerCcThresholdList):
20738
- self._ListenerCcThresholdList = ListenerCcThresholdList
20739
-
20740
- @property
20741
- def SynFloodThreshold(self):
20742
- """SYN FLOOD流量阈值
20743
- 注意:此字段可能返回 null,表示取不到有效值。
20744
- :rtype: int
20745
- """
20746
- return self._SynFloodThreshold
20747
-
20748
- @SynFloodThreshold.setter
20749
- def SynFloodThreshold(self, SynFloodThreshold):
20750
- self._SynFloodThreshold = SynFloodThreshold
20751
-
20752
- @property
20753
- def SynFloodPktThreshold(self):
20754
- """SYN FLOOD包量阈值
20755
- 注意:此字段可能返回 null,表示取不到有效值。
20756
- :rtype: int
20757
- """
20758
- return self._SynFloodPktThreshold
20759
-
20760
- @SynFloodPktThreshold.setter
20761
- def SynFloodPktThreshold(self, SynFloodPktThreshold):
20762
- self._SynFloodPktThreshold = SynFloodPktThreshold
20763
-
20764
- @property
20765
- def UdpFloodThreshold(self):
20766
- """UDP FLOOD流量阈值
20767
- 注意:此字段可能返回 null,表示取不到有效值。
20768
- :rtype: int
20769
- """
20770
- return self._UdpFloodThreshold
20771
-
20772
- @UdpFloodThreshold.setter
20773
- def UdpFloodThreshold(self, UdpFloodThreshold):
20774
- self._UdpFloodThreshold = UdpFloodThreshold
20775
-
20776
- @property
20777
- def UdpFloodPktThreshold(self):
20778
- """UDP FLOOD包量阈值
20779
- 注意:此字段可能返回 null,表示取不到有效值。
20780
- :rtype: int
20781
- """
20782
- return self._UdpFloodPktThreshold
20783
-
20784
- @UdpFloodPktThreshold.setter
20785
- def UdpFloodPktThreshold(self, UdpFloodPktThreshold):
20786
- self._UdpFloodPktThreshold = UdpFloodPktThreshold
20787
-
20788
- @property
20789
- def AckFloodThreshold(self):
20790
- """ACK FLOOD流量阈值
20791
- 注意:此字段可能返回 null,表示取不到有效值。
20792
- :rtype: int
20793
- """
20794
- return self._AckFloodThreshold
20795
-
20796
- @AckFloodThreshold.setter
20797
- def AckFloodThreshold(self, AckFloodThreshold):
20798
- self._AckFloodThreshold = AckFloodThreshold
20799
-
20800
- @property
20801
- def AckFloodPktThreshold(self):
20802
- """ACK FLOOD包量阈值
20803
- 注意:此字段可能返回 null,表示取不到有效值。
20804
- :rtype: int
20805
- """
20806
- return self._AckFloodPktThreshold
20807
-
20808
- @AckFloodPktThreshold.setter
20809
- def AckFloodPktThreshold(self, AckFloodPktThreshold):
20810
- self._AckFloodPktThreshold = AckFloodPktThreshold
20811
-
20812
- @property
20813
- def SynAckFloodThreshold(self):
20814
- """SYNACK FLOOD流量阈值
20815
- 注意:此字段可能返回 null,表示取不到有效值。
20816
- :rtype: int
20817
- """
20818
- return self._SynAckFloodThreshold
20819
-
20820
- @SynAckFloodThreshold.setter
20821
- def SynAckFloodThreshold(self, SynAckFloodThreshold):
20822
- self._SynAckFloodThreshold = SynAckFloodThreshold
20823
-
20824
- @property
20825
- def SynAckFloodPktThreshold(self):
20826
- """SYNACK FLOOD包量阈值
20827
- 注意:此字段可能返回 null,表示取不到有效值。
20828
- :rtype: int
20829
- """
20830
- return self._SynAckFloodPktThreshold
20831
-
20832
- @SynAckFloodPktThreshold.setter
20833
- def SynAckFloodPktThreshold(self, SynAckFloodPktThreshold):
20834
- self._SynAckFloodPktThreshold = SynAckFloodPktThreshold
20835
-
20836
- @property
20837
- def RstFloodThreshold(self):
20838
- """RST FLOOD流量阈值
20839
- 注意:此字段可能返回 null,表示取不到有效值。
20840
- :rtype: int
20841
- """
20842
- return self._RstFloodThreshold
20843
-
20844
- @RstFloodThreshold.setter
20845
- def RstFloodThreshold(self, RstFloodThreshold):
20846
- self._RstFloodThreshold = RstFloodThreshold
20847
-
20848
- @property
20849
- def RstFloodPktThreshold(self):
20850
- """RST FLOOD包量阈值
20851
- 注意:此字段可能返回 null,表示取不到有效值。
20852
- :rtype: int
20853
- """
20854
- return self._RstFloodPktThreshold
20855
-
20856
- @RstFloodPktThreshold.setter
20857
- def RstFloodPktThreshold(self, RstFloodPktThreshold):
20858
- self._RstFloodPktThreshold = RstFloodPktThreshold
20859
-
20860
-
20861
- def _deserialize(self, params):
20862
- self._DDoSLevel = params.get("DDoSLevel")
20863
- self._DDoSThreshold = params.get("DDoSThreshold")
20864
- self._DDoSAI = params.get("DDoSAI")
20865
- self._CCEnable = params.get("CCEnable")
20866
- self._CCThreshold = params.get("CCThreshold")
20867
- if params.get("InstanceDetailList") is not None:
20868
- self._InstanceDetailList = []
20869
- for item in params.get("InstanceDetailList"):
20870
- obj = InstanceRelation()
20871
- obj._deserialize(item)
20872
- self._InstanceDetailList.append(obj)
20873
- if params.get("ListenerCcThresholdList") is not None:
20874
- self._ListenerCcThresholdList = []
20875
- for item in params.get("ListenerCcThresholdList"):
20876
- obj = ListenerCcThreholdConfig()
20877
- obj._deserialize(item)
20878
- self._ListenerCcThresholdList.append(obj)
20879
- self._SynFloodThreshold = params.get("SynFloodThreshold")
20880
- self._SynFloodPktThreshold = params.get("SynFloodPktThreshold")
20881
- self._UdpFloodThreshold = params.get("UdpFloodThreshold")
20882
- self._UdpFloodPktThreshold = params.get("UdpFloodPktThreshold")
20883
- self._AckFloodThreshold = params.get("AckFloodThreshold")
20884
- self._AckFloodPktThreshold = params.get("AckFloodPktThreshold")
20885
- self._SynAckFloodThreshold = params.get("SynAckFloodThreshold")
20886
- self._SynAckFloodPktThreshold = params.get("SynAckFloodPktThreshold")
20887
- self._RstFloodThreshold = params.get("RstFloodThreshold")
20888
- self._RstFloodPktThreshold = params.get("RstFloodPktThreshold")
20889
- memeber_set = set(params.keys())
20890
- for name, value in vars(self).items():
20891
- property_name = name[1:]
20892
- if property_name in memeber_set:
20893
- memeber_set.remove(property_name)
20894
- if len(memeber_set) > 0:
20895
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
20896
-
20897
-
20898
-
20899
20224
  class ProtocolBlockConfig(AbstractModel):
20900
20225
  """协议封禁配置
20901
20226