def DescribeFileSample(self, request): """查询文件样本库,支持批量查询 :param request: 调用DescribeFileSample所需参数的结构体。 :type request: :class:`tencentcloud.cms.v20190321.models.DescribeFileSampleRequest` :rtype: :class:`tencentcloud.cms.v20190321.models.DescribeFileSampleResponse` """ try: params = request._serialize() body = self.call("DescribeFileSample", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeFileSampleResponse() 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 DescribeFileSample(self, request): """本文档适用于图片内容安全、视频内容安全自定义识别库的管理。 <br> 查询图片样本库,支持批量查询。 :param request: Request instance for DescribeFileSample. :type request: :class:`tencentcloud.cms.v20190321.models.DescribeFileSampleRequest` :rtype: :class:`tencentcloud.cms.v20190321.models.DescribeFileSampleResponse` """ try: params = request._serialize() headers = request.headers body = self.call("DescribeFileSample", params, headers=headers) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeFileSampleResponse() 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)