tencentcloud-sdk-cwp 3.0.433 → 3.0.434
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/v20180228/client.rb +24 -0
- data/lib/v20180228/models.rb +70 -0
- 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: 33ab98c7d54fc87325f47778420f168cc398d223
|
4
|
+
data.tar.gz: a4c072bd32174f3cab925c48e0a0d6f66e961c68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e95a3f401e6d0209565100dbc4260818682ae2211dd07d9e697c81a4fa10aca03f588d3a492a73327ad11f6761b7e93eb2beea2918dad1208feb84bf2c40dce3
|
7
|
+
data.tar.gz: ceb5034119d5db16d4e3542cc9cb3dafb53c38b93d01769bb76d89776bc6c6dce9c6410ab36cd571ab8a06a907230bc939512005248552b4e70952ea5c8d9860
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.434
|
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
|
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.434
|
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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|