tencentcloud-sdk-python-csip 3.1.95__tar.gz → 3.1.96__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 (17) hide show
  1. {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.96}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.96}/setup.py +1 -1
  3. {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.96}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.96}/tencentcloud/csip/v20221121/csip_client.py +46 -0
  5. {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.96}/tencentcloud/csip/v20221121/csip_client_async.py +36 -0
  6. {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.96}/tencentcloud/csip/v20221121/models.py +1207 -125
  7. {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.96}/tencentcloud_sdk_python_csip.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_csip-3.1.96/tencentcloud_sdk_python_csip.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_csip-3.1.95/tencentcloud_sdk_python_csip.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.96}/README.rst +0 -0
  11. {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.96}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.96}/tencentcloud/csip/__init__.py +0 -0
  13. {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.96}/tencentcloud/csip/v20221121/__init__.py +0 -0
  14. {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.96}/tencentcloud/csip/v20221121/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.96}/tencentcloud_sdk_python_csip.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.96}/tencentcloud_sdk_python_csip.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_csip-3.1.95 → tencentcloud_sdk_python_csip-3.1.96}/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.95
3
+ Version: 3.1.96
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.95
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.96
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.95,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.96,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Csip SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.95'
17
+ __version__ = '3.1.96'
@@ -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,29 @@ class CsipClient(AbstractClient):
2924
2947
  raise TencentCloudSDKException(type(e).__name__, str(e))
2925
2948
 
2926
2949
 
2950
+ def DescribeSkillScanResult(self, request):
2951
+ r"""查询 Skill 安全检测结果。调用 CreateSkillScan 成功后使用返回的 ContentHash + EngineVersion 轮询本接口获取结果。上传成功后建议5分钟后首次轮询,如未检测完成之后每隔1分钟轮询一次。响应通过 Status 字段区分四种状态:检测完成(SUCCESS)、检测中(SCANNING)、无记录(NOT_FOUND)、检测失败(FAILED)。注意:检测结果保留90天,超期后将返回 NOT_FOUND。
2952
+
2953
+ :param request: Request instance for DescribeSkillScanResult.
2954
+ :type request: :class:`tencentcloud.csip.v20221121.models.DescribeSkillScanResultRequest`
2955
+ :rtype: :class:`tencentcloud.csip.v20221121.models.DescribeSkillScanResultResponse`
2956
+
2957
+ """
2958
+ try:
2959
+ params = request._serialize()
2960
+ headers = request.headers
2961
+ body = self.call("DescribeSkillScanResult", params, headers=headers)
2962
+ response = json.loads(body)
2963
+ model = models.DescribeSkillScanResultResponse()
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
+
2927
2973
  def DescribeSourceIPAsset(self, request):
2928
2974
  r"""获取用户访问密钥资产列表(源IP视角)
2929
2975
 
@@ -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,24 @@ class CsipClient(AbstractClient):
2293
2311
 
2294
2312
  return await self.call_and_deserialize(**kwargs)
2295
2313
 
2314
+ async def DescribeSkillScanResult(
2315
+ self,
2316
+ request: models.DescribeSkillScanResultRequest,
2317
+ opts: Dict = None,
2318
+ ) -> models.DescribeSkillScanResultResponse:
2319
+ """
2320
+ 查询 Skill 安全检测结果。调用 CreateSkillScan 成功后使用返回的 ContentHash + EngineVersion 轮询本接口获取结果。上传成功后建议5分钟后首次轮询,如未检测完成之后每隔1分钟轮询一次。响应通过 Status 字段区分四种状态:检测完成(SUCCESS)、检测中(SCANNING)、无记录(NOT_FOUND)、检测失败(FAILED)。注意:检测结果保留90天,超期后将返回 NOT_FOUND。
2321
+ """
2322
+
2323
+ kwargs = {}
2324
+ kwargs["action"] = "DescribeSkillScanResult"
2325
+ kwargs["params"] = request._serialize()
2326
+ kwargs["resp_cls"] = models.DescribeSkillScanResultResponse
2327
+ kwargs["headers"] = request.headers
2328
+ kwargs["opts"] = opts or {}
2329
+
2330
+ return await self.call_and_deserialize(**kwargs)
2331
+
2296
2332
  async def DescribeSourceIPAsset(
2297
2333
  self,
2298
2334
  request: models.DescribeSourceIPAssetRequest,