第一次提交:阿龙电竞 Django 后端最新版本

This commit is contained in:
XingQue
2026-06-14 02:23:24 +08:00
commit 4f7bf00224
9654 changed files with 5417000 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
# -*- 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.
# 查询数据失败。
FAILEDOPERATION_QUERYDATA = 'FailedOperation.QueryData'
# RPC服务调用失败。
FAILEDOPERATION_RPCSERVICECALLFAILED = 'FailedOperation.RPCServiceCallFailed'
# 内部错误。
INTERNALERROR = 'InternalError'
# 内部错误,数据库异常。
INTERNALERROR_DATABASEEXCEPTION = 'InternalError.DatabaseException'
# 数据库查询失败。
INTERNALERROR_DATABASEQUERYFAILED = 'InternalError.DatabaseQueryFailed'
# 内部未知错误。
INTERNALERROR_UNKNOWN = 'InternalError.Unknown'
# 参数错误:规则相关字段传参或者字段内容错误
INVALIDPARAMETER_AUTORULEPARAMETERERROR = 'InvalidParameter.AutoRuleParameterError'
# 数据库错误
INVALIDPARAMETER_DATABASEEXCEPTION = 'InvalidParameter.DatabaseException'
# 重复的终端自定义分组名称。
INVALIDPARAMETER_DUPLICATEDEVICEVIRTUALGROUPNAME = 'InvalidParameter.DuplicateDeviceVirtualGroupName'
# 黑白名单选中有相同的终端设备
INVALIDPARAMETER_DUPLICATEIDINBLACKWHITELIST = 'InvalidParameter.DuplicateIdInBlackWhiteList'
# 参数错误有重复数据。
INVALIDPARAMETER_IDENTICALNAME = 'InvalidParameter.IdenticalName'
# 请求参数错误。
INVALIDPARAMETER_INVALIDPARAMETER = 'InvalidParameter.InvalidParameter'
# 请求参数错误。
INVALIDPARAMETER_REQUESTPARAM = 'InvalidParameter.RequestParam'
# 没有找到对应的终端自定义分组
INVALIDPARAMETERVALUE_VIRTUALDEVICEGROUPNOTFOUND = 'InvalidParameterValue.VirtualDeviceGroupNotFound'
# 缺少公共参数。
MISSINGPARAMETER_COMMONPARAM = 'MissingParameter.CommonParam'
# 终端导出任务同一时间仅允许一个,请稍后再试。
REQUESTLIMITEXCEEDED_DEVICEDOWNLOADTASK = 'RequestLimitExceeded.DeviceDownloadTask'
# 上次操作还未完成,请稍后重试。
REQUESTLIMITEXCEEDED_WAITFORTHELASTOPERATIONTOCOMPLETE = 'RequestLimitExceeded.WaitForTheLastOperationToComplete'
# 资源不存在。
RESOURCENOTFOUND_NOTFOUND = 'ResourceNotFound.NotFound'
# 没有业务资源权限。
UNAUTHORIZEDOPERATION_NORESOURCEPERMISSIONS = 'UnauthorizedOperation.NoResourcePermissions'
# 未授权的操作。
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = 'UnauthorizedOperation.PermissionDenied'

View File

@@ -0,0 +1,647 @@
# -*- 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.ioa.v20220601 import models
class IoaClient(AbstractClient):
_apiVersion = '2022-06-01'
_endpoint = 'ioa.tencentcloudapi.com'
_service = 'ioa'
def CreateDLPFileDetectTask(self, request):
r"""创建文件鉴定任务私有化调用path为capi/DlpOpenApi/CreateDLPFileDetectTask
:param request: Request instance for CreateDLPFileDetectTask.
:type request: :class:`tencentcloud.ioa.v20220601.models.CreateDLPFileDetectTaskRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.CreateDLPFileDetectTaskResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreateDLPFileDetectTask", params, headers=headers)
response = json.loads(body)
model = models.CreateDLPFileDetectTaskResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CreateDLPFileDetectionTask(self, request):
r"""提交送检任务
:param request: Request instance for CreateDLPFileDetectionTask.
:type request: :class:`tencentcloud.ioa.v20220601.models.CreateDLPFileDetectionTaskRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.CreateDLPFileDetectionTaskResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreateDLPFileDetectionTask", params, headers=headers)
response = json.loads(body)
model = models.CreateDLPFileDetectionTaskResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CreateDeviceTask(self, request):
r"""创建获取终端进程网络服务信息任务私有化调用path为capi/Assets/Device/DescribeDeviceInfo
:param request: Request instance for CreateDeviceTask.
:type request: :class:`tencentcloud.ioa.v20220601.models.CreateDeviceTaskRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.CreateDeviceTaskResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreateDeviceTask", params, headers=headers)
response = json.loads(body)
model = models.CreateDeviceTaskResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CreateDeviceVirtualGroup(self, request):
r"""创建终端自定义分组私有化调用path为/capi/Assets/Device/CreateDeviceVirtualGroup
:param request: Request instance for CreateDeviceVirtualGroup.
:type request: :class:`tencentcloud.ioa.v20220601.models.CreateDeviceVirtualGroupRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.CreateDeviceVirtualGroupResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreateDeviceVirtualGroup", params, headers=headers)
response = json.loads(body)
model = models.CreateDeviceVirtualGroupResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def CreatePrivilegeCode(self, request):
r"""生成特权码私有化调用path为capi/Assets/Device/CreatePrivilegeCode生成的特权码、卸载码仅对该设备当天有效
:param request: Request instance for CreatePrivilegeCode.
:type request: :class:`tencentcloud.ioa.v20220601.models.CreatePrivilegeCodeRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.CreatePrivilegeCodeResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("CreatePrivilegeCode", params, headers=headers)
response = json.loads(body)
model = models.CreatePrivilegeCodeResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeAccountGroups(self, request):
r"""以分页的方式查询账号分组列表私有化调用path为/capi/Assets/DescribeAccountGroups
:param request: Request instance for DescribeAccountGroups.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeAccountGroupsRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeAccountGroupsResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeAccountGroups", params, headers=headers)
response = json.loads(body)
model = models.DescribeAccountGroupsResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeAggrSoftCategorySoftList(self, request):
r"""聚合的分类软件列表
:param request: Request instance for DescribeAggrSoftCategorySoftList.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeAggrSoftCategorySoftListRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeAggrSoftCategorySoftListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeAggrSoftCategorySoftList", params, headers=headers)
response = json.loads(body)
model = models.DescribeAggrSoftCategorySoftListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeAggrSoftDetail(self, request):
r"""聚合的软件详情
:param request: Request instance for DescribeAggrSoftDetail.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeAggrSoftDetailRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeAggrSoftDetailResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeAggrSoftDetail", params, headers=headers)
response = json.loads(body)
model = models.DescribeAggrSoftDetailResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeAggrSoftDeviceList(self, request):
r"""聚合软件的已安装终端列表
:param request: Request instance for DescribeAggrSoftDeviceList.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeAggrSoftDeviceListRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeAggrSoftDeviceListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeAggrSoftDeviceList", params, headers=headers)
response = json.loads(body)
model = models.DescribeAggrSoftDeviceListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDLPEdgeNodeGroups(self, request):
r"""查询边缘节点分组私有化调用path为capi/Connectors/DescribeDLPEdgeNodeGroups
:param request: Request instance for DescribeDLPEdgeNodeGroups.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeDLPEdgeNodeGroupsRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeDLPEdgeNodeGroupsResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDLPEdgeNodeGroups", params, headers=headers)
response = json.loads(body)
model = models.DescribeDLPEdgeNodeGroupsResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDLPEdgeNodes(self, request):
r"""查询边缘节点列表私有化调用path为capi/DlpOpenApi/DescribeDLPEdgeNodes
:param request: Request instance for DescribeDLPEdgeNodes.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeDLPEdgeNodesRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeDLPEdgeNodesResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDLPEdgeNodes", params, headers=headers)
response = json.loads(body)
model = models.DescribeDLPEdgeNodesResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDLPFileDetectResult(self, request):
r"""webservice查询文件检测结果
:param request: Request instance for DescribeDLPFileDetectResult.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeDLPFileDetectResultRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeDLPFileDetectResultResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDLPFileDetectResult", params, headers=headers)
response = json.loads(body)
model = models.DescribeDLPFileDetectResultResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDLPFileDetectTaskResult(self, request):
r"""查询文件鉴定任务结果
:param request: Request instance for DescribeDLPFileDetectTaskResult.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeDLPFileDetectTaskResultRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeDLPFileDetectTaskResultResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDLPFileDetectTaskResult", params, headers=headers)
response = json.loads(body)
model = models.DescribeDLPFileDetectTaskResultResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDeviceChildGroups(self, request):
r"""查询设备组子分组详情私有化调用path为capi/Assets/Device/DescribeDeviceChildGroups
:param request: Request instance for DescribeDeviceChildGroups.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeDeviceChildGroupsRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeDeviceChildGroupsResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDeviceChildGroups", params, headers=headers)
response = json.loads(body)
model = models.DescribeDeviceChildGroupsResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDeviceDetailList(self, request):
r"""基于软件查看终端详情列表,私有化调用path为capi/Software/DescribeDeviceDetailList
:param request: Request instance for DescribeDeviceDetailList.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeDeviceDetailListRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeDeviceDetailListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDeviceDetailList", params, headers=headers)
response = json.loads(body)
model = models.DescribeDeviceDetailListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDeviceHardwareInfoList(self, request):
r"""查询满足条件的查询终端硬件信息列表私有化调用path为/capi/Assets/Device/DescribeDeviceHardwareInfoList
:param request: Request instance for DescribeDeviceHardwareInfoList.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeDeviceHardwareInfoListRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeDeviceHardwareInfoListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDeviceHardwareInfoList", params, headers=headers)
response = json.loads(body)
model = models.DescribeDeviceHardwareInfoListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDeviceInfo(self, request):
r"""获取终端进程网络服务信息私有化调用path为capi/Assets/Device/DescribeDeviceInfo
:param request: Request instance for DescribeDeviceInfo.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeDeviceInfoRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeDeviceInfoResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDeviceInfo", params, headers=headers)
response = json.loads(body)
model = models.DescribeDeviceInfoResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDeviceVirtualGroups(self, request):
r"""查询终端自定义分组列表私有化调用path为/capi/Assets/Device/DescribeDeviceVirtualGroups
:param request: Request instance for DescribeDeviceVirtualGroups.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeDeviceVirtualGroupsRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeDeviceVirtualGroupsResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDeviceVirtualGroups", params, headers=headers)
response = json.loads(body)
model = models.DescribeDeviceVirtualGroupsResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeDevices(self, request):
r"""查询满足条件的终端数据详情私有化调用path为/capi/Assets/Device/DescribeDevices
:param request: Request instance for DescribeDevices.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeDevicesRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeDevicesResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeDevices", params, headers=headers)
response = json.loads(body)
model = models.DescribeDevicesResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeLocalAccounts(self, request):
r"""获取账号列表支持分页模糊搜索私有化调用path为/capi/Assets/Account/DescribeLocalAccounts
:param request: Request instance for DescribeLocalAccounts.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeLocalAccountsRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeLocalAccountsResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeLocalAccounts", params, headers=headers)
response = json.loads(body)
model = models.DescribeLocalAccountsResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeRootAccountGroup(self, request):
r"""查询账号根分组详情。对应“用户与授权管理”里内置不可见的全网根账号组,所有新建的目录,都挂在该全网根账号组下。
:param request: Request instance for DescribeRootAccountGroup.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeRootAccountGroupRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeRootAccountGroupResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeRootAccountGroup", params, headers=headers)
response = json.loads(body)
model = models.DescribeRootAccountGroupResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeSoftCensusListByDevice(self, request):
r"""查看终端树下的软件列表,私有化调用path为capi/Software/DescribeSoftCensusListByDevice
:param request: Request instance for DescribeSoftCensusListByDevice.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeSoftCensusListByDeviceRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeSoftCensusListByDeviceResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeSoftCensusListByDevice", params, headers=headers)
response = json.loads(body)
model = models.DescribeSoftCensusListByDeviceResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeSoftwareInformation(self, request):
r"""查看指定终端的软件详情列表,私有化调用path为capi/Software/DescribeSoftwareInformation
:param request: Request instance for DescribeSoftwareInformation.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeSoftwareInformationRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeSoftwareInformationResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeSoftwareInformation", params, headers=headers)
response = json.loads(body)
model = models.DescribeSoftwareInformationResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def DescribeVirtualDevices(self, request):
r"""展示自定义分组终端列表私有化调用path为/capi/Assets/DescribeVirtualDevices
:param request: Request instance for DescribeVirtualDevices.
:type request: :class:`tencentcloud.ioa.v20220601.models.DescribeVirtualDevicesRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.DescribeVirtualDevicesResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("DescribeVirtualDevices", params, headers=headers)
response = json.loads(body)
model = models.DescribeVirtualDevicesResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ExportDeviceDownloadTask(self, request):
r"""创建终端导出任务私有化调用path为capi/Assets/Device/ExportDeviceDownloadTask
:param request: Request instance for ExportDeviceDownloadTask.
:type request: :class:`tencentcloud.ioa.v20220601.models.ExportDeviceDownloadTaskRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.ExportDeviceDownloadTaskResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ExportDeviceDownloadTask", params, headers=headers)
response = json.loads(body)
model = models.ExportDeviceDownloadTaskResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ExportSoftwareInformationList(self, request):
r"""导出基于指定终端查看软件信息详情列表查询,私有化调用path为capi/Software/ExportSoftwareInformationList
:param request: Request instance for ExportSoftwareInformationList.
:type request: :class:`tencentcloud.ioa.v20220601.models.ExportSoftwareInformationListRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.ExportSoftwareInformationListResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ExportSoftwareInformationList", params, headers=headers)
response = json.loads(body)
model = models.ExportSoftwareInformationListResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))
def ModifyVirtualDeviceGroups(self, request):
r"""终端自定义分组增减终端私有化调用path为/capi/Assets/Device/ModifyVirtualDeviceGroups
:param request: Request instance for ModifyVirtualDeviceGroups.
:type request: :class:`tencentcloud.ioa.v20220601.models.ModifyVirtualDeviceGroupsRequest`
:rtype: :class:`tencentcloud.ioa.v20220601.models.ModifyVirtualDeviceGroupsResponse`
"""
try:
params = request._serialize()
headers = request.headers
body = self.call("ModifyVirtualDeviceGroups", params, headers=headers)
response = json.loads(body)
model = models.ModifyVirtualDeviceGroupsResponse()
model._deserialize(response["Response"])
return model
except Exception as e:
if isinstance(e, TencentCloudSDKException):
raise
else:
raise TencentCloudSDKException(type(e).__name__, str(e))

View File

@@ -0,0 +1,512 @@
# -*- 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.ioa.v20220601 import models
from typing import Dict
class IoaClient(AbstractClient):
_apiVersion = '2022-06-01'
_endpoint = 'ioa.tencentcloudapi.com'
_service = 'ioa'
async def CreateDLPFileDetectTask(
self,
request: models.CreateDLPFileDetectTaskRequest,
opts: Dict = None,
) -> models.CreateDLPFileDetectTaskResponse:
"""
创建文件鉴定任务私有化调用path为capi/DlpOpenApi/CreateDLPFileDetectTask
"""
kwargs = {}
kwargs["action"] = "CreateDLPFileDetectTask"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.CreateDLPFileDetectTaskResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def CreateDLPFileDetectionTask(
self,
request: models.CreateDLPFileDetectionTaskRequest,
opts: Dict = None,
) -> models.CreateDLPFileDetectionTaskResponse:
"""
提交送检任务
"""
kwargs = {}
kwargs["action"] = "CreateDLPFileDetectionTask"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.CreateDLPFileDetectionTaskResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def CreateDeviceTask(
self,
request: models.CreateDeviceTaskRequest,
opts: Dict = None,
) -> models.CreateDeviceTaskResponse:
"""
创建获取终端进程网络服务信息任务私有化调用path为capi/Assets/Device/DescribeDeviceInfo
"""
kwargs = {}
kwargs["action"] = "CreateDeviceTask"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.CreateDeviceTaskResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def CreateDeviceVirtualGroup(
self,
request: models.CreateDeviceVirtualGroupRequest,
opts: Dict = None,
) -> models.CreateDeviceVirtualGroupResponse:
"""
创建终端自定义分组私有化调用path为/capi/Assets/Device/CreateDeviceVirtualGroup
"""
kwargs = {}
kwargs["action"] = "CreateDeviceVirtualGroup"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.CreateDeviceVirtualGroupResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def CreatePrivilegeCode(
self,
request: models.CreatePrivilegeCodeRequest,
opts: Dict = None,
) -> models.CreatePrivilegeCodeResponse:
"""
生成特权码私有化调用path为capi/Assets/Device/CreatePrivilegeCode生成的特权码、卸载码仅对该设备当天有效
"""
kwargs = {}
kwargs["action"] = "CreatePrivilegeCode"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.CreatePrivilegeCodeResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeAccountGroups(
self,
request: models.DescribeAccountGroupsRequest,
opts: Dict = None,
) -> models.DescribeAccountGroupsResponse:
"""
以分页的方式查询账号分组列表私有化调用path为/capi/Assets/DescribeAccountGroups
"""
kwargs = {}
kwargs["action"] = "DescribeAccountGroups"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeAccountGroupsResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeAggrSoftCategorySoftList(
self,
request: models.DescribeAggrSoftCategorySoftListRequest,
opts: Dict = None,
) -> models.DescribeAggrSoftCategorySoftListResponse:
"""
聚合的分类软件列表
"""
kwargs = {}
kwargs["action"] = "DescribeAggrSoftCategorySoftList"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeAggrSoftCategorySoftListResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeAggrSoftDetail(
self,
request: models.DescribeAggrSoftDetailRequest,
opts: Dict = None,
) -> models.DescribeAggrSoftDetailResponse:
"""
聚合的软件详情
"""
kwargs = {}
kwargs["action"] = "DescribeAggrSoftDetail"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeAggrSoftDetailResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeAggrSoftDeviceList(
self,
request: models.DescribeAggrSoftDeviceListRequest,
opts: Dict = None,
) -> models.DescribeAggrSoftDeviceListResponse:
"""
聚合软件的已安装终端列表
"""
kwargs = {}
kwargs["action"] = "DescribeAggrSoftDeviceList"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeAggrSoftDeviceListResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeDLPEdgeNodeGroups(
self,
request: models.DescribeDLPEdgeNodeGroupsRequest,
opts: Dict = None,
) -> models.DescribeDLPEdgeNodeGroupsResponse:
"""
查询边缘节点分组私有化调用path为capi/Connectors/DescribeDLPEdgeNodeGroups
"""
kwargs = {}
kwargs["action"] = "DescribeDLPEdgeNodeGroups"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeDLPEdgeNodeGroupsResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeDLPEdgeNodes(
self,
request: models.DescribeDLPEdgeNodesRequest,
opts: Dict = None,
) -> models.DescribeDLPEdgeNodesResponse:
"""
查询边缘节点列表私有化调用path为capi/DlpOpenApi/DescribeDLPEdgeNodes
"""
kwargs = {}
kwargs["action"] = "DescribeDLPEdgeNodes"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeDLPEdgeNodesResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeDLPFileDetectResult(
self,
request: models.DescribeDLPFileDetectResultRequest,
opts: Dict = None,
) -> models.DescribeDLPFileDetectResultResponse:
"""
webservice查询文件检测结果
"""
kwargs = {}
kwargs["action"] = "DescribeDLPFileDetectResult"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeDLPFileDetectResultResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeDLPFileDetectTaskResult(
self,
request: models.DescribeDLPFileDetectTaskResultRequest,
opts: Dict = None,
) -> models.DescribeDLPFileDetectTaskResultResponse:
"""
查询文件鉴定任务结果
"""
kwargs = {}
kwargs["action"] = "DescribeDLPFileDetectTaskResult"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeDLPFileDetectTaskResultResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeDeviceChildGroups(
self,
request: models.DescribeDeviceChildGroupsRequest,
opts: Dict = None,
) -> models.DescribeDeviceChildGroupsResponse:
"""
查询设备组子分组详情私有化调用path为capi/Assets/Device/DescribeDeviceChildGroups
"""
kwargs = {}
kwargs["action"] = "DescribeDeviceChildGroups"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeDeviceChildGroupsResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeDeviceDetailList(
self,
request: models.DescribeDeviceDetailListRequest,
opts: Dict = None,
) -> models.DescribeDeviceDetailListResponse:
"""
基于软件查看终端详情列表,私有化调用path为capi/Software/DescribeDeviceDetailList
"""
kwargs = {}
kwargs["action"] = "DescribeDeviceDetailList"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeDeviceDetailListResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeDeviceHardwareInfoList(
self,
request: models.DescribeDeviceHardwareInfoListRequest,
opts: Dict = None,
) -> models.DescribeDeviceHardwareInfoListResponse:
"""
查询满足条件的查询终端硬件信息列表私有化调用path为/capi/Assets/Device/DescribeDeviceHardwareInfoList
"""
kwargs = {}
kwargs["action"] = "DescribeDeviceHardwareInfoList"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeDeviceHardwareInfoListResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeDeviceInfo(
self,
request: models.DescribeDeviceInfoRequest,
opts: Dict = None,
) -> models.DescribeDeviceInfoResponse:
"""
获取终端进程网络服务信息私有化调用path为capi/Assets/Device/DescribeDeviceInfo
"""
kwargs = {}
kwargs["action"] = "DescribeDeviceInfo"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeDeviceInfoResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeDeviceVirtualGroups(
self,
request: models.DescribeDeviceVirtualGroupsRequest,
opts: Dict = None,
) -> models.DescribeDeviceVirtualGroupsResponse:
"""
查询终端自定义分组列表私有化调用path为/capi/Assets/Device/DescribeDeviceVirtualGroups
"""
kwargs = {}
kwargs["action"] = "DescribeDeviceVirtualGroups"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeDeviceVirtualGroupsResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeDevices(
self,
request: models.DescribeDevicesRequest,
opts: Dict = None,
) -> models.DescribeDevicesResponse:
"""
查询满足条件的终端数据详情私有化调用path为/capi/Assets/Device/DescribeDevices
"""
kwargs = {}
kwargs["action"] = "DescribeDevices"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeDevicesResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeLocalAccounts(
self,
request: models.DescribeLocalAccountsRequest,
opts: Dict = None,
) -> models.DescribeLocalAccountsResponse:
"""
获取账号列表支持分页模糊搜索私有化调用path为/capi/Assets/Account/DescribeLocalAccounts
"""
kwargs = {}
kwargs["action"] = "DescribeLocalAccounts"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeLocalAccountsResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeRootAccountGroup(
self,
request: models.DescribeRootAccountGroupRequest,
opts: Dict = None,
) -> models.DescribeRootAccountGroupResponse:
"""
查询账号根分组详情。对应“用户与授权管理”里内置不可见的全网根账号组,所有新建的目录,都挂在该全网根账号组下。
"""
kwargs = {}
kwargs["action"] = "DescribeRootAccountGroup"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeRootAccountGroupResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeSoftCensusListByDevice(
self,
request: models.DescribeSoftCensusListByDeviceRequest,
opts: Dict = None,
) -> models.DescribeSoftCensusListByDeviceResponse:
"""
查看终端树下的软件列表,私有化调用path为capi/Software/DescribeSoftCensusListByDevice
"""
kwargs = {}
kwargs["action"] = "DescribeSoftCensusListByDevice"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeSoftCensusListByDeviceResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeSoftwareInformation(
self,
request: models.DescribeSoftwareInformationRequest,
opts: Dict = None,
) -> models.DescribeSoftwareInformationResponse:
"""
查看指定终端的软件详情列表,私有化调用path为capi/Software/DescribeSoftwareInformation
"""
kwargs = {}
kwargs["action"] = "DescribeSoftwareInformation"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeSoftwareInformationResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def DescribeVirtualDevices(
self,
request: models.DescribeVirtualDevicesRequest,
opts: Dict = None,
) -> models.DescribeVirtualDevicesResponse:
"""
展示自定义分组终端列表私有化调用path为/capi/Assets/DescribeVirtualDevices
"""
kwargs = {}
kwargs["action"] = "DescribeVirtualDevices"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.DescribeVirtualDevicesResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def ExportDeviceDownloadTask(
self,
request: models.ExportDeviceDownloadTaskRequest,
opts: Dict = None,
) -> models.ExportDeviceDownloadTaskResponse:
"""
创建终端导出任务私有化调用path为capi/Assets/Device/ExportDeviceDownloadTask
"""
kwargs = {}
kwargs["action"] = "ExportDeviceDownloadTask"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.ExportDeviceDownloadTaskResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def ExportSoftwareInformationList(
self,
request: models.ExportSoftwareInformationListRequest,
opts: Dict = None,
) -> models.ExportSoftwareInformationListResponse:
"""
导出基于指定终端查看软件信息详情列表查询,私有化调用path为capi/Software/ExportSoftwareInformationList
"""
kwargs = {}
kwargs["action"] = "ExportSoftwareInformationList"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.ExportSoftwareInformationListResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)
async def ModifyVirtualDeviceGroups(
self,
request: models.ModifyVirtualDeviceGroupsRequest,
opts: Dict = None,
) -> models.ModifyVirtualDeviceGroupsResponse:
"""
终端自定义分组增减终端私有化调用path为/capi/Assets/Device/ModifyVirtualDeviceGroups
"""
kwargs = {}
kwargs["action"] = "ModifyVirtualDeviceGroups"
kwargs["params"] = request._serialize()
kwargs["resp_cls"] = models.ModifyVirtualDeviceGroupsResponse
kwargs["headers"] = request.headers
kwargs["opts"] = opts or {}
return await self.call_and_deserialize(**kwargs)

File diff suppressed because it is too large Load Diff