def DescribePushTasks(self, request): """DescribePushTasks 用于查询预热任务提交历史记录及执行进度。 接口灰度中,暂未全量开放,敬请期待。 :param request: Request instance for DescribePushTasks. :type request: :class:`tencentcloud.cdn.v20180606.models.DescribePushTasksRequest` :rtype: :class:`tencentcloud.cdn.v20180606.models.DescribePushTasksResponse` """ try: params = request._serialize() body = self.call("DescribePushTasks", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribePushTasksResponse() 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 DescribePushTasks(self, request): """This API is used to query the submission record and progress of prefetch tasks. This API is in beta test and not fully available yet. Please stay tuned. :param request: Request instance for DescribePushTasks. :type request: :class:`tencentcloud.cdn.v20180606.models.DescribePushTasksRequest` :rtype: :class:`tencentcloud.cdn.v20180606.models.DescribePushTasksResponse` """ try: params = request._serialize() body = self.call("DescribePushTasks", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribePushTasksResponse() 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)