+ @property
+ def attribute_mappings(self):
+ if 'attribute mappings' in self._properties:
+ attr_map = pconfig.MappingList('temp', 'temp', None)
+ attr_map.import_value(str(self._properties['attribute mappings']))
+ return attr_map.get_value()
+ else:
+ return None
+
+ @attribute_mappings.setter
+ def attribute_mappings(self, attr_map):
+ if isinstance(attr_map, pconfig.MappingList):
+ value = attr_map.export_value()
+ else:
+ temp = pconfig.MappingList('temp', 'temp', None)
+ temp.set_value(attr_map)
+ value = temp.export_value()
+ self._staging['attribute mappings'] = value
+
+ @property
+ def allowed_attributes(self):
+ if 'allowed_attributes' in self._properties:
+ attr_map = pconfig.ComplexList('temp', 'temp', None)
+ attr_map.import_value(str(self._properties['allowed_attributes']))
+ return attr_map.get_value()
+ else:
+ return None
+
+ @allowed_attributes.setter
+ def allowed_attributes(self, attr_map):
+ if isinstance(attr_map, pconfig.ComplexList):
+ value = attr_map.export_value()
+ else:
+ temp = pconfig.ComplexList('temp', 'temp', None)
+ temp.set_value(attr_map)
+ value = temp.export_value()
+ self._staging['allowed_attributes'] = value
+