tencentcloud-sdk-cfw 3.0.406 → 3.0.407
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 +24 -0
- data/lib/v20190904/models.rb +57 -2
- 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.
|
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: 分页查询时,显示的当前页的页码。
|
@@ -4297,11 +4352,11 @@ module TencentCloud
|
|
4297
4352
|
# IdpStatus bool
|
4298
4353
|
# BanStatus bool
|
4299
4354
|
class ScanResultInfo < TencentCloud::Common::AbstractModel
|
4300
|
-
# @param LeakNum:
|
4355
|
+
# @param LeakNum: 暴露漏洞数量
|
4301
4356
|
# @type LeakNum: Integer
|
4302
4357
|
# @param IPNum: 防护ip数量
|
4303
4358
|
# @type IPNum: Integer
|
4304
|
-
# @param PortNum:
|
4359
|
+
# @param PortNum: 暴露端口数量
|
4305
4360
|
# @type PortNum: Integer
|
4306
4361
|
# @param IPStatus: 是否开启防护
|
4307
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
|