tencentcloud-sdk-python 3.0.1443__py2.py3-none-any.whl → 3.0.1444__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.

Potentially problematic release.


This version of tencentcloud-sdk-python might be problematic. Click here for more details.

Files changed (38) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/batch/v20170312/models.py +2 -2
  3. tencentcloud/clb/v20180317/models.py +422 -26
  4. tencentcloud/cls/v20201016/cls_client.py +1 -1
  5. tencentcloud/cls/v20201016/models.py +148 -112
  6. tencentcloud/keewidb/v20220308/errorcodes.py +3 -0
  7. tencentcloud/keewidb/v20220308/models.py +2 -2
  8. tencentcloud/lcic/v20220817/errorcodes.py +15 -0
  9. tencentcloud/lcic/v20220817/models.py +67 -16
  10. tencentcloud/lkeap/v20240522/errorcodes.py +1 -1
  11. tencentcloud/mongodb/v20190725/models.py +4 -4
  12. tencentcloud/mps/v20190612/models.py +64 -0
  13. tencentcloud/ocr/v20181119/models.py +31 -16
  14. tencentcloud/postgres/v20170312/errorcodes.py +0 -12
  15. tencentcloud/postgres/v20170312/models.py +191 -1527
  16. tencentcloud/postgres/v20170312/postgres_client.py +0 -75
  17. tencentcloud/sts/v20180813/sts_client.py +21 -7
  18. tencentcloud/tcbr/v20220217/models.py +151 -0
  19. tencentcloud/tcss/v20201101/models.py +45 -0
  20. tencentcloud/tke/v20180525/models.py +17 -2
  21. tencentcloud/trabbit/v20230418/models.py +60 -0
  22. tencentcloud/trocket/v20230308/models.py +319 -0
  23. tencentcloud/trocket/v20230308/trocket_client.py +25 -0
  24. tencentcloud/trtc/v20190722/errorcodes.py +3 -0
  25. tencentcloud/trtc/v20190722/models.py +6 -4
  26. tencentcloud/tsf/v20180326/errorcodes.py +9 -0
  27. tencentcloud/tsf/v20180326/models.py +761 -517
  28. tencentcloud/vod/v20180717/models.py +63 -10
  29. tencentcloud/vod/v20180717/vod_client.py +1 -0
  30. tencentcloud/waf/v20180125/errorcodes.py +6 -0
  31. tencentcloud/waf/v20180125/models.py +1926 -744
  32. tencentcloud/waf/v20180125/waf_client.py +161 -0
  33. tencentcloud/wedata/v20210820/models.py +204 -0
  34. {tencentcloud_sdk_python-3.0.1443.dist-info → tencentcloud_sdk_python-3.0.1444.dist-info}/METADATA +1 -1
  35. {tencentcloud_sdk_python-3.0.1443.dist-info → tencentcloud_sdk_python-3.0.1444.dist-info}/RECORD +38 -38
  36. {tencentcloud_sdk_python-3.0.1443.dist-info → tencentcloud_sdk_python-3.0.1444.dist-info}/LICENSE +0 -0
  37. {tencentcloud_sdk_python-3.0.1443.dist-info → tencentcloud_sdk_python-3.0.1444.dist-info}/WHEEL +0 -0
  38. {tencentcloud_sdk_python-3.0.1443.dist-info → tencentcloud_sdk_python-3.0.1444.dist-info}/top_level.txt +0 -0
@@ -11100,6 +11100,85 @@ class DeleteIpAccessControlV2Response(AbstractModel):
11100
11100
  self._RequestId = params.get("RequestId")
11101
11101
 
11102
11102
 
11103
+ class DeleteOwaspRuleStatusRequest(AbstractModel):
11104
+ """DeleteOwaspRuleStatus请求参数结构体
11105
+
11106
+ """
11107
+
11108
+ def __init__(self):
11109
+ r"""
11110
+ :param _Domain: 域名
11111
+ :type Domain: str
11112
+ :param _RuleIDs: 规则ID列表
11113
+ :type RuleIDs: list of str
11114
+ """
11115
+ self._Domain = None
11116
+ self._RuleIDs = None
11117
+
11118
+ @property
11119
+ def Domain(self):
11120
+ """域名
11121
+ :rtype: str
11122
+ """
11123
+ return self._Domain
11124
+
11125
+ @Domain.setter
11126
+ def Domain(self, Domain):
11127
+ self._Domain = Domain
11128
+
11129
+ @property
11130
+ def RuleIDs(self):
11131
+ """规则ID列表
11132
+ :rtype: list of str
11133
+ """
11134
+ return self._RuleIDs
11135
+
11136
+ @RuleIDs.setter
11137
+ def RuleIDs(self, RuleIDs):
11138
+ self._RuleIDs = RuleIDs
11139
+
11140
+
11141
+ def _deserialize(self, params):
11142
+ self._Domain = params.get("Domain")
11143
+ self._RuleIDs = params.get("RuleIDs")
11144
+ memeber_set = set(params.keys())
11145
+ for name, value in vars(self).items():
11146
+ property_name = name[1:]
11147
+ if property_name in memeber_set:
11148
+ memeber_set.remove(property_name)
11149
+ if len(memeber_set) > 0:
11150
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
11151
+
11152
+
11153
+
11154
+ class DeleteOwaspRuleStatusResponse(AbstractModel):
11155
+ """DeleteOwaspRuleStatus返回参数结构体
11156
+
11157
+ """
11158
+
11159
+ def __init__(self):
11160
+ r"""
11161
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11162
+ :type RequestId: str
11163
+ """
11164
+ self._RequestId = None
11165
+
11166
+ @property
11167
+ def RequestId(self):
11168
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11169
+ :rtype: str
11170
+ """
11171
+ return self._RequestId
11172
+
11173
+ @RequestId.setter
11174
+ def RequestId(self, RequestId):
11175
+ self._RequestId = RequestId
11176
+
11177
+
11178
+ def _deserialize(self, params):
11179
+ self._RequestId = params.get("RequestId")
11180
+
11181
+
11103
11182
  class DeleteOwaspWhiteRuleRequest(AbstractModel):
11104
11183
  """DeleteOwaspWhiteRule请求参数结构体
11105
11184
 
@@ -19250,36 +19329,30 @@ class DescribeObjectsResponse(AbstractModel):
19250
19329
  self._RequestId = params.get("RequestId")
19251
19330
 
19252
19331
 
19253
- class DescribeOwaspWhiteRulesRequest(AbstractModel):
19254
- """DescribeOwaspWhiteRules请求参数结构体
19332
+ class DescribeOwaspRuleTypesRequest(AbstractModel):
19333
+ """DescribeOwaspRuleTypes请求参数结构体
19255
19334
 
19256
19335
  """
19257
19336
 
19258
19337
  def __init__(self):
19259
19338
  r"""
19260
- :param _Domain: 需要查询的域名
19339
+ :param _Domain: 查询域名
19261
19340
  :type Domain: str
19262
- :param _Offset: 分页分页,默认为0
19341
+ :param _Offset: 分页页数,默认为0
19263
19342
  :type Offset: int
19264
19343
  :param _Limit: 每页容量,默认为10
19265
19344
  :type Limit: int
19266
- :param _By: 排序的字段,支持CreateTime:新建时间、UpdateTime:修改时间
19267
- :type By: str
19268
- :param _Order: 排序方式,支持asc、desc
19269
- :type Order: str
19270
- :param _Filters: 筛选条件,支持RuleId:加白规则ID、 Name:规则名称、RuleType:加白的规则类型、Status:规则开关状态、ValidStatus:规则生效状态、TimerType:生效方式、ID:具体的加白id,根据RuleType来判断是规则id还是类型id
19345
+ :param _Filters: 筛选条件,支持 RuleId:规则ID、CveID:CVE编号、Desc:描述
19271
19346
  :type Filters: list of FiltersItemNew
19272
19347
  """
19273
19348
  self._Domain = None
19274
19349
  self._Offset = None
19275
19350
  self._Limit = None
19276
- self._By = None
19277
- self._Order = None
19278
19351
  self._Filters = None
19279
19352
 
19280
19353
  @property
19281
19354
  def Domain(self):
19282
- """需要查询的域名
19355
+ """查询域名
19283
19356
  :rtype: str
19284
19357
  """
19285
19358
  return self._Domain
@@ -19290,7 +19363,7 @@ class DescribeOwaspWhiteRulesRequest(AbstractModel):
19290
19363
 
19291
19364
  @property
19292
19365
  def Offset(self):
19293
- """分页分页,默认为0
19366
+ """分页页数,默认为0
19294
19367
  :rtype: int
19295
19368
  """
19296
19369
  return self._Offset
@@ -19310,31 +19383,9 @@ class DescribeOwaspWhiteRulesRequest(AbstractModel):
19310
19383
  def Limit(self, Limit):
19311
19384
  self._Limit = Limit
19312
19385
 
19313
- @property
19314
- def By(self):
19315
- """排序的字段,支持CreateTime:新建时间、UpdateTime:修改时间
19316
- :rtype: str
19317
- """
19318
- return self._By
19319
-
19320
- @By.setter
19321
- def By(self, By):
19322
- self._By = By
19323
-
19324
- @property
19325
- def Order(self):
19326
- """排序方式,支持asc、desc
19327
- :rtype: str
19328
- """
19329
- return self._Order
19330
-
19331
- @Order.setter
19332
- def Order(self, Order):
19333
- self._Order = Order
19334
-
19335
19386
  @property
19336
19387
  def Filters(self):
19337
- """筛选条件,支持RuleId:加白规则ID、 Name:规则名称、RuleType:加白的规则类型、Status:规则开关状态、ValidStatus:规则生效状态、TimerType:生效方式、ID:具体的加白id,根据RuleType来判断是规则id还是类型id
19388
+ """筛选条件,支持 RuleId:规则ID、CveID:CVE编号、Desc:描述
19338
19389
  :rtype: list of FiltersItemNew
19339
19390
  """
19340
19391
  return self._Filters
@@ -19348,8 +19399,6 @@ class DescribeOwaspWhiteRulesRequest(AbstractModel):
19348
19399
  self._Domain = params.get("Domain")
19349
19400
  self._Offset = params.get("Offset")
19350
19401
  self._Limit = params.get("Limit")
19351
- self._By = params.get("By")
19352
- self._Order = params.get("Order")
19353
19402
  if params.get("Filters") is not None:
19354
19403
  self._Filters = []
19355
19404
  for item in params.get("Filters"):
@@ -19366,17 +19415,17 @@ class DescribeOwaspWhiteRulesRequest(AbstractModel):
19366
19415
 
19367
19416
 
19368
19417
 
19369
- class DescribeOwaspWhiteRulesResponse(AbstractModel):
19370
- """DescribeOwaspWhiteRules返回参数结构体
19418
+ class DescribeOwaspRuleTypesResponse(AbstractModel):
19419
+ """DescribeOwaspRuleTypes返回参数结构体
19371
19420
 
19372
19421
  """
19373
19422
 
19374
19423
  def __init__(self):
19375
19424
  r"""
19376
- :param _Total: 规则总数
19425
+ :param _Total: 规则类型数量
19377
19426
  :type Total: int
19378
- :param _List: 规则白名单列表
19379
- :type List: list of OwaspWhiteRule
19427
+ :param _List: 规则类型列表及信息
19428
+ :type List: list of OwaspRuleType
19380
19429
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
19381
19430
  :type RequestId: str
19382
19431
  """
@@ -19386,7 +19435,7 @@ class DescribeOwaspWhiteRulesResponse(AbstractModel):
19386
19435
 
19387
19436
  @property
19388
19437
  def Total(self):
19389
- """规则总数
19438
+ """规则类型数量
19390
19439
  :rtype: int
19391
19440
  """
19392
19441
  return self._Total
@@ -19397,8 +19446,8 @@ class DescribeOwaspWhiteRulesResponse(AbstractModel):
19397
19446
 
19398
19447
  @property
19399
19448
  def List(self):
19400
- """规则白名单列表
19401
- :rtype: list of OwaspWhiteRule
19449
+ """规则类型列表及信息
19450
+ :rtype: list of OwaspRuleType
19402
19451
  """
19403
19452
  return self._List
19404
19453
 
@@ -19423,140 +19472,121 @@ class DescribeOwaspWhiteRulesResponse(AbstractModel):
19423
19472
  if params.get("List") is not None:
19424
19473
  self._List = []
19425
19474
  for item in params.get("List"):
19426
- obj = OwaspWhiteRule()
19475
+ obj = OwaspRuleType()
19427
19476
  obj._deserialize(item)
19428
19477
  self._List.append(obj)
19429
19478
  self._RequestId = params.get("RequestId")
19430
19479
 
19431
19480
 
19432
- class DescribePeakPointsRequest(AbstractModel):
19433
- """DescribePeakPoints请求参数结构体
19481
+ class DescribeOwaspRulesRequest(AbstractModel):
19482
+ """DescribeOwaspRules请求参数结构体
19434
19483
 
19435
19484
  """
19436
19485
 
19437
19486
  def __init__(self):
19438
19487
  r"""
19439
- :param _FromTime: 查询起始时间
19440
- :type FromTime: str
19441
- :param _ToTime: 查询终止时间
19442
- :type ToTime: str
19443
- :param _Domain: 查询的域名,如果查询所有域名数据,该参数不填写
19488
+ :param _Domain: 需要查询的域名
19444
19489
  :type Domain: str
19445
- :param _Edition: 只有两个值有效,sparta-waf,clb-waf,不传则不过滤
19446
- :type Edition: str
19447
- :param _InstanceID: WAF实例ID,不传则不过滤
19448
- :type InstanceID: str
19449
- :param _MetricName: 十二个值可选:
19450
- access-峰值qps趋势图
19451
- botAccess- bot峰值qps趋势图
19452
- down-下行峰值带宽趋势图
19453
- up-上行峰值带宽趋势图
19454
- attack-Web攻击总数趋势图
19455
- cc-CC攻击总数趋势图
19456
- bw-黑IP攻击总数趋势图
19457
- tamper-防篡改攻击总数趋势图
19458
- leak-防泄露攻击总数趋势图
19459
- acl-访问控制攻击总数趋势图
19460
- http_status-状态码各次数趋势图
19461
- wx_access-微信小程序峰值qps趋势图
19462
- :type MetricName: str
19490
+ :param _Offset: 分页页数,默认为0
19491
+ :type Offset: int
19492
+ :param _Limit: 每页容量,默认为10
19493
+ :type Limit: int
19494
+ :param _By: 排序字段,支持 RuleId, UpdateTime
19495
+ :type By: str
19496
+ :param _Order: 排序方式,支持asc、desc
19497
+ :type Order: str
19498
+ :param _Filters: 筛选条件,支持 RuleId:规则ID、TypeId:规则类型、Desc:规则描述 、CveID:CVE编号、Status:规则状态、VulLevel:威胁等级
19499
+ :type Filters: list of FiltersItemNew
19463
19500
  """
19464
- self._FromTime = None
19465
- self._ToTime = None
19466
19501
  self._Domain = None
19467
- self._Edition = None
19468
- self._InstanceID = None
19469
- self._MetricName = None
19502
+ self._Offset = None
19503
+ self._Limit = None
19504
+ self._By = None
19505
+ self._Order = None
19506
+ self._Filters = None
19470
19507
 
19471
19508
  @property
19472
- def FromTime(self):
19473
- """查询起始时间
19509
+ def Domain(self):
19510
+ """需要查询的域名
19474
19511
  :rtype: str
19475
19512
  """
19476
- return self._FromTime
19513
+ return self._Domain
19477
19514
 
19478
- @FromTime.setter
19479
- def FromTime(self, FromTime):
19480
- self._FromTime = FromTime
19515
+ @Domain.setter
19516
+ def Domain(self, Domain):
19517
+ self._Domain = Domain
19481
19518
 
19482
19519
  @property
19483
- def ToTime(self):
19484
- """查询终止时间
19485
- :rtype: str
19520
+ def Offset(self):
19521
+ """分页页数,默认为0
19522
+ :rtype: int
19486
19523
  """
19487
- return self._ToTime
19524
+ return self._Offset
19488
19525
 
19489
- @ToTime.setter
19490
- def ToTime(self, ToTime):
19491
- self._ToTime = ToTime
19526
+ @Offset.setter
19527
+ def Offset(self, Offset):
19528
+ self._Offset = Offset
19492
19529
 
19493
19530
  @property
19494
- def Domain(self):
19495
- """查询的域名,如果查询所有域名数据,该参数不填写
19496
- :rtype: str
19531
+ def Limit(self):
19532
+ """每页容量,默认为10
19533
+ :rtype: int
19497
19534
  """
19498
- return self._Domain
19535
+ return self._Limit
19499
19536
 
19500
- @Domain.setter
19501
- def Domain(self, Domain):
19502
- self._Domain = Domain
19537
+ @Limit.setter
19538
+ def Limit(self, Limit):
19539
+ self._Limit = Limit
19503
19540
 
19504
19541
  @property
19505
- def Edition(self):
19506
- """只有两个值有效,sparta-waf,clb-waf,不传则不过滤
19542
+ def By(self):
19543
+ """排序字段,支持 RuleId, UpdateTime
19507
19544
  :rtype: str
19508
19545
  """
19509
- return self._Edition
19546
+ return self._By
19510
19547
 
19511
- @Edition.setter
19512
- def Edition(self, Edition):
19513
- self._Edition = Edition
19548
+ @By.setter
19549
+ def By(self, By):
19550
+ self._By = By
19514
19551
 
19515
19552
  @property
19516
- def InstanceID(self):
19517
- """WAF实例ID,不传则不过滤
19553
+ def Order(self):
19554
+ """排序方式,支持asc、desc
19518
19555
  :rtype: str
19519
19556
  """
19520
- return self._InstanceID
19557
+ return self._Order
19521
19558
 
19522
- @InstanceID.setter
19523
- def InstanceID(self, InstanceID):
19524
- self._InstanceID = InstanceID
19559
+ @Order.setter
19560
+ def Order(self, Order):
19561
+ self._Order = Order
19525
19562
 
19526
19563
  @property
19527
- def MetricName(self):
19528
- """十二个值可选:
19529
- access-峰值qps趋势图
19530
- botAccess- bot峰值qps趋势图
19531
- down-下行峰值带宽趋势图
19532
- up-上行峰值带宽趋势图
19533
- attack-Web攻击总数趋势图
19534
- cc-CC攻击总数趋势图
19535
- bw-黑IP攻击总数趋势图
19536
- tamper-防篡改攻击总数趋势图
19537
- leak-防泄露攻击总数趋势图
19538
- acl-访问控制攻击总数趋势图
19539
- http_status-状态码各次数趋势图
19540
- wx_access-微信小程序峰值qps趋势图
19541
- :rtype: str
19564
+ def Filters(self):
19565
+ """筛选条件,支持 RuleId:规则ID、TypeId:规则类型、Desc:规则描述 、CveID:CVE编号、Status:规则状态、VulLevel:威胁等级
19566
+ :rtype: list of FiltersItemNew
19542
19567
  """
19543
- return self._MetricName
19568
+ return self._Filters
19544
19569
 
19545
- @MetricName.setter
19546
- def MetricName(self, MetricName):
19547
- self._MetricName = MetricName
19570
+ @Filters.setter
19571
+ def Filters(self, Filters):
19572
+ self._Filters = Filters
19548
19573
 
19549
19574
 
19550
19575
  def _deserialize(self, params):
19551
- self._FromTime = params.get("FromTime")
19552
- self._ToTime = params.get("ToTime")
19553
19576
  self._Domain = params.get("Domain")
19554
- self._Edition = params.get("Edition")
19555
- self._InstanceID = params.get("InstanceID")
19556
- self._MetricName = params.get("MetricName")
19557
- memeber_set = set(params.keys())
19558
- for name, value in vars(self).items():
19559
- property_name = name[1:]
19577
+ self._Offset = params.get("Offset")
19578
+ self._Limit = params.get("Limit")
19579
+ self._By = params.get("By")
19580
+ self._Order = params.get("Order")
19581
+ if params.get("Filters") is not None:
19582
+ self._Filters = []
19583
+ for item in params.get("Filters"):
19584
+ obj = FiltersItemNew()
19585
+ obj._deserialize(item)
19586
+ self._Filters.append(obj)
19587
+ memeber_set = set(params.keys())
19588
+ for name, value in vars(self).items():
19589
+ property_name = name[1:]
19560
19590
  if property_name in memeber_set:
19561
19591
  memeber_set.remove(property_name)
19562
19592
  if len(memeber_set) > 0:
@@ -19564,31 +19594,45 @@ wx_access-微信小程序峰值qps趋势图
19564
19594
 
19565
19595
 
19566
19596
 
19567
- class DescribePeakPointsResponse(AbstractModel):
19568
- """DescribePeakPoints返回参数结构体
19597
+ class DescribeOwaspRulesResponse(AbstractModel):
19598
+ """DescribeOwaspRules返回参数结构体
19569
19599
 
19570
19600
  """
19571
19601
 
19572
19602
  def __init__(self):
19573
19603
  r"""
19574
- :param _Points: 数据点
19575
- :type Points: list of PeakPointsItem
19604
+ :param _Total: 规则总数
19605
+ :type Total: int
19606
+ :param _List: 规则列表
19607
+ :type List: list of OwaspRule
19576
19608
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
19577
19609
  :type RequestId: str
19578
19610
  """
19579
- self._Points = None
19611
+ self._Total = None
19612
+ self._List = None
19580
19613
  self._RequestId = None
19581
19614
 
19582
19615
  @property
19583
- def Points(self):
19584
- """数据点
19585
- :rtype: list of PeakPointsItem
19616
+ def Total(self):
19617
+ """规则总数
19618
+ :rtype: int
19586
19619
  """
19587
- return self._Points
19620
+ return self._Total
19588
19621
 
19589
- @Points.setter
19590
- def Points(self, Points):
19591
- self._Points = Points
19622
+ @Total.setter
19623
+ def Total(self, Total):
19624
+ self._Total = Total
19625
+
19626
+ @property
19627
+ def List(self):
19628
+ """规则列表
19629
+ :rtype: list of OwaspRule
19630
+ """
19631
+ return self._List
19632
+
19633
+ @List.setter
19634
+ def List(self, List):
19635
+ self._List = List
19592
19636
 
19593
19637
  @property
19594
19638
  def RequestId(self):
@@ -19603,126 +19647,122 @@ class DescribePeakPointsResponse(AbstractModel):
19603
19647
 
19604
19648
 
19605
19649
  def _deserialize(self, params):
19606
- if params.get("Points") is not None:
19607
- self._Points = []
19608
- for item in params.get("Points"):
19609
- obj = PeakPointsItem()
19650
+ self._Total = params.get("Total")
19651
+ if params.get("List") is not None:
19652
+ self._List = []
19653
+ for item in params.get("List"):
19654
+ obj = OwaspRule()
19610
19655
  obj._deserialize(item)
19611
- self._Points.append(obj)
19656
+ self._List.append(obj)
19612
19657
  self._RequestId = params.get("RequestId")
19613
19658
 
19614
19659
 
19615
- class DescribePeakValueRequest(AbstractModel):
19616
- """DescribePeakValue请求参数结构体
19660
+ class DescribeOwaspWhiteRulesRequest(AbstractModel):
19661
+ """DescribeOwaspWhiteRules请求参数结构体
19617
19662
 
19618
19663
  """
19619
19664
 
19620
19665
  def __init__(self):
19621
19666
  r"""
19622
- :param _FromTime: 查询起始时间
19623
- :type FromTime: str
19624
- :param _ToTime: 查询结束时间
19625
- :type ToTime: str
19626
- :param _Domain: 需要查询的域名,当前用户所有域名可以不传
19667
+ :param _Domain: 需要查询的域名
19627
19668
  :type Domain: str
19628
- :param _Edition: 只有两个值有效,sparta-waf,clb-waf,不传则不过滤
19629
- :type Edition: str
19630
- :param _InstanceID: WAF实例ID,不传则不过滤
19631
- :type InstanceID: str
19632
- :param _MetricName: 五个值可选:
19633
- access-峰值qps
19634
- down-下行峰值带宽
19635
- up-上行峰值带宽
19636
- attack-Web攻击总数
19637
- cc-CC攻击总数趋势图
19638
- :type MetricName: str
19669
+ :param _Offset: 分页分页,默认为0
19670
+ :type Offset: int
19671
+ :param _Limit: 每页容量,默认为10
19672
+ :type Limit: int
19673
+ :param _By: 排序的字段,支持CreateTime:新建时间、UpdateTime:修改时间
19674
+ :type By: str
19675
+ :param _Order: 排序方式,支持asc、desc
19676
+ :type Order: str
19677
+ :param _Filters: 筛选条件,支持RuleId:加白规则ID、 Name:规则名称、RuleType:加白的规则类型、Status:规则开关状态、ValidStatus:规则生效状态、TimerType:生效方式、ID:具体的加白id,根据RuleType来判断是规则id还是类型id
19678
+ :type Filters: list of FiltersItemNew
19639
19679
  """
19640
- self._FromTime = None
19641
- self._ToTime = None
19642
19680
  self._Domain = None
19643
- self._Edition = None
19644
- self._InstanceID = None
19645
- self._MetricName = None
19681
+ self._Offset = None
19682
+ self._Limit = None
19683
+ self._By = None
19684
+ self._Order = None
19685
+ self._Filters = None
19646
19686
 
19647
19687
  @property
19648
- def FromTime(self):
19649
- """查询起始时间
19688
+ def Domain(self):
19689
+ """需要查询的域名
19650
19690
  :rtype: str
19651
19691
  """
19652
- return self._FromTime
19692
+ return self._Domain
19653
19693
 
19654
- @FromTime.setter
19655
- def FromTime(self, FromTime):
19656
- self._FromTime = FromTime
19694
+ @Domain.setter
19695
+ def Domain(self, Domain):
19696
+ self._Domain = Domain
19657
19697
 
19658
19698
  @property
19659
- def ToTime(self):
19660
- """查询结束时间
19661
- :rtype: str
19699
+ def Offset(self):
19700
+ """分页分页,默认为0
19701
+ :rtype: int
19662
19702
  """
19663
- return self._ToTime
19703
+ return self._Offset
19664
19704
 
19665
- @ToTime.setter
19666
- def ToTime(self, ToTime):
19667
- self._ToTime = ToTime
19705
+ @Offset.setter
19706
+ def Offset(self, Offset):
19707
+ self._Offset = Offset
19668
19708
 
19669
19709
  @property
19670
- def Domain(self):
19671
- """需要查询的域名,当前用户所有域名可以不传
19672
- :rtype: str
19710
+ def Limit(self):
19711
+ """每页容量,默认为10
19712
+ :rtype: int
19673
19713
  """
19674
- return self._Domain
19714
+ return self._Limit
19675
19715
 
19676
- @Domain.setter
19677
- def Domain(self, Domain):
19678
- self._Domain = Domain
19716
+ @Limit.setter
19717
+ def Limit(self, Limit):
19718
+ self._Limit = Limit
19679
19719
 
19680
19720
  @property
19681
- def Edition(self):
19682
- """只有两个值有效,sparta-waf,clb-waf,不传则不过滤
19721
+ def By(self):
19722
+ """排序的字段,支持CreateTime:新建时间、UpdateTime:修改时间
19683
19723
  :rtype: str
19684
19724
  """
19685
- return self._Edition
19725
+ return self._By
19686
19726
 
19687
- @Edition.setter
19688
- def Edition(self, Edition):
19689
- self._Edition = Edition
19727
+ @By.setter
19728
+ def By(self, By):
19729
+ self._By = By
19690
19730
 
19691
19731
  @property
19692
- def InstanceID(self):
19693
- """WAF实例ID,不传则不过滤
19732
+ def Order(self):
19733
+ """排序方式,支持asc、desc
19694
19734
  :rtype: str
19695
19735
  """
19696
- return self._InstanceID
19736
+ return self._Order
19697
19737
 
19698
- @InstanceID.setter
19699
- def InstanceID(self, InstanceID):
19700
- self._InstanceID = InstanceID
19738
+ @Order.setter
19739
+ def Order(self, Order):
19740
+ self._Order = Order
19701
19741
 
19702
19742
  @property
19703
- def MetricName(self):
19704
- """五个值可选:
19705
- access-峰值qps
19706
- down-下行峰值带宽
19707
- up-上行峰值带宽
19708
- attack-Web攻击总数
19709
- cc-CC攻击总数趋势图
19710
- :rtype: str
19743
+ def Filters(self):
19744
+ """筛选条件,支持RuleId:加白规则ID、 Name:规则名称、RuleType:加白的规则类型、Status:规则开关状态、ValidStatus:规则生效状态、TimerType:生效方式、ID:具体的加白id,根据RuleType来判断是规则id还是类型id
19745
+ :rtype: list of FiltersItemNew
19711
19746
  """
19712
- return self._MetricName
19747
+ return self._Filters
19713
19748
 
19714
- @MetricName.setter
19715
- def MetricName(self, MetricName):
19716
- self._MetricName = MetricName
19749
+ @Filters.setter
19750
+ def Filters(self, Filters):
19751
+ self._Filters = Filters
19717
19752
 
19718
19753
 
19719
19754
  def _deserialize(self, params):
19720
- self._FromTime = params.get("FromTime")
19721
- self._ToTime = params.get("ToTime")
19722
19755
  self._Domain = params.get("Domain")
19723
- self._Edition = params.get("Edition")
19724
- self._InstanceID = params.get("InstanceID")
19725
- self._MetricName = params.get("MetricName")
19756
+ self._Offset = params.get("Offset")
19757
+ self._Limit = params.get("Limit")
19758
+ self._By = params.get("By")
19759
+ self._Order = params.get("Order")
19760
+ if params.get("Filters") is not None:
19761
+ self._Filters = []
19762
+ for item in params.get("Filters"):
19763
+ obj = FiltersItemNew()
19764
+ obj._deserialize(item)
19765
+ self._Filters.append(obj)
19726
19766
  memeber_set = set(params.keys())
19727
19767
  for name, value in vars(self).items():
19728
19768
  property_name = name[1:]
@@ -19733,94 +19773,52 @@ cc-CC攻击总数趋势图
19733
19773
 
19734
19774
 
19735
19775
 
19736
- class DescribePeakValueResponse(AbstractModel):
19737
- """DescribePeakValue返回参数结构体
19776
+ class DescribeOwaspWhiteRulesResponse(AbstractModel):
19777
+ """DescribeOwaspWhiteRules返回参数结构体
19738
19778
 
19739
19779
  """
19740
19780
 
19741
19781
  def __init__(self):
19742
19782
  r"""
19743
- :param _Access: QPS峰值
19744
- :type Access: int
19745
- :param _Up: 上行带宽峰值,单位B
19746
- :type Up: int
19747
- :param _Down: 下行带宽峰值,单位B
19748
- :type Down: int
19749
- :param _Attack: Web攻击总数
19750
- :type Attack: int
19751
- :param _Cc: CC攻击总数
19752
- :type Cc: int
19783
+ :param _Total: 规则总数
19784
+ :type Total: int
19785
+ :param _List: 规则白名单列表
19786
+ :type List: list of OwaspWhiteRule
19753
19787
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
19754
19788
  :type RequestId: str
19755
19789
  """
19756
- self._Access = None
19757
- self._Up = None
19758
- self._Down = None
19759
- self._Attack = None
19760
- self._Cc = None
19790
+ self._Total = None
19791
+ self._List = None
19761
19792
  self._RequestId = None
19762
19793
 
19763
19794
  @property
19764
- def Access(self):
19765
- """QPS峰值
19795
+ def Total(self):
19796
+ """规则总数
19766
19797
  :rtype: int
19767
19798
  """
19768
- return self._Access
19799
+ return self._Total
19769
19800
 
19770
- @Access.setter
19771
- def Access(self, Access):
19772
- self._Access = Access
19801
+ @Total.setter
19802
+ def Total(self, Total):
19803
+ self._Total = Total
19773
19804
 
19774
19805
  @property
19775
- def Up(self):
19776
- """上行带宽峰值,单位B
19777
- :rtype: int
19806
+ def List(self):
19807
+ """规则白名单列表
19808
+ :rtype: list of OwaspWhiteRule
19778
19809
  """
19779
- return self._Up
19810
+ return self._List
19780
19811
 
19781
- @Up.setter
19782
- def Up(self, Up):
19783
- self._Up = Up
19812
+ @List.setter
19813
+ def List(self, List):
19814
+ self._List = List
19784
19815
 
19785
19816
  @property
19786
- def Down(self):
19787
- """下行带宽峰值,单位B
19788
- :rtype: int
19817
+ def RequestId(self):
19818
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
19819
+ :rtype: str
19789
19820
  """
19790
- return self._Down
19791
-
19792
- @Down.setter
19793
- def Down(self, Down):
19794
- self._Down = Down
19795
-
19796
- @property
19797
- def Attack(self):
19798
- """Web攻击总数
19799
- :rtype: int
19800
- """
19801
- return self._Attack
19802
-
19803
- @Attack.setter
19804
- def Attack(self, Attack):
19805
- self._Attack = Attack
19806
-
19807
- @property
19808
- def Cc(self):
19809
- """CC攻击总数
19810
- :rtype: int
19811
- """
19812
- return self._Cc
19813
-
19814
- @Cc.setter
19815
- def Cc(self, Cc):
19816
- self._Cc = Cc
19817
-
19818
- @property
19819
- def RequestId(self):
19820
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
19821
- :rtype: str
19822
- """
19823
- return self._RequestId
19821
+ return self._RequestId
19824
19822
 
19825
19823
  @RequestId.setter
19826
19824
  def RequestId(self, RequestId):
@@ -19828,32 +19826,80 @@ class DescribePeakValueResponse(AbstractModel):
19828
19826
 
19829
19827
 
19830
19828
  def _deserialize(self, params):
19831
- self._Access = params.get("Access")
19832
- self._Up = params.get("Up")
19833
- self._Down = params.get("Down")
19834
- self._Attack = params.get("Attack")
19835
- self._Cc = params.get("Cc")
19829
+ self._Total = params.get("Total")
19830
+ if params.get("List") is not None:
19831
+ self._List = []
19832
+ for item in params.get("List"):
19833
+ obj = OwaspWhiteRule()
19834
+ obj._deserialize(item)
19835
+ self._List.append(obj)
19836
19836
  self._RequestId = params.get("RequestId")
19837
19837
 
19838
19838
 
19839
- class DescribePolicyStatusRequest(AbstractModel):
19840
- """DescribePolicyStatus请求参数结构体
19839
+ class DescribePeakPointsRequest(AbstractModel):
19840
+ """DescribePeakPoints请求参数结构体
19841
19841
 
19842
19842
  """
19843
19843
 
19844
19844
  def __init__(self):
19845
19845
  r"""
19846
- :param _Domain: 域名
19846
+ :param _FromTime: 查询起始时间
19847
+ :type FromTime: str
19848
+ :param _ToTime: 查询终止时间
19849
+ :type ToTime: str
19850
+ :param _Domain: 查询的域名,如果查询所有域名数据,该参数不填写
19847
19851
  :type Domain: str
19848
- :param _Edition: clb-waf或者saas-waf
19852
+ :param _Edition: 只有两个值有效,sparta-waf,clb-waf,不传则不过滤
19849
19853
  :type Edition: str
19854
+ :param _InstanceID: WAF实例ID,不传则不过滤
19855
+ :type InstanceID: str
19856
+ :param _MetricName: 十二个值可选:
19857
+ access-峰值qps趋势图
19858
+ botAccess- bot峰值qps趋势图
19859
+ down-下行峰值带宽趋势图
19860
+ up-上行峰值带宽趋势图
19861
+ attack-Web攻击总数趋势图
19862
+ cc-CC攻击总数趋势图
19863
+ bw-黑IP攻击总数趋势图
19864
+ tamper-防篡改攻击总数趋势图
19865
+ leak-防泄露攻击总数趋势图
19866
+ acl-访问控制攻击总数趋势图
19867
+ http_status-状态码各次数趋势图
19868
+ wx_access-微信小程序峰值qps趋势图
19869
+ :type MetricName: str
19850
19870
  """
19871
+ self._FromTime = None
19872
+ self._ToTime = None
19851
19873
  self._Domain = None
19852
19874
  self._Edition = None
19875
+ self._InstanceID = None
19876
+ self._MetricName = None
19877
+
19878
+ @property
19879
+ def FromTime(self):
19880
+ """查询起始时间
19881
+ :rtype: str
19882
+ """
19883
+ return self._FromTime
19884
+
19885
+ @FromTime.setter
19886
+ def FromTime(self, FromTime):
19887
+ self._FromTime = FromTime
19888
+
19889
+ @property
19890
+ def ToTime(self):
19891
+ """查询终止时间
19892
+ :rtype: str
19893
+ """
19894
+ return self._ToTime
19895
+
19896
+ @ToTime.setter
19897
+ def ToTime(self, ToTime):
19898
+ self._ToTime = ToTime
19853
19899
 
19854
19900
  @property
19855
19901
  def Domain(self):
19856
- """域名
19902
+ """查询的域名,如果查询所有域名数据,该参数不填写
19857
19903
  :rtype: str
19858
19904
  """
19859
19905
  return self._Domain
@@ -19864,7 +19910,7 @@ class DescribePolicyStatusRequest(AbstractModel):
19864
19910
 
19865
19911
  @property
19866
19912
  def Edition(self):
19867
- """clb-waf或者saas-waf
19913
+ """只有两个值有效,sparta-waf,clb-waf,不传则不过滤
19868
19914
  :rtype: str
19869
19915
  """
19870
19916
  return self._Edition
@@ -19873,10 +19919,48 @@ class DescribePolicyStatusRequest(AbstractModel):
19873
19919
  def Edition(self, Edition):
19874
19920
  self._Edition = Edition
19875
19921
 
19922
+ @property
19923
+ def InstanceID(self):
19924
+ """WAF实例ID,不传则不过滤
19925
+ :rtype: str
19926
+ """
19927
+ return self._InstanceID
19928
+
19929
+ @InstanceID.setter
19930
+ def InstanceID(self, InstanceID):
19931
+ self._InstanceID = InstanceID
19932
+
19933
+ @property
19934
+ def MetricName(self):
19935
+ """十二个值可选:
19936
+ access-峰值qps趋势图
19937
+ botAccess- bot峰值qps趋势图
19938
+ down-下行峰值带宽趋势图
19939
+ up-上行峰值带宽趋势图
19940
+ attack-Web攻击总数趋势图
19941
+ cc-CC攻击总数趋势图
19942
+ bw-黑IP攻击总数趋势图
19943
+ tamper-防篡改攻击总数趋势图
19944
+ leak-防泄露攻击总数趋势图
19945
+ acl-访问控制攻击总数趋势图
19946
+ http_status-状态码各次数趋势图
19947
+ wx_access-微信小程序峰值qps趋势图
19948
+ :rtype: str
19949
+ """
19950
+ return self._MetricName
19951
+
19952
+ @MetricName.setter
19953
+ def MetricName(self, MetricName):
19954
+ self._MetricName = MetricName
19955
+
19876
19956
 
19877
19957
  def _deserialize(self, params):
19958
+ self._FromTime = params.get("FromTime")
19959
+ self._ToTime = params.get("ToTime")
19878
19960
  self._Domain = params.get("Domain")
19879
19961
  self._Edition = params.get("Edition")
19962
+ self._InstanceID = params.get("InstanceID")
19963
+ self._MetricName = params.get("MetricName")
19880
19964
  memeber_set = set(params.keys())
19881
19965
  for name, value in vars(self).items():
19882
19966
  property_name = name[1:]
@@ -19887,45 +19971,31 @@ class DescribePolicyStatusRequest(AbstractModel):
19887
19971
 
19888
19972
 
19889
19973
 
19890
- class DescribePolicyStatusResponse(AbstractModel):
19891
- """DescribePolicyStatus返回参数结构体
19974
+ class DescribePeakPointsResponse(AbstractModel):
19975
+ """DescribePeakPoints返回参数结构体
19892
19976
 
19893
19977
  """
19894
19978
 
19895
19979
  def __init__(self):
19896
19980
  r"""
19897
- :param _InstanceId: 实例ID
19898
- :type InstanceId: str
19899
- :param _Status: 防护状态
19900
- :type Status: int
19981
+ :param _Points: 数据点
19982
+ :type Points: list of PeakPointsItem
19901
19983
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
19902
19984
  :type RequestId: str
19903
19985
  """
19904
- self._InstanceId = None
19905
- self._Status = None
19986
+ self._Points = None
19906
19987
  self._RequestId = None
19907
19988
 
19908
19989
  @property
19909
- def InstanceId(self):
19910
- """实例ID
19911
- :rtype: str
19912
- """
19913
- return self._InstanceId
19914
-
19915
- @InstanceId.setter
19916
- def InstanceId(self, InstanceId):
19917
- self._InstanceId = InstanceId
19918
-
19919
- @property
19920
- def Status(self):
19921
- """防护状态
19922
- :rtype: int
19990
+ def Points(self):
19991
+ """数据点
19992
+ :rtype: list of PeakPointsItem
19923
19993
  """
19924
- return self._Status
19994
+ return self._Points
19925
19995
 
19926
- @Status.setter
19927
- def Status(self, Status):
19928
- self._Status = Status
19996
+ @Points.setter
19997
+ def Points(self, Points):
19998
+ self._Points = Points
19929
19999
 
19930
20000
  @property
19931
20001
  def RequestId(self):
@@ -19940,40 +20010,83 @@ class DescribePolicyStatusResponse(AbstractModel):
19940
20010
 
19941
20011
 
19942
20012
  def _deserialize(self, params):
19943
- self._InstanceId = params.get("InstanceId")
19944
- self._Status = params.get("Status")
20013
+ if params.get("Points") is not None:
20014
+ self._Points = []
20015
+ for item in params.get("Points"):
20016
+ obj = PeakPointsItem()
20017
+ obj._deserialize(item)
20018
+ self._Points.append(obj)
19945
20019
  self._RequestId = params.get("RequestId")
19946
20020
 
19947
20021
 
19948
- class DescribePortsRequest(AbstractModel):
19949
- """DescribePorts请求参数结构体
20022
+ class DescribePeakValueRequest(AbstractModel):
20023
+ """DescribePeakValue请求参数结构体
19950
20024
 
19951
20025
  """
19952
20026
 
19953
20027
  def __init__(self):
19954
20028
  r"""
19955
- :param _InstanceID: 实例ID
19956
- :type InstanceID: str
19957
- :param _Edition: 实例类型
20029
+ :param _FromTime: 查询起始时间
20030
+ :type FromTime: str
20031
+ :param _ToTime: 查询结束时间
20032
+ :type ToTime: str
20033
+ :param _Domain: 需要查询的域名,当前用户所有域名可以不传
20034
+ :type Domain: str
20035
+ :param _Edition: 只有两个值有效,sparta-waf,clb-waf,不传则不过滤
19958
20036
  :type Edition: str
20037
+ :param _InstanceID: WAF实例ID,不传则不过滤
20038
+ :type InstanceID: str
20039
+ :param _MetricName: 五个值可选:
20040
+ access-峰值qps
20041
+ down-下行峰值带宽
20042
+ up-上行峰值带宽
20043
+ attack-Web攻击总数
20044
+ cc-CC攻击总数趋势图
20045
+ :type MetricName: str
19959
20046
  """
19960
- self._InstanceID = None
20047
+ self._FromTime = None
20048
+ self._ToTime = None
20049
+ self._Domain = None
19961
20050
  self._Edition = None
20051
+ self._InstanceID = None
20052
+ self._MetricName = None
19962
20053
 
19963
20054
  @property
19964
- def InstanceID(self):
19965
- """实例ID
20055
+ def FromTime(self):
20056
+ """查询起始时间
19966
20057
  :rtype: str
19967
20058
  """
19968
- return self._InstanceID
20059
+ return self._FromTime
19969
20060
 
19970
- @InstanceID.setter
19971
- def InstanceID(self, InstanceID):
19972
- self._InstanceID = InstanceID
20061
+ @FromTime.setter
20062
+ def FromTime(self, FromTime):
20063
+ self._FromTime = FromTime
20064
+
20065
+ @property
20066
+ def ToTime(self):
20067
+ """查询结束时间
20068
+ :rtype: str
20069
+ """
20070
+ return self._ToTime
20071
+
20072
+ @ToTime.setter
20073
+ def ToTime(self, ToTime):
20074
+ self._ToTime = ToTime
20075
+
20076
+ @property
20077
+ def Domain(self):
20078
+ """需要查询的域名,当前用户所有域名可以不传
20079
+ :rtype: str
20080
+ """
20081
+ return self._Domain
20082
+
20083
+ @Domain.setter
20084
+ def Domain(self, Domain):
20085
+ self._Domain = Domain
19973
20086
 
19974
20087
  @property
19975
20088
  def Edition(self):
19976
- """实例类型
20089
+ """只有两个值有效,sparta-waf,clb-waf,不传则不过滤
19977
20090
  :rtype: str
19978
20091
  """
19979
20092
  return self._Edition
@@ -19982,10 +20095,41 @@ class DescribePortsRequest(AbstractModel):
19982
20095
  def Edition(self, Edition):
19983
20096
  self._Edition = Edition
19984
20097
 
20098
+ @property
20099
+ def InstanceID(self):
20100
+ """WAF实例ID,不传则不过滤
20101
+ :rtype: str
20102
+ """
20103
+ return self._InstanceID
20104
+
20105
+ @InstanceID.setter
20106
+ def InstanceID(self, InstanceID):
20107
+ self._InstanceID = InstanceID
20108
+
20109
+ @property
20110
+ def MetricName(self):
20111
+ """五个值可选:
20112
+ access-峰值qps
20113
+ down-下行峰值带宽
20114
+ up-上行峰值带宽
20115
+ attack-Web攻击总数
20116
+ cc-CC攻击总数趋势图
20117
+ :rtype: str
20118
+ """
20119
+ return self._MetricName
20120
+
20121
+ @MetricName.setter
20122
+ def MetricName(self, MetricName):
20123
+ self._MetricName = MetricName
20124
+
19985
20125
 
19986
20126
  def _deserialize(self, params):
19987
- self._InstanceID = params.get("InstanceID")
20127
+ self._FromTime = params.get("FromTime")
20128
+ self._ToTime = params.get("ToTime")
20129
+ self._Domain = params.get("Domain")
19988
20130
  self._Edition = params.get("Edition")
20131
+ self._InstanceID = params.get("InstanceID")
20132
+ self._MetricName = params.get("MetricName")
19989
20133
  memeber_set = set(params.keys())
19990
20134
  for name, value in vars(self).items():
19991
20135
  property_name = name[1:]
@@ -19996,45 +20140,87 @@ class DescribePortsRequest(AbstractModel):
19996
20140
 
19997
20141
 
19998
20142
 
19999
- class DescribePortsResponse(AbstractModel):
20000
- """DescribePorts返回参数结构体
20143
+ class DescribePeakValueResponse(AbstractModel):
20144
+ """DescribePeakValue返回参数结构体
20001
20145
 
20002
20146
  """
20003
20147
 
20004
20148
  def __init__(self):
20005
20149
  r"""
20006
- :param _HttpPorts: http端口列表
20007
- :type HttpPorts: list of str
20008
- :param _HttpsPorts: https端口列表
20009
- :type HttpsPorts: list of str
20150
+ :param _Access: QPS峰值
20151
+ :type Access: int
20152
+ :param _Up: 上行带宽峰值,单位B
20153
+ :type Up: int
20154
+ :param _Down: 下行带宽峰值,单位B
20155
+ :type Down: int
20156
+ :param _Attack: Web攻击总数
20157
+ :type Attack: int
20158
+ :param _Cc: CC攻击总数
20159
+ :type Cc: int
20010
20160
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20011
20161
  :type RequestId: str
20012
20162
  """
20013
- self._HttpPorts = None
20014
- self._HttpsPorts = None
20163
+ self._Access = None
20164
+ self._Up = None
20165
+ self._Down = None
20166
+ self._Attack = None
20167
+ self._Cc = None
20015
20168
  self._RequestId = None
20016
20169
 
20017
20170
  @property
20018
- def HttpPorts(self):
20019
- """http端口列表
20020
- :rtype: list of str
20171
+ def Access(self):
20172
+ """QPS峰值
20173
+ :rtype: int
20021
20174
  """
20022
- return self._HttpPorts
20175
+ return self._Access
20023
20176
 
20024
- @HttpPorts.setter
20025
- def HttpPorts(self, HttpPorts):
20026
- self._HttpPorts = HttpPorts
20177
+ @Access.setter
20178
+ def Access(self, Access):
20179
+ self._Access = Access
20027
20180
 
20028
20181
  @property
20029
- def HttpsPorts(self):
20030
- """https端口列表
20031
- :rtype: list of str
20182
+ def Up(self):
20183
+ """上行带宽峰值,单位B
20184
+ :rtype: int
20032
20185
  """
20033
- return self._HttpsPorts
20186
+ return self._Up
20034
20187
 
20035
- @HttpsPorts.setter
20036
- def HttpsPorts(self, HttpsPorts):
20037
- self._HttpsPorts = HttpsPorts
20188
+ @Up.setter
20189
+ def Up(self, Up):
20190
+ self._Up = Up
20191
+
20192
+ @property
20193
+ def Down(self):
20194
+ """下行带宽峰值,单位B
20195
+ :rtype: int
20196
+ """
20197
+ return self._Down
20198
+
20199
+ @Down.setter
20200
+ def Down(self, Down):
20201
+ self._Down = Down
20202
+
20203
+ @property
20204
+ def Attack(self):
20205
+ """Web攻击总数
20206
+ :rtype: int
20207
+ """
20208
+ return self._Attack
20209
+
20210
+ @Attack.setter
20211
+ def Attack(self, Attack):
20212
+ self._Attack = Attack
20213
+
20214
+ @property
20215
+ def Cc(self):
20216
+ """CC攻击总数
20217
+ :rtype: int
20218
+ """
20219
+ return self._Cc
20220
+
20221
+ @Cc.setter
20222
+ def Cc(self, Cc):
20223
+ self._Cc = Cc
20038
20224
 
20039
20225
  @property
20040
20226
  def RequestId(self):
@@ -20049,37 +20235,55 @@ class DescribePortsResponse(AbstractModel):
20049
20235
 
20050
20236
 
20051
20237
  def _deserialize(self, params):
20052
- self._HttpPorts = params.get("HttpPorts")
20053
- self._HttpsPorts = params.get("HttpsPorts")
20238
+ self._Access = params.get("Access")
20239
+ self._Up = params.get("Up")
20240
+ self._Down = params.get("Down")
20241
+ self._Attack = params.get("Attack")
20242
+ self._Cc = params.get("Cc")
20054
20243
  self._RequestId = params.get("RequestId")
20055
20244
 
20056
20245
 
20057
- class DescribePostCKafkaFlowsRequest(AbstractModel):
20058
- """DescribePostCKafkaFlows请求参数结构体
20246
+ class DescribePolicyStatusRequest(AbstractModel):
20247
+ """DescribePolicyStatus请求参数结构体
20059
20248
 
20060
20249
  """
20061
20250
 
20062
20251
  def __init__(self):
20063
20252
  r"""
20064
- :param _LogType: 1-访问日志,2-攻击日志,默认为访问日志。
20065
- :type LogType: int
20253
+ :param _Domain: 域名
20254
+ :type Domain: str
20255
+ :param _Edition: clb-waf或者saas-waf
20256
+ :type Edition: str
20066
20257
  """
20067
- self._LogType = None
20258
+ self._Domain = None
20259
+ self._Edition = None
20068
20260
 
20069
20261
  @property
20070
- def LogType(self):
20071
- """1-访问日志,2-攻击日志,默认为访问日志。
20072
- :rtype: int
20262
+ def Domain(self):
20263
+ """域名
20264
+ :rtype: str
20073
20265
  """
20074
- return self._LogType
20266
+ return self._Domain
20075
20267
 
20076
- @LogType.setter
20077
- def LogType(self, LogType):
20078
- self._LogType = LogType
20268
+ @Domain.setter
20269
+ def Domain(self, Domain):
20270
+ self._Domain = Domain
20271
+
20272
+ @property
20273
+ def Edition(self):
20274
+ """clb-waf或者saas-waf
20275
+ :rtype: str
20276
+ """
20277
+ return self._Edition
20278
+
20279
+ @Edition.setter
20280
+ def Edition(self, Edition):
20281
+ self._Edition = Edition
20079
20282
 
20080
20283
 
20081
20284
  def _deserialize(self, params):
20082
- self._LogType = params.get("LogType")
20285
+ self._Domain = params.get("Domain")
20286
+ self._Edition = params.get("Edition")
20083
20287
  memeber_set = set(params.keys())
20084
20288
  for name, value in vars(self).items():
20085
20289
  property_name = name[1:]
@@ -20090,31 +20294,45 @@ class DescribePostCKafkaFlowsRequest(AbstractModel):
20090
20294
 
20091
20295
 
20092
20296
 
20093
- class DescribePostCKafkaFlowsResponse(AbstractModel):
20094
- """DescribePostCKafkaFlows返回参数结构体
20297
+ class DescribePolicyStatusResponse(AbstractModel):
20298
+ """DescribePolicyStatus返回参数结构体
20095
20299
 
20096
20300
  """
20097
20301
 
20098
20302
  def __init__(self):
20099
20303
  r"""
20100
- :param _PostCKafkaFlows: 客户的投递流列表
20101
- :type PostCKafkaFlows: list of PostCKafkaFlowInfo
20304
+ :param _InstanceId: 实例ID
20305
+ :type InstanceId: str
20306
+ :param _Status: 防护状态
20307
+ :type Status: int
20102
20308
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20103
20309
  :type RequestId: str
20104
20310
  """
20105
- self._PostCKafkaFlows = None
20311
+ self._InstanceId = None
20312
+ self._Status = None
20106
20313
  self._RequestId = None
20107
20314
 
20108
20315
  @property
20109
- def PostCKafkaFlows(self):
20110
- """客户的投递流列表
20111
- :rtype: list of PostCKafkaFlowInfo
20316
+ def InstanceId(self):
20317
+ """实例ID
20318
+ :rtype: str
20112
20319
  """
20113
- return self._PostCKafkaFlows
20320
+ return self._InstanceId
20114
20321
 
20115
- @PostCKafkaFlows.setter
20116
- def PostCKafkaFlows(self, PostCKafkaFlows):
20117
- self._PostCKafkaFlows = PostCKafkaFlows
20322
+ @InstanceId.setter
20323
+ def InstanceId(self, InstanceId):
20324
+ self._InstanceId = InstanceId
20325
+
20326
+ @property
20327
+ def Status(self):
20328
+ """防护状态
20329
+ :rtype: int
20330
+ """
20331
+ return self._Status
20332
+
20333
+ @Status.setter
20334
+ def Status(self, Status):
20335
+ self._Status = Status
20118
20336
 
20119
20337
  @property
20120
20338
  def RequestId(self):
@@ -20129,41 +20347,52 @@ class DescribePostCKafkaFlowsResponse(AbstractModel):
20129
20347
 
20130
20348
 
20131
20349
  def _deserialize(self, params):
20132
- if params.get("PostCKafkaFlows") is not None:
20133
- self._PostCKafkaFlows = []
20134
- for item in params.get("PostCKafkaFlows"):
20135
- obj = PostCKafkaFlowInfo()
20136
- obj._deserialize(item)
20137
- self._PostCKafkaFlows.append(obj)
20350
+ self._InstanceId = params.get("InstanceId")
20351
+ self._Status = params.get("Status")
20138
20352
  self._RequestId = params.get("RequestId")
20139
20353
 
20140
20354
 
20141
- class DescribePostCLSFlowsRequest(AbstractModel):
20142
- """DescribePostCLSFlows请求参数结构体
20355
+ class DescribePortsRequest(AbstractModel):
20356
+ """DescribePorts请求参数结构体
20143
20357
 
20144
20358
  """
20145
20359
 
20146
20360
  def __init__(self):
20147
20361
  r"""
20148
- :param _LogType: 1-访问日志,2-攻击日志,默认为访问日志。
20149
- :type LogType: int
20362
+ :param _InstanceID: 实例ID
20363
+ :type InstanceID: str
20364
+ :param _Edition: 实例类型
20365
+ :type Edition: str
20150
20366
  """
20151
- self._LogType = None
20367
+ self._InstanceID = None
20368
+ self._Edition = None
20152
20369
 
20153
20370
  @property
20154
- def LogType(self):
20155
- """1-访问日志,2-攻击日志,默认为访问日志。
20156
- :rtype: int
20371
+ def InstanceID(self):
20372
+ """实例ID
20373
+ :rtype: str
20157
20374
  """
20158
- return self._LogType
20375
+ return self._InstanceID
20159
20376
 
20160
- @LogType.setter
20161
- def LogType(self, LogType):
20162
- self._LogType = LogType
20377
+ @InstanceID.setter
20378
+ def InstanceID(self, InstanceID):
20379
+ self._InstanceID = InstanceID
20380
+
20381
+ @property
20382
+ def Edition(self):
20383
+ """实例类型
20384
+ :rtype: str
20385
+ """
20386
+ return self._Edition
20387
+
20388
+ @Edition.setter
20389
+ def Edition(self, Edition):
20390
+ self._Edition = Edition
20163
20391
 
20164
20392
 
20165
20393
  def _deserialize(self, params):
20166
- self._LogType = params.get("LogType")
20394
+ self._InstanceID = params.get("InstanceID")
20395
+ self._Edition = params.get("Edition")
20167
20396
  memeber_set = set(params.keys())
20168
20397
  for name, value in vars(self).items():
20169
20398
  property_name = name[1:]
@@ -20174,17 +20403,195 @@ class DescribePostCLSFlowsRequest(AbstractModel):
20174
20403
 
20175
20404
 
20176
20405
 
20177
- class DescribePostCLSFlowsResponse(AbstractModel):
20178
- """DescribePostCLSFlows返回参数结构体
20406
+ class DescribePortsResponse(AbstractModel):
20407
+ """DescribePorts返回参数结构体
20179
20408
 
20180
20409
  """
20181
20410
 
20182
20411
  def __init__(self):
20183
20412
  r"""
20184
- :param _PostCLSFlows: 客户的投递流列表
20185
- :type PostCLSFlows: list of PostCLSFlowInfo
20186
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20187
- :type RequestId: str
20413
+ :param _HttpPorts: http端口列表
20414
+ :type HttpPorts: list of str
20415
+ :param _HttpsPorts: https端口列表
20416
+ :type HttpsPorts: list of str
20417
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20418
+ :type RequestId: str
20419
+ """
20420
+ self._HttpPorts = None
20421
+ self._HttpsPorts = None
20422
+ self._RequestId = None
20423
+
20424
+ @property
20425
+ def HttpPorts(self):
20426
+ """http端口列表
20427
+ :rtype: list of str
20428
+ """
20429
+ return self._HttpPorts
20430
+
20431
+ @HttpPorts.setter
20432
+ def HttpPorts(self, HttpPorts):
20433
+ self._HttpPorts = HttpPorts
20434
+
20435
+ @property
20436
+ def HttpsPorts(self):
20437
+ """https端口列表
20438
+ :rtype: list of str
20439
+ """
20440
+ return self._HttpsPorts
20441
+
20442
+ @HttpsPorts.setter
20443
+ def HttpsPorts(self, HttpsPorts):
20444
+ self._HttpsPorts = HttpsPorts
20445
+
20446
+ @property
20447
+ def RequestId(self):
20448
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20449
+ :rtype: str
20450
+ """
20451
+ return self._RequestId
20452
+
20453
+ @RequestId.setter
20454
+ def RequestId(self, RequestId):
20455
+ self._RequestId = RequestId
20456
+
20457
+
20458
+ def _deserialize(self, params):
20459
+ self._HttpPorts = params.get("HttpPorts")
20460
+ self._HttpsPorts = params.get("HttpsPorts")
20461
+ self._RequestId = params.get("RequestId")
20462
+
20463
+
20464
+ class DescribePostCKafkaFlowsRequest(AbstractModel):
20465
+ """DescribePostCKafkaFlows请求参数结构体
20466
+
20467
+ """
20468
+
20469
+ def __init__(self):
20470
+ r"""
20471
+ :param _LogType: 1-访问日志,2-攻击日志,默认为访问日志。
20472
+ :type LogType: int
20473
+ """
20474
+ self._LogType = None
20475
+
20476
+ @property
20477
+ def LogType(self):
20478
+ """1-访问日志,2-攻击日志,默认为访问日志。
20479
+ :rtype: int
20480
+ """
20481
+ return self._LogType
20482
+
20483
+ @LogType.setter
20484
+ def LogType(self, LogType):
20485
+ self._LogType = LogType
20486
+
20487
+
20488
+ def _deserialize(self, params):
20489
+ self._LogType = params.get("LogType")
20490
+ memeber_set = set(params.keys())
20491
+ for name, value in vars(self).items():
20492
+ property_name = name[1:]
20493
+ if property_name in memeber_set:
20494
+ memeber_set.remove(property_name)
20495
+ if len(memeber_set) > 0:
20496
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
20497
+
20498
+
20499
+
20500
+ class DescribePostCKafkaFlowsResponse(AbstractModel):
20501
+ """DescribePostCKafkaFlows返回参数结构体
20502
+
20503
+ """
20504
+
20505
+ def __init__(self):
20506
+ r"""
20507
+ :param _PostCKafkaFlows: 客户的投递流列表
20508
+ :type PostCKafkaFlows: list of PostCKafkaFlowInfo
20509
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20510
+ :type RequestId: str
20511
+ """
20512
+ self._PostCKafkaFlows = None
20513
+ self._RequestId = None
20514
+
20515
+ @property
20516
+ def PostCKafkaFlows(self):
20517
+ """客户的投递流列表
20518
+ :rtype: list of PostCKafkaFlowInfo
20519
+ """
20520
+ return self._PostCKafkaFlows
20521
+
20522
+ @PostCKafkaFlows.setter
20523
+ def PostCKafkaFlows(self, PostCKafkaFlows):
20524
+ self._PostCKafkaFlows = PostCKafkaFlows
20525
+
20526
+ @property
20527
+ def RequestId(self):
20528
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20529
+ :rtype: str
20530
+ """
20531
+ return self._RequestId
20532
+
20533
+ @RequestId.setter
20534
+ def RequestId(self, RequestId):
20535
+ self._RequestId = RequestId
20536
+
20537
+
20538
+ def _deserialize(self, params):
20539
+ if params.get("PostCKafkaFlows") is not None:
20540
+ self._PostCKafkaFlows = []
20541
+ for item in params.get("PostCKafkaFlows"):
20542
+ obj = PostCKafkaFlowInfo()
20543
+ obj._deserialize(item)
20544
+ self._PostCKafkaFlows.append(obj)
20545
+ self._RequestId = params.get("RequestId")
20546
+
20547
+
20548
+ class DescribePostCLSFlowsRequest(AbstractModel):
20549
+ """DescribePostCLSFlows请求参数结构体
20550
+
20551
+ """
20552
+
20553
+ def __init__(self):
20554
+ r"""
20555
+ :param _LogType: 1-访问日志,2-攻击日志,默认为访问日志。
20556
+ :type LogType: int
20557
+ """
20558
+ self._LogType = None
20559
+
20560
+ @property
20561
+ def LogType(self):
20562
+ """1-访问日志,2-攻击日志,默认为访问日志。
20563
+ :rtype: int
20564
+ """
20565
+ return self._LogType
20566
+
20567
+ @LogType.setter
20568
+ def LogType(self, LogType):
20569
+ self._LogType = LogType
20570
+
20571
+
20572
+ def _deserialize(self, params):
20573
+ self._LogType = params.get("LogType")
20574
+ memeber_set = set(params.keys())
20575
+ for name, value in vars(self).items():
20576
+ property_name = name[1:]
20577
+ if property_name in memeber_set:
20578
+ memeber_set.remove(property_name)
20579
+ if len(memeber_set) > 0:
20580
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
20581
+
20582
+
20583
+
20584
+ class DescribePostCLSFlowsResponse(AbstractModel):
20585
+ """DescribePostCLSFlows返回参数结构体
20586
+
20587
+ """
20588
+
20589
+ def __init__(self):
20590
+ r"""
20591
+ :param _PostCLSFlows: 客户的投递流列表
20592
+ :type PostCLSFlows: list of PostCLSFlowInfo
20593
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20594
+ :type RequestId: str
20188
20595
  """
20189
20596
  self._PostCLSFlows = None
20190
20597
  self._RequestId = None
@@ -35458,66 +35865,32 @@ class ModifyObjectResponse(AbstractModel):
35458
35865
  self._RequestId = params.get("RequestId")
35459
35866
 
35460
35867
 
35461
- class ModifyOwaspWhiteRuleRequest(AbstractModel):
35462
- """ModifyOwaspWhiteRule请求参数结构体
35868
+ class ModifyOwaspRuleStatusRequest(AbstractModel):
35869
+ """ModifyOwaspRuleStatus请求参数结构体
35463
35870
 
35464
35871
  """
35465
35872
 
35466
35873
  def __init__(self):
35467
35874
  r"""
35468
- :param _RuleId: 规则ID
35469
- :type RuleId: int
35470
- :param _Name: 规则名称
35471
- :type Name: str
35472
35875
  :param _Domain: 域名
35473
35876
  :type Domain: str
35474
- :param _Strategies: 规则匹配策略列表
35475
- :type Strategies: list of Strategy
35476
- :param _Ids: 加白的规则ID列表
35477
- :type Ids: list of int non-negative
35478
- :param _Type: 加白的类型,0:按照特定规则ID加白, 1:按照规则类型加白
35479
- :type Type: int
35480
- :param _JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行
35481
- :type JobType: str
35482
- :param _JobDateTime: 定时任务配置
35483
- :type JobDateTime: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
35484
- :param _ExpireTime: 如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
35485
- :type ExpireTime: int
35486
- :param _Status: 规则状态,0:关闭、1:开启,默认为开启
35487
- :type Status: int
35877
+ :param _RuleStatus: 规则开关,0:关闭、1:开启、2:只观察
35878
+ :type RuleStatus: int
35879
+ :param _SelectAll: 是否全选
35880
+ :type SelectAll: bool
35881
+ :param _RuleIDs: 规则ID列表
35882
+ :type RuleIDs: list of str
35883
+ :param _TypeId: 如果反转需要传入类型
35884
+ :type TypeId: int
35885
+ :param _Reason: 修改原因 0:无(兼容记录为空) 1:业务自身特性误报避免 2:规则误报上报 3:核心业务规则灰度 4:其它
35886
+ :type Reason: int
35488
35887
  """
35489
- self._RuleId = None
35490
- self._Name = None
35491
35888
  self._Domain = None
35492
- self._Strategies = None
35493
- self._Ids = None
35494
- self._Type = None
35495
- self._JobType = None
35496
- self._JobDateTime = None
35497
- self._ExpireTime = None
35498
- self._Status = None
35499
-
35500
- @property
35501
- def RuleId(self):
35502
- """规则ID
35503
- :rtype: int
35504
- """
35505
- return self._RuleId
35506
-
35507
- @RuleId.setter
35508
- def RuleId(self, RuleId):
35509
- self._RuleId = RuleId
35510
-
35511
- @property
35512
- def Name(self):
35513
- """规则名称
35514
- :rtype: str
35515
- """
35516
- return self._Name
35517
-
35518
- @Name.setter
35519
- def Name(self, Name):
35520
- self._Name = Name
35889
+ self._RuleStatus = None
35890
+ self._SelectAll = None
35891
+ self._RuleIDs = None
35892
+ self._TypeId = None
35893
+ self._Reason = None
35521
35894
 
35522
35895
  @property
35523
35896
  def Domain(self):
@@ -35531,101 +35904,68 @@ class ModifyOwaspWhiteRuleRequest(AbstractModel):
35531
35904
  self._Domain = Domain
35532
35905
 
35533
35906
  @property
35534
- def Strategies(self):
35535
- """规则匹配策略列表
35536
- :rtype: list of Strategy
35907
+ def RuleStatus(self):
35908
+ """规则开关,0:关闭、1:开启、2:只观察
35909
+ :rtype: int
35537
35910
  """
35538
- return self._Strategies
35911
+ return self._RuleStatus
35539
35912
 
35540
- @Strategies.setter
35541
- def Strategies(self, Strategies):
35542
- self._Strategies = Strategies
35913
+ @RuleStatus.setter
35914
+ def RuleStatus(self, RuleStatus):
35915
+ self._RuleStatus = RuleStatus
35543
35916
 
35544
35917
  @property
35545
- def Ids(self):
35546
- """加白的规则ID列表
35547
- :rtype: list of int non-negative
35918
+ def SelectAll(self):
35919
+ """是否全选
35920
+ :rtype: bool
35548
35921
  """
35549
- return self._Ids
35922
+ return self._SelectAll
35550
35923
 
35551
- @Ids.setter
35552
- def Ids(self, Ids):
35553
- self._Ids = Ids
35924
+ @SelectAll.setter
35925
+ def SelectAll(self, SelectAll):
35926
+ self._SelectAll = SelectAll
35554
35927
 
35555
35928
  @property
35556
- def Type(self):
35557
- """加白的类型,0:按照特定规则ID加白, 1:按照规则类型加白
35558
- :rtype: int
35559
- """
35560
- return self._Type
35561
-
35562
- @Type.setter
35563
- def Type(self, Type):
35564
- self._Type = Type
35565
-
35566
- @property
35567
- def JobType(self):
35568
- """规则执行的方式,TimedJob为定时执行,CronJob为周期执行
35569
- :rtype: str
35570
- """
35571
- return self._JobType
35572
-
35573
- @JobType.setter
35574
- def JobType(self, JobType):
35575
- self._JobType = JobType
35576
-
35577
- @property
35578
- def JobDateTime(self):
35579
- """定时任务配置
35580
- :rtype: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
35929
+ def RuleIDs(self):
35930
+ """规则ID列表
35931
+ :rtype: list of str
35581
35932
  """
35582
- return self._JobDateTime
35933
+ return self._RuleIDs
35583
35934
 
35584
- @JobDateTime.setter
35585
- def JobDateTime(self, JobDateTime):
35586
- self._JobDateTime = JobDateTime
35935
+ @RuleIDs.setter
35936
+ def RuleIDs(self, RuleIDs):
35937
+ self._RuleIDs = RuleIDs
35587
35938
 
35588
35939
  @property
35589
- def ExpireTime(self):
35590
- """如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
35940
+ def TypeId(self):
35941
+ """如果反转需要传入类型
35591
35942
  :rtype: int
35592
35943
  """
35593
- return self._ExpireTime
35944
+ return self._TypeId
35594
35945
 
35595
- @ExpireTime.setter
35596
- def ExpireTime(self, ExpireTime):
35597
- self._ExpireTime = ExpireTime
35946
+ @TypeId.setter
35947
+ def TypeId(self, TypeId):
35948
+ self._TypeId = TypeId
35598
35949
 
35599
35950
  @property
35600
- def Status(self):
35601
- """规则状态,0:关闭、1:开启,默认为开启
35951
+ def Reason(self):
35952
+ """修改原因 0:无(兼容记录为空) 1:业务自身特性误报避免 2:规则误报上报 3:核心业务规则灰度 4:其它
35602
35953
  :rtype: int
35603
35954
  """
35604
- return self._Status
35955
+ return self._Reason
35605
35956
 
35606
- @Status.setter
35607
- def Status(self, Status):
35608
- self._Status = Status
35957
+ @Reason.setter
35958
+ def Reason(self, Reason):
35959
+ self._Reason = Reason
35609
35960
 
35610
35961
 
35611
35962
  def _deserialize(self, params):
35612
- self._RuleId = params.get("RuleId")
35613
- self._Name = params.get("Name")
35614
35963
  self._Domain = params.get("Domain")
35615
- if params.get("Strategies") is not None:
35616
- self._Strategies = []
35617
- for item in params.get("Strategies"):
35618
- obj = Strategy()
35619
- obj._deserialize(item)
35620
- self._Strategies.append(obj)
35621
- self._Ids = params.get("Ids")
35622
- self._Type = params.get("Type")
35623
- self._JobType = params.get("JobType")
35624
- if params.get("JobDateTime") is not None:
35625
- self._JobDateTime = JobDateTime()
35626
- self._JobDateTime._deserialize(params.get("JobDateTime"))
35627
- self._ExpireTime = params.get("ExpireTime")
35628
- self._Status = params.get("Status")
35964
+ self._RuleStatus = params.get("RuleStatus")
35965
+ self._SelectAll = params.get("SelectAll")
35966
+ self._RuleIDs = params.get("RuleIDs")
35967
+ self._TypeId = params.get("TypeId")
35968
+ self._Reason = params.get("Reason")
35629
35969
  memeber_set = set(params.keys())
35630
35970
  for name, value in vars(self).items():
35631
35971
  property_name = name[1:]
@@ -35636,8 +35976,8 @@ class ModifyOwaspWhiteRuleRequest(AbstractModel):
35636
35976
 
35637
35977
 
35638
35978
 
35639
- class ModifyOwaspWhiteRuleResponse(AbstractModel):
35640
- """ModifyOwaspWhiteRule返回参数结构体
35979
+ class ModifyOwaspRuleStatusResponse(AbstractModel):
35980
+ """ModifyOwaspRuleStatus返回参数结构体
35641
35981
 
35642
35982
  """
35643
35983
 
@@ -35664,8 +36004,8 @@ class ModifyOwaspWhiteRuleResponse(AbstractModel):
35664
36004
  self._RequestId = params.get("RequestId")
35665
36005
 
35666
36006
 
35667
- class ModifyProtectionStatusRequest(AbstractModel):
35668
- """ModifyProtectionStatus请求参数结构体
36007
+ class ModifyOwaspRuleTypeActionRequest(AbstractModel):
36008
+ """ModifyOwaspRuleTypeAction请求参数结构体
35669
36009
 
35670
36010
  """
35671
36011
 
@@ -35673,14 +36013,14 @@ class ModifyProtectionStatusRequest(AbstractModel):
35673
36013
  r"""
35674
36014
  :param _Domain: 域名
35675
36015
  :type Domain: str
35676
- :param _Status: 1:开启WAF开关,0:关闭WAF开关
35677
- :type Status: int
35678
- :param _Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
35679
- :type Edition: str
36016
+ :param _TypeIDs: 规则类型ID列表
36017
+ :type TypeIDs: list of str
36018
+ :param _RuleTypeAction: 规则类型的防护模式,0:观察、1:拦截
36019
+ :type RuleTypeAction: int
35680
36020
  """
35681
36021
  self._Domain = None
35682
- self._Status = None
35683
- self._Edition = None
36022
+ self._TypeIDs = None
36023
+ self._RuleTypeAction = None
35684
36024
 
35685
36025
  @property
35686
36026
  def Domain(self):
@@ -35694,32 +36034,32 @@ class ModifyProtectionStatusRequest(AbstractModel):
35694
36034
  self._Domain = Domain
35695
36035
 
35696
36036
  @property
35697
- def Status(self):
35698
- """1:开启WAF开关,0:关闭WAF开关
35699
- :rtype: int
36037
+ def TypeIDs(self):
36038
+ """规则类型ID列表
36039
+ :rtype: list of str
35700
36040
  """
35701
- return self._Status
36041
+ return self._TypeIDs
35702
36042
 
35703
- @Status.setter
35704
- def Status(self, Status):
35705
- self._Status = Status
36043
+ @TypeIDs.setter
36044
+ def TypeIDs(self, TypeIDs):
36045
+ self._TypeIDs = TypeIDs
35706
36046
 
35707
36047
  @property
35708
- def Edition(self):
35709
- """WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
35710
- :rtype: str
36048
+ def RuleTypeAction(self):
36049
+ """规则类型的防护模式,0:观察、1:拦截
36050
+ :rtype: int
35711
36051
  """
35712
- return self._Edition
36052
+ return self._RuleTypeAction
35713
36053
 
35714
- @Edition.setter
35715
- def Edition(self, Edition):
35716
- self._Edition = Edition
36054
+ @RuleTypeAction.setter
36055
+ def RuleTypeAction(self, RuleTypeAction):
36056
+ self._RuleTypeAction = RuleTypeAction
35717
36057
 
35718
36058
 
35719
36059
  def _deserialize(self, params):
35720
36060
  self._Domain = params.get("Domain")
35721
- self._Status = params.get("Status")
35722
- self._Edition = params.get("Edition")
36061
+ self._TypeIDs = params.get("TypeIDs")
36062
+ self._RuleTypeAction = params.get("RuleTypeAction")
35723
36063
  memeber_set = set(params.keys())
35724
36064
  for name, value in vars(self).items():
35725
36065
  property_name = name[1:]
@@ -35730,8 +36070,8 @@ class ModifyProtectionStatusRequest(AbstractModel):
35730
36070
 
35731
36071
 
35732
36072
 
35733
- class ModifyProtectionStatusResponse(AbstractModel):
35734
- """ModifyProtectionStatus返回参数结构体
36073
+ class ModifyOwaspRuleTypeActionResponse(AbstractModel):
36074
+ """ModifyOwaspRuleTypeAction返回参数结构体
35735
36075
 
35736
36076
  """
35737
36077
 
@@ -35758,8 +36098,8 @@ class ModifyProtectionStatusResponse(AbstractModel):
35758
36098
  self._RequestId = params.get("RequestId")
35759
36099
 
35760
36100
 
35761
- class ModifySpartaProtectionModeRequest(AbstractModel):
35762
- """ModifySpartaProtectionMode请求参数结构体
36101
+ class ModifyOwaspRuleTypeLevelRequest(AbstractModel):
36102
+ """ModifyOwaspRuleTypeLevel请求参数结构体
35763
36103
 
35764
36104
  """
35765
36105
 
@@ -35767,22 +36107,14 @@ class ModifySpartaProtectionModeRequest(AbstractModel):
35767
36107
  r"""
35768
36108
  :param _Domain: 域名
35769
36109
  :type Domain: str
35770
- :param _Mode: 防护状态:
35771
- 10:规则观察&&AI关闭模式,11:规则观察&&AI观察模式,12:规则观察&&AI拦截模式
35772
- 20:规则拦截&&AI关闭模式,21:规则拦截&&AI观察模式,22:规则拦截&&AI拦截模式
35773
- :type Mode: int
35774
- :param _Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
35775
- :type Edition: str
35776
- :param _Type: 0是修改规则引擎状态,1是修改AI的状态
35777
- :type Type: int
35778
- :param _InstanceID: 实例id
35779
- :type InstanceID: str
36110
+ :param _TypeIDs: 规则类型ID列表
36111
+ :type TypeIDs: list of str
36112
+ :param _RuleTypeLevel: 规则的防护等级,100:宽松、200:正常、300:严格、400:超严格
36113
+ :type RuleTypeLevel: int
35780
36114
  """
35781
36115
  self._Domain = None
35782
- self._Mode = None
35783
- self._Edition = None
35784
- self._Type = None
35785
- self._InstanceID = None
36116
+ self._TypeIDs = None
36117
+ self._RuleTypeLevel = None
35786
36118
 
35787
36119
  @property
35788
36120
  def Domain(self):
@@ -35796,58 +36128,126 @@ class ModifySpartaProtectionModeRequest(AbstractModel):
35796
36128
  self._Domain = Domain
35797
36129
 
35798
36130
  @property
35799
- def Mode(self):
35800
- """防护状态:
35801
- 10:规则观察&&AI关闭模式,11:规则观察&&AI观察模式,12:规则观察&&AI拦截模式
35802
- 20:规则拦截&&AI关闭模式,21:规则拦截&&AI观察模式,22:规则拦截&&AI拦截模式
36131
+ def TypeIDs(self):
36132
+ """规则类型ID列表
36133
+ :rtype: list of str
36134
+ """
36135
+ return self._TypeIDs
36136
+
36137
+ @TypeIDs.setter
36138
+ def TypeIDs(self, TypeIDs):
36139
+ self._TypeIDs = TypeIDs
36140
+
36141
+ @property
36142
+ def RuleTypeLevel(self):
36143
+ """规则的防护等级,100:宽松、200:正常、300:严格、400:超严格
35803
36144
  :rtype: int
35804
36145
  """
35805
- return self._Mode
36146
+ return self._RuleTypeLevel
35806
36147
 
35807
- @Mode.setter
35808
- def Mode(self, Mode):
35809
- self._Mode = Mode
36148
+ @RuleTypeLevel.setter
36149
+ def RuleTypeLevel(self, RuleTypeLevel):
36150
+ self._RuleTypeLevel = RuleTypeLevel
36151
+
36152
+
36153
+ def _deserialize(self, params):
36154
+ self._Domain = params.get("Domain")
36155
+ self._TypeIDs = params.get("TypeIDs")
36156
+ self._RuleTypeLevel = params.get("RuleTypeLevel")
36157
+ memeber_set = set(params.keys())
36158
+ for name, value in vars(self).items():
36159
+ property_name = name[1:]
36160
+ if property_name in memeber_set:
36161
+ memeber_set.remove(property_name)
36162
+ if len(memeber_set) > 0:
36163
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
36164
+
36165
+
36166
+
36167
+ class ModifyOwaspRuleTypeLevelResponse(AbstractModel):
36168
+ """ModifyOwaspRuleTypeLevel返回参数结构体
36169
+
36170
+ """
36171
+
36172
+ def __init__(self):
36173
+ r"""
36174
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
36175
+ :type RequestId: str
36176
+ """
36177
+ self._RequestId = None
35810
36178
 
35811
36179
  @property
35812
- def Edition(self):
35813
- """WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf
36180
+ def RequestId(self):
36181
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId
35814
36182
  :rtype: str
35815
36183
  """
35816
- return self._Edition
36184
+ return self._RequestId
35817
36185
 
35818
- @Edition.setter
35819
- def Edition(self, Edition):
35820
- self._Edition = Edition
36186
+ @RequestId.setter
36187
+ def RequestId(self, RequestId):
36188
+ self._RequestId = RequestId
36189
+
36190
+
36191
+ def _deserialize(self, params):
36192
+ self._RequestId = params.get("RequestId")
36193
+
36194
+
36195
+ class ModifyOwaspRuleTypeStatusRequest(AbstractModel):
36196
+ """ModifyOwaspRuleTypeStatus请求参数结构体
36197
+
36198
+ """
36199
+
36200
+ def __init__(self):
36201
+ r"""
36202
+ :param _Domain: 域名
36203
+ :type Domain: str
36204
+ :param _TypeIDs: 规则类型ID列表
36205
+ :type TypeIDs: list of str
36206
+ :param _RuleTypeStatus: 规则类型的开关状态,0:关闭、1:开启
36207
+ :type RuleTypeStatus: int
36208
+ """
36209
+ self._Domain = None
36210
+ self._TypeIDs = None
36211
+ self._RuleTypeStatus = None
35821
36212
 
35822
36213
  @property
35823
- def Type(self):
35824
- """0是修改规则引擎状态,1是修改AI的状态
35825
- :rtype: int
36214
+ def Domain(self):
36215
+ """域名
36216
+ :rtype: str
35826
36217
  """
35827
- return self._Type
36218
+ return self._Domain
35828
36219
 
35829
- @Type.setter
35830
- def Type(self, Type):
35831
- self._Type = Type
36220
+ @Domain.setter
36221
+ def Domain(self, Domain):
36222
+ self._Domain = Domain
35832
36223
 
35833
36224
  @property
35834
- def InstanceID(self):
35835
- """实例id
35836
- :rtype: str
36225
+ def TypeIDs(self):
36226
+ """规则类型ID列表
36227
+ :rtype: list of str
35837
36228
  """
35838
- return self._InstanceID
36229
+ return self._TypeIDs
35839
36230
 
35840
- @InstanceID.setter
35841
- def InstanceID(self, InstanceID):
35842
- self._InstanceID = InstanceID
36231
+ @TypeIDs.setter
36232
+ def TypeIDs(self, TypeIDs):
36233
+ self._TypeIDs = TypeIDs
36234
+
36235
+ @property
36236
+ def RuleTypeStatus(self):
36237
+ """规则类型的开关状态,0:关闭、1:开启
36238
+ :rtype: int
36239
+ """
36240
+ return self._RuleTypeStatus
36241
+
36242
+ @RuleTypeStatus.setter
36243
+ def RuleTypeStatus(self, RuleTypeStatus):
36244
+ self._RuleTypeStatus = RuleTypeStatus
35843
36245
 
35844
36246
 
35845
36247
  def _deserialize(self, params):
35846
36248
  self._Domain = params.get("Domain")
35847
- self._Mode = params.get("Mode")
35848
- self._Edition = params.get("Edition")
35849
- self._Type = params.get("Type")
35850
- self._InstanceID = params.get("InstanceID")
36249
+ self._TypeIDs = params.get("TypeIDs")
36250
+ self._RuleTypeStatus = params.get("RuleTypeStatus")
35851
36251
  memeber_set = set(params.keys())
35852
36252
  for name, value in vars(self).items():
35853
36253
  property_name = name[1:]
@@ -35858,8 +36258,8 @@ class ModifySpartaProtectionModeRequest(AbstractModel):
35858
36258
 
35859
36259
 
35860
36260
 
35861
- class ModifySpartaProtectionModeResponse(AbstractModel):
35862
- """ModifySpartaProtectionMode返回参数结构体
36261
+ class ModifyOwaspRuleTypeStatusResponse(AbstractModel):
36262
+ """ModifyOwaspRuleTypeStatus返回参数结构体
35863
36263
 
35864
36264
  """
35865
36265
 
@@ -35886,21 +36286,449 @@ class ModifySpartaProtectionModeResponse(AbstractModel):
35886
36286
  self._RequestId = params.get("RequestId")
35887
36287
 
35888
36288
 
35889
- class ModifySpartaProtectionRequest(AbstractModel):
35890
- """ModifySpartaProtection请求参数结构体
36289
+ class ModifyOwaspWhiteRuleRequest(AbstractModel):
36290
+ """ModifyOwaspWhiteRule请求参数结构体
35891
36291
 
35892
36292
  """
35893
36293
 
35894
36294
  def __init__(self):
35895
36295
  r"""
36296
+ :param _RuleId: 规则ID
36297
+ :type RuleId: int
36298
+ :param _Name: 规则名称
36299
+ :type Name: str
35896
36300
  :param _Domain: 域名
35897
36301
  :type Domain: str
35898
- :param _DomainId: 必填项。域名唯一ID
35899
- :type DomainId: str
35900
- :param _InstanceID: 必填项。域名所属实例id
35901
- :type InstanceID: str
35902
- :param _CertType: 证书类型。0:仅配置HTTP监听端口,没有证书1:证书来源为自有证书2:证书来源为托管证书
35903
- :type CertType: int
36302
+ :param _Strategies: 规则匹配策略列表
36303
+ :type Strategies: list of Strategy
36304
+ :param _Ids: 加白的规则ID列表
36305
+ :type Ids: list of int non-negative
36306
+ :param _Type: 加白的类型,0:按照特定规则ID加白, 1:按照规则类型加白
36307
+ :type Type: int
36308
+ :param _JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行
36309
+ :type JobType: str
36310
+ :param _JobDateTime: 定时任务配置
36311
+ :type JobDateTime: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
36312
+ :param _ExpireTime: 如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
36313
+ :type ExpireTime: int
36314
+ :param _Status: 规则状态,0:关闭、1:开启,默认为开启
36315
+ :type Status: int
36316
+ """
36317
+ self._RuleId = None
36318
+ self._Name = None
36319
+ self._Domain = None
36320
+ self._Strategies = None
36321
+ self._Ids = None
36322
+ self._Type = None
36323
+ self._JobType = None
36324
+ self._JobDateTime = None
36325
+ self._ExpireTime = None
36326
+ self._Status = None
36327
+
36328
+ @property
36329
+ def RuleId(self):
36330
+ """规则ID
36331
+ :rtype: int
36332
+ """
36333
+ return self._RuleId
36334
+
36335
+ @RuleId.setter
36336
+ def RuleId(self, RuleId):
36337
+ self._RuleId = RuleId
36338
+
36339
+ @property
36340
+ def Name(self):
36341
+ """规则名称
36342
+ :rtype: str
36343
+ """
36344
+ return self._Name
36345
+
36346
+ @Name.setter
36347
+ def Name(self, Name):
36348
+ self._Name = Name
36349
+
36350
+ @property
36351
+ def Domain(self):
36352
+ """域名
36353
+ :rtype: str
36354
+ """
36355
+ return self._Domain
36356
+
36357
+ @Domain.setter
36358
+ def Domain(self, Domain):
36359
+ self._Domain = Domain
36360
+
36361
+ @property
36362
+ def Strategies(self):
36363
+ """规则匹配策略列表
36364
+ :rtype: list of Strategy
36365
+ """
36366
+ return self._Strategies
36367
+
36368
+ @Strategies.setter
36369
+ def Strategies(self, Strategies):
36370
+ self._Strategies = Strategies
36371
+
36372
+ @property
36373
+ def Ids(self):
36374
+ """加白的规则ID列表
36375
+ :rtype: list of int non-negative
36376
+ """
36377
+ return self._Ids
36378
+
36379
+ @Ids.setter
36380
+ def Ids(self, Ids):
36381
+ self._Ids = Ids
36382
+
36383
+ @property
36384
+ def Type(self):
36385
+ """加白的类型,0:按照特定规则ID加白, 1:按照规则类型加白
36386
+ :rtype: int
36387
+ """
36388
+ return self._Type
36389
+
36390
+ @Type.setter
36391
+ def Type(self, Type):
36392
+ self._Type = Type
36393
+
36394
+ @property
36395
+ def JobType(self):
36396
+ """规则执行的方式,TimedJob为定时执行,CronJob为周期执行
36397
+ :rtype: str
36398
+ """
36399
+ return self._JobType
36400
+
36401
+ @JobType.setter
36402
+ def JobType(self, JobType):
36403
+ self._JobType = JobType
36404
+
36405
+ @property
36406
+ def JobDateTime(self):
36407
+ """定时任务配置
36408
+ :rtype: :class:`tencentcloud.waf.v20180125.models.JobDateTime`
36409
+ """
36410
+ return self._JobDateTime
36411
+
36412
+ @JobDateTime.setter
36413
+ def JobDateTime(self, JobDateTime):
36414
+ self._JobDateTime = JobDateTime
36415
+
36416
+ @property
36417
+ def ExpireTime(self):
36418
+ """如果没有设置JobDateTime字段则用此字段,0表示永久生效,其它表示定时生效的截止时间(单位为秒)
36419
+ :rtype: int
36420
+ """
36421
+ return self._ExpireTime
36422
+
36423
+ @ExpireTime.setter
36424
+ def ExpireTime(self, ExpireTime):
36425
+ self._ExpireTime = ExpireTime
36426
+
36427
+ @property
36428
+ def Status(self):
36429
+ """规则状态,0:关闭、1:开启,默认为开启
36430
+ :rtype: int
36431
+ """
36432
+ return self._Status
36433
+
36434
+ @Status.setter
36435
+ def Status(self, Status):
36436
+ self._Status = Status
36437
+
36438
+
36439
+ def _deserialize(self, params):
36440
+ self._RuleId = params.get("RuleId")
36441
+ self._Name = params.get("Name")
36442
+ self._Domain = params.get("Domain")
36443
+ if params.get("Strategies") is not None:
36444
+ self._Strategies = []
36445
+ for item in params.get("Strategies"):
36446
+ obj = Strategy()
36447
+ obj._deserialize(item)
36448
+ self._Strategies.append(obj)
36449
+ self._Ids = params.get("Ids")
36450
+ self._Type = params.get("Type")
36451
+ self._JobType = params.get("JobType")
36452
+ if params.get("JobDateTime") is not None:
36453
+ self._JobDateTime = JobDateTime()
36454
+ self._JobDateTime._deserialize(params.get("JobDateTime"))
36455
+ self._ExpireTime = params.get("ExpireTime")
36456
+ self._Status = params.get("Status")
36457
+ memeber_set = set(params.keys())
36458
+ for name, value in vars(self).items():
36459
+ property_name = name[1:]
36460
+ if property_name in memeber_set:
36461
+ memeber_set.remove(property_name)
36462
+ if len(memeber_set) > 0:
36463
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
36464
+
36465
+
36466
+
36467
+ class ModifyOwaspWhiteRuleResponse(AbstractModel):
36468
+ """ModifyOwaspWhiteRule返回参数结构体
36469
+
36470
+ """
36471
+
36472
+ def __init__(self):
36473
+ r"""
36474
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
36475
+ :type RequestId: str
36476
+ """
36477
+ self._RequestId = None
36478
+
36479
+ @property
36480
+ def RequestId(self):
36481
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
36482
+ :rtype: str
36483
+ """
36484
+ return self._RequestId
36485
+
36486
+ @RequestId.setter
36487
+ def RequestId(self, RequestId):
36488
+ self._RequestId = RequestId
36489
+
36490
+
36491
+ def _deserialize(self, params):
36492
+ self._RequestId = params.get("RequestId")
36493
+
36494
+
36495
+ class ModifyProtectionStatusRequest(AbstractModel):
36496
+ """ModifyProtectionStatus请求参数结构体
36497
+
36498
+ """
36499
+
36500
+ def __init__(self):
36501
+ r"""
36502
+ :param _Domain: 域名
36503
+ :type Domain: str
36504
+ :param _Status: 1:开启WAF开关,0:关闭WAF开关
36505
+ :type Status: int
36506
+ :param _Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
36507
+ :type Edition: str
36508
+ """
36509
+ self._Domain = None
36510
+ self._Status = None
36511
+ self._Edition = None
36512
+
36513
+ @property
36514
+ def Domain(self):
36515
+ """域名
36516
+ :rtype: str
36517
+ """
36518
+ return self._Domain
36519
+
36520
+ @Domain.setter
36521
+ def Domain(self, Domain):
36522
+ self._Domain = Domain
36523
+
36524
+ @property
36525
+ def Status(self):
36526
+ """1:开启WAF开关,0:关闭WAF开关
36527
+ :rtype: int
36528
+ """
36529
+ return self._Status
36530
+
36531
+ @Status.setter
36532
+ def Status(self, Status):
36533
+ self._Status = Status
36534
+
36535
+ @property
36536
+ def Edition(self):
36537
+ """WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
36538
+ :rtype: str
36539
+ """
36540
+ return self._Edition
36541
+
36542
+ @Edition.setter
36543
+ def Edition(self, Edition):
36544
+ self._Edition = Edition
36545
+
36546
+
36547
+ def _deserialize(self, params):
36548
+ self._Domain = params.get("Domain")
36549
+ self._Status = params.get("Status")
36550
+ self._Edition = params.get("Edition")
36551
+ memeber_set = set(params.keys())
36552
+ for name, value in vars(self).items():
36553
+ property_name = name[1:]
36554
+ if property_name in memeber_set:
36555
+ memeber_set.remove(property_name)
36556
+ if len(memeber_set) > 0:
36557
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
36558
+
36559
+
36560
+
36561
+ class ModifyProtectionStatusResponse(AbstractModel):
36562
+ """ModifyProtectionStatus返回参数结构体
36563
+
36564
+ """
36565
+
36566
+ def __init__(self):
36567
+ r"""
36568
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
36569
+ :type RequestId: str
36570
+ """
36571
+ self._RequestId = None
36572
+
36573
+ @property
36574
+ def RequestId(self):
36575
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
36576
+ :rtype: str
36577
+ """
36578
+ return self._RequestId
36579
+
36580
+ @RequestId.setter
36581
+ def RequestId(self, RequestId):
36582
+ self._RequestId = RequestId
36583
+
36584
+
36585
+ def _deserialize(self, params):
36586
+ self._RequestId = params.get("RequestId")
36587
+
36588
+
36589
+ class ModifySpartaProtectionModeRequest(AbstractModel):
36590
+ """ModifySpartaProtectionMode请求参数结构体
36591
+
36592
+ """
36593
+
36594
+ def __init__(self):
36595
+ r"""
36596
+ :param _Domain: 域名
36597
+ :type Domain: str
36598
+ :param _Mode: 防护状态:
36599
+ 10:规则观察&&AI关闭模式,11:规则观察&&AI观察模式,12:规则观察&&AI拦截模式
36600
+ 20:规则拦截&&AI关闭模式,21:规则拦截&&AI观察模式,22:规则拦截&&AI拦截模式
36601
+ :type Mode: int
36602
+ :param _Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
36603
+ :type Edition: str
36604
+ :param _Type: 0是修改规则引擎状态,1是修改AI的状态
36605
+ :type Type: int
36606
+ :param _InstanceID: 实例id
36607
+ :type InstanceID: str
36608
+ """
36609
+ self._Domain = None
36610
+ self._Mode = None
36611
+ self._Edition = None
36612
+ self._Type = None
36613
+ self._InstanceID = None
36614
+
36615
+ @property
36616
+ def Domain(self):
36617
+ """域名
36618
+ :rtype: str
36619
+ """
36620
+ return self._Domain
36621
+
36622
+ @Domain.setter
36623
+ def Domain(self, Domain):
36624
+ self._Domain = Domain
36625
+
36626
+ @property
36627
+ def Mode(self):
36628
+ """防护状态:
36629
+ 10:规则观察&&AI关闭模式,11:规则观察&&AI观察模式,12:规则观察&&AI拦截模式
36630
+ 20:规则拦截&&AI关闭模式,21:规则拦截&&AI观察模式,22:规则拦截&&AI拦截模式
36631
+ :rtype: int
36632
+ """
36633
+ return self._Mode
36634
+
36635
+ @Mode.setter
36636
+ def Mode(self, Mode):
36637
+ self._Mode = Mode
36638
+
36639
+ @property
36640
+ def Edition(self):
36641
+ """WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
36642
+ :rtype: str
36643
+ """
36644
+ return self._Edition
36645
+
36646
+ @Edition.setter
36647
+ def Edition(self, Edition):
36648
+ self._Edition = Edition
36649
+
36650
+ @property
36651
+ def Type(self):
36652
+ """0是修改规则引擎状态,1是修改AI的状态
36653
+ :rtype: int
36654
+ """
36655
+ return self._Type
36656
+
36657
+ @Type.setter
36658
+ def Type(self, Type):
36659
+ self._Type = Type
36660
+
36661
+ @property
36662
+ def InstanceID(self):
36663
+ """实例id
36664
+ :rtype: str
36665
+ """
36666
+ return self._InstanceID
36667
+
36668
+ @InstanceID.setter
36669
+ def InstanceID(self, InstanceID):
36670
+ self._InstanceID = InstanceID
36671
+
36672
+
36673
+ def _deserialize(self, params):
36674
+ self._Domain = params.get("Domain")
36675
+ self._Mode = params.get("Mode")
36676
+ self._Edition = params.get("Edition")
36677
+ self._Type = params.get("Type")
36678
+ self._InstanceID = params.get("InstanceID")
36679
+ memeber_set = set(params.keys())
36680
+ for name, value in vars(self).items():
36681
+ property_name = name[1:]
36682
+ if property_name in memeber_set:
36683
+ memeber_set.remove(property_name)
36684
+ if len(memeber_set) > 0:
36685
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
36686
+
36687
+
36688
+
36689
+ class ModifySpartaProtectionModeResponse(AbstractModel):
36690
+ """ModifySpartaProtectionMode返回参数结构体
36691
+
36692
+ """
36693
+
36694
+ def __init__(self):
36695
+ r"""
36696
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
36697
+ :type RequestId: str
36698
+ """
36699
+ self._RequestId = None
36700
+
36701
+ @property
36702
+ def RequestId(self):
36703
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
36704
+ :rtype: str
36705
+ """
36706
+ return self._RequestId
36707
+
36708
+ @RequestId.setter
36709
+ def RequestId(self, RequestId):
36710
+ self._RequestId = RequestId
36711
+
36712
+
36713
+ def _deserialize(self, params):
36714
+ self._RequestId = params.get("RequestId")
36715
+
36716
+
36717
+ class ModifySpartaProtectionRequest(AbstractModel):
36718
+ """ModifySpartaProtection请求参数结构体
36719
+
36720
+ """
36721
+
36722
+ def __init__(self):
36723
+ r"""
36724
+ :param _Domain: 域名
36725
+ :type Domain: str
36726
+ :param _DomainId: 必填项。域名唯一ID
36727
+ :type DomainId: str
36728
+ :param _InstanceID: 必填项。域名所属实例id
36729
+ :type InstanceID: str
36730
+ :param _CertType: 证书类型。0:仅配置HTTP监听端口,没有证书1:证书来源为自有证书2:证书来源为托管证书
36731
+ :type CertType: int
35904
36732
  :param _Cert: CertType为1时,需要填充此参数,表示自有证书的证书链
35905
36733
  :type Cert: str
35906
36734
  :param _PrivateKey: CertType为1时,需要填充此参数,表示自有证书的私钥
@@ -37280,79 +38108,394 @@ class ModifyWafThreatenIntelligenceRequest(AbstractModel):
37280
38108
 
37281
38109
 
37282
38110
 
37283
- class ModifyWafThreatenIntelligenceResponse(AbstractModel):
37284
- """ModifyWafThreatenIntelligence返回参数结构体
38111
+ class ModifyWafThreatenIntelligenceResponse(AbstractModel):
38112
+ """ModifyWafThreatenIntelligence返回参数结构体
38113
+
38114
+ """
38115
+
38116
+ def __init__(self):
38117
+ r"""
38118
+ :param _WafThreatenIntelligenceDetails: 当前WAF威胁情报封禁模块详情
38119
+ :type WafThreatenIntelligenceDetails: :class:`tencentcloud.waf.v20180125.models.WafThreatenIntelligenceDetails`
38120
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
38121
+ :type RequestId: str
38122
+ """
38123
+ self._WafThreatenIntelligenceDetails = None
38124
+ self._RequestId = None
38125
+
38126
+ @property
38127
+ def WafThreatenIntelligenceDetails(self):
38128
+ """当前WAF威胁情报封禁模块详情
38129
+ :rtype: :class:`tencentcloud.waf.v20180125.models.WafThreatenIntelligenceDetails`
38130
+ """
38131
+ return self._WafThreatenIntelligenceDetails
38132
+
38133
+ @WafThreatenIntelligenceDetails.setter
38134
+ def WafThreatenIntelligenceDetails(self, WafThreatenIntelligenceDetails):
38135
+ self._WafThreatenIntelligenceDetails = WafThreatenIntelligenceDetails
38136
+
38137
+ @property
38138
+ def RequestId(self):
38139
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
38140
+ :rtype: str
38141
+ """
38142
+ return self._RequestId
38143
+
38144
+ @RequestId.setter
38145
+ def RequestId(self, RequestId):
38146
+ self._RequestId = RequestId
38147
+
38148
+
38149
+ def _deserialize(self, params):
38150
+ if params.get("WafThreatenIntelligenceDetails") is not None:
38151
+ self._WafThreatenIntelligenceDetails = WafThreatenIntelligenceDetails()
38152
+ self._WafThreatenIntelligenceDetails._deserialize(params.get("WafThreatenIntelligenceDetails"))
38153
+ self._RequestId = params.get("RequestId")
38154
+
38155
+
38156
+ class ModifyWebshellStatusRequest(AbstractModel):
38157
+ """ModifyWebshellStatus请求参数结构体
38158
+
38159
+ """
38160
+
38161
+ def __init__(self):
38162
+ r"""
38163
+ :param _Webshell: 域名webshell状态
38164
+ :type Webshell: :class:`tencentcloud.waf.v20180125.models.WebshellStatus`
38165
+ """
38166
+ self._Webshell = None
38167
+
38168
+ @property
38169
+ def Webshell(self):
38170
+ """域名webshell状态
38171
+ :rtype: :class:`tencentcloud.waf.v20180125.models.WebshellStatus`
38172
+ """
38173
+ return self._Webshell
38174
+
38175
+ @Webshell.setter
38176
+ def Webshell(self, Webshell):
38177
+ self._Webshell = Webshell
38178
+
38179
+
38180
+ def _deserialize(self, params):
38181
+ if params.get("Webshell") is not None:
38182
+ self._Webshell = WebshellStatus()
38183
+ self._Webshell._deserialize(params.get("Webshell"))
38184
+ memeber_set = set(params.keys())
38185
+ for name, value in vars(self).items():
38186
+ property_name = name[1:]
38187
+ if property_name in memeber_set:
38188
+ memeber_set.remove(property_name)
38189
+ if len(memeber_set) > 0:
38190
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
38191
+
38192
+
38193
+
38194
+ class ModifyWebshellStatusResponse(AbstractModel):
38195
+ """ModifyWebshellStatus返回参数结构体
38196
+
38197
+ """
38198
+
38199
+ def __init__(self):
38200
+ r"""
38201
+ :param _Success: 成功的状态码,需要JSON解码后再使用,返回的格式是{"域名":"状态"},成功的状态码为Success,其它的为失败的状态码(yunapi定义的错误码)
38202
+ :type Success: :class:`tencentcloud.waf.v20180125.models.ResponseCode`
38203
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
38204
+ :type RequestId: str
38205
+ """
38206
+ self._Success = None
38207
+ self._RequestId = None
38208
+
38209
+ @property
38210
+ def Success(self):
38211
+ """成功的状态码,需要JSON解码后再使用,返回的格式是{"域名":"状态"},成功的状态码为Success,其它的为失败的状态码(yunapi定义的错误码)
38212
+ :rtype: :class:`tencentcloud.waf.v20180125.models.ResponseCode`
38213
+ """
38214
+ return self._Success
38215
+
38216
+ @Success.setter
38217
+ def Success(self, Success):
38218
+ self._Success = Success
38219
+
38220
+ @property
38221
+ def RequestId(self):
38222
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
38223
+ :rtype: str
38224
+ """
38225
+ return self._RequestId
38226
+
38227
+ @RequestId.setter
38228
+ def RequestId(self, RequestId):
38229
+ self._RequestId = RequestId
38230
+
38231
+
38232
+ def _deserialize(self, params):
38233
+ if params.get("Success") is not None:
38234
+ self._Success = ResponseCode()
38235
+ self._Success._deserialize(params.get("Success"))
38236
+ self._RequestId = params.get("RequestId")
38237
+
38238
+
38239
+ class NetworkConfig(AbstractModel):
38240
+ """实例的网络配置
38241
+
38242
+ """
38243
+
38244
+ def __init__(self):
38245
+ r"""
38246
+ :param _AntiDDosEip: 高防EIP地址
38247
+ :type AntiDDosEip: str
38248
+ :param _AntiDDosEipStatus: 高防EIP绑定状态。
38249
+ 0:解绑
38250
+ 1:绑定
38251
+ :type AntiDDosEipStatus: int
38252
+ :param _VipStatus: WAF原生VIP绑定状态。
38253
+ 0:解绑
38254
+ 1:绑定
38255
+ :type VipStatus: int
38256
+ """
38257
+ self._AntiDDosEip = None
38258
+ self._AntiDDosEipStatus = None
38259
+ self._VipStatus = None
38260
+
38261
+ @property
38262
+ def AntiDDosEip(self):
38263
+ """高防EIP地址
38264
+ :rtype: str
38265
+ """
38266
+ return self._AntiDDosEip
38267
+
38268
+ @AntiDDosEip.setter
38269
+ def AntiDDosEip(self, AntiDDosEip):
38270
+ self._AntiDDosEip = AntiDDosEip
38271
+
38272
+ @property
38273
+ def AntiDDosEipStatus(self):
38274
+ """高防EIP绑定状态。
38275
+ 0:解绑
38276
+ 1:绑定
38277
+ :rtype: int
38278
+ """
38279
+ return self._AntiDDosEipStatus
38280
+
38281
+ @AntiDDosEipStatus.setter
38282
+ def AntiDDosEipStatus(self, AntiDDosEipStatus):
38283
+ self._AntiDDosEipStatus = AntiDDosEipStatus
38284
+
38285
+ @property
38286
+ def VipStatus(self):
38287
+ """WAF原生VIP绑定状态。
38288
+ 0:解绑
38289
+ 1:绑定
38290
+ :rtype: int
38291
+ """
38292
+ return self._VipStatus
38293
+
38294
+ @VipStatus.setter
38295
+ def VipStatus(self, VipStatus):
38296
+ self._VipStatus = VipStatus
38297
+
38298
+
38299
+ def _deserialize(self, params):
38300
+ self._AntiDDosEip = params.get("AntiDDosEip")
38301
+ self._AntiDDosEipStatus = params.get("AntiDDosEipStatus")
38302
+ self._VipStatus = params.get("VipStatus")
38303
+ memeber_set = set(params.keys())
38304
+ for name, value in vars(self).items():
38305
+ property_name = name[1:]
38306
+ if property_name in memeber_set:
38307
+ memeber_set.remove(property_name)
38308
+ if len(memeber_set) > 0:
38309
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
38310
+
38311
+
38312
+
38313
+ class OwaspRule(AbstractModel):
38314
+ """Owasp规则
38315
+
38316
+ """
38317
+
38318
+ def __init__(self):
38319
+ r"""
38320
+ :param _RuleId: 规则ID
38321
+ :type RuleId: int
38322
+ :param _Description: 规则描述
38323
+ :type Description: str
38324
+ :param _Status: 规则开关,0:关闭、1:开启、2:只观察
38325
+ :type Status: int
38326
+ :param _Level: 规则的防护等级,100:宽松、200:正常、300:严格、400:超严格
38327
+ :type Level: int
38328
+ :param _VulLevel: 威胁等级,0:未知,100:低危,200:中危,300:高危,400:危急
38329
+ :type VulLevel: int
38330
+ :param _CveID: CVE ID
38331
+ :type CveID: str
38332
+ :param _TypeId: 规则所属的类型ID
38333
+ :type TypeId: int
38334
+ :param _CreateTime: 创建时间
38335
+ :type CreateTime: str
38336
+ :param _ModifyTime: 更新时间
38337
+ :type ModifyTime: str
38338
+ :param _Locked: 是否被锁定
38339
+ :type Locked: int
38340
+ :param _Reason: 修改原因
38341
+ 0:无(兼容记录为空)
38342
+ 1:业务自身特性误报避免
38343
+ 2:规则误报上报
38344
+ 3:核心业务规则灰度
38345
+ 4:其它
38346
+ :type Reason: int
38347
+ """
38348
+ self._RuleId = None
38349
+ self._Description = None
38350
+ self._Status = None
38351
+ self._Level = None
38352
+ self._VulLevel = None
38353
+ self._CveID = None
38354
+ self._TypeId = None
38355
+ self._CreateTime = None
38356
+ self._ModifyTime = None
38357
+ self._Locked = None
38358
+ self._Reason = None
38359
+
38360
+ @property
38361
+ def RuleId(self):
38362
+ """规则ID
38363
+ :rtype: int
38364
+ """
38365
+ return self._RuleId
38366
+
38367
+ @RuleId.setter
38368
+ def RuleId(self, RuleId):
38369
+ self._RuleId = RuleId
38370
+
38371
+ @property
38372
+ def Description(self):
38373
+ """规则描述
38374
+ :rtype: str
38375
+ """
38376
+ return self._Description
38377
+
38378
+ @Description.setter
38379
+ def Description(self, Description):
38380
+ self._Description = Description
38381
+
38382
+ @property
38383
+ def Status(self):
38384
+ """规则开关,0:关闭、1:开启、2:只观察
38385
+ :rtype: int
38386
+ """
38387
+ return self._Status
37285
38388
 
37286
- """
38389
+ @Status.setter
38390
+ def Status(self, Status):
38391
+ self._Status = Status
37287
38392
 
37288
- def __init__(self):
37289
- r"""
37290
- :param _WafThreatenIntelligenceDetails: 当前WAF威胁情报封禁模块详情
37291
- :type WafThreatenIntelligenceDetails: :class:`tencentcloud.waf.v20180125.models.WafThreatenIntelligenceDetails`
37292
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
37293
- :type RequestId: str
38393
+ @property
38394
+ def Level(self):
38395
+ """规则的防护等级,100:宽松、200:正常、300:严格、400:超严格
38396
+ :rtype: int
37294
38397
  """
37295
- self._WafThreatenIntelligenceDetails = None
37296
- self._RequestId = None
38398
+ return self._Level
38399
+
38400
+ @Level.setter
38401
+ def Level(self, Level):
38402
+ self._Level = Level
37297
38403
 
37298
38404
  @property
37299
- def WafThreatenIntelligenceDetails(self):
37300
- """当前WAF威胁情报封禁模块详情
37301
- :rtype: :class:`tencentcloud.waf.v20180125.models.WafThreatenIntelligenceDetails`
38405
+ def VulLevel(self):
38406
+ """威胁等级,0:未知,100:低危,200:中危,300:高危,400:危急
38407
+ :rtype: int
37302
38408
  """
37303
- return self._WafThreatenIntelligenceDetails
38409
+ return self._VulLevel
37304
38410
 
37305
- @WafThreatenIntelligenceDetails.setter
37306
- def WafThreatenIntelligenceDetails(self, WafThreatenIntelligenceDetails):
37307
- self._WafThreatenIntelligenceDetails = WafThreatenIntelligenceDetails
38411
+ @VulLevel.setter
38412
+ def VulLevel(self, VulLevel):
38413
+ self._VulLevel = VulLevel
37308
38414
 
37309
38415
  @property
37310
- def RequestId(self):
37311
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
38416
+ def CveID(self):
38417
+ """CVE ID
37312
38418
  :rtype: str
37313
38419
  """
37314
- return self._RequestId
38420
+ return self._CveID
37315
38421
 
37316
- @RequestId.setter
37317
- def RequestId(self, RequestId):
37318
- self._RequestId = RequestId
38422
+ @CveID.setter
38423
+ def CveID(self, CveID):
38424
+ self._CveID = CveID
37319
38425
 
38426
+ @property
38427
+ def TypeId(self):
38428
+ """规则所属的类型ID
38429
+ :rtype: int
38430
+ """
38431
+ return self._TypeId
37320
38432
 
37321
- def _deserialize(self, params):
37322
- if params.get("WafThreatenIntelligenceDetails") is not None:
37323
- self._WafThreatenIntelligenceDetails = WafThreatenIntelligenceDetails()
37324
- self._WafThreatenIntelligenceDetails._deserialize(params.get("WafThreatenIntelligenceDetails"))
37325
- self._RequestId = params.get("RequestId")
38433
+ @TypeId.setter
38434
+ def TypeId(self, TypeId):
38435
+ self._TypeId = TypeId
37326
38436
 
38437
+ @property
38438
+ def CreateTime(self):
38439
+ """创建时间
38440
+ :rtype: str
38441
+ """
38442
+ return self._CreateTime
37327
38443
 
37328
- class ModifyWebshellStatusRequest(AbstractModel):
37329
- """ModifyWebshellStatus请求参数结构体
38444
+ @CreateTime.setter
38445
+ def CreateTime(self, CreateTime):
38446
+ self._CreateTime = CreateTime
37330
38447
 
37331
- """
38448
+ @property
38449
+ def ModifyTime(self):
38450
+ """更新时间
38451
+ :rtype: str
38452
+ """
38453
+ return self._ModifyTime
37332
38454
 
37333
- def __init__(self):
37334
- r"""
37335
- :param _Webshell: 域名webshell状态
37336
- :type Webshell: :class:`tencentcloud.waf.v20180125.models.WebshellStatus`
38455
+ @ModifyTime.setter
38456
+ def ModifyTime(self, ModifyTime):
38457
+ self._ModifyTime = ModifyTime
38458
+
38459
+ @property
38460
+ def Locked(self):
38461
+ """是否被锁定
38462
+ :rtype: int
37337
38463
  """
37338
- self._Webshell = None
38464
+ return self._Locked
38465
+
38466
+ @Locked.setter
38467
+ def Locked(self, Locked):
38468
+ self._Locked = Locked
37339
38469
 
37340
38470
  @property
37341
- def Webshell(self):
37342
- """域名webshell状态
37343
- :rtype: :class:`tencentcloud.waf.v20180125.models.WebshellStatus`
38471
+ def Reason(self):
38472
+ """修改原因
38473
+ 0:无(兼容记录为空)
38474
+ 1:业务自身特性误报避免
38475
+ 2:规则误报上报
38476
+ 3:核心业务规则灰度
38477
+ 4:其它
38478
+ :rtype: int
37344
38479
  """
37345
- return self._Webshell
38480
+ return self._Reason
37346
38481
 
37347
- @Webshell.setter
37348
- def Webshell(self, Webshell):
37349
- self._Webshell = Webshell
38482
+ @Reason.setter
38483
+ def Reason(self, Reason):
38484
+ self._Reason = Reason
37350
38485
 
37351
38486
 
37352
38487
  def _deserialize(self, params):
37353
- if params.get("Webshell") is not None:
37354
- self._Webshell = WebshellStatus()
37355
- self._Webshell._deserialize(params.get("Webshell"))
38488
+ self._RuleId = params.get("RuleId")
38489
+ self._Description = params.get("Description")
38490
+ self._Status = params.get("Status")
38491
+ self._Level = params.get("Level")
38492
+ self._VulLevel = params.get("VulLevel")
38493
+ self._CveID = params.get("CveID")
38494
+ self._TypeId = params.get("TypeId")
38495
+ self._CreateTime = params.get("CreateTime")
38496
+ self._ModifyTime = params.get("ModifyTime")
38497
+ self._Locked = params.get("Locked")
38498
+ self._Reason = params.get("Reason")
37356
38499
  memeber_set = set(params.keys())
37357
38500
  for name, value in vars(self).items():
37358
38501
  property_name = name[1:]
@@ -37363,115 +38506,154 @@ class ModifyWebshellStatusRequest(AbstractModel):
37363
38506
 
37364
38507
 
37365
38508
 
37366
- class ModifyWebshellStatusResponse(AbstractModel):
37367
- """ModifyWebshellStatus返回参数结构体
38509
+ class OwaspRuleType(AbstractModel):
38510
+ """Owasp规则类型
37368
38511
 
37369
38512
  """
37370
38513
 
37371
38514
  def __init__(self):
37372
38515
  r"""
37373
- :param _Success: 成功的状态码,需要JSON解码后再使用,返回的格式是{"域名":"状态"},成功的状态码为Success,其它的为失败的状态码(yunapi定义的错误码)
37374
- :type Success: :class:`tencentcloud.waf.v20180125.models.ResponseCode`
37375
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
37376
- :type RequestId: str
38516
+ :param _TypeId: 类型ID
38517
+ :type TypeId: int
38518
+ :param _TypeName: 类型名称
38519
+ :type TypeName: str
38520
+ :param _Description: 类型描述
38521
+
38522
+ :type Description: str
38523
+ :param _Classification: 类型分类
38524
+ :type Classification: str
38525
+ :param _Action: 规则类型的防护模式,0:观察、1:拦截
38526
+ :type Action: int
38527
+ :param _Level: 规则类型的防护等级,100:宽松、200:正常、300:严格、400:超严格
38528
+ :type Level: int
38529
+ :param _Status: 规则类型的开关状态,0:关闭、1:开启
38530
+ :type Status: int
38531
+ :param _TotalRule: 规则类型下的所有规则总是
38532
+ :type TotalRule: int
38533
+ :param _ActiveRule: 规则类型下的启用的规则总数
38534
+ :type ActiveRule: int
37377
38535
  """
37378
- self._Success = None
37379
- self._RequestId = None
38536
+ self._TypeId = None
38537
+ self._TypeName = None
38538
+ self._Description = None
38539
+ self._Classification = None
38540
+ self._Action = None
38541
+ self._Level = None
38542
+ self._Status = None
38543
+ self._TotalRule = None
38544
+ self._ActiveRule = None
37380
38545
 
37381
38546
  @property
37382
- def Success(self):
37383
- """成功的状态码,需要JSON解码后再使用,返回的格式是{"域名":"状态"},成功的状态码为Success,其它的为失败的状态码(yunapi定义的错误码)
37384
- :rtype: :class:`tencentcloud.waf.v20180125.models.ResponseCode`
38547
+ def TypeId(self):
38548
+ """类型ID
38549
+ :rtype: int
37385
38550
  """
37386
- return self._Success
38551
+ return self._TypeId
37387
38552
 
37388
- @Success.setter
37389
- def Success(self, Success):
37390
- self._Success = Success
38553
+ @TypeId.setter
38554
+ def TypeId(self, TypeId):
38555
+ self._TypeId = TypeId
37391
38556
 
37392
38557
  @property
37393
- def RequestId(self):
37394
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
38558
+ def TypeName(self):
38559
+ """类型名称
37395
38560
  :rtype: str
37396
38561
  """
37397
- return self._RequestId
38562
+ return self._TypeName
37398
38563
 
37399
- @RequestId.setter
37400
- def RequestId(self, RequestId):
37401
- self._RequestId = RequestId
38564
+ @TypeName.setter
38565
+ def TypeName(self, TypeName):
38566
+ self._TypeName = TypeName
37402
38567
 
38568
+ @property
38569
+ def Description(self):
38570
+ """类型描述
37403
38571
 
37404
- def _deserialize(self, params):
37405
- if params.get("Success") is not None:
37406
- self._Success = ResponseCode()
37407
- self._Success._deserialize(params.get("Success"))
37408
- self._RequestId = params.get("RequestId")
38572
+ :rtype: str
38573
+ """
38574
+ return self._Description
37409
38575
 
38576
+ @Description.setter
38577
+ def Description(self, Description):
38578
+ self._Description = Description
37410
38579
 
37411
- class NetworkConfig(AbstractModel):
37412
- """实例的网络配置
38580
+ @property
38581
+ def Classification(self):
38582
+ """类型分类
38583
+ :rtype: str
38584
+ """
38585
+ return self._Classification
37413
38586
 
37414
- """
38587
+ @Classification.setter
38588
+ def Classification(self, Classification):
38589
+ self._Classification = Classification
37415
38590
 
37416
- def __init__(self):
37417
- r"""
37418
- :param _AntiDDosEip: 高防EIP地址
37419
- :type AntiDDosEip: str
37420
- :param _AntiDDosEipStatus: 高防EIP绑定状态。
37421
- 0:解绑
37422
- 1:绑定
37423
- :type AntiDDosEipStatus: int
37424
- :param _VipStatus: WAF原生VIP绑定状态。
37425
- 0:解绑
37426
- 1:绑定
37427
- :type VipStatus: int
38591
+ @property
38592
+ def Action(self):
38593
+ """规则类型的防护模式,0:观察、1:拦截
38594
+ :rtype: int
37428
38595
  """
37429
- self._AntiDDosEip = None
37430
- self._AntiDDosEipStatus = None
37431
- self._VipStatus = None
38596
+ return self._Action
38597
+
38598
+ @Action.setter
38599
+ def Action(self, Action):
38600
+ self._Action = Action
37432
38601
 
37433
38602
  @property
37434
- def AntiDDosEip(self):
37435
- """高防EIP地址
37436
- :rtype: str
38603
+ def Level(self):
38604
+ """规则类型的防护等级,100:宽松、200:正常、300:严格、400:超严格
38605
+ :rtype: int
37437
38606
  """
37438
- return self._AntiDDosEip
38607
+ return self._Level
37439
38608
 
37440
- @AntiDDosEip.setter
37441
- def AntiDDosEip(self, AntiDDosEip):
37442
- self._AntiDDosEip = AntiDDosEip
38609
+ @Level.setter
38610
+ def Level(self, Level):
38611
+ self._Level = Level
37443
38612
 
37444
38613
  @property
37445
- def AntiDDosEipStatus(self):
37446
- """高防EIP绑定状态。
37447
- 0:解绑
37448
- 1:绑定
38614
+ def Status(self):
38615
+ """规则类型的开关状态,0:关闭、1:开启
37449
38616
  :rtype: int
37450
38617
  """
37451
- return self._AntiDDosEipStatus
38618
+ return self._Status
37452
38619
 
37453
- @AntiDDosEipStatus.setter
37454
- def AntiDDosEipStatus(self, AntiDDosEipStatus):
37455
- self._AntiDDosEipStatus = AntiDDosEipStatus
38620
+ @Status.setter
38621
+ def Status(self, Status):
38622
+ self._Status = Status
37456
38623
 
37457
38624
  @property
37458
- def VipStatus(self):
37459
- """WAF原生VIP绑定状态。
37460
- 0:解绑
37461
- 1:绑定
38625
+ def TotalRule(self):
38626
+ """规则类型下的所有规则总是
37462
38627
  :rtype: int
37463
38628
  """
37464
- return self._VipStatus
38629
+ return self._TotalRule
37465
38630
 
37466
- @VipStatus.setter
37467
- def VipStatus(self, VipStatus):
37468
- self._VipStatus = VipStatus
38631
+ @TotalRule.setter
38632
+ def TotalRule(self, TotalRule):
38633
+ self._TotalRule = TotalRule
38634
+
38635
+ @property
38636
+ def ActiveRule(self):
38637
+ """规则类型下的启用的规则总数
38638
+ :rtype: int
38639
+ """
38640
+ return self._ActiveRule
38641
+
38642
+ @ActiveRule.setter
38643
+ def ActiveRule(self, ActiveRule):
38644
+ self._ActiveRule = ActiveRule
37469
38645
 
37470
38646
 
37471
38647
  def _deserialize(self, params):
37472
- self._AntiDDosEip = params.get("AntiDDosEip")
37473
- self._AntiDDosEipStatus = params.get("AntiDDosEipStatus")
37474
- self._VipStatus = params.get("VipStatus")
38648
+ self._TypeId = params.get("TypeId")
38649
+ self._TypeName = params.get("TypeName")
38650
+ self._Description = params.get("Description")
38651
+ self._Classification = params.get("Classification")
38652
+ self._Action = params.get("Action")
38653
+ self._Level = params.get("Level")
38654
+ self._Status = params.get("Status")
38655
+ self._TotalRule = params.get("TotalRule")
38656
+ self._ActiveRule = params.get("ActiveRule")
37475
38657
  memeber_set = set(params.keys())
37476
38658
  for name, value in vars(self).items():
37477
38659
  property_name = name[1:]