def DeleteFileSample(self, request): """删除文件样本库,支持批量删除,一次提交不超过20个 :param request: 调用DeleteFileSample所需参数的结构体。 :type request: :class:`tencentcloud.cms.v20190321.models.DeleteFileSampleRequest` :rtype: :class:`tencentcloud.cms.v20190321.models.DeleteFileSampleResponse` """ try: params = request._serialize() body = self.call("DeleteFileSample", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DeleteFileSampleResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def DeleteFileSample(self, request): """本文档适用于图片内容安全、视频内容安全自定义识别库的管理。 <br> 删除图片样本库,支持批量删除,一次提交不超过20个。 :param request: Request instance for DeleteFileSample. :type request: :class:`tencentcloud.cms.v20190321.models.DeleteFileSampleRequest` :rtype: :class:`tencentcloud.cms.v20190321.models.DeleteFileSampleResponse` """ try: params = request._serialize() headers = request.headers body = self.call("DeleteFileSample", params, headers=headers) response = json.loads(body) if "Error" not in response["Response"]: model = models.DeleteFileSampleResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)