AlipayDataIotdataSearchlibraryBaiUploadModel.py 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayDataIotdataSearchlibraryBaiUploadModel(object):
  6. def __init__(self):
  7. self._account_id = None
  8. self._biz_id = None
  9. self._company_id = None
  10. self._content_id = None
  11. self._entity_data = None
  12. self._entity_desc = None
  13. self._entity_hash = None
  14. self._entity_type = None
  15. self._entity_url = None
  16. self._entity_vector = None
  17. self._ex_1 = None
  18. self._ex_2 = None
  19. self._ex_3 = None
  20. self._ex_4 = None
  21. self._ex_5 = None
  22. self._time_stamp = None
  23. @property
  24. def account_id(self):
  25. return self._account_id
  26. @account_id.setter
  27. def account_id(self, value):
  28. self._account_id = value
  29. @property
  30. def biz_id(self):
  31. return self._biz_id
  32. @biz_id.setter
  33. def biz_id(self, value):
  34. self._biz_id = value
  35. @property
  36. def company_id(self):
  37. return self._company_id
  38. @company_id.setter
  39. def company_id(self, value):
  40. self._company_id = value
  41. @property
  42. def content_id(self):
  43. return self._content_id
  44. @content_id.setter
  45. def content_id(self, value):
  46. self._content_id = value
  47. @property
  48. def entity_data(self):
  49. return self._entity_data
  50. @entity_data.setter
  51. def entity_data(self, value):
  52. self._entity_data = value
  53. @property
  54. def entity_desc(self):
  55. return self._entity_desc
  56. @entity_desc.setter
  57. def entity_desc(self, value):
  58. self._entity_desc = value
  59. @property
  60. def entity_hash(self):
  61. return self._entity_hash
  62. @entity_hash.setter
  63. def entity_hash(self, value):
  64. self._entity_hash = value
  65. @property
  66. def entity_type(self):
  67. return self._entity_type
  68. @entity_type.setter
  69. def entity_type(self, value):
  70. self._entity_type = value
  71. @property
  72. def entity_url(self):
  73. return self._entity_url
  74. @entity_url.setter
  75. def entity_url(self, value):
  76. self._entity_url = value
  77. @property
  78. def entity_vector(self):
  79. return self._entity_vector
  80. @entity_vector.setter
  81. def entity_vector(self, value):
  82. self._entity_vector = value
  83. @property
  84. def ex_1(self):
  85. return self._ex_1
  86. @ex_1.setter
  87. def ex_1(self, value):
  88. self._ex_1 = value
  89. @property
  90. def ex_2(self):
  91. return self._ex_2
  92. @ex_2.setter
  93. def ex_2(self, value):
  94. self._ex_2 = value
  95. @property
  96. def ex_3(self):
  97. return self._ex_3
  98. @ex_3.setter
  99. def ex_3(self, value):
  100. self._ex_3 = value
  101. @property
  102. def ex_4(self):
  103. return self._ex_4
  104. @ex_4.setter
  105. def ex_4(self, value):
  106. self._ex_4 = value
  107. @property
  108. def ex_5(self):
  109. return self._ex_5
  110. @ex_5.setter
  111. def ex_5(self, value):
  112. self._ex_5 = value
  113. @property
  114. def time_stamp(self):
  115. return self._time_stamp
  116. @time_stamp.setter
  117. def time_stamp(self, value):
  118. self._time_stamp = value
  119. def to_alipay_dict(self):
  120. params = dict()
  121. if self.account_id:
  122. if hasattr(self.account_id, 'to_alipay_dict'):
  123. params['account_id'] = self.account_id.to_alipay_dict()
  124. else:
  125. params['account_id'] = self.account_id
  126. if self.biz_id:
  127. if hasattr(self.biz_id, 'to_alipay_dict'):
  128. params['biz_id'] = self.biz_id.to_alipay_dict()
  129. else:
  130. params['biz_id'] = self.biz_id
  131. if self.company_id:
  132. if hasattr(self.company_id, 'to_alipay_dict'):
  133. params['company_id'] = self.company_id.to_alipay_dict()
  134. else:
  135. params['company_id'] = self.company_id
  136. if self.content_id:
  137. if hasattr(self.content_id, 'to_alipay_dict'):
  138. params['content_id'] = self.content_id.to_alipay_dict()
  139. else:
  140. params['content_id'] = self.content_id
  141. if self.entity_data:
  142. if hasattr(self.entity_data, 'to_alipay_dict'):
  143. params['entity_data'] = self.entity_data.to_alipay_dict()
  144. else:
  145. params['entity_data'] = self.entity_data
  146. if self.entity_desc:
  147. if hasattr(self.entity_desc, 'to_alipay_dict'):
  148. params['entity_desc'] = self.entity_desc.to_alipay_dict()
  149. else:
  150. params['entity_desc'] = self.entity_desc
  151. if self.entity_hash:
  152. if hasattr(self.entity_hash, 'to_alipay_dict'):
  153. params['entity_hash'] = self.entity_hash.to_alipay_dict()
  154. else:
  155. params['entity_hash'] = self.entity_hash
  156. if self.entity_type:
  157. if hasattr(self.entity_type, 'to_alipay_dict'):
  158. params['entity_type'] = self.entity_type.to_alipay_dict()
  159. else:
  160. params['entity_type'] = self.entity_type
  161. if self.entity_url:
  162. if hasattr(self.entity_url, 'to_alipay_dict'):
  163. params['entity_url'] = self.entity_url.to_alipay_dict()
  164. else:
  165. params['entity_url'] = self.entity_url
  166. if self.entity_vector:
  167. if hasattr(self.entity_vector, 'to_alipay_dict'):
  168. params['entity_vector'] = self.entity_vector.to_alipay_dict()
  169. else:
  170. params['entity_vector'] = self.entity_vector
  171. if self.ex_1:
  172. if hasattr(self.ex_1, 'to_alipay_dict'):
  173. params['ex_1'] = self.ex_1.to_alipay_dict()
  174. else:
  175. params['ex_1'] = self.ex_1
  176. if self.ex_2:
  177. if hasattr(self.ex_2, 'to_alipay_dict'):
  178. params['ex_2'] = self.ex_2.to_alipay_dict()
  179. else:
  180. params['ex_2'] = self.ex_2
  181. if self.ex_3:
  182. if hasattr(self.ex_3, 'to_alipay_dict'):
  183. params['ex_3'] = self.ex_3.to_alipay_dict()
  184. else:
  185. params['ex_3'] = self.ex_3
  186. if self.ex_4:
  187. if hasattr(self.ex_4, 'to_alipay_dict'):
  188. params['ex_4'] = self.ex_4.to_alipay_dict()
  189. else:
  190. params['ex_4'] = self.ex_4
  191. if self.ex_5:
  192. if hasattr(self.ex_5, 'to_alipay_dict'):
  193. params['ex_5'] = self.ex_5.to_alipay_dict()
  194. else:
  195. params['ex_5'] = self.ex_5
  196. if self.time_stamp:
  197. if hasattr(self.time_stamp, 'to_alipay_dict'):
  198. params['time_stamp'] = self.time_stamp.to_alipay_dict()
  199. else:
  200. params['time_stamp'] = self.time_stamp
  201. return params
  202. @staticmethod
  203. def from_alipay_dict(d):
  204. if not d:
  205. return None
  206. o = AlipayDataIotdataSearchlibraryBaiUploadModel()
  207. if 'account_id' in d:
  208. o.account_id = d['account_id']
  209. if 'biz_id' in d:
  210. o.biz_id = d['biz_id']
  211. if 'company_id' in d:
  212. o.company_id = d['company_id']
  213. if 'content_id' in d:
  214. o.content_id = d['content_id']
  215. if 'entity_data' in d:
  216. o.entity_data = d['entity_data']
  217. if 'entity_desc' in d:
  218. o.entity_desc = d['entity_desc']
  219. if 'entity_hash' in d:
  220. o.entity_hash = d['entity_hash']
  221. if 'entity_type' in d:
  222. o.entity_type = d['entity_type']
  223. if 'entity_url' in d:
  224. o.entity_url = d['entity_url']
  225. if 'entity_vector' in d:
  226. o.entity_vector = d['entity_vector']
  227. if 'ex_1' in d:
  228. o.ex_1 = d['ex_1']
  229. if 'ex_2' in d:
  230. o.ex_2 = d['ex_2']
  231. if 'ex_3' in d:
  232. o.ex_3 = d['ex_3']
  233. if 'ex_4' in d:
  234. o.ex_4 = d['ex_4']
  235. if 'ex_5' in d:
  236. o.ex_5 = d['ex_5']
  237. if 'time_stamp' in d:
  238. o.time_stamp = d['time_stamp']
  239. return o