def DescribeTaskStatus(self, request): """根据上传文件接口的输出参数DataResId,获取相关上传结果。 :param request: Request instance for DescribeTaskStatus. :type request: :class:`tencentcloud.cr.v20180321.models.DescribeTaskStatusRequest` :rtype: :class:`tencentcloud.cr.v20180321.models.DescribeTaskStatusResponse` """ try: params = request._serialize() body = self.call("DescribeTaskStatus", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeTaskStatusResponse() 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 DescribeTaskStatus(self, request): """客户调用该接口查看任务执行状态。输入任务ID,输出任务执行状态或者结果 :param request: 调用DescribeTaskStatus所需参数的结构体。 :type request: :class:`tencentcloud.cr.v20180321.models.DescribeTaskStatusRequest` :rtype: :class:`tencentcloud.cr.v20180321.models.DescribeTaskStatusResponse` """ try: params = request._serialize() body = self.call("DescribeTaskStatus", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeTaskStatusResponse() 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 e else: raise TencentCloudSDKException(e.message, e.message)