tencentcloud-sdk-python 3.0.1419__py2.py3-none-any.whl → 3.0.1421__py2.py3-none-any.whl
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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/ai3d/v20250513/models.py +2 -2
- tencentcloud/autoscaling/v20180419/models.py +15 -0
- tencentcloud/cdb/v20170320/cdb_client.py +1 -1
- tencentcloud/cdb/v20170320/models.py +8 -8
- tencentcloud/cdn/v20180606/models.py +4 -4
- tencentcloud/cdwdoris/v20211228/errorcodes.py +6 -0
- tencentcloud/cdwdoris/v20211228/models.py +244 -4
- tencentcloud/cfg/v20210820/models.py +40 -0
- tencentcloud/cvm/v20170312/models.py +2 -2
- tencentcloud/emr/v20190103/models.py +355 -4
- tencentcloud/ess/v20201111/models.py +8 -2
- tencentcloud/essbasic/v20210526/models.py +2 -2
- tencentcloud/gs/v20191118/models.py +71 -0
- tencentcloud/igtm/v20231024/igtm_client.py +69 -0
- tencentcloud/igtm/v20231024/models.py +1202 -198
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +4 -2
- tencentcloud/live/v20180801/models.py +2 -2
- tencentcloud/lke/v20231130/models.py +395 -2
- tencentcloud/mrs/v20200910/models.py +15 -0
- tencentcloud/nlp/v20190408/errorcodes.py +0 -21
- tencentcloud/nlp/v20190408/models.py +99 -1004
- tencentcloud/nlp/v20190408/nlp_client.py +0 -138
- tencentcloud/ocr/v20181119/models.py +4 -18
- tencentcloud/ocr/v20181119/ocr_client.py +3 -1
- tencentcloud/omics/v20221128/models.py +60 -0
- tencentcloud/ses/v20201002/errorcodes.py +3 -0
- tencentcloud/ses/v20201002/models.py +171 -0
- tencentcloud/ssl/v20191205/errorcodes.py +6 -0
- tencentcloud/tcb/v20180608/models.py +64 -10
- tencentcloud/tdmq/v20200217/models.py +30 -0
- tencentcloud/teo/v20220901/models.py +664 -2
- tencentcloud/teo/v20220901/teo_client.py +115 -0
- tencentcloud/tione/v20211111/models.py +23 -0
- tencentcloud/tke/v20180525/models.py +46 -46
- tencentcloud/tsf/v20180326/errorcodes.py +6 -0
- tencentcloud/tsf/v20180326/models.py +16 -0
- tencentcloud/vod/v20180717/models.py +8 -4
- tencentcloud/vrs/v20200824/vrs_client.py +1 -1
- {tencentcloud_sdk_python-3.0.1419.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1419.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/RECORD +44 -173
- tencentcloud/cis/__init__.py +0 -0
- tencentcloud/cis/v20180408/__init__.py +0 -0
- tencentcloud/cis/v20180408/cis_client.py +0 -187
- tencentcloud/cis/v20180408/errorcodes.py +0 -21
- tencentcloud/cis/v20180408/models.py +0 -1688
- tencentcloud/dataintegration/__init__.py +0 -0
- tencentcloud/dataintegration/v20220613/__init__.py +0 -0
- tencentcloud/dataintegration/v20220613/dataintegration_client.py +0 -49
- tencentcloud/dataintegration/v20220613/errorcodes.py +0 -15
- tencentcloud/dataintegration/v20220613/models.py +0 -168
- tencentcloud/dtf/__init__.py +0 -0
- tencentcloud/dtf/v20200506/__init__.py +0 -0
- tencentcloud/dtf/v20200506/dtf_client.py +0 -49
- tencentcloud/dtf/v20200506/errorcodes.py +0 -21
- tencentcloud/dtf/v20200506/models.py +0 -538
- tencentcloud/gpm/__init__.py +0 -0
- tencentcloud/gpm/v20200820/__init__.py +0 -0
- tencentcloud/gpm/v20200820/errorcodes.py +0 -168
- tencentcloud/gpm/v20200820/gpm_client.py +0 -476
- tencentcloud/gpm/v20200820/models.py +0 -4255
- tencentcloud/gse/__init__.py +0 -0
- tencentcloud/gse/v20191112/__init__.py +0 -0
- tencentcloud/gse/v20191112/errorcodes.py +0 -90
- tencentcloud/gse/v20191112/gse_client.py +0 -1993
- tencentcloud/gse/v20191112/models.py +0 -15093
- tencentcloud/iecp/__init__.py +0 -0
- tencentcloud/iecp/v20210914/__init__.py +0 -0
- tencentcloud/iecp/v20210914/errorcodes.py +0 -75
- tencentcloud/iecp/v20210914/iecp_client.py +0 -1912
- tencentcloud/iecp/v20210914/models.py +0 -17466
- tencentcloud/iir/__init__.py +0 -0
- tencentcloud/iir/v20200417/__init__.py +0 -0
- tencentcloud/iir/v20200417/errorcodes.py +0 -48
- tencentcloud/iir/v20200417/iir_client.py +0 -53
- tencentcloud/iir/v20200417/models.py +0 -451
- tencentcloud/iottid/__init__.py +0 -0
- tencentcloud/iottid/v20190411/__init__.py +0 -0
- tencentcloud/iottid/v20190411/errorcodes.py +0 -54
- tencentcloud/iottid/v20190411/iottid_client.py +0 -233
- tencentcloud/iottid/v20190411/models.py +0 -1053
- tencentcloud/mgobe/__init__.py +0 -0
- tencentcloud/mgobe/v20190929/__init__.py +0 -0
- tencentcloud/mgobe/v20190929/errorcodes.py +0 -945
- tencentcloud/mgobe/v20190929/mgobe_client.py +0 -49
- tencentcloud/mgobe/v20190929/models.py +0 -97
- tencentcloud/mgobe/v20201014/__init__.py +0 -0
- tencentcloud/mgobe/v20201014/errorcodes.py +0 -948
- tencentcloud/mgobe/v20201014/mgobe_client.py +0 -201
- tencentcloud/mgobe/v20201014/models.py +0 -1361
- tencentcloud/mvj/__init__.py +0 -0
- tencentcloud/mvj/v20190926/__init__.py +0 -0
- tencentcloud/mvj/v20190926/errorcodes.py +0 -30
- tencentcloud/mvj/v20190926/models.py +0 -263
- tencentcloud/mvj/v20190926/mvj_client.py +0 -51
- tencentcloud/pds/__init__.py +0 -0
- tencentcloud/pds/v20210701/__init__.py +0 -0
- tencentcloud/pds/v20210701/errorcodes.py +0 -48
- tencentcloud/pds/v20210701/models.py +0 -346
- tencentcloud/pds/v20210701/pds_client.py +0 -72
- tencentcloud/smpn/__init__.py +0 -0
- tencentcloud/smpn/v20190822/__init__.py +0 -0
- tencentcloud/smpn/v20190822/errorcodes.py +0 -27
- tencentcloud/smpn/v20190822/models.py +0 -389
- tencentcloud/smpn/v20190822/smpn_client.py +0 -76
- tencentcloud/solar/__init__.py +0 -0
- tencentcloud/solar/v20181011/__init__.py +0 -0
- tencentcloud/solar/v20181011/errorcodes.py +0 -42
- tencentcloud/solar/v20181011/models.py +0 -3848
- tencentcloud/solar/v20181011/solar_client.py +0 -417
- tencentcloud/tan/__init__.py +0 -0
- tencentcloud/tan/v20220420/__init__.py +0 -0
- tencentcloud/tan/v20220420/errorcodes.py +0 -81
- tencentcloud/tan/v20220420/models.py +0 -112
- tencentcloud/tan/v20220420/tan_client.py +0 -51
- tencentcloud/tav/__init__.py +0 -0
- tencentcloud/tav/v20190118/__init__.py +0 -0
- tencentcloud/tav/v20190118/errorcodes.py +0 -15
- tencentcloud/tav/v20190118/models.py +0 -550
- tencentcloud/tav/v20190118/tav_client.py +0 -118
- tencentcloud/tbm/__init__.py +0 -0
- tencentcloud/tbm/v20180129/__init__.py +0 -0
- tencentcloud/tbm/v20180129/errorcodes.py +0 -39
- tencentcloud/tbm/v20180129/models.py +0 -2354
- tencentcloud/tbm/v20180129/tbm_client.py +0 -233
- tencentcloud/tcex/__init__.py +0 -0
- tencentcloud/tcex/v20200727/__init__.py +0 -0
- tencentcloud/tcex/v20200727/errorcodes.py +0 -51
- tencentcloud/tcex/v20200727/models.py +0 -374
- tencentcloud/tcex/v20200727/tcex_client.py +0 -76
- tencentcloud/tci/__init__.py +0 -0
- tencentcloud/tci/v20190318/__init__.py +0 -0
- tencentcloud/tci/v20190318/errorcodes.py +0 -237
- tencentcloud/tci/v20190318/models.py +0 -11569
- tencentcloud/tci/v20190318/tci_client.py +0 -1017
- tencentcloud/tic/__init__.py +0 -0
- tencentcloud/tic/v20201117/__init__.py +0 -0
- tencentcloud/tic/v20201117/errorcodes.py +0 -48
- tencentcloud/tic/v20201117/models.py +0 -1952
- tencentcloud/tic/v20201117/tic_client.py +0 -342
- tencentcloud/ticm/__init__.py +0 -0
- tencentcloud/ticm/v20181127/__init__.py +0 -0
- tencentcloud/ticm/v20181127/errorcodes.py +0 -36
- tencentcloud/ticm/v20181127/models.py +0 -3385
- tencentcloud/ticm/v20181127/ticm_client.py +0 -95
- tencentcloud/tics/__init__.py +0 -0
- tencentcloud/tics/v20181115/__init__.py +0 -0
- tencentcloud/tics/v20181115/errorcodes.py +0 -30
- tencentcloud/tics/v20181115/models.py +0 -1324
- tencentcloud/tics/v20181115/tics_client.py +0 -118
- tencentcloud/tiems/__init__.py +0 -0
- tencentcloud/tiems/v20190416/__init__.py +0 -0
- tencentcloud/tiems/v20190416/errorcodes.py +0 -36
- tencentcloud/tiems/v20190416/models.py +0 -6644
- tencentcloud/tiems/v20190416/tiems_client.py +0 -651
- tencentcloud/trdp/__init__.py +0 -0
- tencentcloud/trdp/v20220726/__init__.py +0 -0
- tencentcloud/trdp/v20220726/errorcodes.py +0 -30
- tencentcloud/trdp/v20220726/models.py +0 -1609
- tencentcloud/trdp/v20220726/trdp_client.py +0 -49
- tencentcloud/ump/__init__.py +0 -0
- tencentcloud/ump/v20200918/__init__.py +0 -0
- tencentcloud/ump/v20200918/errorcodes.py +0 -57
- tencentcloud/ump/v20200918/models.py +0 -4089
- tencentcloud/ump/v20200918/ump_client.py +0 -454
- tencentcloud/youmall/__init__.py +0 -0
- tencentcloud/youmall/v20180228/__init__.py +0 -0
- tencentcloud/youmall/v20180228/errorcodes.py +0 -93
- tencentcloud/youmall/v20180228/models.py +0 -8181
- tencentcloud/youmall/v20180228/youmall_client.py +0 -740
- {tencentcloud_sdk_python-3.0.1419.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1419.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1419.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/top_level.txt +0 -0
@@ -1,1324 +0,0 @@
|
|
1
|
-
# -*- coding: utf8 -*-
|
2
|
-
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
import warnings
|
17
|
-
|
18
|
-
from tencentcloud.common.abstract_model import AbstractModel
|
19
|
-
|
20
|
-
|
21
|
-
class DescribeDomainInfoRequest(AbstractModel):
|
22
|
-
"""DescribeDomainInfo请求参数结构体
|
23
|
-
|
24
|
-
"""
|
25
|
-
|
26
|
-
def __init__(self):
|
27
|
-
r"""
|
28
|
-
:param _Key: 要查询的域名
|
29
|
-
:type Key: str
|
30
|
-
:param _Option: 附加字段,是否返回上下文。当为0时不返回上下文,当为1时返回上下文。
|
31
|
-
:type Option: int
|
32
|
-
"""
|
33
|
-
self._Key = None
|
34
|
-
self._Option = None
|
35
|
-
|
36
|
-
@property
|
37
|
-
def Key(self):
|
38
|
-
"""要查询的域名
|
39
|
-
:rtype: str
|
40
|
-
"""
|
41
|
-
return self._Key
|
42
|
-
|
43
|
-
@Key.setter
|
44
|
-
def Key(self, Key):
|
45
|
-
self._Key = Key
|
46
|
-
|
47
|
-
@property
|
48
|
-
def Option(self):
|
49
|
-
"""附加字段,是否返回上下文。当为0时不返回上下文,当为1时返回上下文。
|
50
|
-
:rtype: int
|
51
|
-
"""
|
52
|
-
return self._Option
|
53
|
-
|
54
|
-
@Option.setter
|
55
|
-
def Option(self, Option):
|
56
|
-
self._Option = Option
|
57
|
-
|
58
|
-
|
59
|
-
def _deserialize(self, params):
|
60
|
-
self._Key = params.get("Key")
|
61
|
-
self._Option = params.get("Option")
|
62
|
-
memeber_set = set(params.keys())
|
63
|
-
for name, value in vars(self).items():
|
64
|
-
property_name = name[1:]
|
65
|
-
if property_name in memeber_set:
|
66
|
-
memeber_set.remove(property_name)
|
67
|
-
if len(memeber_set) > 0:
|
68
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
class DescribeDomainInfoResponse(AbstractModel):
|
73
|
-
"""DescribeDomainInfo返回参数结构体
|
74
|
-
|
75
|
-
"""
|
76
|
-
|
77
|
-
def __init__(self):
|
78
|
-
r"""
|
79
|
-
:param _ReturnCode: 是否有数据,0代表有数据,1代表没有数据
|
80
|
-
:type ReturnCode: int
|
81
|
-
:param _Result: 判定结果,如:black、white、grey
|
82
|
-
:type Result: str
|
83
|
-
:param _Confidence: 置信度,取值0-100
|
84
|
-
:type Confidence: int
|
85
|
-
:param _ThreatTypes: 威胁类型。
|
86
|
-
botnet = 僵尸网络
|
87
|
-
trojan = 木马
|
88
|
-
ransomware = 勒索软件
|
89
|
-
worm = 蠕虫
|
90
|
-
dga = 域名生成算法
|
91
|
-
c2 = c&c
|
92
|
-
compromised = 失陷主机
|
93
|
-
dynamicIP = 动态IP
|
94
|
-
proxy = 代理
|
95
|
-
idc = idc 机房
|
96
|
-
whitelist = 白名单
|
97
|
-
tor = 暗网
|
98
|
-
miner = 挖矿
|
99
|
-
maleware site = 恶意站点
|
100
|
-
malware IP = 恶意IP
|
101
|
-
等等
|
102
|
-
:type ThreatTypes: list of str
|
103
|
-
:param _Tags: 恶意标签,对应的团伙,家族等信息。
|
104
|
-
:type Tags: list of TagType
|
105
|
-
:param _Intelligences: 对应的历史上的威胁情报事件
|
106
|
-
:type Intelligences: list of IntelligenceType
|
107
|
-
:param _Context: 情报相关的上下文
|
108
|
-
:type Context: str
|
109
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
110
|
-
:type RequestId: str
|
111
|
-
"""
|
112
|
-
self._ReturnCode = None
|
113
|
-
self._Result = None
|
114
|
-
self._Confidence = None
|
115
|
-
self._ThreatTypes = None
|
116
|
-
self._Tags = None
|
117
|
-
self._Intelligences = None
|
118
|
-
self._Context = None
|
119
|
-
self._RequestId = None
|
120
|
-
|
121
|
-
@property
|
122
|
-
def ReturnCode(self):
|
123
|
-
"""是否有数据,0代表有数据,1代表没有数据
|
124
|
-
:rtype: int
|
125
|
-
"""
|
126
|
-
return self._ReturnCode
|
127
|
-
|
128
|
-
@ReturnCode.setter
|
129
|
-
def ReturnCode(self, ReturnCode):
|
130
|
-
self._ReturnCode = ReturnCode
|
131
|
-
|
132
|
-
@property
|
133
|
-
def Result(self):
|
134
|
-
"""判定结果,如:black、white、grey
|
135
|
-
:rtype: str
|
136
|
-
"""
|
137
|
-
return self._Result
|
138
|
-
|
139
|
-
@Result.setter
|
140
|
-
def Result(self, Result):
|
141
|
-
self._Result = Result
|
142
|
-
|
143
|
-
@property
|
144
|
-
def Confidence(self):
|
145
|
-
"""置信度,取值0-100
|
146
|
-
:rtype: int
|
147
|
-
"""
|
148
|
-
return self._Confidence
|
149
|
-
|
150
|
-
@Confidence.setter
|
151
|
-
def Confidence(self, Confidence):
|
152
|
-
self._Confidence = Confidence
|
153
|
-
|
154
|
-
@property
|
155
|
-
def ThreatTypes(self):
|
156
|
-
"""威胁类型。
|
157
|
-
botnet = 僵尸网络
|
158
|
-
trojan = 木马
|
159
|
-
ransomware = 勒索软件
|
160
|
-
worm = 蠕虫
|
161
|
-
dga = 域名生成算法
|
162
|
-
c2 = c&c
|
163
|
-
compromised = 失陷主机
|
164
|
-
dynamicIP = 动态IP
|
165
|
-
proxy = 代理
|
166
|
-
idc = idc 机房
|
167
|
-
whitelist = 白名单
|
168
|
-
tor = 暗网
|
169
|
-
miner = 挖矿
|
170
|
-
maleware site = 恶意站点
|
171
|
-
malware IP = 恶意IP
|
172
|
-
等等
|
173
|
-
:rtype: list of str
|
174
|
-
"""
|
175
|
-
return self._ThreatTypes
|
176
|
-
|
177
|
-
@ThreatTypes.setter
|
178
|
-
def ThreatTypes(self, ThreatTypes):
|
179
|
-
self._ThreatTypes = ThreatTypes
|
180
|
-
|
181
|
-
@property
|
182
|
-
def Tags(self):
|
183
|
-
"""恶意标签,对应的团伙,家族等信息。
|
184
|
-
:rtype: list of TagType
|
185
|
-
"""
|
186
|
-
return self._Tags
|
187
|
-
|
188
|
-
@Tags.setter
|
189
|
-
def Tags(self, Tags):
|
190
|
-
self._Tags = Tags
|
191
|
-
|
192
|
-
@property
|
193
|
-
def Intelligences(self):
|
194
|
-
"""对应的历史上的威胁情报事件
|
195
|
-
:rtype: list of IntelligenceType
|
196
|
-
"""
|
197
|
-
return self._Intelligences
|
198
|
-
|
199
|
-
@Intelligences.setter
|
200
|
-
def Intelligences(self, Intelligences):
|
201
|
-
self._Intelligences = Intelligences
|
202
|
-
|
203
|
-
@property
|
204
|
-
def Context(self):
|
205
|
-
"""情报相关的上下文
|
206
|
-
:rtype: str
|
207
|
-
"""
|
208
|
-
return self._Context
|
209
|
-
|
210
|
-
@Context.setter
|
211
|
-
def Context(self, Context):
|
212
|
-
self._Context = Context
|
213
|
-
|
214
|
-
@property
|
215
|
-
def RequestId(self):
|
216
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
217
|
-
:rtype: str
|
218
|
-
"""
|
219
|
-
return self._RequestId
|
220
|
-
|
221
|
-
@RequestId.setter
|
222
|
-
def RequestId(self, RequestId):
|
223
|
-
self._RequestId = RequestId
|
224
|
-
|
225
|
-
|
226
|
-
def _deserialize(self, params):
|
227
|
-
self._ReturnCode = params.get("ReturnCode")
|
228
|
-
self._Result = params.get("Result")
|
229
|
-
self._Confidence = params.get("Confidence")
|
230
|
-
self._ThreatTypes = params.get("ThreatTypes")
|
231
|
-
if params.get("Tags") is not None:
|
232
|
-
self._Tags = []
|
233
|
-
for item in params.get("Tags"):
|
234
|
-
obj = TagType()
|
235
|
-
obj._deserialize(item)
|
236
|
-
self._Tags.append(obj)
|
237
|
-
if params.get("Intelligences") is not None:
|
238
|
-
self._Intelligences = []
|
239
|
-
for item in params.get("Intelligences"):
|
240
|
-
obj = IntelligenceType()
|
241
|
-
obj._deserialize(item)
|
242
|
-
self._Intelligences.append(obj)
|
243
|
-
self._Context = params.get("Context")
|
244
|
-
self._RequestId = params.get("RequestId")
|
245
|
-
|
246
|
-
|
247
|
-
class DescribeFileInfoRequest(AbstractModel):
|
248
|
-
"""DescribeFileInfo请求参数结构体
|
249
|
-
|
250
|
-
"""
|
251
|
-
|
252
|
-
def __init__(self):
|
253
|
-
r"""
|
254
|
-
:param _Key: 要查询文件的MD5
|
255
|
-
:type Key: str
|
256
|
-
:param _Option: 附加字段,是否返回上下文。当为0时不返回上下文,当为1时返回上下文。
|
257
|
-
:type Option: int
|
258
|
-
"""
|
259
|
-
self._Key = None
|
260
|
-
self._Option = None
|
261
|
-
|
262
|
-
@property
|
263
|
-
def Key(self):
|
264
|
-
"""要查询文件的MD5
|
265
|
-
:rtype: str
|
266
|
-
"""
|
267
|
-
return self._Key
|
268
|
-
|
269
|
-
@Key.setter
|
270
|
-
def Key(self, Key):
|
271
|
-
self._Key = Key
|
272
|
-
|
273
|
-
@property
|
274
|
-
def Option(self):
|
275
|
-
"""附加字段,是否返回上下文。当为0时不返回上下文,当为1时返回上下文。
|
276
|
-
:rtype: int
|
277
|
-
"""
|
278
|
-
return self._Option
|
279
|
-
|
280
|
-
@Option.setter
|
281
|
-
def Option(self, Option):
|
282
|
-
self._Option = Option
|
283
|
-
|
284
|
-
|
285
|
-
def _deserialize(self, params):
|
286
|
-
self._Key = params.get("Key")
|
287
|
-
self._Option = params.get("Option")
|
288
|
-
memeber_set = set(params.keys())
|
289
|
-
for name, value in vars(self).items():
|
290
|
-
property_name = name[1:]
|
291
|
-
if property_name in memeber_set:
|
292
|
-
memeber_set.remove(property_name)
|
293
|
-
if len(memeber_set) > 0:
|
294
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
class DescribeFileInfoResponse(AbstractModel):
|
299
|
-
"""DescribeFileInfo返回参数结构体
|
300
|
-
|
301
|
-
"""
|
302
|
-
|
303
|
-
def __init__(self):
|
304
|
-
r"""
|
305
|
-
:param _ReturnCode: 是否有数据,0代表有数据,1代表没有数据
|
306
|
-
:type ReturnCode: int
|
307
|
-
:param _Result: 判定结果,如:black、white、grey
|
308
|
-
:type Result: str
|
309
|
-
:param _Confidence: 置信度,取值0-100
|
310
|
-
:type Confidence: int
|
311
|
-
:param _FileInfo: 文件类型,文件hash
|
312
|
-
(md5,sha1,sha256),文件大小等等文件
|
313
|
-
基础信息
|
314
|
-
:type FileInfo: list of FileInfoType
|
315
|
-
:param _Tags: 恶意标签,对应的团伙,家族等信息。
|
316
|
-
:type Tags: list of TagType
|
317
|
-
:param _Intelligences: 对应的历史上的威胁情报事件
|
318
|
-
:type Intelligences: list of IntelligenceType
|
319
|
-
:param _Context: 情报相关的上下文
|
320
|
-
:type Context: str
|
321
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
322
|
-
:type RequestId: str
|
323
|
-
"""
|
324
|
-
self._ReturnCode = None
|
325
|
-
self._Result = None
|
326
|
-
self._Confidence = None
|
327
|
-
self._FileInfo = None
|
328
|
-
self._Tags = None
|
329
|
-
self._Intelligences = None
|
330
|
-
self._Context = None
|
331
|
-
self._RequestId = None
|
332
|
-
|
333
|
-
@property
|
334
|
-
def ReturnCode(self):
|
335
|
-
"""是否有数据,0代表有数据,1代表没有数据
|
336
|
-
:rtype: int
|
337
|
-
"""
|
338
|
-
return self._ReturnCode
|
339
|
-
|
340
|
-
@ReturnCode.setter
|
341
|
-
def ReturnCode(self, ReturnCode):
|
342
|
-
self._ReturnCode = ReturnCode
|
343
|
-
|
344
|
-
@property
|
345
|
-
def Result(self):
|
346
|
-
"""判定结果,如:black、white、grey
|
347
|
-
:rtype: str
|
348
|
-
"""
|
349
|
-
return self._Result
|
350
|
-
|
351
|
-
@Result.setter
|
352
|
-
def Result(self, Result):
|
353
|
-
self._Result = Result
|
354
|
-
|
355
|
-
@property
|
356
|
-
def Confidence(self):
|
357
|
-
"""置信度,取值0-100
|
358
|
-
:rtype: int
|
359
|
-
"""
|
360
|
-
return self._Confidence
|
361
|
-
|
362
|
-
@Confidence.setter
|
363
|
-
def Confidence(self, Confidence):
|
364
|
-
self._Confidence = Confidence
|
365
|
-
|
366
|
-
@property
|
367
|
-
def FileInfo(self):
|
368
|
-
"""文件类型,文件hash
|
369
|
-
(md5,sha1,sha256),文件大小等等文件
|
370
|
-
基础信息
|
371
|
-
:rtype: list of FileInfoType
|
372
|
-
"""
|
373
|
-
return self._FileInfo
|
374
|
-
|
375
|
-
@FileInfo.setter
|
376
|
-
def FileInfo(self, FileInfo):
|
377
|
-
self._FileInfo = FileInfo
|
378
|
-
|
379
|
-
@property
|
380
|
-
def Tags(self):
|
381
|
-
"""恶意标签,对应的团伙,家族等信息。
|
382
|
-
:rtype: list of TagType
|
383
|
-
"""
|
384
|
-
return self._Tags
|
385
|
-
|
386
|
-
@Tags.setter
|
387
|
-
def Tags(self, Tags):
|
388
|
-
self._Tags = Tags
|
389
|
-
|
390
|
-
@property
|
391
|
-
def Intelligences(self):
|
392
|
-
"""对应的历史上的威胁情报事件
|
393
|
-
:rtype: list of IntelligenceType
|
394
|
-
"""
|
395
|
-
return self._Intelligences
|
396
|
-
|
397
|
-
@Intelligences.setter
|
398
|
-
def Intelligences(self, Intelligences):
|
399
|
-
self._Intelligences = Intelligences
|
400
|
-
|
401
|
-
@property
|
402
|
-
def Context(self):
|
403
|
-
"""情报相关的上下文
|
404
|
-
:rtype: str
|
405
|
-
"""
|
406
|
-
return self._Context
|
407
|
-
|
408
|
-
@Context.setter
|
409
|
-
def Context(self, Context):
|
410
|
-
self._Context = Context
|
411
|
-
|
412
|
-
@property
|
413
|
-
def RequestId(self):
|
414
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
415
|
-
:rtype: str
|
416
|
-
"""
|
417
|
-
return self._RequestId
|
418
|
-
|
419
|
-
@RequestId.setter
|
420
|
-
def RequestId(self, RequestId):
|
421
|
-
self._RequestId = RequestId
|
422
|
-
|
423
|
-
|
424
|
-
def _deserialize(self, params):
|
425
|
-
self._ReturnCode = params.get("ReturnCode")
|
426
|
-
self._Result = params.get("Result")
|
427
|
-
self._Confidence = params.get("Confidence")
|
428
|
-
if params.get("FileInfo") is not None:
|
429
|
-
self._FileInfo = []
|
430
|
-
for item in params.get("FileInfo"):
|
431
|
-
obj = FileInfoType()
|
432
|
-
obj._deserialize(item)
|
433
|
-
self._FileInfo.append(obj)
|
434
|
-
if params.get("Tags") is not None:
|
435
|
-
self._Tags = []
|
436
|
-
for item in params.get("Tags"):
|
437
|
-
obj = TagType()
|
438
|
-
obj._deserialize(item)
|
439
|
-
self._Tags.append(obj)
|
440
|
-
if params.get("Intelligences") is not None:
|
441
|
-
self._Intelligences = []
|
442
|
-
for item in params.get("Intelligences"):
|
443
|
-
obj = IntelligenceType()
|
444
|
-
obj._deserialize(item)
|
445
|
-
self._Intelligences.append(obj)
|
446
|
-
self._Context = params.get("Context")
|
447
|
-
self._RequestId = params.get("RequestId")
|
448
|
-
|
449
|
-
|
450
|
-
class DescribeIpInfoRequest(AbstractModel):
|
451
|
-
"""DescribeIpInfo请求参数结构体
|
452
|
-
|
453
|
-
"""
|
454
|
-
|
455
|
-
def __init__(self):
|
456
|
-
r"""
|
457
|
-
:param _Key: 要查询的IP
|
458
|
-
:type Key: str
|
459
|
-
:param _Option: 附加字段,是否返回上下文。当为0时不返回上下文,当为1时返回上下文。
|
460
|
-
:type Option: int
|
461
|
-
"""
|
462
|
-
self._Key = None
|
463
|
-
self._Option = None
|
464
|
-
|
465
|
-
@property
|
466
|
-
def Key(self):
|
467
|
-
"""要查询的IP
|
468
|
-
:rtype: str
|
469
|
-
"""
|
470
|
-
return self._Key
|
471
|
-
|
472
|
-
@Key.setter
|
473
|
-
def Key(self, Key):
|
474
|
-
self._Key = Key
|
475
|
-
|
476
|
-
@property
|
477
|
-
def Option(self):
|
478
|
-
"""附加字段,是否返回上下文。当为0时不返回上下文,当为1时返回上下文。
|
479
|
-
:rtype: int
|
480
|
-
"""
|
481
|
-
return self._Option
|
482
|
-
|
483
|
-
@Option.setter
|
484
|
-
def Option(self, Option):
|
485
|
-
self._Option = Option
|
486
|
-
|
487
|
-
|
488
|
-
def _deserialize(self, params):
|
489
|
-
self._Key = params.get("Key")
|
490
|
-
self._Option = params.get("Option")
|
491
|
-
memeber_set = set(params.keys())
|
492
|
-
for name, value in vars(self).items():
|
493
|
-
property_name = name[1:]
|
494
|
-
if property_name in memeber_set:
|
495
|
-
memeber_set.remove(property_name)
|
496
|
-
if len(memeber_set) > 0:
|
497
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
class DescribeIpInfoResponse(AbstractModel):
|
502
|
-
"""DescribeIpInfo返回参数结构体
|
503
|
-
|
504
|
-
"""
|
505
|
-
|
506
|
-
def __init__(self):
|
507
|
-
r"""
|
508
|
-
:param _ReturnCode: 是否有数据,0代表有数据,1代表没有数据
|
509
|
-
:type ReturnCode: int
|
510
|
-
:param _Result: 判定结果,如:black、white、grey
|
511
|
-
:type Result: str
|
512
|
-
:param _Confidence: 置信度,取值0-100
|
513
|
-
:type Confidence: int
|
514
|
-
:param _ThreatTypes: 威胁类型。
|
515
|
-
botnet = 僵尸网络
|
516
|
-
trojan = 木马
|
517
|
-
ransomware = 勒索软件
|
518
|
-
worm = 蠕虫
|
519
|
-
dga = 域名生成算法
|
520
|
-
c2 = c&c
|
521
|
-
compromised = 失陷主机
|
522
|
-
dynamicIP = 动态IP
|
523
|
-
proxy = 代理
|
524
|
-
idc = idc 机房
|
525
|
-
whitelist = 白名单
|
526
|
-
tor = 暗网
|
527
|
-
miner = 挖矿
|
528
|
-
maleware site = 恶意站点
|
529
|
-
malware IP = 恶意IP
|
530
|
-
等等
|
531
|
-
:type ThreatTypes: list of str
|
532
|
-
:param _Tags: 恶意标签,对应的团伙,家族等信息。
|
533
|
-
:type Tags: list of TagType
|
534
|
-
:param _Intelligences: 对应的历史上的威胁情报事件
|
535
|
-
:type Intelligences: list of IntelligenceType
|
536
|
-
:param _Context: 情报相关的上下文
|
537
|
-
:type Context: str
|
538
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
539
|
-
:type RequestId: str
|
540
|
-
"""
|
541
|
-
self._ReturnCode = None
|
542
|
-
self._Result = None
|
543
|
-
self._Confidence = None
|
544
|
-
self._ThreatTypes = None
|
545
|
-
self._Tags = None
|
546
|
-
self._Intelligences = None
|
547
|
-
self._Context = None
|
548
|
-
self._RequestId = None
|
549
|
-
|
550
|
-
@property
|
551
|
-
def ReturnCode(self):
|
552
|
-
"""是否有数据,0代表有数据,1代表没有数据
|
553
|
-
:rtype: int
|
554
|
-
"""
|
555
|
-
return self._ReturnCode
|
556
|
-
|
557
|
-
@ReturnCode.setter
|
558
|
-
def ReturnCode(self, ReturnCode):
|
559
|
-
self._ReturnCode = ReturnCode
|
560
|
-
|
561
|
-
@property
|
562
|
-
def Result(self):
|
563
|
-
"""判定结果,如:black、white、grey
|
564
|
-
:rtype: str
|
565
|
-
"""
|
566
|
-
return self._Result
|
567
|
-
|
568
|
-
@Result.setter
|
569
|
-
def Result(self, Result):
|
570
|
-
self._Result = Result
|
571
|
-
|
572
|
-
@property
|
573
|
-
def Confidence(self):
|
574
|
-
"""置信度,取值0-100
|
575
|
-
:rtype: int
|
576
|
-
"""
|
577
|
-
return self._Confidence
|
578
|
-
|
579
|
-
@Confidence.setter
|
580
|
-
def Confidence(self, Confidence):
|
581
|
-
self._Confidence = Confidence
|
582
|
-
|
583
|
-
@property
|
584
|
-
def ThreatTypes(self):
|
585
|
-
"""威胁类型。
|
586
|
-
botnet = 僵尸网络
|
587
|
-
trojan = 木马
|
588
|
-
ransomware = 勒索软件
|
589
|
-
worm = 蠕虫
|
590
|
-
dga = 域名生成算法
|
591
|
-
c2 = c&c
|
592
|
-
compromised = 失陷主机
|
593
|
-
dynamicIP = 动态IP
|
594
|
-
proxy = 代理
|
595
|
-
idc = idc 机房
|
596
|
-
whitelist = 白名单
|
597
|
-
tor = 暗网
|
598
|
-
miner = 挖矿
|
599
|
-
maleware site = 恶意站点
|
600
|
-
malware IP = 恶意IP
|
601
|
-
等等
|
602
|
-
:rtype: list of str
|
603
|
-
"""
|
604
|
-
return self._ThreatTypes
|
605
|
-
|
606
|
-
@ThreatTypes.setter
|
607
|
-
def ThreatTypes(self, ThreatTypes):
|
608
|
-
self._ThreatTypes = ThreatTypes
|
609
|
-
|
610
|
-
@property
|
611
|
-
def Tags(self):
|
612
|
-
"""恶意标签,对应的团伙,家族等信息。
|
613
|
-
:rtype: list of TagType
|
614
|
-
"""
|
615
|
-
return self._Tags
|
616
|
-
|
617
|
-
@Tags.setter
|
618
|
-
def Tags(self, Tags):
|
619
|
-
self._Tags = Tags
|
620
|
-
|
621
|
-
@property
|
622
|
-
def Intelligences(self):
|
623
|
-
"""对应的历史上的威胁情报事件
|
624
|
-
:rtype: list of IntelligenceType
|
625
|
-
"""
|
626
|
-
return self._Intelligences
|
627
|
-
|
628
|
-
@Intelligences.setter
|
629
|
-
def Intelligences(self, Intelligences):
|
630
|
-
self._Intelligences = Intelligences
|
631
|
-
|
632
|
-
@property
|
633
|
-
def Context(self):
|
634
|
-
"""情报相关的上下文
|
635
|
-
:rtype: str
|
636
|
-
"""
|
637
|
-
return self._Context
|
638
|
-
|
639
|
-
@Context.setter
|
640
|
-
def Context(self, Context):
|
641
|
-
self._Context = Context
|
642
|
-
|
643
|
-
@property
|
644
|
-
def RequestId(self):
|
645
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
646
|
-
:rtype: str
|
647
|
-
"""
|
648
|
-
return self._RequestId
|
649
|
-
|
650
|
-
@RequestId.setter
|
651
|
-
def RequestId(self, RequestId):
|
652
|
-
self._RequestId = RequestId
|
653
|
-
|
654
|
-
|
655
|
-
def _deserialize(self, params):
|
656
|
-
self._ReturnCode = params.get("ReturnCode")
|
657
|
-
self._Result = params.get("Result")
|
658
|
-
self._Confidence = params.get("Confidence")
|
659
|
-
self._ThreatTypes = params.get("ThreatTypes")
|
660
|
-
if params.get("Tags") is not None:
|
661
|
-
self._Tags = []
|
662
|
-
for item in params.get("Tags"):
|
663
|
-
obj = TagType()
|
664
|
-
obj._deserialize(item)
|
665
|
-
self._Tags.append(obj)
|
666
|
-
if params.get("Intelligences") is not None:
|
667
|
-
self._Intelligences = []
|
668
|
-
for item in params.get("Intelligences"):
|
669
|
-
obj = IntelligenceType()
|
670
|
-
obj._deserialize(item)
|
671
|
-
self._Intelligences.append(obj)
|
672
|
-
self._Context = params.get("Context")
|
673
|
-
self._RequestId = params.get("RequestId")
|
674
|
-
|
675
|
-
|
676
|
-
class DescribeThreatInfoRequest(AbstractModel):
|
677
|
-
"""DescribeThreatInfo请求参数结构体
|
678
|
-
|
679
|
-
"""
|
680
|
-
|
681
|
-
def __init__(self):
|
682
|
-
r"""
|
683
|
-
:param _Key: 查询对象,域名或IP
|
684
|
-
:type Key: str
|
685
|
-
:param _Type: 查询类型,当前取值为domain或ip
|
686
|
-
:type Type: str
|
687
|
-
:param _Option: 附加字段,是否返回上下文。当为0时不返回上下文,当为1时返回上下文。
|
688
|
-
:type Option: int
|
689
|
-
"""
|
690
|
-
self._Key = None
|
691
|
-
self._Type = None
|
692
|
-
self._Option = None
|
693
|
-
|
694
|
-
@property
|
695
|
-
def Key(self):
|
696
|
-
"""查询对象,域名或IP
|
697
|
-
:rtype: str
|
698
|
-
"""
|
699
|
-
return self._Key
|
700
|
-
|
701
|
-
@Key.setter
|
702
|
-
def Key(self, Key):
|
703
|
-
self._Key = Key
|
704
|
-
|
705
|
-
@property
|
706
|
-
def Type(self):
|
707
|
-
"""查询类型,当前取值为domain或ip
|
708
|
-
:rtype: str
|
709
|
-
"""
|
710
|
-
return self._Type
|
711
|
-
|
712
|
-
@Type.setter
|
713
|
-
def Type(self, Type):
|
714
|
-
self._Type = Type
|
715
|
-
|
716
|
-
@property
|
717
|
-
def Option(self):
|
718
|
-
"""附加字段,是否返回上下文。当为0时不返回上下文,当为1时返回上下文。
|
719
|
-
:rtype: int
|
720
|
-
"""
|
721
|
-
return self._Option
|
722
|
-
|
723
|
-
@Option.setter
|
724
|
-
def Option(self, Option):
|
725
|
-
self._Option = Option
|
726
|
-
|
727
|
-
|
728
|
-
def _deserialize(self, params):
|
729
|
-
self._Key = params.get("Key")
|
730
|
-
self._Type = params.get("Type")
|
731
|
-
self._Option = params.get("Option")
|
732
|
-
memeber_set = set(params.keys())
|
733
|
-
for name, value in vars(self).items():
|
734
|
-
property_name = name[1:]
|
735
|
-
if property_name in memeber_set:
|
736
|
-
memeber_set.remove(property_name)
|
737
|
-
if len(memeber_set) > 0:
|
738
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
class DescribeThreatInfoResponse(AbstractModel):
|
743
|
-
"""DescribeThreatInfo返回参数结构体
|
744
|
-
|
745
|
-
"""
|
746
|
-
|
747
|
-
def __init__(self):
|
748
|
-
r"""
|
749
|
-
:param _ReturnCode: 是否有数据,0代表有数据,1代表没有数据
|
750
|
-
:type ReturnCode: int
|
751
|
-
:param _Result: 判定结果,如:black、white、grey
|
752
|
-
:type Result: str
|
753
|
-
:param _Confidence: 置信度,取值0-100
|
754
|
-
:type Confidence: int
|
755
|
-
:param _ThreatTypes: 威胁类型。
|
756
|
-
botnet = 僵尸网络
|
757
|
-
trojan = 木马
|
758
|
-
ransomware = 勒索软件
|
759
|
-
worm = 蠕虫
|
760
|
-
dga = 域名生成算法
|
761
|
-
c2 = c&c
|
762
|
-
compromised = 失陷主机
|
763
|
-
dynamicIP = 动态IP
|
764
|
-
proxy = 代理
|
765
|
-
idc = idc 机房
|
766
|
-
whitelist = 白名单
|
767
|
-
tor = 暗网
|
768
|
-
miner = 挖矿
|
769
|
-
maleware site = 恶意站点
|
770
|
-
malware IP = 恶意IP
|
771
|
-
等等
|
772
|
-
:type ThreatTypes: list of str
|
773
|
-
:param _Tags: 恶意标签,对应的团伙,家族等信息。
|
774
|
-
:type Tags: list of str
|
775
|
-
:param _Status: 当前状态
|
776
|
-
active = 活跃
|
777
|
-
sinkholed = sinkholed
|
778
|
-
inactive = 不活跃
|
779
|
-
unknown = 未知
|
780
|
-
expired = 过期
|
781
|
-
:type Status: str
|
782
|
-
:param _Context: 情报相关的上下文,参数option=1 的时候提供
|
783
|
-
每个数据默认为3 条
|
784
|
-
:type Context: str
|
785
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
786
|
-
:type RequestId: str
|
787
|
-
"""
|
788
|
-
self._ReturnCode = None
|
789
|
-
self._Result = None
|
790
|
-
self._Confidence = None
|
791
|
-
self._ThreatTypes = None
|
792
|
-
self._Tags = None
|
793
|
-
self._Status = None
|
794
|
-
self._Context = None
|
795
|
-
self._RequestId = None
|
796
|
-
|
797
|
-
@property
|
798
|
-
def ReturnCode(self):
|
799
|
-
"""是否有数据,0代表有数据,1代表没有数据
|
800
|
-
:rtype: int
|
801
|
-
"""
|
802
|
-
return self._ReturnCode
|
803
|
-
|
804
|
-
@ReturnCode.setter
|
805
|
-
def ReturnCode(self, ReturnCode):
|
806
|
-
self._ReturnCode = ReturnCode
|
807
|
-
|
808
|
-
@property
|
809
|
-
def Result(self):
|
810
|
-
"""判定结果,如:black、white、grey
|
811
|
-
:rtype: str
|
812
|
-
"""
|
813
|
-
return self._Result
|
814
|
-
|
815
|
-
@Result.setter
|
816
|
-
def Result(self, Result):
|
817
|
-
self._Result = Result
|
818
|
-
|
819
|
-
@property
|
820
|
-
def Confidence(self):
|
821
|
-
"""置信度,取值0-100
|
822
|
-
:rtype: int
|
823
|
-
"""
|
824
|
-
return self._Confidence
|
825
|
-
|
826
|
-
@Confidence.setter
|
827
|
-
def Confidence(self, Confidence):
|
828
|
-
self._Confidence = Confidence
|
829
|
-
|
830
|
-
@property
|
831
|
-
def ThreatTypes(self):
|
832
|
-
"""威胁类型。
|
833
|
-
botnet = 僵尸网络
|
834
|
-
trojan = 木马
|
835
|
-
ransomware = 勒索软件
|
836
|
-
worm = 蠕虫
|
837
|
-
dga = 域名生成算法
|
838
|
-
c2 = c&c
|
839
|
-
compromised = 失陷主机
|
840
|
-
dynamicIP = 动态IP
|
841
|
-
proxy = 代理
|
842
|
-
idc = idc 机房
|
843
|
-
whitelist = 白名单
|
844
|
-
tor = 暗网
|
845
|
-
miner = 挖矿
|
846
|
-
maleware site = 恶意站点
|
847
|
-
malware IP = 恶意IP
|
848
|
-
等等
|
849
|
-
:rtype: list of str
|
850
|
-
"""
|
851
|
-
return self._ThreatTypes
|
852
|
-
|
853
|
-
@ThreatTypes.setter
|
854
|
-
def ThreatTypes(self, ThreatTypes):
|
855
|
-
self._ThreatTypes = ThreatTypes
|
856
|
-
|
857
|
-
@property
|
858
|
-
def Tags(self):
|
859
|
-
"""恶意标签,对应的团伙,家族等信息。
|
860
|
-
:rtype: list of str
|
861
|
-
"""
|
862
|
-
return self._Tags
|
863
|
-
|
864
|
-
@Tags.setter
|
865
|
-
def Tags(self, Tags):
|
866
|
-
self._Tags = Tags
|
867
|
-
|
868
|
-
@property
|
869
|
-
def Status(self):
|
870
|
-
"""当前状态
|
871
|
-
active = 活跃
|
872
|
-
sinkholed = sinkholed
|
873
|
-
inactive = 不活跃
|
874
|
-
unknown = 未知
|
875
|
-
expired = 过期
|
876
|
-
:rtype: str
|
877
|
-
"""
|
878
|
-
return self._Status
|
879
|
-
|
880
|
-
@Status.setter
|
881
|
-
def Status(self, Status):
|
882
|
-
self._Status = Status
|
883
|
-
|
884
|
-
@property
|
885
|
-
def Context(self):
|
886
|
-
"""情报相关的上下文,参数option=1 的时候提供
|
887
|
-
每个数据默认为3 条
|
888
|
-
:rtype: str
|
889
|
-
"""
|
890
|
-
return self._Context
|
891
|
-
|
892
|
-
@Context.setter
|
893
|
-
def Context(self, Context):
|
894
|
-
self._Context = Context
|
895
|
-
|
896
|
-
@property
|
897
|
-
def RequestId(self):
|
898
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
899
|
-
:rtype: str
|
900
|
-
"""
|
901
|
-
return self._RequestId
|
902
|
-
|
903
|
-
@RequestId.setter
|
904
|
-
def RequestId(self, RequestId):
|
905
|
-
self._RequestId = RequestId
|
906
|
-
|
907
|
-
|
908
|
-
def _deserialize(self, params):
|
909
|
-
self._ReturnCode = params.get("ReturnCode")
|
910
|
-
self._Result = params.get("Result")
|
911
|
-
self._Confidence = params.get("Confidence")
|
912
|
-
self._ThreatTypes = params.get("ThreatTypes")
|
913
|
-
self._Tags = params.get("Tags")
|
914
|
-
self._Status = params.get("Status")
|
915
|
-
self._Context = params.get("Context")
|
916
|
-
self._RequestId = params.get("RequestId")
|
917
|
-
|
918
|
-
|
919
|
-
class FileInfoType(AbstractModel):
|
920
|
-
"""文件信息类型
|
921
|
-
|
922
|
-
"""
|
923
|
-
|
924
|
-
def __init__(self):
|
925
|
-
r"""
|
926
|
-
:param _DetectId: 判定渠道
|
927
|
-
:type DetectId: str
|
928
|
-
:param _DetectPriority: 检测优先级
|
929
|
-
:type DetectPriority: str
|
930
|
-
:param _EnginePriority: 引擎优先级
|
931
|
-
:type EnginePriority: str
|
932
|
-
:param _FileExist: 样本是否存在
|
933
|
-
:type FileExist: str
|
934
|
-
:param _FileForceUpload: 文件上传
|
935
|
-
:type FileForceUpload: str
|
936
|
-
:param _FileSize: 文件大小
|
937
|
-
:type FileSize: str
|
938
|
-
:param _FileupTime: 文件上传时间
|
939
|
-
:type FileupTime: str
|
940
|
-
:param _FullVirusName: 病毒文件全名
|
941
|
-
:type FullVirusName: str
|
942
|
-
:param _IdcPosition: IDC位置
|
943
|
-
:type IdcPosition: str
|
944
|
-
:param _Md5Type: 文件md5值
|
945
|
-
:type Md5Type: str
|
946
|
-
:param _PeExist: PE结构是否存在
|
947
|
-
:type PeExist: str
|
948
|
-
:param _PeForceUpload: PE结构上传
|
949
|
-
:type PeForceUpload: str
|
950
|
-
:param _SafeLevel: 安全性等级
|
951
|
-
:type SafeLevel: str
|
952
|
-
:param _ScanModiTime: 扫描时间
|
953
|
-
:type ScanModiTime: str
|
954
|
-
:param _SubdetectId: 子判定渠道
|
955
|
-
:type SubdetectId: str
|
956
|
-
:param _UserDefName: 病毒名
|
957
|
-
:type UserDefName: str
|
958
|
-
:param _VirusType: 病毒类型
|
959
|
-
:type VirusType: str
|
960
|
-
:param _WhiteScore: 白名单分数
|
961
|
-
:type WhiteScore: str
|
962
|
-
"""
|
963
|
-
self._DetectId = None
|
964
|
-
self._DetectPriority = None
|
965
|
-
self._EnginePriority = None
|
966
|
-
self._FileExist = None
|
967
|
-
self._FileForceUpload = None
|
968
|
-
self._FileSize = None
|
969
|
-
self._FileupTime = None
|
970
|
-
self._FullVirusName = None
|
971
|
-
self._IdcPosition = None
|
972
|
-
self._Md5Type = None
|
973
|
-
self._PeExist = None
|
974
|
-
self._PeForceUpload = None
|
975
|
-
self._SafeLevel = None
|
976
|
-
self._ScanModiTime = None
|
977
|
-
self._SubdetectId = None
|
978
|
-
self._UserDefName = None
|
979
|
-
self._VirusType = None
|
980
|
-
self._WhiteScore = None
|
981
|
-
|
982
|
-
@property
|
983
|
-
def DetectId(self):
|
984
|
-
"""判定渠道
|
985
|
-
:rtype: str
|
986
|
-
"""
|
987
|
-
return self._DetectId
|
988
|
-
|
989
|
-
@DetectId.setter
|
990
|
-
def DetectId(self, DetectId):
|
991
|
-
self._DetectId = DetectId
|
992
|
-
|
993
|
-
@property
|
994
|
-
def DetectPriority(self):
|
995
|
-
"""检测优先级
|
996
|
-
:rtype: str
|
997
|
-
"""
|
998
|
-
return self._DetectPriority
|
999
|
-
|
1000
|
-
@DetectPriority.setter
|
1001
|
-
def DetectPriority(self, DetectPriority):
|
1002
|
-
self._DetectPriority = DetectPriority
|
1003
|
-
|
1004
|
-
@property
|
1005
|
-
def EnginePriority(self):
|
1006
|
-
"""引擎优先级
|
1007
|
-
:rtype: str
|
1008
|
-
"""
|
1009
|
-
return self._EnginePriority
|
1010
|
-
|
1011
|
-
@EnginePriority.setter
|
1012
|
-
def EnginePriority(self, EnginePriority):
|
1013
|
-
self._EnginePriority = EnginePriority
|
1014
|
-
|
1015
|
-
@property
|
1016
|
-
def FileExist(self):
|
1017
|
-
"""样本是否存在
|
1018
|
-
:rtype: str
|
1019
|
-
"""
|
1020
|
-
return self._FileExist
|
1021
|
-
|
1022
|
-
@FileExist.setter
|
1023
|
-
def FileExist(self, FileExist):
|
1024
|
-
self._FileExist = FileExist
|
1025
|
-
|
1026
|
-
@property
|
1027
|
-
def FileForceUpload(self):
|
1028
|
-
"""文件上传
|
1029
|
-
:rtype: str
|
1030
|
-
"""
|
1031
|
-
return self._FileForceUpload
|
1032
|
-
|
1033
|
-
@FileForceUpload.setter
|
1034
|
-
def FileForceUpload(self, FileForceUpload):
|
1035
|
-
self._FileForceUpload = FileForceUpload
|
1036
|
-
|
1037
|
-
@property
|
1038
|
-
def FileSize(self):
|
1039
|
-
"""文件大小
|
1040
|
-
:rtype: str
|
1041
|
-
"""
|
1042
|
-
return self._FileSize
|
1043
|
-
|
1044
|
-
@FileSize.setter
|
1045
|
-
def FileSize(self, FileSize):
|
1046
|
-
self._FileSize = FileSize
|
1047
|
-
|
1048
|
-
@property
|
1049
|
-
def FileupTime(self):
|
1050
|
-
"""文件上传时间
|
1051
|
-
:rtype: str
|
1052
|
-
"""
|
1053
|
-
return self._FileupTime
|
1054
|
-
|
1055
|
-
@FileupTime.setter
|
1056
|
-
def FileupTime(self, FileupTime):
|
1057
|
-
self._FileupTime = FileupTime
|
1058
|
-
|
1059
|
-
@property
|
1060
|
-
def FullVirusName(self):
|
1061
|
-
"""病毒文件全名
|
1062
|
-
:rtype: str
|
1063
|
-
"""
|
1064
|
-
return self._FullVirusName
|
1065
|
-
|
1066
|
-
@FullVirusName.setter
|
1067
|
-
def FullVirusName(self, FullVirusName):
|
1068
|
-
self._FullVirusName = FullVirusName
|
1069
|
-
|
1070
|
-
@property
|
1071
|
-
def IdcPosition(self):
|
1072
|
-
"""IDC位置
|
1073
|
-
:rtype: str
|
1074
|
-
"""
|
1075
|
-
return self._IdcPosition
|
1076
|
-
|
1077
|
-
@IdcPosition.setter
|
1078
|
-
def IdcPosition(self, IdcPosition):
|
1079
|
-
self._IdcPosition = IdcPosition
|
1080
|
-
|
1081
|
-
@property
|
1082
|
-
def Md5Type(self):
|
1083
|
-
"""文件md5值
|
1084
|
-
:rtype: str
|
1085
|
-
"""
|
1086
|
-
return self._Md5Type
|
1087
|
-
|
1088
|
-
@Md5Type.setter
|
1089
|
-
def Md5Type(self, Md5Type):
|
1090
|
-
self._Md5Type = Md5Type
|
1091
|
-
|
1092
|
-
@property
|
1093
|
-
def PeExist(self):
|
1094
|
-
"""PE结构是否存在
|
1095
|
-
:rtype: str
|
1096
|
-
"""
|
1097
|
-
return self._PeExist
|
1098
|
-
|
1099
|
-
@PeExist.setter
|
1100
|
-
def PeExist(self, PeExist):
|
1101
|
-
self._PeExist = PeExist
|
1102
|
-
|
1103
|
-
@property
|
1104
|
-
def PeForceUpload(self):
|
1105
|
-
"""PE结构上传
|
1106
|
-
:rtype: str
|
1107
|
-
"""
|
1108
|
-
return self._PeForceUpload
|
1109
|
-
|
1110
|
-
@PeForceUpload.setter
|
1111
|
-
def PeForceUpload(self, PeForceUpload):
|
1112
|
-
self._PeForceUpload = PeForceUpload
|
1113
|
-
|
1114
|
-
@property
|
1115
|
-
def SafeLevel(self):
|
1116
|
-
"""安全性等级
|
1117
|
-
:rtype: str
|
1118
|
-
"""
|
1119
|
-
return self._SafeLevel
|
1120
|
-
|
1121
|
-
@SafeLevel.setter
|
1122
|
-
def SafeLevel(self, SafeLevel):
|
1123
|
-
self._SafeLevel = SafeLevel
|
1124
|
-
|
1125
|
-
@property
|
1126
|
-
def ScanModiTime(self):
|
1127
|
-
"""扫描时间
|
1128
|
-
:rtype: str
|
1129
|
-
"""
|
1130
|
-
return self._ScanModiTime
|
1131
|
-
|
1132
|
-
@ScanModiTime.setter
|
1133
|
-
def ScanModiTime(self, ScanModiTime):
|
1134
|
-
self._ScanModiTime = ScanModiTime
|
1135
|
-
|
1136
|
-
@property
|
1137
|
-
def SubdetectId(self):
|
1138
|
-
"""子判定渠道
|
1139
|
-
:rtype: str
|
1140
|
-
"""
|
1141
|
-
return self._SubdetectId
|
1142
|
-
|
1143
|
-
@SubdetectId.setter
|
1144
|
-
def SubdetectId(self, SubdetectId):
|
1145
|
-
self._SubdetectId = SubdetectId
|
1146
|
-
|
1147
|
-
@property
|
1148
|
-
def UserDefName(self):
|
1149
|
-
"""病毒名
|
1150
|
-
:rtype: str
|
1151
|
-
"""
|
1152
|
-
return self._UserDefName
|
1153
|
-
|
1154
|
-
@UserDefName.setter
|
1155
|
-
def UserDefName(self, UserDefName):
|
1156
|
-
self._UserDefName = UserDefName
|
1157
|
-
|
1158
|
-
@property
|
1159
|
-
def VirusType(self):
|
1160
|
-
"""病毒类型
|
1161
|
-
:rtype: str
|
1162
|
-
"""
|
1163
|
-
return self._VirusType
|
1164
|
-
|
1165
|
-
@VirusType.setter
|
1166
|
-
def VirusType(self, VirusType):
|
1167
|
-
self._VirusType = VirusType
|
1168
|
-
|
1169
|
-
@property
|
1170
|
-
def WhiteScore(self):
|
1171
|
-
"""白名单分数
|
1172
|
-
:rtype: str
|
1173
|
-
"""
|
1174
|
-
return self._WhiteScore
|
1175
|
-
|
1176
|
-
@WhiteScore.setter
|
1177
|
-
def WhiteScore(self, WhiteScore):
|
1178
|
-
self._WhiteScore = WhiteScore
|
1179
|
-
|
1180
|
-
|
1181
|
-
def _deserialize(self, params):
|
1182
|
-
self._DetectId = params.get("DetectId")
|
1183
|
-
self._DetectPriority = params.get("DetectPriority")
|
1184
|
-
self._EnginePriority = params.get("EnginePriority")
|
1185
|
-
self._FileExist = params.get("FileExist")
|
1186
|
-
self._FileForceUpload = params.get("FileForceUpload")
|
1187
|
-
self._FileSize = params.get("FileSize")
|
1188
|
-
self._FileupTime = params.get("FileupTime")
|
1189
|
-
self._FullVirusName = params.get("FullVirusName")
|
1190
|
-
self._IdcPosition = params.get("IdcPosition")
|
1191
|
-
self._Md5Type = params.get("Md5Type")
|
1192
|
-
self._PeExist = params.get("PeExist")
|
1193
|
-
self._PeForceUpload = params.get("PeForceUpload")
|
1194
|
-
self._SafeLevel = params.get("SafeLevel")
|
1195
|
-
self._ScanModiTime = params.get("ScanModiTime")
|
1196
|
-
self._SubdetectId = params.get("SubdetectId")
|
1197
|
-
self._UserDefName = params.get("UserDefName")
|
1198
|
-
self._VirusType = params.get("VirusType")
|
1199
|
-
self._WhiteScore = params.get("WhiteScore")
|
1200
|
-
memeber_set = set(params.keys())
|
1201
|
-
for name, value in vars(self).items():
|
1202
|
-
property_name = name[1:]
|
1203
|
-
if property_name in memeber_set:
|
1204
|
-
memeber_set.remove(property_name)
|
1205
|
-
if len(memeber_set) > 0:
|
1206
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
class IntelligenceType(AbstractModel):
|
1211
|
-
"""{ "source": "inergj_ai_predict", "stamp": "msraminer", "time": 1531994023 }
|
1212
|
-
|
1213
|
-
"""
|
1214
|
-
|
1215
|
-
def __init__(self):
|
1216
|
-
r"""
|
1217
|
-
:param _Source: 来源
|
1218
|
-
:type Source: str
|
1219
|
-
:param _Stamp: 标记
|
1220
|
-
:type Stamp: str
|
1221
|
-
:param _Time: 时间
|
1222
|
-
:type Time: int
|
1223
|
-
"""
|
1224
|
-
self._Source = None
|
1225
|
-
self._Stamp = None
|
1226
|
-
self._Time = None
|
1227
|
-
|
1228
|
-
@property
|
1229
|
-
def Source(self):
|
1230
|
-
"""来源
|
1231
|
-
:rtype: str
|
1232
|
-
"""
|
1233
|
-
return self._Source
|
1234
|
-
|
1235
|
-
@Source.setter
|
1236
|
-
def Source(self, Source):
|
1237
|
-
self._Source = Source
|
1238
|
-
|
1239
|
-
@property
|
1240
|
-
def Stamp(self):
|
1241
|
-
"""标记
|
1242
|
-
:rtype: str
|
1243
|
-
"""
|
1244
|
-
return self._Stamp
|
1245
|
-
|
1246
|
-
@Stamp.setter
|
1247
|
-
def Stamp(self, Stamp):
|
1248
|
-
self._Stamp = Stamp
|
1249
|
-
|
1250
|
-
@property
|
1251
|
-
def Time(self):
|
1252
|
-
"""时间
|
1253
|
-
:rtype: int
|
1254
|
-
"""
|
1255
|
-
return self._Time
|
1256
|
-
|
1257
|
-
@Time.setter
|
1258
|
-
def Time(self, Time):
|
1259
|
-
self._Time = Time
|
1260
|
-
|
1261
|
-
|
1262
|
-
def _deserialize(self, params):
|
1263
|
-
self._Source = params.get("Source")
|
1264
|
-
self._Stamp = params.get("Stamp")
|
1265
|
-
self._Time = params.get("Time")
|
1266
|
-
memeber_set = set(params.keys())
|
1267
|
-
for name, value in vars(self).items():
|
1268
|
-
property_name = name[1:]
|
1269
|
-
if property_name in memeber_set:
|
1270
|
-
memeber_set.remove(property_name)
|
1271
|
-
if len(memeber_set) > 0:
|
1272
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
class TagType(AbstractModel):
|
1277
|
-
"""标签及对应的解释
|
1278
|
-
|
1279
|
-
"""
|
1280
|
-
|
1281
|
-
def __init__(self):
|
1282
|
-
r"""
|
1283
|
-
:param _Tag: 标签
|
1284
|
-
:type Tag: str
|
1285
|
-
:param _Desc: 标签对应的中文解释
|
1286
|
-
:type Desc: str
|
1287
|
-
"""
|
1288
|
-
self._Tag = None
|
1289
|
-
self._Desc = None
|
1290
|
-
|
1291
|
-
@property
|
1292
|
-
def Tag(self):
|
1293
|
-
"""标签
|
1294
|
-
:rtype: str
|
1295
|
-
"""
|
1296
|
-
return self._Tag
|
1297
|
-
|
1298
|
-
@Tag.setter
|
1299
|
-
def Tag(self, Tag):
|
1300
|
-
self._Tag = Tag
|
1301
|
-
|
1302
|
-
@property
|
1303
|
-
def Desc(self):
|
1304
|
-
"""标签对应的中文解释
|
1305
|
-
:rtype: str
|
1306
|
-
"""
|
1307
|
-
return self._Desc
|
1308
|
-
|
1309
|
-
@Desc.setter
|
1310
|
-
def Desc(self, Desc):
|
1311
|
-
self._Desc = Desc
|
1312
|
-
|
1313
|
-
|
1314
|
-
def _deserialize(self, params):
|
1315
|
-
self._Tag = params.get("Tag")
|
1316
|
-
self._Desc = params.get("Desc")
|
1317
|
-
memeber_set = set(params.keys())
|
1318
|
-
for name, value in vars(self).items():
|
1319
|
-
property_name = name[1:]
|
1320
|
-
if property_name in memeber_set:
|
1321
|
-
memeber_set.remove(property_name)
|
1322
|
-
if len(memeber_set) > 0:
|
1323
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1324
|
-
|