def DescribeAgentDealsCache(self, request):
        """【该接口将逐步下线,请切换使用升级版本DescribeAgentDealsByCache】代理商拉取缓存的全量客户订单

        :param request: Request instance for DescribeAgentDealsCache.
        :type request: :class:`tencentcloud.partners.v20180321.models.DescribeAgentDealsCacheRequest`
        :rtype: :class:`tencentcloud.partners.v20180321.models.DescribeAgentDealsCacheResponse`

        """
        try:
            params = request._serialize()
            headers = request.headers
            body = self.call("DescribeAgentDealsCache",
                             params,
                             headers=headers)
            response = json.loads(body)
            if "Error" not in response["Response"]:
                model = models.DescribeAgentDealsCacheResponse()
                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)
Example #2
0
    def DescribeAgentDealsCache(self, request):
        """供超大型代理商(代客数量>=3000 )拉取缓存的全量客户订单。

        :param request: 调用DescribeAgentDealsCache所需参数的结构体。
        :type request: :class:`tencentcloud.partners.v20180321.models.DescribeAgentDealsCacheRequest`
        :rtype: :class:`tencentcloud.partners.v20180321.models.DescribeAgentDealsCacheResponse`

        """
        try:
            params = request._serialize()
            body = self.call("DescribeAgentDealsCache", params)
            response = json.loads(body)
            if "Error" not in response["Response"]:
                model = models.DescribeAgentDealsCacheResponse()
                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)