tencentcloud-sdk-python-rce 3.1.127__tar.gz → 3.1.137__tar.gz

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.
Files changed (27) hide show
  1. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/setup.py +1 -1
  3. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud/__init__.py +1 -1
  4. tencentcloud_sdk_python_rce-3.1.137/tencentcloud/rce/v20260130/__init__.py +0 -0
  5. tencentcloud_sdk_python_rce-3.1.137/tencentcloud/rce/v20260130/errorcodes.py +48 -0
  6. tencentcloud_sdk_python_rce-3.1.137/tencentcloud/rce/v20260130/models.py +733 -0
  7. tencentcloud_sdk_python_rce-3.1.137/tencentcloud/rce/v20260130/rce_client.py +49 -0
  8. tencentcloud_sdk_python_rce-3.1.137/tencentcloud/rce/v20260130/rce_client_async.py +44 -0
  9. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud_sdk_python_rce.egg-info/PKG-INFO +2 -2
  10. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud_sdk_python_rce.egg-info/SOURCES.txt +5 -0
  11. tencentcloud_sdk_python_rce-3.1.137/tencentcloud_sdk_python_rce.egg-info/requires.txt +1 -0
  12. tencentcloud_sdk_python_rce-3.1.127/tencentcloud_sdk_python_rce.egg-info/requires.txt +0 -1
  13. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/README.rst +0 -0
  14. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/setup.cfg +0 -0
  15. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud/rce/__init__.py +0 -0
  16. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud/rce/v20201103/__init__.py +0 -0
  17. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud/rce/v20201103/errorcodes.py +0 -0
  18. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud/rce/v20201103/models.py +0 -0
  19. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud/rce/v20201103/rce_client.py +0 -0
  20. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud/rce/v20201103/rce_client_async.py +0 -0
  21. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud/rce/v20250425/__init__.py +0 -0
  22. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud/rce/v20250425/errorcodes.py +0 -0
  23. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud/rce/v20250425/models.py +0 -0
  24. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud/rce/v20250425/rce_client.py +0 -0
  25. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud/rce/v20250425/rce_client_async.py +0 -0
  26. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud_sdk_python_rce.egg-info/dependency_links.txt +0 -0
  27. {tencentcloud_sdk_python_rce-3.1.127 → tencentcloud_sdk_python_rce-3.1.137}/tencentcloud_sdk_python_rce.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-rce
3
- Version: 3.1.127
3
+ Version: 3.1.137
4
4
  Summary: Tencent Cloud Rce SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.127
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.137
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-rce',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.127,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.137,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Rce SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.127'
17
+ __version__ = '3.1.137'
@@ -0,0 +1,48 @@
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_SYSTEMEXCEPTION = 'InternalError.SystemException'
19
+
20
+ # 参数错误。
21
+ INVALIDPARAMETER = 'InvalidParameter'
22
+
23
+ # 必填字段缺失。
24
+ INVALIDPARAMETER_FIELDMISSED = 'InvalidParameter.FieldMissed'
25
+
26
+ # 字段格式错误。
27
+ INVALIDPARAMETER_INVALIDFORMAT = 'InvalidParameter.InvalidFormat'
28
+
29
+ # 字段非法取值。
30
+ INVALIDPARAMETER_INVALIDVALUE = 'InvalidParameter.InvalidValue'
31
+
32
+ # 字段长度超过最大限制。
33
+ INVALIDPARAMETER_LENGTHEXCEED = 'InvalidParameter.LengthExceed'
34
+
35
+ # 事件不存在。
36
+ INVALIDPARAMETERVALUE_EVENTNOTEXIST = 'InvalidParameterValue.EventNotExist'
37
+
38
+ # 租户不存在。
39
+ INVALIDPARAMETERVALUE_TENANTNOTEXIST = 'InvalidParameterValue.TenantNotExist'
40
+
41
+ # 缺少参数错误。
42
+ MISSINGPARAMETER = 'MissingParameter'
43
+
44
+ # 缺少参数错误,必传参数未填。
45
+ MISSINGPARAMETER_FIELDMISSED = 'MissingParameter.FieldMissed'
46
+
47
+ # 未授权操作。
48
+ UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
@@ -0,0 +1,733 @@
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 AssessEnvironmentRiskRequest(AbstractModel):
22
+ r"""AssessEnvironmentRisk请求参数结构体
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _UserIp: <p>客户端 IP 地址</p>
29
+ :type UserIp: str
30
+ """
31
+ self._UserIp = None
32
+
33
+ @property
34
+ def UserIp(self):
35
+ r"""<p>客户端 IP 地址</p>
36
+ :rtype: str
37
+ """
38
+ return self._UserIp
39
+
40
+ @UserIp.setter
41
+ def UserIp(self, UserIp):
42
+ self._UserIp = UserIp
43
+
44
+
45
+ def _deserialize(self, params):
46
+ self._UserIp = params.get("UserIp")
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 AssessEnvironmentRiskResponse(AbstractModel):
58
+ r"""AssessEnvironmentRisk返回参数结构体
59
+
60
+ """
61
+
62
+ def __init__(self):
63
+ r"""
64
+ :param _Data: <p>环境风险评估返回结果</p>
65
+ :type Data: :class:`tencentcloud.rce.v20260130.models.AssessEnvironmentRiskRsp`
66
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
67
+ :type RequestId: str
68
+ """
69
+ self._Data = None
70
+ self._RequestId = None
71
+
72
+ @property
73
+ def Data(self):
74
+ r"""<p>环境风险评估返回结果</p>
75
+ :rtype: :class:`tencentcloud.rce.v20260130.models.AssessEnvironmentRiskRsp`
76
+ """
77
+ return self._Data
78
+
79
+ @Data.setter
80
+ def Data(self, Data):
81
+ self._Data = Data
82
+
83
+ @property
84
+ def RequestId(self):
85
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
86
+ :rtype: str
87
+ """
88
+ return self._RequestId
89
+
90
+ @RequestId.setter
91
+ def RequestId(self, RequestId):
92
+ self._RequestId = RequestId
93
+
94
+
95
+ def _deserialize(self, params):
96
+ if params.get("Data") is not None:
97
+ self._Data = AssessEnvironmentRiskRsp()
98
+ self._Data._deserialize(params.get("Data"))
99
+ self._RequestId = params.get("RequestId")
100
+
101
+
102
+ class AssessEnvironmentRiskRsp(AbstractModel):
103
+ r"""环境风险评估返回结果
104
+
105
+ """
106
+
107
+ def __init__(self):
108
+ r"""
109
+ :param _Score: <p>环境风险分信息</p>
110
+ :type Score: :class:`tencentcloud.rce.v20260130.models.DataScore`
111
+ :param _Environment: <p>环境基础信息</p>
112
+ :type Environment: :class:`tencentcloud.rce.v20260130.models.Environment`
113
+ """
114
+ self._Score = None
115
+ self._Environment = None
116
+
117
+ @property
118
+ def Score(self):
119
+ r"""<p>环境风险分信息</p>
120
+ :rtype: :class:`tencentcloud.rce.v20260130.models.DataScore`
121
+ """
122
+ return self._Score
123
+
124
+ @Score.setter
125
+ def Score(self, Score):
126
+ self._Score = Score
127
+
128
+ @property
129
+ def Environment(self):
130
+ r"""<p>环境基础信息</p>
131
+ :rtype: :class:`tencentcloud.rce.v20260130.models.Environment`
132
+ """
133
+ return self._Environment
134
+
135
+ @Environment.setter
136
+ def Environment(self, Environment):
137
+ self._Environment = Environment
138
+
139
+
140
+ def _deserialize(self, params):
141
+ if params.get("Score") is not None:
142
+ self._Score = DataScore()
143
+ self._Score._deserialize(params.get("Score"))
144
+ if params.get("Environment") is not None:
145
+ self._Environment = Environment()
146
+ self._Environment._deserialize(params.get("Environment"))
147
+ memeber_set = set(params.keys())
148
+ for name, value in vars(self).items():
149
+ property_name = name[1:]
150
+ if property_name in memeber_set:
151
+ memeber_set.remove(property_name)
152
+ if len(memeber_set) > 0:
153
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
154
+
155
+
156
+
157
+ class DataScore(AbstractModel):
158
+ r"""风险分信息
159
+
160
+ """
161
+
162
+ def __init__(self):
163
+ r"""
164
+ :param _RiskLevel: <p>风险等级</p>
165
+ :type RiskLevel: int
166
+ :param _RiskLabels: <p>风险标签</p>
167
+ :type RiskLabels: list of RiskLabel
168
+ """
169
+ self._RiskLevel = None
170
+ self._RiskLabels = None
171
+
172
+ @property
173
+ def RiskLevel(self):
174
+ r"""<p>风险等级</p>
175
+ :rtype: int
176
+ """
177
+ return self._RiskLevel
178
+
179
+ @RiskLevel.setter
180
+ def RiskLevel(self, RiskLevel):
181
+ self._RiskLevel = RiskLevel
182
+
183
+ @property
184
+ def RiskLabels(self):
185
+ r"""<p>风险标签</p>
186
+ :rtype: list of RiskLabel
187
+ """
188
+ return self._RiskLabels
189
+
190
+ @RiskLabels.setter
191
+ def RiskLabels(self, RiskLabels):
192
+ self._RiskLabels = RiskLabels
193
+
194
+
195
+ def _deserialize(self, params):
196
+ self._RiskLevel = params.get("RiskLevel")
197
+ if params.get("RiskLabels") is not None:
198
+ self._RiskLabels = []
199
+ for item in params.get("RiskLabels"):
200
+ obj = RiskLabel()
201
+ obj._deserialize(item)
202
+ self._RiskLabels.append(obj)
203
+ memeber_set = set(params.keys())
204
+ for name, value in vars(self).items():
205
+ property_name = name[1:]
206
+ if property_name in memeber_set:
207
+ memeber_set.remove(property_name)
208
+ if len(memeber_set) > 0:
209
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
210
+
211
+
212
+
213
+ class Environment(AbstractModel):
214
+ r"""环境基础信息
215
+
216
+ """
217
+
218
+ def __init__(self):
219
+ r"""
220
+ :param _Location: <p>IP地理位置信息</p>
221
+ :type Location: :class:`tencentcloud.rce.v20260130.models.IPLocation`
222
+ :param _Network: <p>IP基础网络信息</p>
223
+ :type Network: :class:`tencentcloud.rce.v20260130.models.IPNetwork`
224
+ """
225
+ self._Location = None
226
+ self._Network = None
227
+
228
+ @property
229
+ def Location(self):
230
+ r"""<p>IP地理位置信息</p>
231
+ :rtype: :class:`tencentcloud.rce.v20260130.models.IPLocation`
232
+ """
233
+ return self._Location
234
+
235
+ @Location.setter
236
+ def Location(self, Location):
237
+ self._Location = Location
238
+
239
+ @property
240
+ def Network(self):
241
+ r"""<p>IP基础网络信息</p>
242
+ :rtype: :class:`tencentcloud.rce.v20260130.models.IPNetwork`
243
+ """
244
+ return self._Network
245
+
246
+ @Network.setter
247
+ def Network(self, Network):
248
+ self._Network = Network
249
+
250
+
251
+ def _deserialize(self, params):
252
+ if params.get("Location") is not None:
253
+ self._Location = IPLocation()
254
+ self._Location._deserialize(params.get("Location"))
255
+ if params.get("Network") is not None:
256
+ self._Network = IPNetwork()
257
+ self._Network._deserialize(params.get("Network"))
258
+ memeber_set = set(params.keys())
259
+ for name, value in vars(self).items():
260
+ property_name = name[1:]
261
+ if property_name in memeber_set:
262
+ memeber_set.remove(property_name)
263
+ if len(memeber_set) > 0:
264
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
265
+
266
+
267
+
268
+ class IPLocation(AbstractModel):
269
+ r"""IP地理位置信息
270
+
271
+ """
272
+
273
+ def __init__(self):
274
+ r"""
275
+ :param _Country: <p>IP地址所属国家</p>
276
+ :type Country: str
277
+ :param _Region: <p>IP地址所属省份</p>
278
+ :type Region: str
279
+ :param _City: <p>IP地址所属城市</p>
280
+ :type City: str
281
+ :param _District: <p>IP地址所属地区</p>
282
+ :type District: str
283
+ :param _Longitude: <p>IP地址的经度</p>
284
+ :type Longitude: str
285
+ :param _Latitude: <p>IP地址的纬度</p>
286
+ :type Latitude: str
287
+ :param _Timezone: <p>IP地址所属时区</p>
288
+ :type Timezone: str
289
+ :param _ZipCode: <p>IP地址的邮政编码</p>
290
+ :type ZipCode: str
291
+ """
292
+ self._Country = None
293
+ self._Region = None
294
+ self._City = None
295
+ self._District = None
296
+ self._Longitude = None
297
+ self._Latitude = None
298
+ self._Timezone = None
299
+ self._ZipCode = None
300
+
301
+ @property
302
+ def Country(self):
303
+ r"""<p>IP地址所属国家</p>
304
+ :rtype: str
305
+ """
306
+ return self._Country
307
+
308
+ @Country.setter
309
+ def Country(self, Country):
310
+ self._Country = Country
311
+
312
+ @property
313
+ def Region(self):
314
+ r"""<p>IP地址所属省份</p>
315
+ :rtype: str
316
+ """
317
+ return self._Region
318
+
319
+ @Region.setter
320
+ def Region(self, Region):
321
+ self._Region = Region
322
+
323
+ @property
324
+ def City(self):
325
+ r"""<p>IP地址所属城市</p>
326
+ :rtype: str
327
+ """
328
+ return self._City
329
+
330
+ @City.setter
331
+ def City(self, City):
332
+ self._City = City
333
+
334
+ @property
335
+ def District(self):
336
+ r"""<p>IP地址所属地区</p>
337
+ :rtype: str
338
+ """
339
+ return self._District
340
+
341
+ @District.setter
342
+ def District(self, District):
343
+ self._District = District
344
+
345
+ @property
346
+ def Longitude(self):
347
+ r"""<p>IP地址的经度</p>
348
+ :rtype: str
349
+ """
350
+ return self._Longitude
351
+
352
+ @Longitude.setter
353
+ def Longitude(self, Longitude):
354
+ self._Longitude = Longitude
355
+
356
+ @property
357
+ def Latitude(self):
358
+ r"""<p>IP地址的纬度</p>
359
+ :rtype: str
360
+ """
361
+ return self._Latitude
362
+
363
+ @Latitude.setter
364
+ def Latitude(self, Latitude):
365
+ self._Latitude = Latitude
366
+
367
+ @property
368
+ def Timezone(self):
369
+ r"""<p>IP地址所属时区</p>
370
+ :rtype: str
371
+ """
372
+ return self._Timezone
373
+
374
+ @Timezone.setter
375
+ def Timezone(self, Timezone):
376
+ self._Timezone = Timezone
377
+
378
+ @property
379
+ def ZipCode(self):
380
+ r"""<p>IP地址的邮政编码</p>
381
+ :rtype: str
382
+ """
383
+ return self._ZipCode
384
+
385
+ @ZipCode.setter
386
+ def ZipCode(self, ZipCode):
387
+ self._ZipCode = ZipCode
388
+
389
+
390
+ def _deserialize(self, params):
391
+ self._Country = params.get("Country")
392
+ self._Region = params.get("Region")
393
+ self._City = params.get("City")
394
+ self._District = params.get("District")
395
+ self._Longitude = params.get("Longitude")
396
+ self._Latitude = params.get("Latitude")
397
+ self._Timezone = params.get("Timezone")
398
+ self._ZipCode = params.get("ZipCode")
399
+ memeber_set = set(params.keys())
400
+ for name, value in vars(self).items():
401
+ property_name = name[1:]
402
+ if property_name in memeber_set:
403
+ memeber_set.remove(property_name)
404
+ if len(memeber_set) > 0:
405
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
406
+
407
+
408
+
409
+ class IPNetwork(AbstractModel):
410
+ r"""IP基础网络信息
411
+
412
+ """
413
+
414
+ def __init__(self):
415
+ r"""
416
+ :param _ISP: <p>互联网服务提供商</p>
417
+ :type ISP: str
418
+ :param _ASN: <p>自治系统号</p>
419
+ :type ASN: str
420
+ :param _Organization: <p>IP注册组织名称</p>
421
+ :type Organization: str
422
+ :param _IsReserved: <p>是否保留IP</p>
423
+ :type IsReserved: bool
424
+ :param _IsGateway: <p>是否网关IP</p>
425
+ :type IsGateway: bool
426
+ :param _IsAnycast: <p>是否任播网络</p>
427
+ :type IsAnycast: bool
428
+ :param _IsMobile: <p>是否移动网络</p>
429
+ :type IsMobile: bool
430
+ :param _IsDynamic: <p>是否动态IP</p>
431
+ :type IsDynamic: bool
432
+ :param _IsEgress: <p>是否网络出口</p>
433
+ :type IsEgress: bool
434
+ :param _IsDNS: <p>是否域名解析</p>
435
+ :type IsDNS: bool
436
+ :param _IsEducation: <p>是否教育机构</p>
437
+ :type IsEducation: bool
438
+ :param _IsInstitution: <p>是否组织机构</p>
439
+ :type IsInstitution: bool
440
+ :param _IsCompany: <p>是否企业专线</p>
441
+ :type IsCompany: bool
442
+ :param _IsResidence: <p>是否家用宽带</p>
443
+ :type IsResidence: bool
444
+ :param _IsCloudService: <p>是否云服务</p>
445
+ :type IsCloudService: bool
446
+ :param _IsInfrastructure: <p>是否基础设施</p>
447
+ :type IsInfrastructure: bool
448
+ :param _IsMXServer: <p>是否邮箱服务</p>
449
+ :type IsMXServer: bool
450
+ """
451
+ self._ISP = None
452
+ self._ASN = None
453
+ self._Organization = None
454
+ self._IsReserved = None
455
+ self._IsGateway = None
456
+ self._IsAnycast = None
457
+ self._IsMobile = None
458
+ self._IsDynamic = None
459
+ self._IsEgress = None
460
+ self._IsDNS = None
461
+ self._IsEducation = None
462
+ self._IsInstitution = None
463
+ self._IsCompany = None
464
+ self._IsResidence = None
465
+ self._IsCloudService = None
466
+ self._IsInfrastructure = None
467
+ self._IsMXServer = None
468
+
469
+ @property
470
+ def ISP(self):
471
+ r"""<p>互联网服务提供商</p>
472
+ :rtype: str
473
+ """
474
+ return self._ISP
475
+
476
+ @ISP.setter
477
+ def ISP(self, ISP):
478
+ self._ISP = ISP
479
+
480
+ @property
481
+ def ASN(self):
482
+ r"""<p>自治系统号</p>
483
+ :rtype: str
484
+ """
485
+ return self._ASN
486
+
487
+ @ASN.setter
488
+ def ASN(self, ASN):
489
+ self._ASN = ASN
490
+
491
+ @property
492
+ def Organization(self):
493
+ r"""<p>IP注册组织名称</p>
494
+ :rtype: str
495
+ """
496
+ return self._Organization
497
+
498
+ @Organization.setter
499
+ def Organization(self, Organization):
500
+ self._Organization = Organization
501
+
502
+ @property
503
+ def IsReserved(self):
504
+ r"""<p>是否保留IP</p>
505
+ :rtype: bool
506
+ """
507
+ return self._IsReserved
508
+
509
+ @IsReserved.setter
510
+ def IsReserved(self, IsReserved):
511
+ self._IsReserved = IsReserved
512
+
513
+ @property
514
+ def IsGateway(self):
515
+ r"""<p>是否网关IP</p>
516
+ :rtype: bool
517
+ """
518
+ return self._IsGateway
519
+
520
+ @IsGateway.setter
521
+ def IsGateway(self, IsGateway):
522
+ self._IsGateway = IsGateway
523
+
524
+ @property
525
+ def IsAnycast(self):
526
+ r"""<p>是否任播网络</p>
527
+ :rtype: bool
528
+ """
529
+ return self._IsAnycast
530
+
531
+ @IsAnycast.setter
532
+ def IsAnycast(self, IsAnycast):
533
+ self._IsAnycast = IsAnycast
534
+
535
+ @property
536
+ def IsMobile(self):
537
+ r"""<p>是否移动网络</p>
538
+ :rtype: bool
539
+ """
540
+ return self._IsMobile
541
+
542
+ @IsMobile.setter
543
+ def IsMobile(self, IsMobile):
544
+ self._IsMobile = IsMobile
545
+
546
+ @property
547
+ def IsDynamic(self):
548
+ r"""<p>是否动态IP</p>
549
+ :rtype: bool
550
+ """
551
+ return self._IsDynamic
552
+
553
+ @IsDynamic.setter
554
+ def IsDynamic(self, IsDynamic):
555
+ self._IsDynamic = IsDynamic
556
+
557
+ @property
558
+ def IsEgress(self):
559
+ r"""<p>是否网络出口</p>
560
+ :rtype: bool
561
+ """
562
+ return self._IsEgress
563
+
564
+ @IsEgress.setter
565
+ def IsEgress(self, IsEgress):
566
+ self._IsEgress = IsEgress
567
+
568
+ @property
569
+ def IsDNS(self):
570
+ r"""<p>是否域名解析</p>
571
+ :rtype: bool
572
+ """
573
+ return self._IsDNS
574
+
575
+ @IsDNS.setter
576
+ def IsDNS(self, IsDNS):
577
+ self._IsDNS = IsDNS
578
+
579
+ @property
580
+ def IsEducation(self):
581
+ r"""<p>是否教育机构</p>
582
+ :rtype: bool
583
+ """
584
+ return self._IsEducation
585
+
586
+ @IsEducation.setter
587
+ def IsEducation(self, IsEducation):
588
+ self._IsEducation = IsEducation
589
+
590
+ @property
591
+ def IsInstitution(self):
592
+ r"""<p>是否组织机构</p>
593
+ :rtype: bool
594
+ """
595
+ return self._IsInstitution
596
+
597
+ @IsInstitution.setter
598
+ def IsInstitution(self, IsInstitution):
599
+ self._IsInstitution = IsInstitution
600
+
601
+ @property
602
+ def IsCompany(self):
603
+ r"""<p>是否企业专线</p>
604
+ :rtype: bool
605
+ """
606
+ return self._IsCompany
607
+
608
+ @IsCompany.setter
609
+ def IsCompany(self, IsCompany):
610
+ self._IsCompany = IsCompany
611
+
612
+ @property
613
+ def IsResidence(self):
614
+ r"""<p>是否家用宽带</p>
615
+ :rtype: bool
616
+ """
617
+ return self._IsResidence
618
+
619
+ @IsResidence.setter
620
+ def IsResidence(self, IsResidence):
621
+ self._IsResidence = IsResidence
622
+
623
+ @property
624
+ def IsCloudService(self):
625
+ r"""<p>是否云服务</p>
626
+ :rtype: bool
627
+ """
628
+ return self._IsCloudService
629
+
630
+ @IsCloudService.setter
631
+ def IsCloudService(self, IsCloudService):
632
+ self._IsCloudService = IsCloudService
633
+
634
+ @property
635
+ def IsInfrastructure(self):
636
+ r"""<p>是否基础设施</p>
637
+ :rtype: bool
638
+ """
639
+ return self._IsInfrastructure
640
+
641
+ @IsInfrastructure.setter
642
+ def IsInfrastructure(self, IsInfrastructure):
643
+ self._IsInfrastructure = IsInfrastructure
644
+
645
+ @property
646
+ def IsMXServer(self):
647
+ r"""<p>是否邮箱服务</p>
648
+ :rtype: bool
649
+ """
650
+ return self._IsMXServer
651
+
652
+ @IsMXServer.setter
653
+ def IsMXServer(self, IsMXServer):
654
+ self._IsMXServer = IsMXServer
655
+
656
+
657
+ def _deserialize(self, params):
658
+ self._ISP = params.get("ISP")
659
+ self._ASN = params.get("ASN")
660
+ self._Organization = params.get("Organization")
661
+ self._IsReserved = params.get("IsReserved")
662
+ self._IsGateway = params.get("IsGateway")
663
+ self._IsAnycast = params.get("IsAnycast")
664
+ self._IsMobile = params.get("IsMobile")
665
+ self._IsDynamic = params.get("IsDynamic")
666
+ self._IsEgress = params.get("IsEgress")
667
+ self._IsDNS = params.get("IsDNS")
668
+ self._IsEducation = params.get("IsEducation")
669
+ self._IsInstitution = params.get("IsInstitution")
670
+ self._IsCompany = params.get("IsCompany")
671
+ self._IsResidence = params.get("IsResidence")
672
+ self._IsCloudService = params.get("IsCloudService")
673
+ self._IsInfrastructure = params.get("IsInfrastructure")
674
+ self._IsMXServer = params.get("IsMXServer")
675
+ memeber_set = set(params.keys())
676
+ for name, value in vars(self).items():
677
+ property_name = name[1:]
678
+ if property_name in memeber_set:
679
+ memeber_set.remove(property_name)
680
+ if len(memeber_set) > 0:
681
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
682
+
683
+
684
+
685
+ class RiskLabel(AbstractModel):
686
+ r"""风险标签
687
+
688
+ """
689
+
690
+ def __init__(self):
691
+ r"""
692
+ :param _Id: <p>风险ID</p>
693
+ :type Id: str
694
+ :param _Reason: <p>风险描述</p>
695
+ :type Reason: str
696
+ """
697
+ self._Id = None
698
+ self._Reason = None
699
+
700
+ @property
701
+ def Id(self):
702
+ r"""<p>风险ID</p>
703
+ :rtype: str
704
+ """
705
+ return self._Id
706
+
707
+ @Id.setter
708
+ def Id(self, Id):
709
+ self._Id = Id
710
+
711
+ @property
712
+ def Reason(self):
713
+ r"""<p>风险描述</p>
714
+ :rtype: str
715
+ """
716
+ return self._Reason
717
+
718
+ @Reason.setter
719
+ def Reason(self, Reason):
720
+ self._Reason = Reason
721
+
722
+
723
+ def _deserialize(self, params):
724
+ self._Id = params.get("Id")
725
+ self._Reason = params.get("Reason")
726
+ memeber_set = set(params.keys())
727
+ for name, value in vars(self).items():
728
+ property_name = name[1:]
729
+ if property_name in memeber_set:
730
+ memeber_set.remove(property_name)
731
+ if len(memeber_set) > 0:
732
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
733
+
@@ -0,0 +1,49 @@
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.rce.v20260130 import models
21
+
22
+
23
+ class RceClient(AbstractClient):
24
+ _apiVersion = '2026-01-30'
25
+ _endpoint = 'rce.tencentcloudapi.com'
26
+ _service = 'rce'
27
+
28
+
29
+ def AssessEnvironmentRisk(self, request):
30
+ r"""环境风险评估
31
+
32
+ :param request: Request instance for AssessEnvironmentRisk.
33
+ :type request: :class:`tencentcloud.rce.v20260130.models.AssessEnvironmentRiskRequest`
34
+ :rtype: :class:`tencentcloud.rce.v20260130.models.AssessEnvironmentRiskResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("AssessEnvironmentRisk", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.AssessEnvironmentRiskResponse()
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))
@@ -0,0 +1,44 @@
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
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.rce.v20260130 import models
20
+ from typing import Dict
21
+
22
+
23
+ class RceClient(AbstractClient):
24
+ _apiVersion = '2026-01-30'
25
+ _endpoint = 'rce.tencentcloudapi.com'
26
+ _service = 'rce'
27
+
28
+ async def AssessEnvironmentRisk(
29
+ self,
30
+ request: models.AssessEnvironmentRiskRequest,
31
+ opts: Dict = None,
32
+ ) -> models.AssessEnvironmentRiskResponse:
33
+ """
34
+ 环境风险评估
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "AssessEnvironmentRisk"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.AssessEnvironmentRiskResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-rce
3
- Version: 3.1.127
3
+ Version: 3.1.137
4
4
  Summary: Tencent Cloud Rce SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.127
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.137
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -13,6 +13,11 @@ tencentcloud/rce/v20250425/errorcodes.py
13
13
  tencentcloud/rce/v20250425/models.py
14
14
  tencentcloud/rce/v20250425/rce_client.py
15
15
  tencentcloud/rce/v20250425/rce_client_async.py
16
+ tencentcloud/rce/v20260130/__init__.py
17
+ tencentcloud/rce/v20260130/errorcodes.py
18
+ tencentcloud/rce/v20260130/models.py
19
+ tencentcloud/rce/v20260130/rce_client.py
20
+ tencentcloud/rce/v20260130/rce_client_async.py
16
21
  tencentcloud_sdk_python_rce.egg-info/PKG-INFO
17
22
  tencentcloud_sdk_python_rce.egg-info/SOURCES.txt
18
23
  tencentcloud_sdk_python_rce.egg-info/dependency_links.txt
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.137
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.127