tencentcloud-sdk-cfw 3.0.654 → 3.0.655
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190904/client.rb +480 -0
- data/lib/v20190904/models.rb +2103 -41
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97c96da2f9059ffb2c04e7dc7cc30914c656af2e
|
4
|
+
data.tar.gz: 892fa80ac3e25374a723811f0c759bba5f53f275
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 236e1c712231ecb3c9401ec498c109f524ea96abdad8e1d0e2e85089c01784135da146d7c72e402b12bc02af4310065ce3b8ab10fbf1cc7d7a06248e36d0a901
|
7
|
+
data.tar.gz: 32df4e2bee75ed11936eb406c56b225c9c64608a60795641c885474f1c76d0f5940aad39e0c4c310519c8f4278d5b4b2a13225d92370f53898ea8a69ec0e6339
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.655
|
data/lib/v20190904/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 添加互联网边界访问控制规则
|
57
|
+
|
58
|
+
# @param request: Request instance for AddAclRule.
|
59
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::AddAclRuleRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::AddAclRuleResponse`
|
61
|
+
def AddAclRule(request)
|
62
|
+
body = send_request('AddAclRule', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = AddAclRuleResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
56
80
|
# 创建新企业安全组规则
|
57
81
|
|
58
82
|
# @param request: Request instance for AddEnterpriseSecurityGroupRules.
|
@@ -101,6 +125,30 @@ module TencentCloud
|
|
101
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
126
|
end
|
103
127
|
|
128
|
+
# 添加VPC内网间规则
|
129
|
+
|
130
|
+
# @param request: Request instance for AddVpcAcRule.
|
131
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::AddVpcAcRuleRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::AddVpcAcRuleResponse`
|
133
|
+
def AddVpcAcRule(request)
|
134
|
+
body = send_request('AddVpcAcRule', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = AddVpcAcRuleResponse.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
|
+
|
104
152
|
# 创建访问控制规则
|
105
153
|
|
106
154
|
# @param request: Request instance for CreateAcRules.
|
@@ -293,6 +341,30 @@ module TencentCloud
|
|
293
341
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
342
|
end
|
295
343
|
|
344
|
+
# 创建VPC间防火墙(防火墙组)
|
345
|
+
|
346
|
+
# @param request: Request instance for CreateVpcFwGroup.
|
347
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::CreateVpcFwGroupRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::CreateVpcFwGroupResponse`
|
349
|
+
def CreateVpcFwGroup(request)
|
350
|
+
body = send_request('CreateVpcFwGroup', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = CreateVpcFwGroupResponse.new
|
354
|
+
model.deserialize(response['Response'])
|
355
|
+
model
|
356
|
+
else
|
357
|
+
code = response['Response']['Error']['Code']
|
358
|
+
message = response['Response']['Error']['Message']
|
359
|
+
reqid = response['Response']['RequestId']
|
360
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
361
|
+
end
|
362
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
363
|
+
raise e
|
364
|
+
rescue StandardError => e
|
365
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
|
+
end
|
367
|
+
|
296
368
|
# 删除规则
|
297
369
|
|
298
370
|
# @param request: Request instance for DeleteAcRule.
|
@@ -365,6 +437,30 @@ module TencentCloud
|
|
365
437
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
438
|
end
|
367
439
|
|
440
|
+
# 批量删除入侵防御封禁列表、放通列表规则
|
441
|
+
|
442
|
+
# @param request: Request instance for DeleteBlockIgnoreRuleList.
|
443
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DeleteBlockIgnoreRuleListRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DeleteBlockIgnoreRuleListResponse`
|
445
|
+
def DeleteBlockIgnoreRuleList(request)
|
446
|
+
body = send_request('DeleteBlockIgnoreRuleList', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = DeleteBlockIgnoreRuleListResponse.new
|
450
|
+
model.deserialize(response['Response'])
|
451
|
+
model
|
452
|
+
else
|
453
|
+
code = response['Response']['Error']['Code']
|
454
|
+
message = response['Response']['Error']['Message']
|
455
|
+
reqid = response['Response']['RequestId']
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
+
end
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
+
raise e
|
460
|
+
rescue StandardError => e
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
+
end
|
463
|
+
|
368
464
|
# 销毁防火墙实例
|
369
465
|
|
370
466
|
# @param request: Request instance for DeleteNatFwInstance.
|
@@ -437,6 +533,30 @@ module TencentCloud
|
|
437
533
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
534
|
end
|
439
535
|
|
536
|
+
# 删除防火墙(组),或者删除其中实例
|
537
|
+
|
538
|
+
# @param request: Request instance for DeleteVpcFwGroup.
|
539
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DeleteVpcFwGroupRequest`
|
540
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DeleteVpcFwGroupResponse`
|
541
|
+
def DeleteVpcFwGroup(request)
|
542
|
+
body = send_request('DeleteVpcFwGroup', request.serialize)
|
543
|
+
response = JSON.parse(body)
|
544
|
+
if response['Response'].key?('Error') == false
|
545
|
+
model = DeleteVpcFwGroupResponse.new
|
546
|
+
model.deserialize(response['Response'])
|
547
|
+
model
|
548
|
+
else
|
549
|
+
code = response['Response']['Error']['Code']
|
550
|
+
message = response['Response']['Error']['Message']
|
551
|
+
reqid = response['Response']['RequestId']
|
552
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
553
|
+
end
|
554
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
555
|
+
raise e
|
556
|
+
rescue StandardError => e
|
557
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
|
+
end
|
559
|
+
|
440
560
|
# 删除防火墙实例
|
441
561
|
|
442
562
|
# @param request: Request instance for DeleteVpcInstance.
|
@@ -485,6 +605,30 @@ module TencentCloud
|
|
485
605
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
606
|
end
|
487
607
|
|
608
|
+
# 查询互联网边界访问控制列表
|
609
|
+
|
610
|
+
# @param request: Request instance for DescribeAclRule.
|
611
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeAclRuleRequest`
|
612
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeAclRuleResponse`
|
613
|
+
def DescribeAclRule(request)
|
614
|
+
body = send_request('DescribeAclRule', request.serialize)
|
615
|
+
response = JSON.parse(body)
|
616
|
+
if response['Response'].key?('Error') == false
|
617
|
+
model = DescribeAclRuleResponse.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
|
+
|
488
632
|
# 获取安全组关联实例列表
|
489
633
|
|
490
634
|
# @param request: Request instance for DescribeAssociatedInstanceList.
|
@@ -677,6 +821,54 @@ module TencentCloud
|
|
677
821
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
822
|
end
|
679
823
|
|
824
|
+
# 串行防火墙IP开关列表
|
825
|
+
|
826
|
+
# @param request: Request instance for DescribeFwEdgeIps.
|
827
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeFwEdgeIpsRequest`
|
828
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeFwEdgeIpsResponse`
|
829
|
+
def DescribeFwEdgeIps(request)
|
830
|
+
body = send_request('DescribeFwEdgeIps', request.serialize)
|
831
|
+
response = JSON.parse(body)
|
832
|
+
if response['Response'].key?('Error') == false
|
833
|
+
model = DescribeFwEdgeIpsResponse.new
|
834
|
+
model.deserialize(response['Response'])
|
835
|
+
model
|
836
|
+
else
|
837
|
+
code = response['Response']['Error']['Code']
|
838
|
+
message = response['Response']['Error']['Message']
|
839
|
+
reqid = response['Response']['RequestId']
|
840
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
841
|
+
end
|
842
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
843
|
+
raise e
|
844
|
+
rescue StandardError => e
|
845
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
846
|
+
end
|
847
|
+
|
848
|
+
# 获取租户所有VPC防火墙(组)及VPC防火墙实例卡片信息
|
849
|
+
|
850
|
+
# @param request: Request instance for DescribeFwGroupInstanceInfo.
|
851
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeFwGroupInstanceInfoRequest`
|
852
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeFwGroupInstanceInfoResponse`
|
853
|
+
def DescribeFwGroupInstanceInfo(request)
|
854
|
+
body = send_request('DescribeFwGroupInstanceInfo', request.serialize)
|
855
|
+
response = JSON.parse(body)
|
856
|
+
if response['Response'].key?('Error') == false
|
857
|
+
model = DescribeFwGroupInstanceInfoResponse.new
|
858
|
+
model.deserialize(response['Response'])
|
859
|
+
model
|
860
|
+
else
|
861
|
+
code = response['Response']['Error']['Code']
|
862
|
+
message = response['Response']['Error']['Message']
|
863
|
+
reqid = response['Response']['RequestId']
|
864
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
865
|
+
end
|
866
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
867
|
+
raise e
|
868
|
+
rescue StandardError => e
|
869
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
870
|
+
end
|
871
|
+
|
680
872
|
# DescribeGuideScanInfo新手引导扫描接口信息
|
681
873
|
|
682
874
|
# @param request: Request instance for DescribeGuideScanInfo.
|
@@ -1133,6 +1325,54 @@ module TencentCloud
|
|
1133
1325
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1134
1326
|
end
|
1135
1327
|
|
1328
|
+
# 查询内网间访问控制列表
|
1329
|
+
|
1330
|
+
# @param request: Request instance for DescribeVpcAcRule.
|
1331
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeVpcAcRuleRequest`
|
1332
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeVpcAcRuleResponse`
|
1333
|
+
def DescribeVpcAcRule(request)
|
1334
|
+
body = send_request('DescribeVpcAcRule', request.serialize)
|
1335
|
+
response = JSON.parse(body)
|
1336
|
+
if response['Response'].key?('Error') == false
|
1337
|
+
model = DescribeVpcAcRuleResponse.new
|
1338
|
+
model.deserialize(response['Response'])
|
1339
|
+
model
|
1340
|
+
else
|
1341
|
+
code = response['Response']['Error']['Code']
|
1342
|
+
message = response['Response']['Error']['Message']
|
1343
|
+
reqid = response['Response']['RequestId']
|
1344
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1345
|
+
end
|
1346
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1347
|
+
raise e
|
1348
|
+
rescue StandardError => e
|
1349
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
# VPC防火墙(组)开关列表
|
1353
|
+
|
1354
|
+
# @param request: Request instance for DescribeVpcFwGroupSwitch.
|
1355
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeVpcFwGroupSwitchRequest`
|
1356
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeVpcFwGroupSwitchResponse`
|
1357
|
+
def DescribeVpcFwGroupSwitch(request)
|
1358
|
+
body = send_request('DescribeVpcFwGroupSwitch', request.serialize)
|
1359
|
+
response = JSON.parse(body)
|
1360
|
+
if response['Response'].key?('Error') == false
|
1361
|
+
model = DescribeVpcFwGroupSwitchResponse.new
|
1362
|
+
model.deserialize(response['Response'])
|
1363
|
+
model
|
1364
|
+
else
|
1365
|
+
code = response['Response']['Error']['Code']
|
1366
|
+
message = response['Response']['Error']['Message']
|
1367
|
+
reqid = response['Response']['RequestId']
|
1368
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1369
|
+
end
|
1370
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1371
|
+
raise e
|
1372
|
+
rescue StandardError => e
|
1373
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1374
|
+
end
|
1375
|
+
|
1136
1376
|
# 防火墙垂直扩容
|
1137
1377
|
|
1138
1378
|
# @param request: Request instance for ExpandCfwVertical.
|
@@ -1181,6 +1421,30 @@ module TencentCloud
|
|
1181
1421
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1182
1422
|
end
|
1183
1423
|
|
1424
|
+
# 修改互联网边界访问控制规则
|
1425
|
+
|
1426
|
+
# @param request: Request instance for ModifyAclRule.
|
1427
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyAclRuleRequest`
|
1428
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyAclRuleResponse`
|
1429
|
+
def ModifyAclRule(request)
|
1430
|
+
body = send_request('ModifyAclRule', request.serialize)
|
1431
|
+
response = JSON.parse(body)
|
1432
|
+
if response['Response'].key?('Error') == false
|
1433
|
+
model = ModifyAclRuleResponse.new
|
1434
|
+
model.deserialize(response['Response'])
|
1435
|
+
model
|
1436
|
+
else
|
1437
|
+
code = response['Response']['Error']['Code']
|
1438
|
+
message = response['Response']['Error']['Message']
|
1439
|
+
reqid = response['Response']['RequestId']
|
1440
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1441
|
+
end
|
1442
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1443
|
+
raise e
|
1444
|
+
rescue StandardError => e
|
1445
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1446
|
+
end
|
1447
|
+
|
1184
1448
|
# 互联网边界防火墙一键开关
|
1185
1449
|
|
1186
1450
|
# @param request: Request instance for ModifyAllPublicIPSwitchStatus.
|
@@ -1304,6 +1568,30 @@ module TencentCloud
|
|
1304
1568
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1305
1569
|
end
|
1306
1570
|
|
1571
|
+
# 编辑单条入侵防御封禁列表、放通列表规则
|
1572
|
+
|
1573
|
+
# @param request: Request instance for ModifyBlockIgnoreRule.
|
1574
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyBlockIgnoreRuleRequest`
|
1575
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyBlockIgnoreRuleResponse`
|
1576
|
+
def ModifyBlockIgnoreRule(request)
|
1577
|
+
body = send_request('ModifyBlockIgnoreRule', request.serialize)
|
1578
|
+
response = JSON.parse(body)
|
1579
|
+
if response['Response'].key?('Error') == false
|
1580
|
+
model = ModifyBlockIgnoreRuleResponse.new
|
1581
|
+
model.deserialize(response['Response'])
|
1582
|
+
model
|
1583
|
+
else
|
1584
|
+
code = response['Response']['Error']['Code']
|
1585
|
+
message = response['Response']['Error']['Message']
|
1586
|
+
reqid = response['Response']['RequestId']
|
1587
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1588
|
+
end
|
1589
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1590
|
+
raise e
|
1591
|
+
rescue StandardError => e
|
1592
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1593
|
+
end
|
1594
|
+
|
1307
1595
|
# ModifyBlockTop取消置顶接口
|
1308
1596
|
|
1309
1597
|
# @param request: Request instance for ModifyBlockTop.
|
@@ -1353,6 +1641,30 @@ module TencentCloud
|
|
1353
1641
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1354
1642
|
end
|
1355
1643
|
|
1644
|
+
# 修改边界防火墙开关(旁路、串行)
|
1645
|
+
|
1646
|
+
# @param request: Request instance for ModifyEdgeIpSwitch.
|
1647
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyEdgeIpSwitchRequest`
|
1648
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyEdgeIpSwitchResponse`
|
1649
|
+
def ModifyEdgeIpSwitch(request)
|
1650
|
+
body = send_request('ModifyEdgeIpSwitch', request.serialize)
|
1651
|
+
response = JSON.parse(body)
|
1652
|
+
if response['Response'].key?('Error') == false
|
1653
|
+
model = ModifyEdgeIpSwitchResponse.new
|
1654
|
+
model.deserialize(response['Response'])
|
1655
|
+
model
|
1656
|
+
else
|
1657
|
+
code = response['Response']['Error']['Code']
|
1658
|
+
message = response['Response']['Error']['Message']
|
1659
|
+
reqid = response['Response']['RequestId']
|
1660
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1661
|
+
end
|
1662
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1663
|
+
raise e
|
1664
|
+
rescue StandardError => e
|
1665
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1666
|
+
end
|
1667
|
+
|
1356
1668
|
# 修改企业安全组下发状态
|
1357
1669
|
|
1358
1670
|
# @param request: Request instance for ModifyEnterpriseSecurityDispatchStatus.
|
@@ -1401,6 +1713,30 @@ module TencentCloud
|
|
1401
1713
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1402
1714
|
end
|
1403
1715
|
|
1716
|
+
# 修改防火墙(组)开关(支持单点模式、多点模式、全互通模式)
|
1717
|
+
|
1718
|
+
# @param request: Request instance for ModifyFwGroupSwitch.
|
1719
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyFwGroupSwitchRequest`
|
1720
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyFwGroupSwitchResponse`
|
1721
|
+
def ModifyFwGroupSwitch(request)
|
1722
|
+
body = send_request('ModifyFwGroupSwitch', request.serialize)
|
1723
|
+
response = JSON.parse(body)
|
1724
|
+
if response['Response'].key?('Error') == false
|
1725
|
+
model = ModifyFwGroupSwitchResponse.new
|
1726
|
+
model.deserialize(response['Response'])
|
1727
|
+
model
|
1728
|
+
else
|
1729
|
+
code = response['Response']['Error']['Code']
|
1730
|
+
message = response['Response']['Error']['Message']
|
1731
|
+
reqid = response['Response']['RequestId']
|
1732
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1733
|
+
end
|
1734
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1735
|
+
raise e
|
1736
|
+
rescue StandardError => e
|
1737
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1738
|
+
end
|
1739
|
+
|
1404
1740
|
# 修改NAT访问控制规则
|
1405
1741
|
|
1406
1742
|
# @param request: Request instance for ModifyNatAcRule.
|
@@ -1666,6 +2002,30 @@ module TencentCloud
|
|
1666
2002
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1667
2003
|
end
|
1668
2004
|
|
2005
|
+
# 互联网边界规则快速排序
|
2006
|
+
|
2007
|
+
# @param request: Request instance for ModifySequenceAclRules.
|
2008
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifySequenceAclRulesRequest`
|
2009
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifySequenceAclRulesResponse`
|
2010
|
+
def ModifySequenceAclRules(request)
|
2011
|
+
body = send_request('ModifySequenceAclRules', request.serialize)
|
2012
|
+
response = JSON.parse(body)
|
2013
|
+
if response['Response'].key?('Error') == false
|
2014
|
+
model = ModifySequenceAclRulesResponse.new
|
2015
|
+
model.deserialize(response['Response'])
|
2016
|
+
model
|
2017
|
+
else
|
2018
|
+
code = response['Response']['Error']['Code']
|
2019
|
+
message = response['Response']['Error']['Message']
|
2020
|
+
reqid = response['Response']['RequestId']
|
2021
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2022
|
+
end
|
2023
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2024
|
+
raise e
|
2025
|
+
rescue StandardError => e
|
2026
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2027
|
+
end
|
2028
|
+
|
1669
2029
|
# 修改规则执行顺序
|
1670
2030
|
|
1671
2031
|
# @param request: Request instance for ModifySequenceRules.
|
@@ -1738,6 +2098,78 @@ module TencentCloud
|
|
1738
2098
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1739
2099
|
end
|
1740
2100
|
|
2101
|
+
# 修改内网间访问控制规则
|
2102
|
+
|
2103
|
+
# @param request: Request instance for ModifyVpcAcRule.
|
2104
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyVpcAcRuleRequest`
|
2105
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyVpcAcRuleResponse`
|
2106
|
+
def ModifyVpcAcRule(request)
|
2107
|
+
body = send_request('ModifyVpcAcRule', request.serialize)
|
2108
|
+
response = JSON.parse(body)
|
2109
|
+
if response['Response'].key?('Error') == false
|
2110
|
+
model = ModifyVpcAcRuleResponse.new
|
2111
|
+
model.deserialize(response['Response'])
|
2112
|
+
model
|
2113
|
+
else
|
2114
|
+
code = response['Response']['Error']['Code']
|
2115
|
+
message = response['Response']['Error']['Message']
|
2116
|
+
reqid = response['Response']['RequestId']
|
2117
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2118
|
+
end
|
2119
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2120
|
+
raise e
|
2121
|
+
rescue StandardError => e
|
2122
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2123
|
+
end
|
2124
|
+
|
2125
|
+
# 编辑VPC间防火墙(防火墙组)
|
2126
|
+
|
2127
|
+
# @param request: Request instance for ModifyVpcFwGroup.
|
2128
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyVpcFwGroupRequest`
|
2129
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyVpcFwGroupResponse`
|
2130
|
+
def ModifyVpcFwGroup(request)
|
2131
|
+
body = send_request('ModifyVpcFwGroup', request.serialize)
|
2132
|
+
response = JSON.parse(body)
|
2133
|
+
if response['Response'].key?('Error') == false
|
2134
|
+
model = ModifyVpcFwGroupResponse.new
|
2135
|
+
model.deserialize(response['Response'])
|
2136
|
+
model
|
2137
|
+
else
|
2138
|
+
code = response['Response']['Error']['Code']
|
2139
|
+
message = response['Response']['Error']['Message']
|
2140
|
+
reqid = response['Response']['RequestId']
|
2141
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2142
|
+
end
|
2143
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2144
|
+
raise e
|
2145
|
+
rescue StandardError => e
|
2146
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2147
|
+
end
|
2148
|
+
|
2149
|
+
# vpc间规则快速排序
|
2150
|
+
|
2151
|
+
# @param request: Request instance for ModifyVpcFwSequenceRules.
|
2152
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyVpcFwSequenceRulesRequest`
|
2153
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyVpcFwSequenceRulesResponse`
|
2154
|
+
def ModifyVpcFwSequenceRules(request)
|
2155
|
+
body = send_request('ModifyVpcFwSequenceRules', request.serialize)
|
2156
|
+
response = JSON.parse(body)
|
2157
|
+
if response['Response'].key?('Error') == false
|
2158
|
+
model = ModifyVpcFwSequenceRulesResponse.new
|
2159
|
+
model.deserialize(response['Response'])
|
2160
|
+
model
|
2161
|
+
else
|
2162
|
+
code = response['Response']['Error']['Code']
|
2163
|
+
message = response['Response']['Error']['Message']
|
2164
|
+
reqid = response['Response']['RequestId']
|
2165
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2166
|
+
end
|
2167
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2168
|
+
raise e
|
2169
|
+
rescue StandardError => e
|
2170
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2171
|
+
end
|
2172
|
+
|
1741
2173
|
# 删除互联网边界规则
|
1742
2174
|
|
1743
2175
|
# @param request: Request instance for RemoveAcRule.
|
@@ -1762,6 +2194,30 @@ module TencentCloud
|
|
1762
2194
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1763
2195
|
end
|
1764
2196
|
|
2197
|
+
# 删除互联网边界访问控制规则
|
2198
|
+
|
2199
|
+
# @param request: Request instance for RemoveAclRule.
|
2200
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::RemoveAclRuleRequest`
|
2201
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::RemoveAclRuleResponse`
|
2202
|
+
def RemoveAclRule(request)
|
2203
|
+
body = send_request('RemoveAclRule', request.serialize)
|
2204
|
+
response = JSON.parse(body)
|
2205
|
+
if response['Response'].key?('Error') == false
|
2206
|
+
model = RemoveAclRuleResponse.new
|
2207
|
+
model.deserialize(response['Response'])
|
2208
|
+
model
|
2209
|
+
else
|
2210
|
+
code = response['Response']['Error']['Code']
|
2211
|
+
message = response['Response']['Error']['Message']
|
2212
|
+
reqid = response['Response']['RequestId']
|
2213
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2214
|
+
end
|
2215
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2216
|
+
raise e
|
2217
|
+
rescue StandardError => e
|
2218
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2219
|
+
end
|
2220
|
+
|
1765
2221
|
# 删除新企业安全组规则
|
1766
2222
|
|
1767
2223
|
# @param request: Request instance for RemoveEnterpriseSecurityGroupRule.
|
@@ -1810,6 +2266,30 @@ module TencentCloud
|
|
1810
2266
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1811
2267
|
end
|
1812
2268
|
|
2269
|
+
# 删除VPC间规则
|
2270
|
+
|
2271
|
+
# @param request: Request instance for RemoveVpcAcRule.
|
2272
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::RemoveVpcAcRuleRequest`
|
2273
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::RemoveVpcAcRuleResponse`
|
2274
|
+
def RemoveVpcAcRule(request)
|
2275
|
+
body = send_request('RemoveVpcAcRule', request.serialize)
|
2276
|
+
response = JSON.parse(body)
|
2277
|
+
if response['Response'].key?('Error') == false
|
2278
|
+
model = RemoveVpcAcRuleResponse.new
|
2279
|
+
model.deserialize(response['Response'])
|
2280
|
+
model
|
2281
|
+
else
|
2282
|
+
code = response['Response']['Error']['Code']
|
2283
|
+
message = response['Response']['Error']['Message']
|
2284
|
+
reqid = response['Response']['RequestId']
|
2285
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2286
|
+
end
|
2287
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2288
|
+
raise e
|
2289
|
+
rescue StandardError => e
|
2290
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2291
|
+
end
|
2292
|
+
|
1813
2293
|
# 配置防火墙Dnat规则
|
1814
2294
|
|
1815
2295
|
# @param request: Request instance for SetNatFwDnatRule.
|