tencentcloud-sdk-ssa 1.0.205 → 1.0.206

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5ec01f5ae27fc05b5d46b8010e81a2b9cb95c62
4
- data.tar.gz: c6e7e3f1912486e8688b8c2af2a553a4a3cbfa25
3
+ metadata.gz: f14da9cbacfca728bf43805c12419dbd22e59b46
4
+ data.tar.gz: a5a295db83663333c0bad347424da4767e13f9e6
5
5
  SHA512:
6
- metadata.gz: 0bb5f8324d46823fc5e78eb6d9abca09c9bf8b5916257790b6184742c58eb0830963ae96b6a81727d6985f2ced535549360473c63aca5565f0a48dcdc5e666f1
7
- data.tar.gz: 4af068016217f6c23e45ac9f24b70314e6e8a98365af769626958f826d8f2134ea3777d1323c16d659c7a8dca5994a615c4b0817a27821e5b3cde6af16004586
6
+ metadata.gz: 36b6a88230f79b60c69e382f341e243107817785ef49d961572901fdefc9b05668e3e0acb26fb7acb2686ce41eaf9a729e27c9725be5fe8c9fee7dec920458be
7
+ data.tar.gz: 32a0b69e2aa25a7ef7dcbad85b5cd4b2912847292ecd4d7d8e7fc7f1fff4c33d521ea2233f2dc25a50106ac05dd4bb46c8857f928951fcb394eab41c9bf4a2f8
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.205
1
+ 1.0.206
@@ -317,6 +317,30 @@ module TencentCloud
317
317
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
318
  end
319
319
 
320
+ # 拉取告警列表
321
+
322
+ # @param request: Request instance for DescribeSocAlertList.
323
+ # @type request: :class:`Tencentcloud::ssa::V20180608::DescribeSocAlertListRequest`
324
+ # @rtype: :class:`Tencentcloud::ssa::V20180608::DescribeSocAlertListResponse`
325
+ def DescribeSocAlertList(request)
326
+ body = send_request('DescribeSocAlertList', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = DescribeSocAlertListResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
320
344
  # 合规详情项
321
345
 
322
346
  # @param request: Request instance for DescribeSocCspmCompliance.
@@ -44,6 +44,179 @@ module TencentCloud
44
44
  end
45
45
  end
46
46
 
47
+ # 告警列表响应数据
48
+ class AlertListData < TencentCloud::Common::AbstractModel
49
+ # @param Total: 总数
50
+ # 注意:此字段可能返回 null,表示取不到有效值。
51
+ # @type Total: Integer
52
+ # @param AlertList: 返回列表
53
+ # 注意:此字段可能返回 null,表示取不到有效值。
54
+ # @type AlertList: Array
55
+
56
+ attr_accessor :Total, :AlertList
57
+
58
+ def initialize(total=nil, alertlist=nil)
59
+ @Total = total
60
+ @AlertList = alertlist
61
+ end
62
+
63
+ def deserialize(params)
64
+ @Total = params['Total']
65
+ unless params['AlertList'].nil?
66
+ @AlertList = []
67
+ params['AlertList'].each do |i|
68
+ alerttype_tmp = AlertType.new
69
+ alerttype_tmp.deserialize(i)
70
+ @AlertList << alerttype_tmp
71
+ end
72
+ end
73
+ end
74
+ end
75
+
76
+ # 告警字段
77
+ class AlertType < TencentCloud::Common::AbstractModel
78
+ # @param AlertTime: 时间戳
79
+ # 注意:此字段可能返回 null,表示取不到有效值。
80
+ # @type AlertTime: String
81
+ # @param AlertId: 唯一id
82
+ # 注意:此字段可能返回 null,表示取不到有效值。
83
+ # @type AlertId: String
84
+ # @param AssetId: 资产id
85
+ # 注意:此字段可能返回 null,表示取不到有效值。
86
+ # @type AssetId: String
87
+ # @param AssetPrivateIp: 内网ip
88
+ # 注意:此字段可能返回 null,表示取不到有效值。
89
+ # @type AssetPrivateIp: Array
90
+ # @param AlertName: 名字
91
+ # 注意:此字段可能返回 null,表示取不到有效值。
92
+ # @type AlertName: String
93
+ # @param Level: 告警级别 0:未知 1:低危 2:中危 3:高危 4:严重
94
+ # 注意:此字段可能返回 null,表示取不到有效值。
95
+ # @type Level: Integer
96
+ # @param Type: 类型
97
+ # 注意:此字段可能返回 null,表示取不到有效值。
98
+ # @type Type: String
99
+ # @param Source: 来源
100
+ # 注意:此字段可能返回 null,表示取不到有效值。
101
+ # @type Source: String
102
+ # @param AttackChain: 攻击字段1
103
+ # 注意:此字段可能返回 null,表示取不到有效值。
104
+ # @type AttackChain: String
105
+ # @param AttackId: 攻击字段2
106
+ # 注意:此字段可能返回 null,表示取不到有效值。
107
+ # @type AttackId: String
108
+ # @param Concerns: 关注点
109
+ # 注意:此字段可能返回 null,表示取不到有效值。
110
+ # @type Concerns: Array
111
+ # @param Action: 1:已防御,0,2:仅检测(0:告警类 1:拦截类 2:放行类 )
112
+ # 注意:此字段可能返回 null,表示取不到有效值。
113
+ # @type Action: Integer
114
+ # @param AttackResult: 0/空:未知,1:未成功,2:成功
115
+ # 注意:此字段可能返回 null,表示取不到有效值。
116
+ # @type AttackResult: Integer
117
+ # @param EventStatus: //调查状态 0/空:未启用,1:调查中,2:完成调查
118
+ # 注意:此字段可能返回 null,表示取不到有效值。
119
+ # @type EventStatus: Integer
120
+ # @param EventId: //关联事件ID
121
+ # 注意:此字段可能返回 null,表示取不到有效值。
122
+ # @type EventId: String
123
+ # @param Status: //处置状态 0:未关闭,1:已关闭
124
+ # 注意:此字段可能返回 null,表示取不到有效值。
125
+ # @type Status: Integer
126
+ # @param AssetName: 资产名
127
+ # 注意:此字段可能返回 null,表示取不到有效值。
128
+ # @type AssetName: String
129
+ # @param ConcernMaliciousCount: 恶意实体
130
+ # 注意:此字段可能返回 null,表示取不到有效值。
131
+ # @type ConcernMaliciousCount: Integer
132
+ # @param ConcernVictimCount: 受害者实体
133
+ # 注意:此字段可能返回 null,表示取不到有效值。
134
+ # @type ConcernVictimCount: Integer
135
+ # @param VictimAssetType: 资产类型
136
+ # 注意:此字段可能返回 null,表示取不到有效值。
137
+ # @type VictimAssetType: String
138
+ # @param SubType: 告警子类
139
+ # 注意:此字段可能返回 null,表示取不到有效值。
140
+ # @type SubType: String
141
+ # @param AttackName: 攻击技术名字
142
+ # 注意:此字段可能返回 null,表示取不到有效值。
143
+ # @type AttackName: String
144
+ # @param AssetPublicIp: 外网ip
145
+ # 注意:此字段可能返回 null,表示取不到有效值。
146
+ # @type AssetPublicIp: Array
147
+ # @param AttackTactic: 攻击战术名称
148
+ # 注意:此字段可能返回 null,表示取不到有效值。
149
+ # @type AttackTactic: String
150
+ # @param VictimAssetSub: 资产子网
151
+ # 注意:此字段可能返回 null,表示取不到有效值。
152
+ # @type VictimAssetSub: String
153
+
154
+ attr_accessor :AlertTime, :AlertId, :AssetId, :AssetPrivateIp, :AlertName, :Level, :Type, :Source, :AttackChain, :AttackId, :Concerns, :Action, :AttackResult, :EventStatus, :EventId, :Status, :AssetName, :ConcernMaliciousCount, :ConcernVictimCount, :VictimAssetType, :SubType, :AttackName, :AssetPublicIp, :AttackTactic, :VictimAssetSub
155
+
156
+ def initialize(alerttime=nil, alertid=nil, assetid=nil, assetprivateip=nil, alertname=nil, level=nil, type=nil, source=nil, attackchain=nil, attackid=nil, concerns=nil, action=nil, attackresult=nil, eventstatus=nil, eventid=nil, status=nil, assetname=nil, concernmaliciouscount=nil, concernvictimcount=nil, victimassettype=nil, subtype=nil, attackname=nil, assetpublicip=nil, attacktactic=nil, victimassetsub=nil)
157
+ @AlertTime = alerttime
158
+ @AlertId = alertid
159
+ @AssetId = assetid
160
+ @AssetPrivateIp = assetprivateip
161
+ @AlertName = alertname
162
+ @Level = level
163
+ @Type = type
164
+ @Source = source
165
+ @AttackChain = attackchain
166
+ @AttackId = attackid
167
+ @Concerns = concerns
168
+ @Action = action
169
+ @AttackResult = attackresult
170
+ @EventStatus = eventstatus
171
+ @EventId = eventid
172
+ @Status = status
173
+ @AssetName = assetname
174
+ @ConcernMaliciousCount = concernmaliciouscount
175
+ @ConcernVictimCount = concernvictimcount
176
+ @VictimAssetType = victimassettype
177
+ @SubType = subtype
178
+ @AttackName = attackname
179
+ @AssetPublicIp = assetpublicip
180
+ @AttackTactic = attacktactic
181
+ @VictimAssetSub = victimassetsub
182
+ end
183
+
184
+ def deserialize(params)
185
+ @AlertTime = params['AlertTime']
186
+ @AlertId = params['AlertId']
187
+ @AssetId = params['AssetId']
188
+ @AssetPrivateIp = params['AssetPrivateIp']
189
+ @AlertName = params['AlertName']
190
+ @Level = params['Level']
191
+ @Type = params['Type']
192
+ @Source = params['Source']
193
+ @AttackChain = params['AttackChain']
194
+ @AttackId = params['AttackId']
195
+ unless params['Concerns'].nil?
196
+ @Concerns = []
197
+ params['Concerns'].each do |i|
198
+ concerninfo_tmp = ConcernInfo.new
199
+ concerninfo_tmp.deserialize(i)
200
+ @Concerns << concerninfo_tmp
201
+ end
202
+ end
203
+ @Action = params['Action']
204
+ @AttackResult = params['AttackResult']
205
+ @EventStatus = params['EventStatus']
206
+ @EventId = params['EventId']
207
+ @Status = params['Status']
208
+ @AssetName = params['AssetName']
209
+ @ConcernMaliciousCount = params['ConcernMaliciousCount']
210
+ @ConcernVictimCount = params['ConcernVictimCount']
211
+ @VictimAssetType = params['VictimAssetType']
212
+ @SubType = params['SubType']
213
+ @AttackName = params['AttackName']
214
+ @AssetPublicIp = params['AssetPublicIp']
215
+ @AttackTactic = params['AttackTactic']
216
+ @VictimAssetSub = params['VictimAssetSub']
217
+ end
218
+ end
219
+
47
220
  # 资产类型
48
221
  class Asset < TencentCloud::Common::AbstractModel
49
222
  # @param AssetType: 资产类型
@@ -724,6 +897,38 @@ module TencentCloud
724
897
  end
725
898
  end
726
899
 
900
+ # 关注点类型
901
+ class ConcernInfo < TencentCloud::Common::AbstractModel
902
+ # @param ConcernType: 关注点类型
903
+ # 注意:此字段可能返回 null,表示取不到有效值。
904
+ # @type ConcernType: Integer
905
+ # @param EntityType: 实体类型
906
+ # 注意:此字段可能返回 null,表示取不到有效值。
907
+ # @type EntityType: Integer
908
+ # @param Concern: 关注点
909
+ # 注意:此字段可能返回 null,表示取不到有效值。
910
+ # @type Concern: String
911
+ # @param StatisticsCount: 最近数量
912
+ # 注意:此字段可能返回 null,表示取不到有效值。
913
+ # @type StatisticsCount: Integer
914
+
915
+ attr_accessor :ConcernType, :EntityType, :Concern, :StatisticsCount
916
+
917
+ def initialize(concerntype=nil, entitytype=nil, concern=nil, statisticscount=nil)
918
+ @ConcernType = concerntype
919
+ @EntityType = entitytype
920
+ @Concern = concern
921
+ @StatisticsCount = statisticscount
922
+ end
923
+
924
+ def deserialize(params)
925
+ @ConcernType = params['ConcernType']
926
+ @EntityType = params['EntityType']
927
+ @Concern = params['Concern']
928
+ @StatisticsCount = params['StatisticsCount']
929
+ end
930
+ end
931
+
727
932
  # 资产测绘对象
728
933
  class DataAssetMapping < TencentCloud::Common::AbstractModel
729
934
  # @param AssetIp: 资产主IP地址(公网IP)
@@ -1831,6 +2036,75 @@ module TencentCloud
1831
2036
  end
1832
2037
  end
1833
2038
 
2039
+ # DescribeSocAlertList请求参数结构体
2040
+ class DescribeSocAlertListRequest < TencentCloud::Common::AbstractModel
2041
+ # @param PageSize: 页大小
2042
+ # @type PageSize: Integer
2043
+ # @param PageIndex: 页码
2044
+ # @type PageIndex: Integer
2045
+ # @param Scenes: 业务场景 参考ScenesType
2046
+ # @type Scenes: Integer
2047
+ # @param Filter: 查询参数
2048
+ # @type Filter: Array
2049
+ # @param Sorter: 排序参数
2050
+ # @type Sorter: Array
2051
+
2052
+ attr_accessor :PageSize, :PageIndex, :Scenes, :Filter, :Sorter
2053
+
2054
+ def initialize(pagesize=nil, pageindex=nil, scenes=nil, filter=nil, sorter=nil)
2055
+ @PageSize = pagesize
2056
+ @PageIndex = pageindex
2057
+ @Scenes = scenes
2058
+ @Filter = filter
2059
+ @Sorter = sorter
2060
+ end
2061
+
2062
+ def deserialize(params)
2063
+ @PageSize = params['PageSize']
2064
+ @PageIndex = params['PageIndex']
2065
+ @Scenes = params['Scenes']
2066
+ unless params['Filter'].nil?
2067
+ @Filter = []
2068
+ params['Filter'].each do |i|
2069
+ queryfilter_tmp = QueryFilter.new
2070
+ queryfilter_tmp.deserialize(i)
2071
+ @Filter << queryfilter_tmp
2072
+ end
2073
+ end
2074
+ unless params['Sorter'].nil?
2075
+ @Sorter = []
2076
+ params['Sorter'].each do |i|
2077
+ querysort_tmp = QuerySort.new
2078
+ querysort_tmp.deserialize(i)
2079
+ @Sorter << querysort_tmp
2080
+ end
2081
+ end
2082
+ end
2083
+ end
2084
+
2085
+ # DescribeSocAlertList返回参数结构体
2086
+ class DescribeSocAlertListResponse < TencentCloud::Common::AbstractModel
2087
+ # @param Data: 业务数据
2088
+ # @type Data: :class:`Tencentcloud::Ssa.v20180608.models.AlertListData`
2089
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2090
+ # @type RequestId: String
2091
+
2092
+ attr_accessor :Data, :RequestId
2093
+
2094
+ def initialize(data=nil, requestid=nil)
2095
+ @Data = data
2096
+ @RequestId = requestid
2097
+ end
2098
+
2099
+ def deserialize(params)
2100
+ unless params['Data'].nil?
2101
+ @Data = AlertListData.new
2102
+ @Data.deserialize(params['Data'])
2103
+ end
2104
+ @RequestId = params['RequestId']
2105
+ end
2106
+ end
2107
+
1834
2108
  # DescribeSocCspmCompliance请求参数结构体
1835
2109
  class DescribeSocCspmComplianceRequest < TencentCloud::Common::AbstractModel
1836
2110
 
@@ -2073,6 +2347,50 @@ module TencentCloud
2073
2347
  end
2074
2348
  end
2075
2349
 
2350
+ # 查询参数
2351
+ class QueryFilter < TencentCloud::Common::AbstractModel
2352
+ # @param FilterKey: 查询的字段
2353
+ # @type FilterKey: String
2354
+ # @param FilterValue: 查询的值
2355
+ # @type FilterValue: String
2356
+ # @param FilterOperatorType: 匹配类型,枚举见pb
2357
+ # @type FilterOperatorType: Integer
2358
+
2359
+ attr_accessor :FilterKey, :FilterValue, :FilterOperatorType
2360
+
2361
+ def initialize(filterkey=nil, filtervalue=nil, filteroperatortype=nil)
2362
+ @FilterKey = filterkey
2363
+ @FilterValue = filtervalue
2364
+ @FilterOperatorType = filteroperatortype
2365
+ end
2366
+
2367
+ def deserialize(params)
2368
+ @FilterKey = params['FilterKey']
2369
+ @FilterValue = params['FilterValue']
2370
+ @FilterOperatorType = params['FilterOperatorType']
2371
+ end
2372
+ end
2373
+
2374
+ # 排序的字段
2375
+ class QuerySort < TencentCloud::Common::AbstractModel
2376
+ # @param SortKey: 排序字段
2377
+ # @type SortKey: String
2378
+ # @param SortType: 顺序,1升序2降序
2379
+ # @type SortType: Integer
2380
+
2381
+ attr_accessor :SortKey, :SortType
2382
+
2383
+ def initialize(sortkey=nil, sorttype=nil)
2384
+ @SortKey = sortkey
2385
+ @SortType = sorttype
2386
+ end
2387
+
2388
+ def deserialize(params)
2389
+ @SortKey = params['SortKey']
2390
+ @SortType = params['SortType']
2391
+ end
2392
+ end
2393
+
2076
2394
  # 查询_通用字段
2077
2395
  class SaDivulgeDataQueryPub < TencentCloud::Common::AbstractModel
2078
2396
  # @param Id: Id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ssa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.205
4
+ version: 1.0.206
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-18 00:00:00.000000000 Z
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common