tencentcloud-sdk-python 3.0.1420__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/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/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 +3 -1
- 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/models.py +171 -0
- tencentcloud/tcb/v20180608/models.py +64 -10
- tencentcloud/tdmq/v20200217/models.py +15 -0
- tencentcloud/teo/v20220901/models.py +664 -2
- tencentcloud/teo/v20220901/teo_client.py +115 -0
- tencentcloud/vrs/v20200824/vrs_client.py +1 -1
- {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/RECORD +26 -155
- 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.1420.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/top_level.txt +0 -0
@@ -1,550 +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 GetLocalEngineRequest(AbstractModel):
|
22
|
-
"""GetLocalEngine请求参数结构体
|
23
|
-
|
24
|
-
"""
|
25
|
-
|
26
|
-
def __init__(self):
|
27
|
-
r"""
|
28
|
-
:param _Key: 购买服务后获得的授权信息,用于保证请求有效性
|
29
|
-
:type Key: str
|
30
|
-
"""
|
31
|
-
self._Key = None
|
32
|
-
|
33
|
-
@property
|
34
|
-
def Key(self):
|
35
|
-
"""购买服务后获得的授权信息,用于保证请求有效性
|
36
|
-
:rtype: str
|
37
|
-
"""
|
38
|
-
return self._Key
|
39
|
-
|
40
|
-
@Key.setter
|
41
|
-
def Key(self, Key):
|
42
|
-
self._Key = Key
|
43
|
-
|
44
|
-
|
45
|
-
def _deserialize(self, params):
|
46
|
-
self._Key = params.get("Key")
|
47
|
-
memeber_set = set(params.keys())
|
48
|
-
for name, value in vars(self).items():
|
49
|
-
property_name = name[1:]
|
50
|
-
if property_name in memeber_set:
|
51
|
-
memeber_set.remove(property_name)
|
52
|
-
if len(memeber_set) > 0:
|
53
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
class GetLocalEngineResponse(AbstractModel):
|
58
|
-
"""GetLocalEngine返回参数结构体
|
59
|
-
|
60
|
-
"""
|
61
|
-
|
62
|
-
def __init__(self):
|
63
|
-
r"""
|
64
|
-
:param _Status: 接口调用状态,成功返回200,失败返回400
|
65
|
-
:type Status: int
|
66
|
-
:param _Info: 接口调用描述信息,成功返回"scan success",失败返回"scan error"
|
67
|
-
:type Info: str
|
68
|
-
:param _Data: 本地引擎下载地址
|
69
|
-
:type Data: str
|
70
|
-
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
71
|
-
:type RequestId: str
|
72
|
-
"""
|
73
|
-
self._Status = None
|
74
|
-
self._Info = None
|
75
|
-
self._Data = None
|
76
|
-
self._RequestId = None
|
77
|
-
|
78
|
-
@property
|
79
|
-
def Status(self):
|
80
|
-
"""接口调用状态,成功返回200,失败返回400
|
81
|
-
:rtype: int
|
82
|
-
"""
|
83
|
-
return self._Status
|
84
|
-
|
85
|
-
@Status.setter
|
86
|
-
def Status(self, Status):
|
87
|
-
self._Status = Status
|
88
|
-
|
89
|
-
@property
|
90
|
-
def Info(self):
|
91
|
-
"""接口调用描述信息,成功返回"scan success",失败返回"scan error"
|
92
|
-
:rtype: str
|
93
|
-
"""
|
94
|
-
return self._Info
|
95
|
-
|
96
|
-
@Info.setter
|
97
|
-
def Info(self, Info):
|
98
|
-
self._Info = Info
|
99
|
-
|
100
|
-
@property
|
101
|
-
def Data(self):
|
102
|
-
"""本地引擎下载地址
|
103
|
-
:rtype: str
|
104
|
-
"""
|
105
|
-
return self._Data
|
106
|
-
|
107
|
-
@Data.setter
|
108
|
-
def Data(self, Data):
|
109
|
-
self._Data = Data
|
110
|
-
|
111
|
-
@property
|
112
|
-
def RequestId(self):
|
113
|
-
"""唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
114
|
-
:rtype: str
|
115
|
-
"""
|
116
|
-
return self._RequestId
|
117
|
-
|
118
|
-
@RequestId.setter
|
119
|
-
def RequestId(self, RequestId):
|
120
|
-
self._RequestId = RequestId
|
121
|
-
|
122
|
-
|
123
|
-
def _deserialize(self, params):
|
124
|
-
self._Status = params.get("Status")
|
125
|
-
self._Info = params.get("Info")
|
126
|
-
self._Data = params.get("Data")
|
127
|
-
self._RequestId = params.get("RequestId")
|
128
|
-
|
129
|
-
|
130
|
-
class GetScanResultRequest(AbstractModel):
|
131
|
-
"""GetScanResult请求参数结构体
|
132
|
-
|
133
|
-
"""
|
134
|
-
|
135
|
-
def __init__(self):
|
136
|
-
r"""
|
137
|
-
:param _Key: 购买服务后获得的授权信息,用于保证请求有效性
|
138
|
-
:type Key: str
|
139
|
-
:param _Md5: 需要获取扫描接口的md5(只允许单个md5)
|
140
|
-
:type Md5: str
|
141
|
-
"""
|
142
|
-
self._Key = None
|
143
|
-
self._Md5 = None
|
144
|
-
|
145
|
-
@property
|
146
|
-
def Key(self):
|
147
|
-
"""购买服务后获得的授权信息,用于保证请求有效性
|
148
|
-
:rtype: str
|
149
|
-
"""
|
150
|
-
return self._Key
|
151
|
-
|
152
|
-
@Key.setter
|
153
|
-
def Key(self, Key):
|
154
|
-
self._Key = Key
|
155
|
-
|
156
|
-
@property
|
157
|
-
def Md5(self):
|
158
|
-
"""需要获取扫描接口的md5(只允许单个md5)
|
159
|
-
:rtype: str
|
160
|
-
"""
|
161
|
-
return self._Md5
|
162
|
-
|
163
|
-
@Md5.setter
|
164
|
-
def Md5(self, Md5):
|
165
|
-
self._Md5 = Md5
|
166
|
-
|
167
|
-
|
168
|
-
def _deserialize(self, params):
|
169
|
-
self._Key = params.get("Key")
|
170
|
-
self._Md5 = params.get("Md5")
|
171
|
-
memeber_set = set(params.keys())
|
172
|
-
for name, value in vars(self).items():
|
173
|
-
property_name = name[1:]
|
174
|
-
if property_name in memeber_set:
|
175
|
-
memeber_set.remove(property_name)
|
176
|
-
if len(memeber_set) > 0:
|
177
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
class GetScanResultResponse(AbstractModel):
|
182
|
-
"""GetScanResult返回参数结构体
|
183
|
-
|
184
|
-
"""
|
185
|
-
|
186
|
-
def __init__(self):
|
187
|
-
r"""
|
188
|
-
:param _Status: 接口调用状态,成功返回200,失败返回400
|
189
|
-
:type Status: int
|
190
|
-
:param _Info: 接口调用描述信息,成功返回"scan success",失败返回"scan error"
|
191
|
-
:type Info: str
|
192
|
-
:param _Data: 实际结果信息,包括md5、scan_status、virus_name三个字段;virus_name报毒名:"torjan.**":黑样本的报毒名、".":样本不报毒、"" :样本无检出信息,需上传扫描;
|
193
|
-
scan_status样本状态:-1无检出信息需上传扫描、0样本扫描中、1样本扫描结束且不报毒、2样本扫描结束且报黑、3样本下载失败;
|
194
|
-
:type Data: str
|
195
|
-
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
196
|
-
:type RequestId: str
|
197
|
-
"""
|
198
|
-
self._Status = None
|
199
|
-
self._Info = None
|
200
|
-
self._Data = None
|
201
|
-
self._RequestId = None
|
202
|
-
|
203
|
-
@property
|
204
|
-
def Status(self):
|
205
|
-
"""接口调用状态,成功返回200,失败返回400
|
206
|
-
:rtype: int
|
207
|
-
"""
|
208
|
-
return self._Status
|
209
|
-
|
210
|
-
@Status.setter
|
211
|
-
def Status(self, Status):
|
212
|
-
self._Status = Status
|
213
|
-
|
214
|
-
@property
|
215
|
-
def Info(self):
|
216
|
-
"""接口调用描述信息,成功返回"scan success",失败返回"scan error"
|
217
|
-
:rtype: str
|
218
|
-
"""
|
219
|
-
return self._Info
|
220
|
-
|
221
|
-
@Info.setter
|
222
|
-
def Info(self, Info):
|
223
|
-
self._Info = Info
|
224
|
-
|
225
|
-
@property
|
226
|
-
def Data(self):
|
227
|
-
"""实际结果信息,包括md5、scan_status、virus_name三个字段;virus_name报毒名:"torjan.**":黑样本的报毒名、".":样本不报毒、"" :样本无检出信息,需上传扫描;
|
228
|
-
scan_status样本状态:-1无检出信息需上传扫描、0样本扫描中、1样本扫描结束且不报毒、2样本扫描结束且报黑、3样本下载失败;
|
229
|
-
:rtype: str
|
230
|
-
"""
|
231
|
-
return self._Data
|
232
|
-
|
233
|
-
@Data.setter
|
234
|
-
def Data(self, Data):
|
235
|
-
self._Data = Data
|
236
|
-
|
237
|
-
@property
|
238
|
-
def RequestId(self):
|
239
|
-
"""唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
240
|
-
:rtype: str
|
241
|
-
"""
|
242
|
-
return self._RequestId
|
243
|
-
|
244
|
-
@RequestId.setter
|
245
|
-
def RequestId(self, RequestId):
|
246
|
-
self._RequestId = RequestId
|
247
|
-
|
248
|
-
|
249
|
-
def _deserialize(self, params):
|
250
|
-
self._Status = params.get("Status")
|
251
|
-
self._Info = params.get("Info")
|
252
|
-
self._Data = params.get("Data")
|
253
|
-
self._RequestId = params.get("RequestId")
|
254
|
-
|
255
|
-
|
256
|
-
class ScanFileHashRequest(AbstractModel):
|
257
|
-
"""ScanFileHash请求参数结构体
|
258
|
-
|
259
|
-
"""
|
260
|
-
|
261
|
-
def __init__(self):
|
262
|
-
r"""
|
263
|
-
:param _Key: 购买服务后获得的授权信息,用于保证请求有效性
|
264
|
-
:type Key: str
|
265
|
-
:param _Md5s: 需要查询的md5值(支持单个和多个,多个md5间用逗号分格)
|
266
|
-
:type Md5s: str
|
267
|
-
:param _WithCategory: 保留字段默认填0
|
268
|
-
:type WithCategory: str
|
269
|
-
:param _SensitiveLevel: 松严规则控制字段默认填10(5-松、10-标准、15-严)
|
270
|
-
:type SensitiveLevel: str
|
271
|
-
"""
|
272
|
-
self._Key = None
|
273
|
-
self._Md5s = None
|
274
|
-
self._WithCategory = None
|
275
|
-
self._SensitiveLevel = None
|
276
|
-
|
277
|
-
@property
|
278
|
-
def Key(self):
|
279
|
-
"""购买服务后获得的授权信息,用于保证请求有效性
|
280
|
-
:rtype: str
|
281
|
-
"""
|
282
|
-
return self._Key
|
283
|
-
|
284
|
-
@Key.setter
|
285
|
-
def Key(self, Key):
|
286
|
-
self._Key = Key
|
287
|
-
|
288
|
-
@property
|
289
|
-
def Md5s(self):
|
290
|
-
"""需要查询的md5值(支持单个和多个,多个md5间用逗号分格)
|
291
|
-
:rtype: str
|
292
|
-
"""
|
293
|
-
return self._Md5s
|
294
|
-
|
295
|
-
@Md5s.setter
|
296
|
-
def Md5s(self, Md5s):
|
297
|
-
self._Md5s = Md5s
|
298
|
-
|
299
|
-
@property
|
300
|
-
def WithCategory(self):
|
301
|
-
"""保留字段默认填0
|
302
|
-
:rtype: str
|
303
|
-
"""
|
304
|
-
return self._WithCategory
|
305
|
-
|
306
|
-
@WithCategory.setter
|
307
|
-
def WithCategory(self, WithCategory):
|
308
|
-
self._WithCategory = WithCategory
|
309
|
-
|
310
|
-
@property
|
311
|
-
def SensitiveLevel(self):
|
312
|
-
"""松严规则控制字段默认填10(5-松、10-标准、15-严)
|
313
|
-
:rtype: str
|
314
|
-
"""
|
315
|
-
return self._SensitiveLevel
|
316
|
-
|
317
|
-
@SensitiveLevel.setter
|
318
|
-
def SensitiveLevel(self, SensitiveLevel):
|
319
|
-
self._SensitiveLevel = SensitiveLevel
|
320
|
-
|
321
|
-
|
322
|
-
def _deserialize(self, params):
|
323
|
-
self._Key = params.get("Key")
|
324
|
-
self._Md5s = params.get("Md5s")
|
325
|
-
self._WithCategory = params.get("WithCategory")
|
326
|
-
self._SensitiveLevel = params.get("SensitiveLevel")
|
327
|
-
memeber_set = set(params.keys())
|
328
|
-
for name, value in vars(self).items():
|
329
|
-
property_name = name[1:]
|
330
|
-
if property_name in memeber_set:
|
331
|
-
memeber_set.remove(property_name)
|
332
|
-
if len(memeber_set) > 0:
|
333
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
class ScanFileHashResponse(AbstractModel):
|
338
|
-
"""ScanFileHash返回参数结构体
|
339
|
-
|
340
|
-
"""
|
341
|
-
|
342
|
-
def __init__(self):
|
343
|
-
r"""
|
344
|
-
:param _Status: 接口调用状态,成功返回200,失败返回400
|
345
|
-
:type Status: int
|
346
|
-
:param _Info: 接口调用描述信息,成功返回"scan success",失败返回"scan error"
|
347
|
-
:type Info: str
|
348
|
-
:param _Data: 云查实际结果信息,包括md5、return_state、virus_state、virus_name字符逗号间隔;
|
349
|
-
return_state查询状态:-1/0代表失败、1/2代表成功;
|
350
|
-
virus_state文状件态:0文件不存在、1白、2黑、3未知、4感染性、5低可信白;
|
351
|
-
:type Data: str
|
352
|
-
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
353
|
-
:type RequestId: str
|
354
|
-
"""
|
355
|
-
self._Status = None
|
356
|
-
self._Info = None
|
357
|
-
self._Data = None
|
358
|
-
self._RequestId = None
|
359
|
-
|
360
|
-
@property
|
361
|
-
def Status(self):
|
362
|
-
"""接口调用状态,成功返回200,失败返回400
|
363
|
-
:rtype: int
|
364
|
-
"""
|
365
|
-
return self._Status
|
366
|
-
|
367
|
-
@Status.setter
|
368
|
-
def Status(self, Status):
|
369
|
-
self._Status = Status
|
370
|
-
|
371
|
-
@property
|
372
|
-
def Info(self):
|
373
|
-
"""接口调用描述信息,成功返回"scan success",失败返回"scan error"
|
374
|
-
:rtype: str
|
375
|
-
"""
|
376
|
-
return self._Info
|
377
|
-
|
378
|
-
@Info.setter
|
379
|
-
def Info(self, Info):
|
380
|
-
self._Info = Info
|
381
|
-
|
382
|
-
@property
|
383
|
-
def Data(self):
|
384
|
-
"""云查实际结果信息,包括md5、return_state、virus_state、virus_name字符逗号间隔;
|
385
|
-
return_state查询状态:-1/0代表失败、1/2代表成功;
|
386
|
-
virus_state文状件态:0文件不存在、1白、2黑、3未知、4感染性、5低可信白;
|
387
|
-
:rtype: str
|
388
|
-
"""
|
389
|
-
return self._Data
|
390
|
-
|
391
|
-
@Data.setter
|
392
|
-
def Data(self, Data):
|
393
|
-
self._Data = Data
|
394
|
-
|
395
|
-
@property
|
396
|
-
def RequestId(self):
|
397
|
-
"""唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
398
|
-
:rtype: str
|
399
|
-
"""
|
400
|
-
return self._RequestId
|
401
|
-
|
402
|
-
@RequestId.setter
|
403
|
-
def RequestId(self, RequestId):
|
404
|
-
self._RequestId = RequestId
|
405
|
-
|
406
|
-
|
407
|
-
def _deserialize(self, params):
|
408
|
-
self._Status = params.get("Status")
|
409
|
-
self._Info = params.get("Info")
|
410
|
-
self._Data = params.get("Data")
|
411
|
-
self._RequestId = params.get("RequestId")
|
412
|
-
|
413
|
-
|
414
|
-
class ScanFileRequest(AbstractModel):
|
415
|
-
"""ScanFile请求参数结构体
|
416
|
-
|
417
|
-
"""
|
418
|
-
|
419
|
-
def __init__(self):
|
420
|
-
r"""
|
421
|
-
:param _Key: 购买服务后获得的授权信息,用于保证请求有效性
|
422
|
-
:type Key: str
|
423
|
-
:param _Sample: 文件下载url地址
|
424
|
-
:type Sample: str
|
425
|
-
:param _Md5: 文件的md5值
|
426
|
-
:type Md5: str
|
427
|
-
"""
|
428
|
-
self._Key = None
|
429
|
-
self._Sample = None
|
430
|
-
self._Md5 = None
|
431
|
-
|
432
|
-
@property
|
433
|
-
def Key(self):
|
434
|
-
"""购买服务后获得的授权信息,用于保证请求有效性
|
435
|
-
:rtype: str
|
436
|
-
"""
|
437
|
-
return self._Key
|
438
|
-
|
439
|
-
@Key.setter
|
440
|
-
def Key(self, Key):
|
441
|
-
self._Key = Key
|
442
|
-
|
443
|
-
@property
|
444
|
-
def Sample(self):
|
445
|
-
"""文件下载url地址
|
446
|
-
:rtype: str
|
447
|
-
"""
|
448
|
-
return self._Sample
|
449
|
-
|
450
|
-
@Sample.setter
|
451
|
-
def Sample(self, Sample):
|
452
|
-
self._Sample = Sample
|
453
|
-
|
454
|
-
@property
|
455
|
-
def Md5(self):
|
456
|
-
"""文件的md5值
|
457
|
-
:rtype: str
|
458
|
-
"""
|
459
|
-
return self._Md5
|
460
|
-
|
461
|
-
@Md5.setter
|
462
|
-
def Md5(self, Md5):
|
463
|
-
self._Md5 = Md5
|
464
|
-
|
465
|
-
|
466
|
-
def _deserialize(self, params):
|
467
|
-
self._Key = params.get("Key")
|
468
|
-
self._Sample = params.get("Sample")
|
469
|
-
self._Md5 = params.get("Md5")
|
470
|
-
memeber_set = set(params.keys())
|
471
|
-
for name, value in vars(self).items():
|
472
|
-
property_name = name[1:]
|
473
|
-
if property_name in memeber_set:
|
474
|
-
memeber_set.remove(property_name)
|
475
|
-
if len(memeber_set) > 0:
|
476
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
class ScanFileResponse(AbstractModel):
|
481
|
-
"""ScanFile返回参数结构体
|
482
|
-
|
483
|
-
"""
|
484
|
-
|
485
|
-
def __init__(self):
|
486
|
-
r"""
|
487
|
-
:param _Status: 接口调用状态,成功返回200,失败返回400
|
488
|
-
:type Status: int
|
489
|
-
:param _Info: 接口调用描述信息,成功返回"success",失败返回"invalid request"
|
490
|
-
:type Info: str
|
491
|
-
:param _Data: 异步扫描任务提交成功返回success
|
492
|
-
:type Data: str
|
493
|
-
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
494
|
-
:type RequestId: str
|
495
|
-
"""
|
496
|
-
self._Status = None
|
497
|
-
self._Info = None
|
498
|
-
self._Data = None
|
499
|
-
self._RequestId = None
|
500
|
-
|
501
|
-
@property
|
502
|
-
def Status(self):
|
503
|
-
"""接口调用状态,成功返回200,失败返回400
|
504
|
-
:rtype: int
|
505
|
-
"""
|
506
|
-
return self._Status
|
507
|
-
|
508
|
-
@Status.setter
|
509
|
-
def Status(self, Status):
|
510
|
-
self._Status = Status
|
511
|
-
|
512
|
-
@property
|
513
|
-
def Info(self):
|
514
|
-
"""接口调用描述信息,成功返回"success",失败返回"invalid request"
|
515
|
-
:rtype: str
|
516
|
-
"""
|
517
|
-
return self._Info
|
518
|
-
|
519
|
-
@Info.setter
|
520
|
-
def Info(self, Info):
|
521
|
-
self._Info = Info
|
522
|
-
|
523
|
-
@property
|
524
|
-
def Data(self):
|
525
|
-
"""异步扫描任务提交成功返回success
|
526
|
-
:rtype: str
|
527
|
-
"""
|
528
|
-
return self._Data
|
529
|
-
|
530
|
-
@Data.setter
|
531
|
-
def Data(self, Data):
|
532
|
-
self._Data = Data
|
533
|
-
|
534
|
-
@property
|
535
|
-
def RequestId(self):
|
536
|
-
"""唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
537
|
-
:rtype: str
|
538
|
-
"""
|
539
|
-
return self._RequestId
|
540
|
-
|
541
|
-
@RequestId.setter
|
542
|
-
def RequestId(self, RequestId):
|
543
|
-
self._RequestId = RequestId
|
544
|
-
|
545
|
-
|
546
|
-
def _deserialize(self, params):
|
547
|
-
self._Status = params.get("Status")
|
548
|
-
self._Info = params.get("Info")
|
549
|
-
self._Data = params.get("Data")
|
550
|
-
self._RequestId = params.get("RequestId")
|
@@ -1,118 +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 json
|
17
|
-
|
18
|
-
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
19
|
-
from tencentcloud.common.abstract_client import AbstractClient
|
20
|
-
from tencentcloud.tav.v20190118 import models
|
21
|
-
|
22
|
-
|
23
|
-
class TavClient(AbstractClient):
|
24
|
-
_apiVersion = '2019-01-18'
|
25
|
-
_endpoint = 'tav.tencentcloudapi.com'
|
26
|
-
_service = 'tav'
|
27
|
-
|
28
|
-
|
29
|
-
def GetLocalEngine(self, request):
|
30
|
-
"""获取TAV本地引擎
|
31
|
-
|
32
|
-
:param request: Request instance for GetLocalEngine.
|
33
|
-
:type request: :class:`tencentcloud.tav.v20190118.models.GetLocalEngineRequest`
|
34
|
-
:rtype: :class:`tencentcloud.tav.v20190118.models.GetLocalEngineResponse`
|
35
|
-
|
36
|
-
"""
|
37
|
-
try:
|
38
|
-
params = request._serialize()
|
39
|
-
headers = request.headers
|
40
|
-
body = self.call("GetLocalEngine", params, headers=headers)
|
41
|
-
response = json.loads(body)
|
42
|
-
model = models.GetLocalEngineResponse()
|
43
|
-
model._deserialize(response["Response"])
|
44
|
-
return model
|
45
|
-
except Exception as e:
|
46
|
-
if isinstance(e, TencentCloudSDKException):
|
47
|
-
raise
|
48
|
-
else:
|
49
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
50
|
-
|
51
|
-
|
52
|
-
def GetScanResult(self, request):
|
53
|
-
"""tav文件上传扫描结果查询
|
54
|
-
|
55
|
-
:param request: Request instance for GetScanResult.
|
56
|
-
:type request: :class:`tencentcloud.tav.v20190118.models.GetScanResultRequest`
|
57
|
-
:rtype: :class:`tencentcloud.tav.v20190118.models.GetScanResultResponse`
|
58
|
-
|
59
|
-
"""
|
60
|
-
try:
|
61
|
-
params = request._serialize()
|
62
|
-
headers = request.headers
|
63
|
-
body = self.call("GetScanResult", params, headers=headers)
|
64
|
-
response = json.loads(body)
|
65
|
-
model = models.GetScanResultResponse()
|
66
|
-
model._deserialize(response["Response"])
|
67
|
-
return model
|
68
|
-
except Exception as e:
|
69
|
-
if isinstance(e, TencentCloudSDKException):
|
70
|
-
raise
|
71
|
-
else:
|
72
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
73
|
-
|
74
|
-
|
75
|
-
def ScanFile(self, request):
|
76
|
-
"""tav文件上传扫描
|
77
|
-
|
78
|
-
:param request: Request instance for ScanFile.
|
79
|
-
:type request: :class:`tencentcloud.tav.v20190118.models.ScanFileRequest`
|
80
|
-
:rtype: :class:`tencentcloud.tav.v20190118.models.ScanFileResponse`
|
81
|
-
|
82
|
-
"""
|
83
|
-
try:
|
84
|
-
params = request._serialize()
|
85
|
-
headers = request.headers
|
86
|
-
body = self.call("ScanFile", params, headers=headers)
|
87
|
-
response = json.loads(body)
|
88
|
-
model = models.ScanFileResponse()
|
89
|
-
model._deserialize(response["Response"])
|
90
|
-
return model
|
91
|
-
except Exception as e:
|
92
|
-
if isinstance(e, TencentCloudSDKException):
|
93
|
-
raise
|
94
|
-
else:
|
95
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
96
|
-
|
97
|
-
|
98
|
-
def ScanFileHash(self, request):
|
99
|
-
"""通过文件哈希值获取文件黑白属性
|
100
|
-
|
101
|
-
:param request: Request instance for ScanFileHash.
|
102
|
-
:type request: :class:`tencentcloud.tav.v20190118.models.ScanFileHashRequest`
|
103
|
-
:rtype: :class:`tencentcloud.tav.v20190118.models.ScanFileHashResponse`
|
104
|
-
|
105
|
-
"""
|
106
|
-
try:
|
107
|
-
params = request._serialize()
|
108
|
-
headers = request.headers
|
109
|
-
body = self.call("ScanFileHash", params, headers=headers)
|
110
|
-
response = json.loads(body)
|
111
|
-
model = models.ScanFileHashResponse()
|
112
|
-
model._deserialize(response["Response"])
|
113
|
-
return model
|
114
|
-
except Exception as e:
|
115
|
-
if isinstance(e, TencentCloudSDKException):
|
116
|
-
raise
|
117
|
-
else:
|
118
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
tencentcloud/tbm/__init__.py
DELETED
File without changes
|
File without changes
|
@@ -1,39 +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
|
-
|
17
|
-
# 数据处理中。
|
18
|
-
INTERNALERROR_DATAINPROCESSING = 'InternalError.DataInProcessing'
|
19
|
-
|
20
|
-
# 内部接口错误。
|
21
|
-
INTERNALERROR_INNERSERVERFAILED = 'InternalError.InnerServerFailed'
|
22
|
-
|
23
|
-
# 元数据操作失败。
|
24
|
-
INTERNALERROR_METADATAOPFAILED = 'InternalError.MetaDataOpFailed'
|
25
|
-
|
26
|
-
# 参数错误
|
27
|
-
INVALIDPARAMETER = 'InvalidParameter'
|
28
|
-
|
29
|
-
# 参数取值错误
|
30
|
-
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
31
|
-
|
32
|
-
# 缺少参数错误
|
33
|
-
MISSINGPARAMETER = 'MissingParameter'
|
34
|
-
|
35
|
-
# 资源不存在
|
36
|
-
RESOURCENOTFOUND = 'ResourceNotFound'
|
37
|
-
|
38
|
-
# 未授权操作
|
39
|
-
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|