def wait_for_zone_op(access_token, project, zone, name, interval=<NUM_LIT:1.0>):
assert isinstance(interval, (int, float))<EOL>assert interval >= <NUM_LIT:0.1><EOL>status = '<STR_LIT>'<EOL>progress = <NUM_LIT:0><EOL>LOGGER.info('<STR_LIT>', name)<EOL>while status != '<STR_LIT>':<EOL><INDENT>r = requests.get('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>% (project, zone, name, access_token.access_token))<EOL>r.raise_for_status()<EOL>result = r.json()<EOL>status = result['<STR_LIT:status>']<EOL>progress = result['<STR_LIT>']<EOL>time.sleep(interval)<EOL><DEDENT>LOGGER.info('<STR_LIT>', name)<EOL>
Wait until a zone operation is finished.

    TODO: docstring