tencentcloud-sdk-tics 1.0.200
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-tics.rb +11 -0
- data/lib/v20181115/client.rb +132 -0
- data/lib/v20181115/models.rb +516 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ebc94c0936d45ad6261fd9aa3650059230b33fc7
|
4
|
+
data.tar.gz: c6ab72943e2b9324202e1eaff14df144af948470
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f3d8826f74d3e9125f301df8c27d7611738856d9fcb609c7f379de19a4dea3aba6da81e1d327ebeb06f79c12a5596539b346042f976e204996163d8b030b4d61
|
7
|
+
data.tar.gz: 39fa21a6bb195efd6a9333e86d903f2597271734b9b393a0de9adc746d1395687788063e1da1f6863e6275e8bfa8f554b0f7d247879218492b4ba7475a1c3809
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.200
|
@@ -0,0 +1,132 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
require 'json'
|
18
|
+
|
19
|
+
module TencentCloud
|
20
|
+
module Tics
|
21
|
+
module V20181115
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2018-11-15'
|
26
|
+
api_endpoint = 'tics.tencentcloudapi.com'
|
27
|
+
sdk_version = 'TICS_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 提供域名相关的基础信息以及与攻击事件(团伙、家族)、恶意文件等相关联信息。
|
33
|
+
|
34
|
+
# @param request: Request instance for DescribeDomainInfo.
|
35
|
+
# @type request: :class:`Tencentcloud::tics::V20181115::DescribeDomainInfoRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::tics::V20181115::DescribeDomainInfoResponse`
|
37
|
+
def DescribeDomainInfo(request)
|
38
|
+
body = send_request('DescribeDomainInfo', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = DescribeDomainInfoResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
56
|
+
# 提供文件相关的基础信息以及与攻击事件(团伙、家族)、恶意文件等相关联信息。
|
57
|
+
|
58
|
+
# @param request: Request instance for DescribeFileInfo.
|
59
|
+
# @type request: :class:`Tencentcloud::tics::V20181115::DescribeFileInfoRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::tics::V20181115::DescribeFileInfoResponse`
|
61
|
+
def DescribeFileInfo(request)
|
62
|
+
body = send_request('DescribeFileInfo', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DescribeFileInfoResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
80
|
+
# 提供IP相关的基础信息以及与攻击事件(团伙、家族)、恶意文件等相关联信息。
|
81
|
+
|
82
|
+
# @param request: Request instance for DescribeIpInfo.
|
83
|
+
# @type request: :class:`Tencentcloud::tics::V20181115::DescribeIpInfoRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::tics::V20181115::DescribeIpInfoResponse`
|
85
|
+
def DescribeIpInfo(request)
|
86
|
+
body = send_request('DescribeIpInfo', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = DescribeIpInfoResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
104
|
+
# 提供IP和域名相关威胁情报信息查询,这些信息可以辅助检测失陷主机、帮助SIEM/SOC等系统做研判决策、帮助运营团队对设备报警的编排处理。
|
105
|
+
|
106
|
+
# @param request: Request instance for DescribeThreatInfo.
|
107
|
+
# @type request: :class:`Tencentcloud::tics::V20181115::DescribeThreatInfoRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::tics::V20181115::DescribeThreatInfoResponse`
|
109
|
+
def DescribeThreatInfo(request)
|
110
|
+
body = send_request('DescribeThreatInfo', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = DescribeThreatInfoResponse.new
|
114
|
+
model.deserialize(response['Response'])
|
115
|
+
model
|
116
|
+
else
|
117
|
+
code = response['Response']['Error']['Code']
|
118
|
+
message = response['Response']['Error']['Message']
|
119
|
+
reqid = response['Response']['RequestId']
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
121
|
+
end
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
123
|
+
raise e
|
124
|
+
rescue StandardError => e
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
@@ -0,0 +1,516 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module TencentCloud
|
18
|
+
module Tics
|
19
|
+
module V20181115
|
20
|
+
# DescribeDomainInfo请求参数结构体
|
21
|
+
class DescribeDomainInfoRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param Key: 要查询的域名
|
23
|
+
# @type Key: String
|
24
|
+
# @param Option: 附加字段,是否返回上下文。当为0时不返回上下文,当为1时返回上下文。
|
25
|
+
# @type Option: Integer
|
26
|
+
|
27
|
+
attr_accessor :Key, :Option
|
28
|
+
|
29
|
+
def initialize(key=nil, option=nil)
|
30
|
+
@Key = key
|
31
|
+
@Option = option
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
@Key = params['Key']
|
36
|
+
@Option = params['Option']
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# DescribeDomainInfo返回参数结构体
|
41
|
+
class DescribeDomainInfoResponse < TencentCloud::Common::AbstractModel
|
42
|
+
# @param ReturnCode: 是否有数据,0代表有数据,1代表没有数据
|
43
|
+
# @type ReturnCode: Integer
|
44
|
+
# @param Result: 判定结果,如:black、white、grey
|
45
|
+
# @type Result: String
|
46
|
+
# @param Confidence: 置信度,取值0-100
|
47
|
+
# @type Confidence: Integer
|
48
|
+
# @param ThreatTypes: 威胁类型。
|
49
|
+
# botnet = 僵尸网络
|
50
|
+
# trojan = 木马
|
51
|
+
# ransomware = 勒索软件
|
52
|
+
# worm = 蠕虫
|
53
|
+
# dga = 域名生成算法
|
54
|
+
# c2 = c&c
|
55
|
+
# compromised = 失陷主机
|
56
|
+
# dynamicIP = 动态IP
|
57
|
+
# proxy = 代理
|
58
|
+
# idc = idc 机房
|
59
|
+
# whitelist = 白名单
|
60
|
+
# tor = 暗网
|
61
|
+
# miner = 挖矿
|
62
|
+
# maleware site = 恶意站点
|
63
|
+
# malware IP = 恶意IP
|
64
|
+
# 等等
|
65
|
+
# @type ThreatTypes: Array
|
66
|
+
# @param Tags: 恶意标签,对应的团伙,家族等信息。
|
67
|
+
# @type Tags: Array
|
68
|
+
# @param Intelligences: 对应的历史上的威胁情报事件
|
69
|
+
# @type Intelligences: Array
|
70
|
+
# @param Context: 情报相关的上下文
|
71
|
+
# @type Context: String
|
72
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
73
|
+
# @type RequestId: String
|
74
|
+
|
75
|
+
attr_accessor :ReturnCode, :Result, :Confidence, :ThreatTypes, :Tags, :Intelligences, :Context, :RequestId
|
76
|
+
|
77
|
+
def initialize(returncode=nil, result=nil, confidence=nil, threattypes=nil, tags=nil, intelligences=nil, context=nil, requestid=nil)
|
78
|
+
@ReturnCode = returncode
|
79
|
+
@Result = result
|
80
|
+
@Confidence = confidence
|
81
|
+
@ThreatTypes = threattypes
|
82
|
+
@Tags = tags
|
83
|
+
@Intelligences = intelligences
|
84
|
+
@Context = context
|
85
|
+
@RequestId = requestid
|
86
|
+
end
|
87
|
+
|
88
|
+
def deserialize(params)
|
89
|
+
@ReturnCode = params['ReturnCode']
|
90
|
+
@Result = params['Result']
|
91
|
+
@Confidence = params['Confidence']
|
92
|
+
@ThreatTypes = params['ThreatTypes']
|
93
|
+
unless params['Tags'].nil?
|
94
|
+
@Tags = []
|
95
|
+
params['Tags'].each do |i|
|
96
|
+
tagtype_tmp = TagType.new
|
97
|
+
tagtype_tmp.deserialize(i)
|
98
|
+
@Tags << tagtype_tmp
|
99
|
+
end
|
100
|
+
end
|
101
|
+
unless params['Intelligences'].nil?
|
102
|
+
@Intelligences = []
|
103
|
+
params['Intelligences'].each do |i|
|
104
|
+
intelligencetype_tmp = IntelligenceType.new
|
105
|
+
intelligencetype_tmp.deserialize(i)
|
106
|
+
@Intelligences << intelligencetype_tmp
|
107
|
+
end
|
108
|
+
end
|
109
|
+
@Context = params['Context']
|
110
|
+
@RequestId = params['RequestId']
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
# DescribeFileInfo请求参数结构体
|
115
|
+
class DescribeFileInfoRequest < TencentCloud::Common::AbstractModel
|
116
|
+
# @param Key: 要查询文件的MD5
|
117
|
+
# @type Key: String
|
118
|
+
# @param Option: 附加字段,是否返回上下文。当为0时不返回上下文,当为1时返回上下文。
|
119
|
+
# @type Option: Integer
|
120
|
+
|
121
|
+
attr_accessor :Key, :Option
|
122
|
+
|
123
|
+
def initialize(key=nil, option=nil)
|
124
|
+
@Key = key
|
125
|
+
@Option = option
|
126
|
+
end
|
127
|
+
|
128
|
+
def deserialize(params)
|
129
|
+
@Key = params['Key']
|
130
|
+
@Option = params['Option']
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
# DescribeFileInfo返回参数结构体
|
135
|
+
class DescribeFileInfoResponse < TencentCloud::Common::AbstractModel
|
136
|
+
# @param ReturnCode: 是否有数据,0代表有数据,1代表没有数据
|
137
|
+
# @type ReturnCode: Integer
|
138
|
+
# @param Result: 判定结果,如:black、white、grey
|
139
|
+
# @type Result: String
|
140
|
+
# @param Confidence: 置信度,取值0-100
|
141
|
+
# @type Confidence: Integer
|
142
|
+
# @param FileInfo: 文件类型,文件hash
|
143
|
+
# (md5,sha1,sha256),文件大小等等文件
|
144
|
+
# 基础信息
|
145
|
+
# @type FileInfo: Array
|
146
|
+
# @param Tags: 恶意标签,对应的团伙,家族等信息。
|
147
|
+
# @type Tags: Array
|
148
|
+
# @param Intelligences: 对应的历史上的威胁情报事件
|
149
|
+
# @type Intelligences: Array
|
150
|
+
# @param Context: 情报相关的上下文
|
151
|
+
# @type Context: String
|
152
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
153
|
+
# @type RequestId: String
|
154
|
+
|
155
|
+
attr_accessor :ReturnCode, :Result, :Confidence, :FileInfo, :Tags, :Intelligences, :Context, :RequestId
|
156
|
+
|
157
|
+
def initialize(returncode=nil, result=nil, confidence=nil, fileinfo=nil, tags=nil, intelligences=nil, context=nil, requestid=nil)
|
158
|
+
@ReturnCode = returncode
|
159
|
+
@Result = result
|
160
|
+
@Confidence = confidence
|
161
|
+
@FileInfo = fileinfo
|
162
|
+
@Tags = tags
|
163
|
+
@Intelligences = intelligences
|
164
|
+
@Context = context
|
165
|
+
@RequestId = requestid
|
166
|
+
end
|
167
|
+
|
168
|
+
def deserialize(params)
|
169
|
+
@ReturnCode = params['ReturnCode']
|
170
|
+
@Result = params['Result']
|
171
|
+
@Confidence = params['Confidence']
|
172
|
+
unless params['FileInfo'].nil?
|
173
|
+
@FileInfo = []
|
174
|
+
params['FileInfo'].each do |i|
|
175
|
+
fileinfotype_tmp = FileInfoType.new
|
176
|
+
fileinfotype_tmp.deserialize(i)
|
177
|
+
@FileInfo << fileinfotype_tmp
|
178
|
+
end
|
179
|
+
end
|
180
|
+
unless params['Tags'].nil?
|
181
|
+
@Tags = []
|
182
|
+
params['Tags'].each do |i|
|
183
|
+
tagtype_tmp = TagType.new
|
184
|
+
tagtype_tmp.deserialize(i)
|
185
|
+
@Tags << tagtype_tmp
|
186
|
+
end
|
187
|
+
end
|
188
|
+
unless params['Intelligences'].nil?
|
189
|
+
@Intelligences = []
|
190
|
+
params['Intelligences'].each do |i|
|
191
|
+
intelligencetype_tmp = IntelligenceType.new
|
192
|
+
intelligencetype_tmp.deserialize(i)
|
193
|
+
@Intelligences << intelligencetype_tmp
|
194
|
+
end
|
195
|
+
end
|
196
|
+
@Context = params['Context']
|
197
|
+
@RequestId = params['RequestId']
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
# DescribeIpInfo请求参数结构体
|
202
|
+
class DescribeIpInfoRequest < TencentCloud::Common::AbstractModel
|
203
|
+
# @param Key: 要查询的IP
|
204
|
+
# @type Key: String
|
205
|
+
# @param Option: 附加字段,是否返回上下文。当为0时不返回上下文,当为1时返回上下文。
|
206
|
+
# @type Option: Integer
|
207
|
+
|
208
|
+
attr_accessor :Key, :Option
|
209
|
+
|
210
|
+
def initialize(key=nil, option=nil)
|
211
|
+
@Key = key
|
212
|
+
@Option = option
|
213
|
+
end
|
214
|
+
|
215
|
+
def deserialize(params)
|
216
|
+
@Key = params['Key']
|
217
|
+
@Option = params['Option']
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# DescribeIpInfo返回参数结构体
|
222
|
+
class DescribeIpInfoResponse < TencentCloud::Common::AbstractModel
|
223
|
+
# @param ReturnCode: 是否有数据,0代表有数据,1代表没有数据
|
224
|
+
# @type ReturnCode: Integer
|
225
|
+
# @param Result: 判定结果,如:black、white、grey
|
226
|
+
# @type Result: String
|
227
|
+
# @param Confidence: 置信度,取值0-100
|
228
|
+
# @type Confidence: Integer
|
229
|
+
# @param ThreatTypes: 威胁类型。
|
230
|
+
# botnet = 僵尸网络
|
231
|
+
# trojan = 木马
|
232
|
+
# ransomware = 勒索软件
|
233
|
+
# worm = 蠕虫
|
234
|
+
# dga = 域名生成算法
|
235
|
+
# c2 = c&c
|
236
|
+
# compromised = 失陷主机
|
237
|
+
# dynamicIP = 动态IP
|
238
|
+
# proxy = 代理
|
239
|
+
# idc = idc 机房
|
240
|
+
# whitelist = 白名单
|
241
|
+
# tor = 暗网
|
242
|
+
# miner = 挖矿
|
243
|
+
# maleware site = 恶意站点
|
244
|
+
# malware IP = 恶意IP
|
245
|
+
# 等等
|
246
|
+
# @type ThreatTypes: Array
|
247
|
+
# @param Tags: 恶意标签,对应的团伙,家族等信息。
|
248
|
+
# @type Tags: Array
|
249
|
+
# @param Intelligences: 对应的历史上的威胁情报事件
|
250
|
+
# @type Intelligences: Array
|
251
|
+
# @param Context: 情报相关的上下文
|
252
|
+
# @type Context: String
|
253
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
254
|
+
# @type RequestId: String
|
255
|
+
|
256
|
+
attr_accessor :ReturnCode, :Result, :Confidence, :ThreatTypes, :Tags, :Intelligences, :Context, :RequestId
|
257
|
+
|
258
|
+
def initialize(returncode=nil, result=nil, confidence=nil, threattypes=nil, tags=nil, intelligences=nil, context=nil, requestid=nil)
|
259
|
+
@ReturnCode = returncode
|
260
|
+
@Result = result
|
261
|
+
@Confidence = confidence
|
262
|
+
@ThreatTypes = threattypes
|
263
|
+
@Tags = tags
|
264
|
+
@Intelligences = intelligences
|
265
|
+
@Context = context
|
266
|
+
@RequestId = requestid
|
267
|
+
end
|
268
|
+
|
269
|
+
def deserialize(params)
|
270
|
+
@ReturnCode = params['ReturnCode']
|
271
|
+
@Result = params['Result']
|
272
|
+
@Confidence = params['Confidence']
|
273
|
+
@ThreatTypes = params['ThreatTypes']
|
274
|
+
unless params['Tags'].nil?
|
275
|
+
@Tags = []
|
276
|
+
params['Tags'].each do |i|
|
277
|
+
tagtype_tmp = TagType.new
|
278
|
+
tagtype_tmp.deserialize(i)
|
279
|
+
@Tags << tagtype_tmp
|
280
|
+
end
|
281
|
+
end
|
282
|
+
unless params['Intelligences'].nil?
|
283
|
+
@Intelligences = []
|
284
|
+
params['Intelligences'].each do |i|
|
285
|
+
intelligencetype_tmp = IntelligenceType.new
|
286
|
+
intelligencetype_tmp.deserialize(i)
|
287
|
+
@Intelligences << intelligencetype_tmp
|
288
|
+
end
|
289
|
+
end
|
290
|
+
@Context = params['Context']
|
291
|
+
@RequestId = params['RequestId']
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
# DescribeThreatInfo请求参数结构体
|
296
|
+
class DescribeThreatInfoRequest < TencentCloud::Common::AbstractModel
|
297
|
+
# @param Key: 查询对象,域名或IP
|
298
|
+
# @type Key: String
|
299
|
+
# @param Type: 查询类型,当前取值为domain或ip
|
300
|
+
# @type Type: String
|
301
|
+
# @param Option: 附加字段,是否返回上下文。当为0时不返回上下文,当为1时返回上下文。
|
302
|
+
# @type Option: Integer
|
303
|
+
|
304
|
+
attr_accessor :Key, :Type, :Option
|
305
|
+
|
306
|
+
def initialize(key=nil, type=nil, option=nil)
|
307
|
+
@Key = key
|
308
|
+
@Type = type
|
309
|
+
@Option = option
|
310
|
+
end
|
311
|
+
|
312
|
+
def deserialize(params)
|
313
|
+
@Key = params['Key']
|
314
|
+
@Type = params['Type']
|
315
|
+
@Option = params['Option']
|
316
|
+
end
|
317
|
+
end
|
318
|
+
|
319
|
+
# DescribeThreatInfo返回参数结构体
|
320
|
+
class DescribeThreatInfoResponse < TencentCloud::Common::AbstractModel
|
321
|
+
# @param ReturnCode: 是否有数据,0代表有数据,1代表没有数据
|
322
|
+
# @type ReturnCode: Integer
|
323
|
+
# @param Result: 判定结果,如:black、white、grey
|
324
|
+
# @type Result: String
|
325
|
+
# @param Confidence: 置信度,取值0-100
|
326
|
+
# @type Confidence: Integer
|
327
|
+
# @param ThreatTypes: 威胁类型。
|
328
|
+
# botnet = 僵尸网络
|
329
|
+
# trojan = 木马
|
330
|
+
# ransomware = 勒索软件
|
331
|
+
# worm = 蠕虫
|
332
|
+
# dga = 域名生成算法
|
333
|
+
# c2 = c&c
|
334
|
+
# compromised = 失陷主机
|
335
|
+
# dynamicIP = 动态IP
|
336
|
+
# proxy = 代理
|
337
|
+
# idc = idc 机房
|
338
|
+
# whitelist = 白名单
|
339
|
+
# tor = 暗网
|
340
|
+
# miner = 挖矿
|
341
|
+
# maleware site = 恶意站点
|
342
|
+
# malware IP = 恶意IP
|
343
|
+
# 等等
|
344
|
+
# @type ThreatTypes: Array
|
345
|
+
# @param Tags: 恶意标签,对应的团伙,家族等信息。
|
346
|
+
# @type Tags: Array
|
347
|
+
# @param Status: 当前状态
|
348
|
+
# active = 活跃
|
349
|
+
# sinkholed = sinkholed
|
350
|
+
# inactive = 不活跃
|
351
|
+
# unknown = 未知
|
352
|
+
# expired = 过期
|
353
|
+
# @type Status: String
|
354
|
+
# @param Context: 情报相关的上下文,参数option=1 的时候提供
|
355
|
+
# 每个数据默认为3 条
|
356
|
+
# @type Context: String
|
357
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
358
|
+
# @type RequestId: String
|
359
|
+
|
360
|
+
attr_accessor :ReturnCode, :Result, :Confidence, :ThreatTypes, :Tags, :Status, :Context, :RequestId
|
361
|
+
|
362
|
+
def initialize(returncode=nil, result=nil, confidence=nil, threattypes=nil, tags=nil, status=nil, context=nil, requestid=nil)
|
363
|
+
@ReturnCode = returncode
|
364
|
+
@Result = result
|
365
|
+
@Confidence = confidence
|
366
|
+
@ThreatTypes = threattypes
|
367
|
+
@Tags = tags
|
368
|
+
@Status = status
|
369
|
+
@Context = context
|
370
|
+
@RequestId = requestid
|
371
|
+
end
|
372
|
+
|
373
|
+
def deserialize(params)
|
374
|
+
@ReturnCode = params['ReturnCode']
|
375
|
+
@Result = params['Result']
|
376
|
+
@Confidence = params['Confidence']
|
377
|
+
@ThreatTypes = params['ThreatTypes']
|
378
|
+
@Tags = params['Tags']
|
379
|
+
@Status = params['Status']
|
380
|
+
@Context = params['Context']
|
381
|
+
@RequestId = params['RequestId']
|
382
|
+
end
|
383
|
+
end
|
384
|
+
|
385
|
+
# 文件信息类型
|
386
|
+
class FileInfoType < TencentCloud::Common::AbstractModel
|
387
|
+
# @param DetectId: 判定渠道
|
388
|
+
# @type DetectId: String
|
389
|
+
# @param DetectPriority: 检测优先级
|
390
|
+
# @type DetectPriority: String
|
391
|
+
# @param EnginePriority: 引擎优先级
|
392
|
+
# @type EnginePriority: String
|
393
|
+
# @param FileExist: 样本是否存在
|
394
|
+
# @type FileExist: String
|
395
|
+
# @param FileForceUpload: 文件上传
|
396
|
+
# @type FileForceUpload: String
|
397
|
+
# @param FileSize: 文件大小
|
398
|
+
# @type FileSize: String
|
399
|
+
# @param FileupTime: 文件上传时间
|
400
|
+
# @type FileupTime: String
|
401
|
+
# @param FullVirusName: 病毒文件全名
|
402
|
+
# @type FullVirusName: String
|
403
|
+
# @param IdcPosition: IDC位置
|
404
|
+
# @type IdcPosition: String
|
405
|
+
# @param Md5Type: 文件md5值
|
406
|
+
# @type Md5Type: String
|
407
|
+
# @param PeExist: PE结构是否存在
|
408
|
+
# @type PeExist: String
|
409
|
+
# @param PeForceUpload: PE结构上传
|
410
|
+
# @type PeForceUpload: String
|
411
|
+
# @param SafeLevel: 安全性等级
|
412
|
+
# @type SafeLevel: String
|
413
|
+
# @param ScanModiTime: 扫描时间
|
414
|
+
# @type ScanModiTime: String
|
415
|
+
# @param SubdetectId: 子判定渠道
|
416
|
+
# @type SubdetectId: String
|
417
|
+
# @param UserDefName: 病毒名
|
418
|
+
# @type UserDefName: String
|
419
|
+
# @param VirusType: 病毒类型
|
420
|
+
# @type VirusType: String
|
421
|
+
# @param WhiteScore: 白名单分数
|
422
|
+
# @type WhiteScore: String
|
423
|
+
|
424
|
+
attr_accessor :DetectId, :DetectPriority, :EnginePriority, :FileExist, :FileForceUpload, :FileSize, :FileupTime, :FullVirusName, :IdcPosition, :Md5Type, :PeExist, :PeForceUpload, :SafeLevel, :ScanModiTime, :SubdetectId, :UserDefName, :VirusType, :WhiteScore
|
425
|
+
|
426
|
+
def initialize(detectid=nil, detectpriority=nil, enginepriority=nil, fileexist=nil, fileforceupload=nil, filesize=nil, fileuptime=nil, fullvirusname=nil, idcposition=nil, md5type=nil, peexist=nil, peforceupload=nil, safelevel=nil, scanmoditime=nil, subdetectid=nil, userdefname=nil, virustype=nil, whitescore=nil)
|
427
|
+
@DetectId = detectid
|
428
|
+
@DetectPriority = detectpriority
|
429
|
+
@EnginePriority = enginepriority
|
430
|
+
@FileExist = fileexist
|
431
|
+
@FileForceUpload = fileforceupload
|
432
|
+
@FileSize = filesize
|
433
|
+
@FileupTime = fileuptime
|
434
|
+
@FullVirusName = fullvirusname
|
435
|
+
@IdcPosition = idcposition
|
436
|
+
@Md5Type = md5type
|
437
|
+
@PeExist = peexist
|
438
|
+
@PeForceUpload = peforceupload
|
439
|
+
@SafeLevel = safelevel
|
440
|
+
@ScanModiTime = scanmoditime
|
441
|
+
@SubdetectId = subdetectid
|
442
|
+
@UserDefName = userdefname
|
443
|
+
@VirusType = virustype
|
444
|
+
@WhiteScore = whitescore
|
445
|
+
end
|
446
|
+
|
447
|
+
def deserialize(params)
|
448
|
+
@DetectId = params['DetectId']
|
449
|
+
@DetectPriority = params['DetectPriority']
|
450
|
+
@EnginePriority = params['EnginePriority']
|
451
|
+
@FileExist = params['FileExist']
|
452
|
+
@FileForceUpload = params['FileForceUpload']
|
453
|
+
@FileSize = params['FileSize']
|
454
|
+
@FileupTime = params['FileupTime']
|
455
|
+
@FullVirusName = params['FullVirusName']
|
456
|
+
@IdcPosition = params['IdcPosition']
|
457
|
+
@Md5Type = params['Md5Type']
|
458
|
+
@PeExist = params['PeExist']
|
459
|
+
@PeForceUpload = params['PeForceUpload']
|
460
|
+
@SafeLevel = params['SafeLevel']
|
461
|
+
@ScanModiTime = params['ScanModiTime']
|
462
|
+
@SubdetectId = params['SubdetectId']
|
463
|
+
@UserDefName = params['UserDefName']
|
464
|
+
@VirusType = params['VirusType']
|
465
|
+
@WhiteScore = params['WhiteScore']
|
466
|
+
end
|
467
|
+
end
|
468
|
+
|
469
|
+
# { "source": "inergj_ai_predict", "stamp": "msraminer", "time": 1531994023 }
|
470
|
+
class IntelligenceType < TencentCloud::Common::AbstractModel
|
471
|
+
# @param Source: 来源
|
472
|
+
# @type Source: String
|
473
|
+
# @param Stamp: 标记
|
474
|
+
# @type Stamp: String
|
475
|
+
# @param Time: 时间
|
476
|
+
# @type Time: Integer
|
477
|
+
|
478
|
+
attr_accessor :Source, :Stamp, :Time
|
479
|
+
|
480
|
+
def initialize(source=nil, stamp=nil, time=nil)
|
481
|
+
@Source = source
|
482
|
+
@Stamp = stamp
|
483
|
+
@Time = time
|
484
|
+
end
|
485
|
+
|
486
|
+
def deserialize(params)
|
487
|
+
@Source = params['Source']
|
488
|
+
@Stamp = params['Stamp']
|
489
|
+
@Time = params['Time']
|
490
|
+
end
|
491
|
+
end
|
492
|
+
|
493
|
+
# 标签及对应的解释
|
494
|
+
class TagType < TencentCloud::Common::AbstractModel
|
495
|
+
# @param Tag: 标签
|
496
|
+
# @type Tag: String
|
497
|
+
# @param Desc: 标签对应的中文解释
|
498
|
+
# @type Desc: String
|
499
|
+
|
500
|
+
attr_accessor :Tag, :Desc
|
501
|
+
|
502
|
+
def initialize(tag=nil, desc=nil)
|
503
|
+
@Tag = tag
|
504
|
+
@Desc = desc
|
505
|
+
end
|
506
|
+
|
507
|
+
def deserialize(params)
|
508
|
+
@Tag = params['Tag']
|
509
|
+
@Desc = params['Desc']
|
510
|
+
end
|
511
|
+
end
|
512
|
+
|
513
|
+
end
|
514
|
+
end
|
515
|
+
end
|
516
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-tics
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.200
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tencent Cloud
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-11-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: tencentcloud-sdk-common
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
description: Tencent Cloud Ruby SDK is the official software development kit, which
|
28
|
+
allows Ruby developers to write software that makes use of Tencent Cloud service
|
29
|
+
TICS.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-tics.rb
|
38
|
+
- lib/v20181115/client.rb
|
39
|
+
- lib/v20181115/models.rb
|
40
|
+
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
|
+
licenses:
|
42
|
+
- Apache-2.0
|
43
|
+
metadata:
|
44
|
+
source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-tics
|
45
|
+
changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options: []
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
requirements: []
|
61
|
+
rubyforge_project:
|
62
|
+
rubygems_version: 2.6.14
|
63
|
+
signing_key:
|
64
|
+
specification_version: 4
|
65
|
+
summary: Tencent Cloud SDK for Ruby - TICS
|
66
|
+
test_files: []
|