tencentcloud-sdk-python-csip 3.1.95__tar.gz → 3.1.97__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.
- {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.97}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.97}/setup.py +1 -1
- {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.97}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.97}/tencentcloud/csip/v20221121/csip_client.py +69 -0
- {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.97}/tencentcloud/csip/v20221121/csip_client_async.py +54 -0
- {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.97}/tencentcloud/csip/v20221121/models.py +1843 -357
- {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.97}/tencentcloud_sdk_python_csip.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_csip-3.1.97/tencentcloud_sdk_python_csip.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_csip-3.1.95/tencentcloud_sdk_python_csip.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.97}/README.rst +0 -0
- {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.97}/setup.cfg +0 -0
- {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.97}/tencentcloud/csip/__init__.py +0 -0
- {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.97}/tencentcloud/csip/v20221121/__init__.py +0 -0
- {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.97}/tencentcloud/csip/v20221121/errorcodes.py +0 -0
- {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.97}/tencentcloud_sdk_python_csip.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.97}/tencentcloud_sdk_python_csip.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.97}/tencentcloud_sdk_python_csip.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-csip
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.97
|
|
4
4
|
Summary: Tencent Cloud Csip 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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.97
|
|
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-csip',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.97,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Csip SDK for Python',
|
|
@@ -394,6 +394,29 @@ class CsipClient(AbstractClient):
|
|
|
394
394
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
395
395
|
|
|
396
396
|
|
|
397
|
+
def CreateSkillScan(self, request):
|
|
398
|
+
r"""上传 Skill ZIP 文件,触发异步安全检测。上传成功后应使用返回的 ContentHash + EngineVersion 轮询 DescribeSkillScanResult 接口获取结果。上传接口具备幂等性,同一 Hash 的文件重复上传不会创建重复任务。检测结果保留90天,超期后需重新上传检测。
|
|
399
|
+
|
|
400
|
+
:param request: Request instance for CreateSkillScan.
|
|
401
|
+
:type request: :class:`tencentcloud.csip.v20221121.models.CreateSkillScanRequest`
|
|
402
|
+
:rtype: :class:`tencentcloud.csip.v20221121.models.CreateSkillScanResponse`
|
|
403
|
+
|
|
404
|
+
"""
|
|
405
|
+
try:
|
|
406
|
+
params = request._serialize()
|
|
407
|
+
headers = request.headers
|
|
408
|
+
body = self.call("CreateSkillScan", params, headers=headers)
|
|
409
|
+
response = json.loads(body)
|
|
410
|
+
model = models.CreateSkillScanResponse()
|
|
411
|
+
model._deserialize(response["Response"])
|
|
412
|
+
return model
|
|
413
|
+
except Exception as e:
|
|
414
|
+
if isinstance(e, TencentCloudSDKException):
|
|
415
|
+
raise
|
|
416
|
+
else:
|
|
417
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
418
|
+
|
|
419
|
+
|
|
397
420
|
def DeleteDomainAndIp(self, request):
|
|
398
421
|
r"""删除域名和ip请求
|
|
399
422
|
|
|
@@ -2924,6 +2947,52 @@ class CsipClient(AbstractClient):
|
|
|
2924
2947
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2925
2948
|
|
|
2926
2949
|
|
|
2950
|
+
def DescribeSkillScanPayInfo(self, request):
|
|
2951
|
+
r"""查询 Skill 安全检测计费信息,包括订单状态、总配额、已消耗配额、到期时间、支付模式等。无订单时返回零值(仅含 TimeNow 和 BetaEndTime)。试用订单通过 ModifyTrialStatus(Module=9) 领取,正式订单通过计费系统创建。
|
|
2952
|
+
|
|
2953
|
+
:param request: Request instance for DescribeSkillScanPayInfo.
|
|
2954
|
+
:type request: :class:`tencentcloud.csip.v20221121.models.DescribeSkillScanPayInfoRequest`
|
|
2955
|
+
:rtype: :class:`tencentcloud.csip.v20221121.models.DescribeSkillScanPayInfoResponse`
|
|
2956
|
+
|
|
2957
|
+
"""
|
|
2958
|
+
try:
|
|
2959
|
+
params = request._serialize()
|
|
2960
|
+
headers = request.headers
|
|
2961
|
+
body = self.call("DescribeSkillScanPayInfo", params, headers=headers)
|
|
2962
|
+
response = json.loads(body)
|
|
2963
|
+
model = models.DescribeSkillScanPayInfoResponse()
|
|
2964
|
+
model._deserialize(response["Response"])
|
|
2965
|
+
return model
|
|
2966
|
+
except Exception as e:
|
|
2967
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2968
|
+
raise
|
|
2969
|
+
else:
|
|
2970
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2971
|
+
|
|
2972
|
+
|
|
2973
|
+
def DescribeSkillScanResult(self, request):
|
|
2974
|
+
r"""查询 Skill 安全检测结果。调用 CreateSkillScan 成功后使用返回的 ContentHash + EngineVersion 轮询本接口获取结果。上传成功后建议5分钟后首次轮询,如未检测完成之后每隔1分钟轮询一次。响应通过 Status 字段区分四种状态:检测完成(SUCCESS)、检测中(SCANNING)、无记录(NOT_FOUND)、检测失败(FAILED)。注意:检测结果保留90天,超期后将返回 NOT_FOUND。
|
|
2975
|
+
|
|
2976
|
+
:param request: Request instance for DescribeSkillScanResult.
|
|
2977
|
+
:type request: :class:`tencentcloud.csip.v20221121.models.DescribeSkillScanResultRequest`
|
|
2978
|
+
:rtype: :class:`tencentcloud.csip.v20221121.models.DescribeSkillScanResultResponse`
|
|
2979
|
+
|
|
2980
|
+
"""
|
|
2981
|
+
try:
|
|
2982
|
+
params = request._serialize()
|
|
2983
|
+
headers = request.headers
|
|
2984
|
+
body = self.call("DescribeSkillScanResult", params, headers=headers)
|
|
2985
|
+
response = json.loads(body)
|
|
2986
|
+
model = models.DescribeSkillScanResultResponse()
|
|
2987
|
+
model._deserialize(response["Response"])
|
|
2988
|
+
return model
|
|
2989
|
+
except Exception as e:
|
|
2990
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2991
|
+
raise
|
|
2992
|
+
else:
|
|
2993
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2994
|
+
|
|
2995
|
+
|
|
2927
2996
|
def DescribeSourceIPAsset(self, request):
|
|
2928
2997
|
r"""获取用户访问密钥资产列表(源IP视角)
|
|
2929
2998
|
|
|
@@ -313,6 +313,24 @@ class CsipClient(AbstractClient):
|
|
|
313
313
|
|
|
314
314
|
return await self.call_and_deserialize(**kwargs)
|
|
315
315
|
|
|
316
|
+
async def CreateSkillScan(
|
|
317
|
+
self,
|
|
318
|
+
request: models.CreateSkillScanRequest,
|
|
319
|
+
opts: Dict = None,
|
|
320
|
+
) -> models.CreateSkillScanResponse:
|
|
321
|
+
"""
|
|
322
|
+
上传 Skill ZIP 文件,触发异步安全检测。上传成功后应使用返回的 ContentHash + EngineVersion 轮询 DescribeSkillScanResult 接口获取结果。上传接口具备幂等性,同一 Hash 的文件重复上传不会创建重复任务。检测结果保留90天,超期后需重新上传检测。
|
|
323
|
+
"""
|
|
324
|
+
|
|
325
|
+
kwargs = {}
|
|
326
|
+
kwargs["action"] = "CreateSkillScan"
|
|
327
|
+
kwargs["params"] = request._serialize()
|
|
328
|
+
kwargs["resp_cls"] = models.CreateSkillScanResponse
|
|
329
|
+
kwargs["headers"] = request.headers
|
|
330
|
+
kwargs["opts"] = opts or {}
|
|
331
|
+
|
|
332
|
+
return await self.call_and_deserialize(**kwargs)
|
|
333
|
+
|
|
316
334
|
async def DeleteDomainAndIp(
|
|
317
335
|
self,
|
|
318
336
|
request: models.DeleteDomainAndIpRequest,
|
|
@@ -2293,6 +2311,42 @@ class CsipClient(AbstractClient):
|
|
|
2293
2311
|
|
|
2294
2312
|
return await self.call_and_deserialize(**kwargs)
|
|
2295
2313
|
|
|
2314
|
+
async def DescribeSkillScanPayInfo(
|
|
2315
|
+
self,
|
|
2316
|
+
request: models.DescribeSkillScanPayInfoRequest,
|
|
2317
|
+
opts: Dict = None,
|
|
2318
|
+
) -> models.DescribeSkillScanPayInfoResponse:
|
|
2319
|
+
"""
|
|
2320
|
+
查询 Skill 安全检测计费信息,包括订单状态、总配额、已消耗配额、到期时间、支付模式等。无订单时返回零值(仅含 TimeNow 和 BetaEndTime)。试用订单通过 ModifyTrialStatus(Module=9) 领取,正式订单通过计费系统创建。
|
|
2321
|
+
"""
|
|
2322
|
+
|
|
2323
|
+
kwargs = {}
|
|
2324
|
+
kwargs["action"] = "DescribeSkillScanPayInfo"
|
|
2325
|
+
kwargs["params"] = request._serialize()
|
|
2326
|
+
kwargs["resp_cls"] = models.DescribeSkillScanPayInfoResponse
|
|
2327
|
+
kwargs["headers"] = request.headers
|
|
2328
|
+
kwargs["opts"] = opts or {}
|
|
2329
|
+
|
|
2330
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2331
|
+
|
|
2332
|
+
async def DescribeSkillScanResult(
|
|
2333
|
+
self,
|
|
2334
|
+
request: models.DescribeSkillScanResultRequest,
|
|
2335
|
+
opts: Dict = None,
|
|
2336
|
+
) -> models.DescribeSkillScanResultResponse:
|
|
2337
|
+
"""
|
|
2338
|
+
查询 Skill 安全检测结果。调用 CreateSkillScan 成功后使用返回的 ContentHash + EngineVersion 轮询本接口获取结果。上传成功后建议5分钟后首次轮询,如未检测完成之后每隔1分钟轮询一次。响应通过 Status 字段区分四种状态:检测完成(SUCCESS)、检测中(SCANNING)、无记录(NOT_FOUND)、检测失败(FAILED)。注意:检测结果保留90天,超期后将返回 NOT_FOUND。
|
|
2339
|
+
"""
|
|
2340
|
+
|
|
2341
|
+
kwargs = {}
|
|
2342
|
+
kwargs["action"] = "DescribeSkillScanResult"
|
|
2343
|
+
kwargs["params"] = request._serialize()
|
|
2344
|
+
kwargs["resp_cls"] = models.DescribeSkillScanResultResponse
|
|
2345
|
+
kwargs["headers"] = request.headers
|
|
2346
|
+
kwargs["opts"] = opts or {}
|
|
2347
|
+
|
|
2348
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2349
|
+
|
|
2296
2350
|
async def DescribeSourceIPAsset(
|
|
2297
2351
|
self,
|
|
2298
2352
|
request: models.DescribeSourceIPAssetRequest,
|