def create_record(self, name, zone, type, data, extra=None):
        """
        Create a new record.

        :param name: Record name without the domain name (e.g. www).
                     Note: If you want to create a record for a base domain
                     name, you should specify empty string ('') for this
                     argument.
        :type  name: ``str``

        :param zone: Zone where the requested record is created.
        :type  zone: :class:`Zone`

        :param type: DNS record type (A, AAAA, ...).
        :type  type: :class:`RecordType`

        :param data: Data for the record (depends on the record type).
        :type  data: ``str``

        :param extra: Extra attributes (driver specific). (optional)
        :type extra: ``dict``

        :rtype: :class:`Record`
        """
        r_json = {'name': name, 'record_type': type, 'content': data}
        if extra is not None:
            r_json.update(extra)
        r_data = json.dumps({'record': r_json})
        response = self.connection.request(zone.id % '/v1/domains/%s/records',
                                           method='POST', data=r_data)
        record = self._to_record(response.object, zone=zone)
        return record
dataset/ETHPy150Open apache/libcloud/libcloud/dns/drivers/dnsimple.py/DNSimpleDNSDriver.create_record/swapped operands of `%`