AlipayDataDataservicePropertyBusinesspropertyBatchqueryModel.py 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayDataDataservicePropertyBusinesspropertyBatchqueryModel(object):
  6. def __init__(self):
  7. self._business_profile_id = None
  8. self._business_property_ids = None
  9. self._column_guid = None
  10. self._property_name = None
  11. self._status = None
  12. self._table_guid = None
  13. @property
  14. def business_profile_id(self):
  15. return self._business_profile_id
  16. @business_profile_id.setter
  17. def business_profile_id(self, value):
  18. self._business_profile_id = value
  19. @property
  20. def business_property_ids(self):
  21. return self._business_property_ids
  22. @business_property_ids.setter
  23. def business_property_ids(self, value):
  24. if isinstance(value, list):
  25. self._business_property_ids = list()
  26. for i in value:
  27. self._business_property_ids.append(i)
  28. @property
  29. def column_guid(self):
  30. return self._column_guid
  31. @column_guid.setter
  32. def column_guid(self, value):
  33. self._column_guid = value
  34. @property
  35. def property_name(self):
  36. return self._property_name
  37. @property_name.setter
  38. def property_name(self, value):
  39. self._property_name = value
  40. @property
  41. def status(self):
  42. return self._status
  43. @status.setter
  44. def status(self, value):
  45. if isinstance(value, list):
  46. self._status = list()
  47. for i in value:
  48. self._status.append(i)
  49. @property
  50. def table_guid(self):
  51. return self._table_guid
  52. @table_guid.setter
  53. def table_guid(self, value):
  54. self._table_guid = value
  55. def to_alipay_dict(self):
  56. params = dict()
  57. if self.business_profile_id:
  58. if hasattr(self.business_profile_id, 'to_alipay_dict'):
  59. params['business_profile_id'] = self.business_profile_id.to_alipay_dict()
  60. else:
  61. params['business_profile_id'] = self.business_profile_id
  62. if self.business_property_ids:
  63. if isinstance(self.business_property_ids, list):
  64. for i in range(0, len(self.business_property_ids)):
  65. element = self.business_property_ids[i]
  66. if hasattr(element, 'to_alipay_dict'):
  67. self.business_property_ids[i] = element.to_alipay_dict()
  68. if hasattr(self.business_property_ids, 'to_alipay_dict'):
  69. params['business_property_ids'] = self.business_property_ids.to_alipay_dict()
  70. else:
  71. params['business_property_ids'] = self.business_property_ids
  72. if self.column_guid:
  73. if hasattr(self.column_guid, 'to_alipay_dict'):
  74. params['column_guid'] = self.column_guid.to_alipay_dict()
  75. else:
  76. params['column_guid'] = self.column_guid
  77. if self.property_name:
  78. if hasattr(self.property_name, 'to_alipay_dict'):
  79. params['property_name'] = self.property_name.to_alipay_dict()
  80. else:
  81. params['property_name'] = self.property_name
  82. if self.status:
  83. if isinstance(self.status, list):
  84. for i in range(0, len(self.status)):
  85. element = self.status[i]
  86. if hasattr(element, 'to_alipay_dict'):
  87. self.status[i] = element.to_alipay_dict()
  88. if hasattr(self.status, 'to_alipay_dict'):
  89. params['status'] = self.status.to_alipay_dict()
  90. else:
  91. params['status'] = self.status
  92. if self.table_guid:
  93. if hasattr(self.table_guid, 'to_alipay_dict'):
  94. params['table_guid'] = self.table_guid.to_alipay_dict()
  95. else:
  96. params['table_guid'] = self.table_guid
  97. return params
  98. @staticmethod
  99. def from_alipay_dict(d):
  100. if not d:
  101. return None
  102. o = AlipayDataDataservicePropertyBusinesspropertyBatchqueryModel()
  103. if 'business_profile_id' in d:
  104. o.business_profile_id = d['business_profile_id']
  105. if 'business_property_ids' in d:
  106. o.business_property_ids = d['business_property_ids']
  107. if 'column_guid' in d:
  108. o.column_guid = d['column_guid']
  109. if 'property_name' in d:
  110. o.property_name = d['property_name']
  111. if 'status' in d:
  112. o.status = d['status']
  113. if 'table_guid' in d:
  114. o.table_guid = d['table_guid']
  115. return o