tencentcloud-sdk-waf 3.0.1107 → 3.0.1123

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 931c225844c33cc7de39f23608b140e7de381363
4
- data.tar.gz: 9b027c143d26c25e998dd22dffee8f4ee3307aba
3
+ metadata.gz: 4af9b215e7b83be210988f406b2eacb3050ab1e9
4
+ data.tar.gz: 3b3c111eb20ab15f9167c1536ddd4d7087ee5f7e
5
5
  SHA512:
6
- metadata.gz: b5e376ebdbe16ef4877f3464b3e1785b555b1c02237901d6fd05626772062f53e3b4f1dc32479d1d4e42581ab94938000177b3f87ecb2804e13e27a9e29282a4
7
- data.tar.gz: f8210b52c113af36e5628084587147bc2aa5f77d31057ef4fe1da34ad16554e99668384db19eba258b9ef684817f5f04c2a47e74251a37087a81807940647045
6
+ metadata.gz: 1f70788bc56fc48bcd4c79582cde60a2a21e8c7d8e6b2c1dc26d9b30a26b0b83e1944d1dde8e2aa3819c3699cdf8d73cda06f909db0002c7ca300ed887592ba2
7
+ data.tar.gz: eb9f98d9b3ff8e287299cb60bc55ea838265bc2f790a40c2f7764331aa6cf4e4f4fa572ffef53885aafdea71dd17cec110f9acac2304769c1cdfd0658c1bf596
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1107
1
+ 3.0.1123
@@ -365,6 +365,30 @@ module TencentCloud
365
365
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
366
  end
367
367
 
368
+ # 添加规则引擎白名单
369
+
370
+ # @param request: Request instance for CreateOwaspWhiteRule.
371
+ # @type request: :class:`Tencentcloud::waf::V20180125::CreateOwaspWhiteRuleRequest`
372
+ # @rtype: :class:`Tencentcloud::waf::V20180125::CreateOwaspWhiteRuleResponse`
373
+ def CreateOwaspWhiteRule(request)
374
+ body = send_request('CreateOwaspWhiteRule', request.serialize)
375
+ response = JSON.parse(body)
376
+ if response['Response'].key?('Error') == false
377
+ model = CreateOwaspWhiteRuleResponse.new
378
+ model.deserialize(response['Response'])
379
+ model
380
+ else
381
+ code = response['Response']['Error']['Code']
382
+ message = response['Response']['Error']['Message']
383
+ reqid = response['Response']['RequestId']
384
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
385
+ end
386
+ rescue TencentCloud::Common::TencentCloudSDKException => e
387
+ raise e
388
+ rescue StandardError => e
389
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
+ end
391
+
368
392
  # 创建CKafka投递流任务
369
393
 
370
394
  # @param request: Request instance for CreatePostCKafkaFlow.
@@ -725,6 +749,54 @@ module TencentCloud
725
749
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
726
750
  end
727
751
 
752
+ # 解除门神规则的状态锁
753
+
754
+ # @param request: Request instance for DeleteOwaspRuleStatus.
755
+ # @type request: :class:`Tencentcloud::waf::V20180125::DeleteOwaspRuleStatusRequest`
756
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DeleteOwaspRuleStatusResponse`
757
+ def DeleteOwaspRuleStatus(request)
758
+ body = send_request('DeleteOwaspRuleStatus', request.serialize)
759
+ response = JSON.parse(body)
760
+ if response['Response'].key?('Error') == false
761
+ model = DeleteOwaspRuleStatusResponse.new
762
+ model.deserialize(response['Response'])
763
+ model
764
+ else
765
+ code = response['Response']['Error']['Code']
766
+ message = response['Response']['Error']['Message']
767
+ reqid = response['Response']['RequestId']
768
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
769
+ end
770
+ rescue TencentCloud::Common::TencentCloudSDKException => e
771
+ raise e
772
+ rescue StandardError => e
773
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
774
+ end
775
+
776
+ # 删除用户规则引擎白名单
777
+
778
+ # @param request: Request instance for DeleteOwaspWhiteRule.
779
+ # @type request: :class:`Tencentcloud::waf::V20180125::DeleteOwaspWhiteRuleRequest`
780
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DeleteOwaspWhiteRuleResponse`
781
+ def DeleteOwaspWhiteRule(request)
782
+ body = send_request('DeleteOwaspWhiteRule', request.serialize)
783
+ response = JSON.parse(body)
784
+ if response['Response'].key?('Error') == false
785
+ model = DeleteOwaspWhiteRuleResponse.new
786
+ model.deserialize(response['Response'])
787
+ model
788
+ else
789
+ code = response['Response']['Error']['Code']
790
+ message = response['Response']['Error']['Message']
791
+ reqid = response['Response']['RequestId']
792
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
793
+ end
794
+ rescue TencentCloud::Common::TencentCloudSDKException => e
795
+ raise e
796
+ rescue StandardError => e
797
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
798
+ end
799
+
728
800
  # 删除CC攻击的session设置
729
801
 
730
802
  # @param request: Request instance for DeleteSession.
@@ -1829,6 +1901,78 @@ module TencentCloud
1829
1901
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1830
1902
  end
1831
1903
 
1904
+ # 查询规则引擎的规则类型列表
1905
+
1906
+ # @param request: Request instance for DescribeOwaspRuleTypes.
1907
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeOwaspRuleTypesRequest`
1908
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeOwaspRuleTypesResponse`
1909
+ def DescribeOwaspRuleTypes(request)
1910
+ body = send_request('DescribeOwaspRuleTypes', request.serialize)
1911
+ response = JSON.parse(body)
1912
+ if response['Response'].key?('Error') == false
1913
+ model = DescribeOwaspRuleTypesResponse.new
1914
+ model.deserialize(response['Response'])
1915
+ model
1916
+ else
1917
+ code = response['Response']['Error']['Code']
1918
+ message = response['Response']['Error']['Message']
1919
+ reqid = response['Response']['RequestId']
1920
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1921
+ end
1922
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1923
+ raise e
1924
+ rescue StandardError => e
1925
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1926
+ end
1927
+
1928
+ # 查询规则引擎的规则列表
1929
+
1930
+ # @param request: Request instance for DescribeOwaspRules.
1931
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeOwaspRulesRequest`
1932
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeOwaspRulesResponse`
1933
+ def DescribeOwaspRules(request)
1934
+ body = send_request('DescribeOwaspRules', request.serialize)
1935
+ response = JSON.parse(body)
1936
+ if response['Response'].key?('Error') == false
1937
+ model = DescribeOwaspRulesResponse.new
1938
+ model.deserialize(response['Response'])
1939
+ model
1940
+ else
1941
+ code = response['Response']['Error']['Code']
1942
+ message = response['Response']['Error']['Message']
1943
+ reqid = response['Response']['RequestId']
1944
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1945
+ end
1946
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1947
+ raise e
1948
+ rescue StandardError => e
1949
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1950
+ end
1951
+
1952
+ # 获取规则引擎白名单列表
1953
+
1954
+ # @param request: Request instance for DescribeOwaspWhiteRules.
1955
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeOwaspWhiteRulesRequest`
1956
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeOwaspWhiteRulesResponse`
1957
+ def DescribeOwaspWhiteRules(request)
1958
+ body = send_request('DescribeOwaspWhiteRules', request.serialize)
1959
+ response = JSON.parse(body)
1960
+ if response['Response'].key?('Error') == false
1961
+ model = DescribeOwaspWhiteRulesResponse.new
1962
+ model.deserialize(response['Response'])
1963
+ model
1964
+ else
1965
+ code = response['Response']['Error']['Code']
1966
+ message = response['Response']['Error']['Message']
1967
+ reqid = response['Response']['RequestId']
1968
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1969
+ end
1970
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1971
+ raise e
1972
+ rescue StandardError => e
1973
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1974
+ end
1975
+
1832
1976
  # 查询业务和攻击概要趋势
1833
1977
 
1834
1978
  # @param request: Request instance for DescribePeakPoints.
@@ -3464,6 +3608,126 @@ module TencentCloud
3464
3608
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3465
3609
  end
3466
3610
 
3611
+ # 更新规则的开关
3612
+
3613
+ # @param request: Request instance for ModifyOwaspRuleStatus.
3614
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleStatusRequest`
3615
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleStatusResponse`
3616
+ def ModifyOwaspRuleStatus(request)
3617
+ body = send_request('ModifyOwaspRuleStatus', request.serialize)
3618
+ response = JSON.parse(body)
3619
+ if response['Response'].key?('Error') == false
3620
+ model = ModifyOwaspRuleStatusResponse.new
3621
+ model.deserialize(response['Response'])
3622
+ model
3623
+ else
3624
+ code = response['Response']['Error']['Code']
3625
+ message = response['Response']['Error']['Message']
3626
+ reqid = response['Response']['RequestId']
3627
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3628
+ end
3629
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3630
+ raise e
3631
+ rescue StandardError => e
3632
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3633
+ end
3634
+
3635
+ # 更新规则类型的防护模式
3636
+
3637
+ # @param request: Request instance for ModifyOwaspRuleTypeAction.
3638
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleTypeActionRequest`
3639
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleTypeActionResponse`
3640
+ def ModifyOwaspRuleTypeAction(request)
3641
+ body = send_request('ModifyOwaspRuleTypeAction', request.serialize)
3642
+ response = JSON.parse(body)
3643
+ if response['Response'].key?('Error') == false
3644
+ model = ModifyOwaspRuleTypeActionResponse.new
3645
+ model.deserialize(response['Response'])
3646
+ model
3647
+ else
3648
+ code = response['Response']['Error']['Code']
3649
+ message = response['Response']['Error']['Message']
3650
+ reqid = response['Response']['RequestId']
3651
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3652
+ end
3653
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3654
+ raise e
3655
+ rescue StandardError => e
3656
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3657
+ end
3658
+
3659
+ # 更新规则类型的防护等级
3660
+
3661
+ # @param request: Request instance for ModifyOwaspRuleTypeLevel.
3662
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleTypeLevelRequest`
3663
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleTypeLevelResponse`
3664
+ def ModifyOwaspRuleTypeLevel(request)
3665
+ body = send_request('ModifyOwaspRuleTypeLevel', request.serialize)
3666
+ response = JSON.parse(body)
3667
+ if response['Response'].key?('Error') == false
3668
+ model = ModifyOwaspRuleTypeLevelResponse.new
3669
+ model.deserialize(response['Response'])
3670
+ model
3671
+ else
3672
+ code = response['Response']['Error']['Code']
3673
+ message = response['Response']['Error']['Message']
3674
+ reqid = response['Response']['RequestId']
3675
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3676
+ end
3677
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3678
+ raise e
3679
+ rescue StandardError => e
3680
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3681
+ end
3682
+
3683
+ # 更新规则类型的开关
3684
+
3685
+ # @param request: Request instance for ModifyOwaspRuleTypeStatus.
3686
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleTypeStatusRequest`
3687
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyOwaspRuleTypeStatusResponse`
3688
+ def ModifyOwaspRuleTypeStatus(request)
3689
+ body = send_request('ModifyOwaspRuleTypeStatus', request.serialize)
3690
+ response = JSON.parse(body)
3691
+ if response['Response'].key?('Error') == false
3692
+ model = ModifyOwaspRuleTypeStatusResponse.new
3693
+ model.deserialize(response['Response'])
3694
+ model
3695
+ else
3696
+ code = response['Response']['Error']['Code']
3697
+ message = response['Response']['Error']['Message']
3698
+ reqid = response['Response']['RequestId']
3699
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3700
+ end
3701
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3702
+ raise e
3703
+ rescue StandardError => e
3704
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3705
+ end
3706
+
3707
+ # 编辑规则引擎白名单
3708
+
3709
+ # @param request: Request instance for ModifyOwaspWhiteRule.
3710
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyOwaspWhiteRuleRequest`
3711
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyOwaspWhiteRuleResponse`
3712
+ def ModifyOwaspWhiteRule(request)
3713
+ body = send_request('ModifyOwaspWhiteRule', request.serialize)
3714
+ response = JSON.parse(body)
3715
+ if response['Response'].key?('Error') == false
3716
+ model = ModifyOwaspWhiteRuleResponse.new
3717
+ model.deserialize(response['Response'])
3718
+ model
3719
+ else
3720
+ code = response['Response']['Error']['Code']
3721
+ message = response['Response']['Error']['Message']
3722
+ reqid = response['Response']['RequestId']
3723
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3724
+ end
3725
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3726
+ raise e
3727
+ rescue StandardError => e
3728
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3729
+ end
3730
+
3467
3731
  # 开启、关闭WAF开关
3468
3732
 
3469
3733
  # @param request: Request instance for ModifyProtectionStatus.