tencentcloud-sdk-python-waf 3.0.1256__tar.gz → 3.0.1258__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-waf-3.0.1256 → tencentcloud-sdk-python-waf-3.0.1258}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-waf-3.0.1256 → tencentcloud-sdk-python-waf-3.0.1258}/setup.py +1 -1
  3. {tencentcloud-sdk-python-waf-3.0.1256 → tencentcloud-sdk-python-waf-3.0.1258}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-waf-3.0.1256 → tencentcloud-sdk-python-waf-3.0.1258}/tencentcloud/waf/v20180125/models.py +99 -0
  5. {tencentcloud-sdk-python-waf-3.0.1256 → tencentcloud-sdk-python-waf-3.0.1258}/tencentcloud/waf/v20180125/waf_client.py +23 -0
  6. {tencentcloud-sdk-python-waf-3.0.1256 → tencentcloud-sdk-python-waf-3.0.1258}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-waf-3.0.1258/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-waf-3.0.1256/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-waf-3.0.1256 → tencentcloud-sdk-python-waf-3.0.1258}/README.rst +0 -0
  10. {tencentcloud-sdk-python-waf-3.0.1256 → tencentcloud-sdk-python-waf-3.0.1258}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-waf-3.0.1256 → tencentcloud-sdk-python-waf-3.0.1258}/tencentcloud/waf/__init__.py +0 -0
  12. {tencentcloud-sdk-python-waf-3.0.1256 → tencentcloud-sdk-python-waf-3.0.1258}/tencentcloud/waf/v20180125/__init__.py +0 -0
  13. {tencentcloud-sdk-python-waf-3.0.1256 → tencentcloud-sdk-python-waf-3.0.1258}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-waf-3.0.1256 → tencentcloud-sdk-python-waf-3.0.1258}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-waf-3.0.1256 → tencentcloud-sdk-python-waf-3.0.1258}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-waf-3.0.1256 → tencentcloud-sdk-python-waf-3.0.1258}/tencentcloud_sdk_python_waf.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-waf
3
- Version: 3.0.1256
3
+ Version: 3.0.1258
4
4
  Summary: Tencent Cloud Waf SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-waf',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1256"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1258"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Waf SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1256'
17
+ __version__ = '3.0.1258'
@@ -26382,6 +26382,105 @@ class ModifyUserSignatureRuleResponse(AbstractModel):
26382
26382
  self._RequestId = params.get("RequestId")
26383
26383
 
26384
26384
 
26385
+ class ModifyUserSignatureRuleV2Request(AbstractModel):
26386
+ """ModifyUserSignatureRuleV2请求参数结构体
26387
+
26388
+ """
26389
+
26390
+ def __init__(self):
26391
+ r"""
26392
+ :param _Domain: 域名
26393
+ :type Domain: str
26394
+ :param _MainClassID: 主类id
26395
+ :type MainClassID: str
26396
+ :param _Status: 主类开关0=关闭,1=开启,2=只告警
26397
+ :type Status: int
26398
+ :param _RuleID: 下发修改的规则列表
26399
+ :type RuleID: list of ReqUserRule
26400
+ """
26401
+ self._Domain = None
26402
+ self._MainClassID = None
26403
+ self._Status = None
26404
+ self._RuleID = None
26405
+
26406
+ @property
26407
+ def Domain(self):
26408
+ return self._Domain
26409
+
26410
+ @Domain.setter
26411
+ def Domain(self, Domain):
26412
+ self._Domain = Domain
26413
+
26414
+ @property
26415
+ def MainClassID(self):
26416
+ return self._MainClassID
26417
+
26418
+ @MainClassID.setter
26419
+ def MainClassID(self, MainClassID):
26420
+ self._MainClassID = MainClassID
26421
+
26422
+ @property
26423
+ def Status(self):
26424
+ return self._Status
26425
+
26426
+ @Status.setter
26427
+ def Status(self, Status):
26428
+ self._Status = Status
26429
+
26430
+ @property
26431
+ def RuleID(self):
26432
+ return self._RuleID
26433
+
26434
+ @RuleID.setter
26435
+ def RuleID(self, RuleID):
26436
+ self._RuleID = RuleID
26437
+
26438
+
26439
+ def _deserialize(self, params):
26440
+ self._Domain = params.get("Domain")
26441
+ self._MainClassID = params.get("MainClassID")
26442
+ self._Status = params.get("Status")
26443
+ if params.get("RuleID") is not None:
26444
+ self._RuleID = []
26445
+ for item in params.get("RuleID"):
26446
+ obj = ReqUserRule()
26447
+ obj._deserialize(item)
26448
+ self._RuleID.append(obj)
26449
+ memeber_set = set(params.keys())
26450
+ for name, value in vars(self).items():
26451
+ property_name = name[1:]
26452
+ if property_name in memeber_set:
26453
+ memeber_set.remove(property_name)
26454
+ if len(memeber_set) > 0:
26455
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
26456
+
26457
+
26458
+
26459
+ class ModifyUserSignatureRuleV2Response(AbstractModel):
26460
+ """ModifyUserSignatureRuleV2返回参数结构体
26461
+
26462
+ """
26463
+
26464
+ def __init__(self):
26465
+ r"""
26466
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
26467
+ :type RequestId: str
26468
+ """
26469
+ self._RequestId = None
26470
+
26471
+ @property
26472
+ def RequestId(self):
26473
+ return self._RequestId
26474
+
26475
+ @RequestId.setter
26476
+ def RequestId(self, RequestId):
26477
+ self._RequestId = RequestId
26478
+
26479
+
26480
+ def _deserialize(self, params):
26481
+ self._RequestId = params.get("RequestId")
26482
+
26483
+
26385
26484
  class ModifyWafAutoDenyRulesRequest(AbstractModel):
26386
26485
  """ModifyWafAutoDenyRules请求参数结构体
26387
26486
 
@@ -3046,6 +3046,29 @@ class WafClient(AbstractClient):
3046
3046
  raise TencentCloudSDKException(type(e).__name__, str(e))
3047
3047
 
3048
3048
 
3049
+ def ModifyUserSignatureRuleV2(self, request):
3050
+ """修改用户防护规则,开启关闭具体的某条规则
3051
+
3052
+ :param request: Request instance for ModifyUserSignatureRuleV2.
3053
+ :type request: :class:`tencentcloud.waf.v20180125.models.ModifyUserSignatureRuleV2Request`
3054
+ :rtype: :class:`tencentcloud.waf.v20180125.models.ModifyUserSignatureRuleV2Response`
3055
+
3056
+ """
3057
+ try:
3058
+ params = request._serialize()
3059
+ headers = request.headers
3060
+ body = self.call("ModifyUserSignatureRuleV2", params, headers=headers)
3061
+ response = json.loads(body)
3062
+ model = models.ModifyUserSignatureRuleV2Response()
3063
+ model._deserialize(response["Response"])
3064
+ return model
3065
+ except Exception as e:
3066
+ if isinstance(e, TencentCloudSDKException):
3067
+ raise
3068
+ else:
3069
+ raise TencentCloudSDKException(type(e).__name__, str(e))
3070
+
3071
+
3049
3072
  def ModifyWafAutoDenyRules(self, request):
3050
3073
  """修改ip惩罚规则
3051
3074
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-waf
3
- Version: 3.0.1256
3
+ Version: 3.0.1258
4
4
  Summary: Tencent Cloud Waf SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1258
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1256