tencentcloud-sdk-antiddos 1.0.254 → 1.0.255

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cf4e81acf85899c67ab4ff38cf6bd1ef7cd34d9
4
- data.tar.gz: 4b6d1e5d2d0754d462b8304e80f27cd0817e02c8
3
+ metadata.gz: 8da9f7b99564c7a518ff8818ba251466e2c4eb86
4
+ data.tar.gz: 7eef8723b82c03dd92f706198fc302ce076e2ce0
5
5
  SHA512:
6
- metadata.gz: f115dc4ca926b1dc74020ce77acf01cf83fc7d06ae32966171f2830968b1ece9e435e1d776ecd4fb4e46482e7401cf069c2d282e446425ce9767eb1f3c31d61a
7
- data.tar.gz: 9a14eda038390a32820de5fae4fc1688a8e27616389495d1e7a099e63380423ade53c0b9b73775651827f1f72de94a2e48b0ac7942bdff70e4c6a83f1a65fd35
6
+ metadata.gz: b333653f7c67d47c3037a8dc8cf3211e6fb7256b6e1181ea6949cbb42224f48f98c75eba7d59077b9a2edb2169d90fda8636561882b8e416ffc9941ec8221ca1
7
+ data.tar.gz: ee2dbf953fe18208cd8f058a46065995aedc413c472cd1e2e4238c1f14064b4f6db9def5cea703e422f5d8953e8ff05511c1fa3d4a1b68ac9b063793a8006a08
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.254
1
+ 1.0.255
@@ -125,6 +125,78 @@ module TencentCloud
125
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
126
  end
127
127
 
128
+ # 新增CC精准防护策略
129
+
130
+ # @param request: Request instance for CreateCCPrecisionPolicy.
131
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::CreateCCPrecisionPolicyRequest`
132
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::CreateCCPrecisionPolicyResponse`
133
+ def CreateCCPrecisionPolicy(request)
134
+ body = send_request('CreateCCPrecisionPolicy', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = CreateCCPrecisionPolicyResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
152
+ # 新增CC频率限制策略
153
+
154
+ # @param request: Request instance for CreateCCReqLimitPolicy.
155
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::CreateCCReqLimitPolicyRequest`
156
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::CreateCCReqLimitPolicyResponse`
157
+ def CreateCCReqLimitPolicy(request)
158
+ body = send_request('CreateCCReqLimitPolicy', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = CreateCCReqLimitPolicyResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
176
+ # 新建cc防护的地域封禁配置
177
+
178
+ # @param request: Request instance for CreateCcGeoIPBlockConfig.
179
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::CreateCcGeoIPBlockConfigRequest`
180
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::CreateCcGeoIPBlockConfigResponse`
181
+ def CreateCcGeoIPBlockConfig(request)
182
+ body = send_request('CreateCcGeoIPBlockConfig', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = CreateCcGeoIPBlockConfigResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
128
200
  # 设置DDoS防护的AI防护开关
129
201
 
130
202
  # @param request: Request instance for CreateDDoSAI.
@@ -509,6 +581,102 @@ module TencentCloud
509
581
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
582
  end
511
583
 
584
+ # 删除CC精准防护策略
585
+
586
+ # @param request: Request instance for DeleteCCPrecisionPolicy.
587
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DeleteCCPrecisionPolicyRequest`
588
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DeleteCCPrecisionPolicyResponse`
589
+ def DeleteCCPrecisionPolicy(request)
590
+ body = send_request('DeleteCCPrecisionPolicy', request.serialize)
591
+ response = JSON.parse(body)
592
+ if response['Response'].key?('Error') == false
593
+ model = DeleteCCPrecisionPolicyResponse.new
594
+ model.deserialize(response['Response'])
595
+ model
596
+ else
597
+ code = response['Response']['Error']['Code']
598
+ message = response['Response']['Error']['Message']
599
+ reqid = response['Response']['RequestId']
600
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
601
+ end
602
+ rescue TencentCloud::Common::TencentCloudSDKException => e
603
+ raise e
604
+ rescue StandardError => e
605
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
+ end
607
+
608
+ # 删除CC频率限制策略
609
+
610
+ # @param request: Request instance for DeleteCCRequestLimitPolicy.
611
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DeleteCCRequestLimitPolicyRequest`
612
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DeleteCCRequestLimitPolicyResponse`
613
+ def DeleteCCRequestLimitPolicy(request)
614
+ body = send_request('DeleteCCRequestLimitPolicy', request.serialize)
615
+ response = JSON.parse(body)
616
+ if response['Response'].key?('Error') == false
617
+ model = DeleteCCRequestLimitPolicyResponse.new
618
+ model.deserialize(response['Response'])
619
+ model
620
+ else
621
+ code = response['Response']['Error']['Code']
622
+ message = response['Response']['Error']['Message']
623
+ reqid = response['Response']['RequestId']
624
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
625
+ end
626
+ rescue TencentCloud::Common::TencentCloudSDKException => e
627
+ raise e
628
+ rescue StandardError => e
629
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
630
+ end
631
+
632
+ # 删除CC四层黑白名单
633
+
634
+ # @param request: Request instance for DeleteCcBlackWhiteIpList.
635
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DeleteCcBlackWhiteIpListRequest`
636
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DeleteCcBlackWhiteIpListResponse`
637
+ def DeleteCcBlackWhiteIpList(request)
638
+ body = send_request('DeleteCcBlackWhiteIpList', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = DeleteCcBlackWhiteIpListResponse.new
642
+ model.deserialize(response['Response'])
643
+ model
644
+ else
645
+ code = response['Response']['Error']['Code']
646
+ message = response['Response']['Error']['Message']
647
+ reqid = response['Response']['RequestId']
648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
649
+ end
650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
651
+ raise e
652
+ rescue StandardError => e
653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
+ end
655
+
656
+ # 删除CC防护的区域封禁配置
657
+
658
+ # @param request: Request instance for DeleteCcGeoIPBlockConfig.
659
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DeleteCcGeoIPBlockConfigRequest`
660
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DeleteCcGeoIPBlockConfigResponse`
661
+ def DeleteCcGeoIPBlockConfig(request)
662
+ body = send_request('DeleteCcGeoIPBlockConfig', request.serialize)
663
+ response = JSON.parse(body)
664
+ if response['Response'].key?('Error') == false
665
+ model = DeleteCcGeoIPBlockConfigResponse.new
666
+ model.deserialize(response['Response'])
667
+ model
668
+ else
669
+ code = response['Response']['Error']['Code']
670
+ message = response['Response']['Error']['Message']
671
+ reqid = response['Response']['RequestId']
672
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
673
+ end
674
+ rescue TencentCloud::Common::TencentCloudSDKException => e
675
+ raise e
676
+ rescue StandardError => e
677
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
+ end
679
+
512
680
  # 删除DDoS防护的IP网段黑白名单
513
681
 
514
682
  # @param request: Request instance for DeleteDDoSBlackWhiteIpList.
@@ -605,6 +773,30 @@ module TencentCloud
605
773
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
774
  end
607
775
 
776
+ # 删除DDoS防护的端口acl策略
777
+
778
+ # @param request: Request instance for DeletePortAclConfig.
779
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DeletePortAclConfigRequest`
780
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DeletePortAclConfigResponse`
781
+ def DeletePortAclConfig(request)
782
+ body = send_request('DeletePortAclConfig', request.serialize)
783
+ response = JSON.parse(body)
784
+ if response['Response'].key?('Error') == false
785
+ model = DeletePortAclConfigResponse.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
+
608
800
  # 删除DDoS防护的水印防护配置
609
801
 
610
802
  # @param request: Request instance for DeleteWaterPrintConfig.
@@ -725,6 +917,54 @@ module TencentCloud
725
917
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
726
918
  end
727
919
 
920
+ # 获取CC精准防护列表
921
+
922
+ # @param request: Request instance for DescribeCCPrecisionPlyList.
923
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeCCPrecisionPlyListRequest`
924
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeCCPrecisionPlyListResponse`
925
+ def DescribeCCPrecisionPlyList(request)
926
+ body = send_request('DescribeCCPrecisionPlyList', request.serialize)
927
+ response = JSON.parse(body)
928
+ if response['Response'].key?('Error') == false
929
+ model = DescribeCCPrecisionPlyListResponse.new
930
+ model.deserialize(response['Response'])
931
+ model
932
+ else
933
+ code = response['Response']['Error']['Code']
934
+ message = response['Response']['Error']['Message']
935
+ reqid = response['Response']['RequestId']
936
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
937
+ end
938
+ rescue TencentCloud::Common::TencentCloudSDKException => e
939
+ raise e
940
+ rescue StandardError => e
941
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
942
+ end
943
+
944
+ # 获取CC频率限制策略列表
945
+
946
+ # @param request: Request instance for DescribeCCReqLimitPolicyList.
947
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeCCReqLimitPolicyListRequest`
948
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeCCReqLimitPolicyListResponse`
949
+ def DescribeCCReqLimitPolicyList(request)
950
+ body = send_request('DescribeCCReqLimitPolicyList', request.serialize)
951
+ response = JSON.parse(body)
952
+ if response['Response'].key?('Error') == false
953
+ model = DescribeCCReqLimitPolicyListResponse.new
954
+ model.deserialize(response['Response'])
955
+ model
956
+ else
957
+ code = response['Response']['Error']['Code']
958
+ message = response['Response']['Error']['Message']
959
+ reqid = response['Response']['RequestId']
960
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
961
+ end
962
+ rescue TencentCloud::Common::TencentCloudSDKException => e
963
+ raise e
964
+ rescue StandardError => e
965
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
966
+ end
967
+
728
968
  # 获取CC攻击指标数据,包括总请求峰值(QPS)和攻击请求(QPS)以及总请求次数和攻击请求次数
729
969
 
730
970
  # @param request: Request instance for DescribeCCTrend.
@@ -749,6 +989,54 @@ module TencentCloud
749
989
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
750
990
  end
751
991
 
992
+ # 获取CC四层黑白名单列表
993
+
994
+ # @param request: Request instance for DescribeCcBlackWhiteIpList.
995
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeCcBlackWhiteIpListRequest`
996
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeCcBlackWhiteIpListResponse`
997
+ def DescribeCcBlackWhiteIpList(request)
998
+ body = send_request('DescribeCcBlackWhiteIpList', request.serialize)
999
+ response = JSON.parse(body)
1000
+ if response['Response'].key?('Error') == false
1001
+ model = DescribeCcBlackWhiteIpListResponse.new
1002
+ model.deserialize(response['Response'])
1003
+ model
1004
+ else
1005
+ code = response['Response']['Error']['Code']
1006
+ message = response['Response']['Error']['Message']
1007
+ reqid = response['Response']['RequestId']
1008
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1009
+ end
1010
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1011
+ raise e
1012
+ rescue StandardError => e
1013
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1014
+ end
1015
+
1016
+ # 获取CC防护的区域封禁配置列表
1017
+
1018
+ # @param request: Request instance for DescribeCcGeoIPBlockConfigList.
1019
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeCcGeoIPBlockConfigListRequest`
1020
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeCcGeoIPBlockConfigListResponse`
1021
+ def DescribeCcGeoIPBlockConfigList(request)
1022
+ body = send_request('DescribeCcGeoIPBlockConfigList', request.serialize)
1023
+ response = JSON.parse(body)
1024
+ if response['Response'].key?('Error') == false
1025
+ model = DescribeCcGeoIPBlockConfigListResponse.new
1026
+ model.deserialize(response['Response'])
1027
+ model
1028
+ else
1029
+ code = response['Response']['Error']['Code']
1030
+ message = response['Response']['Error']['Message']
1031
+ reqid = response['Response']['RequestId']
1032
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1033
+ end
1034
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1035
+ raise e
1036
+ rescue StandardError => e
1037
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1038
+ end
1039
+
752
1040
  # 获取DDoS防护的IP网段黑白名单
753
1041
 
754
1042
  # @param request: Request instance for DescribeDDoSBlackWhiteIpList.
@@ -1229,6 +1517,150 @@ module TencentCloud
1229
1517
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1230
1518
  end
1231
1519
 
1520
+ # 修改CC防护等级
1521
+
1522
+ # @param request: Request instance for ModifyCCLevelPolicy.
1523
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::ModifyCCLevelPolicyRequest`
1524
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::ModifyCCLevelPolicyResponse`
1525
+ def ModifyCCLevelPolicy(request)
1526
+ body = send_request('ModifyCCLevelPolicy', request.serialize)
1527
+ response = JSON.parse(body)
1528
+ if response['Response'].key?('Error') == false
1529
+ model = ModifyCCLevelPolicyResponse.new
1530
+ model.deserialize(response['Response'])
1531
+ model
1532
+ else
1533
+ code = response['Response']['Error']['Code']
1534
+ message = response['Response']['Error']['Message']
1535
+ reqid = response['Response']['RequestId']
1536
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1537
+ end
1538
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1539
+ raise e
1540
+ rescue StandardError => e
1541
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1542
+ end
1543
+
1544
+ # 修改CC精准防护策略
1545
+
1546
+ # @param request: Request instance for ModifyCCPrecisionPolicy.
1547
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::ModifyCCPrecisionPolicyRequest`
1548
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::ModifyCCPrecisionPolicyResponse`
1549
+ def ModifyCCPrecisionPolicy(request)
1550
+ body = send_request('ModifyCCPrecisionPolicy', request.serialize)
1551
+ response = JSON.parse(body)
1552
+ if response['Response'].key?('Error') == false
1553
+ model = ModifyCCPrecisionPolicyResponse.new
1554
+ model.deserialize(response['Response'])
1555
+ model
1556
+ else
1557
+ code = response['Response']['Error']['Code']
1558
+ message = response['Response']['Error']['Message']
1559
+ reqid = response['Response']['RequestId']
1560
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1561
+ end
1562
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1563
+ raise e
1564
+ rescue StandardError => e
1565
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1566
+ end
1567
+
1568
+ # 修改CC频率限制策略
1569
+
1570
+ # @param request: Request instance for ModifyCCReqLimitPolicy.
1571
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::ModifyCCReqLimitPolicyRequest`
1572
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::ModifyCCReqLimitPolicyResponse`
1573
+ def ModifyCCReqLimitPolicy(request)
1574
+ body = send_request('ModifyCCReqLimitPolicy', request.serialize)
1575
+ response = JSON.parse(body)
1576
+ if response['Response'].key?('Error') == false
1577
+ model = ModifyCCReqLimitPolicyResponse.new
1578
+ model.deserialize(response['Response'])
1579
+ model
1580
+ else
1581
+ code = response['Response']['Error']['Code']
1582
+ message = response['Response']['Error']['Message']
1583
+ reqid = response['Response']['RequestId']
1584
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1585
+ end
1586
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1587
+ raise e
1588
+ rescue StandardError => e
1589
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1590
+ end
1591
+
1592
+ # 修改CC清洗阈值
1593
+
1594
+ # @param request: Request instance for ModifyCCThresholdPolicy.
1595
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::ModifyCCThresholdPolicyRequest`
1596
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::ModifyCCThresholdPolicyResponse`
1597
+ def ModifyCCThresholdPolicy(request)
1598
+ body = send_request('ModifyCCThresholdPolicy', request.serialize)
1599
+ response = JSON.parse(body)
1600
+ if response['Response'].key?('Error') == false
1601
+ model = ModifyCCThresholdPolicyResponse.new
1602
+ model.deserialize(response['Response'])
1603
+ model
1604
+ else
1605
+ code = response['Response']['Error']['Code']
1606
+ message = response['Response']['Error']['Message']
1607
+ reqid = response['Response']['RequestId']
1608
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1609
+ end
1610
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1611
+ raise e
1612
+ rescue StandardError => e
1613
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1614
+ end
1615
+
1616
+ # 修改CC四层黑白名单
1617
+
1618
+ # @param request: Request instance for ModifyCcBlackWhiteIpList.
1619
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::ModifyCcBlackWhiteIpListRequest`
1620
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::ModifyCcBlackWhiteIpListResponse`
1621
+ def ModifyCcBlackWhiteIpList(request)
1622
+ body = send_request('ModifyCcBlackWhiteIpList', request.serialize)
1623
+ response = JSON.parse(body)
1624
+ if response['Response'].key?('Error') == false
1625
+ model = ModifyCcBlackWhiteIpListResponse.new
1626
+ model.deserialize(response['Response'])
1627
+ model
1628
+ else
1629
+ code = response['Response']['Error']['Code']
1630
+ message = response['Response']['Error']['Message']
1631
+ reqid = response['Response']['RequestId']
1632
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1633
+ end
1634
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1635
+ raise e
1636
+ rescue StandardError => e
1637
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1638
+ end
1639
+
1640
+ # 修改DDoS黑白名单列表
1641
+
1642
+ # @param request: Request instance for ModifyDDoSBlackWhiteIpList.
1643
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::ModifyDDoSBlackWhiteIpListRequest`
1644
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::ModifyDDoSBlackWhiteIpListResponse`
1645
+ def ModifyDDoSBlackWhiteIpList(request)
1646
+ body = send_request('ModifyDDoSBlackWhiteIpList', request.serialize)
1647
+ response = JSON.parse(body)
1648
+ if response['Response'].key?('Error') == false
1649
+ model = ModifyDDoSBlackWhiteIpListResponse.new
1650
+ model.deserialize(response['Response'])
1651
+ model
1652
+ else
1653
+ code = response['Response']['Error']['Code']
1654
+ message = response['Response']['Error']['Message']
1655
+ reqid = response['Response']['RequestId']
1656
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1657
+ end
1658
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1659
+ raise e
1660
+ rescue StandardError => e
1661
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1662
+ end
1663
+
1232
1664
  # 修改DDoS防护的区域封禁配置
1233
1665
 
1234
1666
  # @param request: Request instance for ModifyDDoSGeoIPBlockConfig.
@@ -1253,6 +1685,30 @@ module TencentCloud
1253
1685
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1254
1686
  end
1255
1687
 
1688
+ # 读取或修改DDoS的防护等级
1689
+
1690
+ # @param request: Request instance for ModifyDDoSLevel.
1691
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::ModifyDDoSLevelRequest`
1692
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::ModifyDDoSLevelResponse`
1693
+ def ModifyDDoSLevel(request)
1694
+ body = send_request('ModifyDDoSLevel', request.serialize)
1695
+ response = JSON.parse(body)
1696
+ if response['Response'].key?('Error') == false
1697
+ model = ModifyDDoSLevelResponse.new
1698
+ model.deserialize(response['Response'])
1699
+ model
1700
+ else
1701
+ code = response['Response']['Error']['Code']
1702
+ message = response['Response']['Error']['Message']
1703
+ reqid = response['Response']['RequestId']
1704
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1705
+ end
1706
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1707
+ raise e
1708
+ rescue StandardError => e
1709
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1710
+ end
1711
+
1256
1712
  # 修改DDoS防护的访问限速配置
1257
1713
 
1258
1714
  # @param request: Request instance for ModifyDDoSSpeedLimitConfig.
@@ -1277,6 +1733,30 @@ module TencentCloud
1277
1733
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1278
1734
  end
1279
1735
 
1736
+ # 修改DDoS清洗阈值
1737
+
1738
+ # @param request: Request instance for ModifyDDoSThreshold.
1739
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::ModifyDDoSThresholdRequest`
1740
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::ModifyDDoSThresholdResponse`
1741
+ def ModifyDDoSThreshold(request)
1742
+ body = send_request('ModifyDDoSThreshold', request.serialize)
1743
+ response = JSON.parse(body)
1744
+ if response['Response'].key?('Error') == false
1745
+ model = ModifyDDoSThresholdResponse.new
1746
+ model.deserialize(response['Response'])
1747
+ model
1748
+ else
1749
+ code = response['Response']['Error']['Code']
1750
+ message = response['Response']['Error']['Message']
1751
+ reqid = response['Response']['RequestId']
1752
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1753
+ end
1754
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1755
+ raise e
1756
+ rescue StandardError => e
1757
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1758
+ end
1759
+
1280
1760
  # 修改智能解析域名名称
1281
1761
 
1282
1762
  # @param request: Request instance for ModifyDomainUsrName.
@@ -1373,6 +1853,30 @@ module TencentCloud
1373
1853
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1374
1854
  end
1375
1855
 
1856
+ # 修改DDoS防护的端口acl策略
1857
+
1858
+ # @param request: Request instance for ModifyPortAclConfig.
1859
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::ModifyPortAclConfigRequest`
1860
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::ModifyPortAclConfigResponse`
1861
+ def ModifyPortAclConfig(request)
1862
+ body = send_request('ModifyPortAclConfig', request.serialize)
1863
+ response = JSON.parse(body)
1864
+ if response['Response'].key?('Error') == false
1865
+ model = ModifyPortAclConfigResponse.new
1866
+ model.deserialize(response['Response'])
1867
+ model
1868
+ else
1869
+ code = response['Response']['Error']['Code']
1870
+ message = response['Response']['Error']['Message']
1871
+ reqid = response['Response']['RequestId']
1872
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1873
+ end
1874
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1875
+ raise e
1876
+ rescue StandardError => e
1877
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1878
+ end
1879
+
1376
1880
  # 开启或关闭DDoS防护的水印防护配置
1377
1881
 
1378
1882
  # @param request: Request instance for SwitchWaterPrintConfig.