tencentcloud-sdk-cfw 3.0.404 → 3.0.407
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190904/client.rb +24 -24
- data/lib/v20190904/models.rb +76 -51
- 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: f6709927f42286643e719abe80b3f17de8fc2578
|
|
4
|
+
data.tar.gz: 24c9af57d220f52eb9476f9f79548d2ff9d1619a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be66953a9bc0730fbe314b723f150cd0c210ed2fb30c5e517ccc0f10d7b4b22301f33b6ca4bc902f6e1775912c94ed1d92799ead6ef16cf10567dd9e545175d8
|
|
7
|
+
data.tar.gz: 7a3f3c23a7c042457f7b934178c56a8f136c0027a8f9fa3a189e58e310dd68a7b8606b5360676f80b2f09f2fb06f909be37a6d49482220c6f0513801c4edafe5
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.407
|
data/lib/v20190904/client.rb
CHANGED
|
@@ -533,6 +533,30 @@ module TencentCloud
|
|
|
533
533
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
534
534
|
end
|
|
535
535
|
|
|
536
|
+
# 获取入侵防御按钮列表
|
|
537
|
+
|
|
538
|
+
# @param request: Request instance for DescribeDefenseSwitch.
|
|
539
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeDefenseSwitchRequest`
|
|
540
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeDefenseSwitchResponse`
|
|
541
|
+
def DescribeDefenseSwitch(request)
|
|
542
|
+
body = send_request('DescribeDefenseSwitch', request.serialize)
|
|
543
|
+
response = JSON.parse(body)
|
|
544
|
+
if response['Response'].key?('Error') == false
|
|
545
|
+
model = DescribeDefenseSwitchResponse.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
|
+
|
|
536
560
|
# 查询新企业安全组规则
|
|
537
561
|
|
|
538
562
|
# @param request: Request instance for DescribeEnterpriseSecurityGroupRule.
|
|
@@ -1545,30 +1569,6 @@ module TencentCloud
|
|
|
1545
1569
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1546
1570
|
end
|
|
1547
1571
|
|
|
1548
|
-
# 单个修改VPC火墙开关
|
|
1549
|
-
|
|
1550
|
-
# @param request: Request instance for ModifyVPCSwitchStatus.
|
|
1551
|
-
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyVPCSwitchStatusRequest`
|
|
1552
|
-
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyVPCSwitchStatusResponse`
|
|
1553
|
-
def ModifyVPCSwitchStatus(request)
|
|
1554
|
-
body = send_request('ModifyVPCSwitchStatus', request.serialize)
|
|
1555
|
-
response = JSON.parse(body)
|
|
1556
|
-
if response['Response'].key?('Error') == false
|
|
1557
|
-
model = ModifyVPCSwitchStatusResponse.new
|
|
1558
|
-
model.deserialize(response['Response'])
|
|
1559
|
-
model
|
|
1560
|
-
else
|
|
1561
|
-
code = response['Response']['Error']['Code']
|
|
1562
|
-
message = response['Response']['Error']['Message']
|
|
1563
|
-
reqid = response['Response']['RequestId']
|
|
1564
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1565
|
-
end
|
|
1566
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1567
|
-
raise e
|
|
1568
|
-
rescue StandardError => e
|
|
1569
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1570
|
-
end
|
|
1571
|
-
|
|
1572
1572
|
# 删除互联网边界规则
|
|
1573
1573
|
|
|
1574
1574
|
# @param request: Request instance for RemoveAcRule.
|
data/lib/v20190904/models.rb
CHANGED
|
@@ -102,7 +102,7 @@ module TencentCloud
|
|
|
102
102
|
# 当SourceType为net时,SourceContent为源IP地址或者CIDR地址。
|
|
103
103
|
# 例如:1.1.1.0/24
|
|
104
104
|
|
|
105
|
-
# 当SourceType为template时,SourceContent
|
|
105
|
+
# 当SourceType为template时,SourceContent为源地址模板id。
|
|
106
106
|
|
|
107
107
|
# 当SourceType为location时,SourceContent为源区域。
|
|
108
108
|
# 例如["BJ11", "ZB"]
|
|
@@ -125,7 +125,7 @@ module TencentCloud
|
|
|
125
125
|
# 当DestType为net时,DestContent为源IP地址或者CIDR地址。
|
|
126
126
|
# 例如:1.1.1.0/24
|
|
127
127
|
|
|
128
|
-
# 当DestType为template时,DestContent
|
|
128
|
+
# 当DestType为template时,DestContent为源地址模板id。
|
|
129
129
|
|
|
130
130
|
# 当DestType为location时,DestContent为源区域。
|
|
131
131
|
# 例如["BJ11", "ZB"]
|
|
@@ -1519,6 +1519,61 @@ module TencentCloud
|
|
|
1519
1519
|
end
|
|
1520
1520
|
end
|
|
1521
1521
|
|
|
1522
|
+
# DescribeDefenseSwitch请求参数结构体
|
|
1523
|
+
class DescribeDefenseSwitchRequest < TencentCloud::Common::AbstractModel
|
|
1524
|
+
|
|
1525
|
+
|
|
1526
|
+
def initialize()
|
|
1527
|
+
end
|
|
1528
|
+
|
|
1529
|
+
def deserialize(params)
|
|
1530
|
+
end
|
|
1531
|
+
end
|
|
1532
|
+
|
|
1533
|
+
# DescribeDefenseSwitch返回参数结构体
|
|
1534
|
+
class DescribeDefenseSwitchResponse < TencentCloud::Common::AbstractModel
|
|
1535
|
+
# @param BasicRuleSwitch: 基础防御开关
|
|
1536
|
+
# @type BasicRuleSwitch: Integer
|
|
1537
|
+
# @param BaselineAllSwitch: 安全基线开关
|
|
1538
|
+
# @type BaselineAllSwitch: Integer
|
|
1539
|
+
# @param TiSwitch: 威胁情报开关
|
|
1540
|
+
# @type TiSwitch: Integer
|
|
1541
|
+
# @param VirtualPatchSwitch: 虚拟补丁开关
|
|
1542
|
+
# @type VirtualPatchSwitch: Integer
|
|
1543
|
+
# @param HistoryOpen: 是否历史开启
|
|
1544
|
+
# @type HistoryOpen: Integer
|
|
1545
|
+
# @param ReturnCode: 状态值,0:查询成功,非0:查询失败
|
|
1546
|
+
# @type ReturnCode: Integer
|
|
1547
|
+
# @param ReturnMsg: 状态信息,success:查询成功,fail:查询失败
|
|
1548
|
+
# @type ReturnMsg: String
|
|
1549
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1550
|
+
# @type RequestId: String
|
|
1551
|
+
|
|
1552
|
+
attr_accessor :BasicRuleSwitch, :BaselineAllSwitch, :TiSwitch, :VirtualPatchSwitch, :HistoryOpen, :ReturnCode, :ReturnMsg, :RequestId
|
|
1553
|
+
|
|
1554
|
+
def initialize(basicruleswitch=nil, baselineallswitch=nil, tiswitch=nil, virtualpatchswitch=nil, historyopen=nil, returncode=nil, returnmsg=nil, requestid=nil)
|
|
1555
|
+
@BasicRuleSwitch = basicruleswitch
|
|
1556
|
+
@BaselineAllSwitch = baselineallswitch
|
|
1557
|
+
@TiSwitch = tiswitch
|
|
1558
|
+
@VirtualPatchSwitch = virtualpatchswitch
|
|
1559
|
+
@HistoryOpen = historyopen
|
|
1560
|
+
@ReturnCode = returncode
|
|
1561
|
+
@ReturnMsg = returnmsg
|
|
1562
|
+
@RequestId = requestid
|
|
1563
|
+
end
|
|
1564
|
+
|
|
1565
|
+
def deserialize(params)
|
|
1566
|
+
@BasicRuleSwitch = params['BasicRuleSwitch']
|
|
1567
|
+
@BaselineAllSwitch = params['BaselineAllSwitch']
|
|
1568
|
+
@TiSwitch = params['TiSwitch']
|
|
1569
|
+
@VirtualPatchSwitch = params['VirtualPatchSwitch']
|
|
1570
|
+
@HistoryOpen = params['HistoryOpen']
|
|
1571
|
+
@ReturnCode = params['ReturnCode']
|
|
1572
|
+
@ReturnMsg = params['ReturnMsg']
|
|
1573
|
+
@RequestId = params['RequestId']
|
|
1574
|
+
end
|
|
1575
|
+
end
|
|
1576
|
+
|
|
1522
1577
|
# DescribeEnterpriseSecurityGroupRule请求参数结构体
|
|
1523
1578
|
class DescribeEnterpriseSecurityGroupRuleRequest < TencentCloud::Common::AbstractModel
|
|
1524
1579
|
# @param PageNo: 分页查询时,显示的当前页的页码。
|
|
@@ -3895,51 +3950,6 @@ module TencentCloud
|
|
|
3895
3950
|
end
|
|
3896
3951
|
end
|
|
3897
3952
|
|
|
3898
|
-
# ModifyVPCSwitchStatus请求参数结构体
|
|
3899
|
-
class ModifyVPCSwitchStatusRequest < TencentCloud::Common::AbstractModel
|
|
3900
|
-
# @param FirewallVpcId: 公网IP
|
|
3901
|
-
# @type FirewallVpcId: String
|
|
3902
|
-
# @param Status: 状态值,0: 关闭 ,1:开启
|
|
3903
|
-
# @type Status: Integer
|
|
3904
|
-
|
|
3905
|
-
attr_accessor :FirewallVpcId, :Status
|
|
3906
|
-
|
|
3907
|
-
def initialize(firewallvpcid=nil, status=nil)
|
|
3908
|
-
@FirewallVpcId = firewallvpcid
|
|
3909
|
-
@Status = status
|
|
3910
|
-
end
|
|
3911
|
-
|
|
3912
|
-
def deserialize(params)
|
|
3913
|
-
@FirewallVpcId = params['FirewallVpcId']
|
|
3914
|
-
@Status = params['Status']
|
|
3915
|
-
end
|
|
3916
|
-
end
|
|
3917
|
-
|
|
3918
|
-
# ModifyVPCSwitchStatus返回参数结构体
|
|
3919
|
-
class ModifyVPCSwitchStatusResponse < TencentCloud::Common::AbstractModel
|
|
3920
|
-
# @param ReturnMsg: 接口返回信息
|
|
3921
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3922
|
-
# @type ReturnMsg: String
|
|
3923
|
-
# @param ReturnCode: 接口返回错误码,0请求成功 非0失败
|
|
3924
|
-
# @type ReturnCode: Integer
|
|
3925
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3926
|
-
# @type RequestId: String
|
|
3927
|
-
|
|
3928
|
-
attr_accessor :ReturnMsg, :ReturnCode, :RequestId
|
|
3929
|
-
|
|
3930
|
-
def initialize(returnmsg=nil, returncode=nil, requestid=nil)
|
|
3931
|
-
@ReturnMsg = returnmsg
|
|
3932
|
-
@ReturnCode = returncode
|
|
3933
|
-
@RequestId = requestid
|
|
3934
|
-
end
|
|
3935
|
-
|
|
3936
|
-
def deserialize(params)
|
|
3937
|
-
@ReturnMsg = params['ReturnMsg']
|
|
3938
|
-
@ReturnCode = params['ReturnCode']
|
|
3939
|
-
@RequestId = params['RequestId']
|
|
3940
|
-
end
|
|
3941
|
-
end
|
|
3942
|
-
|
|
3943
3953
|
# Nat防火墙弹性公网ip列表
|
|
3944
3954
|
class NatFwEipsInfo < TencentCloud::Common::AbstractModel
|
|
3945
3955
|
# @param Eip: 弹性公网ip
|
|
@@ -4056,10 +4066,19 @@ module TencentCloud
|
|
|
4056
4066
|
# @param Status: 0 :正常 1:正在初始化
|
|
4057
4067
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
4058
4068
|
# @type Status: Integer
|
|
4069
|
+
# @param RegionDetail: 地域区域信息
|
|
4070
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
4071
|
+
# @type RegionDetail: String
|
|
4072
|
+
# @param ZoneZh: 实例所在可用区
|
|
4073
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
4074
|
+
# @type ZoneZh: String
|
|
4075
|
+
# @param ZoneZhBak: 实例所在可用区
|
|
4076
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
4077
|
+
# @type ZoneZhBak: String
|
|
4059
4078
|
|
|
4060
|
-
attr_accessor :NatinsId, :NatinsName, :Region, :FwMode, :BandWidth, :InFlowMax, :OutFlowMax, :RegionZh, :EipAddress, :VpcIp, :Subnets, :Status
|
|
4079
|
+
attr_accessor :NatinsId, :NatinsName, :Region, :FwMode, :BandWidth, :InFlowMax, :OutFlowMax, :RegionZh, :EipAddress, :VpcIp, :Subnets, :Status, :RegionDetail, :ZoneZh, :ZoneZhBak
|
|
4061
4080
|
|
|
4062
|
-
def initialize(natinsid=nil, natinsname=nil, region=nil, fwmode=nil, bandwidth=nil, inflowmax=nil, outflowmax=nil, regionzh=nil, eipaddress=nil, vpcip=nil, subnets=nil, status=nil)
|
|
4081
|
+
def initialize(natinsid=nil, natinsname=nil, region=nil, fwmode=nil, bandwidth=nil, inflowmax=nil, outflowmax=nil, regionzh=nil, eipaddress=nil, vpcip=nil, subnets=nil, status=nil, regiondetail=nil, zonezh=nil, zonezhbak=nil)
|
|
4063
4082
|
@NatinsId = natinsid
|
|
4064
4083
|
@NatinsName = natinsname
|
|
4065
4084
|
@Region = region
|
|
@@ -4072,6 +4091,9 @@ module TencentCloud
|
|
|
4072
4091
|
@VpcIp = vpcip
|
|
4073
4092
|
@Subnets = subnets
|
|
4074
4093
|
@Status = status
|
|
4094
|
+
@RegionDetail = regiondetail
|
|
4095
|
+
@ZoneZh = zonezh
|
|
4096
|
+
@ZoneZhBak = zonezhbak
|
|
4075
4097
|
end
|
|
4076
4098
|
|
|
4077
4099
|
def deserialize(params)
|
|
@@ -4087,6 +4109,9 @@ module TencentCloud
|
|
|
4087
4109
|
@VpcIp = params['VpcIp']
|
|
4088
4110
|
@Subnets = params['Subnets']
|
|
4089
4111
|
@Status = params['Status']
|
|
4112
|
+
@RegionDetail = params['RegionDetail']
|
|
4113
|
+
@ZoneZh = params['ZoneZh']
|
|
4114
|
+
@ZoneZhBak = params['ZoneZhBak']
|
|
4090
4115
|
end
|
|
4091
4116
|
end
|
|
4092
4117
|
|
|
@@ -4327,11 +4352,11 @@ module TencentCloud
|
|
|
4327
4352
|
# IdpStatus bool
|
|
4328
4353
|
# BanStatus bool
|
|
4329
4354
|
class ScanResultInfo < TencentCloud::Common::AbstractModel
|
|
4330
|
-
# @param LeakNum:
|
|
4355
|
+
# @param LeakNum: 暴露漏洞数量
|
|
4331
4356
|
# @type LeakNum: Integer
|
|
4332
4357
|
# @param IPNum: 防护ip数量
|
|
4333
4358
|
# @type IPNum: Integer
|
|
4334
|
-
# @param PortNum:
|
|
4359
|
+
# @param PortNum: 暴露端口数量
|
|
4335
4360
|
# @type PortNum: Integer
|
|
4336
4361
|
# @param IPStatus: 是否开启防护
|
|
4337
4362
|
# @type IPStatus: Boolean
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-cfw
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.407
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-09-
|
|
11
|
+
date: 2022-09-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|