def _save(self, data):
self.name = data.get('<STR_LIT:name>')<EOL>self.type = data.get('<STR_LIT:type>')<EOL>self.state = data.get('<STR_LIT:state>')<EOL>self.dataset = data.get('<STR_LIT>')<EOL>self.memory = data.get('<STR_LIT>')<EOL>self.disk = data.get('<STR_LIT>')<EOL>self._ips = data.get('<STR_LIT>', [])<EOL>self.metadata = data.get('<STR_LIT>', {})<EOL>if not hasattr(self, '<STR_LIT>'):<EOL><INDENT>self._credentials = {}<EOL><DEDENT>self._credentials.update(self.metadata.pop('<STR_LIT>', {}))<EOL>self.boot_script = self.metadata.pop('<STR_LIT>', None)<EOL>self.created = dt_time(data.get('<STR_LIT>'))<EOL>self.updated = dt_time(data.get('<STR_LIT>', data.get('<STR_LIT>')))<EOL>
Take the data from a dict and commit them to appropriate attributes.