def GetDisableRecords(self, request): """GetDisableRecords 用于查询资源禁用历史,及 URL 当前状态。(接口尚在内测中,暂未全量开放使用) :param request: Request instance for GetDisableRecords. :type request: :class:`tencentcloud.cdn.v20180606.models.GetDisableRecordsRequest` :rtype: :class:`tencentcloud.cdn.v20180606.models.GetDisableRecordsResponse` """ try: params = request._serialize() body = self.call("GetDisableRecords", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.GetDisableRecordsResponse() 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 GetDisableRecords(self, request): """This API (GetDisableRecords) is used to query the resource blocking history and the current URL status. (This API is during beta test and not fully available now.) :param request: Request instance for GetDisableRecords. :type request: :class:`tencentcloud.cdn.v20180606.models.GetDisableRecordsRequest` :rtype: :class:`tencentcloud.cdn.v20180606.models.GetDisableRecordsResponse` """ try: params = request._serialize() body = self.call("GetDisableRecords", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.GetDisableRecordsResponse() 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)