tencentcloud-sdk-cwp 3.0.433 → 3.0.435
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/v20180228/client.rb +24 -0
- data/lib/v20180228/models.rb +79 -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: 1c2830c555e2216a93720339a97216936ed128b1
|
|
4
|
+
data.tar.gz: 4e9fc30bfeee486ac3e4e73e7511a738eb77d9ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 72cb20b0b2e8f59efdbbd1f31aee1fee16edb832b09418985696af6ef730c360399b30b1ee286ba5a629c58a6db1a2a0a39d9da097a829fc78d7e60120e4c172
|
|
7
|
+
data.tar.gz: 0947db730fcadb84427c2a2e697493c20e76f577605960df4feedecde4a200cac203f5ce0e84ac6d5339c8c3637ee3c071ca8899aa8f57a9201e3e5ccf1fa79f
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.435
|
data/lib/v20180228/client.rb
CHANGED
|
@@ -1928,6 +1928,30 @@ module TencentCloud
|
|
|
1928
1928
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1929
1929
|
end
|
|
1930
1930
|
|
|
1931
|
+
# 获取基线策略列表
|
|
1932
|
+
|
|
1933
|
+
# @param request: Request instance for DescribeBaselinePolicyList.
|
|
1934
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselinePolicyListRequest`
|
|
1935
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselinePolicyListResponse`
|
|
1936
|
+
def DescribeBaselinePolicyList(request)
|
|
1937
|
+
body = send_request('DescribeBaselinePolicyList', request.serialize)
|
|
1938
|
+
response = JSON.parse(body)
|
|
1939
|
+
if response['Response'].key?('Error') == false
|
|
1940
|
+
model = DescribeBaselinePolicyListResponse.new
|
|
1941
|
+
model.deserialize(response['Response'])
|
|
1942
|
+
model
|
|
1943
|
+
else
|
|
1944
|
+
code = response['Response']['Error']['Code']
|
|
1945
|
+
message = response['Response']['Error']['Message']
|
|
1946
|
+
reqid = response['Response']['RequestId']
|
|
1947
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1948
|
+
end
|
|
1949
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1950
|
+
raise e
|
|
1951
|
+
rescue StandardError => e
|
|
1952
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1953
|
+
end
|
|
1954
|
+
|
|
1931
1955
|
# 根据基线id查询下属检测项信息
|
|
1932
1956
|
|
|
1933
1957
|
# @param request: Request instance for DescribeBaselineRule.
|
data/lib/v20180228/models.rb
CHANGED
|
@@ -7989,6 +7989,76 @@ module TencentCloud
|
|
|
7989
7989
|
end
|
|
7990
7990
|
end
|
|
7991
7991
|
|
|
7992
|
+
# DescribeBaselinePolicyList请求参数结构体
|
|
7993
|
+
class DescribeBaselinePolicyListRequest < TencentCloud::Common::AbstractModel
|
|
7994
|
+
# @param Filters: <li>PolicyName - String - 是否必填:否 - 策略名称</li>
|
|
7995
|
+
# @type Filters: Array
|
|
7996
|
+
# @param Limit: 限制条数,默认10,最大100
|
|
7997
|
+
# @type Limit: Integer
|
|
7998
|
+
# @param Offset: 偏移量,默认0
|
|
7999
|
+
# @type Offset: Integer
|
|
8000
|
+
# @param Order: 排序方式: [ASC:升序|DESC:降序]
|
|
8001
|
+
# @type Order: String
|
|
8002
|
+
# @param By: 可选排序列: [RuleCount|ItemCount|HostCount]
|
|
8003
|
+
# @type By: String
|
|
8004
|
+
|
|
8005
|
+
attr_accessor :Filters, :Limit, :Offset, :Order, :By
|
|
8006
|
+
|
|
8007
|
+
def initialize(filters=nil, limit=nil, offset=nil, order=nil, by=nil)
|
|
8008
|
+
@Filters = filters
|
|
8009
|
+
@Limit = limit
|
|
8010
|
+
@Offset = offset
|
|
8011
|
+
@Order = order
|
|
8012
|
+
@By = by
|
|
8013
|
+
end
|
|
8014
|
+
|
|
8015
|
+
def deserialize(params)
|
|
8016
|
+
unless params['Filters'].nil?
|
|
8017
|
+
@Filters = []
|
|
8018
|
+
params['Filters'].each do |i|
|
|
8019
|
+
filter_tmp = Filter.new
|
|
8020
|
+
filter_tmp.deserialize(i)
|
|
8021
|
+
@Filters << filter_tmp
|
|
8022
|
+
end
|
|
8023
|
+
end
|
|
8024
|
+
@Limit = params['Limit']
|
|
8025
|
+
@Offset = params['Offset']
|
|
8026
|
+
@Order = params['Order']
|
|
8027
|
+
@By = params['By']
|
|
8028
|
+
end
|
|
8029
|
+
end
|
|
8030
|
+
|
|
8031
|
+
# DescribeBaselinePolicyList返回参数结构体
|
|
8032
|
+
class DescribeBaselinePolicyListResponse < TencentCloud::Common::AbstractModel
|
|
8033
|
+
# @param List: 无
|
|
8034
|
+
# @type List: Array
|
|
8035
|
+
# @param Total: 总数
|
|
8036
|
+
# @type Total: Integer
|
|
8037
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
8038
|
+
# @type RequestId: String
|
|
8039
|
+
|
|
8040
|
+
attr_accessor :List, :Total, :RequestId
|
|
8041
|
+
|
|
8042
|
+
def initialize(list=nil, total=nil, requestid=nil)
|
|
8043
|
+
@List = list
|
|
8044
|
+
@Total = total
|
|
8045
|
+
@RequestId = requestid
|
|
8046
|
+
end
|
|
8047
|
+
|
|
8048
|
+
def deserialize(params)
|
|
8049
|
+
unless params['List'].nil?
|
|
8050
|
+
@List = []
|
|
8051
|
+
params['List'].each do |i|
|
|
8052
|
+
baselinepolicy_tmp = BaselinePolicy.new
|
|
8053
|
+
baselinepolicy_tmp.deserialize(i)
|
|
8054
|
+
@List << baselinepolicy_tmp
|
|
8055
|
+
end
|
|
8056
|
+
end
|
|
8057
|
+
@Total = params['Total']
|
|
8058
|
+
@RequestId = params['RequestId']
|
|
8059
|
+
end
|
|
8060
|
+
end
|
|
8061
|
+
|
|
7992
8062
|
# DescribeBaselineRule请求参数结构体
|
|
7993
8063
|
class DescribeBaselineRuleRequest < TencentCloud::Common::AbstractModel
|
|
7994
8064
|
# @param BaselineId: 基线id
|
|
@@ -15818,10 +15888,15 @@ module TencentCloud
|
|
|
15818
15888
|
# @param Quuid: 主机quuid
|
|
15819
15889
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
15820
15890
|
# @type Quuid: String
|
|
15891
|
+
# @param Desc: 高危信息说明:
|
|
15892
|
+
# ABROAD - 海外IP;
|
|
15893
|
+
# XTI - 威胁情报
|
|
15894
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
15895
|
+
# @type Desc: String
|
|
15821
15896
|
|
|
15822
|
-
attr_accessor :Id, :Uuid, :MachineIp, :MachineName, :UserName, :SrcIp, :Status, :Country, :City, :Province, :LoginTime, :ModifyTime, :IsRiskArea, :IsRiskUser, :IsRiskTime, :IsRiskSrcIp, :RiskLevel, :Location, :Quuid
|
|
15897
|
+
attr_accessor :Id, :Uuid, :MachineIp, :MachineName, :UserName, :SrcIp, :Status, :Country, :City, :Province, :LoginTime, :ModifyTime, :IsRiskArea, :IsRiskUser, :IsRiskTime, :IsRiskSrcIp, :RiskLevel, :Location, :Quuid, :Desc
|
|
15823
15898
|
|
|
15824
|
-
def initialize(id=nil, uuid=nil, machineip=nil, machinename=nil, username=nil, srcip=nil, status=nil, country=nil, city=nil, province=nil, logintime=nil, modifytime=nil, isriskarea=nil, isriskuser=nil, isrisktime=nil, isrisksrcip=nil, risklevel=nil, location=nil, quuid=nil)
|
|
15899
|
+
def initialize(id=nil, uuid=nil, machineip=nil, machinename=nil, username=nil, srcip=nil, status=nil, country=nil, city=nil, province=nil, logintime=nil, modifytime=nil, isriskarea=nil, isriskuser=nil, isrisktime=nil, isrisksrcip=nil, risklevel=nil, location=nil, quuid=nil, desc=nil)
|
|
15825
15900
|
@Id = id
|
|
15826
15901
|
@Uuid = uuid
|
|
15827
15902
|
@MachineIp = machineip
|
|
@@ -15841,6 +15916,7 @@ module TencentCloud
|
|
|
15841
15916
|
@RiskLevel = risklevel
|
|
15842
15917
|
@Location = location
|
|
15843
15918
|
@Quuid = quuid
|
|
15919
|
+
@Desc = desc
|
|
15844
15920
|
end
|
|
15845
15921
|
|
|
15846
15922
|
def deserialize(params)
|
|
@@ -15863,6 +15939,7 @@ module TencentCloud
|
|
|
15863
15939
|
@RiskLevel = params['RiskLevel']
|
|
15864
15940
|
@Location = params['Location']
|
|
15865
15941
|
@Quuid = params['Quuid']
|
|
15942
|
+
@Desc = params['Desc']
|
|
15866
15943
|
end
|
|
15867
15944
|
end
|
|
15868
15945
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-cwp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.435
|
|
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-10-
|
|
11
|
+
date: 2022-10-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|