def synchronize(self, status):
self._version = status.get('<STR_LIT>').get('<STR_LIT:version>')<EOL>self._groups = {}<EOL>self._clients = {}<EOL>self._streams = {}<EOL>for stream in status.get('<STR_LIT>').get('<STR_LIT>'):<EOL><INDENT>self._streams[stream.get('<STR_LIT:id>')] = Snapstream(stream)<EOL>_LOGGER.debug('<STR_LIT>', self._streams[stream.get('<STR_LIT:id>')])<EOL><DEDENT>for group in status.get('<STR_LIT>').get('<STR_LIT>'):<EOL><INDENT>self._groups[group.get('<STR_LIT:id>')] = Snapgroup(self, group)<EOL>_LOGGER.debug('<STR_LIT>', self._groups[group.get('<STR_LIT:id>')])<EOL>for client in group.get('<STR_LIT>'):<EOL><INDENT>self._clients[client.get('<STR_LIT:id>')] = Snapclient(self, client)<EOL>_LOGGER.debug('<STR_LIT>', self._clients[client.get('<STR_LIT:id>')])<EOL><DEDENT><DEDENT>
Synchronize snapserver.