def get_zones_of_region(compute, region, project):
    """ Returns the name of the zones inside a region.
    """
    list_of_zones = []

    request = compute.zones().list(project=project)
    while request is not None:
        response = request.execute()

        for zone in response['items']:
            # Check if the zone is inside our region
            if region in zone['description']:
                list_of_zones.append(zone['description'])

        request = compute.zones().list_next(
            previous_request=request, previous_response=response)
    return list_of_zones
 Returns the name of the zones inside a region.
    
powerfulseal/clouddrivers/gcp_driver.py