第一次提交:阿龙电竞 Django 后端最新版本
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
# -*- coding: utf8 -*-
|
||||
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
# CAM签名/鉴权错误。
|
||||
AUTHFAILURE = 'AuthFailure'
|
||||
|
||||
# 云上资产、安全配置、合规风险配置、互联网攻击面测绘模块未授权。
|
||||
AUTHFAILURE_AUTHMODULEFAILED = 'AuthFailure.AuthModuleFailed'
|
||||
|
||||
# DryRun 操作,代表请求将会是成功的,只是多传了 DryRun 参数。
|
||||
DRYRUNOPERATION = 'DryRunOperation'
|
||||
|
||||
# 操作失败。
|
||||
FAILEDOPERATION = 'FailedOperation'
|
||||
|
||||
# 内部错误。
|
||||
INTERNALERROR = 'InternalError'
|
||||
|
||||
# DB错误。
|
||||
INTERNALERROR_DBERROR = 'InternalError.DBError'
|
||||
|
||||
# 参数校验失败。
|
||||
INTERNALERROR_PARAMERROR = 'InternalError.ParamError'
|
||||
|
||||
# 参数错误。
|
||||
INVALIDPARAMETER = 'InvalidParameter'
|
||||
|
||||
# 参数取值错误。
|
||||
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
||||
|
||||
# 超过配额限制。
|
||||
LIMITEXCEEDED = 'LimitExceeded'
|
||||
|
||||
# 缺少参数错误。
|
||||
MISSINGPARAMETER = 'MissingParameter'
|
||||
|
||||
# 操作被拒绝。
|
||||
OPERATIONDENIED = 'OperationDenied'
|
||||
|
||||
# 请求的次数超过了频率限制。
|
||||
REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
|
||||
|
||||
# 资源被占用。
|
||||
RESOURCEINUSE = 'ResourceInUse'
|
||||
|
||||
# 资源不足。
|
||||
RESOURCEINSUFFICIENT = 'ResourceInsufficient'
|
||||
|
||||
# 资源不存在。
|
||||
RESOURCENOTFOUND = 'ResourceNotFound'
|
||||
|
||||
# 资源不可用。
|
||||
RESOURCEUNAVAILABLE = 'ResourceUnavailable'
|
||||
|
||||
# 资源售罄。
|
||||
RESOURCESSOLDOUT = 'ResourcesSoldOut'
|
||||
|
||||
# 未授权操作。
|
||||
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
||||
|
||||
# 子账号没有权限操作。
|
||||
UNAUTHORIZEDOPERATION_SUBACCOUNTUNAUTHORIZED = 'UnauthorizedOperation.SubAccountUnauthorized'
|
||||
|
||||
# 未知参数错误。
|
||||
UNKNOWNPARAMETER = 'UnknownParameter'
|
||||
|
||||
# 操作不支持。
|
||||
UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,555 @@
|
||||
# -*- coding: utf8 -*-
|
||||
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import json
|
||||
|
||||
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
||||
from tencentcloud.common.abstract_client import AbstractClient
|
||||
from tencentcloud.ssa.v20180608 import models
|
||||
|
||||
|
||||
class SsaClient(AbstractClient):
|
||||
_apiVersion = '2018-06-08'
|
||||
_endpoint = 'ssa.tencentcloudapi.com'
|
||||
_service = 'ssa'
|
||||
|
||||
|
||||
def DescribeAlarmStat(self, request):
|
||||
r"""安全大屏-用户威胁告警信息
|
||||
|
||||
:param request: Request instance for DescribeAlarmStat.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeAlarmStatRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeAlarmStatResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeAlarmStat", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeAlarmStatResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeAssetDetail(self, request):
|
||||
r"""资产安全页资产详情
|
||||
|
||||
:param request: Request instance for DescribeAssetDetail.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeAssetDetailRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeAssetDetailResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeAssetDetail", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeAssetDetailResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeAssetDetailList(self, request):
|
||||
r"""资产条件查询
|
||||
|
||||
:param request: Request instance for DescribeAssetDetailList.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeAssetDetailListRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeAssetDetailListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeAssetDetailList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeAssetDetailListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeAssetList(self, request):
|
||||
r"""资产安全资产列表
|
||||
|
||||
:param request: Request instance for DescribeAssetList.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeAssetListRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeAssetListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeAssetList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeAssetListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeCheckConfigAssetList(self, request):
|
||||
r"""云安全配置管理资产组列表
|
||||
|
||||
:param request: Request instance for DescribeCheckConfigAssetList.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeCheckConfigAssetListRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeCheckConfigAssetListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeCheckConfigAssetList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeCheckConfigAssetListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeCheckConfigDetail(self, request):
|
||||
r"""云安全配置检查项详情
|
||||
|
||||
:param request: Request instance for DescribeCheckConfigDetail.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeCheckConfigDetailRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeCheckConfigDetailResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeCheckConfigDetail", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeCheckConfigDetailResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeComplianceAssetList(self, request):
|
||||
r"""合规管理-资产列表
|
||||
|
||||
:param request: Request instance for DescribeComplianceAssetList.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeComplianceAssetListRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeComplianceAssetListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeComplianceAssetList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeComplianceAssetListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeComplianceDetail(self, request):
|
||||
r"""合规管理检查项详情
|
||||
|
||||
:param request: Request instance for DescribeComplianceDetail.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeComplianceDetailRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeComplianceDetailResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeComplianceDetail", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeComplianceDetailResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeComplianceList(self, request):
|
||||
r"""合规管理总览页检查项列表
|
||||
|
||||
:param request: Request instance for DescribeComplianceList.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeComplianceListRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeComplianceListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeComplianceList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeComplianceListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeConfigList(self, request):
|
||||
r"""云配置检查项总览页检查项列表
|
||||
|
||||
:param request: Request instance for DescribeConfigList.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeConfigListRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeConfigListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeConfigList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeConfigListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeDomainList(self, request):
|
||||
r"""域名列表信息
|
||||
|
||||
:param request: Request instance for DescribeDomainList.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeDomainListRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeDomainListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeDomainList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeDomainListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeEventDetail(self, request):
|
||||
r"""获取安全事件详情
|
||||
|
||||
:param request: Request instance for DescribeEventDetail.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeEventDetailRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeEventDetailResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeEventDetail", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeEventDetailResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeLeakDetectionList(self, request):
|
||||
r"""获取泄露列表
|
||||
|
||||
:param request: Request instance for DescribeLeakDetectionList.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeLeakDetectionListRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeLeakDetectionListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeLeakDetectionList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeLeakDetectionListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeMappingResults(self, request):
|
||||
r"""获取测绘列表
|
||||
|
||||
:param request: Request instance for DescribeMappingResults.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeMappingResultsRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeMappingResultsResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeMappingResults", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeMappingResultsResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeSocAlertDetails(self, request):
|
||||
r"""返回告警详情
|
||||
|
||||
:param request: Request instance for DescribeSocAlertDetails.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeSocAlertDetailsRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeSocAlertDetailsResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeSocAlertDetails", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeSocAlertDetailsResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeSocAlertList(self, request):
|
||||
r"""拉取告警列表
|
||||
|
||||
:param request: Request instance for DescribeSocAlertList.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeSocAlertListRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeSocAlertListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeSocAlertList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeSocAlertListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeSocCheckItemList(self, request):
|
||||
r"""云安全配置检查项列表
|
||||
|
||||
:param request: Request instance for DescribeSocCheckItemList.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeSocCheckItemListRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeSocCheckItemListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeSocCheckItemList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeSocCheckItemListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeSocCheckResultList(self, request):
|
||||
r"""云安全配置检查项结果列表
|
||||
|
||||
:param request: Request instance for DescribeSocCheckResultList.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeSocCheckResultListRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeSocCheckResultListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeSocCheckResultList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeSocCheckResultListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeSocCspmCompliance(self, request):
|
||||
r"""合规详情项
|
||||
|
||||
:param request: Request instance for DescribeSocCspmCompliance.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeSocCspmComplianceRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeSocCspmComplianceResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeSocCspmCompliance", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeSocCspmComplianceResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeVulDetail(self, request):
|
||||
r"""漏洞列表页,获取漏洞详情信息
|
||||
|
||||
:param request: Request instance for DescribeVulDetail.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeVulDetailRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeVulDetailResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeVulDetail", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeVulDetailResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeVulList(self, request):
|
||||
r"""漏洞管理页,获取漏洞列表
|
||||
|
||||
:param request: Request instance for DescribeVulList.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.DescribeVulListRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.DescribeVulListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeVulList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeVulListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def SaDivulgeScanRuleMutate(self, request):
|
||||
r"""SaDivulgeScanRuleMutate
|
||||
|
||||
:param request: Request instance for SaDivulgeScanRuleMutate.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.SaDivulgeScanRuleMutateRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.SaDivulgeScanRuleMutateResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("SaDivulgeScanRuleMutate", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.SaDivulgeScanRuleMutateResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def SaEventPub(self, request):
|
||||
r"""安全事件通用字段
|
||||
|
||||
:param request: Request instance for SaEventPub.
|
||||
:type request: :class:`tencentcloud.ssa.v20180608.models.SaEventPubRequest`
|
||||
:rtype: :class:`tencentcloud.ssa.v20180608.models.SaEventPubResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("SaEventPub", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.SaEventPubResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
@@ -0,0 +1,440 @@
|
||||
# -*- coding: utf8 -*-
|
||||
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
|
||||
from tencentcloud.common.abstract_client_async import AbstractClient
|
||||
from tencentcloud.ssa.v20180608 import models
|
||||
from typing import Dict
|
||||
|
||||
|
||||
class SsaClient(AbstractClient):
|
||||
_apiVersion = '2018-06-08'
|
||||
_endpoint = 'ssa.tencentcloudapi.com'
|
||||
_service = 'ssa'
|
||||
|
||||
async def DescribeAlarmStat(
|
||||
self,
|
||||
request: models.DescribeAlarmStatRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeAlarmStatResponse:
|
||||
"""
|
||||
安全大屏-用户威胁告警信息
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeAlarmStat"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeAlarmStatResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeAssetDetail(
|
||||
self,
|
||||
request: models.DescribeAssetDetailRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeAssetDetailResponse:
|
||||
"""
|
||||
资产安全页资产详情
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeAssetDetail"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeAssetDetailResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeAssetDetailList(
|
||||
self,
|
||||
request: models.DescribeAssetDetailListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeAssetDetailListResponse:
|
||||
"""
|
||||
资产条件查询
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeAssetDetailList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeAssetDetailListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeAssetList(
|
||||
self,
|
||||
request: models.DescribeAssetListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeAssetListResponse:
|
||||
"""
|
||||
资产安全资产列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeAssetList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeAssetListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeCheckConfigAssetList(
|
||||
self,
|
||||
request: models.DescribeCheckConfigAssetListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeCheckConfigAssetListResponse:
|
||||
"""
|
||||
云安全配置管理资产组列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeCheckConfigAssetList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeCheckConfigAssetListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeCheckConfigDetail(
|
||||
self,
|
||||
request: models.DescribeCheckConfigDetailRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeCheckConfigDetailResponse:
|
||||
"""
|
||||
云安全配置检查项详情
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeCheckConfigDetail"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeCheckConfigDetailResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeComplianceAssetList(
|
||||
self,
|
||||
request: models.DescribeComplianceAssetListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeComplianceAssetListResponse:
|
||||
"""
|
||||
合规管理-资产列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeComplianceAssetList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeComplianceAssetListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeComplianceDetail(
|
||||
self,
|
||||
request: models.DescribeComplianceDetailRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeComplianceDetailResponse:
|
||||
"""
|
||||
合规管理检查项详情
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeComplianceDetail"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeComplianceDetailResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeComplianceList(
|
||||
self,
|
||||
request: models.DescribeComplianceListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeComplianceListResponse:
|
||||
"""
|
||||
合规管理总览页检查项列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeComplianceList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeComplianceListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeConfigList(
|
||||
self,
|
||||
request: models.DescribeConfigListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeConfigListResponse:
|
||||
"""
|
||||
云配置检查项总览页检查项列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeConfigList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeConfigListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeDomainList(
|
||||
self,
|
||||
request: models.DescribeDomainListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeDomainListResponse:
|
||||
"""
|
||||
域名列表信息
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeDomainList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeDomainListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeEventDetail(
|
||||
self,
|
||||
request: models.DescribeEventDetailRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeEventDetailResponse:
|
||||
"""
|
||||
获取安全事件详情
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeEventDetail"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeEventDetailResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeLeakDetectionList(
|
||||
self,
|
||||
request: models.DescribeLeakDetectionListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeLeakDetectionListResponse:
|
||||
"""
|
||||
获取泄露列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeLeakDetectionList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeLeakDetectionListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeMappingResults(
|
||||
self,
|
||||
request: models.DescribeMappingResultsRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeMappingResultsResponse:
|
||||
"""
|
||||
获取测绘列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeMappingResults"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeMappingResultsResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeSocAlertDetails(
|
||||
self,
|
||||
request: models.DescribeSocAlertDetailsRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeSocAlertDetailsResponse:
|
||||
"""
|
||||
返回告警详情
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeSocAlertDetails"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeSocAlertDetailsResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeSocAlertList(
|
||||
self,
|
||||
request: models.DescribeSocAlertListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeSocAlertListResponse:
|
||||
"""
|
||||
拉取告警列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeSocAlertList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeSocAlertListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeSocCheckItemList(
|
||||
self,
|
||||
request: models.DescribeSocCheckItemListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeSocCheckItemListResponse:
|
||||
"""
|
||||
云安全配置检查项列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeSocCheckItemList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeSocCheckItemListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeSocCheckResultList(
|
||||
self,
|
||||
request: models.DescribeSocCheckResultListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeSocCheckResultListResponse:
|
||||
"""
|
||||
云安全配置检查项结果列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeSocCheckResultList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeSocCheckResultListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeSocCspmCompliance(
|
||||
self,
|
||||
request: models.DescribeSocCspmComplianceRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeSocCspmComplianceResponse:
|
||||
"""
|
||||
合规详情项
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeSocCspmCompliance"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeSocCspmComplianceResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeVulDetail(
|
||||
self,
|
||||
request: models.DescribeVulDetailRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeVulDetailResponse:
|
||||
"""
|
||||
漏洞列表页,获取漏洞详情信息
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeVulDetail"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeVulDetailResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeVulList(
|
||||
self,
|
||||
request: models.DescribeVulListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeVulListResponse:
|
||||
"""
|
||||
漏洞管理页,获取漏洞列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeVulList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeVulListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def SaDivulgeScanRuleMutate(
|
||||
self,
|
||||
request: models.SaDivulgeScanRuleMutateRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.SaDivulgeScanRuleMutateResponse:
|
||||
"""
|
||||
SaDivulgeScanRuleMutate
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "SaDivulgeScanRuleMutate"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.SaDivulgeScanRuleMutateResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def SaEventPub(
|
||||
self,
|
||||
request: models.SaEventPubRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.SaEventPubResponse:
|
||||
"""
|
||||
安全事件通用字段
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "SaEventPub"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.SaEventPubResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
Reference in New Issue
Block a user