'Returns a list of records for the provided zone.
:param zone: zone to list records for
:type zone: `Zone`
:rtype: list of :class: `Record`'

def list_records(self, zone):

    if (not isinstance(zone, Zone)):
        raise ZoneRequiredException('zone    should    be    of    type    Zone')
    zones = self.list_zones()
    if (not self.ex_zone_exists(zone.domain, zones)):
        raise ZoneDoesNotExistError(value='', driver=self, zone_id=zone.domain)
    action = '/v1/dns/records'
    params = {'domain': zone.domain}
    response = self.connection.request(action=action, params=params)
    records = self._to_records(response.objects[0], zone=zone)
    return records
