tencentcloud-sdk-cfw 3.0.405 → 3.0.408
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 -0
- data/lib/v20190904/models.rb +74 -4
- 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: b472a8e98a11b1abdd845caccdd1291c2a697b62
|
|
4
|
+
data.tar.gz: ed885c451921b3b3ea2357786124a9173285744f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc1db6c6878a6baaf23e53e1fe7060eaf94af4af76b2ed8e42346e97567ffffc93f052fd6ad5cc19166792f2deb769038a3cc7d5e05a7909cd6be1a9ddf25ccf
|
|
7
|
+
data.tar.gz: ceea6679473993fd14a95ad03c360aff95c9b9445162ea7bdecbd83309cb0a9eb20a67b83fc70489bf1ee1c2cfc722313fd0d8a674bc3cf43a6ef39bef582359
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.408
|
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.
|
data/lib/v20190904/models.rb
CHANGED
|
@@ -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: 分页查询时,显示的当前页的页码。
|
|
@@ -4011,10 +4066,19 @@ module TencentCloud
|
|
|
4011
4066
|
# @param Status: 0 :正常 1:正在初始化
|
|
4012
4067
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
4013
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
|
|
4014
4078
|
|
|
4015
|
-
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
|
|
4016
4080
|
|
|
4017
|
-
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)
|
|
4018
4082
|
@NatinsId = natinsid
|
|
4019
4083
|
@NatinsName = natinsname
|
|
4020
4084
|
@Region = region
|
|
@@ -4027,6 +4091,9 @@ module TencentCloud
|
|
|
4027
4091
|
@VpcIp = vpcip
|
|
4028
4092
|
@Subnets = subnets
|
|
4029
4093
|
@Status = status
|
|
4094
|
+
@RegionDetail = regiondetail
|
|
4095
|
+
@ZoneZh = zonezh
|
|
4096
|
+
@ZoneZhBak = zonezhbak
|
|
4030
4097
|
end
|
|
4031
4098
|
|
|
4032
4099
|
def deserialize(params)
|
|
@@ -4042,6 +4109,9 @@ module TencentCloud
|
|
|
4042
4109
|
@VpcIp = params['VpcIp']
|
|
4043
4110
|
@Subnets = params['Subnets']
|
|
4044
4111
|
@Status = params['Status']
|
|
4112
|
+
@RegionDetail = params['RegionDetail']
|
|
4113
|
+
@ZoneZh = params['ZoneZh']
|
|
4114
|
+
@ZoneZhBak = params['ZoneZhBak']
|
|
4045
4115
|
end
|
|
4046
4116
|
end
|
|
4047
4117
|
|
|
@@ -4282,11 +4352,11 @@ module TencentCloud
|
|
|
4282
4352
|
# IdpStatus bool
|
|
4283
4353
|
# BanStatus bool
|
|
4284
4354
|
class ScanResultInfo < TencentCloud::Common::AbstractModel
|
|
4285
|
-
# @param LeakNum:
|
|
4355
|
+
# @param LeakNum: 暴露漏洞数量
|
|
4286
4356
|
# @type LeakNum: Integer
|
|
4287
4357
|
# @param IPNum: 防护ip数量
|
|
4288
4358
|
# @type IPNum: Integer
|
|
4289
|
-
# @param PortNum:
|
|
4359
|
+
# @param PortNum: 暴露端口数量
|
|
4290
4360
|
# @type PortNum: Integer
|
|
4291
4361
|
# @param IPStatus: 是否开启防护
|
|
4292
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.408
|
|
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-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|