def ListZoneOperations(self, zone, fields=None, filter_expression=None,
                         page_token=None, max_results=500):
    request = self.computeengine.zoneOperations().list(
        project=self.project_id, filter=filter_expression, zone=zone,
        maxResults=max_results, pageToken=page_token, fields=fields)
    response = request.execute()

    reply = []
    next_page_token = None

    if response and 'items' in response:
      reply = response['items']
      next_page_token = response.get('nextPageToken', None)
    else:
      logging.debug('No Operations Found in Zone %s.', zone)

    return reply, next_page_token
Query the Compute Engine API and return all operations in a zone.
dataset/ETHPy150Open GoogleCloudPlatform/Data-Pipeline/app/src/clients/computeengine.py/ComputeEngine.ListZoneOperations