Repository URL to install this package:
|
Version:
3.3.202-c2ee258 ▾
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.VulInfo import VulInfo
class AlipaySecurityProdAfsrcVulQueryResponse(AlipayResponse):
def __init__(self):
super(AlipaySecurityProdAfsrcVulQueryResponse, self).__init__()
self._data = None
@property
def data(self):
return self._data
@data.setter
def data(self, value):
if isinstance(value, VulInfo):
self._data = value
else:
self._data = VulInfo.from_alipay_dict(value)
def parse_response_content(self, response_content):
response = super(AlipaySecurityProdAfsrcVulQueryResponse, self).parse_response_content(response_content)
if 'data' in response:
self.data = response['data']