AlipaySecurityRiskDirectionalIpprofileQueryResponse.py 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipaySecurityRiskDirectionalIpprofileQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipaySecurityRiskDirectionalIpprofileQueryResponse, self).__init__()
  8. self._ip_address = None
  9. self._ip_carrier_city = None
  10. self._ip_carrier_district = None
  11. self._ip_carrier_province = None
  12. self._ip_gps_city = None
  13. self._ip_gps_district = None
  14. self._ip_gps_province = None
  15. self._ip_latitude = None
  16. self._ip_longitude = None
  17. self._is_case_threemonth = None
  18. self._is_cellular_ip = None
  19. self._is_edu_ip = None
  20. self._is_idc_ip = None
  21. self._is_oversea_ip = None
  22. self._is_proxy_ip = None
  23. self._net_cert_ratio = None
  24. self._net_phone_ratio = None
  25. self._unique_id = None
  26. self._usage_time_type = None
  27. self._user_cnt_halfyear = None
  28. self._user_cnt_weekavg = None
  29. self._user_cnt_weekstddev = None
  30. self._user_stability = None
  31. @property
  32. def ip_address(self):
  33. return self._ip_address
  34. @ip_address.setter
  35. def ip_address(self, value):
  36. self._ip_address = value
  37. @property
  38. def ip_carrier_city(self):
  39. return self._ip_carrier_city
  40. @ip_carrier_city.setter
  41. def ip_carrier_city(self, value):
  42. self._ip_carrier_city = value
  43. @property
  44. def ip_carrier_district(self):
  45. return self._ip_carrier_district
  46. @ip_carrier_district.setter
  47. def ip_carrier_district(self, value):
  48. self._ip_carrier_district = value
  49. @property
  50. def ip_carrier_province(self):
  51. return self._ip_carrier_province
  52. @ip_carrier_province.setter
  53. def ip_carrier_province(self, value):
  54. self._ip_carrier_province = value
  55. @property
  56. def ip_gps_city(self):
  57. return self._ip_gps_city
  58. @ip_gps_city.setter
  59. def ip_gps_city(self, value):
  60. self._ip_gps_city = value
  61. @property
  62. def ip_gps_district(self):
  63. return self._ip_gps_district
  64. @ip_gps_district.setter
  65. def ip_gps_district(self, value):
  66. self._ip_gps_district = value
  67. @property
  68. def ip_gps_province(self):
  69. return self._ip_gps_province
  70. @ip_gps_province.setter
  71. def ip_gps_province(self, value):
  72. self._ip_gps_province = value
  73. @property
  74. def ip_latitude(self):
  75. return self._ip_latitude
  76. @ip_latitude.setter
  77. def ip_latitude(self, value):
  78. self._ip_latitude = value
  79. @property
  80. def ip_longitude(self):
  81. return self._ip_longitude
  82. @ip_longitude.setter
  83. def ip_longitude(self, value):
  84. self._ip_longitude = value
  85. @property
  86. def is_case_threemonth(self):
  87. return self._is_case_threemonth
  88. @is_case_threemonth.setter
  89. def is_case_threemonth(self, value):
  90. self._is_case_threemonth = value
  91. @property
  92. def is_cellular_ip(self):
  93. return self._is_cellular_ip
  94. @is_cellular_ip.setter
  95. def is_cellular_ip(self, value):
  96. self._is_cellular_ip = value
  97. @property
  98. def is_edu_ip(self):
  99. return self._is_edu_ip
  100. @is_edu_ip.setter
  101. def is_edu_ip(self, value):
  102. self._is_edu_ip = value
  103. @property
  104. def is_idc_ip(self):
  105. return self._is_idc_ip
  106. @is_idc_ip.setter
  107. def is_idc_ip(self, value):
  108. self._is_idc_ip = value
  109. @property
  110. def is_oversea_ip(self):
  111. return self._is_oversea_ip
  112. @is_oversea_ip.setter
  113. def is_oversea_ip(self, value):
  114. self._is_oversea_ip = value
  115. @property
  116. def is_proxy_ip(self):
  117. return self._is_proxy_ip
  118. @is_proxy_ip.setter
  119. def is_proxy_ip(self, value):
  120. self._is_proxy_ip = value
  121. @property
  122. def net_cert_ratio(self):
  123. return self._net_cert_ratio
  124. @net_cert_ratio.setter
  125. def net_cert_ratio(self, value):
  126. self._net_cert_ratio = value
  127. @property
  128. def net_phone_ratio(self):
  129. return self._net_phone_ratio
  130. @net_phone_ratio.setter
  131. def net_phone_ratio(self, value):
  132. self._net_phone_ratio = value
  133. @property
  134. def unique_id(self):
  135. return self._unique_id
  136. @unique_id.setter
  137. def unique_id(self, value):
  138. self._unique_id = value
  139. @property
  140. def usage_time_type(self):
  141. return self._usage_time_type
  142. @usage_time_type.setter
  143. def usage_time_type(self, value):
  144. self._usage_time_type = value
  145. @property
  146. def user_cnt_halfyear(self):
  147. return self._user_cnt_halfyear
  148. @user_cnt_halfyear.setter
  149. def user_cnt_halfyear(self, value):
  150. self._user_cnt_halfyear = value
  151. @property
  152. def user_cnt_weekavg(self):
  153. return self._user_cnt_weekavg
  154. @user_cnt_weekavg.setter
  155. def user_cnt_weekavg(self, value):
  156. self._user_cnt_weekavg = value
  157. @property
  158. def user_cnt_weekstddev(self):
  159. return self._user_cnt_weekstddev
  160. @user_cnt_weekstddev.setter
  161. def user_cnt_weekstddev(self, value):
  162. self._user_cnt_weekstddev = value
  163. @property
  164. def user_stability(self):
  165. return self._user_stability
  166. @user_stability.setter
  167. def user_stability(self, value):
  168. self._user_stability = value
  169. def parse_response_content(self, response_content):
  170. response = super(AlipaySecurityRiskDirectionalIpprofileQueryResponse, self).parse_response_content(response_content)
  171. if 'ip_address' in response:
  172. self.ip_address = response['ip_address']
  173. if 'ip_carrier_city' in response:
  174. self.ip_carrier_city = response['ip_carrier_city']
  175. if 'ip_carrier_district' in response:
  176. self.ip_carrier_district = response['ip_carrier_district']
  177. if 'ip_carrier_province' in response:
  178. self.ip_carrier_province = response['ip_carrier_province']
  179. if 'ip_gps_city' in response:
  180. self.ip_gps_city = response['ip_gps_city']
  181. if 'ip_gps_district' in response:
  182. self.ip_gps_district = response['ip_gps_district']
  183. if 'ip_gps_province' in response:
  184. self.ip_gps_province = response['ip_gps_province']
  185. if 'ip_latitude' in response:
  186. self.ip_latitude = response['ip_latitude']
  187. if 'ip_longitude' in response:
  188. self.ip_longitude = response['ip_longitude']
  189. if 'is_case_threemonth' in response:
  190. self.is_case_threemonth = response['is_case_threemonth']
  191. if 'is_cellular_ip' in response:
  192. self.is_cellular_ip = response['is_cellular_ip']
  193. if 'is_edu_ip' in response:
  194. self.is_edu_ip = response['is_edu_ip']
  195. if 'is_idc_ip' in response:
  196. self.is_idc_ip = response['is_idc_ip']
  197. if 'is_oversea_ip' in response:
  198. self.is_oversea_ip = response['is_oversea_ip']
  199. if 'is_proxy_ip' in response:
  200. self.is_proxy_ip = response['is_proxy_ip']
  201. if 'net_cert_ratio' in response:
  202. self.net_cert_ratio = response['net_cert_ratio']
  203. if 'net_phone_ratio' in response:
  204. self.net_phone_ratio = response['net_phone_ratio']
  205. if 'unique_id' in response:
  206. self.unique_id = response['unique_id']
  207. if 'usage_time_type' in response:
  208. self.usage_time_type = response['usage_time_type']
  209. if 'user_cnt_halfyear' in response:
  210. self.user_cnt_halfyear = response['user_cnt_halfyear']
  211. if 'user_cnt_weekavg' in response:
  212. self.user_cnt_weekavg = response['user_cnt_weekavg']
  213. if 'user_cnt_weekstddev' in response:
  214. self.user_cnt_weekstddev = response['user_cnt_weekstddev']
  215. if 'user_stability' in response:
  216. self.user_stability = response['user_stability']