def list_records(self, type=None, name=None, content=None):
    result = self._get('/{0}/records'.format(self.options['domain']))
    raw_records = result['records']
    if type:
        raw_records = [raw_record for raw_record in raw_records if (raw_record['type'] == type)]
    if name:
        raw_records = [raw_record for raw_record in raw_records if (raw_record['name'] == self._relative_name(name))]
    if content:
        raw_records = [raw_record for raw_record in raw_records if (raw_record['value'] == content)]
    records = []
    for raw_record in raw_records:
        records.append({'id': raw_record['id'], 'type': raw_record['type'], 'name': self._full_name(raw_record['name']), 'content': raw_record['value']})
    LOGGER.debug('list_records: %s', records)
    return records
def list_records(self, type=None, name=None, content=None):
    result = self._get('/{0}/records'.format(self.options['domain']))
    raw_records = result['records']
    if type:
        raw_records = [raw_record for raw_record in raw_records if (raw_record['type'] == type)]
    if name:
        raw_records = [raw_record for raw_record in raw_records if (raw_record['name'] == self._relative_name(name))]
    if content:
        raw_records = [raw_record for raw_record in raw_records if (raw_record['value'] == content)]
    records = []
    for raw_record in raw_records:
        records.append({'id': raw_record['id'], 'type': raw_record['type'], 'name': self._full_name(raw_record['name']), 'content': raw_record['value']})
    LOGGER.debug('list_records: %s', records)
    return records