AlipayCommerceIotMdeviceprodWhitelistQueryModel.py 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayCommerceIotMdeviceprodWhitelistQueryModel(object):
  6. def __init__(self):
  7. self._app_project_id = None
  8. self._group_type = None
  9. self._group_value = None
  10. self._user_identify_type = None
  11. self._user_identify_value = None
  12. @property
  13. def app_project_id(self):
  14. return self._app_project_id
  15. @app_project_id.setter
  16. def app_project_id(self, value):
  17. self._app_project_id = value
  18. @property
  19. def group_type(self):
  20. return self._group_type
  21. @group_type.setter
  22. def group_type(self, value):
  23. self._group_type = value
  24. @property
  25. def group_value(self):
  26. return self._group_value
  27. @group_value.setter
  28. def group_value(self, value):
  29. self._group_value = value
  30. @property
  31. def user_identify_type(self):
  32. return self._user_identify_type
  33. @user_identify_type.setter
  34. def user_identify_type(self, value):
  35. self._user_identify_type = value
  36. @property
  37. def user_identify_value(self):
  38. return self._user_identify_value
  39. @user_identify_value.setter
  40. def user_identify_value(self, value):
  41. self._user_identify_value = value
  42. def to_alipay_dict(self):
  43. params = dict()
  44. if self.app_project_id:
  45. if hasattr(self.app_project_id, 'to_alipay_dict'):
  46. params['app_project_id'] = self.app_project_id.to_alipay_dict()
  47. else:
  48. params['app_project_id'] = self.app_project_id
  49. if self.group_type:
  50. if hasattr(self.group_type, 'to_alipay_dict'):
  51. params['group_type'] = self.group_type.to_alipay_dict()
  52. else:
  53. params['group_type'] = self.group_type
  54. if self.group_value:
  55. if hasattr(self.group_value, 'to_alipay_dict'):
  56. params['group_value'] = self.group_value.to_alipay_dict()
  57. else:
  58. params['group_value'] = self.group_value
  59. if self.user_identify_type:
  60. if hasattr(self.user_identify_type, 'to_alipay_dict'):
  61. params['user_identify_type'] = self.user_identify_type.to_alipay_dict()
  62. else:
  63. params['user_identify_type'] = self.user_identify_type
  64. if self.user_identify_value:
  65. if hasattr(self.user_identify_value, 'to_alipay_dict'):
  66. params['user_identify_value'] = self.user_identify_value.to_alipay_dict()
  67. else:
  68. params['user_identify_value'] = self.user_identify_value
  69. return params
  70. @staticmethod
  71. def from_alipay_dict(d):
  72. if not d:
  73. return None
  74. o = AlipayCommerceIotMdeviceprodWhitelistQueryModel()
  75. if 'app_project_id' in d:
  76. o.app_project_id = d['app_project_id']
  77. if 'group_type' in d:
  78. o.group_type = d['group_type']
  79. if 'group_value' in d:
  80. o.group_value = d['group_value']
  81. if 'user_identify_type' in d:
  82. o.user_identify_type = d['user_identify_type']
  83. if 'user_identify_value' in d:
  84. o.user_identify_value = d['user_identify_value']
  85. return o